summaryrefslogtreecommitdiff
path: root/includes/sys_menu.php
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2017-12-26 10:29:16 +0100
committerGitHub <noreply@github.com>2017-12-26 10:29:16 +0100
commitde61c88d6de67d12d5de5b6dd0ab6b8c82e5a290 (patch)
treeaac6a43cb88e3d803da5809ab37885b41bc811c6 /includes/sys_menu.php
parent879918864a9c6da0fe9be1aca6c443ec8df0afc3 (diff)
parentf8d0a7c5b00a58c646871e355b5876dcc5890be5 (diff)
Merge pull request #388 from MyIgel/master
Formatting, Docstrings, and fixup
Diffstat (limited to 'includes/sys_menu.php')
-rw-r--r--includes/sys_menu.php34
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
+ );
}
}