if($previous_img) {
$this->tmpl->assign('previous_url', "javascript:showImage(". $previous_img .");");
+ $this->tmpl->assign('prev_img', $previous_img);
}
if($next_img) {
$this->tmpl->assign('next_url', "javascript:showImage(". $next_img .");");
+ $this->tmpl->assign('next_img', $next_img);
}
+ $this->tmpl->assign('mini_width', $this->cfg->mini_width);
$this->tmpl->show("single_photo.tpl");
$this->cfg->thumb_width,
$this->cfg->bubble_width,
$this->cfg->photo_width,
+ $this->cfg->mini_width,
);
/* get details from F-Spot's database */
var $thumb_width = "150";
var $bubble_width = "200";
var $photo_width = "640";
+ var $mini_width = "100";
/* how many columns in the photo index view */
var $thumbs_per_row = 4;
<a class="smalltag" href="javascript:Tags('add', '{$id}');" onclick="click(this);" onclick="click(this);">{$name}</a><br />
{ /foreach }
{ /if }
+ <br />
+ { if $prev_img }
+ <u>Previous:</u><br />
+ <a href="{$previous_url}" onclick="click(this);">
+ <img src="phpfspot_img.php?idx={$prev_img}&width={$mini_width}" /><br />
+ </a>
+ { /if}
+ { if $next_img }
+ <u>Next:</u><br />
+ <a href="{$next_url}" onclick="click(this);">
+ <img src="phpfspot_img.php?idx={$next_img}&width={$mini_width}" /><br />
+ </a>
+ { /if}
</div>
</td>
</tr>