Changeset 23715 for trunk/themes


Ignore:
Timestamp:
Jun 30, 2013, 9:41:33 PM (11 years ago)
Author:
flop25
Message:

Directly display the picture page if it uses a representative pict

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/themes/smartpocket/template/thumbnails.tpl

    r23713 r23715  
    99{foreach from=$thumbnails item=thumbnail}{strip}
    1010{assign var=derivative value=$pwg->derivative($thumbnail_derivative_params, $thumbnail.src_image)}
    11 {if isset($page_selection[$thumbnail.id])}
     11{if isset($page_selection[$thumbnail.id]) and !isset($thumbnail.representative_ext)}
    1212  <li>
    1313    <a href="{$pwg->derivative_url($picture_derivative_params, $thumbnail.src_image)}" data-picture-url="{$thumbnail.URL}" rel="external">
     14     <img {if !$derivative->is_cached()}data-{/if}src="{$derivative->get_url()}" alt="{$thumbnail.TN_ALT}">
     15    </a>
     16  </li>
     17{elseif isset($thumbnail.representative_ext)}
     18  <li>
     19    <a href="{$thumbnail.URL}" target="_blank" onClick="window.location='{$thumbnail.URL}'">
    1420     <img {if !$derivative->is_cached()}data-{/if}src="{$derivative->get_url()}" alt="{$thumbnail.TN_ALT}">
    1521    </a>
Note: See TracChangeset for help on using the changeset viewer.