ThemeControl
in package
Table of Contents
- $categoryListingTemplatePath : string
- $currentTemplate : string
- $currentTheme : string
- $db : CI_DB_query_builder
- $dynamicCssFilePath : string
- $filterSectionTemplatePath : string
- $gmProductOptionsTemplatePath : string
- $productInfoTemplatePath : string
- $productListingTemplatePath : string
- $productOptionsTemplatePath : string
- $propertiesTemplatePath : string
- $publishedThemePath : string
- $templateSettingsFilePath : string
- $themeConfigPath : string
- $themeCssPath : string
- $themeFontsPath : string
- $themeHtmlPath : string
- $themeImagePath : string
- $themeJsPath : string
- $themePath : string
- $themeSettings : array<string|int, mixed>
- $themeSmartyPath : string
- $themesPath : string
- $themeSystemActive : bool
- $themeVersion : float
- $viewSettings : ViewSettings
- __construct() : mixed
- ThemeControl constructor.
- getCategoryListingTemplatePath() : string
- Returns the path to the category listing templates directory, based on the shop root directory.
- getCompiledTemplatesFolder() : string
- getCurrentTheme() : string
- Returns the current theme name. If the theme system is not active, the current template name will be returned.
- getCurrentThemeHierarchy() : array<string|int, mixed>
- Returns the current theme hierarchy. If the theme system is not active, the current template name will be returned as array.
- getDynamicCssFilePath() : string
- Returns the path to the dynamic css file, based on the shop root directory.
- getFilterSelectionTemplatePath() : string
- Returns the path to the category listing templates directory, based on the shop root directory.
- getGmProductOptionsTemplatePath() : string
- Returns the path to the gm product option templates directory, based on the shop root directory.
- getProductInfoTemplatePath() : string
- Returns the path to the product info templates directory, based on the shop root directory.
- getProductListingTemplatePath() : string
- Returns the path to the product listing templates directory, based on the shop root directory.
- getProductOptionsTemplatePath() : string
- Returns the path to the product options templates directory, based on the shop root directory.
- getPropertiesTemplatePath() : string
- Returns the path to the properties templates directory, based on the shop root directory.
- getPublishedThemePath() : string
- Returns the path to the published theme path.
- getTemplateSettingsFilePath() : string
- Returns the path to the template settings file, based on the shop root directory.
- getThemeConfigPath() : string
- Returns the path to the theme config directory, based on the shop root directory.
- getThemeCssPath() : string
- Returns the path to the theme css directory, based on the shop root directory.
- getThemeFontsPath() : string
- Returns the path to the theme image directory, based on the shop root directory.
- getThemeHtmlPath() : string
- Returns the path to the theme html directory, based on the shop root directory.
- getThemeImagePath() : string
- Returns the path to the theme image directory, based on the shop root directory.
- getThemeJsPath() : string
- Returns the path to the theme javascript directory, based on the shop root directory.
- getThemePath() : string
- Returns the path to the theme, based on the shop root directory.
- getThemeSettings() : array<string|int, mixed>
- Returns the path to the template settings file, based on the shop root directory.
- getThemeSmartyPath() : string
- Returns the path to the theme smarty directory, based on the shop root directory.
- getThemesPath() : string
- Returns the path to the themes, based on the shop root directory.
- getThemeVersion() : float
- Returns the path to the template settings file, based on the shop root directory.
- getViewSettings() : ViewSettings
- isThemeSystemActive() : bool
- Returns the status of the theme system. True, if theme system is active, otherwise false.
- _determineCurrentThemeStatus() : mixed
- Determines the current theme name and theme system status.
Properties
$categoryListingTemplatePath
protected
string
$categoryListingTemplatePath
$currentTemplate
protected
string
$currentTemplate
$currentTheme
protected
string
$currentTheme
$db
protected
CI_DB_query_builder
$db
$dynamicCssFilePath
protected
string
$dynamicCssFilePath
$filterSectionTemplatePath
protected
string
$filterSectionTemplatePath
$gmProductOptionsTemplatePath
protected
string
$gmProductOptionsTemplatePath
$productInfoTemplatePath
protected
string
$productInfoTemplatePath
$productListingTemplatePath
protected
string
$productListingTemplatePath
$productOptionsTemplatePath
protected
string
$productOptionsTemplatePath
$propertiesTemplatePath
protected
string
$propertiesTemplatePath
$publishedThemePath
protected
string
$publishedThemePath
$templateSettingsFilePath
protected
string
$templateSettingsFilePath
$themeConfigPath
protected
string
$themeConfigPath
$themeCssPath
protected
string
$themeCssPath
$themeFontsPath
protected
string
$themeFontsPath
$themeHtmlPath
protected
string
$themeHtmlPath
$themeImagePath
protected
string
$themeImagePath
$themeJsPath
protected
string
$themeJsPath
$themePath
protected
string
$themePath
$themeSettings
protected
array<string|int, mixed>
$themeSettings
$themeSmartyPath
protected
string
$themeSmartyPath
$themesPath
protected
string
$themesPath
$themeSystemActive
protected
bool
$themeSystemActive
$themeVersion
protected
float
$themeVersion
$viewSettings
protected
ViewSettings
$viewSettings
=
ull
Methods
__construct()
ThemeControl constructor.
public
__construct(ViewSettings $viewSettings) : mixed
Parameters
- $viewSettings : ViewSettings
Return values
mixed —getCategoryListingTemplatePath()
Returns the path to the category listing templates directory, based on the shop root directory.
public
getCategoryListingTemplatePath() : string
Return values
string —getCompiledTemplatesFolder()
public
getCompiledTemplatesFolder() : string
Return values
string —getCurrentTheme()
Returns the current theme name. If the theme system is not active, the current template name will be returned.
public
getCurrentTheme() : string
Return values
string —getCurrentThemeHierarchy()
Returns the current theme hierarchy. If the theme system is not active, the current template name will be returned as array.
public
getCurrentThemeHierarchy() : array<string|int, mixed>
Return values
array<string|int, mixed> —getDynamicCssFilePath()
Returns the path to the dynamic css file, based on the shop root directory.
public
getDynamicCssFilePath() : string
Return values
string —getFilterSelectionTemplatePath()
Returns the path to the category listing templates directory, based on the shop root directory.
public
getFilterSelectionTemplatePath() : string
Return values
string —getGmProductOptionsTemplatePath()
Returns the path to the gm product option templates directory, based on the shop root directory.
public
getGmProductOptionsTemplatePath() : string
Return values
string —getProductInfoTemplatePath()
Returns the path to the product info templates directory, based on the shop root directory.
public
getProductInfoTemplatePath() : string
Return values
string —getProductListingTemplatePath()
Returns the path to the product listing templates directory, based on the shop root directory.
public
getProductListingTemplatePath() : string
Return values
string —getProductOptionsTemplatePath()
Returns the path to the product options templates directory, based on the shop root directory.
public
getProductOptionsTemplatePath() : string
Return values
string —getPropertiesTemplatePath()
Returns the path to the properties templates directory, based on the shop root directory.
public
getPropertiesTemplatePath() : string
Return values
string —getPublishedThemePath()
Returns the path to the published theme path.
public
getPublishedThemePath() : string
Return values
string —getTemplateSettingsFilePath()
Returns the path to the template settings file, based on the shop root directory.
public
getTemplateSettingsFilePath() : string
Return values
string —getThemeConfigPath()
Returns the path to the theme config directory, based on the shop root directory.
public
getThemeConfigPath() : string
Return values
string —getThemeCssPath()
Returns the path to the theme css directory, based on the shop root directory.
public
getThemeCssPath() : string
Return values
string —getThemeFontsPath()
Returns the path to the theme image directory, based on the shop root directory.
public
getThemeFontsPath() : string
Return values
string —getThemeHtmlPath()
Returns the path to the theme html directory, based on the shop root directory.
public
getThemeHtmlPath() : string
Return values
string —getThemeImagePath()
Returns the path to the theme image directory, based on the shop root directory.
public
getThemeImagePath() : string
Return values
string —getThemeJsPath()
Returns the path to the theme javascript directory, based on the shop root directory.
public
getThemeJsPath() : string
Return values
string —getThemePath()
Returns the path to the theme, based on the shop root directory.
public
getThemePath() : string
Return values
string —getThemeSettings()
Returns the path to the template settings file, based on the shop root directory.
public
getThemeSettings() : array<string|int, mixed>
Return values
array<string|int, mixed> —getThemeSmartyPath()
Returns the path to the theme smarty directory, based on the shop root directory.
public
getThemeSmartyPath() : string
Return values
string —getThemesPath()
Returns the path to the themes, based on the shop root directory.
public
getThemesPath() : string
Return values
string —getThemeVersion()
Returns the path to the template settings file, based on the shop root directory.
public
getThemeVersion() : float
Return values
float —getViewSettings()
public
getViewSettings() : ViewSettings
Return values
ViewSettings —isThemeSystemActive()
Returns the status of the theme system. True, if theme system is active, otherwise false.
public
isThemeSystemActive() : bool
Return values
bool —_determineCurrentThemeStatus()
Determines the current theme name and theme system status.
protected
_determineCurrentThemeStatus() : mixed