This commit is contained in:
Laurent Destailleur 2019-05-21 12:36:18 +02:00
parent 6365c7cd00
commit 54441a1abd
4 changed files with 28 additions and 8 deletions

View File

@ -1811,11 +1811,11 @@ function top_menu_user(User $user, Translate $langs)
$btnUser = '
<div id="topmenu-login-dropdown" class="userimg atoplogin dropdown user user-menu">
<a href="'.DOL_URL_ROOT.'/user/card.php?id='.$user->id.'" class="dropdown-toggle" data-toggle="dropdown">
<a href="'.DOL_URL_ROOT.'/user/card.php?id='.$user->id.'" class="dropdown-toggle login-dropdown-a" data-toggle="dropdown">
'.$userImage.'
<span class="hidden-xs maxwidth200 atoploginusername">'.dol_trunc($user->firstname ? $user->firstname : $user->login, 10).'</span>
<span class="fa fa-chevron-down" id="dropdown-icon-down"></span>
<span class="fa fa-chevron-up hidden" id="dropdown-icon-up"></span>
<span class="fa fa-chevron-down login-dropdown-btn" id="dropdown-icon-down"></span>
<span class="fa fa-chevron-up login-dropdown-btn hidden" id="dropdown-icon-up"></span>
</a>
<div class="dropdown-menu">
<!-- User image -->

View File

@ -1,9 +1,9 @@
<?php
if (! defined('ISLOADEDBYSTEELSHEET')) die('Must be call by steelsheet'); ?>
/* <style type="text/css" > */
/*
Dropdown
*/
* Dropdown
*/
.open>.dropdown-menu{ /*, #topmenu-login-dropdown:hover .dropdown-menu*/
display: block;

View File

@ -0,0 +1,18 @@
<?php
if (! defined('ISLOADEDBYSTEELSHEET')) die('Must be call by steelsheet'); ?>
/*
* Dropdown
*/
/* Not supported yet by this theme */
#dropdown-icon-up, #dropdown-icon-down, .login-dropdown-btn {
display: none !important;
}
/* Disable the hover underline on the login */
a.login-dropdown-a:hover, a.login-dropdown-a span:hover {
text-decoration: none !important;
cursor: default;
}

View File

@ -5808,8 +5808,10 @@ border-top-right-radius: 6px;
<?php if (! defined('DISABLE_FONT_AWSOME') && empty($conf->global->MAIN_DISABLE_FONT_AWESOME_5)) { ?>
<?php include dol_buildpath($path.'/theme/'.$theme.'/main_menu_fa_icons.inc.php', 0); ?>
<?php } ?>
<?php }
include dol_buildpath($path.'/theme/'.$theme.'/dropdown.inc.php', 0);
<?php
if (is_object($db)) $db->close();