summaryrefslogtreecommitdiff
path: root/modules/slideshow/helpers/slideshow_menu.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-06-15 13:27:26 +0800
committer <unostar@danalan.info>2009-06-15 17:31:24 +0800
commit2a5ffaae7e656636bf8c9411358bf4f33c31dde8 (patch)
treed175e8f30bdfa9cec87f42aa8d7de15d84f71097 /modules/slideshow/helpers/slideshow_menu.php
parent0051c2c89b71128ff0aefaaa4a77df91dd078016 (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/helpers/slideshow_menu.php')
-rw-r--r--modules/slideshow/helpers/slideshow_menu.php11
1 files changed, 11 insertions, 0 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"));
+ }
+
}