Global variables
The following variables are always available in the templates.
Constants
All constants that are defined in php are automaticly available as variables in the templates, in this form: $smarty.const.CONSTANT (where CONSTANT is the name of the constant).
In this way all configuration values (as $smarty.const.CF_….) and language entries (as $smarty.const.LN_….) are available. In addition to this, the location of the template folder, image folder, javascript folder and plugins folder are available as $smarty.const.URL_TPL, $smarty.const.URL_IMG, $smarty.const.URL_JS and $smarty.const.URL_PLUGINS.
Normal variables
$action – the name of the core file that is currently used; for example, if this variable has a value of ‘person’ then the file ‘core/person.php’ is used; in a template set, this can be used to include the matching ‘person.tpl’ file (string)
$admin – is the current user admin? (binary)
$boxcontent – the contents of the boxes in the sidebar (array)
$boxcontent.[box name (string)] – the content of the box (array or string; depends on the kind of box)
$bread_crumb – the bread crumb items (array)
$bread_crumb.n – bread crumb item (string)
$change_lang_list – a list of all activated languages; empty when only 1 language is activated (array)
$change_lang_list.[language code (string)] – language name (string)
$change_tpl_list – a list of all activated template sets; empty when only 1 template set is activated (array)
$change_tpl_list.[template set name (string)] – template set name (string)
$date1 – the value of the first date field of the search form (integer)
$date2 – the value of the second date field of the search form (integer)
$footer_menu – the contents of the footer menu (array)
$footer_menu.[action name or page id (string)].title – menu item title (string)
$footer_menu.[action name or page id (string)].url – menu item link url (string)
$givn – the value of the given names field of the search form (string)
$header_menu – the contents of the header menu (array)
$header_menu.[action name or page id (string)].title – menu item title (string)
$header_menu.[action name or page id (string)].url – menu item link url (string)
$headers – contents of the html header: title tag and meta tags (string)
$headers_js – contents of the html header: links to javascript files and inline javascript code (string)
$heading – page title (string)
$mess_stack – success, warning and error messages (array)
$mess_stack.n.[message type: ‘message’, ‘warning’ or ‘error’ (string)] – message content (string)
$no_yes_list – an array with ‘no’ and ‘yes’ in the current language, sorted from ‘no’ to ‘yes’ (array)
$no_yes_list.0 – ‘no’ (string)
$no_yes_list.1 – ‘yes’ (string)
$plac – the value of the place field of the search form (string)
$surn – the value of the surname field of the search form (string)
$used_lang – the current language code, ex. ‘en’ (string)
$used_template – the name of the current template set, ex. ‘default’ (string)
$yes_no_list – an array with ‘yes’ and ‘no’ in the current language, sorted from ‘yes’ to ‘no’ (array)
$yes_no_list.1 – ‘yes’ (string)
$yes_no_list.0 – ‘no’ (string)