Namespaces | Functions

cms/template.lib.php File Reference

Go to the source code of this file.

Namespaces

namespace  pragyan
 

Widget Framework for Pragyan CMS (c) 2010 Pragyan Team http://www.gnu.org/licenses/ GNU Public License For more details, see README Add support for File Upload/Download via the widget's configurations Reload Widgets ,Get Widget Instances. see bottom.


Functions

 getPageTemplate ($pageId)
 templateReplace (&$TITLE, &$MENUBAR, &$ACTIONBARMODULE, &$ACTIONBARPAGE, &$BREADCRUMB, &$INHERITEDINFO, &$CONTENT, &$FOOTER, &$DEBUGINFO, &$ERRORSTRING, &$WARNINGSTRING, &$INFOSTRING, &$STARTSCRIPTS, &$LOGINFORM)
 actualTemplatePath ($templatePath)
 getTemplateName ($actualPath)
 installTemplate ($str)
 name ($path, $end)
 addissue (&$issues, $str, $id)
 addfatalissue (&$issues, $str, $id)
 checkForTemplateIssues ($templatePath, $templateName, &$issues)
 mycount ($content, $find)
 handleTemplateManagement ()

Function Documentation

actualTemplatePath ( templatePath  ) 

Definition at line 79 of file template.lib.php.

addfatalissue ( &$  issues,
str,
id 
)

Definition at line 245 of file template.lib.php.

addissue ( &$  issues,
str,
id 
)

Definition at line 241 of file template.lib.php.

checkForTemplateIssues ( templatePath,
templateName,
&$  issues 
)

Definition at line 251 of file template.lib.php.

getPageTemplate ( pageId  ) 

Returns the template specific to the page

Parameters:
$pageId The page id for the page whose template is needed
Returns:
The template that has been assigned to the page, If no template has been assigned then return the default template

Definition at line 26 of file template.lib.php.

getTemplateName ( actualPath  ) 

Definition at line 95 of file template.lib.php.

handleTemplateManagement (  ) 

Definition at line 302 of file template.lib.php.

installTemplate ( str  ) 

Definition at line 99 of file template.lib.php.

mycount ( content,
find 
)

Definition at line 290 of file template.lib.php.

name ( path,
end 
)

Definition at line 224 of file template.lib.php.

templateReplace ( &$  TITLE,
&$  MENUBAR,
&$  ACTIONBARMODULE,
&$  ACTIONBARPAGE,
&$  BREADCRUMB,
&$  INHERITEDINFO,
&$  CONTENT,
&$  FOOTER,
&$  DEBUGINFO,
&$  ERRORSTRING,
&$  WARNINGSTRING,
&$  INFOSTRING,
&$  STARTSCRIPTS,
&$  LOGINFORM 
)

Replaces the CMS variables in the template with the proper values and returns the page.

Parameters:
$TITLE The title for the page
$MENUBAR The menubar according to the page settings, either the complete, classic or multi-depth.
$ACTIONBARMODULE Contains the actions that are specific to the module of page that is currently being viewed
$ACTIONBARPAGE Has the actions that are specif to a page like page-settings, permissions, login etc.
$CONTENT The content of the page that the user has requested.
$FOOTER 
Returns:
The template that has been assigned to the page, If no template has been assigned then return the default template

Definition at line 56 of file template.lib.php.