diff options
author | Andreas Unterkircher <unki@netshadow.at> | 2007-06-06 17:27:14 +0000 |
---|---|---|
committer | Andreas Unterkircher <unki@netshadow.at> | 2007-06-06 17:27:14 +0000 |
commit | 5dd7a5cd9bb3c6f8345549dfa51f2e4eb06aca9c (patch) | |
tree | 8968f1e5afcc7422e99b558b2ab71f8a15b730f4 /phpfspot.class.php | |
parent | 4e4feabf9fc563af3e39af741c078bb3a9afedb8 (diff) |
use a template for the photo index
git-svn-id: file:///var/lib/svn/phpfspot/trunk@23 fa6a889d-dae6-447d-9e79-4ba9a3039384
Diffstat (limited to 'phpfspot.class.php')
-rw-r--r-- | phpfspot.class.php | 7 |
1 files changed, 5 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 ."&width=". $this->cfg->thumb_width ."\" /><br />\n"; + $images.= "<img src=\"phpfspot_img.php?idx=". $photo ."&width=". $this->cfg->thumb_width ."\" /><br />\n"; } + $this->tmpl->assign('image_matrix', $images); + $this->tmpl->show("photo_index.tpl"); + + } // showPhotoIndex() } |