Largeur de la page sans la marge à droite

This commit is contained in:
fredtempez 2021-11-12 10:59:09 +01:00
parent 0c1c3a7423
commit a1e274537e
3 changed files with 3 additions and 5 deletions

View File

@ -62,7 +62,7 @@
<?php
$headerClass = $this->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';
?>
<header class="<?php echo $headerClass;?>">
<?php echo ($this->getData(['theme','header','linkHomePage']) && $this->getData(['theme','header','feature']) === 'wallpaper' ) ? '<a href="' . helper::baseUrl(false) . '">' : ''; ?>

View File

@ -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 => [

View File

@ -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;
}