summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/libraries/Theme.php24
-rw-r--r--modules/user/helpers/user_block.php5
-rw-r--r--themes/default/views/header.html.php3
3 files changed, 20 insertions, 12 deletions
diff --git a/core/libraries/Theme.php b/core/libraries/Theme.php
index 484673eb..99a44f9f 100644
--- a/core/libraries/Theme.php
+++ b/core/libraries/Theme.php
@@ -57,24 +57,26 @@ class Theme_Core {
*/
public function __call($function, $args) {
switch ($function) {
+ case "album_blocks":
+ case "album_bottom":
+ case "album_top":
case "head":
- case "page_top":
- case "page_bottom":
- case "header_top":
case "header_bottom":
- case "sidebar_top":
+ case "header_top":
+ case "navigation_top":
+ case "navigation_bottom":
+ case "page_bottom":
+ case "page_top":
+ case "photo_blocks":
+ case "photo_top":
case "sidebar_blocks":
case "sidebar_bottom":
- case "album_top":
- case "album_blocks":
- case "album_bottom":
- case "tag_top":
+ case "sidebar_top":
case "tag_bottom":
- case "thumbnail_top":
+ case "tag_top":
case "thumbnail_bottom":
case "thumbnail_info":
- case "photo_top":
- case "photo_blocks":
+ case "thumbnail_top":
case "photo_bottom":
// @todo: restrict access to this option
$debug = Session::instance()->get("debug", false);
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>";
+ }
+ }
}
diff --git a/themes/default/views/header.html.php b/themes/default/views/header.html.php
index c34486be..29c7a8e0 100644
--- a/themes/default/views/header.html.php
+++ b/themes/default/views/header.html.php
@@ -4,10 +4,11 @@
<div id="gSiteMenu" class="gClearFix">
<ul class="ui-tabs-nav">
+ <?= $theme->navigation_top() ?>
<li><a href="<?= url::base() ?>"><?= _("HOME") ?></a></li>
<li><a class="active" href="<?= url::site("albums/1") ?>"><?= _("BROWSE") ?></a></li>
<li><a href="#"><?= _("UPLOAD") ?></a></li>
- <li><a href="#"><?= _("MY GALLERY") ?></a></li>
+ <?= $theme->navigation_bottom() ?>
<li><a href="#"><?= _("ADMIN") ?></a></li>
</ul>
</div>