From 34a286ae90ec5b5bdb7702f6bdf560f5f92f4f38 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Thu, 27 Nov 2008 11:33:45 +0000 Subject: 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 --- modules/user/helpers/user_block.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'modules/user/helpers/user_block.php') 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 "
  • " . _("MY GALLERY") . "
  • "; + } + } } -- cgit v1.2.3