Asteri.sk CMS » Documentation » Templates

Templates

Please refer to document structure as well.

All templates are stored in one place and follow the same logic, however several of them are for administrator only.

User templates (document templates)

 

Administrative templates

Frontend:

Main:

Template name Used in  Description Passed  variables
header   This is the first html code passed to the browser. Please check the document structure page and this FAQ to learn more.  

footer

  This is the last html code sent to the browser  

menujs1

settings for javascript menu This template contains settings for built-in javascript menu and is passed to the browser where such menu is used  
admin_originalpicture Original sized image pages When users click to get stored image in original size, this is the template that is used to accomodate the image $text1 - image
$text2 - description
admin_comment forums Represents template for one row in forums and page comments $text1 - background colour for the row (one of two colours set in configuration, varies with each row)
$text2 - comment contents (subject+text+optional 'edited by' information)
$text3 - author name
$text4 - author stars/rank
$text5 - author emblem
$text6 - submission time
$text7 - action links (Edit and/or Mail)
admin_comments forums and vote add-ons in normal pages Template for comments in forums and page comments

$text1 - action for the form tag and refresh javascript (contains full current URL)
$text2 - value of the user's 'refresh' setting
$text3 - list of all comment rows (created with template admin_comment)
$text4 - multiple pages navigation
$text5 - administrative options (shown only to forum administrators)
$text6 - $text7 - votes display (if supplied)

admin_forumvote forums  One row for votes display

$text1 - vote text
$text2 - number of votes and percentage in brackets
$text3 - bar of width equaling to percentage
$text4 - system image of width equaling to percentage
$text5 - as $text3 with $text4 inside and $text2 next to it
$text6 - as $text3 with $text2 next to it
Note: $text2, 3, 4 , 5, 6 can be used as different display options (or 2 combined with 3 or 4)

admin_forumvotes forums  Votes display $text1 - the full defintion for the form tag (except for the word form)
$text2 - name for the votes
$text3 - contents for the votes (graph, etc. created with rows of admin_forumvote)
$text4 - button to vote
admin_commentformforloggeduseradvanced forums The code of the advanced form for inputting/editing comments, displays for logged users only. $text1 - the full defintion for the form tag (except for the word form and form name)
$text2 - name of the logged on user
$text3 - notification checkbox
$text4 - comment subject
$text5 - comment text
$text6 - deletion button (if relevant)
$text7 - display of the votes (if relevant)
admin_commentformadvanced forums  The code of the advanced form for inputting/editing comments. Displays for unlogged users only (the visible difference between the previous template is in $text3) $text1 - the full defintion for the form tag (except for the word form and form name)
$text2 - name of the logged on user
$text3 - email of the user (unlogged user who wished to get notified of new comments)
$text4 - comment subject
$text5 - comment text
$text6 - deletion button (if relevant)
$text7 - display of the votes (if relevant)
admin_commentforum forums One row of the list of forums in admin_commentforums $text1- changing colour (between #CCFFFF and white)
$text2 - name with link to the forum document
$text3 - number of forum topics
$text4 - number of forum comments
$text5 - number of forum views
$text6 - last comment time and author
admin_commentforums forums The display of all forums. $text1 - the list of forums
$text2 - who is online
$text4 - multiple page navigator
$text5 - link to the newest member
$text6 - number of registered users
$text7 - number of comments in all forums
admin_commenttopic forums   $text1 -
$text2 -
$text3 -
$text4 -
$text5 -
$text6 -
admin_commenttopics forums   $text1 -
$text2 -
$text3 -
$text4 -
$text5 -
$text6 -
admin_commentformforloggeduser forums    $text1 -
$text2 -
$text3 -
$text4 -
$text5 -
$text6 -
admin_commentform forums   $text1 -
$text2 -
$text3 -
$text4 -
$text5 -
$text6 -
admin_forummailinbox forums   $text1 -
$text2 -
$text3 -
$text4 -
$text5 -
$text6 -
admin_forummailrow forums   $text1 -
$text2 -
$text3 -
$text4 -
$text5 -
$text6 -
admin_forummailform forums   $text1 -
$text2 -
$text3 -
$text4 -
$text5 -
$text6 -
admin_forummailshow forums   $text1 -
$text2 -
$text3 -
$text4 -
$text5 -
$text6 -
admin_setting forums   $text1 -
$text2 -
$text3 -
$text4 -
$text5 -
$text6 -
admin_settings forums   $text1 -
$text2 -
$text3 -
$text4 -
$text5 -
$text6 -
admin_login forums   $text1 -
$text2 -
$text3 -
$text4 -
$text5 -
$text6 -
admin_listusers forums   $text1 -
$text2 -
$text3 -
$text4 -
$text5 -
$text6 -
admin_listuser forums   $text1 -
$text2 -
$text3 -
$text4 -
$text5 -
$text6 -

Backend

admin_headerforcms (corrective header for use inside CMS document editor, usually stays blank)

admin_footerforcms (corrective footer for use inside CMS document editor, usually stays blank)

about | documentation
Asteri.sk ©2003