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

Last change on this file since 5201 was 5201, checked in by nikrou, 14 years ago

Initial version

File size: 2.8 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="{'group by 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="{'show tag cloud in cumulus mode'|@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="{'show tag cloud'|@translate}" rel="nofollow"><img src="{$themeconf.icon_dir}/tag_cloud.png" class="button" alt="{'cloud'|@translate}"></a></li>
16      {/if}
17
18      <li><a href="{$U_HOME}" title="{'return to homepage'|@translate}"><img src="{$themeconf.icon_dir}/home.png" class="button" alt="{'home'|@translate}"/></a></li>
19    </ul>
20    <h2>{'Tags'|@translate}</h2>
21  </div>
22
23  {if isset($tags)}
24  {if $display_mode == 'cloud'}
25  <div id="fullTagCloud">
26    {foreach from=$tags item=tag}
27    <span><a href="{$tag.URL}" class="tagLevel{$tag.level}" title="{$tag.counter}">{$tag.name}</a></span>
28    {/foreach}
29  </div>
30  {/if}
31
32  {if $display_mode == 'cumulus'}
33  <div id="flashcontent">This will be shown to users with no Flash or Javascript.</div>
34
35  <script type="text/javascript">
36    var so = new SWFObject("{$PWG_CUMULUS_SWF}/tagcloud.swf", "tagcloud", "{$PWG_CUMULUS_WIDTH}", "{$PWG_CUMULUS_HEIGHT}", "7", "#FFFFFF");
37    so.addParam("wmode", "transparent");
38    so.addVariable("tcolor", "{$PWG_CUMULUS_COLOR1}");
39    so.addVariable("tcolor2", "{$PWG_CUMULUS_COLOR2}");
40    so.addVariable("hicolor", "{$PWG_CUMULUS_HICOLOR}");
41    so.addVariable("mode", "tags");
42    so.addVariable("distr", "true");
43    so.addVariable("tspeed", "100");
44    so.addVariable("tagcloud",
45    "<tags>{foreach from=$tags item=tag}<a href='{$tag.URL}' style='{$tag.size}pt'>{$tag.display_name}</a>{/foreach}</tags>");
46    so.write("flashcontent");
47  </script>
48  {/if}
49
50  {if $display_mode == 'letters'}
51  <table>
52    <tr>
53      <td valign="top">
54        {foreach from=$letters item=letter}
55        <fieldset class="tagLetter">
56          <legend class="tagLetterLegend">{$letter.TITLE}</legend>
57          <table class="tagLetterContent">
58            {foreach from=$letter.tags item=tag}
59            <tr class="tagLine">
60              <td><a href="{$tag.URL}">{$tag.name}</a></td>
61              <td class="nbEntries">{$pwg->l10n_dec('%d element', '%d elements', $tag.counter)}</td>
62            </tr>
63            {/foreach}
64          </table>
65        </fieldset>
66        {if $letter.CHANGE_COLUMN|@default:false}
67      </td>
68      <td valign="top">
69        {/if}
70        {/foreach}
71      </td>
72    </tr>
73  </table>
74  {/if}
75  {/if}
76
77</div> <!-- content -->
Note: See TracBrowser for help on using the repository browser.