source: trunk/template/yoga/thumbnails.tpl @ 2387

Last change on this file since 2387 was 2274, checked in by rvelices, 16 years ago
  • remove $confsubcatify (it was my reqquest to Pierrick when plugins were not available; now it can be done through plugin)
  • optimization when show_nb_comments true (1 sql query per page instead of 1 query per element)
  • some cleanup & more standard trigger names
  • Property svn:eol-style set to LF
  • Property svn:keywords set to Author Date Id Revision
File size: 921 bytes
Line 
1{* $Id: thumbnails.tpl 2274 2008-03-11 02:04:27Z rvelices $ *}
2
3{if !empty($thumbnails)}
4<ul class="thumbnails">
5{foreach from=$thumbnails item=thumbnail}
6        <li>
7        <span class="wrap1">
8                <span class="wrap2">
9                <a href="{$thumbnail.U_IMG_LINK}">
10                        <img class="thumbnail" src="{$thumbnail.IMAGE}" alt="{$thumbnail.IMAGE_ALT}" title="{$thumbnail.IMAGE_TITLE}" />
11                </a>
12                </span>
13                <span class="thumbLegend">
14
15                {if !empty($thumbnail.ELEMENT_NAME)}{$thumbnail.ELEMENT_NAME}{/if}
16                {if !empty($thumbnail.IMAGE_TS)}{$thumbnail.IMAGE_TS}{/if}
17
18                {if isset($thumbnail.NB_COMMENTS)}
19                <span class="{if 0==$thumbnail.NB_COMMENTS}zero {/if}nb-comments">
20                <br />
21                {$pwg->l10n_dec('%d comment', '%d comments',$thumbnail.NB_COMMENTS)}
22                </span>
23                {/if}
24
25                {if isset($thumbnail.NB_HITS)}
26                <span class="{if 0==$thumbnail.NB_HITS}zero {/if}nb-hits">
27                <br />
28                {$pwg->l10n_dec('%d hit', '%d hits',$thumbnail.NB_HITS)}
29                </span>
30                {/if}
31                </span>
32        </span>
33        </li>
34{/foreach}
35</ul>
36{/if}
37
38
Note: See TracBrowser for help on using the repository browser.