Menu

Templates

Ternot

[Quick Start Guides] [Advanced] [Templates]

templates

The are two templates provided: std and carbon

While std is compatible with the internal browser in the Syabas Popcorn Hour player, carbon uses some techniques, which are not fully working.

template settings

The settings of the templates can be changed in the corresponding "theme.inc.php"

  • $theme["ShowsPerPage"] => Number of movies/series per page
  • $theme["GetShowsPerPageAutomatically"] => If "1" the number of movies/series per page is calculated automatically (needs page reload)
  • $theme["SeasonsPerRow"] => Number of seasons per row
  • $theme["EpisodesPerRow"] => Number of episodes per row
  • $theme["ShowsPerRow"] => Number of movies/series per row
  • $theme["RowDivider"] => HTML code between rows (like '' for table layout)
  • $theme["SMCategoryColumns"] => Number of columns for the "Category" sub-menu
  • $theme["SMGenreColumns"] => Number of columns for the "Genre" sub-menu
  • $theme["SMAddedColumns"] => Number of columns for the "Added" sub-menu
  • $theme["SMRatingColumns"] => Number of columns for the "Rating" sub-menu
  • $theme["RatingImage"] => Image for the rating HTML code (0 to rating)
  • $theme["RatingImageSmall"] => Image for the small rating (for e.g. index pages)
  • $theme["NoRatingImage"] => Image for the rating HTML code rating to 10)
  • $theme["wallpaper"] => Background image
  • $theme["percentage"] => Image for the percentage bars of the statistics

structure

carbon_structure
std_structure
carbon_serie_details_structure
std_details_structure

dynamic fields

The templates with the extension .tpl are simple HTML files with dynamic fields, which are generated via the php script. Therefore these dynamic fields look like this:

<?=$movie["Fieldname"]?>

-> movie/series information

<?=$video["Fieldname"]?>

-> episode information

<?=$language["string"]?>

-> GUI translation (see "lang/*.lng" files for possible strings)

<?=Seasons($movie["SHOW_ID"],$movie["SHOW_TYPE"])?>

-> displays a list of available seasons

<?=Episodes('switch')?>

-> displays the list of episodes. 'switch' can be 'table' for a HTML table or 'div' for a more flexible layout using css properties.

Available fields -> $movie

  • SHOW_ID => ID
  • TITLE => Title
  • SEARCH_TITLE => Search title
  • TOTAL_ITEM => Number of videos
  • RELEASE_DATE => Release date
  • DETAIL_POSTER => Path to cover picture
  • THUMBNAIL => Path to thumbnail picture
  • RATING => Rating
  • RESOLUTION => Resolution
  • WIDTH => Resolution width
  • HEIGHT => Resolution height
  • PARENTAL_RATING => Parental rating
  • SYSTEM => System
  • VIDEO_CODEC => Codec
  • FPS => Frames per second
  • CREATE_TIME => In database since...
  • SHOW_TYPE => Series, movie or movie with multiple parts
  • WALLPAPER => Path to fan art picture
  • TTID => IMDB Id
  • PLOT => Synopsis
  • RUNTIME => X h XX min (for series cumulated)
  • YEAR => Year
  • RATING_IMAGES => HTML for rating stars
  • RATING_IMAGES_small => HTML for small rating stars
  • PATH => Path
  • LONGPATH => Full path
  • SEEN => (not-)seen
  • HD => HD / Full HD / unknown
  • GENRE => Genre(s) with hyper-links
  • ACTORS => Cast with hyper-links
  • DIRECTOR => Director