AVH Extended Categories Widgets - Version 3.8.1

Version Description

Download this release

Release Info

Developer petervanderdoes
Plugin Icon wp plugin AVH Extended Categories Widgets
Version 3.8.1
Comparing to
See all releases

Code changes from version 3.8.0 to 3.8.1

3.6/class/avh-ec.core.php CHANGED
@@ -34,7 +34,7 @@ class AVH_EC_Core
34
  */
35
  $catgrp = & AVH_EC_Singleton::getInstance('AVH_EC_Category_Group');
36
 
37
- $this->version = '3.8.0';
38
  $this->comment = '<!-- AVH Extended Categories version ' . $this->version . ' | http://blog.avirtualhome.com/wordpress-plugins/ -->';
39
  $this->db_options_core = 'avhec';
40
  $this->db_options_tax_meta = 'avhec-tax_meta';
@@ -672,7 +672,7 @@ class AVHEC_Walker_Category extends Walker
672
  *
673
  * @param string $output
674
  * Passed by reference. Used to append additional content.
675
- * @param object $category
676
  * Category data object.
677
  * @param int $depth
678
  * Depth of category in reference to parents.
@@ -682,13 +682,13 @@ class AVHEC_Walker_Category extends Walker
682
  {
683
  extract($args);
684
 
685
- $cat_name = esc_attr($category->name);
686
- $cat_name = apply_filters('list_cats', $cat_name, $category);
687
- $link = '<div class="avhec-widget-line"><a href="' . get_category_link($category->term_id) . '" ';
688
- if ($use_desc_for_title == 0 || empty($category->description))
689
  $link .= 'title="' . sprintf(__('View all posts filed under %s'), $cat_name) . '"';
690
  else
691
- $link .= 'title="' . esc_attr(strip_tags(apply_filters('category_description', $category->description, $category))) . '"';
692
  $link .= '>';
693
  $link .= $cat_name . '</a>';
694
 
@@ -698,7 +698,7 @@ class AVHEC_Walker_Category extends Walker
698
  if (empty($feed_image))
699
  $link .= '(';
700
 
701
- $link .= '<a href="' . get_category_feed_link($category->term_id, $feed_type) . '"';
702
 
703
  if (empty($feed))
704
  $alt = ' alt="' . sprintf(__('Feed for all posts filed under %s'), $cat_name) . '"';
@@ -722,10 +722,10 @@ class AVHEC_Walker_Category extends Walker
722
  }
723
 
724
  if (isset($show_count) && $show_count)
725
- $link .= '<div class="avhec-widget-count"> (' . intval($category->count) . ')</div>';
726
 
727
  if (isset($show_date) && $show_date) {
728
- $link .= ' ' . gmdate('Y-m-d', $category->last_update_timestamp);
729
  }
730
 
731
  if (isset($current_category) && $current_category)
@@ -733,10 +733,10 @@ class AVHEC_Walker_Category extends Walker
733
 
734
  if ('list' == $args['style']) {
735
  $output .= "\t" . '<li';
736
- $class = 'cat-item cat-item-' . $category->term_id;
737
- if (isset($current_category) && $current_category && ($category->term_id == $current_category))
738
  $class .= ' current-cat';
739
- elseif (isset($_current_category) && $_current_category && ($category->term_id == $_current_category->parent))
740
  $class .= ' current-cat-parent';
741
  $output .= ' class="' . $class . '"';
742
  $output .= '>' . $link . '</div>' . "\n";
34
  */
35
  $catgrp = & AVH_EC_Singleton::getInstance('AVH_EC_Category_Group');
36
 
37
+ $this->version = '3.8.1';
38
  $this->comment = '<!-- AVH Extended Categories version ' . $this->version . ' | http://blog.avirtualhome.com/wordpress-plugins/ -->';
39
  $this->db_options_core = 'avhec';
40
  $this->db_options_tax_meta = 'avhec-tax_meta';
672
  *
673
  * @param string $output
674
  * Passed by reference. Used to append additional content.
675
+ * @param object $object
676
  * Category data object.
677
  * @param int $depth
678
  * Depth of category in reference to parents.
682
  {
683
  extract($args);
684
 
685
+ $cat_name = esc_attr($object->name);
686
+ $cat_name = apply_filters('list_cats', $cat_name, $object);
687
+ $link = '<div class="avhec-widget-line"><a href="' . get_category_link($object->term_id) . '" ';
688
+ if ($use_desc_for_title == 0 || empty($object->description))
689
  $link .= 'title="' . sprintf(__('View all posts filed under %s'), $cat_name) . '"';
690
  else
691
+ $link .= 'title="' . esc_attr(strip_tags(apply_filters('category_description', $object->description, $object))) . '"';
692
  $link .= '>';
693
  $link .= $cat_name . '</a>';
694
 
698
  if (empty($feed_image))
699
  $link .= '(';
700
 
701
+ $link .= '<a href="' . get_category_feed_link($object->term_id, $feed_type) . '"';
702
 
703
  if (empty($feed))
704
  $alt = ' alt="' . sprintf(__('Feed for all posts filed under %s'), $cat_name) . '"';
722
  }
723
 
724
  if (isset($show_count) && $show_count)
725
+ $link .= '<div class="avhec-widget-count"> (' . intval($object->count) . ')</div>';
726
 
727
  if (isset($show_date) && $show_date) {
728
+ $link .= ' ' . gmdate('Y-m-d', $object->last_update_timestamp);
729
  }
730
 
731
  if (isset($current_category) && $current_category)
733
 
734
  if ('list' == $args['style']) {
735
  $output .= "\t" . '<li';
736
+ $class = 'cat-item cat-item-' . $object->term_id;
737
+ if (isset($current_category) && $current_category && ($object->term_id == $current_category))
738
  $class .= ' current-cat';
739
+ elseif (isset($_current_category) && $_current_category && ($object->term_id == $_current_category->parent))
740
  $class .= ' current-cat-parent';
741
  $output .= ' class="' . $class . '"';
742
  $output .= '>' . $link . '</div>' . "\n";
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://blog.avirtualhome.com/wordpress-plugins/
4
  Tags: extended, categories, widget, top categories
5
  Requires at least: 2.3
6
  Tested up to: 3.6.1
7
- Stable tag: 3.8.0
8
 
9
  The AVH Extended Categories Widgets gives you three widgets for displaying categories.
10
  == Description ==
@@ -135,6 +135,9 @@ Whether Widget 2 shows Movie or Music depends on the creation order of groups. I
135
  None
136
 
137
  == Changelog ==
 
 
 
138
  = Version 3.8.0 =
139
  * Add support for WordPress 3.6
140
  * Dropped support for PHP4, from this version on it PHP 5 or higher.
4
  Tags: extended, categories, widget, top categories
5
  Requires at least: 2.3
6
  Tested up to: 3.6.1
7
+ Stable tag: 3.8.1
8
 
9
  The AVH Extended Categories Widgets gives you three widgets for displaying categories.
10
  == Description ==
135
  None
136
 
137
  == Changelog ==
138
+ = Version 3.8.1 =
139
+ * Category list doesn't show categories
140
+
141
  = Version 3.8.0 =
142
  * Add support for WordPress 3.6
143
  * Dropped support for PHP4, from this version on it PHP 5 or higher.
widget_extended_categories.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: AVH Extended Categories Widgets
4
  * Plugin URI: http://blog.avirtualhome.com/wordpress-plugins
5
  * Description: Replacement of the category widget to allow for greater customization of the category widget.
6
- * Version: 3.8.0
7
  * Author: Peter van der Does
8
  * Author URI: http://blog.avirtualhome.com/
9
  *
3
  * Plugin Name: AVH Extended Categories Widgets
4
  * Plugin URI: http://blog.avirtualhome.com/wordpress-plugins
5
  * Description: Replacement of the category widget to allow for greater customization of the category widget.
6
+ * Version: 3.8.1
7
  * Author: Peter van der Does
8
  * Author URI: http://blog.avirtualhome.com/
9
  *