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/slideshow/helpers/slideshow_menu.php | 11 +++++++++++ modules/slideshow/helpers/slideshow_theme.php | 12 +----------- 2 files changed, 12 insertions(+), 11 deletions(-) (limited to 'modules/slideshow/helpers') diff --git a/modules/slideshow/helpers/slideshow_menu.php b/modules/slideshow/helpers/slideshow_menu.php index 799c9a76..ee975d88 100644 --- a/modules/slideshow/helpers/slideshow_menu.php +++ b/modules/slideshow/helpers/slideshow_menu.php @@ -37,4 +37,15 @@ class slideshow_menu_Core { "{maxScale:0,feedUrl:PicLensLite.indexFeeds()[0].url})") ->css_id("gSlideshowLink")); } + + static function tag($menu, $theme) { + $menu + ->append(Menu::factory("link") + ->id("slideshow") + ->label(t("View slideshow")) + ->url("javascript:PicLensLite.start(" . + "{maxScale:0,feedUrl:PicLensLite.indexFeeds()[0].url})") + ->css_id("gSlideshowLink")); + } + } diff --git a/modules/slideshow/helpers/slideshow_theme.php b/modules/slideshow/helpers/slideshow_theme.php index 69acb113..125d175c 100644 --- a/modules/slideshow/helpers/slideshow_theme.php +++ b/modules/slideshow/helpers/slideshow_theme.php @@ -20,17 +20,7 @@ class slideshow_theme_Core { static function head($theme) { $proto = (empty($_SERVER["HTTPS"]) || $_SERVER["HTTPS"] === "off") ? "http" : "https"; - - 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->id}"); - } - } - - $buf .= ""; - return $buf; } } -- cgit v1.2.3