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_theme.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'modules/gallery/helpers/gallery_theme.php') 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