Commit 28ae29a28c5f6d91a53d2bfb499ea1dac91bb584

Authored by Paul Barrett
1 parent eb4f24fe

Remove invalid link from thumbnail back to document page when Instant View disabled

When instant view was disabled the thumbnail had a link which popped up a new window showing the same document details page.

Committed by: Paul Barrett
plugins/thumbnails/templates/thumbnail_viewlet.smarty
@@ -13,14 +13,16 @@ @@ -13,14 +13,16 @@
13 <div id="thumb_{/literal}{$documentId}{literal}" class="thumb"> 13 <div id="thumb_{/literal}{$documentId}{literal}" class="thumb">
14 <a href='{$url}' rel="lightbox" title="{$title}"> 14 <a href='{$url}' rel="lightbox" title="{$title}">
15 <img id="img{$documentId}" src="{$thumbnail}" {if $height}height="{$height}"{/if} class="lightbox_window"/> 15 <img id="img{$documentId}" src="{$thumbnail}" {if $height}height="{$height}"{/if} class="lightbox_window"/>
  16 + </a>
16 </div> 17 </div>
17 {else} 18 {else}
18 - <a href='{$url}' target='_blank'>  
19 - <img src="{$thumbnail}" {if $height}height="{$height}"{/if}/>  
20 - {/if}  
21 -  
22 - {if $url}  
23 - </a> 19 + {if $url}
  20 + <a href='{$url}' target='_blank'>
  21 + <img src="{$thumbnail}" {if $height}height="{$height}"{/if}/>
  22 + </a>
  23 + {else}
  24 + <img src="{$thumbnail}" {if $height}height="{$height}"{/if}/>
  25 + {/if}
24 {/if} 26 {/if}
25 </div> 27 </div>
26 </div> 28 </div>
27 \ No newline at end of file 29 \ No newline at end of file