Logout button
This commit is contained in:
parent
100dce4c49
commit
d36205017f
|
@ -90,8 +90,15 @@ li.bludit-logo {
|
||||||
}
|
}
|
||||||
|
|
||||||
.bludit-user-navbar {
|
.bludit-user-navbar {
|
||||||
text-align: right !important;
|
background: #333 none repeat scroll 0 0;
|
||||||
padding-right: 60px !important;
|
border-color: #ccc;
|
||||||
|
border-radius: 0 0 5px 5px !important;
|
||||||
|
color: #fff;
|
||||||
|
position: absolute;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bludit-user-navbar a {
|
||||||
|
color: #fff !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 333px) and (max-width: 959px) {
|
@media (min-width: 333px) and (max-width: 959px) {
|
||||||
|
|
|
@ -100,7 +100,8 @@ $(document).ready(function() {
|
||||||
|
|
||||||
<div class="uk-navbar-flip">
|
<div class="uk-navbar-flip">
|
||||||
<ul class="uk-navbar-nav">
|
<ul class="uk-navbar-nav">
|
||||||
<li>
|
<li class="uk-parent" data-uk-dropdown>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$profilePictureSrc = HTML_PATH_ADMIN_THEME_IMG.'default.png';
|
$profilePictureSrc = HTML_PATH_ADMIN_THEME_IMG.'default.png';
|
||||||
if(file_exists(PATH_UPLOADS_PROFILES.$Login->username().'.png')) {
|
if(file_exists(PATH_UPLOADS_PROFILES.$Login->username().'.png')) {
|
||||||
|
@ -110,6 +111,12 @@ $(document).ready(function() {
|
||||||
<a href="<?php echo HTML_PATH_ADMIN_ROOT.'edit-user/'.$Login->username() ?>">
|
<a href="<?php echo HTML_PATH_ADMIN_ROOT.'edit-user/'.$Login->username() ?>">
|
||||||
<img class="uk-border-circle" width="28px" src="<?php echo $profilePictureSrc ?>" alt=""> Welcome <?php echo $Login->username() ?>
|
<img class="uk-border-circle" width="28px" src="<?php echo $profilePictureSrc ?>" alt=""> Welcome <?php echo $Login->username() ?>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
<div class="uk-dropdown uk-dropdown-navbar bludit-user-navbar">
|
||||||
|
<ul class="uk-nav uk-nav-navbar">
|
||||||
|
<li><a href="<?php echo HTML_PATH_ADMIN_ROOT.'logout' ?>"><?php $L->p('Logout') ?></a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue