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 | |
---|
8 | .thumbnails .wrap2{ldelim} |
---|
9 | height: {$derivative_params->max_height()+3}px; |
---|
10 | } |
---|
11 | {if $derivative_params->max_width() > 600} |
---|
12 | .thumbLegend {ldelim}font-size: 130%} |
---|
13 | {else} |
---|
14 | {if $derivative_params->max_width() > 400} |
---|
15 | .thumbLegend {ldelim}font-size: 110%} |
---|
16 | {else} |
---|
17 | .thumbLegend {ldelim}font-size: 90%} |
---|
18 | {/if} |
---|
19 | {/if} |
---|
20 | {/html_style} |
---|
21 | |
---|
22 | |
---|
23 | |
---|
24 | {foreach from=$thumbnails item=thumbnail} |
---|
25 | {assign var=derivative value=$pwg->derivative($derivative_params, $thumbnail.src_image)} |
---|
26 | <li> |
---|
27 | <span class="wrap1"> |
---|
28 | <span class="wrap2"> |
---|
29 | <div class="thumbnail"> |
---|
30 | <a href="{$thumbnail.URL}"> |
---|
31 | <img class="thumbnail" src="{$derivative->get_url()}" alt="{$thumbnail.TN_ALT}" title="{$thumbnail.TN_TITLE}"> |
---|
32 | {footer_script}{literal} |
---|
33 | jQuery(function($) { |
---|
34 | $(".thumbnail").reflect({height:0.3,opacity:0.3}); |
---|
35 | }); |
---|
36 | {/literal}{/footer_script} |
---|
37 | </a> |
---|
38 | {if $SHOW_THUMBNAIL_CAPTION } |
---|
39 | |
---|
40 | <a href="{$thumbnail.URL}"> |
---|
41 | |
---|
42 | <div class=description> |
---|
43 | <span class="thumbLegend"> |
---|
44 | <span class="thumbName">{$thumbnail.NAME}</span> |
---|
45 | {if !empty($thumbnail.icon_ts)} |
---|
46 | <img title="{$thumbnail.icon_ts.TITLE}" src="{$ROOT_URL}{$themeconf.icon_dir}/recent.png" alt="(!)"> |
---|
47 | {/if} |
---|
48 | {if isset($thumbnail.NB_COMMENTS)} |
---|
49 | <span class="{if 0==$thumbnail.NB_COMMENTS}zero {/if}nb-comments"> |
---|
50 | <br> |
---|
51 | {$pwg->l10n_dec('%d comment', '%d comments',$thumbnail.NB_COMMENTS)} |
---|
52 | </span> |
---|
53 | {/if} |
---|
54 | {if isset($thumbnail.NB_HITS)} |
---|
55 | <span class="{if 0==$thumbnail.NB_HITS}zero {/if}nb-hits"> |
---|
56 | <br> |
---|
57 | {$pwg->l10n_dec('%d hit', '%d hits',$thumbnail.NB_HITS)} |
---|
58 | </span> |
---|
59 | {/if} |
---|
60 | </span> |
---|
61 | </div> |
---|
62 | </a> |
---|
63 | </div> |
---|
64 | </span> |
---|
65 | {/if} |
---|
66 | </span> |
---|
67 | </li> |
---|
68 | |
---|
69 | {/foreach}{/strip} |
---|
70 | {/if} |
---|