summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Unterkircher <unki@netshadow.at>2007-06-08 17:44:31 +0000
committerAndreas Unterkircher <unki@netshadow.at>2007-06-08 17:44:31 +0000
commit91b606336be6983c11e537c850fa3776527207cc (patch)
tree38c05311569cbbcc29bed40879bdb245ccc20098
parente203c68758deb0a57a7432a03ce815abcccb9937 (diff)
when click on the loupe open a new window and display the image
in its full resolution git-svn-id: file:///var/lib/svn/phpfspot/trunk@61 fa6a889d-dae6-447d-9e79-4ba9a3039384
-rw-r--r--phpfspot.class.php1
-rw-r--r--templates/single_photo.tpl4
2 files changed, 4 insertions, 1 deletions
diff --git a/phpfspot.class.php b/phpfspot.class.php
index e4ca4ff..de2adc0 100644
--- a/phpfspot.class.php
+++ b/phpfspot.class.php
@@ -111,6 +111,7 @@ class PHPFSPOT {
$this->tmpl->assign('madewith', $meta['Make'] ." ". $meta['Model']);
$this->tmpl->assign('image_name', $details['name']);
$this->tmpl->assign('image_url', 'phpfspot_img.php?idx='. $photo ."&amp;width=". $this->cfg->photo_width);
+ $this->tmpl->assign('image_url_full', 'phpfspot_img.php?idx='. $photo);
if($previous_img) {
$this->tmpl->assign('previous_url', "javascript:showImage(". $previous_img .");");
diff --git a/templates/single_photo.tpl b/templates/single_photo.tpl
index 28c416d..51d4663 100644
--- a/templates/single_photo.tpl
+++ b/templates/single_photo.tpl
@@ -5,7 +5,9 @@
<b>Photo {$image_name}</b>, {$c_date}, {$madewith}<br />
</td>
<td class="index_header" style="text-align: right;">
- <img src="resources/loupe.png" />
+ <a href="{$image_url_full}" target="_blank">
+ <img src="resources/loupe.png" />
+ </a>
<img src="resources/information.png" />
</td>
</tr>