From 30bc167c9e15f7ca90151e1a00e9f8beb0856d43 Mon Sep 17 00:00:00 2001 From: plegall Date: Wed, 28 May 2008 22:39:06 +0000 Subject: 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 --- template/yoga/default-layout.css | 35 ++++++++++++++++++++++++++++++++++ template/yoga/icon/tag_cloud.png | Bin 0 -> 1165 bytes template/yoga/icon/tag_letters.png | Bin 0 -> 882 bytes template/yoga/tags.tpl | 38 ++++++++++++++++++++++++++++++++++++- 4 files changed, 72 insertions(+), 1 deletion(-) create mode 100644 template/yoga/icon/tag_cloud.png create mode 100644 template/yoga/icon/tag_letters.png (limited to 'template') diff --git a/template/yoga/default-layout.css b/template/yoga/default-layout.css index c6b229481..a81263471 100644 --- a/template/yoga/default-layout.css +++ b/template/yoga/default-layout.css @@ -268,3 +268,38 @@ BODY#thePopuphelpPage .content UL LI BODY#thePopuphelpPage P#pageBottomActions A { border: none; } + +TR.tagLine { + border-bottom: 1px solid #ddd; + text-align: left; +} +TR.tagLine:hover { + background-color: #fff; +} +TD.nbEntries { + text-align: right; + font-style: italic; + font-size: 90%; +} + +FIELDSET.tagLetter { + border: 1px solid #d3d3d3; + width: 200px; + margin: 0.5em; + padding: 10px; +} + +LEGEND.tagLetterLegend { + border: 1px solid #d3d3d3; + font-size:120%; + font-weight: bold; + padding: 0 5px; + color: #555; + font-style: normal; +} + +TABLE.tagLetterContent { + width:100%; + font-size:80%; + border-collapse : collapse; +} diff --git a/template/yoga/icon/tag_cloud.png b/template/yoga/icon/tag_cloud.png new file mode 100644 index 000000000..79d7bc250 Binary files /dev/null and b/template/yoga/icon/tag_cloud.png differ diff --git a/template/yoga/icon/tag_letters.png b/template/yoga/icon/tag_letters.png new file mode 100644 index 000000000..d452db7ec Binary files /dev/null and b/template/yoga/icon/tag_letters.png differ 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 @@

{'Tags'|@translate}

- {if isset($tags)} +{if isset($tags)} + {if $display_mode == 'cloud'} {/if} + {if $display_mode == 'letters'} + + + + + +
+ {foreach from=$letters item=letter} +
+ {$letter.TITLE} + + {foreach from=$letter.tags item=tag} + + + + + {/foreach} +
{$tag.NAME}{$tag.COUNTER} {'photos'|@translate}
+
+ {if $letter.CHANGE_COLUMN} +
+ {/if} + {/foreach} +
+ {/if} +{/if} + -- cgit v1.2.3