diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2008-11-19 23:46:40 +0000 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2008-11-19 23:46:40 +0000 |
commit | 223449fcbddf5beaa88e428554bbe7655b8e41c3 (patch) | |
tree | bb058229074bcf4c108ded41158f16013bbd8c94 | |
parent | 9ddc8c8aabfc5a6697ff636900297f94ecff4d8f (diff) |
slideshow::link() returns the entire anchor element
-rw-r--r-- | modules/slideshow/helpers/slideshow.php | 6 | ||||
-rw-r--r-- | themes/default/views/album.html.php | 2 | ||||
-rw-r--r-- | themes/default/views/photo.html.php | 2 |
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() ?>" |