diff options
Diffstat (limited to 'themes')
-rw-r--r-- | themes/default/templates/photo_index.tpl | 22 | ||||
-rw-r--r-- | themes/default/templates/single_photo.tpl | 2 |
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]}&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]}&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 == "" } |