source: extensions/stripped/template/thumbnails.tpl @ 26898

Last change on this file since 26898 was 26898, checked in by flop25, 10 years ago

Better 2.6 compatibility

File size: 2.2 KB
Line 
1{footer_script}
2  var error_icon = "{$ROOT_URL}{$themeconf.icon_dir}/errors_small.png", max_requests = {$maxRequests};
3{/footer_script}
4{if !empty($thumbnails)}{strip}
5<ul class="thumbList">
6        {foreach from=$thumbnails item=thumbnail}
7  {assign var=derivative value=$pwg->derivative($stripped.thumbSize, $thumbnail.src_image)}
8  {if !$derivative->is_cached()}
9  {combine_script id='jquery.ajaxmanager' path='themes/default/js/plugins/jquery.ajaxmanager.js' load='footer'}
10  {combine_script id='thumbnails.loader' path='themes/default/js/thumbnails.loader.js' require='jquery.ajaxmanager' load='footer'}
11  {/if}
12                <li>
13                        <span class="wrap1">
14                                <span class="wrap2 {if !($stripped.showThumbLegend)}wrap2full{/if}">
15                                        <a href="{$thumbnail.URL}"><div class="thumbframe"><div class="thumbpos">
16                                                <img class="thumbnail" {if $derivative->is_cached()}src="{$derivative->get_url()}"{else}src="{$ROOT_URL}{$themeconf.icon_dir}/img_small.png" data-src="{$derivative->get_url()}"{/if} alt="{$thumbnail.TN_ALT}" title="{if isset($thumbnail.NAME)}{$thumbnail.NAME|@replace:'"':' '}{else}{$thumbnail.TN_TITLE}{/if}">
17                                                {if (isset($stripped.imagePreload) & isset($stripped.imagePreloadThumbs))}
18                                                        {assign var=preload value=$pwg->derivative($stripped.imageSize, $thumbnail.src_image)}
19                                                        <div class="preload" style="display:none;">{$preload->get_url()}</div>
20                                                {/if}
21                                        </div></div></a>
22                                </span>
23                                <span class="thumbLegend {if !($stripped.showThumbLegend)}noLegend{/if}">
24                                        <span class="thumbCaption">{if isset($thumbnail.NAME)}{$thumbnail.NAME}{/if}</span>
25                                        {if !empty($thumbnail.icon_ts)}
26                                                <img title="{$thumbnail.icon_ts.TITLE}" src="{$ROOT_URL}{$themeconf.icon_dir}/recent.png" class="icon" alt="(!)">
27                                        {/if}
28                                        <div class="thumbStats">
29                                                {if isset($thumbnail.NB_COMMENTS)}
30                                                        <span class="{if 0==$thumbnail.NB_COMMENTS}zero {/if}nb-comments">
31                                                                {$thumbnail.NB_COMMENTS|translate_dec:'%d comment':'%d comments'}
32                                                        </span>
33                                                {/if}
34                                                {if isset($thumbnail.NB_HITS)}
35                                                        <span class="{if 0==$thumbnail.NB_HITS}zero {/if}nb-hits">
36                                                                {$thumbnail.NB_HITS|translate_dec:'%d hit':'%d hits'}
37                                                        </span>
38                                                {/if}
39                                        </div>
40                                </span>
41                        </span>
42                </li>
43        {/foreach}
44</ul>
45{/strip}{/if}
Note: See TracBrowser for help on using the repository browser.