aboutsummaryrefslogtreecommitdiff
path: root/views/default/navigation
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-25 22:18:16 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-25 22:18:16 +0000
commita201a5bba863a6d0dfa3b68d73a227cfcc7f66b6 (patch)
treeaf382c4f81d43b63c4afe60ace1824c298390d47 /views/default/navigation
parent58bd19d7cf35e6159124716d0da48d91354d3a2f (diff)
downloadelgg-a201a5bba863a6d0dfa3b68d73a227cfcc7f66b6.tar.gz
elgg-a201a5bba863a6d0dfa3b68d73a227cfcc7f66b6.tar.bz2
updated owner blocks for users and groups
git-svn-id: http://code.elgg.org/elgg/trunk@7721 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/navigation')
-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
+}