aboutsummaryrefslogtreecommitdiff
path: root/views/default/navigation/menu/site.php
blob: 0b3a47a6298d9bcc660f9609835c2a5da552ab0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
/**
 * Site navigation menu
 *
 * @uses $vars['menu']['default']
 * @uses $vars['menu']['more']
 */

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

if (isset($vars['menu']['more'])) {
	$more = elgg_echo('more');
	$arrow = elgg_view_icon('arrow-s');
	echo '<li class="elgg-more">';
	echo "<a class='subnav' title=\"$more\">$arrow $more</a>";
	echo '<ul>';
	foreach ($vars['menu']['more'] as $menu_item) {
		echo elgg_view('navigation/menu/elements/item', array('item' => $menu_item));
	}
	echo '</ul>';
	echo '</li>';
}
echo '</ul>';