Sticky menu

This commit is contained in:
Fred 2019-02-07 15:20:59 +01:00 committed by GitHub
parent 5750945b51
commit b2ba00c297
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,11 +23,14 @@
<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 &&
$this->getUser('password') !== $this->getInput('ZWII_USER_PASSWORD'))
{echo 'id="navfixed"';} ?>
$this->getData(['theme', 'menu', 'fixed']) === true) {
if ($this->getUser('password') !== $this->getInput('ZWII_USER_PASSWORD'))
{echo 'id="navfixedlogout"';}
else
{echo 'id="navfixedconnected"';}
} ?>
>
<div id="toggle"><?php echo template::ico('menu'); ?></div>
<div id="menu" class="