4images Forum & Community
4images Issues / Ausgaben => Feedback & Suggestions => Topic started by: vasche on October 13, 2002, 11:07:16 AM
-
Hello
Is there an explanation for how the templates work?
-
The templates are parsed by 4images. Anything enclosed within { and } is replaced with something provided what is between the curly braces is something that 4images knows about.
So {lang_SOMETHING} is replaced by the string assigned to SOMETHING found in lang/<your language>/main.php
For example: Suppose lang/english/main.php has this line:
$lang['search'] = "Search Images";
In the templates, {lang_search} is replaced with Search Images
Other template tags are replaced depending on session state and the php code itself.
{lightbox_button} could be replaced by any of these 3 buttons:
templates/<your template directory>/images/lightbox_off.gif
templates/<your template directory>/images/lightbox_no.gif
templates/<your template directory>/images/lightbox_yes.gif
Other tags are just a straight data substitution like this:
{image_description} is replaced with whatever description exists in the database for the image being displayed.
I don't know of any comprehensive list of all the available template tags. Such a list would be nice though.