issue31, a mini preview of the previous and next photo is now shown in a single photo...
[phpfspot.git] / phpfspot.class.php
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 */