Changeset 2884111
- Timestamp:
- 03/21/2023 08:49:16 AM (3 years ago)
- Location:
- categorized-tag-cloud
- Files:
-
- 8 added
- 1 deleted
- 2 edited
-
tags/1.2.22 (deleted)
-
tags/1.2.23 (added)
-
tags/1.2.23/categorized-tag-cloud.php (added)
-
tags/1.2.23/index.php (added)
-
tags/1.2.23/lang (added)
-
tags/1.2.23/lang/categorized-tag-cloud-sr_RS.mo (added)
-
tags/1.2.23/lang/categorized-tag-cloud-sr_RS.po (added)
-
tags/1.2.23/lang/categorized-tag-cloud.pot (added)
-
tags/1.2.23/readme.txt (added)
-
trunk/categorized-tag-cloud.php (modified) (5 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
categorized-tag-cloud/trunk/categorized-tag-cloud.php
r2881966 r2884111 5 5 Description: Takes the website tags and aggregates them into a categorized cloud widget for sidebar. 6 6 Author: WhileTrue 7 Version: 1.2.2 27 Version: 1.2.23 8 8 Author URI: https://www.whiletrue.it/ 9 9 */ … … 33 33 $order = (isset($instance['order']) && $instance['order'] == 'a') ? 'ASC' : 'RAND'; 34 34 35 $exclude_items = array();35 $exclude_items = []; 36 36 $category_filters = (array) json_decode($instance['category_filters']); 37 37 if (!isset($category_filters['cat']) || !is_array($category_filters['cat'])) { 38 $category_filters['cat'] = array();38 $category_filters['cat'] = []; 39 39 } 40 40 for ($i = 0; $i < count($category_filters['cat']); $i++) { … … 87 87 load_plugin_textdomain('categorized-tag-cloud', 'false', $this->languagePath); 88 88 89 $this->options = array(90 array(89 $this->options = [ 90 [ 91 91 'name' => 'title', 'label' => 'Title:', 92 92 'type' => 'text' 93 ),94 array(93 ], 94 [ 95 95 'name' => 'words_number', 'label' => 'How many tags to show:', 96 96 'type' => 'text' 97 ),98 array(97 ], 98 [ 99 99 'name' => 'words_color', 'label' => 'Word color (random if not entered):', 100 100 'type' => 'text' 101 ),102 array(101 ], 102 [ 103 103 'name' => 'hover_color', 'label' => 'Hover color (black if not entered):', 104 104 'type' => 'text' 105 ),106 array(105 ], 106 [ 107 107 'name' => 'smallest_font', 'label' => 'Smallest font size (default is 7):', 108 108 'type' => 'text' 109 ),110 array(109 ], 110 [ 111 111 'name' => 'largest_font', 'label' => 'Largest font size (default is 14):', 112 112 'type' => 'text' 113 ),114 array(113 ], 114 [ 115 115 'name' => 'order', 'label' => 'Order:', 116 'type' => 'radio', 'values' => array('' => 'Random', 'a' => 'Alphanumeric')117 ),118 array(116 'type' => 'radio', 'values' => ['' => 'Random', 'a' => 'Alphanumeric'], 117 ], 118 [ 119 119 'label' => 'Category filters', 120 120 'type' => 'separator' 121 ),122 array(121 ], 122 [ 123 123 'type' => 'category_filters' 124 ),125 array(124 ], 125 [ 126 126 'type' => 'donate' 127 ),128 );129 130 $control_ops = array('width' => 500);131 parent::__construct(false, 'Categorized Tag Cloud', array(), $control_ops);127 ], 128 ]; 129 130 $control_ops = ['width' => 500]; 131 parent::__construct(false, 'Categorized Tag Cloud', [], $control_ops); 132 132 } 133 133 … … 156 156 157 157 if (isset($_POST['categorized-tag-cloud-num-filters']) && is_numeric($_POST['categorized-tag-cloud-num-filters'])) { 158 $instance['category_filters'] = array();158 $instance['category_filters'] = []; 159 159 for ($i = 0; $i < $_POST['categorized-tag-cloud-num-filters']; $i++) { 160 160 if ($_POST['categorized-tag-cloud-cat-' . $i] == '' && $_POST['categorized-tag-cloud-tag-' . $i] == '') { … … 197 197 $category_filters = (array) json_decode($instance['category_filters']); 198 198 if (!is_array($category_filters)) { 199 $category_filters = array();200 } 201 if (!is _array($category_filters['cat'])) {202 $category_filters['cat'] = array();199 $category_filters = []; 200 } 201 if (!isset($category_filters['cat']) || !is_array($category_filters['cat'])) { 202 $category_filters['cat'] = []; 203 203 } 204 204 echo '<input name="categorized-tag-cloud-num-filters" type="hidden" value="' . (count($category_filters) + 2) . '" />'; -
categorized-tag-cloud/trunk/readme.txt
r2881966 r2884111 4 4 Tags: tags, tag sidebar, categories, sidebar, widget, tag widget, simple tag, cloud, tag cloud 5 5 Requires at least: 2.9+ 6 Tested up to: 6. 17 Stable tag: 1.2.2 26 Tested up to: 6.2 7 Stable tag: 1.2.23 8 8 9 9 A cloud with the most used tags in a sidebar widget, filtered by post category. … … 47 47 == Changelog == 48 48 49 = 1.2.2 2=50 * Plugin tested up to WordPress 6. 151 * Fixed: PHP warning 49 = 1.2.23 = 50 * Plugin tested up to WordPress 6.2 51 * Fixed: PHP warnings 52 52 53 53 = 1.2.14 =
Note: See TracChangeset
for help on using the changeset viewer.