aboutsummaryrefslogtreecommitdiffstats
path: root/themes/smartpocket/template/thumbnails.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'themes/smartpocket/template/thumbnails.tpl')
-rw-r--r--themes/smartpocket/template/thumbnails.tpl8
1 files changed, 7 insertions, 1 deletions
diff --git a/themes/smartpocket/template/thumbnails.tpl b/themes/smartpocket/template/thumbnails.tpl
index 6c85dffa6..adba867f1 100644
--- a/themes/smartpocket/template/thumbnails.tpl
+++ b/themes/smartpocket/template/thumbnails.tpl
@@ -8,12 +8,18 @@
<ul class="thumbnails">
{foreach from=$thumbnails item=thumbnail}{strip}
{assign var=derivative value=$pwg->derivative($thumbnail_derivative_params, $thumbnail.src_image)}
-{if isset($page_selection[$thumbnail.id])}
+{if isset($page_selection[$thumbnail.id]) and !isset($thumbnail.representative_ext)}
<li>
<a href="{$pwg->derivative_url($picture_derivative_params, $thumbnail.src_image)}" data-picture-url="{$thumbnail.URL}" rel="external">
<img {if !$derivative->is_cached()}data-{/if}src="{$derivative->get_url()}" alt="{$thumbnail.TN_ALT}">
</a>
</li>
+{elseif isset($thumbnail.representative_ext)}
+ <li>
+ <a href="{$thumbnail.URL}" target="_blank" onClick="window.location='{$thumbnail.URL}'">
+ <img {if !$derivative->is_cached()}data-{/if}src="{$derivative->get_url()}" alt="{$thumbnail.TN_ALT}">
+ </a>
+ </li>
{else}
<li style="display:none;">
<a href="{$pwg->derivative_url($picture_derivative_params, $thumbnail.src_image)}" rel="external"></a>