diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-29 13:36:33 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-29 13:36:33 +0000 |
commit | 6412a94c3c21ce163c68546e33bdeb9c8650e9f9 (patch) | |
tree | d361d0c268a8b6342f8f522b499e9aac5121359b /views/default/navigation/menu/elements/item.php | |
parent | 8f7a86ebae5f6fd3f64f976a83cfc6712e083c2a (diff) | |
download | elgg-6412a94c3c21ce163c68546e33bdeb9c8650e9f9.tar.gz elgg-6412a94c3c21ce163c68546e33bdeb9c8650e9f9.tar.bz2 |
page menu using the new menu system - admin menu updated
git-svn-id: http://code.elgg.org/elgg/trunk@7738 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/navigation/menu/elements/item.php')
-rw-r--r-- | views/default/navigation/menu/elements/item.php | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/views/default/navigation/menu/elements/item.php b/views/default/navigation/menu/elements/item.php index f6959b2f4..7903dbdc0 100644 --- a/views/default/navigation/menu/elements/item.php +++ b/views/default/navigation/menu/elements/item.php @@ -7,4 +7,19 @@ if ($item->getSelected()) { $class = 'class="selected"'; } -echo "<li $class>{$item->getLink()}</li>"; +$link_vars = array(); + +$children = $item->getChildren(); +if ($children) { + $link_vars['class'] = 'elgg-menu-parent elgg-menu-closed'; +} + +echo "<li $class>"; +echo $item->getLink($link_vars); +if ($children) { + echo elgg_view('navigation/menu/elements/group', array( + 'items' => $children, + 'class' => 'elgg-menu elgg-child-menu', + )); +} +echo '</li>'; |