aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-18 17:47:50 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-18 17:47:50 +0000
commit569f19d8ff89539eb8d38b1ca1b07a2baa41852c (patch)
tree0ace0c2792db822cd0db5eae672f1f472a29439a /views
parent8ec093ecc1bf28c09f5d2dbe3c7bc8e6a2485ac6 (diff)
downloadelgg-569f19d8ff89539eb8d38b1ca1b07a2baa41852c.tar.gz
elgg-569f19d8ff89539eb8d38b1ca1b07a2baa41852c.tar.bz2
half way through converting submenu to new menu code - pages and groups are the two major users left
git-svn-id: http://code.elgg.org/elgg/trunk@7669 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views')
-rw-r--r--views/default/css/elements/navigation.php18
-rw-r--r--views/default/layout/elements/sidebar.php1
-rw-r--r--views/default/navigation/menu/default.php9
3 files changed, 28 insertions, 0 deletions
diff --git a/views/default/css/elements/navigation.php b/views/default/css/elements/navigation.php
index 5ea94798a..f9488c64d 100644
--- a/views/default/css/elements/navigation.php
+++ b/views/default/css/elements/navigation.php
@@ -210,6 +210,24 @@
/* ***************************************
PAGE MENU
*************************************** */
+.elgg-sidebar .elgg-menu a {
+ display: block;
+ -webkit-border-radius: 8px;
+ -moz-border-radius: 8px;
+ background-color: white;
+ margin: 0 0 3px 0;
+ padding: 2px 4px 2px 8px;
+}
+.elgg-sidebar .elgg-menu a:hover {
+ background-color: #0054A7;
+ color: white;
+ text-decoration: none;
+}
+.elgg-sidebar .elgg-menu .selected a {
+ background-color: #4690D6;
+ color: white;
+}
+
.submenu {
margin:0;
padding:0;
diff --git a/views/default/layout/elements/sidebar.php b/views/default/layout/elements/sidebar.php
index d1323f2cd..7605c4e70 100644
--- a/views/default/layout/elements/sidebar.php
+++ b/views/default/layout/elements/sidebar.php
@@ -8,6 +8,7 @@
echo elgg_view('layout/elements/owner_block');
echo elgg_view('navigation/sidebar_menu');
+echo elgg_view_menu('page', array('sort_by' => 'name'));
// optional 'sidebar' parameter
if (isset($vars['sidebar'])) {
diff --git a/views/default/navigation/menu/default.php b/views/default/navigation/menu/default.php
new file mode 100644
index 000000000..a63a26771
--- /dev/null
+++ b/views/default/navigation/menu/default.php
@@ -0,0 +1,9 @@
+<?php
+
+foreach ($vars['menu'] as $section => $menu_items) {
+ echo '<ul class="elgg-menu">';
+ foreach ($menu_items as $menu_item) {
+ echo elgg_view('navigation/menu/elements/item', array('item' => $menu_item));
+ }
+ echo '</ul>';
+} \ No newline at end of file