lizmapTheme
in package
Manage and give access to lizmap theme configuration.
Tags
Table of Contents
Properties
- $additionalCss : mixed
- $dockBackgroundColor : mixed
- $headerBackgroundColor : mixed
- $headerBackgroundImage : mixed
- $headerLogo : mixed
- $headerLogoWidth : mixed
- $headerSubtitleColor : mixed
- $headerTitleColor : mixed
- $menuBackgroundColor : mixed
- $navbarColor : mixed
- $config : mixed
- $data : mixed
- $properties : mixed
Methods
- __construct() : mixed
- getProperties() : mixed
- Get theme properties.
- modify() : mixed
- Modify the theme.
- save() : mixed
- Save the theme.
- update() : mixed
- Update the theme. (modify and save).
- buildCssThemeContent() : mixed
- Build the theme main css content based one the properties saved.
- writeThemeCssFile() : mixed
- Write the theme css file based one the properties saved.
Properties
$additionalCss
public
mixed
$additionalCss
= ''
$dockBackgroundColor
public
mixed
$dockBackgroundColor
= ''
$headerBackgroundColor
public
mixed
$headerBackgroundColor
= ''
$headerBackgroundImage
public
mixed
$headerBackgroundImage
= ''
$headerLogo
public
mixed
$headerLogo
= ''
$headerLogoWidth
public
mixed
$headerLogoWidth
= ''
$headerSubtitleColor
public
mixed
$headerSubtitleColor
= ''
$headerTitleColor
public
mixed
$headerTitleColor
= ''
$menuBackgroundColor
public
mixed
$menuBackgroundColor
= ''
$navbarColor
public
mixed
$navbarColor
= ''
$config
private
mixed
$config
= 'config/lizmapConfig.ini.php'
$data
private
mixed
$data
= array()
$properties
private
mixed
$properties
= array('headerLogo', 'headerLogoWidth', 'headerBackgroundImage', 'headerBackgroundColor', 'headerTitleColor', 'headerSubtitleColor', 'menuBackgroundColor', 'dockBackgroundColor', 'navbarColor', 'additionalCss')
Methods
__construct()
public
__construct() : mixed
getProperties()
Get theme properties.
public
getProperties() : mixed
modify()
Modify the theme.
public
modify(array<string|int, mixed> $data) : mixed
Parameters
- $data : array<string|int, mixed>
-
array containing the data of the theme
save()
Save the theme.
public
save() : mixed
update()
Update the theme. (modify and save).
public
update(array<string|int, mixed> $data) : mixed
Parameters
- $data : array<string|int, mixed>
-
array containing the data of the theme
buildCssThemeContent()
Build the theme main css content based one the properties saved.
private
buildCssThemeContent() : mixed
writeThemeCssFile()
Write the theme css file based one the properties saved.
private
writeThemeCssFile() : mixed