only show preview icon in photo index when use_lightbox is set in the config
[phpfspot.git] / themes / default / templates / photo_index.tpl
index ae0c62cc1a69bb99fd3b1920babdb9aba8b2f208..1a1a18856ecb64129add77f4fcc5f52f5835373f 100644 (file)
@@ -54,6 +54,9 @@
      <br />
     {$img_name[thumb]}
     </a>
+    { if $use_lightbox }
+    <a href="phpfspot_img.php?idx={$images[thumb]}&amp;width={$preview_width}" alt="thumb_{$images[thumb]}" rel="lightbox[photoidx]" title="Preview of {$img_fullname[thumb]}"><img src="resources/eyes.png" /></a>
+    { /if }
    </div>
 
   {/if}