aboutsummaryrefslogtreecommitdiff
path: root/views/default/navigation/menu
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-19 03:17:51 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-19 03:17:51 +0000
commit7303fb1a0960e6bb3b6e11f51372d1ed689e3b84 (patch)
tree76e202bff895a45c5ed40dcd0020b0e49b6d8125 /views/default/navigation/menu
parent72c83e4904a13c0e07d0d328ccbd201d16a617cc (diff)
downloadelgg-7303fb1a0960e6bb3b6e11f51372d1ed689e3b84.tar.gz
elgg-7303fb1a0960e6bb3b6e11f51372d1ed689e3b84.tar.bz2
added a user admin menu that plugins can add menu items to
git-svn-id: http://code.elgg.org/elgg/trunk@7678 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/navigation/menu')
-rw-r--r--views/default/navigation/menu/user_admin.php30
1 files changed, 30 insertions, 0 deletions
diff --git a/views/default/navigation/menu/user_admin.php b/views/default/navigation/menu/user_admin.php
new file mode 100644
index 000000000..1972d7916
--- /dev/null
+++ b/views/default/navigation/menu/user_admin.php
@@ -0,0 +1,30 @@
+<?php
+/**
+ * User admin menu
+ *
+ * @todo css/html clean up needed as this was pulled from early 1.8 profile code
+ *
+ * @uses vars['menu']
+ * @uses vars['toggle']
+ */
+
+$toggle = elgg_get_array_value('toggle', $vars, false);
+
+$id = '';
+
+if ($toggle) {
+ echo '<ul class="admin_menu">';
+ echo '<li><a class="elgg-toggle" id="elgg-toggler-admin-menu">Admin options&hellip;</a>';
+ $id = 'id="elgg-togglee-admin-menu"';
+}
+foreach ($vars['menu'] as $section => $menu_items) {
+ echo "<ul class=\"admin_menu_options\" $id>";
+ foreach ($menu_items as $menu_item) {
+ echo elgg_view('navigation/menu/elements/item', array('item' => $menu_item));
+ }
+ echo '</ul>';
+}
+if ($toggle) {
+ echo '<li>';
+ echo '<ul>';
+} \ No newline at end of file