summaryrefslogtreecommitdiff
path: root/modules/slideshow/helpers/slideshow_event.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules/slideshow/helpers/slideshow_event.php')
-rw-r--r--modules/slideshow/helpers/slideshow_event.php9
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"));
}