when click on the loupe open a new window and display the image
authorAndreas Unterkircher <unki@netshadow.at>
Fri, 8 Jun 2007 17:44:31 +0000 (17:44 +0000)
committerAndreas Unterkircher <unki@netshadow.at>
Fri, 8 Jun 2007 17:44:31 +0000 (17:44 +0000)
in its full resolution

git-svn-id: file:///var/lib/svn/phpfspot/trunk@61 fa6a889d-dae6-447d-9e79-4ba9a3039384

phpfspot.class.php
templates/single_photo.tpl

index e4ca4ffa9cde084ac3b7d6561e566a0e18e1994c..de2adc086f001265f2d53123c7048493f10f187d 100644 (file)
@@ -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('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 .");");
 
       if($previous_img) {
          $this->tmpl->assign('previous_url', "javascript:showImage(". $previous_img .");");
index 28c416dab465858b5c1b9bea92130fc03c2fb269..51d4663ff1f34d2dae71c0eefadb684cc4a70b87 100644 (file)
@@ -5,7 +5,9 @@
    <b>Photo {$image_name}</b>, {$c_date}, {$madewith}<br />
   </td>
   <td class="index_header" style="text-align: right;">
    <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>
    <img src="resources/information.png" />
   </td>
  </tr>