aboutsummaryrefslogtreecommitdiff
path: root/views/default/navigation/menu/elements/group.php
blob: b0c0f54d4db2a98f7a8e40e57bc59c25168cfda3 (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_extract('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>';