Version Description
- Fixed bug with options page
- Improved link generation to create correct tag links
Download this release
Release Info
Developer | exz |
Plugin | Ultimate Tag Cloud Widget |
Version | 1.1 |
Comparing to | |
See all releases |
Code changes from version 1.0 to 1.1
- readme.txt +10 -1
- ultimate-tag-cloud-widget.php +13 -10
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: exz
|
|
3 |
Tags: widget, tags, configurable, tag cloud
|
4 |
Requires at least: 2.8
|
5 |
Tested up to: 3.0.1
|
6 |
-
Stable tag: 1.
|
7 |
|
8 |
This plugin aims to be the most configurable tag cloud widget out there, able to suit all your wierd tag cloud needs.
|
9 |
|
@@ -48,12 +48,21 @@ This is a new plugin, haven't had any questions yet. If you have any, be sure to
|
|
48 |
|
49 |
== Changelog ==
|
50 |
|
|
|
|
|
|
|
|
|
|
|
51 |
= 1.0 =
|
52 |
|
53 |
* Initial release
|
54 |
|
55 |
== Upgrade Notice ==
|
56 |
|
|
|
|
|
|
|
|
|
57 |
= 1.0 =
|
58 |
|
59 |
* Initial release
|
3 |
Tags: widget, tags, configurable, tag cloud
|
4 |
Requires at least: 2.8
|
5 |
Tested up to: 3.0.1
|
6 |
+
Stable tag: 1.1
|
7 |
|
8 |
This plugin aims to be the most configurable tag cloud widget out there, able to suit all your wierd tag cloud needs.
|
9 |
|
48 |
|
49 |
== Changelog ==
|
50 |
|
51 |
+
= 1.1 =
|
52 |
+
|
53 |
+
* Fixed bug with options page
|
54 |
+
* Improved link generation to create correct tag links
|
55 |
+
|
56 |
= 1.0 =
|
57 |
|
58 |
* Initial release
|
59 |
|
60 |
== Upgrade Notice ==
|
61 |
|
62 |
+
= 1.1 =
|
63 |
+
|
64 |
+
* Just bug fixes, should be safe to upgrade.
|
65 |
+
|
66 |
= 1.0 =
|
67 |
|
68 |
* Initial release
|
ultimate-tag-cloud-widget.php
CHANGED
@@ -3,8 +3,8 @@
|
|
3 |
Plugin Name: Ultimate tag cloud widget
|
4 |
Plugin URI: http://bennison.se/?page_id=173
|
5 |
Description: This plugin aims to be the most configurable tag cloud widget out there, able to suit all your wierd tag cloud needs.
|
6 |
-
Version: 1.
|
7 |
-
Author:
|
8 |
Author URI: http://bennison.se
|
9 |
*/
|
10 |
|
@@ -74,12 +74,14 @@ class UTCW extends WP_Widget {
|
|
74 |
$instance['case'] = in_array($case, $this->allowed_cases) ? $case : $this->default_case;
|
75 |
|
76 |
// Only accept numeric authors (user ID)
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
|
|
|
|
81 |
}
|
82 |
-
|
83 |
// Remove spaces in the comma separated list
|
84 |
foreach ($instance['exclude'] as $key => $value) {
|
85 |
$instance['exclude'][$key] = trim($value);
|
@@ -162,6 +164,7 @@ class UTCW extends WP_Widget {
|
|
162 |
'count' => $tag->count,
|
163 |
'slug' => $tag->slug,
|
164 |
'name' => $tag->name,
|
|
|
165 |
'color' => ""
|
166 |
);
|
167 |
}
|
@@ -270,7 +273,7 @@ class UTCW extends WP_Widget {
|
|
270 |
$text_transform = 'text-transform: capitalize;';
|
271 |
break;
|
272 |
}
|
273 |
-
|
274 |
// Print the tag cloud content
|
275 |
echo $before_widget;
|
276 |
echo $before_title . $title . $after_title;
|
@@ -281,8 +284,8 @@ class UTCW extends WP_Widget {
|
|
281 |
foreach ($tag_array as $tag) {
|
282 |
extract($tag);
|
283 |
|
284 |
-
printf('<a class="tag-link-%s" href="
|
285 |
-
$term_id, $
|
286 |
}
|
287 |
|
288 |
echo "</div>";
|
3 |
Plugin Name: Ultimate tag cloud widget
|
4 |
Plugin URI: http://bennison.se/?page_id=173
|
5 |
Description: This plugin aims to be the most configurable tag cloud widget out there, able to suit all your wierd tag cloud needs.
|
6 |
+
Version: 1.1
|
7 |
+
Author: Rickard Andersson
|
8 |
Author URI: http://bennison.se
|
9 |
*/
|
10 |
|
74 |
$instance['case'] = in_array($case, $this->allowed_cases) ? $case : $this->default_case;
|
75 |
|
76 |
// Only accept numeric authors (user ID)
|
77 |
+
if (is_array($authors)) {
|
78 |
+
foreach ($authors as $author) {
|
79 |
+
if (is_numeric($author)) {
|
80 |
+
$instance['authors'][] = $author;
|
81 |
+
}
|
82 |
+
}
|
83 |
}
|
84 |
+
|
85 |
// Remove spaces in the comma separated list
|
86 |
foreach ($instance['exclude'] as $key => $value) {
|
87 |
$instance['exclude'][$key] = trim($value);
|
164 |
'count' => $tag->count,
|
165 |
'slug' => $tag->slug,
|
166 |
'name' => $tag->name,
|
167 |
+
'link' => get_term_link(intval($tag->term_id), $taxonomy),
|
168 |
'color' => ""
|
169 |
);
|
170 |
}
|
273 |
$text_transform = 'text-transform: capitalize;';
|
274 |
break;
|
275 |
}
|
276 |
+
|
277 |
// Print the tag cloud content
|
278 |
echo $before_widget;
|
279 |
echo $before_title . $title . $after_title;
|
284 |
foreach ($tag_array as $tag) {
|
285 |
extract($tag);
|
286 |
|
287 |
+
printf('<a class="tag-link-%s" href="%s" style="font-size:%spx;%s;" title="' . _("%s topics") . '">%s</a> ',
|
288 |
+
$term_id, $link, $size, strlen($color) > 0 ? "color:$color" : "", $count, $name);
|
289 |
}
|
290 |
|
291 |
echo "</div>";
|