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

Last change on this file since 27279 was 27279, checked in by nikrou, 10 years ago

Fix issue with tag with an ampersand (need encoding)
Allow to choose width and height in menu (either null)

File size: 3.1 KB
Line 
1{if isset($MENUBAR)}{$MENUBAR}{/if}
2<div id="content" class="content">
3  <div class="titrePage">
4    <ul class="categoryActions">
5      {if $display_mode != 'cloud'}
6      <li>
7        <a href="{$U_CLOUD}" title="{'show tag cloud'|@translate}" class="pwg-state-default pwg-button">
8          <span class="pwg-icon pwg-icon-cloud">&nbsp;</span><span class="pwg-button-text">{'cloud'|@translate}</span>
9        </a>
10      </li>
11      {/if}
12
13      {if $display_mode != 'cumulus'}
14      <li>
15        <a href="{$PWG_CUMULUS_HREF}" title="{'cumulus cloud'|@translate}" rel="nofollow">
16          <img src="{$PWG_CUMULUS_IMGS}/cumulus3d.png" class="button" alt="{'cumulus cloud'|@translate}">
17        </a>
18      </li>
19      {/if}
20
21      {if $display_mode != 'letters'}
22      <li>
23        <a href="{$U_LETTERS}" title="{'group by letters'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
24          <span class="pwg-icon pwg-icon-letters">&nbsp;</span><span class="pwg-button-text">{'letters'|@translate}</span>
25        </a>
26      </li>
27      {/if}
28      <li>
29        <a href="{$U_HOME}" title="{'Home'|@translate}" class="pwg-state-default pwg-button">
30          <span class="pwg-icon pwg-icon-home">&nbsp;</span><span class="pwg-button-text">{'Home'|@translate}</span>
31        </a>
32      </li>
33    </ul>
34    <h2>{'Tags'|@translate}</h2>
35  </div>
36
37  {if $tags && $display_mode == 'cloud'}
38  <div id="fullTagCloud">
39    {foreach from=$tags item=tag}
40    <span><a href="{$tag.URL}" class="tagLevel{$tag.level}" title="{$tag.counter|translate_dec:'%d photo':'%d photos'}">{$tag.name}</a></span>
41    {/foreach}
42  </div>
43  {/if}
44
45  {if $display_mode == 'cumulus'}
46  <object data="{$PWG_CUMULUS_SWF}/tagcloud.swf"
47          {if !empty($PWG_CUMULUS_WIDTH)}width="{$PWG_CUMULUS_WIDTH}" {/if}
48          {if !empty($PWG_CUMULUS_HEIGHT)}height="{$PWG_CUMULUS_HEIGHT}" {/if}
49          type="application/x-shockwave-flash">
50    <param name="movie" value="{$PWG_CUMULUS_SWF}/tagcloud.swf">
51    <param name="allowScriptAccess" value="sameDomain">
52    <param name="quality" value="high">
53    {if ($PWG_CUMULUS_MODE_TRANSPARENT)}
54    <param name="wmode" value="transparent">
55    {else}
56    <param name="bgcolor" value="#{$PWG_CUMULUS_BGCOLOR}">
57    {/if}
58    <param name="flashvars" value="mode=tags&tcolor={$PWG_CUMULUS_COLOR1}&tcolor2={$PWG_CUMULUS_COLOR2}&hicolor={$PWG_CUMULUS_HICOLOR}&tspeed=100&distr=true&tagcloud=<tags>{foreach from=$tags item=tag}<a href='{$tag.URL}' style='{$tag.size}pt'>{$tag.display_name}</a>{/foreach}</tags>">
59  </object>
60  {/if}
61
62  {if $letters && $display_mode == 'letters'}
63  <table>
64    <tr>
65      <td valign="top">
66        {foreach from=$letters item=letter}
67        <fieldset class="tagLetter">
68          <legend class="tagLetterLegend">{$letter.TITLE}</legend>
69          <table class="tagLetterContent">
70            {foreach from=$letter.tags item=tag}
71            <tr class="tagLine">
72              <td><a href="{$tag.URL}">{$tag.name}</a></td>
73              <td class="nbEntries">{$tag.counter|translate_dec:'%d photo':'%d photos'}</td>
74            </tr>
75            {/foreach}
76          </table>
77        </fieldset>
78        {if isset($letter.CHANGE_COLUMN) }
79      </td>
80      <td valign="top">
81        {/if}
82        {/foreach}
83      </td>
84    </tr>
85  </table>
86  {/if}
87</div> <!-- content -->
Note: See TracBrowser for help on using the repository browser.