diff options
author | Philip Häusler <msquare@notrademark.de> | 2014-09-24 15:24:32 +0200 |
---|---|---|
committer | Philip Häusler <msquare@notrademark.de> | 2014-09-24 15:24:32 +0200 |
commit | f06e4a0f4783638ef1929939b4cdbb45c9243a5a (patch) | |
tree | 7a6168dfbd931b5bd373e1b62e8a821a5d1a9d63 /includes/sys_menu.php | |
parent | 07b65412043c89a6a3176f202498f8a603c15dfb (diff) |
move user messages to menu icon right
Diffstat (limited to 'includes/sys_menu.php')
-rw-r--r-- | includes/sys_menu.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/includes/sys_menu.php b/includes/sys_menu.php index 5ff415fb..fc17699f 100644 --- a/includes/sys_menu.php +++ b/includes/sys_menu.php @@ -27,6 +27,9 @@ function header_toolbar() { if (in_array('login', $privileges)) $toolbar_items[] = toolbar_item_link(page_link_to('login'), 'log-in', login_title(), $p == 'login'); + if(isset($user) && in_array('user_messages', $privileges)) + $toolbar_items[] = toolbar_item_link(page_link_to('user_messages'), 'envelope', user_unread_messages()); + $user_submenu = make_langselect(); $user_submenu[] = toolbar_item_divider(); if (in_array('user_myshifts', $privileges)) @@ -53,7 +56,6 @@ function make_navigation() { "user_meetings" => meetings_title(), "user_shifts" => shifts_title(), "angeltypes" => angeltypes_title(), - "user_messages" => messages_title() . ' ' . user_unread_messages(), "user_questions" => questions_title() ); |