couleurs par défaut si theme < 4501

This commit is contained in:
Deltacms 2023-10-17 09:25:47 +02:00
parent ff7568fb51
commit f343980a11
1 changed files with 3 additions and 0 deletions

View File

@ -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']).';}';