summaryrefslogtreecommitdiff
path: root/modules/slideshow/helpers
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-06-14 22:27:26 -0700
committerBharat Mediratta <bharat@menalto.com>2009-06-14 22:27:26 -0700
commit1b656be7135efe51ba0eb34d6ac76c2632ec193a (patch)
tree5c66209a366d5df80eca693cbc7c43a18338324e /modules/slideshow/helpers
parent32ea4406c87049b25d3d82351097e69f13168311 (diff)
Create a sidebar for tag pages
Move the <link> for the container feed (either gallery/album/<id> or tag/tag/<id>) back into gallery_theme
Diffstat (limited to 'modules/slideshow/helpers')
-rw-r--r--modules/slideshow/helpers/slideshow_menu.php11
-rw-r--r--modules/slideshow/helpers/slideshow_theme.php12
2 files changed, 12 insertions, 11 deletions
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 .= "<script src=\"$proto://lite.piclens.com/current/piclens_optimized.js\"" .
+ return "<script src=\"$proto://lite.piclens.com/current/piclens_optimized.js\"" .
"type=\"text/javascript\"></script>";
- return $buf;
}
}