AVH Extended Categories Widgets - Version 3.6.3

Version Description

Download this release

Release Info

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

Code changes from version 3.6.2 to 3.6.3

2.8/class/avh-ec.core.php CHANGED
@@ -27,7 +27,7 @@ class AVH_EC_Core
27
  */
28
  $catgrp = & AVH_EC_Singleton::getInstance('AVH_EC_Category_Group');
29
 
30
- $this->version = '3.6.2';
31
  $this->comment = '<!-- AVH Extended Categories version ' . $this->version . ' | http://blog.avirtualhome.com/wordpress-plugins/ -->';
32
  $this->db_options_core = 'avhec';
33
  $this->db_options_tax_meta = 'avhec-tax_meta';
27
  */
28
  $catgrp = & AVH_EC_Singleton::getInstance('AVH_EC_Category_Group');
29
 
30
+ $this->version = '3.6.3';
31
  $this->comment = '<!-- AVH Extended Categories version ' . $this->version . ' | http://blog.avirtualhome.com/wordpress-plugins/ -->';
32
  $this->db_options_core = 'avhec';
33
  $this->db_options_tax_meta = 'avhec-tax_meta';
3.3/class/avh-ec.core.php CHANGED
@@ -27,7 +27,7 @@ class AVH_EC_Core
27
  */
28
  $catgrp = & AVH_EC_Singleton::getInstance('AVH_EC_Category_Group');
29
 
30
- $this->version = '3.6.2';
31
  $this->comment = '<!-- AVH Extended Categories version ' . $this->version . ' | http://blog.avirtualhome.com/wordpress-plugins/ -->';
32
  $this->db_options_core = 'avhec';
33
  $this->db_options_tax_meta = 'avhec-tax_meta';
@@ -324,7 +324,15 @@ class AVH_EC_Core
324
  {
325
  $mywalker = new AVH_Walker_CategoryDropdown();
326
 
327
- $defaults = array ( 'show_option_all' => '', 'show_option_none' => '', 'orderby' => 'id', 'order' => 'ASC', 'show_last_update' => 0, 'show_count' => 0, 'hide_empty' => 1, 'child_of' => 0, 'exclude' => '', 'echo' => 1, 'selected' => 0, 'hierarchical' => 0, 'name' => 'cat', 'class' => 'postform', 'depth' => 0, 'tab_index' => 0, 'walker' => $mywalker );
 
 
 
 
 
 
 
 
328
 
329
  $defaults['selected'] = (is_category()) ? get_query_var('cat') : 0;
330
 
@@ -341,13 +349,14 @@ class AVH_EC_Core
341
  if ((int) $tab_index > 0)
342
  $tab_index_attribute = ' tabindex="' . $tab_index . '"';
343
 
344
- $categories = get_categories($r);
345
  $name = esc_attr($name);
346
  $class = esc_attr($class);
 
347
 
348
  $output = '';
349
  if (! empty($categories)) {
350
- $output = '<select name="' . $name . '" id="' . $name . '" class="' . $class . '" ' . $tab_index_attribute . '>' . "\n";
351
 
352
  if ($show_option_all) {
353
  $show_option_all = apply_filters('list_cats', $show_option_all);
27
  */
28
  $catgrp = & AVH_EC_Singleton::getInstance('AVH_EC_Category_Group');
29
 
30
+ $this->version = '3.6.3';
31
  $this->comment = '<!-- AVH Extended Categories version ' . $this->version . ' | http://blog.avirtualhome.com/wordpress-plugins/ -->';
32
  $this->db_options_core = 'avhec';
33
  $this->db_options_tax_meta = 'avhec-tax_meta';
324
  {
325
  $mywalker = new AVH_Walker_CategoryDropdown();
326
 
327
+ $defaults = array ( 'show_option_all' => '', 'show_option_none' => '',
328
+ 'orderby' => 'id', 'order' => 'ASC',
329
+ 'show_last_update' => 0, 'show_count' => 0,
330
+ 'hide_empty' => 1, 'child_of' => 0,
331
+ 'exclude' => '', 'echo' => 1,
332
+ 'selected' => 0, 'hierarchical' => 0,
333
+ 'name' => 'cat', 'class' => 'postform',
334
+ 'depth' => 0, 'tab_index' => 0,
335
+ 'walker' => $mywalker );
336
 
337
  $defaults['selected'] = (is_category()) ? get_query_var('cat') : 0;
338
 
349
  if ((int) $tab_index > 0)
350
  $tab_index_attribute = ' tabindex="' . $tab_index . '"';
351
 
352
+ $categories = get_terms( $taxonomy, $r );
353
  $name = esc_attr($name);
354
  $class = esc_attr($class);
355
+ $id = $id ? esc_attr( $id ) : $name;
356
 
357
  $output = '';
358
  if (! empty($categories)) {
359
+ $output = '<select name="' . $name . '" id="' . $id . '" class="' . $class . '" ' . $tab_index_attribute . '>' . "\n";
360
 
361
  if ($show_option_all) {
362
  $show_option_all = apply_filters('list_cats', $show_option_all);
3.3/class/avh-ec.widgets.php CHANGED
@@ -121,7 +121,7 @@ class WP_Widget_AVH_ExtendedCategories_Normal extends WP_Widget
121
  echo ' var ec_dropdown_' . $this->number . ' = document.getElementById("extended-categories-select-' . $this->number . '");' . "\n";
122
  echo ' function ec_onCatChange_' . $this->number . '() {' . "\n";
123
  echo ' if ( ec_dropdown_' . $this->number . '.options[ec_dropdown_' . $this->number . '.selectedIndex].value > 0 ) {' . "\n";
124
- echo ' location.href = "' . get_option('home') . '/?cat="+ec_dropdown_' . $this->number . '.options[ec_dropdown_' . $this->number . '.selectedIndex].value;' . "\n";
125
  echo ' }' . "\n";
126
  echo ' }' . "\n";
127
  echo ' ec_dropdown_' . $this->number . '.onchange = ec_onCatChange_' . $this->number . ';' . "\n";
121
  echo ' var ec_dropdown_' . $this->number . ' = document.getElementById("extended-categories-select-' . $this->number . '");' . "\n";
122
  echo ' function ec_onCatChange_' . $this->number . '() {' . "\n";
123
  echo ' if ( ec_dropdown_' . $this->number . '.options[ec_dropdown_' . $this->number . '.selectedIndex].value > 0 ) {' . "\n";
124
+ echo ' location.href = "' .home_url() . '/?cat="+ec_dropdown_' . $this->number . '.options[ec_dropdown_' . $this->number . '.selectedIndex].value;' . "\n";
125
  echo ' }' . "\n";
126
  echo ' }' . "\n";
127
  echo ' ec_dropdown_' . $this->number . '.onchange = ec_onCatChange_' . $this->number . ';' . "\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.3
7
- Stable tag: 3.6.2
8
 
9
  The AVH Extended Categories Widgets gives you three widgets for displaying categories.
10
  == Description ==
@@ -134,6 +134,9 @@ Whether Widget 2 shows Movie or Music depends on the creation order of groups. I
134
  None
135
 
136
  == Changelog ==
 
 
 
137
  = Version 3.6.2 =
138
  * Bugfix: Another problem related to WordPress prior 3.3
139
 
4
  Tags: extended, categories, widget, top categories
5
  Requires at least: 2.3
6
  Tested up to: 3.3
7
+ Stable tag: 3.6.3
8
 
9
  The AVH Extended Categories Widgets gives you three widgets for displaying categories.
10
  == Description ==
134
  None
135
 
136
  == Changelog ==
137
+ = Version 3.6.3 =
138
+ * Bugfix: Problem with url's on Windows platform.
139
+
140
  = Version 3.6.2 =
141
  * Bugfix: Another problem related to WordPress prior 3.3
142
 
widget-pre2.8.php CHANGED
@@ -9,7 +9,7 @@ function widget_extended_categories_init ()
9
 
10
  function widget_extended_categories ($args, $number = 1)
11
  {
12
- $version = '3.6.2';
13
  // Check for version
14
  require (ABSPATH . WPINC . '/version.php');
15
  if (version_compare($wp_version, '2.5.1', '<')) {
9
 
10
  function widget_extended_categories ($args, $number = 1)
11
  {
12
+ $version = '3.6.3';
13
  // Check for version
14
  require (ABSPATH . WPINC . '/version.php');
15
  if (version_compare($wp_version, '2.5.1', '<')) {
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.6.2
7
  Author: Peter van der Does
8
  Author URI: http://blog.avirtualhome.com/
9
 
@@ -30,7 +30,7 @@ require (ABSPATH . WPINC . '/version.php');
30
  $_avhec_version = (float) $wp_version;
31
 
32
  if ($_avhec_version >= 2.8) {
33
- $_avhec_abs_dir = pathinfo(__FILE__, PATHINFO_DIRNAME);
34
 
35
  require_once ($_avhec_abs_dir . '/libs/avh-registry.php');
36
  require_once ($_avhec_abs_dir . '/libs/avh-common.php');
@@ -47,8 +47,8 @@ if ($_avhec_version >= 2.8) {
47
  break;
48
  }
49
 
50
- $_avhec_dir = '/' . end(explode('/', $_avhec_abs_dir));
51
- $_avhec_url = plugins_url() . $_avhec_dir;
52
 
53
  define('AVHEC_PLUGIN_DIR', $_avhec_abs_dir);
54
  define('AVHEC_RELATIVE_PLUGIN_DIR', $_avhec_dir);
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.6.3
7
  Author: Peter van der Does
8
  Author URI: http://blog.avirtualhome.com/
9
 
30
  $_avhec_version = (float) $wp_version;
31
 
32
  if ($_avhec_version >= 2.8) {
33
+ $_avhec_abs_dir = dirname(__FILE__);
34
 
35
  require_once ($_avhec_abs_dir . '/libs/avh-registry.php');
36
  require_once ($_avhec_abs_dir . '/libs/avh-common.php');
47
  break;
48
  }
49
 
50
+ $_avhec_dir = basename($_avhec_abs_dir);
51
+ $_avhec_url = plugins_url() . '/'. $_avhec_dir;
52
 
53
  define('AVHEC_PLUGIN_DIR', $_avhec_abs_dir);
54
  define('AVHEC_RELATIVE_PLUGIN_DIR', $_avhec_dir);