forked from extern/egroupware
return logout to mobile menu and remove print icon
This commit is contained in:
parent
32741781ba
commit
aa139d2f15
@ -1226,6 +1226,7 @@ abstract class Framework extends Framework\Extra
|
|||||||
$topmenu_info_items = [
|
$topmenu_info_items = [
|
||||||
'user_avatar' => $this->_user_avatar_menu(),
|
'user_avatar' => $this->_user_avatar_menu(),
|
||||||
'update' => ($update = Framework\Updates::notification()) ? $update : null,
|
'update' => ($update = Framework\Updates::notification()) ? $update : null,
|
||||||
|
'logout' => (Header\UserAgent::mobile()) ? self::_logout_menu() : null,
|
||||||
'notifications' => ($GLOBALS['egw_info']['user']['apps']['notifications']) ? self::_get_notification_bell() : null,
|
'notifications' => ($GLOBALS['egw_info']['user']['apps']['notifications']) ? self::_get_notification_bell() : null,
|
||||||
'quick_add' => $vars['quick_add'],
|
'quick_add' => $vars['quick_add'],
|
||||||
'print_title' => $this->_print_menu(),
|
'print_title' => $this->_print_menu(),
|
||||||
@ -1275,7 +1276,7 @@ abstract class Framework extends Framework\Extra
|
|||||||
// set topmenu info items
|
// set topmenu info items
|
||||||
foreach ($topmenu_info_items as $id => $content)
|
foreach ($topmenu_info_items as $id => $content)
|
||||||
{
|
{
|
||||||
if (!$content || (in_array($id, ['search', 'quick_add', 'update', 'darkmode']) && (Header\UserAgent::mobile() || $GLOBALS['egw_info']['user']['preferences']['common']['theme'] == 'fw_mobile')))
|
if (!$content || (in_array($id, ['search', 'quick_add', 'update', 'darkmode', 'print_title']) && (Header\UserAgent::mobile() || $GLOBALS['egw_info']['user']['preferences']['common']['theme'] == 'fw_mobile')))
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user