Line | |
---|
1 | {if !empty($thumbnails)} |
---|
2 | {$row_height=216} |
---|
3 | {$hmargin=4} |
---|
4 | {$vmargin=5} |
---|
5 | {$container_margin=-10} |
---|
6 | |
---|
7 | {combine_script id='klass' path='themes/smartpocket/js/klass.min.js'} |
---|
8 | {combine_script id='photoswipe' path='themes/smartpocket/js/code.photoswipe.jquery.min.js' require='klass,jquery.mobile'} |
---|
9 | {combine_script id='smartpocket' path='themes/smartpocket/js/smartpocket.js' require='photoswipe'} |
---|
10 | {combine_script id='sp.thumb.arrange' path='themes/smartpocket/js/thumb.arrange.js' require='jquery' load='footer'} |
---|
11 | {footer_script} |
---|
12 | var var_loop = {if $smartpocket.loop}true{else}false{/if}, var_autohide = {$smartpocket.autohide}, var_trad = "{'More Information'|@translate}"; |
---|
13 | var SPThumbsOpts ={ hMargin:{$hmargin},rowHeight:{$row_height}}; |
---|
14 | {/footer_script} |
---|
15 | {$thumb_picker->init($row_height)} |
---|
16 | {html_style} |
---|
17 | .thumbnails .liEmpty{ display:none} |
---|
18 | .thumbnails LI{ margin-left:{$hmargin}px; margin-bottom:{$vmargin}px} |
---|
19 | .thumbnails { margin:0 {$container_margin}px 0 {$container_margin-$hmargin}px} |
---|
20 | {/html_style} |
---|
21 | <ul class="thumbnails"> |
---|
22 | {foreach from=$thumbnails item=thumbnail}{strip} |
---|
23 | {$derivative=$thumb_picker->pick($thumbnail.src_image)} |
---|
24 | {if isset($page_selection[$thumbnail.id])} |
---|
25 | <li class="liVisible"> |
---|
26 | {if !isset($thumbnail.representative_ext)} |
---|
27 | <a href="{$pwg->derivative_url($picture_derivative_params, $thumbnail.src_image)}" data-picture-url="{$thumbnail.URL}" rel="external"> |
---|
28 | {else} |
---|
29 | <a href="{$thumbnail.URL}" target="_blank" onClick="window.location='{$thumbnail.URL}'"> |
---|
30 | {/if} |
---|
31 | <img src="{$derivative->get_url()}" {$derivative->get_size_htm()} alt="{$thumbnail.TN_ALT}"> |
---|
32 | {else} |
---|
33 | <li class="liEmpty"> |
---|
34 | <a href="{$pwg->derivative_url($picture_derivative_params, $thumbnail.src_image)}" rel="external"> |
---|
35 | {/if} |
---|
36 | </a></li> |
---|
37 | {/strip}{/foreach} |
---|
38 | </ul> |
---|
39 | {/if} |
---|
Note: See
TracBrowser
for help on using the repository browser.