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 <?php
$headerClass = $this->getData(['theme', 'header', 'position']) === 'hide' ? 'displayNone' : ' '; $headerClass = $this->getData(['theme', 'header', 'position']) === 'hide' ? 'displayNone' : ' ';
$headerClass .= $this->getData(['theme', 'header', 'tinyHidden']) ? ' bannerDisplay ' : ' '; $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;?>"> <header class="<?php echo $headerClass;?>">
<?php echo ($this->getData(['theme','header','linkHomePage']) && $this->getData(['theme','header','feature']) === 'wallpaper' ) ? '<a href="' . helper::baseUrl(false) . '">' : ''; ?> <?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 = [ public static $containers = [
'container' => 'Du site', 'container' => 'Du site',
'' => 'De la page' 'none' => 'De la page'
]; ];
public static $footerblocks = [ public static $footerblocks = [
1 => [ 1 => [

View File

@ -169,12 +169,10 @@ $("input, select").on("change", function() {
// Largeur du header // Largeur du header
switch ($("#themeHeaderContainer").val()) { switch ($("#themeHeaderContainer").val()) {
case "container": case "container":
$("header").removeClass("container-large");
$("header").addClass("container"); $("header").addClass("container");
break; break;
case "container-large": case "none":
$("header").removeClass("container"); $("header").removeClass("container");
$("header").addClass("container-large");
break; break;
} }