diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-03-12 17:07:00 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-03-12 17:07:00 +0000 |
commit | 653517bf635ad6ecb65738b46b11b3056ccca983 (patch) | |
tree | 938724e544d32616bd4f42d496db901dd61182d5 /views/default | |
parent | 92033ed233d2640a060990d27e6173d90a621b9b (diff) | |
download | elgg-653517bf635ad6ecb65738b46b11b3056ccca983.tar.gz elgg-653517bf635ad6ecb65738b46b11b3056ccca983.tar.bz2 |
Refs #2991. Using section for admin menu.
git-svn-id: http://code.elgg.org/elgg/trunk@8664 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default')
-rw-r--r-- | views/default/admin/sidebar.php | 11 | ||||
-rw-r--r-- | views/default/css/admin.php | 8 |
2 files changed, 9 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 diff --git a/views/default/css/admin.php b/views/default/css/admin.php index 3a3c8eb16..37d53673a 100644 --- a/views/default/css/admin.php +++ b/views/default/css/admin.php @@ -309,6 +309,14 @@ table.mceLayout { display: block; } +.elgg-admin-sidebar-menu h2 { + padding-bottom: 5px; +} + +.elgg-admin-sidebar-menu ul { + padding-bottom: 15px; +} + /* *************************************** MODULES |