]> git.immae.eu Git - github/shaarli/Shaarli.git/commitdiff
tag cloud template
authorArthurHoaro <arthur@hoa.ro>
Sat, 15 Oct 2016 15:19:56 +0000 (17:19 +0200)
committerArthurHoaro <arthur@hoa.ro>
Sat, 5 Nov 2016 13:29:53 +0000 (14:29 +0100)
tpl/default/css/shaarli.css
tpl/default/tagcloud.html [new file with mode: 0644]

index 4b1be7e2b2557eefd10a5cd5d137c8863b9ad556..85b8e7a190f7d829bf34ab53a57277753a8a5d4c 100644 (file)
@@ -796,6 +796,12 @@ pre {
     }
 }
 
+/**
+ * Page visitor (page form extended)
+ */
+.page-visitor {
+    background: url(../img/noise.png) #fff;
+}
 
 #page404 {
     color: #3f3f3f;
@@ -984,6 +990,16 @@ pre {
     margin: 15px 0;
 }
 
-@media screen and (max-width: 64em) {
+/**
+ * TAG CLOUD
+ */
+#cloudtag {
+    padding: 10px;
+    text-align: center;
+}
+
+#cloudtag, #cloudtag a {
+    color: #000;
+    text-decoration: none;
+}
 
-}
\ No newline at end of file
diff --git a/tpl/default/tagcloud.html b/tpl/default/tagcloud.html
new file mode 100644 (file)
index 0000000..81522ac
--- /dev/null
@@ -0,0 +1,42 @@
+<!DOCTYPE html>
+<html>
+<head>
+  {include="includes"}
+</head>
+<body>
+{include="page.header"}
+
+<div class="pure-g">
+  <div class="pure-u-lg-1-6 pure-u-1-8"></div>
+  <div class="pure-u-lg-2-3 pure-u-3-4 page-form page-visitor">
+    {$countTags=count($tags)}
+    <h2>{'Tag cloud'|t} - {$countTags} {'tags'|t}</h2>
+
+    <div id="plugin_zone_start_tagcloud" class="plugin_zone">
+      {loop="$plugin_start_zone"}
+        {$value}
+      {/loop}
+    </div>
+
+    <div id="cloudtag">
+      {loop="tags"}
+        <span class="count">{$value.count}</span><a
+          href="?searchtags={$key|urlencode}" style="font-size:{$value.size}em;">{$key}</a>
+        {loop="$value.tag_plugin"}
+          {$value}
+        {/loop}
+      {/loop}
+    </div>
+
+    <div id="plugin_zone_end_tagcloud" class="plugin_zone">
+      {loop="$plugin_end_zone"}
+        {$value}
+      {/loop}
+    </div>
+  </div>
+</div>
+
+{include="page.footer"}
+</body>
+</html>
+