diff options
author | flop25 <flop25@piwigo.org> | 2013-06-30 19:41:33 +0000 |
---|---|---|
committer | flop25 <flop25@piwigo.org> | 2013-06-30 19:41:33 +0000 |
commit | 80576a8ff65f9557e4bcd42b561934028516e0ad (patch) | |
tree | 59a4996b07ae8b055e05e64b219c1c9d0105644e /themes/smartpocket/template | |
parent | 85d592c8d4af59170ce4ff0faf3f64f47a311401 (diff) |
Directly display the picture page if it uses a representative pict
git-svn-id: http://piwigo.org/svn/trunk@23715 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | themes/smartpocket/template/thumbnails.tpl | 8 |
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>
|