diff options
| author | Tim Almdal <tnalmdal@shaw.ca> | 2008-11-19 23:18:41 +0000 | 
|---|---|---|
| committer | Tim Almdal <tnalmdal@shaw.ca> | 2008-11-19 23:18:41 +0000 | 
| commit | c25f21accbae7081d946cd2d4dd83ebc64e7f0f7 (patch) | |
| tree | 51e591da848cc849affc516a858bf5f15a8e8a1a /themes | |
| parent | 689f7e70d5a9c5879b1a76fcbf57d03fdfb853d7 (diff) | |
Change the album and photo templates to call the slideshow helper to get the slideshow link and button text.  The slideshow link will only show up if the slideshow module is installed.
Diffstat (limited to 'themes')
| -rw-r--r-- | themes/default/views/album.html.php | 4 | ||||
| -rw-r--r-- | themes/default/views/photo.html.php | 4 | 
2 files changed, 6 insertions, 2 deletions
| diff --git a/themes/default/views/album.html.php b/themes/default/views/album.html.php index 87b7fbff..f55f2056 100644 --- a/themes/default/views/album.html.php +++ b/themes/default/views/album.html.php @@ -2,7 +2,9 @@  <div id="gAlbumHeader">    <h1><?= $item->title_edit ?></h1>    <span class="gUnderState"><?= $item->description_edit ?></span> -  <a href="javascript:PicLensLite.start()" id="gSlideshowLink" class="gButtonLink">Slideshow</a> +  <? if ($theme->module("slideshow")): ?> +    <a href="<?= slideshow::link() ?>" id="gSlideshowLink" class="gButtonLink"><?= slideshow::button_text()?></a> +  <? endif; ?>  </div>  <ul id="gAlbumGrid"> diff --git a/themes/default/views/photo.html.php b/themes/default/views/photo.html.php index 5843b3ac..ed97be88 100644 --- a/themes/default/views/photo.html.php +++ b/themes/default/views/photo.html.php @@ -1,7 +1,9 @@  <? defined("SYSPATH") or die("No direct script access."); ?>  <div id="gItem">    <a href="" class="gButtonLink">Full size (1024x768)</a> -  <a href="javascript:PicLensLite.start()" id="gSlideshowLink" class="gButtonLink">Slideshow</a> +  <? if ($theme->module("slideshow")): ?> +    <a href="<?= slideshow::link() ?>" id="gSlideshowLink" class="gButtonLink"><?= slideshow::button_text()?></a> +  <? endif; ?>    <img id="gPhotoID-<?= $item->id ?>" alt="photo" src="<?= $item->resize_url() ?>"         width="<?= $item->resize_width ?>" | 
