source: branches/2.4/themes/smartpocket/template/thumbnails.tpl @ 20015

Last change on this file since 20015 was 13545, checked in by patdenice, 12 years ago

Automaticaly set better derivative params for mobile theme according to screen size.

File size: 1.2 KB
Line 
1{if !empty($thumbnails)}
2{combine_script id='klass' path='themes/smartpocket/js/klass.min.js'}
3{combine_script id='photoswipe' path='themes/smartpocket/js/code.photoswipe.jquery.min.js' require='klass,jquery.mobile'}
4{combine_script id='smartpocket' path='themes/smartpocket/js/smartpocket.js' require='photoswipe'}
5{combine_script id='jquery.ajaxmanager' path='themes/default/js/plugins/jquery.ajaxmanager.js' load='footer'}
6{combine_script id='thumbnails.loader' path='themes/default/js/thumbnails.loader.js' require='jquery.ajaxmanager' load='footer'}
7
8<ul class="thumbnails">
9{foreach from=$thumbnails item=thumbnail}{strip}
10{assign var=derivative value=$pwg->derivative($thumbnail_derivative_params, $thumbnail.src_image)}
11{if isset($page_selection[$thumbnail.id])}
12  <li>
13    <a href="{$pwg->derivative_url($picture_derivative_params, $thumbnail.src_image)}" rel="external">
14     <img {if !$derivative->is_cached()}data-{/if}src="{$derivative->get_url()}" alt="{$thumbnail.TN_ALT}">
15    </a>
16  </li>
17{else}
18  <li style="display:none;">
19    <a href="{$pwg->derivative_url($picture_derivative_params, $thumbnail.src_image)}" rel="external"></a>
20  </li>
21{/if}
22{/strip}{/foreach}
23</ul>
24{/if}
Note: See TracBrowser for help on using the repository browser.