-
Notifications
You must be signed in to change notification settings - Fork 0
Template Constants Guide
{CONTENT}
Constant for the main content area.
{HEADER}
Constant for the page start.
{FOOTER}
Constant for the page end.
{ISADMIN}Lorem Ipsum{/ISADMIN}
Displays "Lorem Ipsum" only if the user is logged in as an administrator.
=================================================================================
| Access Constants: |
|=================================================================================|
| Constant: | Explanation: |
|---------------------------------------|-----------------------------------------|
|---------------------------------------|-----------------------------------------|
| {CONFIGS_1stDim_2nd_Dim} | Access configuration variables. (only |
| | those whose first dimension doesn't |
| | contain an underscore) |
|---------------------------------------|-----------------------------------------|
| {TEMPLATE_path/to/template} | Include other template files. (starts |
| | from the SimpleSite root as specified in|
| | $configs["path"]["root"]) |
|---------------------------------------|-----------------------------------------|
| {WIDGET_widgetName} | Display widget by the name of |
| | widgetName. |
|---------------------------------------|-----------------------------------------|
| {MODINFO_varName} | Display varName from the $info array in |
| | the current module. |
|---------------------------------------|-----------------------------------------|
| {SESSION_1stDim_2ndDim} | Display session variable. |
|---------------------------------------|-----------------------------------------|
| {GET_varName} | Display GET variable. |
|---------------------------------------|-----------------------------------------|
| {POST_varName} | Display POST variable. |