use a template for the photo index
[phpfspot.git] / phpfspot.class.php
index 6a2edc3a76392910a71b82914ff281a1084ecb15..628cfeacba8adec7b5e6e4eabc09f0cc5833c294 100644 (file)
@@ -219,12 +219,15 @@ class PHPFSPOT {
 
    public function showPhotoIndex()
    {
-
       foreach($this->getAllTagPhotos() as $photo)
       {
-         print "<img src=\"phpfspot_img.php?idx=". $photo ."&amp;width=". $this->cfg->thumb_width ."\" /><br />\n";
+         $images.= "<img src=\"phpfspot_img.php?idx=". $photo ."&amp;width=". $this->cfg->thumb_width ."\" /><br />\n";
       }
 
+      $this->tmpl->assign('image_matrix', $images);
+      $this->tmpl->show("photo_index.tpl");
+
+
    } // showPhotoIndex()
 
 }