Version Description
- Enhancement - Deprecated Filters: Custom Class option for buttons
- Fix - Deprecated Filters: Price Slider
- Fix - PHP Warning for older PHP
Download this release
Release Info
Developer | RazyRx |
Plugin | Advanced AJAX Product Filters |
Version | 1.5.0.5 |
Comparing to | |
See all releases |
Code changes from version 1.5.0.4 to 1.5.0.5
- addons/deprecated_filters/display_filter/reset_button.php +2 -1
- addons/deprecated_filters/display_filter/selected_area.php +2 -0
- addons/deprecated_filters/display_filter/update_button.php +3 -1
- addons/deprecated_filters/display_widget.php +1 -1
- addons/deprecated_filters/filter_post.php +5 -5
- includes/addons/woocommerce-variation.php +2 -0
- readme.txt +6 -1
- templates/old_templates/widget_reset_button.php +1 -1
- templates/old_templates/widget_selected_area.php +1 -1
- templates/old_templates/widget_update_button.php +1 -1
- woocommerce-filters.php +2 -2
addons/deprecated_filters/display_filter/reset_button.php
CHANGED
@@ -16,7 +16,8 @@ class BeRocket_AAPF_display_filters_reset_button_type extends BeRocket_AAPF_disp
|
|
16 |
$set_query_var_title = array(
|
17 |
'title' => $additional['options']['title'],
|
18 |
'uo' => br_aapf_converter_styles( (empty($br_options['styles']) ? NULL : $br_options['styles']) ),
|
19 |
-
'is_hide_mobile' => ( empty($additional['options']['is_hide_mobile']) ? '' : $additional['options']['is_hide_mobile'] )
|
|
|
20 |
);
|
21 |
set_query_var( 'berocket_query_var_title', $set_query_var_title );
|
22 |
ob_start();
|
16 |
$set_query_var_title = array(
|
17 |
'title' => $additional['options']['title'],
|
18 |
'uo' => br_aapf_converter_styles( (empty($br_options['styles']) ? NULL : $br_options['styles']) ),
|
19 |
+
'is_hide_mobile' => ( empty($additional['options']['is_hide_mobile']) ? '' : $additional['options']['is_hide_mobile'] ),
|
20 |
+
'custom_css' => berocket_isset($css_class),
|
21 |
);
|
22 |
set_query_var( 'berocket_query_var_title', $set_query_var_title );
|
23 |
ob_start();
|
addons/deprecated_filters/display_filter/selected_area.php
CHANGED
@@ -15,6 +15,7 @@ class BeRocket_AAPF_display_filters_selected_area_type extends BeRocket_AAPF_dis
|
|
15 |
parent::init();
|
16 |
}
|
17 |
public static function return_html($html, $additional) {
|
|
|
18 |
$br_options = self::get_option();
|
19 |
$style = br_get_value_from_array($additional, array('args', 'widget_inline_style'));
|
20 |
$set_query_var_title = array(
|
@@ -25,6 +26,7 @@ class BeRocket_AAPF_display_filters_selected_area_type extends BeRocket_AAPF_dis
|
|
25 |
'hide_selected_arrow' => $additional['options']['hide_selected_arrow'],
|
26 |
'selected_is_hide' => $additional['options']['selected_is_hide'],
|
27 |
'style' => $style,
|
|
|
28 |
);
|
29 |
set_query_var( 'berocket_query_var_title', $set_query_var_title );
|
30 |
ob_start();
|
15 |
parent::init();
|
16 |
}
|
17 |
public static function return_html($html, $additional) {
|
18 |
+
extract($additional['options']);
|
19 |
$br_options = self::get_option();
|
20 |
$style = br_get_value_from_array($additional, array('args', 'widget_inline_style'));
|
21 |
$set_query_var_title = array(
|
26 |
'hide_selected_arrow' => $additional['options']['hide_selected_arrow'],
|
27 |
'selected_is_hide' => $additional['options']['selected_is_hide'],
|
28 |
'style' => $style,
|
29 |
+
'custom_css' => berocket_isset($css_class),
|
30 |
);
|
31 |
set_query_var( 'berocket_query_var_title', $set_query_var_title );
|
32 |
ob_start();
|
addons/deprecated_filters/display_filter/update_button.php
CHANGED
@@ -11,11 +11,13 @@ class BeRocket_AAPF_display_filters_update_button_type extends BeRocket_AAPF_dis
|
|
11 |
parent::init();
|
12 |
}
|
13 |
public static function return_html($html, $additional) {
|
|
|
14 |
$br_options = self::get_option();
|
15 |
$set_query_var_title = array(
|
16 |
'title' => $additional['options']['title'],
|
17 |
'uo' => br_aapf_converter_styles( (empty($br_options['styles']) ? NULL : $br_options['styles']) ),
|
18 |
-
'is_hide_mobile' => ( empty($additional['options']['is_hide_mobile']) ? '' : $additional['options']['is_hide_mobile'] )
|
|
|
19 |
);
|
20 |
set_query_var( 'berocket_query_var_title', $set_query_var_title );
|
21 |
ob_start();
|
11 |
parent::init();
|
12 |
}
|
13 |
public static function return_html($html, $additional) {
|
14 |
+
extract($additional['options']);
|
15 |
$br_options = self::get_option();
|
16 |
$set_query_var_title = array(
|
17 |
'title' => $additional['options']['title'],
|
18 |
'uo' => br_aapf_converter_styles( (empty($br_options['styles']) ? NULL : $br_options['styles']) ),
|
19 |
+
'is_hide_mobile' => ( empty($additional['options']['is_hide_mobile']) ? '' : $additional['options']['is_hide_mobile'] ),
|
20 |
+
'custom_css' => berocket_isset($css_class),
|
21 |
);
|
22 |
set_query_var( 'berocket_query_var_title', $set_query_var_title );
|
23 |
ob_start();
|
addons/deprecated_filters/display_widget.php
CHANGED
@@ -645,7 +645,7 @@ class BeRocket_AAPF_Widget {
|
|
645 |
$set_query_var_title['number_style'] = '';
|
646 |
}
|
647 |
}
|
648 |
-
$set_query_var_title = apply_filters('
|
649 |
set_query_var( 'berocket_query_var_title', $set_query_var_title);
|
650 |
br_get_template_part( 'old_templates/'.apply_filters('berocket_widget_load_template_name', $type, $instance, (empty($terms) ? '' : $terms)) );
|
651 |
|
645 |
$set_query_var_title['number_style'] = '';
|
646 |
}
|
647 |
}
|
648 |
+
$set_query_var_title = apply_filters('berocket_query_var_title_before_widget_deprecated', $set_query_var_title, $type, $instance, $args, $terms);
|
649 |
set_query_var( 'berocket_query_var_title', $set_query_var_title);
|
650 |
br_get_template_part( 'old_templates/'.apply_filters('berocket_widget_load_template_name', $type, $instance, (empty($terms) ? '' : $terms)) );
|
651 |
|
addons/deprecated_filters/filter_post.php
CHANGED
@@ -545,11 +545,6 @@ if( ! empty($instance['version']) ) {
|
|
545 |
<label class="br_admin_center" style="text-align: left;" for="<?php echo 'description'; ?>"><?php _e('Description', 'BeRocket_AJAX_domain') ?></label>
|
546 |
<textarea style="resize: none; width: 100%;" id="<?php echo 'description'; ?>" name="<?php echo $post_name.'[description]'; ?>"><?php echo $instance['description']; ?></textarea>
|
547 |
</div>
|
548 |
-
<div>
|
549 |
-
<label class="br_admin_center" style="text-align: left;" for="<?php echo 'css_class'; ?>"><?php _e('CSS Class', 'BeRocket_AJAX_domain') ?> </label>
|
550 |
-
<input id="<?php echo 'css_class'; ?>" type="text" name="<?php echo $post_name.'[css_class]'; ?>" value="<?php echo $instance['css_class']; ?>" class="berocket_aapf_widget_admin_css_class_input br_admin_full_size" />
|
551 |
-
<small class="br_admin_center" style="font-size: 1em;"><?php _e('(use white space for multiple classes)', 'BeRocket_AJAX_domain') ?></small>
|
552 |
-
</div>
|
553 |
<?php echo br_get_value_from_array($instance, 'filter_type_attribute'); ?>
|
554 |
<div class="berocket_aapf_widget_admin_tag_cloud_block" <?php if ($instance['type'] != 'tag_cloud') echo 'style="display:none;"' ?>>
|
555 |
<div>
|
@@ -702,6 +697,11 @@ if( ! empty($instance['version']) ) {
|
|
702 |
<option <?php if ( $instance['reset_hide'] == 'berocket_no_filters berocket_not_selected' ) echo 'selected'; ?> value="berocket_no_filters berocket_not_selected"><?php _e('Hide when no filters on page or page not filtered', 'BeRocket_AJAX_domain'); ?></option>
|
703 |
</select>
|
704 |
</div>
|
|
|
|
|
|
|
|
|
|
|
705 |
<script>
|
706 |
if( typeof(br_widget_set) == 'function' )
|
707 |
br_widget_set();
|
545 |
<label class="br_admin_center" style="text-align: left;" for="<?php echo 'description'; ?>"><?php _e('Description', 'BeRocket_AJAX_domain') ?></label>
|
546 |
<textarea style="resize: none; width: 100%;" id="<?php echo 'description'; ?>" name="<?php echo $post_name.'[description]'; ?>"><?php echo $instance['description']; ?></textarea>
|
547 |
</div>
|
|
|
|
|
|
|
|
|
|
|
548 |
<?php echo br_get_value_from_array($instance, 'filter_type_attribute'); ?>
|
549 |
<div class="berocket_aapf_widget_admin_tag_cloud_block" <?php if ($instance['type'] != 'tag_cloud') echo 'style="display:none;"' ?>>
|
550 |
<div>
|
697 |
<option <?php if ( $instance['reset_hide'] == 'berocket_no_filters berocket_not_selected' ) echo 'selected'; ?> value="berocket_no_filters berocket_not_selected"><?php _e('Hide when no filters on page or page not filtered', 'BeRocket_AJAX_domain'); ?></option>
|
698 |
</select>
|
699 |
</div>
|
700 |
+
<div>
|
701 |
+
<h3><label class="br_admin_center" style="text-align: left;" for="<?php echo 'css_class'; ?>"><?php _e('CSS Class', 'BeRocket_AJAX_domain') ?> </label></h3>
|
702 |
+
<input id="<?php echo 'css_class'; ?>" type="text" name="<?php echo $post_name.'[css_class]'; ?>" value="<?php echo $instance['css_class']; ?>" class="berocket_aapf_widget_admin_css_class_input br_admin_full_size" />
|
703 |
+
<small class="br_admin_center" style="font-size: 1em;"><?php _e('(use white space for multiple classes)', 'BeRocket_AJAX_domain') ?></small>
|
704 |
+
</div>
|
705 |
<script>
|
706 |
if( typeof(br_widget_set) == 'function' )
|
707 |
br_widget_set();
|
includes/addons/woocommerce-variation.php
CHANGED
@@ -247,6 +247,8 @@ class BeRocket_AAPF_compat_woocommerce_variation {
|
|
247 |
if( ! empty($br_options['out_of_stock_variable_reload']) ) {
|
248 |
$new_post_terms = br_get_value_from_array($_POST,'terms');
|
249 |
$new_post_limits = br_get_value_from_array($_POST,'limits_arr');
|
|
|
|
|
250 |
if( is_array($new_post_terms) && count($new_post_terms) ) {
|
251 |
foreach($new_post_terms as $new_post_terms_i => $new_post_term) {
|
252 |
if( $new_post_term[0] == $taxonomy ) {
|
247 |
if( ! empty($br_options['out_of_stock_variable_reload']) ) {
|
248 |
$new_post_terms = br_get_value_from_array($_POST,'terms');
|
249 |
$new_post_limits = br_get_value_from_array($_POST,'limits_arr');
|
250 |
+
if( ! is_array($new_post_limits) ) $new_post_limits = array();
|
251 |
+
if( ! is_array($new_post_terms) ) $new_post_terms = array();
|
252 |
if( is_array($new_post_terms) && count($new_post_terms) ) {
|
253 |
foreach($new_post_terms as $new_post_terms_i => $new_post_term) {
|
254 |
if( $new_post_term[0] == $taxonomy ) {
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Donate link: https://berocket.com/product/woocommerce-ajax-products-filter?utm_s
|
|
5 |
Tags: filters, product filters, ajax product filters, ajax filter, ajax filter widget, color filter, size filter, product onsale filter, product preview, product category filter, product reset filter, product sort by filter, stock filter, product tag filter, price range filter, price box filter, advanced product filters, woocommerce filters, woocommerce product filters, woocommerce products filter, woocommerce ajax product filters, widget, plugin, woocommerce item filters, filters plugin, ajax filters plugin, filter woocommerce products, filter woocommerce products plugin, wc filters, wc filters products, wc products filters, wc ajax products filters, wc product filters, wc advanced product filters, woocommerce layered nav, woocommerce layered navigation, ajax filtered nav, ajax filtered navigation, price filter, ajax price filter, woocommerce product sorting, sidebar filter, sidebar ajax filter, taxonomy filter, category filter, attribute filter, attributes filter, woocommerce product sort, ajax products filter plugin for woocommerce, rocket, berocket, berocket woocommerce ajax products filter
|
6 |
Requires at least: 5.0
|
7 |
Tested up to: 5.4.2
|
8 |
-
Stable tag: 1.5.0.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -185,6 +185,11 @@ You can try this plugin's admin side [here](https://berocket.com/product/woocomm
|
|
185 |
|
186 |
== Changelog ==
|
187 |
|
|
|
|
|
|
|
|
|
|
|
188 |
= 1.5.0.4 =
|
189 |
* Enhancement - Additional JavaScript hook to override functions to hide/show filters
|
190 |
* Fix - Deprecated Filters: Design styles in incorrect place
|
5 |
Tags: filters, product filters, ajax product filters, ajax filter, ajax filter widget, color filter, size filter, product onsale filter, product preview, product category filter, product reset filter, product sort by filter, stock filter, product tag filter, price range filter, price box filter, advanced product filters, woocommerce filters, woocommerce product filters, woocommerce products filter, woocommerce ajax product filters, widget, plugin, woocommerce item filters, filters plugin, ajax filters plugin, filter woocommerce products, filter woocommerce products plugin, wc filters, wc filters products, wc products filters, wc ajax products filters, wc product filters, wc advanced product filters, woocommerce layered nav, woocommerce layered navigation, ajax filtered nav, ajax filtered navigation, price filter, ajax price filter, woocommerce product sorting, sidebar filter, sidebar ajax filter, taxonomy filter, category filter, attribute filter, attributes filter, woocommerce product sort, ajax products filter plugin for woocommerce, rocket, berocket, berocket woocommerce ajax products filter
|
6 |
Requires at least: 5.0
|
7 |
Tested up to: 5.4.2
|
8 |
+
Stable tag: 1.5.0.5
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
185 |
|
186 |
== Changelog ==
|
187 |
|
188 |
+
= 1.5.0.5 =
|
189 |
+
* Enhancement - Deprecated Filters: Custom Class option for buttons
|
190 |
+
* Fix - Deprecated Filters: Price Slider
|
191 |
+
* Fix - PHP Warning for older PHP
|
192 |
+
|
193 |
= 1.5.0.4 =
|
194 |
* Enhancement - Additional JavaScript hook to override functions to hide/show filters
|
195 |
* Fix - Deprecated Filters: Design styles in incorrect place
|
templates/old_templates/widget_reset_button.php
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
<?php extract($berocket_query_var_title); ?>
|
2 |
-
<div class="berocket_aapf_widget">
|
3 |
<input value="<?php echo berocket_isset($title) ?>" class="berocket_aapf_reset_button<?php if ( ! empty($is_hide_mobile) ) echo ' berocket_aapf_hide_mobile' ?>" type="button" />
|
4 |
</div>
|
1 |
<?php extract($berocket_query_var_title); ?>
|
2 |
+
<div class="berocket_aapf_widget<?php if( ! empty($custom_css) ) echo ' '.esc_html($custom_css); ?>">
|
3 |
<input value="<?php echo berocket_isset($title) ?>" class="berocket_aapf_reset_button<?php if ( ! empty($is_hide_mobile) ) echo ' berocket_aapf_hide_mobile' ?>" type="button" />
|
4 |
</div>
|
templates/old_templates/widget_selected_area.php
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
<?php extract($berocket_query_var_title); ?>
|
2 |
-
<div class="<?php echo ( ! empty($is_hooked) ? 'berocket_aapf_selected_area_hook' : 'berocket_aapf_widget-wrapper' ); ?> berocket_aapf_selected_area_block">
|
3 |
<?php if ( empty($is_hooked) ) { ?>
|
4 |
<div class="berocket_aapf_widget-title_div<?php if ( ! empty($is_hide_mobile) ) echo ' berocket_aapf_hide_mobile' ?>">
|
5 |
<?php if ( empty($hide_selected_arrow) ) { ?>
|
1 |
<?php extract($berocket_query_var_title); ?>
|
2 |
+
<div class="<?php echo ( ! empty($is_hooked) ? 'berocket_aapf_selected_area_hook' : 'berocket_aapf_widget-wrapper' ); ?> berocket_aapf_selected_area_block<?php if( ! empty($custom_css) ) echo ' '.esc_html($custom_css); ?>">
|
3 |
<?php if ( empty($is_hooked) ) { ?>
|
4 |
<div class="berocket_aapf_widget-title_div<?php if ( ! empty($is_hide_mobile) ) echo ' berocket_aapf_hide_mobile' ?>">
|
5 |
<?php if ( empty($hide_selected_arrow) ) { ?>
|
templates/old_templates/widget_update_button.php
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
<?php extract($berocket_query_var_title); ?>
|
2 |
-
<div class="berocket_aapf_widget">
|
3 |
<input value="<?php echo berocket_isset($title) ?>" class="berocket_aapf_widget_update_button<?php if ( ! empty($is_hide_mobile) ) echo ' berocket_aapf_hide_mobile' ?>" type="button" />
|
4 |
</div>
|
1 |
<?php extract($berocket_query_var_title); ?>
|
2 |
+
<div class="berocket_aapf_widget<?php if( ! empty($custom_css) ) echo ' '.esc_html($custom_css); ?>">
|
3 |
<input value="<?php echo berocket_isset($title) ?>" class="berocket_aapf_widget_update_button<?php if ( ! empty($is_hide_mobile) ) echo ' berocket_aapf_hide_mobile' ?>" type="button" />
|
4 |
</div>
|
woocommerce-filters.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Advanced AJAX Product Filters for WooCommerce
|
4 |
* Plugin URI: https://wordpress.org/plugins/woocommerce-ajax-filters/?utm_source=free_plugin&utm_medium=plugins&utm_campaign=ajax_filters
|
5 |
* Description: Unlimited AJAX products filters to make your shop perfect
|
6 |
-
* Version: 1.5.0.
|
7 |
* Author: BeRocket
|
8 |
* Requires at least: 5.0
|
9 |
* Author URI: https://berocket.com?utm_source=free_plugin&utm_medium=plugins&utm_campaign=ajax_filters
|
@@ -11,6 +11,6 @@
|
|
11 |
* Domain Path: /languages/
|
12 |
* WC tested up to: 4.2.2
|
13 |
*/
|
14 |
-
define( "BeRocket_AJAX_filters_version", '1.5.0.
|
15 |
define( "BeRocket_AJAX_filters_file", __FILE__ );
|
16 |
include_once('main.php');
|
3 |
* Plugin Name: Advanced AJAX Product Filters for WooCommerce
|
4 |
* Plugin URI: https://wordpress.org/plugins/woocommerce-ajax-filters/?utm_source=free_plugin&utm_medium=plugins&utm_campaign=ajax_filters
|
5 |
* Description: Unlimited AJAX products filters to make your shop perfect
|
6 |
+
* Version: 1.5.0.5
|
7 |
* Author: BeRocket
|
8 |
* Requires at least: 5.0
|
9 |
* Author URI: https://berocket.com?utm_source=free_plugin&utm_medium=plugins&utm_campaign=ajax_filters
|
11 |
* Domain Path: /languages/
|
12 |
* WC tested up to: 4.2.2
|
13 |
*/
|
14 |
+
define( "BeRocket_AJAX_filters_version", '1.5.0.5' );
|
15 |
define( "BeRocket_AJAX_filters_file", __FILE__ );
|
16 |
include_once('main.php');
|