summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpfspot.class.php7
-rw-r--r--templates/photo_index.tpl1
2 files changed, 6 insertions, 2 deletions
diff --git a/phpfspot.class.php b/phpfspot.class.php
index 6a2edc3..628cfea 100644
--- a/phpfspot.class.php
+++ b/phpfspot.class.php
@@ -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
index 0000000..f917364
--- /dev/null
+++ b/templates/photo_index.tpl
@@ -0,0 +1 @@
+{$image_matrix}