diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-12-28 11:27:43 -0800 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-12-28 11:27:43 -0800 |
commit | 5925e586bab285b026007ab12fdb6f3b6225e13b (patch) | |
tree | e5fd91a10733819c3c77aab2ad90ffe6c243dd5c /modules/slideshow/helpers/slideshow_event.php | |
parent | 8ce4d03821da406df921cde73b3e6e7147975dab (diff) | |
parent | 38f2784fbbb0661dc57627d2878cb640bbffe271 (diff) |
Merge branch 'master' into talmdal_dev
Diffstat (limited to 'modules/slideshow/helpers/slideshow_event.php')
-rw-r--r-- | modules/slideshow/helpers/slideshow_event.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/modules/slideshow/helpers/slideshow_event.php b/modules/slideshow/helpers/slideshow_event.php index baf896fe..c4d7c56d 100644 --- a/modules/slideshow/helpers/slideshow_event.php +++ b/modules/slideshow/helpers/slideshow_event.php @@ -31,31 +31,34 @@ class slideshow_event_Core { } static function album_menu($menu, $theme) { + $max_scale = module::get_var("slideshow", "max_scale"); if ($theme->item()->descendants_count(array(array("type", "=", "photo")))) { $menu->append(Menu::factory("link") ->id("slideshow") ->label(t("View slideshow")) ->url("javascript:cooliris.embed.show(" . - "{maxScale:0,feed:'" . self::_feed_url($theme) . "'})") + "{maxScale:$max_scale,feed:'" . self::_feed_url($theme) . "'})") ->css_id("g-slideshow-link")); } } static function photo_menu($menu, $theme) { + $max_scale = module::get_var("slideshow", "max_scale"); $menu->append(Menu::factory("link") ->id("slideshow") ->label(t("View slideshow")) ->url("javascript:cooliris.embed.show(" . - "{maxScale:0,feed:'" . self::_feed_url($theme) . "'})") + "{maxScale:$max_scale,feed:'" . self::_feed_url($theme) . "'})") ->css_id("g-slideshow-link")); } static function tag_menu($menu, $theme) { + $max_scale = module::get_var("slideshow", "max_scale"); $menu->append(Menu::factory("link") ->id("slideshow") ->label(t("View slideshow")) ->url("javascript:cooliris.embed.show(" . - "{maxScale:0,feed:'" . self::_feed_url($theme) . "'})") + "{maxScale:$max_scale,feed:'" . self::_feed_url($theme) . "'})") ->css_id("g-slideshow-link")); } |