Class XoopsTheme
XoopsTheme component class file
Package: Theme
Category: Xoops\Core
Copyright: 2008-2015 XOOPS Project (http://xoops.org)
License: GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
Author: Skalpa Keo skalpa@xoops.org
Author: Taiwen Jiang phppp@users.sourceforge.net
Link: http://xoops.org
Located at oops_lib/Xoops/Core/Theme/XoopsTheme.php
public
boolean
|
#
xoInit( )
Initializes this theme
Upon initialization, the theme creates its template engine and instantiates the
plug-ins from the specified |
public
string
|
#
generateCacheId( string $cache_id, string $extraString = '' )
Generate cache id based on extra information of language and user groups User groups other than anonymous should be detected to avoid disclosing group sensitive contents |
public
boolean
|
|
public
boolean
|
#
render( string $canvasTpl = null, string $pageTpl = null, string $contentTpl = null, array $vars = array() )
Render the page The theme engine builds pages from 2 templates: canvas and content. A module can call this method directly and specify what templates the theme engine must use. If render() hasn't been called before, the theme defaults will be used for the canvas and page template (and xoopsOption['template_main'] for the content). |
public
array
|
#
getLocalizationAssets( string $type = "main" )
Load localization information Folder structure for localization: themes/themefolder/english - main.php - language definitions - style.css - localization stylesheet - script.js - localization script |
public
|
#
addScript( string $src = '', array $attributes = array(), string $content = '' )
Adds script code to the document head This methods allows the insertion of an external script file (if $src is provided), or of a script snippet. The file URI is parsed to take benefit of the theme resource overloading system. The $attributes parameter allows you to specify the attributes that will be added to the inserted |