From 1b656be7135efe51ba0eb34d6ac76c2632ec193a Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sun, 14 Jun 2009 22:27:26 -0700 Subject: Create a sidebar for tag pages Move the for the container feed (either gallery/album/ or tag/tag/) back into gallery_theme --- modules/gallery/helpers/gallery_menu.php | 3 +++ modules/gallery/helpers/gallery_theme.php | 8 ++++++++ 2 files changed, 11 insertions(+) (limited to 'modules/gallery/helpers') diff --git a/modules/gallery/helpers/gallery_menu.php b/modules/gallery/helpers/gallery_menu.php index fd4ec241..4499e50a 100644 --- a/modules/gallery/helpers/gallery_menu.php +++ b/modules/gallery/helpers/gallery_menu.php @@ -91,6 +91,9 @@ class gallery_menu_Core { static function album($menu, $theme) { } + static function tag($menu, $theme) { + } + static function photo($menu, $theme) { if (access::can("view_full", $theme->item())) { $menu diff --git a/modules/gallery/helpers/gallery_theme.php b/modules/gallery/helpers/gallery_theme.php index f955e8f7..c28c9040 100644 --- a/modules/gallery/helpers/gallery_theme.php +++ b/modules/gallery/helpers/gallery_theme.php @@ -42,6 +42,14 @@ class gallery_theme_Core { $buf .= html::script("modules/gallery/js/fullsize.js"); } + if (module::is_active("rss")) { + if ($item = $theme->item()) { + $buf = rss::feed_link("gallery/album/{$item->id}"); + } else if ($tag = $theme->tag()) { + $buf = rss::feed_link("tag/tag/{$tag->id}"); + } + } + if ($session->get("l10n_mode", false)) { $buf .= ""; -- cgit v1.2.3