some nice credit page
[phpfspot.git] / phpfspot.class.php
index ab5cb9e12c165ab9b34dc3fd0349e9f216146e44..5df3115d03861c517002144fd1c141af094d3992 100644 (file)
@@ -98,9 +98,11 @@ class PHPFSPOT {
          }
       }
 
-      if(isset($photo)) {
-         $this->tmpl->assign('image_url', 'phpfspot_img.php?idx='. $photo ."&width=". $this->cfg->photo_width);
-      }
+
+      $details = $this->get_photo_details($photo);
+
+      $this->tmpl->assign('image_name', $details['name']);
+      $this->tmpl->assign('image_url', 'phpfspot_img.php?idx='. $photo ."&width=". $this->cfg->photo_width);
 
       if($previous_img) {
          $this->tmpl->assign('previous_url', "javascript:showImage(". $previous_img .");");
@@ -263,7 +265,15 @@ class PHPFSPOT {
       $this->tmpl->assign('image_url', $image_url);
       $this->tmpl->show("bubble_details.tpl");
 
-   }
+   } // showBubbleDetails()
+
+   public function showCredits()
+   {
+      $this->tmpl->assign('version', $this->cfg->version);
+      $this->tmpl->assign('product', $this->cfg->product);
+      $this->tmpl->show("credits.tpl");
+
+   } // showCredits()
 
 }