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

Last change on this file since 26115 was 26115, checked in by nikrou, 7 years ago

Fix compatibility with piwigo 2.6 (smarty, i18n plural)

File size: 3.0 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" width="{$PWG_CUMULUS_WIDTH}" height="{$PWG_CUMULUS_HEIGHT}" type="application/x-shockwave-flash">
47    <param name="movie" value="{$PWG_CUMULUS_SWF}/tagcloud.swf">
48    <param name="allowScriptAccess" value="sameDomain">
49    <param name="quality" value="high">
50    {if ($PWG_CUMULUS_MODE_TRANSPARENT)}
51    <param name="wmode" value="transparent">
52    {else}
53    <param name="bgcolor" value="#{$PWG_CUMULUS_BGCOLOR}">
54    {/if}
55    <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>">
56  </object>
57  {/if}
58
59  {if $letters && $display_mode == 'letters'}
60  <table>
61    <tr>
62      <td valign="top">
63        {foreach from=$letters item=letter}
64        <fieldset class="tagLetter">
65          <legend class="tagLetterLegend">{$letter.TITLE}</legend>
66          <table class="tagLetterContent">
67            {foreach from=$letter.tags item=tag}
68            <tr class="tagLine">
69              <td><a href="{$tag.URL}">{$tag.name}</a></td>
70              <td class="nbEntries">{$tag.counter|translate_dec:'%d photo':'%d photos'}</td>
71            </tr>
72            {/foreach}
73          </table>
74        </fieldset>
75        {if isset($letter.CHANGE_COLUMN) }
76      </td>
77      <td valign="top">
78        {/if}
79        {/foreach}
80      </td>
81    </tr>
82  </table>
83  {/if}
84</div> <!-- content -->
Note: See TracBrowser for help on using the repository browser.