Commit 28ae29a28c5f6d91a53d2bfb499ea1dac91bb584
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
Showing
1 changed file
with
8 additions
and
6 deletions
plugins/thumbnails/templates/thumbnail_viewlet.smarty
| ... | ... | @@ -13,14 +13,16 @@ |
| 13 | 13 | <div id="thumb_{/literal}{$documentId}{literal}" class="thumb"> |
| 14 | 14 | <a href='{$url}' rel="lightbox" title="{$title}"> |
| 15 | 15 | <img id="img{$documentId}" src="{$thumbnail}" {if $height}height="{$height}"{/if} class="lightbox_window"/> |
| 16 | + </a> | |
| 16 | 17 | </div> |
| 17 | 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 | 26 | {/if} |
| 25 | 27 | </div> |
| 26 | 28 | </div> |
| 27 | 29 | \ No newline at end of file | ... | ... |