Plugin Directory

Changeset 1044933


Ignore:
Timestamp:
12/15/2014 01:26:07 PM (11 years ago)
Author:
benohead
Message:

tagging version 1.2

Location:
wp-category-tag-could
Files:
1 added
4 edited
15 copied

Legend:

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

    r1044824 r1044933  
    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.1
     6Version:     1.2
    77Author:      Henri Benoit
    88Author URI:  http://benohead.com
  • wp-category-tag-could/tags/1.2/classes/wp-category-tag-cloud.php

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

    r1044824 r1044933  
    177177                    data-tagcloud-color="<?php echo $instance['color']; ?>"
    178178                    data-cloud-font=<?php echo !empty($instance['font']) ? '"'.$instance['font'].'"' : "null"; ?>
    179                     data-cloud-zoom=<?php echo $instance['zoom']; ?>>
     179                    data-cloud-zoom=<?php echo $instance['zoom']; ?>
     180                <?php echo isset($instance['width']) && is_numeric($instance['width']) && intval($instance['width']) != 0 ? " width='".$instance['width']."'" : ''; ?>
     181                <?php echo isset($instance['height']) && is_numeric($instance['height']) && intval($instance['height']) != 0 ? " height='".$instance['height']."'" : ''; ?>
     182                >
    180183            </canvas>
    181184            </div>
     
    308311        $number = isset($instance['number']) && (is_int($instance['number']) || ctype_digit($instance['number'])) ? $instance['number'] : 0;
    309312        $taxonomy = isset($instance['taxonomy']) && strlen($instance['taxonomy']) > 0 ? $instance['taxonomy'] : 'post_tag';
     313        $width = isset($instance['width']) && is_numeric($instance['width']) ? $instance['width'] : 0;
     314        $height = isset($instance['height']) && is_numeric($instance['height']) ? $instance['height'] : 0;
    310315        $zoom = isset($instance['zoom']) && is_numeric($instance['zoom']) ? $instance['zoom'] : 1;
    311316        $timeout = isset($instance['timeout']) && is_numeric($instance['timeout']) ? $instance['timeout'] : 60;
     
    529534        <p class="canvas-config">
    530535            <label
     536                for="<?php echo $this->get_field_id('width'); ?>"><?php _e('Width:'); ?></label>
     537            <input class="widefat" id="<?php echo $this->get_field_id('width'); ?>"
     538                   name="<?php echo $this->get_field_name('width'); ?>" type="text"
     539                   value="<?php echo esc_attr($width); ?>"/>
     540        </p>
     541        <p class="canvas-config">
     542            <label
     543                for="<?php echo $this->get_field_id('height'); ?>"><?php _e('Height:'); ?></label>
     544            <input class="widefat" id="<?php echo $this->get_field_id('height'); ?>"
     545                   name="<?php echo $this->get_field_name('height'); ?>" type="text"
     546                   value="<?php echo esc_attr($height); ?>"/>
     547        </p>
     548        <p class="canvas-config">
     549            <label
    531550                for="<?php echo $this->get_field_id('zoom'); ?>"><?php _e('Initial zoom factor:'); ?></label>
    532551            <input class="widefat" id="<?php echo $this->get_field_id('zoom'); ?>"
     
    670689        $instance['number'] = isset($new_instance['number']) && (is_int($new_instance['number']) || ctype_digit($new_instance['number'])) ? $new_instance['number'] : 0;
    671690        $instance['taxonomy'] = isset($new_instance['taxonomy']) && strlen($new_instance['taxonomy']) > 0 ? $new_instance['taxonomy'] : 'post_tag';
     691        $instance['width'] = isset($new_instance['width']) && is_numeric($new_instance['width']) ? $new_instance['width'] : 0;
     692        $instance['height'] = isset($new_instance['height']) && is_numeric($new_instance['height']) ? $new_instance['height'] : 0;
    672693        $instance['zoom'] = isset($new_instance['zoom']) && is_numeric($new_instance['zoom']) ? $new_instance['zoom'] : 1;
    673694        $instance['timeout'] = isset($new_instance['timeout']) && is_numeric($new_instance['timeout']) ? $new_instance['timeout'] : 60;
  • wp-category-tag-could/tags/1.2/readme.txt

    r1044824 r1044933  
    55Requires at least: 3.0.1
    66Tested up to: 4.0.1
    7 Stable tag: 1.1
     7Stable tag: 1.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    153153== Changelog ==
    154154
     155= 1.2 =
     156
     157* Width and height can be defined for the 3D cloud to prevent pixelization of the generated images
     158
    155159= 1.1 =
    156160
  • wp-category-tag-could/trunk/bootstrap.php

    r1044824 r1044933  
    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.1
     6Version:     1.2
    77Author:      Henri Benoit
    88Author URI:  http://benohead.com
  • wp-category-tag-could/trunk/classes/wp-category-tag-cloud.php

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

    r1044824 r1044933  
    177177                    data-tagcloud-color="<?php echo $instance['color']; ?>"
    178178                    data-cloud-font=<?php echo !empty($instance['font']) ? '"'.$instance['font'].'"' : "null"; ?>
    179                     data-cloud-zoom=<?php echo $instance['zoom']; ?>>
     179                    data-cloud-zoom=<?php echo $instance['zoom']; ?>
     180                <?php echo isset($instance['width']) && is_numeric($instance['width']) && intval($instance['width']) != 0 ? " width='".$instance['width']."'" : ''; ?>
     181                <?php echo isset($instance['height']) && is_numeric($instance['height']) && intval($instance['height']) != 0 ? " height='".$instance['height']."'" : ''; ?>
     182                >
    180183            </canvas>
    181184            </div>
     
    308311        $number = isset($instance['number']) && (is_int($instance['number']) || ctype_digit($instance['number'])) ? $instance['number'] : 0;
    309312        $taxonomy = isset($instance['taxonomy']) && strlen($instance['taxonomy']) > 0 ? $instance['taxonomy'] : 'post_tag';
     313        $width = isset($instance['width']) && is_numeric($instance['width']) ? $instance['width'] : 0;
     314        $height = isset($instance['height']) && is_numeric($instance['height']) ? $instance['height'] : 0;
    310315        $zoom = isset($instance['zoom']) && is_numeric($instance['zoom']) ? $instance['zoom'] : 1;
    311316        $timeout = isset($instance['timeout']) && is_numeric($instance['timeout']) ? $instance['timeout'] : 60;
     
    529534        <p class="canvas-config">
    530535            <label
     536                for="<?php echo $this->get_field_id('width'); ?>"><?php _e('Width:'); ?></label>
     537            <input class="widefat" id="<?php echo $this->get_field_id('width'); ?>"
     538                   name="<?php echo $this->get_field_name('width'); ?>" type="text"
     539                   value="<?php echo esc_attr($width); ?>"/>
     540        </p>
     541        <p class="canvas-config">
     542            <label
     543                for="<?php echo $this->get_field_id('height'); ?>"><?php _e('Height:'); ?></label>
     544            <input class="widefat" id="<?php echo $this->get_field_id('height'); ?>"
     545                   name="<?php echo $this->get_field_name('height'); ?>" type="text"
     546                   value="<?php echo esc_attr($height); ?>"/>
     547        </p>
     548        <p class="canvas-config">
     549            <label
    531550                for="<?php echo $this->get_field_id('zoom'); ?>"><?php _e('Initial zoom factor:'); ?></label>
    532551            <input class="widefat" id="<?php echo $this->get_field_id('zoom'); ?>"
     
    670689        $instance['number'] = isset($new_instance['number']) && (is_int($new_instance['number']) || ctype_digit($new_instance['number'])) ? $new_instance['number'] : 0;
    671690        $instance['taxonomy'] = isset($new_instance['taxonomy']) && strlen($new_instance['taxonomy']) > 0 ? $new_instance['taxonomy'] : 'post_tag';
     691        $instance['width'] = isset($new_instance['width']) && is_numeric($new_instance['width']) ? $new_instance['width'] : 0;
     692        $instance['height'] = isset($new_instance['height']) && is_numeric($new_instance['height']) ? $new_instance['height'] : 0;
    672693        $instance['zoom'] = isset($new_instance['zoom']) && is_numeric($new_instance['zoom']) ? $new_instance['zoom'] : 1;
    673694        $instance['timeout'] = isset($new_instance['timeout']) && is_numeric($new_instance['timeout']) ? $new_instance['timeout'] : 60;
  • wp-category-tag-could/trunk/readme.txt

    r1044824 r1044933  
    55Requires at least: 3.0.1
    66Tested up to: 4.0.1
    7 Stable tag: 1.1
     7Stable tag: 1.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    153153== Changelog ==
    154154
     155= 1.2 =
     156
     157* Width and height can be defined for the 3D cloud to prevent pixelization of the generated images
     158
    155159= 1.1 =
    156160
Note: See TracChangeset for help on using the changeset viewer.