Changeset 1044824
- Timestamp:
- 12/15/2014 10:22:21 AM (11 years ago)
- Location:
- wp-category-tag-could
- Files:
-
- 1 added
- 10 edited
- 11 copied
-
tags/1.1 (added)
-
tags/1.1/bootstrap.php (copied) (copied from wp-category-tag-could/trunk/bootstrap.php) (1 diff)
-
tags/1.1/classes (copied) (copied from wp-category-tag-could/trunk/classes)
-
tags/1.1/classes/wp-category-tag-cloud.php (modified) (1 diff)
-
tags/1.1/classes/wpctc-widget.php (modified) (4 diffs)
-
tags/1.1/css (copied) (copied from wp-category-tag-could/trunk/css)
-
tags/1.1/javascript (copied) (copied from wp-category-tag-could/trunk/javascript)
-
tags/1.1/javascript/wpctc.tagcanvas.js (modified) (1 diff)
-
tags/1.1/javascript/wpctc.tagcanvas.min.js (modified) (1 diff)
-
tags/1.1/readme.txt (copied) (copied from wp-category-tag-could/trunk/readme.txt) (2 diffs)
-
tags/1.1/screenshot-1.png (copied) (copied from wp-category-tag-could/trunk/screenshot-1.png)
-
tags/1.1/screenshot-2.gif (copied) (copied from wp-category-tag-could/trunk/screenshot-2.gif)
-
tags/1.1/screenshot-3.png (copied) (copied from wp-category-tag-could/trunk/screenshot-3.png)
-
tags/1.1/screenshot-4.png (copied) (copied from wp-category-tag-could/trunk/screenshot-4.png)
-
tags/1.1/screenshot-5.png (copied) (copied from wp-category-tag-could/trunk/screenshot-5.png)
-
tags/1.1/views (copied) (copied from wp-category-tag-could/trunk/views)
-
trunk/bootstrap.php (modified) (1 diff)
-
trunk/classes/wp-category-tag-cloud.php (modified) (1 diff)
-
trunk/classes/wpctc-widget.php (modified) (4 diffs)
-
trunk/javascript/wpctc.tagcanvas.js (modified) (1 diff)
-
trunk/javascript/wpctc.tagcanvas.min.js (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-category-tag-could/tags/1.1/bootstrap.php
r1044816 r1044824 4 4 Plugin URI: https://wordpress.org/plugins/wp-category-tag-could/ 5 5 Description: Display a configurable cloud of tags, categories or any other taxonomy filtered by tags or categories. 6 Version: 1. 06 Version: 1.1 7 7 Author: Henri Benoit 8 8 Author URI: http://benohead.com -
wp-category-tag-could/tags/1.1/classes/wp-category-tag-cloud.php
r1041961 r1044824 12 12 protected $modified_types = array(); 13 13 14 const VERSION = '1. 0';14 const VERSION = '1.1'; 15 15 const PREFIX = 'wpctc_'; 16 16 const DEBUG_MODE = false; -
wp-category-tag-could/tags/1.1/classes/wpctc-widget.php
r1041961 r1044824 176 176 <canvas id="<?php echo $args['widget_id']; ?>_canvas" class="tagcloud-canvas" 177 177 data-tagcloud-color="<?php echo $instance['color']; ?>" 178 data-cloud-font=<?php echo !empty($instance['font']) ? '"'.$instance['font'].'"' : "null"; ?> 178 179 data-cloud-zoom=<?php echo $instance['zoom']; ?>> 179 180 </canvas> … … 292 293 { 293 294 $title = (!empty($instance['title'])) ? strip_tags($instance['title']) : ''; 295 $font = (!empty($instance['font'])) ? strip_tags($instance['font']) : ''; 294 296 $category_id = isset($instance['category_id']) ? $instance['category_id'] : array(); 295 297 $child_categories = isset($instance['child_categories']) ? $instance['child_categories'] : "0"; … … 532 534 value="<?php echo esc_attr($zoom); ?>"/> 533 535 </p> 536 <p class="canvas-config"> 537 <label 538 for="<?php echo $this->get_field_id('font'); ?>"><?php _e('Font family:'); ?></label> 539 <input class="widefat" id="<?php echo $this->get_field_id('font'); ?>" 540 name="<?php echo $this->get_field_name('font'); ?>" type="text" 541 value="<?php echo esc_attr($font); ?>"/> 542 </p> 534 543 <p class="cloud-non-price"> 535 544 <label … … 640 649 $instance = array(); 641 650 $instance['title'] = (!empty($new_instance['title'])) ? strip_tags($new_instance['title']) : __('New title', 'wpctc_widget_domain'); 651 $instance['font'] = (!empty($new_instance['font'])) ? strip_tags($new_instance['font']) : ''; 642 652 $custom_taxonomies = get_taxonomies(array('public' => true, '_builtin' => false), 'objects', 'and'); 643 653 if ($custom_taxonomies) { -
wp-category-tag-could/tags/1.1/javascript/wpctc.tagcanvas.js
r950579 r1044824 19 19 $('.tagcloud-canvas').each(function () { 20 20 $color = $(this).attr('data-tagcloud-color'); 21 $font = $(this).attr("data-cloud-font"); 22 if ($font == "null") $font=null; 21 23 $(this).tagcanvas({ 22 24 outlineThickness: 0, 23 textFont: null,25 textFont: $font, 24 26 textColour: $color, 25 27 maxSpeed: 0.06, -
wp-category-tag-could/tags/1.1/javascript/wpctc.tagcanvas.min.js
r958706 r1044824 1 function wpctcWrapper($){var wpctc={init:function(){wpctc.prefix="wpctc_";wpctc.templateURL=$("#template-url").val();wpctc.ajaxPostURL=$("#ajax-post-url").val();wpctc.registerEventHandlers();$(".tagcloud-canvas").each(function(){$color=$(this).attr("data-tagcloud-color");$ (this).tagcanvas({outlineThickness:0,textFont:null,textColour:$color,maxSpeed:0.06,minBrightness:0.1,depth:0.95,pulsateTo:0.2,pulsateTime:0.75,decel:0.9,reverse:true,fadeIn:800,zoom:parseInt($(this).attr("data-cloud-zoom")),zoomStep:0.05,zoomMax:3,zoomMin:0.3,weight:true},$(this).attr("id")+"_tags");});},registerEventHandlers:function(){}};$(document).ready(wpctc.init);}wpctcWrapper(jQuery);1 function wpctcWrapper($){var wpctc={init:function(){wpctc.prefix="wpctc_";wpctc.templateURL=$("#template-url").val();wpctc.ajaxPostURL=$("#ajax-post-url").val();wpctc.registerEventHandlers();$(".tagcloud-canvas").each(function(){$color=$(this).attr("data-tagcloud-color");$font=$(this).attr("data-cloud-font");if($font=="null"){$font=null;}$(this).tagcanvas({outlineThickness:0,textFont:$font,textColour:$color,maxSpeed:0.06,minBrightness:0.1,depth:0.95,pulsateTo:0.2,pulsateTime:0.75,decel:0.9,reverse:true,fadeIn:800,zoom:parseInt($(this).attr("data-cloud-zoom")),zoomStep:0.05,zoomMax:3,zoomMin:0.3,weight:true},$(this).attr("id")+"_tags");});},registerEventHandlers:function(){}};$(document).ready(wpctc.init);}wpctcWrapper(jQuery); -
wp-category-tag-could/tags/1.1/readme.txt
r1044816 r1044824 5 5 Requires at least: 3.0.1 6 6 Tested up to: 4.0.1 7 Stable tag: 1. 07 Stable tag: 1.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 153 153 == Changelog == 154 154 155 = 1.1 = 156 157 * Support for defining the font family used to render the terms in the 3D cloud 158 155 159 = 1.0 = 156 160 -
wp-category-tag-could/trunk/bootstrap.php
r1041961 r1044824 4 4 Plugin URI: https://wordpress.org/plugins/wp-category-tag-could/ 5 5 Description: Display a configurable cloud of tags, categories or any other taxonomy filtered by tags or categories. 6 Version: 1. 06 Version: 1.1 7 7 Author: Henri Benoit 8 8 Author URI: http://benohead.com -
wp-category-tag-could/trunk/classes/wp-category-tag-cloud.php
r1041961 r1044824 12 12 protected $modified_types = array(); 13 13 14 const VERSION = '1. 0';14 const VERSION = '1.1'; 15 15 const PREFIX = 'wpctc_'; 16 16 const DEBUG_MODE = false; -
wp-category-tag-could/trunk/classes/wpctc-widget.php
r1041961 r1044824 176 176 <canvas id="<?php echo $args['widget_id']; ?>_canvas" class="tagcloud-canvas" 177 177 data-tagcloud-color="<?php echo $instance['color']; ?>" 178 data-cloud-font=<?php echo !empty($instance['font']) ? '"'.$instance['font'].'"' : "null"; ?> 178 179 data-cloud-zoom=<?php echo $instance['zoom']; ?>> 179 180 </canvas> … … 292 293 { 293 294 $title = (!empty($instance['title'])) ? strip_tags($instance['title']) : ''; 295 $font = (!empty($instance['font'])) ? strip_tags($instance['font']) : ''; 294 296 $category_id = isset($instance['category_id']) ? $instance['category_id'] : array(); 295 297 $child_categories = isset($instance['child_categories']) ? $instance['child_categories'] : "0"; … … 532 534 value="<?php echo esc_attr($zoom); ?>"/> 533 535 </p> 536 <p class="canvas-config"> 537 <label 538 for="<?php echo $this->get_field_id('font'); ?>"><?php _e('Font family:'); ?></label> 539 <input class="widefat" id="<?php echo $this->get_field_id('font'); ?>" 540 name="<?php echo $this->get_field_name('font'); ?>" type="text" 541 value="<?php echo esc_attr($font); ?>"/> 542 </p> 534 543 <p class="cloud-non-price"> 535 544 <label … … 640 649 $instance = array(); 641 650 $instance['title'] = (!empty($new_instance['title'])) ? strip_tags($new_instance['title']) : __('New title', 'wpctc_widget_domain'); 651 $instance['font'] = (!empty($new_instance['font'])) ? strip_tags($new_instance['font']) : ''; 642 652 $custom_taxonomies = get_taxonomies(array('public' => true, '_builtin' => false), 'objects', 'and'); 643 653 if ($custom_taxonomies) { -
wp-category-tag-could/trunk/javascript/wpctc.tagcanvas.js
r950579 r1044824 19 19 $('.tagcloud-canvas').each(function () { 20 20 $color = $(this).attr('data-tagcloud-color'); 21 $font = $(this).attr("data-cloud-font"); 22 if ($font == "null") $font=null; 21 23 $(this).tagcanvas({ 22 24 outlineThickness: 0, 23 textFont: null,25 textFont: $font, 24 26 textColour: $color, 25 27 maxSpeed: 0.06, -
wp-category-tag-could/trunk/javascript/wpctc.tagcanvas.min.js
r958706 r1044824 1 function wpctcWrapper($){var wpctc={init:function(){wpctc.prefix="wpctc_";wpctc.templateURL=$("#template-url").val();wpctc.ajaxPostURL=$("#ajax-post-url").val();wpctc.registerEventHandlers();$(".tagcloud-canvas").each(function(){$color=$(this).attr("data-tagcloud-color");$ (this).tagcanvas({outlineThickness:0,textFont:null,textColour:$color,maxSpeed:0.06,minBrightness:0.1,depth:0.95,pulsateTo:0.2,pulsateTime:0.75,decel:0.9,reverse:true,fadeIn:800,zoom:parseInt($(this).attr("data-cloud-zoom")),zoomStep:0.05,zoomMax:3,zoomMin:0.3,weight:true},$(this).attr("id")+"_tags");});},registerEventHandlers:function(){}};$(document).ready(wpctc.init);}wpctcWrapper(jQuery);1 function wpctcWrapper($){var wpctc={init:function(){wpctc.prefix="wpctc_";wpctc.templateURL=$("#template-url").val();wpctc.ajaxPostURL=$("#ajax-post-url").val();wpctc.registerEventHandlers();$(".tagcloud-canvas").each(function(){$color=$(this).attr("data-tagcloud-color");$font=$(this).attr("data-cloud-font");if($font=="null"){$font=null;}$(this).tagcanvas({outlineThickness:0,textFont:$font,textColour:$color,maxSpeed:0.06,minBrightness:0.1,depth:0.95,pulsateTo:0.2,pulsateTime:0.75,decel:0.9,reverse:true,fadeIn:800,zoom:parseInt($(this).attr("data-cloud-zoom")),zoomStep:0.05,zoomMax:3,zoomMin:0.3,weight:true},$(this).attr("id")+"_tags");});},registerEventHandlers:function(){}};$(document).ready(wpctc.init);}wpctcWrapper(jQuery); -
wp-category-tag-could/trunk/readme.txt
r1041961 r1044824 5 5 Requires at least: 3.0.1 6 6 Tested up to: 4.0.1 7 Stable tag: 1. 07 Stable tag: 1.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 153 153 == Changelog == 154 154 155 = 1.1 = 156 157 * Support for defining the font family used to render the terms in the 3D cloud 158 155 159 = 1.0 = 156 160
Note: See TracChangeset
for help on using the changeset viewer.