diff --git a/system/includes/functions.php b/system/includes/functions.php
index 1c90943..ab7efb4 100644
--- a/system/includes/functions.php
+++ b/system/includes/functions.php
@@ -1465,11 +1465,29 @@ function tag_cloud($custom = null)
}
if(empty($custom)) {
- echo '
';
- foreach ($tag_collection as $tag => $count) {
- echo '' . tag_i18n($tag) . ' (' . $count . ') ';
+ // Font sizes
+ $max_size = 22; // max font size in %
+ $min_size = 8; // min font size in %
+
+ // Get the largest and smallest array values
+ $max_qty = max(array_values($tag_collection));
+ $min_qty = min(array_values($tag_collection));
+
+ // Find the range of values
+ $spread = $max_qty - $min_qty;
+ if (0 == $spread) { // we don't want to divide by zero
+ $spread = 1;
}
- echo ' ';
+
+ // Font-size increment
+ // this is the increase per tag quantity (times used)
+ $step = ($max_size - $min_size)/($spread);
+
+ foreach ($tag_collection as $tag => $count) {
+ $size = $min_size + (($count - $min_qty) * $step);
+ echo ' '.tag_i18n($tag).' ';
+ }
+
} else {
return $tag_collection;
}
diff --git a/themes/blog/layout.html.php b/themes/blog/layout.html.php
index 5e3a5c0..f325315 100644
--- a/themes/blog/layout.html.php
+++ b/themes/blog/layout.html.php
@@ -7,8 +7,6 @@
-
-
@@ -172,15 +170,11 @@
-
+
-
-
- $count):?>
- ()
- = 5) break;?>
-
-
+
+
+
diff --git a/themes/clean/layout.html.php b/themes/clean/layout.html.php
index 05fa8af..1d02b22 100644
--- a/themes/clean/layout.html.php
+++ b/themes/clean/layout.html.php
@@ -7,9 +7,6 @@
-
-
-
@@ -36,14 +33,10 @@
-
Popular Tags
-
-
- $count):?>
- ()
- = 5) break;?>
-
-
+
Tags
+
+
+
diff --git a/themes/logs/layout.html.php b/themes/logs/layout.html.php
index 270a8e3..59a589e 100644
--- a/themes/logs/layout.html.php
+++ b/themes/logs/layout.html.php
@@ -7,8 +7,6 @@
-
-
@@ -79,14 +77,10 @@
-
Tags
-
-
- $count):?>
- ()
- = 5) break;?>
-
-
+
+
+
+
diff --git a/themes/readable/layout.html.php b/themes/readable/layout.html.php
index 5fcb73a..a25244a 100644
--- a/themes/readable/layout.html.php
+++ b/themes/readable/layout.html.php
@@ -7,9 +7,6 @@
-
-
-
diff --git a/themes/twentyfifteen/layout.html.php b/themes/twentyfifteen/layout.html.php
index 138caff..f72dbaa 100644
--- a/themes/twentyfifteen/layout.html.php
+++ b/themes/twentyfifteen/layout.html.php
@@ -5,8 +5,6 @@
-
-
@@ -101,14 +99,10 @@
diff --git a/themes/twentysixteen/layout.html.php b/themes/twentysixteen/layout.html.php
index 39aef17..40af4ef 100644
--- a/themes/twentysixteen/layout.html.php
+++ b/themes/twentysixteen/layout.html.php
@@ -5,7 +5,6 @@
-
@@ -110,14 +109,10 @@