Changeset 2185113
- Timestamp:
- 11/03/2019 07:24:11 AM (6 years ago)
- Location:
- display-categories-widget/trunk
- Files:
-
- 2 edited
-
display_categories_widget.php (modified) (2 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
display-categories-widget/trunk/display_categories_widget.php
r2123404 r2185113 4 4 Description: Display Categories Widget - Easy to display categories as widget on your sidebar, Smart Customizable widget settings on the backend 5 5 Plugin URI: http://www.iteamweb.com/open-source-softwares/wordpress/wordpress-plugins/display-categories-widget/ 6 Version: 3. 06 Version: 3.1 7 7 Author: Suresh Baskaran 8 8 License: GPL … … 212 212 echo $before_widget; 213 213 $title = empty($instance['title']) ? ' ' : apply_filters('widget_title', $instance['title']); 214 $cat_id = $instance['category'] ? ?0;215 $dcw_limit = $instance['dcw_limit'] ? ?'Categories';216 $dcw_option_name = $instance['dcw_option_name'] ? ?'';217 $dcw_exclude = $instance['dcw_exclude'] ? ?'';218 $dcw_depth = $instance['dcw_depth'] ? ?0;219 $display_empty_categories = $instance['display_empty_categories'] ? ?0;220 $showcount_value = $instance['showcount_value'] ? ?0;221 $use_desc_for_title = $instance['use_desc_for_title'] ? ?0;222 $sort_order_by = $instance['sort_order_by'] ? ?'name';223 $sort_order_as = $instance['sort_order_as'] ? ?'ASC';224 $show_format = $instance['show_format'] ? ?0;225 $dcw_column = $instance['dcw_column'] ? ?1;226 $dcw_display_parent = $instance['display_parent'] ??0;214 $cat_id = $instance['category'] ? $instance['category'] : 0; 215 $dcw_limit = $instance['dcw_limit'] ? $instance['dcw_limit'] : 'Categories'; 216 $dcw_option_name = $instance['dcw_option_name'] ? $instance['dcw_option_name'] : ''; 217 $dcw_exclude = $instance['dcw_exclude'] ? $instance['dcw_exclude'] : ''; 218 $dcw_depth = $instance['dcw_depth'] ? $instance['dcw_depth'] : 0; 219 $display_empty_categories = $instance['display_empty_categories'] ? $instance['display_empty_categories'] : 0; 220 $showcount_value = $instance['showcount_value'] ? $instance['showcount_value'] : 0; 221 $use_desc_for_title = $instance['use_desc_for_title'] ? $instance['use_desc_for_title'] : 0; 222 $sort_order_by = $instance['sort_order_by'] ? $instance['sort_order_by'] : 'name'; 223 $sort_order_as = $instance['sort_order_as'] ? $instance['sort_order_as'] : 'ASC'; 224 $show_format = $instance['show_format'] ? $instance['show_format'] : 0; 225 $dcw_column = $instance['dcw_column'] ? $instance['dcw_column'] : 1; 226 $dcw_display_parent = $instance['display_parent'] ? $instance['display_parent'] : 0; 227 227 228 228 if (!empty($title)) echo $before_title . $title . $after_title; -
display-categories-widget/trunk/readme.txt
r2123402 r2185113 4 4 Tags: categories, widget, list categories, hide categories, select categories, level, Post categories, Categories display, categories widget, categories drop down 5 5 Requires at least: 5.0 6 Tested up to: 5.2. 27 Stable tag: 3. 06 Tested up to: 5.2.4 7 Stable tag: 3.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 60 60 Check if you have entered the category id's and not the category names. 61 61 62 = Will this plugin work for PHP version 5.6? = 63 64 Yes, this plugin will work for PHP5.6 and if you face any parse errors , please report in support section forum. 65 62 66 == Screenshots == 63 67 … … 67 71 68 72 == Changelog == 73 74 = 3.1 = 75 * Fixed warning for php 5.6 (Ternary operator updated) - Fixed: PHP Parse error: syntax error, unexpected ‘?’ 69 76 70 77 = 3.0 =
Note: See TracChangeset
for help on using the changeset viewer.