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