Themes manager.
More...
Themes manager.
Ubiquity\themes$ThemesManager This class is part of Ubiquity
- Author
- jcheron myadd.nosp@m.ress.nosp@m.mail@.nosp@m.gmai.nosp@m.l.com
- Version
- 1.1.1
- Since
- Ubiquity 2.1.0
Definition at line 22 of file ThemesManager.php.
◆ getActiveTheme()
static getActiveTheme |
( |
| ) |
|
|
static |
◆ getAvailableThemes()
static getAvailableThemes |
( |
| ) |
|
|
static |
Returns the names of available themes.
- Returns
- string[]
Definition at line 68 of file ThemesManager.php.
◆ getNotInstalledThemes()
static getNotInstalledThemes |
( |
| ) |
|
|
static |
◆ getRefThemes()
Returns all referenced themes.
- Returns
- string[]
Definition at line 83 of file ThemesManager.php.
◆ isCustom()
static isCustom |
( |
string |
$theme | ) |
|
|
static |
Returns if a theme is a custom Theme (not in refThemes).
- Parameters
-
- Returns
- boolean
Definition at line 93 of file ThemesManager.php.
◆ onAfterRender()
static onAfterRender |
( |
|
$callback | ) |
|
|
static |
Adds a listener after theme rendering.
The callback function takes the following parameters: $render (the response string), $view (the view name), $pData (array of datas sent to the view)
- Parameters
-
Definition at line 123 of file ThemesManager.php.
◆ onBeforeRender()
static onBeforeRender |
( |
|
$callback | ) |
|
|
static |
Adds a listener before theme rendering.
The callback function takes the following parameters: $view (the view name), $pData (array of datas sent to the view)
- Parameters
-
Definition at line 113 of file ThemesManager.php.
◆ saveActiveTheme()
static saveActiveTheme |
( |
string |
$theme | ) |
|
|
static |
◆ setActiveTheme()
static setActiveTheme |
( |
string |
$activeTheme | ) |
|
|
static |
◆ setActiveThemeFromTwig()
static setActiveThemeFromTwig |
( |
string |
$activeTheme | ) |
|
|
static |
◆ $activeTheme
◆ $refThemes
$refThemes = ['bootstrap', 'foundation', 'semantic'] |
|
staticprivate |
◆ THEMES_FOLDER
const THEMES_FOLDER = 'themes' |
The documentation for this class was generated from the following file:
- C:/Users/myadd/Documents/GitHub/ubiquity-doc-api/vendor/phpmv/ubiquity/src/Ubiquity/themes/ThemesManager.php