summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
2ce4888)
when the next image gets loaded
git-svn-id: file:///var/lib/svn/phpfspot/trunk@53
fa6a889d-dae6-447d-9e79-
4ba9a3039384
$details = $this->get_photo_details($photo);
$meta = $this->get_meta_informations($this->translate_path($details['directory_path']) ."/". $details['name']);
$details = $this->get_photo_details($photo);
$meta = $this->get_meta_informations($this->translate_path($details['directory_path']) ."/". $details['name']);
+ $info = getimagesize($this->translate_path($details['directory_path']) ."/thumbs/". $this->cfg->photo_width ."_". $details['name']);
+ $this->tmpl->assign('width', $info[0]);
+ $this->tmpl->assign('height', $info[1]);
$this->tmpl->assign('c_date', $meta['DateTime']);
$this->tmpl->assign('madewith', $meta['Make'] ." ". $meta['Model']);
$this->tmpl->assign('image_name', $details['name']);
$this->tmpl->assign('c_date', $meta['DateTime']);
$this->tmpl->assign('madewith', $meta['Make'] ." ". $meta['Model']);
$this->tmpl->assign('image_name', $details['name']);
{ else }
<a href="{$next_url}">
{ /if }
{ else }
<a href="{$next_url}">
{ /if }
- <img src="{$image_url}" />
+ <img src="{$image_url}" width="{$width}" height="{$height}" />