summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/slideshow/helpers/slideshow.php6
-rw-r--r--themes/default/views/album.html.php2
-rw-r--r--themes/default/views/photo.html.php2
3 files changed, 3 insertions, 7 deletions
diff --git a/modules/slideshow/helpers/slideshow.php b/modules/slideshow/helpers/slideshow.php
index fdd696d2..5fadf36b 100644
--- a/modules/slideshow/helpers/slideshow.php
+++ b/modules/slideshow/helpers/slideshow.php
@@ -19,10 +19,6 @@
*/
class slideshow {
public static function link() {
- return "javascript:PicLensLite.start()";
- }
-
- public static function button_text() {
- return _("Slideshow");
+ return "<a href=\"javascript:PicLensLite.start()\" id=\"gSlideshowLink\" class=\"gButtonLink\">Slideshow</a>";
}
}
diff --git a/themes/default/views/album.html.php b/themes/default/views/album.html.php
index f55f2056..43024840 100644
--- a/themes/default/views/album.html.php
+++ b/themes/default/views/album.html.php
@@ -3,7 +3,7 @@
<h1><?= $item->title_edit ?></h1>
<span class="gUnderState"><?= $item->description_edit ?></span>
<? if ($theme->module("slideshow")): ?>
- <a href="<?= slideshow::link() ?>" id="gSlideshowLink" class="gButtonLink"><?= slideshow::button_text()?></a>
+ <?= slideshow::link() ?>
<? endif; ?>
</div>
diff --git a/themes/default/views/photo.html.php b/themes/default/views/photo.html.php
index ed97be88..47b7bf4f 100644
--- a/themes/default/views/photo.html.php
+++ b/themes/default/views/photo.html.php
@@ -2,7 +2,7 @@
<div id="gItem">
<a href="" class="gButtonLink">Full size (1024x768)</a>
<? if ($theme->module("slideshow")): ?>
- <a href="<?= slideshow::link() ?>" id="gSlideshowLink" class="gButtonLink"><?= slideshow::button_text()?></a>
+ <?= slideshow::link() ?>
<? endif; ?>
<img id="gPhotoID-<?= $item->id ?>" alt="photo" src="<?= $item->resize_url() ?>"