diff options
author | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-23 00:20:24 +0000 |
---|---|---|
committer | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-23 00:20:24 +0000 |
commit | d43992cca884c2530f529dc2a085ec5ab20ee1a1 (patch) | |
tree | 967bccb31ba4668d7fe316eb099d0e57f1a55705 | |
parent | f1f2af4f01861feab2340cedb8e524830d3f9369 (diff) | |
download | elgg-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
-rw-r--r-- | views/default/navigation/menu/default.php | 10 |
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, + )); } |