source: trunk/template/yoga/tags.tpl @ 2906

Last change on this file since 2906 was 2648, checked in by rvelices, 16 years ago
  • fix tag cloud display with IE6/IE7 (without additionnal css hacks)
  • collapsed several identical selectors into one
  • Property svn:eol-style set to LF
  • Property svn:keywords set to Author Date Id Revision
File size: 1.7 KB
Line 
1{* $Id: tags.tpl 2648 2008-10-03 23:48:03Z rvelices $ *}
2<div id="content" class="content">
3
4        <div class="titrePage">
5                <ul class="categoryActions">
6                {if $display_mode == 'letters'}
7                        <li><a href="{$U_CLOUD}" title="{'show tag cloud'|@translate}" rel="nofollow"><img src="{$themeconf.icon_dir}/tag_cloud.png" class="button" alt="{'cloud'|@translate}"/></a></li>
8                {/if}
9
10                {if $display_mode == 'cloud'}
11                        <li><a href="{$U_LETTERS}" title="{'group by letters'|@translate}" rel="nofollow"><img src="{$themeconf.icon_dir}/tag_letters.png" class="button" alt="{'letters'|@translate}"/></a></li>
12                {/if}
13
14                        <li><a href="{$U_HOME}" title="{'return to homepage'|@translate}"><img src="{$themeconf.icon_dir}/home.png" class="button" alt="{'home'|@translate}"/></a></li>
15                </ul>
16                <h2>{'Tags'|@translate}</h2>
17  </div>
18
19{if isset($tags)}
20        {if $display_mode == 'cloud'}
21        <div id="fullTagCloud">
22                {foreach from=$tags item=tag}
23                <span><a href="{$tag.URL}" class="tagLevel{$tag.level}" title="{$tag.counter}">{$tag.name}</a></span>
24                {/foreach}
25        </div>
26        {/if}
27
28  {if $display_mode == 'letters'}
29  <table>
30    <tr>
31      <td valign="top">
32    {foreach from=$letters item=letter}
33  <fieldset class="tagLetter">
34    <legend class="tagLetterLegend">{$letter.TITLE}</legend>
35    <table class="tagLetterContent">
36      {foreach from=$letter.tags item=tag}
37      <tr class="tagLine">
38        <td><a href="{$tag.URL}">{$tag.name}</a></td>
39        <td class="nbEntries">{$pwg->l10n_dec('%d element', '%d elements', $tag.counter)}</td>
40      </tr>
41      {/foreach}
42    </table>
43  </fieldset>
44      {if $letter.CHANGE_COLUMN|@default:false}
45      </td>
46      <td valign="top">
47      {/if}
48    {/foreach}
49      </td>
50    </tr>
51  </table>
52  {/if}
53{/if}
54
55</div> <!-- content -->
Note: See TracBrowser for help on using the repository browser.