source: trunk/themes/default/template/thumbnails.tpl @ 12908

Last change on this file since 12908 was 12908, checked in by rvelices, 12 years ago

feature 2548 multisize - ability to choose displayed size on index page
-added some logs on i.php (configurable) to measure the perf

  • Property svn:eol-style set to LF
File size: 1.3 KB
Line 
1{if !empty($thumbnails)}{strip}
2{html_head}
3<style type="text/css">
4{*Set some sizes according to maximum thumbnail width and height*}
5.thumbnails SPAN,
6.thumbnails .wrap2 A,
7.thumbnails LABEL{ldelim}
8        width: {$derivative_params->max_width()}px;
9}
10
11.thumbnails .wrap2{ldelim}
12        height: {$derivative_params->max_height()+2}px;
13}
14
15</style>
16{/html_head}
17{foreach from=$thumbnails item=thumbnail}
18        <li>
19        <span class="wrap1">
20                <span class="wrap2">
21                <a href="{$thumbnail.URL}">
22                        <img class="thumbnail" src="{$pwg->derivative_url($derivative_params, $thumbnail.src_image)}" alt="{$thumbnail.TN_ALT}" title="{$thumbnail.TN_TITLE}">
23                </a>
24                </span>
25                {if $SHOW_THUMBNAIL_CAPTION }
26                <span class="thumbLegend">
27                {$thumbnail.NAME}
28                {if !empty($thumbnail.icon_ts)}
29                <img title="{$thumbnail.icon_ts.TITLE}" src="{$ROOT_URL}{$themeconf.icon_dir}/recent.png" alt="(!)">
30                {/if}
31                {if isset($thumbnail.NB_COMMENTS)}
32                <span class="{if 0==$thumbnail.NB_COMMENTS}zero {/if}nb-comments">
33                <br>
34                {$pwg->l10n_dec('%d comment', '%d comments',$thumbnail.NB_COMMENTS)}
35                </span>
36                {/if}
37
38                {if isset($thumbnail.NB_HITS)}
39                <span class="{if 0==$thumbnail.NB_HITS}zero {/if}nb-hits">
40                <br>
41                {$pwg->l10n_dec('%d hit', '%d hits',$thumbnail.NB_HITS)}
42                </span>
43                {/if}
44                </span>
45                {/if}
46        </span>
47        </li>
48{/foreach}{/strip}
49{/if}
Note: See TracBrowser for help on using the repository browser.