summaryrefslogtreecommitdiff
path: root/modules/user/helpers
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2008-11-27 11:33:45 +0000
committerBharat Mediratta <bharat@menalto.com>2008-11-27 11:33:45 +0000
commit34a286ae90ec5b5bdb7702f6bdf560f5f92f4f38 (patch)
treec2e81aaa81b9eb0d112bae87109607888a592837 /modules/user/helpers
parent0b86568586b423de9689ba659782c3b67defe29a (diff)
Add navigation_top() and navigation_bottom() insertion points
Move "My Gallery" navigation tab into the user module and only show it if you're logged in
Diffstat (limited to 'modules/user/helpers')
-rw-r--r--modules/user/helpers/user_block.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/user/helpers/user_block.php b/modules/user/helpers/user_block.php
index 5146cc9f..be72a3fe 100644
--- a/modules/user/helpers/user_block.php
+++ b/modules/user/helpers/user_block.php
@@ -33,4 +33,9 @@ class user_block_Core {
return $view->render();
}
+ public static function navigation_bottom($theme) {
+ if (Session::instance()->get('user', null)) {
+ return "<li><a href=#>" . _("MY GALLERY") . "</a></li>";
+ }
+ }
}