issue31, a mini preview of the previous and next photo is now shown in a single photo...
authorAndreas Unterkircher <unki@netshadow.at>
Sat, 7 Jul 2007 09:50:07 +0000 (09:50 +0000)
committerAndreas Unterkircher <unki@netshadow.at>
Sat, 7 Jul 2007 09:50:07 +0000 (09:50 +0000)
git-svn-id: file:///var/lib/svn/phpfspot/trunk@175 fa6a889d-dae6-447d-9e79-4ba9a3039384

phpfspot.class.php
phpfspot_cfg.php.dist
templates/single_photo.tpl

index 92a0199a339bdbe89c949e6a2a6d4289a2a81121..15d130222bcca7454294c1ffe817b150c7426c4d 100644 (file)
@@ -217,11 +217,14 @@ class PHPFSPOT {
 
       if($previous_img) {
          $this->tmpl->assign('previous_url', "javascript:showImage(". $previous_img .");");
 
       if($previous_img) {
          $this->tmpl->assign('previous_url', "javascript:showImage(". $previous_img .");");
+         $this->tmpl->assign('prev_img', $previous_img);
       }
 
       if($next_img) {
          $this->tmpl->assign('next_url', "javascript:showImage(". $next_img .");");
       }
 
       if($next_img) {
          $this->tmpl->assign('next_url', "javascript:showImage(". $next_img .");");
+         $this->tmpl->assign('next_img', $next_img);
       }
       }
+      $this->tmpl->assign('mini_width', $this->cfg->mini_width);
 
       $this->tmpl->show("single_photo.tpl");
 
 
       $this->tmpl->show("single_photo.tpl");
 
@@ -798,6 +801,7 @@ class PHPFSPOT {
          $this->cfg->thumb_width,
          $this->cfg->bubble_width,
          $this->cfg->photo_width,
          $this->cfg->thumb_width,
          $this->cfg->bubble_width,
          $this->cfg->photo_width,
+         $this->cfg->mini_width,
       );
 
       /* get details from F-Spot's database */
       );
 
       /* get details from F-Spot's database */
index ecb45ac931f113e5d69bb4c0b5e437f6e7a706d1..65475531a5e41fd5ebe369abe137f38590aecc36 100644 (file)
@@ -23,6 +23,7 @@ class PHPFSPOT_CFG {
    var $thumb_width = "150";
    var $bubble_width = "200";
    var $photo_width = "640";
    var $thumb_width = "150";
    var $bubble_width = "200";
    var $photo_width = "640";
+   var $mini_width = "100";
 
    /* how many columns in the photo index view */
    var $thumbs_per_row = 4;
 
    /* how many columns in the photo index view */
    var $thumbs_per_row = 4;
index 5ad245004c5b08ad1e620225440222c5990745b9..5b5c7ac27b2a791212b9a0020b417b67220f3acd 100644 (file)
     <a class="smalltag" href="javascript:Tags('add', '{$id}');" onclick="click(this);" onclick="click(this);">{$name}</a><br />
     { /foreach }
    { /if }
     <a class="smalltag" href="javascript:Tags('add', '{$id}');" onclick="click(this);" onclick="click(this);">{$name}</a><br />
     { /foreach }
    { /if }
+   <br />
+   { if $prev_img }
+    <u>Previous:</u><br />
+    <a href="{$previous_url}" onclick="click(this);">
+     <img src="phpfspot_img.php?idx={$prev_img}&amp;width={$mini_width}" /><br />
+    </a>
+   { /if}
+   { if $next_img }
+    <u>Next:</u><br />
+    <a href="{$next_url}" onclick="click(this);">
+     <img src="phpfspot_img.php?idx={$next_img}&amp;width={$mini_width}" /><br />
+    </a>
+   { /if}
    </div>
   </td>
  </tr>
    </div>
   </td>
  </tr>