A class that acts as a placeholder for a frontend theme.
the frontend theme is used by the cms_theme resource to display content
| since | 2.3 |
|---|---|
| package |
CMS |
| license |
GPL |
| property-read |
The name for this theme. Must be unique for the instalation. |
| property-read |
Optional name of a theme that this theme extends. |
| author |
Robert Campbell (calguy1000@cmsmadesimple.org) |
__construct(string $name, array $options)
Valid options include: location: (string) The file system path (or uri) where the theme files can be found. urlbase: (string) the complete URL to the directory where this theme exists. Used for creating font, js, and image URL's. 'extends_theme': (string, optional) - The name of the theme that this theme extends 'page_templates': array - An array of records containing information about page templates exported by this theme. Each page templates element contains a 'label', and 'template' key defining the page templates to allow use in the content manager. i.e: page_templates = [ [ 'label'=>'Home Page', 'template'=>'HomePage.tpl' ], [ 'label'=>'Internal Page', 'template'=>'InternalPage.tpl' ], ];
string $nameThe theme name
array $optionsAn associative array of options.
get_exported_page_templates() : array|null
array|null
An array of page template definitions. Each element of the array is an associative array with label and template keys.
get_location() : string
string
get_urlbase() : string
string
has_template(string $template_name) : boolean
string $template_name boolean
get_template_file(string $template_name) : string
string $template_name string
name : string
The name for this theme. Must be unique for the instalation.
string extends_theme : string
Optional name of a theme that this theme extends.
string