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

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

echo "<ul class=\"$class\">";
foreach ($vars['items'] as $menu_item) {
	echo elgg_view('navigation/menu/elements/item', array('item' => $menu_item));
}
echo '</ul>';