forked from ZwiiCMS-Team/ZwiiCMS
[9.2.15] correction update + titre dans menu réduit
This commit is contained in:
parent
a44cbc5fbf
commit
7a02b8524d
@ -1031,6 +1031,12 @@ class common {
|
|||||||
$this->setData(['core', 'dataVersion', 9212]);
|
$this->setData(['core', 'dataVersion', 9212]);
|
||||||
$this->saveData();
|
$this->saveData();
|
||||||
}
|
}
|
||||||
|
// Version 9.2.15
|
||||||
|
if($this->getData(['core', 'dataVersion']) < 9215) {
|
||||||
|
// Données de la barre de langue dans le menu
|
||||||
|
$this->setData(['theme','menu','burgerTitle',true]);
|
||||||
|
$this->setData(['core', 'dataVersion', 9215]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -434,10 +434,17 @@ nav #toggle {
|
|||||||
display: none;
|
display: none;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
nav #toggle span {
|
nav #toggle span {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
nav #burgerText {
|
||||||
|
float: left;
|
||||||
|
font-size: 1.4em;
|
||||||
|
margin: 15px 0 0 10px;
|
||||||
|
}
|
||||||
|
|
||||||
nav ul {
|
nav ul {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
@ -37,7 +37,11 @@
|
|||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
>
|
>
|
||||||
<div id="toggle"><?php echo template::ico('menu',null,null,'2em'); ?></div>
|
<div id="toggle">
|
||||||
|
<?php if ($this->getData(['theme','menu','burgerTitle']) === true ): ?>
|
||||||
|
<div id="burgerText"><?php echo $this->getData(['config','title']);?></div>
|
||||||
|
<?php endif; ?>
|
||||||
|
<?php echo template::ico('menu',null,null,'2em'); ?></div>
|
||||||
<div id="menu" class="
|
<div id="menu" class="
|
||||||
<?php if($this->getData(['theme', 'menu', 'position']) === 'top'){echo 'container-large';}else{echo'container';}
|
<?php if($this->getData(['theme', 'menu', 'position']) === 'top'){echo 'container-large';}else{echo'container';}
|
||||||
?>">
|
?>">
|
||||||
@ -72,7 +76,11 @@
|
|||||||
<?php if($this->getData(['theme', 'menu', 'position']) === 'body-second'): ?>
|
<?php if($this->getData(['theme', 'menu', 'position']) === 'body-second'): ?>
|
||||||
<!-- Menu dans le fond du site après la bannière -->
|
<!-- Menu dans le fond du site après la bannière -->
|
||||||
<nav>
|
<nav>
|
||||||
<div id="toggle"><?php echo template::ico('menu',null,null,'2em'); ?></div>
|
<div id="toggle">
|
||||||
|
<?php if ($this->getData(['theme','menu','burgerTitle']) === true ): ?>
|
||||||
|
<div id="burgerText"><?php echo $this->getData(['config','title']);?></div>
|
||||||
|
<?php endif; ?>
|
||||||
|
<?php echo template::ico('menu',null,null,'2em'); ?></div>
|
||||||
<div id="menu" class="container"><?php $layout->showMenu(); ?></div>
|
<div id="menu" class="container"><?php $layout->showMenu(); ?></div>
|
||||||
</nav>
|
</nav>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
@ -81,7 +89,11 @@
|
|||||||
<?php if($this->getData(['theme', 'menu', 'position']) === 'site-first'): ?>
|
<?php if($this->getData(['theme', 'menu', 'position']) === 'site-first'): ?>
|
||||||
<!-- Menu dans le site avant la bannière -->
|
<!-- Menu dans le site avant la bannière -->
|
||||||
<nav>
|
<nav>
|
||||||
<div id="toggle"><?php echo template::ico('menu',null,null,'2em'); ?></div>
|
<div id="toggle">
|
||||||
|
<?php if ($this->getData(['theme','menu','burgerTitle']) === true ): ?>
|
||||||
|
<div id="burgerText"><?php echo $this->getData(['config','title']);?></div>
|
||||||
|
<?php endif; ?>
|
||||||
|
<?php echo template::ico('menu',null,null,'2em'); ?></div>
|
||||||
<div id="menu" class="container"><?php $layout->showMenu(); ?></div>
|
<div id="menu" class="container"><?php $layout->showMenu(); ?></div>
|
||||||
</nav>
|
</nav>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
@ -124,7 +136,11 @@
|
|||||||
): ?>
|
): ?>
|
||||||
<!-- Menu dans le site après la bannière -->
|
<!-- Menu dans le site après la bannière -->
|
||||||
<nav <?php if($this->getData(['theme', 'menu', 'position']) === 'hide'): ?>class="displayNone"<?php endif; ?>>
|
<nav <?php if($this->getData(['theme', 'menu', 'position']) === 'hide'): ?>class="displayNone"<?php endif; ?>>
|
||||||
<div id="toggle"><?php echo template::ico('menu',null,null,'2em'); ?></div>
|
<div id="toggle">
|
||||||
|
<?php if ($this->getData(['theme','menu','burgerTitle']) === true ): ?>
|
||||||
|
<div id="burgerText"><?php echo $this->getData(['config','title']);?></div>
|
||||||
|
<?php endif; ?>
|
||||||
|
<?php echo template::ico('menu',null,null,'2em'); ?></div>
|
||||||
<div id="menu" class="container"><?php $layout->showMenu(); ?></div>
|
<div id="menu" class="container"><?php $layout->showMenu(); ?></div>
|
||||||
</nav>
|
</nav>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
@ -473,6 +473,7 @@ class install extends common {
|
|||||||
'fontWeight' => 'normal',
|
'fontWeight' => 'normal',
|
||||||
'height' => '15px 10px',
|
'height' => '15px 10px',
|
||||||
'loginLink' => true,
|
'loginLink' => true,
|
||||||
|
'burgerTitle' => true,
|
||||||
'margin' => false,
|
'margin' => false,
|
||||||
'position' => 'site-second',
|
'position' => 'site-second',
|
||||||
'textAlign' => 'left',
|
'textAlign' => 'left',
|
||||||
@ -480,7 +481,8 @@ class install extends common {
|
|||||||
'textTransform' => 'none',
|
'textTransform' => 'none',
|
||||||
'fixed' => false,
|
'fixed' => false,
|
||||||
'activeColor' => 'rgba(255, 255, 255, 1)',
|
'activeColor' => 'rgba(255, 255, 255, 1)',
|
||||||
'activeColorAuto' => true
|
'activeColorAuto' => true,
|
||||||
|
|
||||||
],
|
],
|
||||||
'site' => [
|
'site' => [
|
||||||
'backgroundColor' => 'rgba(255, 255, 255, 1)',
|
'backgroundColor' => 'rgba(255, 255, 255, 1)',
|
||||||
|
@ -453,7 +453,8 @@ class theme extends common {
|
|||||||
'fixed' => $this->getInput('themeMenuFixed', helper::FILTER_BOOLEAN),
|
'fixed' => $this->getInput('themeMenuFixed', helper::FILTER_BOOLEAN),
|
||||||
'activeColorAuto' => $this->getInput('themeMenuActiveColorAuto', helper::FILTER_BOOLEAN),
|
'activeColorAuto' => $this->getInput('themeMenuActiveColorAuto', helper::FILTER_BOOLEAN),
|
||||||
'activeColor' => $this->getInput('themeMenuActiveColor'),
|
'activeColor' => $this->getInput('themeMenuActiveColor'),
|
||||||
'radius' => $this->getInput('themeMenuRadius')
|
'radius' => $this->getInput('themeMenuRadius'),
|
||||||
|
'burgerTitle' => $this->getInput('themeMenuBurgerTitle', helper::FILTER_BOOLEAN)
|
||||||
]]);
|
]]);
|
||||||
// Valeurs en sortie
|
// Valeurs en sortie
|
||||||
$this->addOutput([
|
$this->addOutput([
|
||||||
|
@ -57,10 +57,20 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col12">
|
<div class="col12">
|
||||||
<div class="block">
|
<div class="block">
|
||||||
<h4>Contenu</h4>
|
<h4>Contenus</h4>
|
||||||
<?php echo template::checkbox('themeMenuLoginLink', true, 'Lien de connexion', [
|
<div class="row">
|
||||||
'checked' => $this->getData(['theme', 'menu', 'loginLink'])
|
<div class="col6">
|
||||||
]); ?>
|
<?php echo template::checkbox('themeMenuLoginLink', true, 'Lien de connexion', [
|
||||||
|
'checked' => $this->getData(['theme', 'menu', 'loginLink'])
|
||||||
|
]); ?>
|
||||||
|
</div>
|
||||||
|
<div class="col6">
|
||||||
|
<?php echo template::checkbox('themeMenuBurgerTitle', true, 'Titre du site dans le menu réduit', [
|
||||||
|
'checked' => $this->getData(['theme', 'menu', 'burgerTitle']),
|
||||||
|
'help' => 'Le menu burger remplace le menu complet lorsque la largeur de l\'écran n\'est pas suffisante.'
|
||||||
|
]); ?>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user