source: trunk/themes/smartpocket/template/thumbnails.tpl @ 13472

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

Multisize and mobile theme.
Use ajax loader for thumbnails in mobile theme.
Use standard square parameters for mobile theme.
Change square parameters to 120px.

File size: 1.3 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{define_derivative name='derivative_params_square' type='square'}
9{define_derivative name='derivative_params_large' type='large'}
10
11<ul class="thumbnails">
12{foreach from=$thumbnails item=thumbnail}{strip}
13{assign var=derivative value=$pwg->derivative($derivative_params_square, $thumbnail.src_image)}
14{if isset($page_selection[$thumbnail.id])}
15  <li>
16    <a href="{$pwg->derivative_url($derivative_params_large, $thumbnail.src_image)}" rel="external">
17     <img {if !$derivative->is_cached()}data-{/if}src="{$derivative->get_url()}" alt="{$thumbnail.TN_ALT}">
18    </a>
19  </li>
20{else}
21  <li style="display:none;">
22    <a href="{$pwg->derivative_url($derivative_params_large, $thumbnail.src_image)}" rel="external"></a>
23  </li>
24{/if}
25{/strip}{/foreach}
26</ul>
27{/if}
Note: See TracBrowser for help on using the repository browser.