source: extensions/PWG_Stuffs/template/Tags.tpl @ 3609

Last change on this file since 3609 was 3609, checked in by patdenice, 15 years ago

Convert all php and tpl files in Unix format for my plugins.

File size: 1.6 KB
Line 
1{if $display_mode == 'cloud'}
2<div id="fullTagCloud">
3        {foreach from=$tags item=tag}
4        <span><a href="{$tag.URL}" class="tagLevel{$tag.level}" title="{$tag.counter}">{$tag.name}</a></span>
5        {/foreach}
6</div>
7
8{elseif $display_mode == 'letters'}
9<table>
10  <tr>
11    <td valign="top">
12  {foreach from=$letters item=letter}
13<fieldset class="tagLetter">
14  <legend class="tagLetterLegend">{$letter.TITLE}</legend>
15  <table class="tagLetterContent">
16    {foreach from=$letter.tags item=tag}
17    <tr class="tagLine">
18      <td><a href="{$tag.URL}">{$tag.name}</a></td>
19      <td class="nbEntries">{$pwg->l10n_dec('%d element', '%d elements', $tag.counter)}</td>
20    </tr>
21    {/foreach}
22  </table>
23</fieldset>
24    {if isset($letter.CHANGE_COLUMN) }
25    </td>
26    <td valign="top">
27    {/if}
28  {/foreach}
29    </td>
30  </tr>
31</table>
32
33{elseif $display_mode == 'cumulus'}
34<div id="flashcontent">This will be shown to users with no Flash or Javascript.</div>
35
36  <script type="text/javascript">
37    var so = new SWFObject("{$PWG_CUMULUS_SWF}/tagcloud.swf", "tagcloud", "100%", "{$PWG_CUMULUS_HEIGHT}", "7", "#FFFFFF");
38    so.addParam("wmode", "transparent");
39    so.addVariable("tcolor", "{$PWG_CUMULUS_COLOR1}");
40    so.addVariable("tcolor2", "{$PWG_CUMULUS_COLOR2}");
41    so.addVariable("hicolor", "{$PWG_CUMULUS_HICOLOR}");
42    so.addVariable("mode", "tags");
43    so.addVariable("distr", "true");
44    so.addVariable("tspeed", "100");
45    so.addVariable("tagcloud",
46    "<tags>{foreach from=$tags item=tag}<a href='{$tag.URL}' style='{$tag.size}pt'>{$tag.display_name}</a>{/foreach}</tags>");
47    so.write("flashcontent");
48  </script>
49{/if}
Note: See TracBrowser for help on using the repository browser.