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 booleanfindDuplicateItems(array $data)
Given an associative array $data, find possible duplicate from item's table
public booleansetDefaultTheme(bool $is_admin, int $template_id)
Sets the default theme $SystemDB
public intgetDefaultFrontendThemeID()
Return the ID (int) of frontend theme $SystemDB
public intgetDefaultBackendThemeID()
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 booleanRun(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 typegetCurrentFrontendWebsiteTemplateName()
Return the current website template name for frontend $SystemDB
public static typegetCurrentBackendWebsiteTemplateName()
Return the current website template name for frontend $SystemDB