idem pour le menu variable wide

This commit is contained in:
Fred Tempez 2021-11-15 22:25:26 +01:00
parent 14975789c4
commit ded4ed6052
2 changed files with 3 additions and 3 deletions

View File

@ -56,7 +56,7 @@
$menuClass = $this->getData(['theme', 'menu', 'position']) === 'top' ? 'class="container-large"' : 'class="container"';
$menuClass = ($this->getData(['theme', 'menu', 'position']) === 'body-first' ||
$this->getData(['theme', 'menu', 'position']) === 'body-second' ) &&
$this->getData(['theme', 'menu', 'width']) === 'none' // étendue sur la page
$this->getData(['theme', 'menu', 'wide']) === 'none' // étendue sur la page
? 'class="container-large"' : 'class="container"';
?>
<div id="menu" <?php echo $menuClass; ?> >
@ -107,7 +107,7 @@
$menuClass = $this->getData(['theme', 'menu', 'position']) === 'top' ? 'class="container-large"' : 'class="container"';
$menuClass = ($this->getData(['theme', 'menu', 'position']) === 'body-first' ||
$this->getData(['theme', 'menu', 'position']) === 'body-second' ) &&
$this->getData(['theme', 'menu', 'width']) === 'none' // étendue sur la page
$this->getData(['theme', 'menu', 'wide']) === 'none' // étendue sur la page
? 'class="container-large"' : 'class="container"';
?>
<div id="menu" <?php echo $menuClass; ?> >

View File

@ -43,7 +43,7 @@
<div class="col6">
<?php echo template::select('themeMenuWide', $module::$containerWides, [
'label' => 'Largeur',
'selected' => $this->getData(['theme', 'menu', 'width'])
'selected' => $this->getData(['theme', 'menu', 'wide'])
]); ?>
</div>
</div>