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 | |
---|
18 | {* |
---|
19 | -- à voir plus tard -- |
---|
20 | {if !empty($thumbnail.icon_ts)} |
---|
21 | <span class="newImage button id_recent"></span> |
---|
22 | {/if} |
---|
23 | *} |
---|
24 | |
---|
25 | <li style="position:relative;left:{$gally->getRandomBox('randomPositionBoxX')}px;top:{$gally->getRandomBox('randomPositionBoxY')}px;"> |
---|
26 | <a href="{$thumbnail.URL}"> |
---|
27 | |
---|
28 | <img {if isset($thumbnail.LONGDESC) and $thumbnail.LONGDESC!=""}longdesc="{$thumbnail.LONGDESC}"{/if} |
---|
29 | class="thumbnail {if isset($thumbnail.EXTRA_CLASS)}{$thumbnail.EXTRA_CLASS}{/if}" |
---|
30 | {if !$derivative->is_cached()}data-{/if}src="{$derivative->get_url()}" |
---|
31 | alt="{$thumbnail.TN_ALT}" |
---|
32 | {if isset($thumbnail.NB_COMMENTS) or isset($thumbnail.NB_HITS) } |
---|
33 | 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} |
---|
34 | {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}" |
---|
35 | {/if} |
---|
36 | > |
---|
37 | </a> |
---|
38 | </li> |
---|
39 | {/foreach} |
---|
40 | </ul> |
---|
41 | {/if} |
---|
42 | |
---|
43 | |
---|
44 | <!-- **GBL** <THUMBNAILS< --> |
---|