summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Unterkircher <unki@netshadow.at>2007-06-06 17:27:14 +0000
committerAndreas Unterkircher <unki@netshadow.at>2007-06-06 17:27:14 +0000
commit5dd7a5cd9bb3c6f8345549dfa51f2e4eb06aca9c (patch)
tree8968f1e5afcc7422e99b558b2ab71f8a15b730f4
parent4e4feabf9fc563af3e39af741c078bb3a9afedb8 (diff)
use a template for the photo index
git-svn-id: file:///var/lib/svn/phpfspot/trunk@23 fa6a889d-dae6-447d-9e79-4ba9a3039384
-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}