summaryrefslogtreecommitdiffstats
path: root/themes/default/templates
diff options
context:
space:
mode:
authorAndreas Unterkircher <unki@netshadow.at>2008-01-19 10:02:19 +0100
committerAndreas Unterkircher <unki@netshadow.at>2008-01-19 10:02:19 +0100
commitaddc988921081fcc4571be3cc7cd2375e621fee4 (patch)
tree897e4471e21e60325f1938ce0e7f7fd1e1003a63 /themes/default/templates
parent1b98418fc7f31d2d10364a60bc798ee85ef7add1 (diff)
issue102, use javascript to jump to the correct thumbnail when returing from photo-view
Signed-off-by: Andreas Unterkircher <unki@netshadow.at>
Diffstat (limited to 'themes/default/templates')
-rw-r--r--themes/default/templates/photo_index.tpl22
-rw-r--r--themes/default/templates/single_photo.tpl2
2 files changed, 15 insertions, 9 deletions
diff --git a/themes/default/templates/photo_index.tpl b/themes/default/templates/photo_index.tpl
index 717b3f2..dff6ab1 100644
--- a/themes/default/templates/photo_index.tpl
+++ b/themes/default/templates/photo_index.tpl
@@ -43,17 +43,23 @@
</div>
<div id="index">
+
{section name="thumb" loop=$thumbs step=1}
+
{if $images[thumb] }
- <div class="thumb" onmouseover="setBackGrdColor(this, 'mouseover');" onmouseout="setBackGrdColor(this, 'mouseout');" style="width: { $thumb_container_width }px; height: { $thumb_container_height }px;">
- <a href="javascript:showImage({$images[thumb]}, 'scrollup');" id="{$images[thumb]}" name="image{$img_id[thumb]}" class="thumblink" onclick="click(this);" title="{$img_title[thumb]}">
- <img class="thumb" id="{$images[thumb]}" src="phpfspot_img.php?idx={$images[thumb]}&amp;width={$width}" alt="thumb_{$images[thumb]}" width="{$img_width[thumb]}" height="{$img_height[thumb]}" />
- <br />
- {$img_name[thumb]}
- </a>
- </div>
- {/if}
+
+ <div class="thumb" onmouseover="setBackGrdColor(this, 'mouseover');" onmouseout="setBackGrdColor(this, 'mouseout');" style="width: { $thumb_container_width }px; height: { $thumb_container_height }px;">
+ <a href="javascript:showImage({$images[thumb]}, 'scrollup');" id="thumblink{$images[thumb]}" name="image{$img_id[thumb]}" class="thumblink" onclick="click(this);" title="{$img_title[thumb]}">
+ <img class="thumb" id="thumbimg{$images[thumb]}" src="phpfspot_img.php?idx={$images[thumb]}&amp;width={$width}" alt="thumb_{$images[thumb]}" width="{$img_width[thumb]}" height="{$img_height[thumb]}" />
+ <br />
+ {$img_name[thumb]}
+ </a>
+ </div>
+
+ {/if}
+
{/section}
+
</div>
<br class="clearboth" />
<div style="width: 100%; margin-top: 20px;">
diff --git a/themes/default/templates/single_photo.tpl b/themes/default/templates/single_photo.tpl
index 2032f52..62a2bf7 100644
--- a/themes/default/templates/single_photo.tpl
+++ b/themes/default/templates/single_photo.tpl
@@ -80,7 +80,7 @@
<img src="resources/arrow_left.png" alt="previous photo" />
</a>
{ /if }
- <a href="javascript:showPhotoIndex({$current});" onclick="click(this);" title="click to go back to the index">
+ <a href="javascript:showPhotoIndex({$current_page}, {$current_img});" onclick="click(this);" title="click to go back to the index">
<img src="resources/arrow_up.png" alt="photo index" />
</a>
{ if $next_url == "" }