summaryrefslogtreecommitdiff
path: root/core/helpers
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2008-11-27 11:43:48 +0000
committerBharat Mediratta <bharat@menalto.com>2008-11-27 11:43:48 +0000
commit723eb2f611727cb7a1d8b64e1a7814de94be9cc9 (patch)
tree0d41574e44cf4c4307fdfdeee2973b6632c258bc /core/helpers
parente183901dc39c31ef4aaacca0edc36540dc2edd8b (diff)
Move the ADMIN global nav option into the core module and only show it if we're logged in as an admin user
Diffstat (limited to 'core/helpers')
-rw-r--r--core/helpers/core_block.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/helpers/core_block.php b/core/helpers/core_block.php
index 469dcf86..801ffb82 100644
--- a/core/helpers/core_block.php
+++ b/core/helpers/core_block.php
@@ -25,4 +25,11 @@ class core_block_Core {
return new View("in_place_edit.html");
}
}
+
+ public static function navigation_bottom($theme) {
+ $user = Session::instance()->get('user', null);
+ if ($user && $user->admin) {
+ return "<li><a href=#>" . _("ADMIN") . "</a></li>";
+ }
+ }
} \ No newline at end of file