|
These are the default, externally setable variables for the main template class.
<?php // This include file contains all of the default variable settings for the template.class # You need to ensure that ALL the variables are present and that they are ALL VALID! # You can create a local version to override settings by creating a copy in the appropriate folder. # # TO DO: All vars should be set INDIRECTLY not directly ### WARNING: # None of these variables are currently validated! # You need to ensure that they are correct # ALL VARIABLES MUST BE INCLUDED (see note in main class for alternatives) ### # --- Security Stuff --- # Is security needed for this page? (defaults to no) # THESE 1ST TWO SHOULD BE SET VIA FUNCTION: $Template->securityLevel(SECURITY_OPTIONAL,$securityGroup) $this->securityLevel=SECURITY_NONE; # Is a security GROUP need for this page? (defaults to none) # Multi groups must be listed as "grp1;grp2;grp3" $this->securityGroup=''; # Has security check passed? (if not, no auto nav menu or content displayed) # Security content displayed instead $this->qSecurity=FALSE; # If security check failed, will only display security content $this->securityContent='<p class="boxPara">Security check not passed, cannot display requested contents</p>'; # Show login button? (top left panel) # Will be automatically shown anywary if security level set to optional or required $this->qShowLogin=FALSE; # Show logout button? (top left panel) # Will be shown automatically if the user is logged in $this->qShowLogout=FALSE; # Expiry duration for login in seconds (1 hr) $this->expiryTime=3600; # --- Main content --- # Page title (default=File name of page) $this->title = ucwords(ltrim(strrchr(rtrim($_SERVER['PHP_SELF'],'.php'),'/'),'/')); # Main body content. Appears *above* manual content and external file content # Normal php string rules apply. $this->content=''; # lower body content. Appears *below* manual content and *above* external file content # Normal php string rules apply. $this->bottomContent=''; # If content from a db required, set this to the table name # WARNING: Table MUST be in the correct format! $this->dbContent='content'; # Sort order for db content (defaults to the `order` fld for manual ordering) # Use '`order` ASC, `updated` DESC' for blog or news style pages. $this->dbCsort='`order` ASC'; # Option to show edit contents link for db contents - NB: ONLY SHOWN ON LOCALHOST ANYWAY! $this->dbCedt=TRUE; # Option to show updated date/time for db contents (e.g. for blog style pages) $this->dbCudt=FALSE; # Option to show updated by for db contents (e.g. for blog style pages) $this->dbCuby=FALSE; # If meta info (title,description,keywords) from a db required, set this to the table name # WARNING: Table MUST be in the correct format! $this->dbMeta='meta'; # NB: Content can also be included manually, see examples. # # Alt body content can also be provided by external files listed in the array below. # Appears *below* the content var and manual content # Note 1: Although defaulted to empty, the output fn also checks for .inc files of the same # name as the calling script and includes those automatically. Set this to something that doesnt # exist to override that. # Note 2: Included files can be full html (e.g. <html><head><body> tags, etc) as the extra # tags are ignored by most (all?) browsers. This means that content can be easily provided using # WYSISYG editors such as Mozilla and OpenOffice.org # Note 3: Files are concatenated $this->incFile=array(); # Optional content for 1st line of left panel (independent of automenu content & appears above it) $this->pageTopLeft=''; # Left panel manual content (added to automenu content) $this->leftContent=''; # Left panel auto navigation menu switch $this->qAutoMenu=TRUE; # Breadcrumb navigation menu switch $this->qBreadcrumb=TRUE; # Optional page version number (shown in footer along with the last update date/time) $this->pageVersion=''; # Allow brief text to go with the version number (included as a tooltip) $this->pageVersionTxt=''; # Who owns the copyright for this page? Shown after copyright in footer $this->owner='Julian Knight'; # Optional content author name for this page. Shown after updated date in footer $this->author='Julian Knight'; # Optional content editor name for this page. Use to indicate origial authors work has been edited # Shown after author $this->editor=''; # CSS Signature override (see: http://archivist.incutio.com/viewlist/css-discuss/13291, # & http://simon.incutio.com/archive/2004/07/15/persite) # Should be your server address with .'s replaced with -'s $this->bId=str_replace('.','-',$_SERVER['SERVER_NAME']); # --- HTML Overrides --- # Doc Type declaration (Default forces all browsers into CSS compatable layout mode - especially IE6!) $this->docType='<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">'.NL; # CSS file for page (or '' for none) $this->css = '/common/default.css'; # CSS file for PRINTING (or '' for none) $this->prtCss = '/common/print.css'; # Client side script file loaded in header (MUST be JavaScript, blank for no tag) $this->script=''; # HTML META Description tag for search engines (blank for no tag); $this->metaDescription=''; # HTML META Keywords tag for search engines (blank for no tag); $this->metaKeywords=''; # HTML META Robots tag for search engine spiders (blank for no tag); # May be any of: no/index, no/follow, no/archive $this->metaRobots=''; # Header override STATEMENTS allowing extra scripts/styles/etc. - MUST be valid HTML $this->hOther=''; # Body Override ATTRIBUTES for OnLoad script, etc - MUST be valid body tag content $this->bOther='';
# -- END OF FILE -- #
|