aboutsummaryrefslogtreecommitdiff
path: root/views/default/navigation/menu/user_hover.php
diff options
context:
space:
mode:
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-01 18:54:37 +0000
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-01 18:54:37 +0000
commit165fa6558c1bfd0a7261bdd51b027b54a46961b6 (patch)
tree0de59bfce5f64f7d1fb0e9951d0aea809a83d91d /views/default/navigation/menu/user_hover.php
parent49c91aa389416ee8cb66dbb4d3d7a2512c411790 (diff)
downloadelgg-165fa6558c1bfd0a7261bdd51b027b54a46961b6.tar.gz
elgg-165fa6558c1bfd0a7261bdd51b027b54a46961b6.tar.bz2
Refs #3021: elgg-section-$section => elgg-menu-$menu-$section
Added elgg-menu-hz for horizontal menus git-svn-id: http://code.elgg.org/elgg/trunk@8535 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/navigation/menu/user_hover.php')
-rw-r--r--views/default/navigation/menu/user_hover.php36
1 files changed, 23 insertions, 13 deletions
diff --git a/views/default/navigation/menu/user_hover.php b/views/default/navigation/menu/user_hover.php
index bbca41e21..8e3c4de9f 100644
--- a/views/default/navigation/menu/user_hover.php
+++ b/views/default/navigation/menu/user_hover.php
@@ -24,29 +24,39 @@ echo "<li>$name_link</li>";
// actions
if (elgg_is_logged_in() && $actions) {
- echo '<li><ul>';
+
+ echo '<li>';
foreach ($actions as $menu_item) {
- echo elgg_view('navigation/menu/elements/item', array('item' => $menu_item));
+ echo elgg_view('navigation/menu/elements/section', array(
+ 'class' => "elgg-menu elgg-menu-hover-actions",
+ 'items' => $actions,
+ ));
}
- echo '</ul></li>';
+ echo '</li>';
}
// main
if ($main) {
- echo '<li><ul>';
- foreach ($main as $menu_item) {
- echo elgg_view('navigation/menu/elements/item', array('item' => $menu_item));
- }
- echo '</ul></li>';
+ echo '<li>';
+
+ echo elgg_view('navigation/menu/elements/section', array(
+ 'class' => 'elgg-menu elgg-menu-hover-default',
+ 'items' => $main,
+ ));
+
+ echo '</li>';
}
// admin
if (elgg_is_admin_logged_in() && $admin) {
- echo '<li><ul class="elgg-hover-admin">';
- foreach ($admin as $menu_item) {
- echo elgg_view('navigation/menu/elements/item', array('item' => $menu_item));
- }
- echo '</ul></li>';
+ echo '<li>';
+
+ echo elgg_view('navigation/menu/elements/section', array(
+ 'class' => 'elgg-menu elgg-menu-hover-admin',
+ 'items' => $admin,
+ ));
+
+ echo '</li>';
}
echo '</ul>';