use a template for the photo index
authorAndreas Unterkircher <unki@netshadow.at>
Wed, 6 Jun 2007 17:27:14 +0000 (17:27 +0000)
committerAndreas Unterkircher <unki@netshadow.at>
Wed, 6 Jun 2007 17:27:14 +0000 (17:27 +0000)
git-svn-id: file:///var/lib/svn/phpfspot/trunk@23 fa6a889d-dae6-447d-9e79-4ba9a3039384

phpfspot.class.php
templates/photo_index.tpl [new file with mode: 0644]

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()
 
 }
diff --git a/templates/photo_index.tpl b/templates/photo_index.tpl
new file mode 100644 (file)
index 0000000..f917364
--- /dev/null
@@ -0,0 +1 @@
+{$image_matrix}