package WebGUI::i18n::English::Asset_Template;
our $I18N = {
'style wizard' => {
message => q|Style Wizard|,
context => q|Label for link to engage the style wizard.|,
lastUpdated => 0,
},
'namespace' => {
message => q|Namespace|,
context => q|label for Template Add/Edit Form|,
lastUpdated => 1107391021,
},
'show in forms' => {
message => q|Show in Forms?|,
context => q|label for Template Add/Edit Form|,
lastUpdated => 1107391135,
},
'assetName' => {
message => q|Template|,
context => q|label for Template Add/Edit Form|,
lastUpdated => 1128830570,
},
'edit template' => {
message => q|Edit Template|,
context => q|label for Template AdminConsole form|,
lastUpdated => 1107391263,
},
'template error' => {
message => q|There is a syntax error in this template. Please correct.|,
context => q|Error when executing template|,
lastUpdated => 1107391368,
},
'683' => {
message => q|Templates, Manage|,
lastUpdated => 1050430164
},
'638' => {
message => q|Templates are used to affect how content is laid out in WebGUI. There are many templates that come with WebGUI, and using the template management system, you can add your own templates to the system to ensure that your site looks exactly how you want it to look.
|,
lastUpdated => 1050430164
},
'684' => {
message => q|Template, Add/Edit|,
lastUpdated => 1038890615
},
'639' => {
message => q|Template Name
Give this template a descriptive name so that you'll know what it is when you're applying a template to content.
|, lastUpdated => 1038791020 }, '825' => { message => q|Template, Language|, lastUpdated => 1038865669 }, '826' => { message => q|
WebGUI has a powerful templating language built to give you maximum control over the layout of your content.
NOTES:
Both the template language and template variables are case-insensitive.
Variables
Variables are the most basic of the template commands. They are used to position pieces of content.
In the examples below, please note that the words foo and bar are used as placeholders for the actual variable names that you'll use. They are not part of the template language.
Syntax: <tmpl_var foo> or <tmpl_var name="foo">
Example: <tmpl_var name>
Conditions
To programmers conditions are nothing new, but to designers they can often be confusing at first. Conditions are really just true or false questions, and if you think of them that way, you'll have no trouble at all.
Syntax: <tmpl_if foo> <tmpl_else> </tmpl_if>
Syntax: <tmpl_unless foo> <tmpl_else> </tmpl_unless>
Example: <tmpl_if isTrue> It was true!<tmpl_else> It was false! </tmpl_if>
Truth or falsehood is determined by the following rules:
Variables not used in this template are false.
Variables which are undefined are false.
Variables which are empty are false.
Variables which are equal to zero are false.
All other variables are true.
Loops
Loops iterate over a list of data output for each pass in the loop. Loops are slightly more complicated to use than plain variables, but are considerably more powerful.
Syntax: <tmpl_loop foo> </tmpl_loop>
Example:
<tmpl_loop users>
Name: <tmpl_var first_name><br/>
</tmpl_loop>
Loop Conditions
Loops come with special condition variables of their own. They are __FIRST__, __ODD__, __INNER__, and __LAST__.
Examples:
<TMPL_LOOP FOO>
<TMPL_IF __FIRST__>
This only outputs on the first pass.
</TMPL_IF>
<TMPL_IF __ODD__>
This outputs every other pass, on the odd passes.
</TMPL_IF>
<TMPL_UNLESS __ODD__>
This outputs every other pass, on the even passes.
</TMPL_UNLESS>
<TMPL_IF __INNER__>
This outputs on passes that are neither first nor last.
</TMPL_IF>
<TMPL_IF __LAST__>
This only outputs on the last pass.
<TMPL_IF>
</TMPL_LOOP>
|,
lastUpdated =>1130959765,
},
'template variable title' => {
message => q|Template Variables|,
lastUpdated => 1130972019,
},
'template variable body' => {
message => q|
webgui.version
The version of WebGUI on your site.
webgui.status
The release status for this version of WebGUI, stable, beta, gamma, etc.
Session Variables
In addition to any variables defined in a given template, the session variables are made available to you with this syntax:
<tmpl_var session.section.variable>
Some common, useful session variables are:
session.var.adminOn
This variable will be true if the user is in Admin mode.
session.var.userId
The userId for the current user.
session.user.username
The current user's username.
session.user.language
The current user's preferred language (the default is English).
session.user.karma
The user's karma.