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

Last change on this file since 23713 was 23713, checked in by flop25, 11 years ago

bug:2848
jquery.mobile updated
photoswipe updated
menubar is now a right panel, with almost all the usual links
added comment, search, picture, about and tags pages

ToDo:
*bug correction of the link added to the photoswipe toolbar (link doesn't triggered)
*display the calculated size on the picture page
limitations: no calendar view

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)}" 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{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.