aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl/default
diff options
context:
space:
mode:
authorLucas Cimon <lucas.cimon@gmail.com>2017-05-18 20:28:11 +0200
committerLucas Cimon <lucas.cimon@gmail.com>2017-05-24 13:09:35 +0200
commit6ccd0b218fbd34de750f55b78f3dc43bb3d9fa8e (patch)
treeae99823d461435577abd25b8bb24ef07692b99a1 /tpl/default
parent61c15aa5554431893ea5ebe800a9a625dca5aff9 (diff)
downloadShaarli-6ccd0b218fbd34de750f55b78f3dc43bb3d9fa8e.tar.gz
Shaarli-6ccd0b218fbd34de750f55b78f3dc43bb3d9fa8e.tar.zst
Shaarli-6ccd0b218fbd34de750f55b78f3dc43bb3d9fa8e.zip
Adding ability to display subtags in tagcloud
Diffstat (limited to 'tpl/default')
-rw-r--r--tpl/default/css/shaarli.css6
-rw-r--r--tpl/default/tagcloud.html20
2 files changed, 24 insertions, 2 deletions
diff --git a/tpl/default/css/shaarli.css b/tpl/default/css/shaarli.css
index 73fade5f..ef9ee23b 100644
--- a/tpl/default/css/shaarli.css
+++ b/tpl/default/css/shaarli.css
@@ -211,7 +211,7 @@ body, .pure-g [class*="pure-u"] {
211 } 211 }
212} 212}
213 213
214#search, #search-linklist { 214#search, #search-linklist, #search-tagcloud {
215 text-align: center; 215 text-align: center;
216 width: 100%; 216 width: 100%;
217} 217}
@@ -234,6 +234,7 @@ body, .pure-g [class*="pure-u"] {
234} 234}
235 235
236#search button, 236#search button,
237#search-tagcloud button,
237#search-linklist button { 238#search-linklist button {
238 background: transparent; 239 background: transparent;
239 border: none; 240 border: none;
@@ -251,6 +252,9 @@ body, .pure-g [class*="pure-u"] {
251#search-linklist button:hover { 252#search-linklist button:hover {
252 color: #fff; 253 color: #fff;
253} 254}
255#search-tagcloud button:hover {
256 color: #d0d0d0;
257}
254 258
255#search-linklist { 259#search-linklist {
256 padding: 5px 0; 260 padding: 5px 0;
diff --git a/tpl/default/tagcloud.html b/tpl/default/tagcloud.html
index 53c31748..efe6e937 100644
--- a/tpl/default/tagcloud.html
+++ b/tpl/default/tagcloud.html
@@ -12,6 +12,24 @@
12 {$countTags=count($tags)} 12 {$countTags=count($tags)}
13 <h2 class="window-title">{'Tag cloud'|t} - {$countTags} {'tags'|t}</h2> 13 <h2 class="window-title">{'Tag cloud'|t} - {$countTags} {'tags'|t}</h2>
14 14
15 <div id="search-tagcloud" class="pure-g">
16 <div class="pure-u-lg-1-4"></div>
17 <div class="pure-u-1 pure-u-lg-1-2">
18 <form method="GET">
19 <input type="hidden" name="do" value="tagcloud">
20 <input type="text" name="searchtags" placeholder="{'Filter by tag'|t}"
21 {if="!empty($search_tags)"}
22 value="{$search_tags}"
23 {/if}
24 autocomplete="off" data-multiple data-autofirst data-minChars="1"
25 data-list="{loop="$tags"}{$key}, {/loop}"
26 >
27 <button type="submit" class="search-button"><i class="fa fa-search"></i></button>
28 </form>
29 </div>
30 <div class="pure-u-lg-1-4"></div>
31 </div>
32
15 <div id="plugin_zone_start_tagcloud" class="plugin_zone"> 33 <div id="plugin_zone_start_tagcloud" class="plugin_zone">
16 {loop="$plugin_start_zone"} 34 {loop="$plugin_start_zone"}
17 {$value} 35 {$value}
@@ -21,7 +39,7 @@
21 <div id="cloudtag"> 39 <div id="cloudtag">
22 {loop="tags"} 40 {loop="tags"}
23 <a href="?searchtags={$key|urlencode}" style="font-size:{$value.size}em;">{$key}</a 41 <a href="?searchtags={$key|urlencode}" style="font-size:{$value.size}em;">{$key}</a
24 ><span class="count">{$value.count}</span> 42 ><a href="?addtag={$key|urlencode}" title="{'Filter by tag'|t}" class="count">{$value.count}</a>
25 {loop="$value.tag_plugin"} 43 {loop="$value.tag_plugin"}
26 {$value} 44 {$value}
27 {/loop} 45 {/loop}