mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
# WARNING: head commit changed in the meantime
Merge
This commit is contained in:
commit
70f22f2648
|
|
@ -1849,15 +1849,16 @@ function top_menu_user($hideloginname = 0, $urllogout = '')
|
|||
global $dolibarr_main_authentication, $dolibarr_main_demo;
|
||||
global $menumanager;
|
||||
|
||||
$userImage = $userDropDownImage = '';
|
||||
if (!empty($user->photo))
|
||||
{
|
||||
$userImage = Form::showphoto('userphoto', $user, 0, 0, 0, 'photouserphoto userphoto', 'small', 0, 1);
|
||||
$userDropDownImage = Form::showphoto('userphoto', $user, 0, 0, 0, 'dropdown-user-image', 'small', 0, 1);
|
||||
} else {
|
||||
$nophoto = '/public/theme/common/user_anonymous.png';
|
||||
if ($user->gender == 'man') $nophoto = '/public/theme/common/user_man.png';
|
||||
if ($user->gender == 'woman') $nophoto = '/public/theme/common/user_woman.png';
|
||||
$langs->load('companies');
|
||||
|
||||
$userImage = $userDropDownImage = '';
|
||||
if (!empty($user->photo)) {
|
||||
$userImage = Form::showphoto('userphoto', $user, 0, 0, 0, 'photouserphoto userphoto', 'small', 0, 1);
|
||||
$userDropDownImage = Form::showphoto('userphoto', $user, 0, 0, 0, 'dropdown-user-image', 'small', 0, 1);
|
||||
} else {
|
||||
$nophoto = '/public/theme/common/user_anonymous.png';
|
||||
if ($user->gender == 'man') $nophoto = '/public/theme/common/user_man.png';
|
||||
if ($user->gender == 'woman') $nophoto = '/public/theme/common/user_woman.png';
|
||||
|
||||
$userImage = '<img class="photo photouserphoto userphoto" alt="No photo" src="'.DOL_URL_ROOT.$nophoto.'">';
|
||||
$userDropDownImage = '<img class="photo dropdown-user-image" alt="No photo" src="'.DOL_URL_ROOT.$nophoto.'">';
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user