couleurs par défaut si theme < 4501
This commit is contained in:
parent
ff7568fb51
commit
f343980a11
|
@ -2688,6 +2688,9 @@ class core extends common {
|
|||
$css .= '}';
|
||||
|
||||
// Menu burger couleurs
|
||||
// Valeurs par défaut si chargement d'un thème < 4501
|
||||
if(is_null($this->getData(['theme', 'menu', 'burgerBackgroundColor'])) || $this->getData(['theme', 'menu', 'burgerBackgroundColor']) === '') $this->setData(['theme', 'menu', 'burgerBackgroundColor', $this->getData(['theme', 'menu', 'backgroundColor']) ]);
|
||||
if(is_null($this->getData(['theme', 'menu', 'burgerBackgroundColorSub'])) || $this->getData(['theme', 'menu', 'burgerBackgroundColorSub']) === '') $this->setData(['theme', 'menu', 'burgerBackgroundColorSub', $this->getData(['theme', 'menu', 'backgroundColorSub']) ]);
|
||||
$css .= '@media (max-width: 799px) {';
|
||||
$colors = helper::colorVariants($this->getData(['theme', 'menu', 'burgerBackgroundColor']));
|
||||
$css .= 'nav #toggle { background-color:'.$this->getData(['theme', 'menu', 'burgerBannerColor']).';}';
|
||||
|
|
Loading…
Reference in New Issue