diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-03-11 23:14:09 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-03-11 23:14:09 +0000 |
commit | e68bf62084b0a90097b3b65d3ef12c2605e09289 (patch) | |
tree | a08e06ca7e3ec0301e318342caeb79155d56a80b /views/default/admin/sidebar.php | |
parent | adae1958a95d7e801de91d673e927cac348236d9 (diff) | |
download | elgg-e68bf62084b0a90097b3b65d3ef12c2605e09289.tar.gz elgg-e68bf62084b0a90097b3b65d3ef12c2605e09289.tar.bz2 |
Refs #2991. First round at rearranging and grouping admin menu based upon tasks.
git-svn-id: http://code.elgg.org/elgg/trunk@8654 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/admin/sidebar.php')
-rw-r--r-- | views/default/admin/sidebar.php | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/views/default/admin/sidebar.php b/views/default/admin/sidebar.php index b2c520705..a6c16c758 100644 --- a/views/default/admin/sidebar.php +++ b/views/default/admin/sidebar.php @@ -1,8 +1,17 @@ <?php /** - * Admin sidebar -- just outputs the page menu + * Admin sidebar -- just outputs the page menus */ +$sections = array('administer', 'configure', 'develop'); +$content = ''; -$content = elgg_view_menu('page', array('sort_by' => 'priority')); +foreach ($sections as $section) { + $section_content = elgg_view_menu("admin-$section", array('sort_by' => 'priority', 'class' => 'mbl mts')); + + if ($section_content) { + $content .= '<h2>' . elgg_echo("admin:$section") . '</h2>'; + $content .= $section_content; + } +} -echo elgg_view_module('main', '', $content);
\ No newline at end of file +echo elgg_view_module('main', '', $content, array('class' => 'elgg-admin-sidebar-menu'));
\ No newline at end of file |