Plugin Directory

Changeset 1044824


Ignore:
Timestamp:
12/15/2014 10:22:21 AM (11 years ago)
Author:
benohead
Message:

tagging version 1.1

Location:
wp-category-tag-could
Files:
1 added
10 edited
11 copied

Legend:

Unmodified
Added
Removed
  • wp-category-tag-could/tags/1.1/bootstrap.php

    r1044816 r1044824  
    44Plugin URI:  https://wordpress.org/plugins/wp-category-tag-could/
    55Description: Display a configurable cloud of tags, categories or any other taxonomy filtered by tags or categories.
    6 Version:     1.0
     6Version:     1.1
    77Author:      Henri Benoit
    88Author URI:  http://benohead.com
  • wp-category-tag-could/tags/1.1/classes/wp-category-tag-cloud.php

    r1041961 r1044824  
    1212        protected $modified_types = array();
    1313
    14         const VERSION = '1.0';
     14        const VERSION = '1.1';
    1515        const PREFIX = 'wpctc_';
    1616        const DEBUG_MODE = false;
  • wp-category-tag-could/tags/1.1/classes/wpctc-widget.php

    r1041961 r1044824  
    176176            <canvas id="<?php echo $args['widget_id']; ?>_canvas" class="tagcloud-canvas"
    177177                    data-tagcloud-color="<?php echo $instance['color']; ?>"
     178                    data-cloud-font=<?php echo !empty($instance['font']) ? '"'.$instance['font'].'"' : "null"; ?>
    178179                    data-cloud-zoom=<?php echo $instance['zoom']; ?>>
    179180            </canvas>
     
    292293    {
    293294        $title = (!empty($instance['title'])) ? strip_tags($instance['title']) : '';
     295        $font = (!empty($instance['font'])) ? strip_tags($instance['font']) : '';
    294296        $category_id = isset($instance['category_id']) ? $instance['category_id'] : array();
    295297        $child_categories = isset($instance['child_categories']) ? $instance['child_categories'] : "0";
     
    532534                   value="<?php echo esc_attr($zoom); ?>"/>
    533535        </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>
    534543        <p class="cloud-non-price">
    535544            <label
     
    640649        $instance = array();
    641650        $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']) : '';
    642652        $custom_taxonomies = get_taxonomies(array('public' => true, '_builtin' => false), 'objects', 'and');
    643653        if ($custom_taxonomies) {
  • wp-category-tag-could/tags/1.1/javascript/wpctc.tagcanvas.js

    r950579 r1044824  
    1919            $('.tagcloud-canvas').each(function () {
    2020                $color = $(this).attr('data-tagcloud-color');
     21                $font = $(this).attr("data-cloud-font");
     22                if ($font == "null") $font=null;
    2123                $(this).tagcanvas({
    2224                    outlineThickness: 0,
    23                     textFont: null,
     25                    textFont: $font,
    2426                    textColour: $color,
    2527                    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);
     1function 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  
    55Requires at least: 3.0.1
    66Tested up to: 4.0.1
    7 Stable tag: 1.0
     7Stable tag: 1.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    153153== Changelog ==
    154154
     155= 1.1 =
     156
     157* Support for defining the font family used to render the terms in the 3D cloud
     158
    155159= 1.0 =
    156160
  • wp-category-tag-could/trunk/bootstrap.php

    r1041961 r1044824  
    44Plugin URI:  https://wordpress.org/plugins/wp-category-tag-could/
    55Description: Display a configurable cloud of tags, categories or any other taxonomy filtered by tags or categories.
    6 Version:     1.0
     6Version:     1.1
    77Author:      Henri Benoit
    88Author URI:  http://benohead.com
  • wp-category-tag-could/trunk/classes/wp-category-tag-cloud.php

    r1041961 r1044824  
    1212        protected $modified_types = array();
    1313
    14         const VERSION = '1.0';
     14        const VERSION = '1.1';
    1515        const PREFIX = 'wpctc_';
    1616        const DEBUG_MODE = false;
  • wp-category-tag-could/trunk/classes/wpctc-widget.php

    r1041961 r1044824  
    176176            <canvas id="<?php echo $args['widget_id']; ?>_canvas" class="tagcloud-canvas"
    177177                    data-tagcloud-color="<?php echo $instance['color']; ?>"
     178                    data-cloud-font=<?php echo !empty($instance['font']) ? '"'.$instance['font'].'"' : "null"; ?>
    178179                    data-cloud-zoom=<?php echo $instance['zoom']; ?>>
    179180            </canvas>
     
    292293    {
    293294        $title = (!empty($instance['title'])) ? strip_tags($instance['title']) : '';
     295        $font = (!empty($instance['font'])) ? strip_tags($instance['font']) : '';
    294296        $category_id = isset($instance['category_id']) ? $instance['category_id'] : array();
    295297        $child_categories = isset($instance['child_categories']) ? $instance['child_categories'] : "0";
     
    532534                   value="<?php echo esc_attr($zoom); ?>"/>
    533535        </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>
    534543        <p class="cloud-non-price">
    535544            <label
     
    640649        $instance = array();
    641650        $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']) : '';
    642652        $custom_taxonomies = get_taxonomies(array('public' => true, '_builtin' => false), 'objects', 'and');
    643653        if ($custom_taxonomies) {
  • wp-category-tag-could/trunk/javascript/wpctc.tagcanvas.js

    r950579 r1044824  
    1919            $('.tagcloud-canvas').each(function () {
    2020                $color = $(this).attr('data-tagcloud-color');
     21                $font = $(this).attr("data-cloud-font");
     22                if ($font == "null") $font=null;
    2123                $(this).tagcanvas({
    2224                    outlineThickness: 0,
    23                     textFont: null,
     25                    textFont: $font,
    2426                    textColour: $color,
    2527                    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);
     1function 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  
    55Requires at least: 3.0.1
    66Tested up to: 4.0.1
    7 Stable tag: 1.0
     7Stable tag: 1.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    153153== Changelog ==
    154154
     155= 1.1 =
     156
     157* Support for defining the font family used to render the terms in the 3D cloud
     158
    155159= 1.0 =
    156160
Note: See TracChangeset for help on using the changeset viewer.