1 | <!-- **GBL** >THUMBNAILS> --> |
---|
2 | {if !empty($thumbnails)} |
---|
3 | {* get thumbnails loader manager from piwigo default's theme *} |
---|
4 | {combine_script id='jquery.ajaxmanager' path='themes/default/js/plugins/jquery.ajaxmanager.js' load='footer'} |
---|
5 | {combine_script id='thumbnails.loader' path='themes/default/js/thumbnails.loader.js' require='jquery.ajaxmanager' load='footer'} |
---|
6 | {html_style} |
---|
7 | .content ul.thumbnails table.wrap1 tr.imgRow td, .wrap2 |
---|
8 | {ldelim} |
---|
9 | width:{$derivative_params->max_width()+20}px; |
---|
10 | height:{$derivative_params->max_height()+20}px; |
---|
11 | } |
---|
12 | {/html_style} |
---|
13 | |
---|
14 | <ul class="thumbnails"> |
---|
15 | {foreach from=$thumbnails item=thumbnail} |
---|
16 | {assign var=derivative value=$pwg->derivative($derivative_params, $thumbnail.src_image)} |
---|
17 | <li> |
---|
18 | <table class="wrap1"> |
---|
19 | <tr class="imgRow"> |
---|
20 | <td> |
---|
21 | <a href="{$thumbnail.URL}"> |
---|
22 | <span class="wrap2 sTipOnTop" |
---|
23 | {if isset($thumbnail.NB_COMMENTS) or isset($thumbnail.NB_HITS) } |
---|
24 | title="{if isset($thumbnail.NB_COMMENTS)}<span class='{if 0==$thumbnail.NB_COMMENTS}zero {/if}nb-comments'>{$pwg->l10n_dec('%d comment', '%d comments',$thumbnail.NB_COMMENTS)}</span>{/if} |
---|
25 | {if isset($thumbnail.NB_HITS)}<span class='{if 0==$thumbnail.NB_HITS}zero {/if}nb-hits'>{$pwg->l10n_dec('%d hit', '%d hits',$thumbnail.NB_HITS)}</span>{/if}" |
---|
26 | {/if}> |
---|
27 | <img {if isset($thumbnail.LONGDESC) and $thumbnail.LONGDESC!=""}longdesc="{$thumbnail.LONGDESC}"{/if} |
---|
28 | class="thumbnail {if isset($thumbnail.EXTRA_CLASS)}{$thumbnail.EXTRA_CLASS}{/if}" |
---|
29 | {if !$derivative->is_cached()}data-{/if}src="{$derivative->get_url()}" |
---|
30 | alt="{$thumbnail.TN_ALT}"/> |
---|
31 | </span> |
---|
32 | </a> |
---|
33 | </td> |
---|
34 | </tr> |
---|
35 | <tr class="nfoRow"> |
---|
36 | <td> |
---|
37 | {if $SHOW_THUMBNAIL_CAPTION } |
---|
38 | <span class="thumbLegend"> |
---|
39 | |
---|
40 | {if !empty($thumbnail.icon_ts)} |
---|
41 | <span class="newImage button id_recent"></span> |
---|
42 | {/if} |
---|
43 | {if !empty($thumbnail.NAME)}{$thumbnail.NAME}{/if} |
---|
44 | |
---|
45 | </span> |
---|
46 | {/if} |
---|
47 | </td> |
---|
48 | </tr> |
---|
49 | </table> |
---|
50 | </li> |
---|
51 | {/foreach} |
---|
52 | </ul> |
---|
53 | {/if} |
---|
54 | |
---|
55 | |
---|
56 | <!-- **GBL** <THUMBNAILS< --> |
---|