diff --git a/core/core.php b/core/core.php index 894146d2..92e7a6d4 100644 --- a/core/core.php +++ b/core/core.php @@ -28,7 +28,7 @@ class common { const GROUP_ADMIN = 3; // Numéro de version de développement :/ // Désactive l'update auto - const ZWII_VERSION = '9.0.00-dev20'; + const ZWII_VERSION = '9.0.00-dev21'; // Numéro de version stable //const ZWII_VERSION = '9.0.00'; diff --git a/core/module/theme/theme.php b/core/module/theme/theme.php index d6de85a8..9a8a5393 100755 --- a/core/module/theme/theme.php +++ b/core/module/theme/theme.php @@ -298,8 +298,14 @@ class theme extends common { public function header() { // Soumission du formulaire if($this->isPost()) { + // Si une image est positionnée, l'arrière en transparent. + if ($this->getInput('themeHeaderImage') === "") { + $themeHeaderBackgroundColor = $this->getInput('themeHeaderBackgroundColor'); } + else { + $themeHeaderBackgroundColor = 'rgba(0, 0, 0, 0)'; + } $this->setData(['theme', 'header', [ - 'backgroundColor' => $this->getInput('themeHeaderBackgroundColor'), + 'backgroundColor' => $themeHeaderBackgroundColor, 'font' => $this->getInput('themeHeaderFont'), 'fontSize' => $this->getInput('themeHeaderFontSize'), 'fontWeight' => $this->getInput('themeHeaderFontWeight'), diff --git a/core/module/theme/view/header/header.js.php b/core/module/theme/view/header/header.js.php index 7185a25e..949d353c 100755 --- a/core/module/theme/view/header/header.js.php +++ b/core/module/theme/view/header/header.js.php @@ -82,6 +82,7 @@ $("input, select").on("change", function() { } break; } + // Ajout du css au DOM $("#themePreview").remove(); $("