Version Description
- Added shortcode [utcw]
Download this release
Release Info
Developer | exz |
Plugin | Ultimate Tag Cloud Widget |
Version | 1.3.9 |
Comparing to | |
See all releases |
Code changes from version 1.3.8 to 1.3.9
- readme.txt +25 -20
- ultimate-tag-cloud-widget.php +6 -3
- utcw.js +7 -8
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.2.1
|
6 |
-
Stable tag: 1.3.
|
7 |
Donate link: https://flattr.com/thing/112193/Ultimate-Tag-Cloud-Widget
|
8 |
|
9 |
This plugin aims to be the most configurable tag cloud widget out there, able to suit all your wierd tag cloud needs.
|
@@ -57,6 +57,10 @@ This is a new plugin, haven't had any questions yet. If you have any, be sure to
|
|
57 |
|
58 |
== Changelog ==
|
59 |
|
|
|
|
|
|
|
|
|
60 |
= 1.3.8 =
|
61 |
|
62 |
* Improved the tabbed settings when using multiple tag clouds
|
@@ -122,6 +126,10 @@ This is a new plugin, haven't had any questions yet. If you have any, be sure to
|
|
122 |
|
123 |
== Upgrade Notice ==
|
124 |
|
|
|
|
|
|
|
|
|
125 |
= 1.3.8 =
|
126 |
|
127 |
* Minor bug fixes from previous version
|
@@ -177,13 +185,25 @@ My contact information is
|
|
177 |
* rickard (a) 0x539.se (email, gtalk, msn, you name it)
|
178 |
* [twitter.com/rickard2](http://twitter.com/rickard2)
|
179 |
|
180 |
-
== Theme integration ==
|
181 |
|
182 |
-
|
183 |
|
184 |
`<?php do_utcw($args); ?>`
|
185 |
|
186 |
-
...with the
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
187 |
|
188 |
* before_widget (string)
|
189 |
* after_widget (string)
|
@@ -232,22 +252,7 @@ Upon a request in the forums, you can now integrate the widget within your own t
|
|
232 |
* prefix (string)
|
233 |
* suffix (string)
|
234 |
|
235 |
-
All options are optional, default values can be found in the widget php file. Valid values for order, taxonomy, color and case can be found in the arrays $utcw_allowed_orders, taxonomys, colors and cases respectively.
|
236 |
-
|
237 |
-
`<?php
|
238 |
-
$args = array(
|
239 |
-
'before_widget' => '<div id="my_widget_wrapper">',
|
240 |
-
'after_widget' => '</div>',
|
241 |
-
'title' => 'Look at all these cool tagz!',
|
242 |
-
'size_from' => 19,
|
243 |
-
'size_to' => 52,
|
244 |
-
'color' => 'random',
|
245 |
-
'order' => 'name',
|
246 |
-
'reverse' => true
|
247 |
-
);
|
248 |
-
|
249 |
-
do_utcw($args);
|
250 |
-
?>`
|
251 |
|
252 |
Good luck and remember to give me feedback if you run into any problems
|
253 |
|
3 |
Tags: widget, tags, configurable, tag cloud
|
4 |
Requires at least: 2.8
|
5 |
Tested up to: 3.2.1
|
6 |
+
Stable tag: 1.3.9
|
7 |
Donate link: https://flattr.com/thing/112193/Ultimate-Tag-Cloud-Widget
|
8 |
|
9 |
This plugin aims to be the most configurable tag cloud widget out there, able to suit all your wierd tag cloud needs.
|
57 |
|
58 |
== Changelog ==
|
59 |
|
60 |
+
= 1.3.9 =
|
61 |
+
|
62 |
+
* Added shortcode [utcw]
|
63 |
+
|
64 |
= 1.3.8 =
|
65 |
|
66 |
* Improved the tabbed settings when using multiple tag clouds
|
126 |
|
127 |
== Upgrade Notice ==
|
128 |
|
129 |
+
= 1.3.9 =
|
130 |
+
|
131 |
+
* Added shortcode
|
132 |
+
|
133 |
= 1.3.8 =
|
134 |
|
135 |
* Minor bug fixes from previous version
|
185 |
* rickard (a) 0x539.se (email, gtalk, msn, you name it)
|
186 |
* [twitter.com/rickard2](http://twitter.com/rickard2)
|
187 |
|
188 |
+
== Theme integration / Shortcode ==
|
189 |
|
190 |
+
You can integrate the widget within your own theme even if you're not using standard wordpress widgets. Just install and load the plugin as described and use the function
|
191 |
|
192 |
`<?php do_utcw($args); ?>`
|
193 |
|
194 |
+
...with $args being a array of key => value pairs for the options you would like to set. For example if you'd like to change the title of the widget:
|
195 |
+
|
196 |
+
`<?php
|
197 |
+
$args = array( "title" => "Most awesome title ever" );
|
198 |
+
|
199 |
+
do_utcw( $args );
|
200 |
+
?>`
|
201 |
+
|
202 |
+
If you're not able to change your theme you can also use the shortcode `[utcw]` anywhere in your posts or pages. You can pass any of the settings along with the shortcode in the format of key=value, for instance if you'd like to change the widget title:
|
203 |
+
|
204 |
+
`[utcw title="Most awesome title ever"]`
|
205 |
+
|
206 |
+
This is the list of all the options that you can set, which works both in the shortcode and the function call.
|
207 |
|
208 |
* before_widget (string)
|
209 |
* after_widget (string)
|
252 |
* prefix (string)
|
253 |
* suffix (string)
|
254 |
|
255 |
+
All options are optional, default values can be found in the widget php file. Valid values for order, taxonomy, color and case can be found in the arrays $utcw_allowed_orders, taxonomys, colors and cases respectively.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
256 |
|
257 |
Good luck and remember to give me feedback if you run into any problems
|
258 |
|
ultimate-tag-cloud-widget.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Ultimate tag cloud widget
|
4 |
Plugin URI: http://www.0x539.se/wordpress/ultimate-tag-cloud-widget/
|
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.3.
|
7 |
Author: Rickard Andersson
|
8 |
Author URI: http://www.0x539.se
|
9 |
License: GPLv2
|
@@ -266,7 +266,9 @@ function do_utcw($args) {
|
|
266 |
|
267 |
global $wpdb;
|
268 |
|
269 |
-
|
|
|
|
|
270 |
|
271 |
global $utcw_allowed_orders,
|
272 |
$utcw_allowed_taxonomies,
|
@@ -647,10 +649,11 @@ wp_register_style('utcw-css', '/wp-content/plugins/ultimate-tag-cloud-widget/utc
|
|
647 |
function utcw_init() {
|
648 |
wp_enqueue_script('utcw-js');
|
649 |
wp_enqueue_style('utcw-css');
|
|
|
|
|
650 |
}
|
651 |
add_action('init', 'utcw_init');
|
652 |
|
653 |
-
|
654 |
/*
|
655 |
* Compare functions
|
656 |
*/
|
3 |
Plugin Name: Ultimate tag cloud widget
|
4 |
Plugin URI: http://www.0x539.se/wordpress/ultimate-tag-cloud-widget/
|
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.3.9
|
7 |
Author: Rickard Andersson
|
8 |
Author URI: http://www.0x539.se
|
9 |
License: GPLv2
|
266 |
|
267 |
global $wpdb;
|
268 |
|
269 |
+
if (is_array($args)) {
|
270 |
+
extract($args);
|
271 |
+
}
|
272 |
|
273 |
global $utcw_allowed_orders,
|
274 |
$utcw_allowed_taxonomies,
|
649 |
function utcw_init() {
|
650 |
wp_enqueue_script('utcw-js');
|
651 |
wp_enqueue_style('utcw-css');
|
652 |
+
|
653 |
+
add_shortcode('utcw', 'do_utcw');
|
654 |
}
|
655 |
add_action('init', 'utcw_init');
|
656 |
|
|
|
657 |
/*
|
658 |
* Compare functions
|
659 |
*/
|
utcw.js
CHANGED
@@ -1,8 +1,7 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
(function(b){b(document).ready(function(){
|
8 |
-
$this.addClass("utcw-active");$this.parent().find("fieldset.utcw").addClass("hidden");b("#"+$this.data("tab")).removeClass("hidden");utcwActiveTab[$this.data("id")]=$this.data("tab");return!1})})})(jQuery);
|
1 |
+
/* Wayfarer Tooltip
|
2 |
+
* Version 1.0.9
|
3 |
+
* Author Abel Mohler
|
4 |
+
* URI: http://www.wayfarerweb.com/wtooltip.php
|
5 |
+
* Released with the MIT License: http://www.wayfarerweb.com/mit.php
|
6 |
+
*/
|
7 |
+
(function(a){a.fn.wTooltip=function(f,r){f=a.extend({content:null,ajax:null,follow:true,auto:true,fadeIn:0,fadeOut:0,appendTip:document.body,degrade:false,offsetY:10,offsetX:1,style:{},className:null,id:null,callBefore:function(t,p,o){},callAfter:function(t,p,o){},clickAction:function(p,o){a(p).hide()},delay:0,timeout:0},f||{});if(!f.style&&typeof f.style!="object"){f.style={};f.style.zIndex="1000"}else{f.style=a.extend({border:"1px solid gray",background:"#edeef0",color:"#000",padding:"10px",zIndex:"1000",textAlign:"left"},f.style||{})}if(typeof r=="function"){f.callAfter=r||f.callAfter}f.style.display="none",f.style.position="absolute";var m,l,q,c,k={},b=true,e=false,n=false,s=document.createElement("div"),g=(typeof document.body.style.maxWidth=="undefined")?true:false,j=(typeof a.talk=="function"&&typeof a.listen=="function")?true:false;if(f.id){s.id=f.id}if(f.className){s.className=f.className}f.degrade=(f.degrade&&g)?true:false;for(var d in f.style){s.style[d]=f.style[d]}function i(o){if(o){if(f.degrade){a(s).html(f.content.replace(/<\/?[^>]+>/gi,""))}else{a(s).html(f.content)}}}if(f.ajax){a.get(f.ajax,function(o){if(o){f.content=o}i(f.content)})}function h(p){function t(u){if(m&&!f.content){m=""}}function o(){if(!e&&f.auto){clearInterval(c);if(f.fadeOut){a(s).fadeOut(f.fadeOut,function(){t(p)})}else{t(p);s.style.display="none"}}if(typeof f.callAfter=="function"){f.callAfter(s,p,f)}if(j){f=a.listen(f)}}if(f.timeout>0){q=setTimeout(function(){o()},f.timeout)}else{o()}}a(s).hover(function(){e=true},function(){e=false;h(k)});if(j){f.key=s;f.plugin="wTooltip";f.channel="wayfarer";a.talk(f)}i(f.content&&!f.ajax);a(s).appendTo(f.appendTip);return this.each(function(){a(this).hover(function(){var p=this;clearTimeout(q);if((this.title||this.titleMemKeep)&&!f.degrade&&!f.content){m=this.title||this.titleMemKeep;if(this.title){this.titleMemKeep=this.title;this.title=""}}if(f.content&&f.degrade){this.title=s.innerHTML}function o(){if(typeof f.callBefore=="function"){f.callBefore(s,p,f)}if(j){f=a.listen(f)}var t;if(f.content){if(!f.degrade){t="block"}}else{if(m&&!f.degrade){a(s).html(unescape(m));t="block";m=""}else{t="none"}}if(f.auto){if(t=="block"&&f.fadeIn){a(s).fadeIn(f.fadeIn)}else{s.style.display=t}}}if(f.delay>0){l=setTimeout(function(){o()},f.delay)}else{o()}},function(){clearTimeout(l);var o=this;b=true;if(!f.follow||n||((f.offsetX<0&&(0-f.offsetX<a(s).outerWidth()))&&(f.offsetY>0&&0-f.offsetY<a(s).outerHeight()))){setTimeout(function(){c=setInterval(function(){h(o)},1)},1)}else{h(this)}});a(this).mousemove(function(v){k=this;if(f.follow||b){var y=a(window).scrollTop(),z=a(window).scrollLeft(),w=v.clientY+y+f.offsetY,t=v.clientX+z+f.offsetX,x=a(f.appendTip).outerHeight(),p=a(f.appendTip).innerHeight(),o=a(window).width()+z-a(s).outerWidth(),u=a(window).height()+y-a(s).outerHeight();w=(x>p)?w-(x-p):w;n=(w>u||t>o)?true:false;if(t-z<=0&&f.offsetX<0){t=z}else{if(t>o){t=o}}if(w-y<=0&&f.offsetY<0){w=y}else{if(w>u){w=u}}s.style.top=w+"px";s.style.left=t+"px";b=false}});if(typeof f.clickAction=="function"){a(this).click(function(){f.clickAction(s,this)})}})}})(jQuery);var utcwActiveTab = [];var wTooltipStyle={border:"solid 1px #6295fb",background:"#fff",color:"#000",padding:"5px",zIndex:1E3};(function(a){a(document).ready(function(){a("input[id$=-color_none], input[id$=-color_random], input[id$=-color_set], input[id$=-color_span]").live("click",function(){a("div[id$='set_chooser']").addClass("utcw-hidden");a("div[id$='span_chooser']").addClass("utcw-hidden");a(this).val()=="set"?a("div[id$='set_chooser']").removeClass("utcw-hidden"):a(this).val()=="span"&&a("div[id$='span_chooser']").removeClass("utcw-hidden")});a(".utcw-tab-button").live("click",function(){$this=a(this);$this.parent().find(".utcw-tab-button").removeClass("utcw-active");$this.addClass("utcw-active");$this.parent().find("fieldset.utcw").addClass("hidden");a("#"+$this.data("tab")).removeClass("hidden");utcwActiveTab[$this.data("id")]=$this.data("tab");return false})})})(jQuery);
|
|