From 8ec093ecc1bf28c09f5d2dbe3c7bc8e6a2485ac6 Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 18 Dec 2010 16:37:16 +0000 Subject: site nav menu now uses new menu code (and finished the implementation of custom menu items while I was at it - not backward compatible with the previous half finished version) git-svn-id: http://code.elgg.org/elgg/trunk@7668 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/navigation/menu/elements/item.php | 10 ++++++++++ views/default/navigation/menu/site.php | 25 +++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 views/default/navigation/menu/elements/item.php create mode 100644 views/default/navigation/menu/site.php (limited to 'views/default/navigation/menu') diff --git a/views/default/navigation/menu/elements/item.php b/views/default/navigation/menu/elements/item.php new file mode 100644 index 000000000..f6959b2f4 --- /dev/null +++ b/views/default/navigation/menu/elements/item.php @@ -0,0 +1,10 @@ +getSelected()) { + $class = 'class="selected"'; +} + +echo "
  • {$item->getLink()}
  • "; diff --git a/views/default/navigation/menu/site.php b/views/default/navigation/menu/site.php new file mode 100644 index 000000000..c2b00fd72 --- /dev/null +++ b/views/default/navigation/menu/site.php @@ -0,0 +1,25 @@ +'; +foreach ($vars['menu']['default'] as $menu_item) { + echo elgg_view('navigation/menu/elements/item', array('item' => $menu_item)); +} + +if (isset($vars['menu']['more'])) { + $more = elgg_echo('more'); + echo '
  • '; + echo "$more"; + echo ''; + echo '
  • '; +} +echo ''; -- cgit v1.2.3