forked from ZwiiCMS-Team/ZwiiCMS
Mini barre pour les MEMBRES
This commit is contained in:
parent
361b11f840
commit
afab6d5258
@ -2234,8 +2234,12 @@ class layout extends common {
|
||||
}
|
||||
$rightItems .= '<li><a href="' . helper::baseUrl() . 'user/edit/' . $this->getUser('id'). '/' . $_SESSION['csrf'] . '" title="Configurer mon compte">' . template::ico('user', 'right') . $this->getUser('firstname') . ' ' . $this->getUser('lastname') . '</a></li>';
|
||||
$rightItems .= '<li><a id="barLogout" href="' . helper::baseUrl() . 'user/logout" title="Se déconnecter">' . template::ico('logout') . '</a></li>';
|
||||
// Barre de membre
|
||||
echo '<div id="bar"><div class="container"><ul id="barLeft">' . $leftItems . '</ul><ul id="barRight">' . $rightItems . '</ul></div></div>';
|
||||
// Barre de membre pleine ou limitée selon les droits de l'utilisateur
|
||||
if($this->getUser('group') === self::GROUP_MEMBER) {
|
||||
echo '<div id="bar"><ul id="barMember">' . $rightItems . '</ul></div>';
|
||||
} else {
|
||||
echo '<div id="bar"><div class="container"><ul id="barLeft">' . $leftItems . '</ul><ul id="barRight">' . $rightItems . '</ul></div></div>';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -226,7 +226,7 @@ td > .col12 {
|
||||
.container-large-fixed {
|
||||
width: 100%;
|
||||
position:fixed;
|
||||
z-index: 100;
|
||||
z-index: 50;
|
||||
}
|
||||
|
||||
/* Barre de membre */
|
||||
@ -236,6 +236,25 @@ td > .col12 {
|
||||
margin: 0 -10px;
|
||||
text-align: right;
|
||||
}
|
||||
/* Barre pour les membres */
|
||||
#bar #barMember {
|
||||
float: right;
|
||||
font-size: .8em;
|
||||
position: fixed;
|
||||
z-index: 60;
|
||||
right: 10px;
|
||||
top: 10px;;
|
||||
padding: 5px;
|
||||
background: rgba(33, 34, 35, .8);
|
||||
color: #FFF;
|
||||
height: 55px;
|
||||
-webkit-transition: background.3s ease-out;
|
||||
transition: background .3s ease-out;
|
||||
-moz-border-radius:10px;
|
||||
-webkit-border-radius:10px;
|
||||
border-radius:10px;
|
||||
}
|
||||
/* fin barre pour les membres */
|
||||
#bar:after {
|
||||
content: " ";
|
||||
clear: both;
|
||||
|
Loading…
x
Reference in New Issue
Block a user