diff --git a/core/layout/main.php b/core/layout/main.php index be95c35d..67d8664a 100644 --- a/core/layout/main.php +++ b/core/layout/main.php @@ -62,7 +62,7 @@ getData(['theme', 'header', 'position']) === 'hide' ? 'displayNone' : ' '; $headerClass .= $this->getData(['theme', 'header', 'tinyHidden']) ? ' bannerDisplay ' : ' '; - $headerClass .= $this->getData(['theme', 'header', 'container']); + $headerClass .= $this->getData(['theme', 'header', 'container']) === 'none' ? '' : 'container'; ?>
getData(['theme','header','linkHomePage']) && $this->getData(['theme','header','feature']) === 'wallpaper' ) ? '' : ''; ?> diff --git a/core/module/theme/theme.php b/core/module/theme/theme.php index 16f727f8..3c0af9f3 100644 --- a/core/module/theme/theme.php +++ b/core/module/theme/theme.php @@ -71,7 +71,7 @@ class theme extends common { ]; public static $containers = [ 'container' => 'Du site', - '' => 'De la page' + 'none' => 'De la page' ]; public static $footerblocks = [ 1 => [ diff --git a/core/module/theme/view/header/header.js.php b/core/module/theme/view/header/header.js.php index 156435b3..a71c463f 100644 --- a/core/module/theme/view/header/header.js.php +++ b/core/module/theme/view/header/header.js.php @@ -169,12 +169,10 @@ $("input, select").on("change", function() { // Largeur du header switch ($("#themeHeaderContainer").val()) { case "container": - $("header").removeClass("container-large"); $("header").addClass("container"); break; - case "container-large": + case "none": $("header").removeClass("container"); - $("header").addClass("container-large"); break; }