aboutsummaryrefslogtreecommitdiff
path: root/views/default
diff options
context:
space:
mode:
Diffstat (limited to 'views/default')
-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