| iStrip Template Variables |
|---|
[ Back to top ]
| Preamble |
|---|
| The purpose of this document is to provide documentation
for the variables available to iStrip template designers. This section
also briefly covers the basics of using Smarty's template features. For
more detailed information on building templates, see the documentation
on template building, and the Smarty
homepage. Template variable format Template variables are accessed from within templates by enclosing them in a set of delimiters. By default the delimiters are curly braces, {}. To access a variable, you just use the variable name on it's own, for example, {$allowed_html} Most template variables arranged into groups. To access a member of the group, you use the group name and the member name separated with a dot. For example, {$archive.count_strips} Indexed array groups The $striplist group is an indexed array of variables, each index entry representing one of the strips in the archive. To access details on a particular strip, give the index number you want in square braces between the group name and the member you want to access. Due to the way the Smarty template system accesses indexed array elements, the index number of the strip you want is one below the ID number of the strip you want to access. So strip 1 is index 0, strip 2 is index 1 and so on. So to access details on strip one, you would use $striplist[0]. For example, {$striplist[0].strip_title} would return the title of strip number 1 The $themes group is also an indexed array, but each element is a string variable and not an associative array like $striplist. To access a value, use the number of the index you want to access in square braces after the $themes group. For example, $themes[0] will return the name of the first installed theme iStrip finds It is not intended that you would access these elements like this, instead you are meant to access them using other template variables, or Smarty's array handling functions such as foreach and section. For examples on template functions, see the template building documentation and the documentation on the Smarty website. Depreciated variables The column to the right of the variable name lists the name by which the variable in question was accessed under old versions of iStrip. In addition, the section at the end of this page lists a set of template variables that were available in old versions of iStrip but have since been completely removed as their functionality was duplicated elsewhere in the new variable set. This information is included for the benefit of template designers updating templates from old versions of iStrip to the current format. |
[ Back to top ]
| Variable groups |
|---|
This is a comprehensive list of all the currently available
template variables in iStrip and where they can be accessed from.
|
[ Back to top ]
[ Back to top ]
| $banner | ||
|---|---|---|
| Description | Contains a randomly selected banner image | |
| Availability | All user pages | |
| Variable | Replaces | Description |
| file | banner_file | The full path to the banner image relative to the iStrip root |
[ Back to top ]
[ Back to top ]
[ Back to top ]
[ Back to top ]
[ Back to top ]
[ Back to top ]
[ Back to top ]
[ Back to top ]
[ Back to top ]
[ Back to top ]
[ Back to top ]
[ Back to top ]
[ Back to top ]
[ Back to top ]
[ Back to top ]
Copyright © 2002, 2003 Gordon McVey