From 98b3df44c15cf32b3971ccea7b64585852913b09 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Tue, 26 Feb 2019 13:46:25 +0100 Subject: [PATCH] =?UTF-8?q?dev21=20:=20solution=20au=20probl=C3=A8me=20de?= =?UTF-8?q?=20la=20transparence=20de=20la=20banni=C3=A8re.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core.php | 2 +- core/module/theme/theme.php | 8 +++++++- core/module/theme/view/header/header.js.php | 10 ++++++++++ 3 files changed, 18 insertions(+), 2 deletions(-) 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(); $("