[16030] | 1 | {if !empty($thumbnails)}{strip} |
---|
| 2 | {combine_script id='jquery.ajaxmanager' path='themes/default/js/plugins/jquery.ajaxmanager.js' load='footer'} |
---|
| 3 | {combine_script id='thumbnails.loader' path='themes/default/js/thumbnails.loader.js' require='jquery.ajaxmanager' load='footer'} |
---|
| 4 | {*define_derivative name='derivative_params' width=160 height=90 crop=true*} |
---|
| 5 | {html_style} |
---|
| 6 | {*Set some sizes according to maximum thumbnail width and height*} |
---|
| 7 | .thumbnails SPAN, |
---|
| 8 | .thumbnails .wrap2 A, |
---|
| 9 | .thumbnails LABEL{ldelim} |
---|
| 10 | width: {$derivative_params->max_width()+2}px; |
---|
| 11 | } |
---|
| 12 | |
---|
| 13 | .thumbnails .wrap2{ldelim} |
---|
| 14 | height: {$derivative_params->max_height()+3}px; |
---|
| 15 | } |
---|
| 16 | {if $derivative_params->max_width() > 600} |
---|
| 17 | .thumbLegend {ldelim}font-size: 130%} |
---|
| 18 | {else} |
---|
| 19 | {if $derivative_params->max_width() > 400} |
---|
| 20 | .thumbLegend {ldelim}font-size: 110%} |
---|
| 21 | {else} |
---|
| 22 | .thumbLegend {ldelim}font-size: 90%} |
---|
| 23 | {/if} |
---|
| 24 | {/if} |
---|
| 25 | {/html_style} |
---|
[13546] | 26 | <ul> |
---|
| 27 | {foreach from=$thumbnails item=thumbnail} |
---|
[16030] | 28 | {assign var=derivative value=$pwg->derivative($derivative_params, $thumbnail.src_image)} |
---|
[13546] | 29 | <li> |
---|
| 30 | <a href="{$thumbnail.URL}"> |
---|
[16030] | 31 | <img class="thumbnail" {if !$derivative->is_cached()}data-{/if}src="{$derivative->get_url()}" alt="{$thumbnail.TN_ALT}" title="{$thumbnail.TN_TITLE}"> |
---|
[13546] | 32 | </a> |
---|
[13557] | 33 | {if $SHOW_THUMBNAIL_CAPTION } |
---|
[13546] | 34 | <p> |
---|
| 35 | {if isset($thumbnail.NAME)}{$thumbnail.NAME}{/if} |
---|
| 36 | {if !empty($thumbnail.icon_ts)} |
---|
| 37 | <img title="{$thumbnail.icon_ts.TITLE}" src="{$ROOT_URL}{$themeconf.icon_dir}/recent.png" class="icon" alt="(!)"> |
---|
| 38 | {/if} |
---|
| 39 | {if isset($thumbnail.NB_COMMENTS)} |
---|
| 40 | <span class="{if 0==$thumbnail.NB_COMMENTS}zero {/if}nb-comments"> |
---|
[13557] | 41 | ({$pwg->l10n_dec('%d comment', '%d comments',$thumbnail.NB_COMMENTS)}) |
---|
[13546] | 42 | </span> |
---|
| 43 | {/if} |
---|
| 44 | </p> |
---|
[13557] | 45 | {/if} |
---|
[13546] | 46 | </li> |
---|
[16030] | 47 | {/foreach}{/strip} |
---|
[13546] | 48 | </ul> |
---|
| 49 | {/if} |
---|