aboutsummaryrefslogtreecommitdiff
path: root/views/default/navigation/menu
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/navigation/menu')
-rw-r--r--views/default/navigation/menu/default.php15
1 files changed, 13 insertions, 2 deletions
diff --git a/views/default/navigation/menu/default.php b/views/default/navigation/menu/default.php
index a63a26771..d849fb80e 100644
--- a/views/default/navigation/menu/default.php
+++ b/views/default/navigation/menu/default.php
@@ -1,9 +1,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 '<ul class="elgg-menu">';
+ echo "<ul class=\"$class\">";
foreach ($menu_items as $menu_item) {
echo elgg_view('navigation/menu/elements/item', array('item' => $menu_item));
}
echo '</ul>';
-} \ No newline at end of file
+}