diff options
author | Bot <bot@myigel.name> | 2017-12-25 23:12:52 +0100 |
---|---|---|
committer | Igor Scheller <igor.scheller@igorshp.de> | 2017-12-25 23:51:15 +0100 |
commit | 952c7892f3ac7bfadf8419062e44ff1af66ecc57 (patch) | |
tree | 69a85e8e4719801a064b8fa2d521fe000f959cd5 /includes/sys_menu.php | |
parent | 879918864a9c6da0fe9be1aca6c443ec8df0afc3 (diff) |
Formatting & Docstrings
Diffstat (limited to 'includes/sys_menu.php')
-rw-r--r-- | includes/sys_menu.php | 34 |
1 files changed, 29 insertions, 5 deletions
diff --git a/includes/sys_menu.php b/includes/sys_menu.php index 863808d2..85ef1287 100644 --- a/includes/sys_menu.php +++ b/includes/sys_menu.php @@ -60,15 +60,29 @@ function header_toolbar() } if (!isset($user) && in_array('register', $privileges) && config('registration_enabled')) { - $toolbar_items[] = toolbar_item_link(page_link_to('register'), 'plus', register_title(), $page == 'register'); + $toolbar_items[] = toolbar_item_link( + page_link_to('register'), + 'plus', + register_title(), + $page == 'register' + ); } if (in_array('login', $privileges)) { - $toolbar_items[] = toolbar_item_link(page_link_to('login'), 'log-in', login_title(), $page == 'login'); + $toolbar_items[] = toolbar_item_link( + page_link_to('login'), + 'log-in', + login_title(), + $page == 'login' + ); } if (isset($user) && in_array('user_messages', $privileges)) { - $toolbar_items[] = toolbar_item_link(page_link_to('user_messages'), 'envelope', user_unread_messages()); + $toolbar_items[] = toolbar_item_link( + page_link_to('user_messages'), + 'envelope', + user_unread_messages() + ); } $toolbar_items[] = header_render_hints(); @@ -112,7 +126,12 @@ function make_user_submenu() } if (in_array('logout', $privileges)) { - $user_submenu[] = toolbar_item_link(page_link_to('logout'), 'log-out', logout_title(), $page == 'logout'); + $user_submenu[] = toolbar_item_link( + page_link_to('logout'), + 'log-out', + logout_title(), + $page == 'logout' + ); } return $user_submenu; @@ -160,7 +179,12 @@ function make_navigation() foreach ($admin_pages as $menu_page => $title) { if (in_array($menu_page, $privileges)) { - $admin_menu[] = toolbar_item_link(page_link_to($menu_page), '', $title, $menu_page == $page); + $admin_menu[] = toolbar_item_link( + page_link_to($menu_page), + '', + $title, + $menu_page == $page + ); } } |