From 5dd7a5cd9bb3c6f8345549dfa51f2e4eb06aca9c Mon Sep 17 00:00:00 2001 From: Andreas Unterkircher Date: Wed, 6 Jun 2007 17:27:14 +0000 Subject: [PATCH] use a template for the photo index git-svn-id: file:///var/lib/svn/phpfspot/trunk@23 fa6a889d-dae6-447d-9e79-4ba9a3039384 --- phpfspot.class.php | 7 +++++-- templates/photo_index.tpl | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 templates/photo_index.tpl 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 "
\n"; + $images.= "
\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} -- 2.25.1