aboutsummaryrefslogtreecommitdiff
path: root/views/default
diff options
context:
space:
mode:
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-23 00:20:24 +0000
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-23 00:20:24 +0000
commitd43992cca884c2530f529dc2a085ec5ab20ee1a1 (patch)
tree967bccb31ba4668d7fe316eb099d0e57f1a55705 /views/default
parentf1f2af4f01861feab2340cedb8e524830d3f9369 (diff)
downloadelgg-d43992cca884c2530f529dc2a085ec5ab20ee1a1.tar.gz
elgg-d43992cca884c2530f529dc2a085ec5ab20ee1a1.tar.bz2
DRY'ed up default menu a bit
git-svn-id: http://code.elgg.org/elgg/trunk@8434 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default')
-rw-r--r--views/default/navigation/menu/default.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/views/default/navigation/menu/default.php b/views/default/navigation/menu/default.php
index d849fb80e..474d4cf8a 100644
--- a/views/default/navigation/menu/default.php
+++ b/views/default/navigation/menu/default.php
@@ -12,9 +12,9 @@ if (isset($vars['class'])) {
}
foreach ($vars['menu'] as $section => $menu_items) {
- echo "<ul class=\"$class\">";
- foreach ($menu_items as $menu_item) {
- echo elgg_view('navigation/menu/elements/item', array('item' => $menu_item));
- }
- echo '</ul>';
+ echo elgg_view('navigation/menu/elements/group', array(
+ 'section' => $section,
+ 'items' => $items,
+ 'class' => $class,
+ ));
}