summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Unterkircher <unki@netshadow.at>2008-03-27 20:12:28 +0100
committerAndreas Unterkircher <unki@netshadow.at>2008-03-27 20:12:28 +0100
commit0b79deeea3e8d6058eb5651200dbe127c02e0019 (patch)
tree770b4ec02954aaccd15409f508f3e61a46cb9495
parent09deb2461c15d514cfaaa02ee78ab2dfc421a3c7 (diff)
make the full photo name available for the lightbox effect
Signed-off-by: Andreas Unterkircher <unki@netshadow.at>
-rw-r--r--phpfspot.class.php3
-rw-r--r--themes/default/templates/photo_index.tpl2
2 files changed, 4 insertions, 1 deletions
diff --git a/phpfspot.class.php b/phpfspot.class.php
index 76c6ba8..7e7d4dd 100644
--- a/phpfspot.class.php
+++ b/phpfspot.class.php
@@ -983,6 +983,7 @@ class PHPFSPOT {
$img_width[$thumbs] = Array();
$img_id[$thumbs] = Array();
$img_name[$thumbs] = Array();
+ $img_fullname[$thumbs] = Array();
$img_title = Array();
for($i = $begin_with; $i < $end_with; $i++) {
@@ -992,6 +993,7 @@ class PHPFSPOT {
$images[$thumbs] = $photos[$i];
$img_id[$thumbs] = $i;
$img_name[$thumbs] = htmlspecialchars($this->getPhotoName($photos[$i], 15));
+ $img_fullname[$thumbs] = htmlspecialchars($this->getPhotoName($photos[$i], 0));
$img_title[$thumbs] = "Click to view photo ". htmlspecialchars($this->getPhotoName($photos[$i], 0));
$thumb_path = $this->get_thumb_path($this->cfg->thumb_width, $photos[$i]);
@@ -1130,6 +1132,7 @@ class PHPFSPOT {
$this->tmpl->assign('img_height', $img_height);
$this->tmpl->assign('img_id', $img_id);
$this->tmpl->assign('img_name', $img_name);
+ $this->tmpl->assign('img_fullname', $img_fullname);
$this->tmpl->assign('img_title', $img_title);
$this->tmpl->assign('thumbs', $thumbs);
diff --git a/themes/default/templates/photo_index.tpl b/themes/default/templates/photo_index.tpl
index f281630..d834568 100644
--- a/themes/default/templates/photo_index.tpl
+++ b/themes/default/templates/photo_index.tpl
@@ -54,7 +54,7 @@
<br />
{$img_name[thumb]}
</a>
- <a href="phpfspot_img.php?idx={$images[thumb]}&amp;width={$preview_width}" alt="thumb_{$images[thumb]}" rel="lightbox[photoidx]" title="Preview of {$img_name[thumb]}"><img src="resources/eyes.png" /></a>
+ <a href="phpfspot_img.php?idx={$images[thumb]}&amp;width={$preview_width}" alt="thumb_{$images[thumb]}" rel="lightbox[photoidx]" title="Preview of {$img_fullname[thumb]}"><img src="resources/eyes.png" /></a>
</div>
{/if}