diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-06-15 13:27:26 +0800 |
---|---|---|
committer | <unostar@danalan.info> | 2009-06-15 17:31:24 +0800 |
commit | 2a5ffaae7e656636bf8c9411358bf4f33c31dde8 (patch) | |
tree | d175e8f30bdfa9cec87f42aa8d7de15d84f71097 /modules/slideshow | |
parent | 0051c2c89b71128ff0aefaaa4a77df91dd078016 (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
Signed-off-by: <unostar@danalan.info>
Diffstat (limited to 'modules/slideshow')
-rw-r--r-- | modules/slideshow/helpers/slideshow_menu.php | 11 | ||||
-rw-r--r-- | modules/slideshow/helpers/slideshow_theme.php | 12 |
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; } } |