forked from ZwiiCMS-Team/ZwiiCMS
pb de menu fixe après auto logout
This commit is contained in:
parent
2e644e7cd4
commit
de7caa49c1
@ -1698,6 +1698,9 @@ class core extends common {
|
||||
) {
|
||||
$user = new user;
|
||||
$user->logout();
|
||||
// Recharge la classe
|
||||
$core = new core;
|
||||
$core->router();
|
||||
}
|
||||
// Mode maintenance
|
||||
if(
|
||||
|
@ -26,23 +26,17 @@
|
||||
<?php $layout->showNotification(); ?>
|
||||
<?php if($this->getData(['theme', 'menu', 'position']) === 'body-first' || $this->getData(['theme', 'menu', 'position']) === 'top' ): ?>
|
||||
<!-- Menu dans le fond du site avant la bannière -->
|
||||
<nav
|
||||
<?php
|
||||
// Détermine si le menu est fixe en haut de page lorsque l'utilisateur n'est pas connecté
|
||||
//
|
||||
if($this->getData(['theme', 'menu', 'position']) === 'top' &&
|
||||
$this->getData(['theme', 'menu', 'fixed']) === true) {
|
||||
if ($this->getUser('password') === $this->getInput('ZWII_USER_PASSWORD'))
|
||||
{
|
||||
echo 'id="navfixedconnected"';
|
||||
<!-- Détermine si le menu est fixe en haut de page lorsque l'utilisateur n'est pas connecté -->
|
||||
<?php
|
||||
if ( $this->getData(['theme', 'menu', 'position']) === 'top'
|
||||
AND $this->getData(['theme', 'menu', 'fixed']) === true
|
||||
AND $this->getUser('password') === $this->getInput('ZWII_USER_PASSWORD') ) {
|
||||
echo '<nav id="navfixedconnected" >';
|
||||
} else {
|
||||
echo '<nav id="navfixedlogout" >';
|
||||
}
|
||||
else
|
||||
{
|
||||
echo 'id="navfixedlogout"';
|
||||
}
|
||||
}
|
||||
?>
|
||||
>
|
||||
?>
|
||||
<!-- Menu Burger -->
|
||||
<div id="toggle">
|
||||
<?php if ($this->getData(['theme','menu','burgerTitle']) === true ): ?>
|
||||
<div id="burgerText"><?php echo $this->getData(['config','title']);?></div>
|
||||
@ -51,8 +45,7 @@
|
||||
<div id="menu" class="
|
||||
<?php if($this->getData(['theme', 'menu', 'position']) === 'top'){echo 'container-large';}else{echo'container';}
|
||||
?>">
|
||||
|
||||
<?php $layout->showMenu(); ?>
|
||||
<?php $layout->showMenu(); ?>
|
||||
</div> <!--fin menu -->
|
||||
</nav>
|
||||
<?php endif; ?>
|
||||
|
Loading…
Reference in New Issue
Block a user