From d8223bfe98e98645adc55b79d9118451bd64d05d Mon Sep 17 00:00:00 2001 From: John BOTELLA Date: Mon, 11 Mar 2019 18:03:39 +0100 Subject: [PATCH] init dropdown --- htdocs/main.inc.php | 70 ++++++++++++++++++- htdocs/theme/eldy/_dropdown.css.php | 101 ++++++++++++++++++++++++++++ htdocs/theme/eldy/_global.css.php | 37 +++++++--- 3 files changed, 198 insertions(+), 10 deletions(-) create mode 100644 htdocs/theme/eldy/_dropdown.css.php diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index 4a85cd8ddab..52f360d57a5 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -1602,7 +1602,13 @@ function top_menu($head, $title = '', $target = '', $disablejs = 0, $disablehead // Login name with photo and tooltip $mode=-1; $toprightmenu.='
'; $toprightmenu.=''."\n"; @@ -1714,6 +1720,68 @@ function top_menu($head, $title = '', $target = '', $disablejs = 0, $disablehead } + +function top_menu_user(user $user, $langs){ + + $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); + } + + + $btnUser = ' + + '; + + + return $btnUser; +} + /** * Show left menu bar * diff --git a/htdocs/theme/eldy/_dropdown.css.php b/htdocs/theme/eldy/_dropdown.css.php new file mode 100644 index 00000000000..c6ad165fc00 --- /dev/null +++ b/htdocs/theme/eldy/_dropdown.css.php @@ -0,0 +1,101 @@ + +/*