From aa139d2f15dbe35deb9798e45ac6f63af170041d Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Thu, 13 Oct 2022 16:03:05 +0200 Subject: [PATCH] return logout to mobile menu and remove print icon --- api/src/Framework.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/src/Framework.php b/api/src/Framework.php index d66eba48a1..cee9e2bf66 100644 --- a/api/src/Framework.php +++ b/api/src/Framework.php @@ -1226,6 +1226,7 @@ abstract class Framework extends Framework\Extra $topmenu_info_items = [ 'user_avatar' => $this->_user_avatar_menu(), '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, 'quick_add' => $vars['quick_add'], 'print_title' => $this->_print_menu(), @@ -1275,7 +1276,7 @@ abstract class Framework extends Framework\Extra // set topmenu info items 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; }