source: extensions/pwgCumulus/template/tags.tpl @ 6433

Last change on this file since 6433 was 6433, checked in by nikrou, 14 years ago
  • restore home link on tags page
  • update Free Software Foundation address
File size: 2.7 KB
Line 
1<div id="content" class="content">
2
3  <div class="titrePage">
4    <ul class="categoryActions">
5
6      {if $display_mode != 'letters'}
7      <li><a href="{$U_LETTERS}" title="{'letters'|@translate}" rel="nofollow"><img src="{$themeconf.icon_dir}/tag_letters.png" class="button" alt="{'letters'|@translate}"></a></li>
8      {/if}
9
10      {if $display_mode != 'cumulus'}
11      <li><a href="{$PWG_CUMULUS_HREF}" title="{'cumulus cloud'|@translate}" rel="nofollow"><img src="{$PWG_CUMULUS_IMGS}/cumulus3d.png" class="button" alt="{'cumulus cloud'|@translate}"></a></li>
12      {/if}
13
14      {if $display_mode != 'cloud'}
15      <li><a href="{$U_CLOUD}" title="{'cloud'|@translate}" rel="nofollow"><img src="{$themeconf.icon_dir}/tag_cloud.png" class="button" alt="{'cloud'|@translate}"></a></li>
16      {/if}
17      <li><a href="{$U_HOME}" title="{'Home'|@translate}"><img src="{$themeconf.icon_dir}/home.png" class="button" alt="{'Home'|@translate}"></a></li>
18    </ul>
19    <h2>{'Tags'|@translate}</h2>
20  </div>
21
22  {if isset($tags)}
23  {if $display_mode == 'cloud'}
24  <div id="fullTagCloud">
25    {foreach from=$tags item=tag}
26    <span><a href="{$tag.URL}" class="tagLevel{$tag.level}" title="{$pwg->l10n_dec('%d image', '%d images', $tag.counter)}">{$tag.name}</a></span>
27    {/foreach}
28  </div>
29  {/if}
30
31  {if $display_mode == 'cumulus'}
32  <div id="flashcontent">This will be shown to users with no Flash or Javascript.</div>
33
34  <script type="text/javascript">
35    var so = new SWFObject("{$PWG_CUMULUS_SWF}/tagcloud.swf", "tagcloud", "{$PWG_CUMULUS_WIDTH}", "{$PWG_CUMULUS_HEIGHT}", "7", "#FFFFFF");
36    so.addParam("wmode", "transparent");
37    so.addVariable("tcolor", "{$PWG_CUMULUS_COLOR1}");
38    so.addVariable("tcolor2", "{$PWG_CUMULUS_COLOR2}");
39    so.addVariable("hicolor", "{$PWG_CUMULUS_HICOLOR}");
40    so.addVariable("mode", "tags");
41    so.addVariable("distr", "true");
42    so.addVariable("tspeed", "100");
43    so.addVariable("tagcloud",
44    "<tags>{foreach from=$tags item=tag}<a href='{$tag.URL}' style='{$tag.size}pt'>{$tag.display_name}</a>{/foreach}</tags>");
45    so.write("flashcontent");
46  </script>
47  {/if}
48
49  {if $display_mode == 'letters'}
50  <table>
51    <tr>
52      <td valign="top">
53        {foreach from=$letters item=letter}
54        <fieldset class="tagLetter">
55          <legend class="tagLetterLegend">{$letter.TITLE}</legend>
56          <table class="tagLetterContent">
57            {foreach from=$letter.tags item=tag}
58            <tr class="tagLine">
59              <td><a href="{$tag.URL}">{$tag.name}</a></td>
60              <td class="nbEntries">{$pwg->l10n_dec('%d element', '%d elements', $tag.counter)}</td>
61            </tr>
62            {/foreach}
63          </table>
64        </fieldset>
65        {if $letter.CHANGE_COLUMN|@default:false}
66      </td>
67      <td valign="top">
68        {/if}
69        {/foreach}
70      </td>
71    </tr>
72  </table>
73  {/if}
74  {/if}
75
76</div> <!-- content -->
Note: See TracBrowser for help on using the repository browser.