Login





 


Language

Sprache auswählen:

Deutsch English

Template Variables

Currently this guide is a little sparse and may be hard to follow. It should give you enough to experiment with, but I don’t fully expect you to get it right away. Over time this document will be expanded to cover in much more depth the usage and structure of each variable. Keep in mind also that a lot of these may change before the final 3.1 release. They are still in flux and a lot of template/theme cleanup is being performed.

Variables available inside __ALL__ templates

string $BGCOLOR1
$bgcolor1 as defined in the user’s theme

string $BGCOLOR2
$bgcolor2 as defined in the user’s theme

string $BGCOLOR3
$bgcolor3 as defined in the user’s theme

string $BGCOLOR4
$bgcolor4 as defined in the user’s theme

string $BGCOLOR5
$bgcolor5 as defined in the user’s theme

string $BGCOLOR6
$bgcolor6 as defined in the user’s theme

string $TEXTCOLOR1
$textcolor1 as defined in the user’s theme

string $TEXTCOLOR2
$textcolor2 as defined in the user’s theme

string $USER_LANG
PostNuke value for the user’s current language

boolean $24HOUR_TIME
PostCalendar admin setting to determine if one should use 24 hour or 12 hour time

boolean $USE_POPUPS
admin setting to show popup boxes on mouseover (uses overLIB)

boolean $USE_INT_DATES
admin setting for date format
international = DDMMYYYY
default = MMDDYYYY

boolean $OPEN_NEW_WINDOW
open event details in popup window

string $EVENT_DATE_FORMAT
admin setting for prefered date format for display

string $HIGHLIGHT_COLOR
admin setting for day highlight color (#xxxxxx)

string $TPL_NAME
The name of the template currently being used

string $VIEW_TYPE
the current view type (day,month,week,year,details)

string $FUNCTION
the name of the module function that was called via the &func= GET/POST value

string $MODULE_NAME
the module’s name

string $MODULE_DIR
the module’s directory

string $TPL_VIEW
the current view’s name

string $TPL_IMAGE_PATH
path to the templates image directory

boolean $ACCESS_NONE
true/false for permission check
pnSecAuthAction(0,’PostCalendar::’,’::’,ACCESS_NONE)

boolean $ACCESS_OVERVIEW
true/false for permission check
pnSecAuthAction(0,’PostCalendar::’,’::’,ACCESS_OVERVIEW)

boolean $ACCESS_READ
true/false for permission check
pnSecAuthAction(0,’PostCalendar::’,’::’,ACCESS_READ)

boolean $ACCESS_COMMENT
true/false for permission check
pnSecAuthAction(0,’PostCalendar::’,’::’,ACCESS_COMMENT)

boolean $ACCESS_MODERATE
true/false for permission check
pnSecAuthAction(0,’PostCalendar::’,’::’,ACCESS_MODERATE)

boolean $ACCESS_EDIT
true/false for permission check
pnSecAuthAction(0,’!PostCalendar::’,’::’,ACCESS_EDIT)

boolean $ACCESS_ADD
true/false for permission check
pnSecAuthAction(0,’PostCalendar::’,’::’,ACCESS_ADD)

boolean $ACCESS_DELETE
true/false for permission check
pnSecAuthAction(0,’PostCalendar::’,’::’,ACCESS_DELETE)

boolean $ACCESS_ADMIN
true/false for permission check
pnSecAuthAction(0,’PostCalendar::’,’::’,ACCESS_ADMIN)

 
template_variables.txt · Last modified: 19.01.2006 10:48 by larsneo
 
Recent changes RSS feed Creative Commons License Powered by PHP Valid XHTML 1.0 Driven by DokuWiki