diff options
author | plegall <plg@piwigo.org> | 2008-05-28 22:39:06 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2008-05-28 22:39:06 +0000 |
commit | 30bc167c9e15f7ca90151e1a00e9f8beb0856d43 (patch) | |
tree | 5bf1ec982a00d2c116980e8dceaa5a3b1fb8f797 /template/yoga/tags.tpl | |
parent | ba04d4ad5617af1ec5cf15ff59bbd4633d3da7cc (diff) |
feature 828 added: display tags by letters. Users can switch from "cloud" to
"letters" with a button in the top bar.
git-svn-id: http://piwigo.org/svn/trunk@2362 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'template/yoga/tags.tpl')
-rw-r--r-- | template/yoga/tags.tpl | 38 |
1 files changed, 37 insertions, 1 deletions
diff --git a/template/yoga/tags.tpl b/template/yoga/tags.tpl index 98a49cd06..56b72bdfb 100644 --- a/template/yoga/tags.tpl +++ b/template/yoga/tags.tpl @@ -3,12 +3,21 @@ <div class="titrePage"> <ul class="categoryActions"> +{if $display_mode == 'letters'} + <li><a href="{$U_CLOUD}" title="{'show tag cloud'|@translate}"><img src="{$themeconf.icon_dir}/tag_cloud.png" class="button" alt="{'cloud'|@translate}"/></a></li> +{/if} + +{if $display_mode == 'cloud'} + <li><a href="{$U_LETTERS}" title="{'group by letters'|@translate}"><img src="{$themeconf.icon_dir}/tag_letters.png" class="button" alt="{'letters'|@translate}"/></a></li> +{/if} + <li><a href="{$U_HOME}" title="{'return to homepage'|@translate}"><img src="{$themeconf.icon_dir}/home.png" class="button" alt="{'home'|@translate}"/></a></li> </ul> <h2>{'Tags'|@translate}</h2> </div> - {if isset($tags)} +{if isset($tags)} + {if $display_mode == 'cloud'} <ul id="fullTagCloud"> {foreach from=$tags item=tag} <li><a href="{$tag.URL}" class="{$tag.CLASS}" title="{$tag.TITLE}">{$tag.NAME}</a></li> @@ -16,4 +25,31 @@ </ul> {/if} + {if $display_mode == 'letters'} + <table> + <tr> + <td valign="top"> + {foreach from=$letters item=letter} + <fieldset class="tagLetter"> + <legend class="tagLetterLegend">{$letter.TITLE}</legend> + <table class="tagLetterContent"> + {foreach from=$letter.tags item=tag} + <tr class="tagLine"> + <td><a href="{$tag.URL}">{$tag.NAME}</a></td> + <td class="nbEntries"><strong>{$tag.COUNTER}</strong> {'photos'|@translate}</td> + </tr> + {/foreach} + </table> + </fieldset> + {if $letter.CHANGE_COLUMN} + </td> + <td valign="top"> + {/if} + {/foreach} + </td> + </tr> + </table> + {/if} +{/if} + </div> <!-- content --> |