diff --git a/core/core.php b/core/core.php index 01d5b49e..a4a979d5 100644 --- a/core/core.php +++ b/core/core.php @@ -2276,15 +2276,16 @@ class core extends common { $css .= 'header{margin:20px 20px 0 20px}'; } } + // Couleur du fonc + $colors = helper::colorVariants($this->getData(['theme', 'header', 'backgroundColor'])); + $css .= 'header{background-color:' . $colors['normal'].'}'; + if ($this->getData(['theme','header','feature']) === 'wallpaper' ) { - $colors = helper::colorVariants($this->getData(['theme', 'header', 'backgroundColor'])); - $css .= 'header{background-size:' . $this->getData(['theme','header','imageContainer']).'}'; - $css .= 'header{background-color:' . $colors['normal']; + $css .= 'header{background-size:' . $this->getData(['theme','header','imageContainer']).';}'; + // Valeur de hauteur traditionnelle - $css .= ';height:' . $this->getData(['theme', 'header', 'height']) . ';line-height:' . $this->getData(['theme', 'header', 'height']) ; - - $css .= ';text-align:' . $this->getData(['theme', 'header', 'textAlign']) . '}'; + $css .= 'header{height:' . $this->getData(['theme', 'header', 'height']) . ';line-height:' . $this->getData(['theme', 'header', 'height']) . ';text-align:' . $this->getData(['theme', 'header', 'textAlign']) . '}'; if($themeHeaderImage = $this->getData(['theme', 'header', 'image'])) { $css .= 'header{background-image:url("../file/source/' . $themeHeaderImage . '");background-position:' . $this->getData(['theme', 'header', 'imagePosition']) . ';background-repeat:' . $this->getData(['theme', 'header', 'imageRepeat']) . '}'; }