forked from ZwiiCMS-Team/ZwiiCMS
dev21 : solution au problème de la transparence de la bannière.
This commit is contained in:
parent
f8556a6b78
commit
98b3df44c1
@ -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';
|
||||
|
||||
|
@ -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'),
|
||||
|
@ -82,6 +82,7 @@ $("input, select").on("change", function() {
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
// Ajout du css au DOM
|
||||
$("#themePreview").remove();
|
||||
$("<style>")
|
||||
@ -90,6 +91,15 @@ $("input, select").on("change", function() {
|
||||
.text(css)
|
||||
.appendTo("head");
|
||||
});
|
||||
|
||||
$("#themeHeaderImage").on("change", function() {
|
||||
if($("#themeHeaderImage").val()) {
|
||||
$("#themeHeaderBackgroundColorWrapper").slideUp();
|
||||
} else {
|
||||
$("#themeHeaderBackgroundColorWrapper").slideDown();
|
||||
}
|
||||
});
|
||||
|
||||
// Affiche / Cache les options de l'image du fond
|
||||
$("#themeHeaderImage").on("change", function() {
|
||||
if($(this).val()) {
|
||||
|
Loading…
Reference in New Issue
Block a user