aboutsummaryrefslogtreecommitdiff
path: root/views/default/admin/sidebar.php
blob: a6c16c758620f9c1e35dc4a4c6ff4b6703b2a65d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php
/**
 * 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;
	}
}

echo elgg_view_module('main', '', $content, array('class' => 'elgg-admin-sidebar-menu'));