source: trunk/template-extension/distributed/samples/my-thumbnails.tpl @ 3283

Last change on this file since 3283 was 3283, checked in by plg, 15 years ago

complement to r3282, remove all $Id$ in source code.

  • Property svn:eol-style set to LF
File size: 966 bytes
Line 
1<!-- This is a sample of template extensions -->
2{if !empty($thumbnails)}
3<ul class="thumbnails">
4{foreach from=$thumbnails item=thumbnail}
5        <li>
6        <span class="wrap1">
7                <span class="wrap2">
8                <a href="{$thumbnail.URL}">
9                        <img class="thumbnail" src="{$thumbnail.TN_SRC}" alt="{$thumbnail.TN_ALT}" title="{$thumbnail.TN_TITLE}">
10                </a>
11                </span>
12                <span class="thumbLegend" style="color:#F36;">
13    &copy; 2008 Piwigo<br>
14                {if !empty($thumbnail.NAME)}{$thumbnail.NAME}{/if}
15                {if !empty($thumbnail.ICON_TS)}{$thumbnail.ICON_TS}{/if}
16
17                {if isset($thumbnail.NB_COMMENTS)}
18                <span class="{if 0==$thumbnail.NB_COMMENTS}zero {/if}nb-comments">
19                <br>
20                {$pwg->l10n_dec('%d comment', '%d comments',$thumbnail.NB_COMMENTS)}
21                </span>
22                {/if}
23
24                {if isset($thumbnail.NB_HITS)}
25                <span class="{if 0==$thumbnail.NB_HITS}zero {/if}nb-hits">
26                <br>
27                {$pwg->l10n_dec('%d hit', '%d hits',$thumbnail.NB_HITS)}
28                </span>
29                {/if}
30                </span>
31        </span>
32        </li>
33{/foreach}
34</ul>
35{/if}
Note: See TracBrowser for help on using the repository browser.