diff options
author | ArthurHoaro <arthur@hoa.ro> | 2016-10-15 17:19:56 +0200 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2016-11-05 14:29:53 +0100 |
commit | 07f9187e0aedd5d5d2dc533713512f412ef9244b (patch) | |
tree | b4b4144a6d1528b909ece03df13c6f06e838b7b7 /tpl/default | |
parent | 6eafe49eb9afad21b0ce2069489ef1dfc1daf941 (diff) | |
download | Shaarli-07f9187e0aedd5d5d2dc533713512f412ef9244b.tar.gz Shaarli-07f9187e0aedd5d5d2dc533713512f412ef9244b.tar.zst Shaarli-07f9187e0aedd5d5d2dc533713512f412ef9244b.zip |
tag cloud template
Diffstat (limited to 'tpl/default')
-rw-r--r-- | tpl/default/css/shaarli.css | 20 | ||||
-rw-r--r-- | tpl/default/tagcloud.html | 42 |
2 files changed, 60 insertions, 2 deletions
diff --git a/tpl/default/css/shaarli.css b/tpl/default/css/shaarli.css index 4b1be7e2..85b8e7a1 100644 --- a/tpl/default/css/shaarli.css +++ b/tpl/default/css/shaarli.css | |||
@@ -796,6 +796,12 @@ pre { | |||
796 | } | 796 | } |
797 | } | 797 | } |
798 | 798 | ||
799 | /** | ||
800 | * Page visitor (page form extended) | ||
801 | */ | ||
802 | .page-visitor { | ||
803 | background: url(../img/noise.png) #fff; | ||
804 | } | ||
799 | 805 | ||
800 | #page404 { | 806 | #page404 { |
801 | color: #3f3f3f; | 807 | color: #3f3f3f; |
@@ -984,6 +990,16 @@ pre { | |||
984 | margin: 15px 0; | 990 | margin: 15px 0; |
985 | } | 991 | } |
986 | 992 | ||
987 | @media screen and (max-width: 64em) { | 993 | /** |
994 | * TAG CLOUD | ||
995 | */ | ||
996 | #cloudtag { | ||
997 | padding: 10px; | ||
998 | text-align: center; | ||
999 | } | ||
1000 | |||
1001 | #cloudtag, #cloudtag a { | ||
1002 | color: #000; | ||
1003 | text-decoration: none; | ||
1004 | } | ||
988 | 1005 | ||
989 | } \ No newline at end of file | ||
diff --git a/tpl/default/tagcloud.html b/tpl/default/tagcloud.html new file mode 100644 index 00000000..81522ac0 --- /dev/null +++ b/tpl/default/tagcloud.html | |||
@@ -0,0 +1,42 @@ | |||
1 | <!DOCTYPE html> | ||
2 | <html> | ||
3 | <head> | ||
4 | {include="includes"} | ||
5 | </head> | ||
6 | <body> | ||
7 | {include="page.header"} | ||
8 | |||
9 | <div class="pure-g"> | ||
10 | <div class="pure-u-lg-1-6 pure-u-1-8"></div> | ||
11 | <div class="pure-u-lg-2-3 pure-u-3-4 page-form page-visitor"> | ||
12 | {$countTags=count($tags)} | ||
13 | <h2>{'Tag cloud'|t} - {$countTags} {'tags'|t}</h2> | ||
14 | |||
15 | <div id="plugin_zone_start_tagcloud" class="plugin_zone"> | ||
16 | {loop="$plugin_start_zone"} | ||
17 | {$value} | ||
18 | {/loop} | ||
19 | </div> | ||
20 | |||
21 | <div id="cloudtag"> | ||
22 | {loop="tags"} | ||
23 | <span class="count">{$value.count}</span><a | ||
24 | href="?searchtags={$key|urlencode}" style="font-size:{$value.size}em;">{$key}</a> | ||
25 | {loop="$value.tag_plugin"} | ||
26 | {$value} | ||
27 | {/loop} | ||
28 | {/loop} | ||
29 | </div> | ||
30 | |||
31 | <div id="plugin_zone_end_tagcloud" class="plugin_zone"> | ||
32 | {loop="$plugin_end_zone"} | ||
33 | {$value} | ||
34 | {/loop} | ||
35 | </div> | ||
36 | </div> | ||
37 | </div> | ||
38 | |||
39 | {include="page.footer"} | ||
40 | </body> | ||
41 | </html> | ||
42 | |||