YITH WooCommerce Ajax Product Filter - Version 2.9.1

Version Description

  • Released: May 04, 2016 =

  • Fixed: $class variable are not defined

  • Fixed: Filter by list-attribute doesn't works in versio 2.9.0

Download this release

Release Info

Developer yithemes
Plugin Icon 128x128 YITH WooCommerce Ajax Product Filter
Version 2.9.1
Comparing to
See all releases

Code changes from version 2.9.0 to 2.9.1

README.txt CHANGED
@@ -4,7 +4,7 @@ Contributors: yithemes
4
Tags: woocommerce ajax product filter download, 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.5.1
7
- Stable tag: 2.9.0
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
@@ -159,6 +159,11 @@ If you want to see a demonstration version of the premium plugin, you can see it
159
160
== Changelog ==
161
162
= 2.9.0 - Released: May 02, 2016 =
163
164
* Fixed: Filtering issue with YITH WooCommerce Brands Add-on Premium
4
Tags: woocommerce ajax product filter download, 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.5.1
7
+ Stable tag: 2.9.1
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
159
160
== Changelog ==
161
162
+ = 2.9.1 - Released: May 04, 2016 =
163
+
164
+ * Fixed: $class variable are not defined
165
+ * Fixed: Filter by list-attribute doesn't works in versio 2.9.0
166
+
167
= 2.9.0 - Released: May 02, 2016 =
168
169
* Fixed: Filtering issue with YITH WooCommerce Brands Add-on Premium
init.php CHANGED
@@ -3,10 +3,10 @@
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.9.0
7
* Author: YITHEMES
8
* Author URI: http://yithemes.com/
9
- * Text Domain: yith_wc_ajxnav
10
* Domain Path: /languages/
11
*
12
* @author Your Inspiration Themes
@@ -64,7 +64,7 @@ load_plugin_textdomain( 'yith-woocommerce-ajax-navigation', false, dirname( plug
64
! defined( 'YITH_WCAN' ) && define( 'YITH_WCAN', true );
65
! defined( 'YITH_WCAN_URL' ) && define( 'YITH_WCAN_URL', plugin_dir_url( __FILE__ ) );
66
! defined( 'YITH_WCAN_DIR' ) && define( 'YITH_WCAN_DIR', plugin_dir_path( __FILE__ ) );
67
- ! defined( 'YITH_WCAN_VERSION' ) && define( 'YITH_WCAN_VERSION', '2.9.0' );
68
! defined( 'YITH_WCAN_FREE_INIT') && define( 'YITH_WCAN_FREE_INIT', plugin_basename( __FILE__ ) );
69
! defined( 'YITH_WCAN_FILE' ) && define( 'YITH_WCAN_FILE', __FILE__ );
70
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.9.1
7
* Author: YITHEMES
8
* Author URI: http://yithemes.com/
9
+ * Text Domain: yith-woocommerce-ajax-navigation
10
* Domain Path: /languages/
11
*
12
* @author Your Inspiration Themes
64
! defined( 'YITH_WCAN' ) && define( 'YITH_WCAN', true );
65
! defined( 'YITH_WCAN_URL' ) && define( 'YITH_WCAN_URL', plugin_dir_url( __FILE__ ) );
66
! defined( 'YITH_WCAN_DIR' ) && define( 'YITH_WCAN_DIR', plugin_dir_path( __FILE__ ) );
67
+ ! defined( 'YITH_WCAN_VERSION' ) && define( 'YITH_WCAN_VERSION', '2.9.1' );
68
! defined( 'YITH_WCAN_FREE_INIT') && define( 'YITH_WCAN_FREE_INIT', plugin_basename( __FILE__ ) );
69
! defined( 'YITH_WCAN_FILE' ) && define( 'YITH_WCAN_FILE', __FILE__ );
70
plugin-fw/assets/css/yit-plugin-panel-sidebar.css CHANGED
@@ -20,8 +20,8 @@
20
right : 0;
21
}
22
23
- #yit-panel-sidebar.yith-panel-sidebar-hidden #yit-panel-sidebar-widgets-container{
24
- display: none;
25
}
26
27
.yit-panel-sidebar-widget-wrapper {
@@ -226,45 +226,56 @@ img.yit-panel-sidebar-widget-despacho-image {
226
227
#yit-panel-sidebar-membership-widget .yit-panel-sidebar-widget-content {
228
background : transparent url('../images/widgets/membership-bg.png') no-repeat;
229
- background-position : 100% 180%;
230
background-size : 50%;
231
}
232
233
#yit-panel-sidebar-membership-widget .membership-total-price {
234
font-size : 25px;
235
font-weight : 700;
236
- display : inline-block;
237
238
}
239
240
#yit-panel-sidebar-membership-widget .membership-offer-text {
241
- display : inline-block;
242
font-size : 10px;
243
text-transform : uppercase;
244
- width : 130px;
245
line-height : 14px;
246
}
247
248
#yit-panel-sidebar-membership-widget .membership-offer-text2 {
249
- display : inline-block;
250
font-size : 10px;
251
text-transform : uppercase;
252
- width : 36%;
253
text-align : right;
254
vertical-align : middle;
255
- margin : 17px 0;
256
}
257
258
#yit-panel-sidebar-membership-widget .membership-offer-sale-text {
259
- display : inline-block;
260
- font-size : 24px;
261
color : #ff6340;
262
text-transform : uppercase;
263
- width : 55%;
264
text-align : left;
265
vertical-align : middle;
266
- margin : 17px 0;
267
- font-weight : 700;
268
}
269
270
#yit-panel-sidebar-membership-widget .membership-buttons {
@@ -318,12 +329,12 @@ ul.yit-panel-sidebar-links-list li:before {
318
border-radius : 50%;
319
}
320
321
- #yit-panel-sidebar-action-hide:hover .yit-panel-sidebar-action-title{
322
- color: #000;
323
}
324
325
- #yit-panel-sidebar-action-hide:hover .yit-panel-sidebar-action-hide-icon{
326
- background: #000;
327
}
328
329
.hide-on-click .yit-panel-sidebar-action-hide-icon:before {
20
right : 0;
21
}
22
23
+ #yit-panel-sidebar.yith-panel-sidebar-hidden #yit-panel-sidebar-widgets-container {
24
+ display : none;
25
}
26
27
.yit-panel-sidebar-widget-wrapper {
226
227
#yit-panel-sidebar-membership-widget .yit-panel-sidebar-widget-content {
228
background : transparent url('../images/widgets/membership-bg.png') no-repeat;
229
+ background-position : 105% 160%;
230
background-size : 50%;
231
}
232
233
+ #yit-panel-sidebar-membership-widget .membership-row {
234
+ margin-bottom: 20px;
235
+ clear : both;
236
+ overflow: auto;
237
+ }
238
+
239
#yit-panel-sidebar-membership-widget .membership-total-price {
240
font-size : 25px;
241
font-weight : 700;
242
+ display : block;
243
+ width : 50%;
244
+ box-sizing : border-box;
245
+ float : left;
246
+ line-height : 37px;
247
248
}
249
250
#yit-panel-sidebar-membership-widget .membership-offer-text {
251
+ display : block;
252
font-size : 10px;
253
text-transform : uppercase;
254
+ width : 50%;
255
line-height : 14px;
256
+ box-sizing : border-box;
257
+ float : left;
258
}
259
260
#yit-panel-sidebar-membership-widget .membership-offer-text2 {
261
+ display : block;
262
font-size : 10px;
263
text-transform : uppercase;
264
text-align : right;
265
vertical-align : middle;
266
+ float : left;
267
}
268
269
#yit-panel-sidebar-membership-widget .membership-offer-sale-text {
270
+ display : block;
271
+ font-size : 22px;
272
color : #ff6340;
273
text-transform : uppercase;
274
text-align : left;
275
vertical-align : middle;
276
+ margin-left : 8px;
277
+ font-weight : 600;
278
+ float : left;
279
}
280
281
#yit-panel-sidebar-membership-widget .membership-buttons {
329
border-radius : 50%;
330
}
331
332
+ #yit-panel-sidebar-action-hide:hover .yit-panel-sidebar-action-title {
333
+ color : #000;
334
}
335
336
+ #yit-panel-sidebar-action-hide:hover .yit-panel-sidebar-action-hide-icon {
337
+ background : #000;
338
}
339
340
.hide-on-click .yit-panel-sidebar-action-hide-icon:before {
plugin-fw/init.php CHANGED
@@ -1,7 +1,7 @@
1
<?php
2
/**
3
* Framework Name: YIT Plugin Framework
4
- * Version: 2.9.22
5
* Author: Yithemes
6
* Text Domain: yith-plugin-fw
7
* Domain Path: /languages/
1
<?php
2
/**
3
* Framework Name: YIT Plugin Framework
4
+ * Version: 2.9.23
5
* Author: Yithemes
6
* Text Domain: yith-plugin-fw
7
* Domain Path: /languages/
plugin-fw/templates/panel/sidebar/widgets/widget-membership.php CHANGED
@@ -8,17 +8,22 @@
8
* http://www.gnu.org/licenses/gpl-3.0.txt
9
*/
10
11
- if ( ! defined( 'ABSPATH' ) ) {
12
- exit;
13
} // Exit if accessed directly
14
?>
15
16
<div class="membership-wrapper">
17
- <div class="membership-total-price">$10.000+</div>
18
- <div class="membership-offer-text">of themes and plugins for WooCommerce</div>
19
- <div class="membership-offer-text2">with a</div>
20
- <div class="membership-offer-sale-text">95% OFF</div>
21
<div class="membership-buttons">
22
- <a class="button green" href="//yithemes.com/themes/membership/annual-yithemes-club-subscription/" target="_blank">Discover More!</a>
23
</div>
24
</div>
8
* http://www.gnu.org/licenses/gpl-3.0.txt
9
*/
10
11
+ if ( !defined( 'ABSPATH' ) ) {
12
+ exit;
13
} // Exit if accessed directly
14
?>
15
16
<div class="membership-wrapper">
17
+ <div class="membership-row">
18
+ <div class="membership-total-price">$10.000+</div>
19
+ <div class="membership-offer-text">worth of themes<br/>and plugins<br/>for WooCommerce</div>
20
+ </div>
21
+ <div class="membership-row">
22
+ <div class="membership-offer-text2">on a</div>
23
+ <div class="membership-offer-sale-text">95% OFF DISCOUNT</div>
24
+ </div>
25
<div class="membership-buttons">
26
+ <a class="button green" href="//yithemes.com/themes/membership/annual-yithemes-club-subscription/"
27
+ target="_blank">Discover More!</a>
28
</div>
29
</div>
widgets/class.yith-wcan-navigation-widget.php CHANGED
@@ -866,13 +866,19 @@ if ( ! class_exists( 'YITH_WCAN_Navigation_Widget' ) ) {
866
$exclude = apply_filters( 'yith_wcan_exclude_terms', array(), $instance );
867
$include = apply_filters( 'yith_wcan_include_terms', array(), $instance );
868
$echo = false;
869
- if ( 'exclude' == $instance['tags_list_query'] ){
870
- $echo = ! in_array( $term->term_id, $exclude );
871
872
}
873
874
- elseif ( 'include' == $instance['tags_list_query'] ){
875
- $echo = in_array( $term->term_id, $include );
876
}
877
878
$filter_by_tags_hierarchical = ($terms_type_list == 'tags' && $instance['display'] == 'hierarchical');
@@ -999,10 +1005,10 @@ if ( ! class_exists( 'YITH_WCAN_Navigation_Widget' ) ) {
999
}
1000
1001
$check_for_current_widget = isset($_chosen_attributes[$taxonomy]) && is_array($_chosen_attributes[$taxonomy]['terms']) && in_array($term->term_id, $_chosen_attributes[$taxonomy]['terms']);
1002
1003
// Current Filter = this widget
1004
if (apply_filters('yith_wcan_list_type_current_widget_check', $check_for_current_widget, $current_filter, $display_type, $term_param)) {
1005
- $class = '';
1006
if (($terms_type_list == 'hierarchical' || ($terms_type_list == 'tags' && $instance['display'] == 'hierarchical'))) {
1007
$level_class = 'level-' . $level;
1008
if (yit_term_is_child($term)) {
@@ -1023,7 +1029,6 @@ if ( ! class_exists( 'YITH_WCAN_Navigation_Widget' ) ) {
1023
} else {
1024
1025
if (($terms_type_list == 'hierarchical' || $terms_type_list == 'tags')) {
1026
- $class = '';
1027
$level_class = 'level-' . $level;
1028
if (yit_term_is_child($term)) {
1029
866
$exclude = apply_filters( 'yith_wcan_exclude_terms', array(), $instance );
867
$include = apply_filters( 'yith_wcan_include_terms', array(), $instance );
868
$echo = false;
869
+
870
+ if( 'tags' == $instance['type'] ) {
871
+ if ( 'exclude' == $instance['tags_list_query'] ){
872
+ $echo = ! in_array( $term->term_id, $exclude );
873
+ }
874
875
+ elseif ( 'include' == $instance['tags_list_query'] ){
876
+ $echo = in_array( $term->term_id, $include );
877
+ }
878
}
879
880
+ else {
881
+ $echo = true;
882
}
883
884
$filter_by_tags_hierarchical = ($terms_type_list == 'tags' && $instance['display'] == 'hierarchical');
1005
}
1006
1007
$check_for_current_widget = isset($_chosen_attributes[$taxonomy]) && is_array($_chosen_attributes[$taxonomy]['terms']) && in_array($term->term_id, $_chosen_attributes[$taxonomy]['terms']);
1008
+ $class = '';
1009
1010
// Current Filter = this widget
1011
if (apply_filters('yith_wcan_list_type_current_widget_check', $check_for_current_widget, $current_filter, $display_type, $term_param)) {
1012
if (($terms_type_list == 'hierarchical' || ($terms_type_list == 'tags' && $instance['display'] == 'hierarchical'))) {
1013
$level_class = 'level-' . $level;
1014
if (yit_term_is_child($term)) {
1029
} else {
1030
1031
if (($terms_type_list == 'hierarchical' || $terms_type_list == 'tags')) {
1032
$level_class = 'level-' . $level;
1033
if (yit_term_is_child($term)) {
1034