aboutsummaryrefslogtreecommitdiff
path: root/views/default/navigation/menu/default.php
blob: 910b3eb09e4fc97acd97cb0faec212cc7a3ba53b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php
/**
 * Default menu
 *
 * @uses $vars['menu']
 * @uses $vars['class']
 */

$class = 'elgg-menu';
if (isset($vars['class'])) {
	$class = "$class {$vars['class']}";
}

foreach ($vars['menu'] as $section => $menu_items) {
	echo elgg_view('navigation/menu/elements/group', array(
		'section' => $section, 
		'items' => $menu_items,
		'class' => $class,
	));
}