Plugin Directory

Changeset 1482970


Ignore:
Timestamp:
08/24/2016 11:59:35 PM (10 years ago)
Author:
thekrotek
Message:

Updated stuff.

Location:
custom-tag-cloud/tags/1.0.0
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • custom-tag-cloud/tags/1.0.0/helpers/widget.php

    r1443736 r1482970  
    1313{
    1414    protected $params;
    15     public $label;
    16     public $basedir;
    17     public $basename;   
     15    protected $label;
     16    protected $basedir;
     17    protected $basename;   
    1818   
    1919    public function __construct()
     
    2121        global $tagcloud;
    2222       
    23         $this->label = $tagcloud->label;
    24         $this->basedir = $tagcloud->basedir;
    25         $this->basename = $tagcloud->basename;
     23        $this->label = $tagcloud->get('label');
     24        $this->basedir = $tagcloud->get('basedir');
     25        $this->basename = $tagcloud->get('basename');
    2626       
    2727        parent::__construct($this->label, __('Custom Tag Cloud', $this->label), array('description' => __('Displays customized tag cloud.', $this->label)));
  • custom-tag-cloud/tags/1.0.0/readme.txt

    r1443736 r1482970  
    55Tags: shortcode, tags, tag, cloud, tag cloud
    66Requires at least: 4.0
    7 Tested up to: 4.5.2
     7Tested up to: 4.6
    88Stable tag: 1.0.0
    99License: GPLv2 or later
  • custom-tag-cloud/tags/1.0.0/tagcloud.php

    r1443736 r1482970  
    1616   
    1717class CustomTagCloud
    18 {   
    19     public $debug = true;
    20     public $label = 'tagcloud';
    21     public $basedir;
    22     public $basename;
    23     public $params;
     18{      
     19    protected $label = 'tagcloud';
     20    protected $basedir;
     21    protected $basename;
     22    protected $params;
     23    protected $debug = false;
    2424           
    2525    public function __construct()
     
    150150    {
    151151        return isset($this->params[$name]) ? $this->params[$name] : $default;
    152     }   
     152    }
     153   
     154    public function get($variable)
     155    {
     156        return $this->{$variable};
     157    }   
    153158}
    154159
Note: See TracChangeset for help on using the changeset viewer.