Version Description
- Tweak: Support to PAAMAYIM NEKUDOTAYIM in PHP Version < 5.3
Download this release
Release Info
Developer | yithemes |
Plugin | YITH WooCommerce Ajax Product Filter |
Version | 2.1.1 |
Comparing to | |
See all releases |
Code changes from version 2.1.0 to 2.1.1
- README.txt +13 -1
- includes/class.yith-wcan.php +17 -9
- init.php +2 -2
- widgets/class.yith-wcan-navigation-widget.php +1 -1
README.txt
CHANGED
@@ -4,7 +4,7 @@ Contributors: yithemes
|
|
4 |
Tags: woocommerce, widget, ajax, ajax filtered nav, ajax navigation, ajax filtered navigation, woocommerce layered navigation, woocommerce layered nav, product filter, product filters, ajax product filter, woocommerce ajax product filter, woocommerce filters, sidebar filter, sidebar ajax filter, ajax price filter, price filter, product sorting, woocommerce filter, taxonomy filter, attribute filter, attributes filter, woocommerce product sort, ajax sort, woocommerce ajax product filter, advanced product filters, ajax product filters, filters, woocommerce ajax product filters, woocommerce product filters, woocommerce product filters, category filter, attribute filters, woocommerce products filter, woocommerce price filter, yit, yith, yithemes
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 4.2.3
|
7 |
-
Stable tag: 2.1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -76,6 +76,10 @@ add_filter( 'yith_wcan_ajax_frontend_classes', 'yith_wcan_frontend_classes' );
|
|
76 |
|
77 |
If you don't know which classes you should use, ask to the developer of your theme.
|
78 |
|
|
|
|
|
|
|
|
|
79 |
== Screenshots ==
|
80 |
|
81 |
1. Admin - Appearance -> Widget: Filter Widget List Style
|
@@ -89,6 +93,10 @@ If you don't know which classes you should use, ask to the developer of your the
|
|
89 |
|
90 |
== Changelog ==
|
91 |
|
|
|
|
|
|
|
|
|
92 |
= 2.1.0 =
|
93 |
|
94 |
* Added: Frontend classes option panel
|
@@ -203,6 +211,10 @@ Full documentation is available [here](http://yithemes.com/docs-plugins/yith_woo
|
|
203 |
|
204 |
== Upgrade notice ==
|
205 |
|
|
|
|
|
|
|
|
|
206 |
= 2.0.0 =
|
207 |
|
208 |
New plugin core added.
|
4 |
Tags: woocommerce, widget, ajax, ajax filtered nav, ajax navigation, ajax filtered navigation, woocommerce layered navigation, woocommerce layered nav, product filter, product filters, ajax product filter, woocommerce ajax product filter, woocommerce filters, sidebar filter, sidebar ajax filter, ajax price filter, price filter, product sorting, woocommerce filter, taxonomy filter, attribute filter, attributes filter, woocommerce product sort, ajax sort, woocommerce ajax product filter, advanced product filters, ajax product filters, filters, woocommerce ajax product filters, woocommerce product filters, woocommerce product filters, category filter, attribute filters, woocommerce products filter, woocommerce price filter, yit, yith, yithemes
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 4.2.3
|
7 |
+
Stable tag: 2.1.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
76 |
|
77 |
If you don't know which classes you should use, ask to the developer of your theme.
|
78 |
|
79 |
+
= PAAMAYIM NEKUDOTAYIM Error after update 2.1.0 =
|
80 |
+
|
81 |
+
After the update 2.1.0, some users are experiencing the error: "Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM". This is caused by the PHP version of your server that is older than the 5.3. To solve the issue, you just have to update the plugin to the version 2.1.1.
|
82 |
+
|
83 |
== Screenshots ==
|
84 |
|
85 |
1. Admin - Appearance -> Widget: Filter Widget List Style
|
93 |
|
94 |
== Changelog ==
|
95 |
|
96 |
+
= 2.1.1 =
|
97 |
+
|
98 |
+
* Tweak: Support to PAAMAYIM NEKUDOTAYIM in PHP Version < 5.3
|
99 |
+
|
100 |
= 2.1.0 =
|
101 |
|
102 |
* Added: Frontend classes option panel
|
211 |
|
212 |
== Upgrade notice ==
|
213 |
|
214 |
+
= 2.1.1 =
|
215 |
+
|
216 |
+
* Tweak: Support to PAAMAYIM NEKUDOTAYIM in PHP Version < 5.3
|
217 |
+
|
218 |
= 2.0.0 =
|
219 |
|
220 |
New plugin core added.
|
includes/class.yith-wcan.php
CHANGED
@@ -110,17 +110,25 @@ if ( ! class_exists( 'YITH_WCAN' ) ) {
|
|
110 |
* @return YITH_Vendors Main instance
|
111 |
* @author Andrea Grillo <andrea.grillo@yithemes.com>
|
112 |
*/
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
if
|
117 |
-
|
|
|
|
|
|
|
118 |
}
|
119 |
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
|
|
|
|
|
|
|
|
|
|
124 |
|
125 |
/**
|
126 |
* Load required files
|
110 |
* @return YITH_Vendors Main instance
|
111 |
* @author Andrea Grillo <andrea.grillo@yithemes.com>
|
112 |
*/
|
113 |
+
public static function instance() {
|
114 |
+
|
115 |
+
//Premium Class
|
116 |
+
if( class_exists( 'YITH_WCAN_Premium' ) ){
|
117 |
+
if( is_null( YITH_WCAN_Premium::$_instance ) ){
|
118 |
+
YITH_WCAN_Premium::$_instance = new YITH_WCAN_Premium();
|
119 |
+
}
|
120 |
+
return YITH_WCAN_Premium::$_instance;
|
121 |
}
|
122 |
|
123 |
+
// Base Class
|
124 |
+
else {
|
125 |
+
//Premium Class
|
126 |
+
if( is_null( YITH_WCAN::$_instance ) ){
|
127 |
+
YITH_WCAN::$_instance = new YITH_WCAN();
|
128 |
+
}
|
129 |
+
return YITH_WCAN::$_instance;
|
130 |
+
}
|
131 |
+
}
|
132 |
|
133 |
/**
|
134 |
* Load required files
|
init.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: YITH WooCommerce Ajax Product Filter
|
4 |
* Plugin URI: http://yithemes.com/
|
5 |
* Description: YITH WooCommerce Ajax Product Filter offers the perfect way to filter all the products of your shop.
|
6 |
-
* Version: 2.1.
|
7 |
* Author: yithemes
|
8 |
* Author URI: http://yithemes.com/
|
9 |
* Text Domain: yith_wc_ajxnav
|
@@ -65,7 +65,7 @@ if ( defined( 'YITH_WCAN_VERSION' ) ) {
|
|
65 |
! defined( 'YITH_WCAN' ) && define( 'YITH_WCAN', true );
|
66 |
! defined( 'YITH_WCAN_URL' ) && define( 'YITH_WCAN_URL', plugin_dir_url( __FILE__ ) );
|
67 |
! defined( 'YITH_WCAN_DIR' ) && define( 'YITH_WCAN_DIR', plugin_dir_path( __FILE__ ) );
|
68 |
-
! defined( 'YITH_WCAN_VERSION' ) && define( 'YITH_WCAN_VERSION', '2.1.
|
69 |
! defined( 'YITH_WCAN_FREE_INIT') && define( 'YITH_WCAN_FREE_INIT', plugin_basename( __FILE__ ) );
|
70 |
! defined( 'YITH_WCAN_FILE' ) && define( 'YITH_WCAN_FILE', __FILE__ );
|
71 |
|
3 |
* Plugin Name: YITH WooCommerce Ajax Product Filter
|
4 |
* Plugin URI: http://yithemes.com/
|
5 |
* Description: YITH WooCommerce Ajax Product Filter offers the perfect way to filter all the products of your shop.
|
6 |
+
* Version: 2.1.1
|
7 |
* Author: yithemes
|
8 |
* Author URI: http://yithemes.com/
|
9 |
* Text Domain: yith_wc_ajxnav
|
65 |
! defined( 'YITH_WCAN' ) && define( 'YITH_WCAN', true );
|
66 |
! defined( 'YITH_WCAN_URL' ) && define( 'YITH_WCAN_URL', plugin_dir_url( __FILE__ ) );
|
67 |
! defined( 'YITH_WCAN_DIR' ) && define( 'YITH_WCAN_DIR', plugin_dir_path( __FILE__ ) );
|
68 |
+
! defined( 'YITH_WCAN_VERSION' ) && define( 'YITH_WCAN_VERSION', '2.1.1' );
|
69 |
! defined( 'YITH_WCAN_FREE_INIT') && define( 'YITH_WCAN_FREE_INIT', plugin_basename( __FILE__ ) );
|
70 |
! defined( 'YITH_WCAN_FILE' ) && define( 'YITH_WCAN_FILE', __FILE__ );
|
71 |
|
widgets/class.yith-wcan-navigation-widget.php
CHANGED
@@ -588,7 +588,7 @@ if ( ! class_exists( 'YITH_WCAN_Navigation_Widget' ) ) {
|
|
588 |
|
589 |
$term_id = yit_wcan_localize_terms( $term->term_id, $taxonomy );
|
590 |
|
591 |
-
if ( $instance['colors'][$term_id]
|
592 |
$li_style = apply_filters( "{$args['widget_id']}-li_style", 'background-color:' . $instance['colors'][$term_id] . ';', $instance );
|
593 |
|
594 |
echo '<li ' . $class . '>';
|
588 |
|
589 |
$term_id = yit_wcan_localize_terms( $term->term_id, $taxonomy );
|
590 |
|
591 |
+
if ( ! empty( $instance['colors'][$term_id] ) ) {
|
592 |
$li_style = apply_filters( "{$args['widget_id']}-li_style", 'background-color:' . $instance['colors'][$term_id] . ';', $instance );
|
593 |
|
594 |
echo '<li ' . $class . '>';
|