# 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 $dolibarr_main_authentication, $dolibarr_main_demo;
|
||||||
global $menumanager;
|
global $menumanager;
|
||||||
|
|
||||||
$userImage = $userDropDownImage = '';
|
$langs->load('companies');
|
||||||
if (!empty($user->photo))
|
|
||||||
{
|
$userImage = $userDropDownImage = '';
|
||||||
$userImage = Form::showphoto('userphoto', $user, 0, 0, 0, 'photouserphoto userphoto', 'small', 0, 1);
|
if (!empty($user->photo)) {
|
||||||
$userDropDownImage = Form::showphoto('userphoto', $user, 0, 0, 0, 'dropdown-user-image', 'small', 0, 1);
|
$userImage = Form::showphoto('userphoto', $user, 0, 0, 0, 'photouserphoto userphoto', 'small', 0, 1);
|
||||||
} else {
|
$userDropDownImage = Form::showphoto('userphoto', $user, 0, 0, 0, 'dropdown-user-image', 'small', 0, 1);
|
||||||
$nophoto = '/public/theme/common/user_anonymous.png';
|
} else {
|
||||||
if ($user->gender == 'man') $nophoto = '/public/theme/common/user_man.png';
|
$nophoto = '/public/theme/common/user_anonymous.png';
|
||||||
if ($user->gender == 'woman') $nophoto = '/public/theme/common/user_woman.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.'">';
|
$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.'">';
|
$userDropDownImage = '<img class="photo dropdown-user-image" alt="No photo" src="'.DOL_URL_ROOT.$nophoto.'">';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user