summaryrefslogtreecommitdiffstats
path: root/phpfspot.class.php
diff options
context:
space:
mode:
authorAndreas Unterkircher <unki@netshadow.at>2007-07-06 16:53:10 +0000
committerAndreas Unterkircher <unki@netshadow.at>2007-07-06 16:53:10 +0000
commit8f3e27ca1aea300a47d35b9474c8f5fd588460da (patch)
treec6a9b4578f33852157168a5abee6cd9291e20d19 /phpfspot.class.php
parent64f41bc1539ec51b909817df8b71094e7ceb7724 (diff)
issue21, reordered photo index and added some nice mouseover effect
git-svn-id: file:///var/lib/svn/phpfspot/trunk@166 fa6a889d-dae6-447d-9e79-4ba9a3039384
Diffstat (limited to 'phpfspot.class.php')
-rw-r--r--phpfspot.class.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/phpfspot.class.php b/phpfspot.class.php
index 818aca6..d6d3e69 100644
--- a/phpfspot.class.php
+++ b/phpfspot.class.php
@@ -112,6 +112,14 @@ class PHPFSPOT {
} // get_photo_details
+ public function getPhotoName($idx)
+ {
+ $details = $this->get_photo_details($idx);
+
+ return $details['name'];
+
+ } // getPhotoName()
+
public function translate_path($path, $width = 0)
{
return str_replace($this->cfg->path_replace_from, $this->cfg->path_replace_to, $path);
@@ -439,11 +447,13 @@ class PHPFSPOT {
$img_height[$rows] = Array();
$img_width[$rows] = Array();
$img_id[$rows] = Array();
+ $img_name[$rows] = Array();
for($i = $begin_with; $i < $end_with; $i++) {
$images[$rows][$cols] = $photos[$i];
$img_id[$rows][$cols] = $i;
+ $img_name[$rows][$cols] = $this->getPhotoName($photos[$i]);
$thumb_path = $this->cfg->base_path ."/thumbs/". $this->cfg->thumb_width ."_". $this->getMD5($photos[$i]);
@@ -544,6 +554,7 @@ class PHPFSPOT {
$this->tmpl->assign('img_width', $img_width);
$this->tmpl->assign('img_height', $img_height);
$this->tmpl->assign('img_id', $img_id);
+ $this->tmpl->assign('img_name', $img_name);
$this->tmpl->assign('rows', $rows);
$this->tmpl->assign('columns', $this->cfg->thumbs_per_row);