App\Core_ThemeManager
Inherited from cmsApplication_List
Protected Attributes
protected | $sub_template | = 'index' |
Public Methods
public | __construct() Constructor $SystemDB
|
public | viewMainPage() Frontend: view the main page. Usually loads view.main.template.php
|
public boolean | findDuplicateItems(array $data) Given an associative array $data, find possible duplicate from item's table
|
public boolean | setDefaultTheme(bool $is_admin, int $template_id) Sets the default theme $SystemDB
|
public int | getDefaultFrontendThemeID() Return the ID (int) of frontend theme $SystemDB
|
public int | getDefaultBackendThemeID() Return the ID (int) of backend theme $SystemDB
|
public | getDefaultWebsiteThemeName() |
public | isMobile() |
public | setSubTemplate($subtemplate) |
public | loadSubTemplateByName(string $subtemplate_file='index', string $alternative_subtemplate_file='') Loads a subtemplate and run it. The subtemplate can be any file in the template directory, and the default is index
|
public | loadSubTemplateByCurrentMenuID() Load subtemplate by current menu ID
|
public | determineWhetherToUseDesktopOrMobileTemplate() Check current visitor's user agent and determine whether we should use the mobile or desktop template
|
public boolean | Run(string $command) Runs command. If return value is true, then it will be displayed as a full page If return value is false, AJAX method is assumed
|
Public Static Methods
public static type | getCurrentFrontendWebsiteTemplateName() Return the current website template name for frontend $SystemDB
|
public static type | getCurrentBackendWebsiteTemplateName() Return the current website template name for frontend $SystemDB
|