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

Last change on this file since 21216 was 21216, checked in by flop25, 11 years ago

* version 2.4.0

  • update for 2.5:

--website for comments (r21215)
--ajax loader and thumbnails icons
--navigation bar updated (r21210)

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