diff options
Diffstat (limited to 'views/default/admin/sidebar.php')
-rw-r--r-- | views/default/admin/sidebar.php | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/views/default/admin/sidebar.php b/views/default/admin/sidebar.php index a6c16c758..100ce2af8 100644 --- a/views/default/admin/sidebar.php +++ b/views/default/admin/sidebar.php @@ -2,16 +2,7 @@ /** * Admin sidebar -- just outputs the page menus */ -$sections = array('administer', 'configure', 'develop'); -$content = ''; -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; - } -} +$content = elgg_view_menu('page', array('sort_by' => 'priority', 'show_section_headers' => true)); echo elgg_view_module('main', '', $content, array('class' => 'elgg-admin-sidebar-menu'));
\ No newline at end of file |