Version Description
- Enhancement - Additional Tables compatibility with Polylang
- Enhancement - Better compatibility with Load More and Grid/List plugins
- Fix - Session start error for some admin pages
- Fix - Nice URL do not work after first save
- Fix - JavaScript errors in WordPress customization
- Fix - Multiple category/attribute values in WooCommerce shortcode
- Fix - Use unique class for color picker script
- Fix - Remove title from HTML5 PushState
- Fix - Group simple create from widget do not work
- Fix - Variable products with out of stock variation still visible if query uses post__in parameter
Download this release
Release Info
Developer | RazyRx |
Plugin | Advanced AJAX Product Filters |
Version | 1.4.1.5 |
Comparing to | |
See all releases |
Code changes from version 1.4.1.4 to 1.4.1.5
- addons/additional_tables/add_table.php +5 -0
- addons/deprecated_compat/widget.php +0 -4
- berocket/framework.php +2 -1
- berocket/framework_version.php +1 -1
- berocket/includes/custom_post/sortable.php +2 -2
- css/admin.css +4 -4
- css/brjsf.css +2 -2
- css/widget.css +1 -1
- includes/widget_functions.php +6 -1
- js/admin.js +16 -14
- js/widget.min.js +5 -5
- main.php +25 -22
- readme.txt +13 -1
- templates/color_ajax.php +5 -5
- templates/filter_post.php +1 -1
- templates/filters_group_simple.php +1 -1
- templates/settings/design.php +28 -28
- woocommerce-filters.php +3 -3
addons/additional_tables/add_table.php
CHANGED
@@ -305,6 +305,7 @@ class BeRocket_aapf_variations_tables {
|
|
305 |
return $terms;
|
306 |
}
|
307 |
function get_terms_all($args) {
|
|
|
308 |
$languages = apply_filters('wpml_active_languages', array());
|
309 |
$wpml_active_languages = apply_filters('wpml_current_language', NULL);
|
310 |
if( is_array($languages) && count($languages) && $wpml_active_languages != NULL ) {
|
@@ -317,6 +318,10 @@ class BeRocket_aapf_variations_tables {
|
|
317 |
}
|
318 |
}
|
319 |
do_action( 'wpml_switch_language', $wpml_active_languages );
|
|
|
|
|
|
|
|
|
320 |
} else {
|
321 |
$terms = get_terms($args);
|
322 |
}
|
305 |
return $terms;
|
306 |
}
|
307 |
function get_terms_all($args) {
|
308 |
+
//WPML Compatibility Part
|
309 |
$languages = apply_filters('wpml_active_languages', array());
|
310 |
$wpml_active_languages = apply_filters('wpml_current_language', NULL);
|
311 |
if( is_array($languages) && count($languages) && $wpml_active_languages != NULL ) {
|
318 |
}
|
319 |
}
|
320 |
do_action( 'wpml_switch_language', $wpml_active_languages );
|
321 |
+
} elseif( function_exists('pll_current_language') ) {
|
322 |
+
//Polylang Compatibility Part
|
323 |
+
$args['lang'] = '';
|
324 |
+
$terms = get_terms($args);
|
325 |
} else {
|
326 |
$terms = get_terms($args);
|
327 |
}
|
addons/deprecated_compat/widget.php
CHANGED
@@ -1654,12 +1654,8 @@ class BeRocket_AAPF_Widget extends WP_Widget {
|
|
1654 |
function form( $instance ) {
|
1655 |
$BeRocket_AAPF = BeRocket_AAPF::getInstance();
|
1656 |
$BeRocket_AAPF->register_admin_scripts();
|
1657 |
-
wp_enqueue_script( 'berocket_aapf_widget-admin-colorpicker', plugins_url( '../js/colpick.js', __FILE__ ), array( 'jquery' ), BeRocket_AJAX_filters_version );
|
1658 |
wp_enqueue_script( 'berocket_aapf_widget-admin' );
|
1659 |
|
1660 |
-
wp_register_style( 'berocket_aapf_widget-colorpicker-style', plugins_url( '../css/colpick.css', __FILE__ ), "", BeRocket_AJAX_filters_version );
|
1661 |
-
wp_enqueue_style( 'berocket_aapf_widget-colorpicker-style' );
|
1662 |
-
|
1663 |
wp_register_style( 'berocket_aapf_widget-style-admin', plugins_url('../css/admin.css', __FILE__), "", BeRocket_AJAX_filters_version );
|
1664 |
wp_enqueue_style( 'berocket_aapf_widget-style-admin' );
|
1665 |
|
1654 |
function form( $instance ) {
|
1655 |
$BeRocket_AAPF = BeRocket_AAPF::getInstance();
|
1656 |
$BeRocket_AAPF->register_admin_scripts();
|
|
|
1657 |
wp_enqueue_script( 'berocket_aapf_widget-admin' );
|
1658 |
|
|
|
|
|
|
|
1659 |
wp_register_style( 'berocket_aapf_widget-style-admin', plugins_url('../css/admin.css', __FILE__), "", BeRocket_AJAX_filters_version );
|
1660 |
wp_enqueue_style( 'berocket_aapf_widget-style-admin' );
|
1661 |
|
berocket/framework.php
CHANGED
@@ -35,7 +35,7 @@ if( ! class_exists( 'BeRocket_Framework' ) ) {
|
|
35 |
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
|
36 |
load_plugin_textdomain('BeRocket_domain', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/');
|
37 |
class BeRocket_Framework {
|
38 |
-
public static $framework_version = '2.5.5.
|
39 |
public static $settings_name = '';
|
40 |
public $addons;
|
41 |
public $libraries;
|
@@ -956,6 +956,7 @@ if( ! class_exists( 'BeRocket_Framework' ) ) {
|
|
956 |
public function sanitize_option( $input ) {
|
957 |
$new_input = $this->recursive_array_set( $this->cc->defaults, $input );
|
958 |
$new_input = berocket_sanitize_array($new_input);
|
|
|
959 |
return apply_filters('brfr_sanitize_option_' . $this->cc->info[ 'plugin_name' ], $new_input, $input, $this->cc->defaults);
|
960 |
}
|
961 |
|
35 |
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
|
36 |
load_plugin_textdomain('BeRocket_domain', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/');
|
37 |
class BeRocket_Framework {
|
38 |
+
public static $framework_version = '2.5.5.4';
|
39 |
public static $settings_name = '';
|
40 |
public $addons;
|
41 |
public $libraries;
|
956 |
public function sanitize_option( $input ) {
|
957 |
$new_input = $this->recursive_array_set( $this->cc->defaults, $input );
|
958 |
$new_input = berocket_sanitize_array($new_input);
|
959 |
+
wp_cache_delete( $this->cc->values[ 'settings_name' ], 'berocket_framework_option' );
|
960 |
return apply_filters('brfr_sanitize_option_' . $this->cc->info[ 'plugin_name' ], $new_input, $input, $this->cc->defaults);
|
961 |
}
|
962 |
|
berocket/framework_version.php
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
<?php
|
2 |
-
$framework_version_current = '2.5.5.
|
3 |
if( version_compare($framework_version_current, $framework_version, '>') ) {
|
4 |
$framework_version = $framework_version_current;
|
5 |
$framework_dir = __DIR__;
|
1 |
<?php
|
2 |
+
$framework_version_current = '2.5.5.4';
|
3 |
if( version_compare($framework_version_current, $framework_version, '>') ) {
|
4 |
$framework_version = $framework_version_current;
|
5 |
$framework_dir = __DIR__;
|
berocket/includes/custom_post/sortable.php
CHANGED
@@ -58,7 +58,7 @@ if ( ! class_exists('BeRocket_custom_post_sortable_addon_class') ) {
|
|
58 |
}
|
59 |
}
|
60 |
public function sortable_get_custom_post($args) {
|
61 |
-
if( is_admin() ) {
|
62 |
$posts_not_ordered = new WP_Query($args);
|
63 |
$posts_not_ordered = $posts_not_ordered->posts;
|
64 |
}
|
@@ -67,7 +67,7 @@ if ( ! class_exists('BeRocket_custom_post_sortable_addon_class') ) {
|
|
67 |
'orderby' => 'meta_value_num',
|
68 |
'order' => 'ASC',
|
69 |
));
|
70 |
-
if( is_admin() ) {
|
71 |
$posts_ordered = new WP_Query($args);
|
72 |
$posts_ordered = $posts_ordered->posts;
|
73 |
$posts_fix = array_diff($posts_not_ordered, $posts_ordered);
|
58 |
}
|
59 |
}
|
60 |
public function sortable_get_custom_post($args) {
|
61 |
+
if( is_admin() && $this->post_name == berocket_isset($_GET['post_type']) ) {
|
62 |
$posts_not_ordered = new WP_Query($args);
|
63 |
$posts_not_ordered = $posts_not_ordered->posts;
|
64 |
}
|
67 |
'orderby' => 'meta_value_num',
|
68 |
'order' => 'ASC',
|
69 |
));
|
70 |
+
if( is_admin() && $this->post_name == berocket_isset($_GET['post_type']) ) {
|
71 |
$posts_ordered = new WP_Query($args);
|
72 |
$posts_ordered = $posts_ordered->posts;
|
73 |
$posts_fix = array_diff($posts_not_ordered, $posts_ordered);
|
css/admin.css
CHANGED
@@ -4,15 +4,15 @@
|
|
4 |
.berocket_aapf_advanced_settings_subcategory{float: right;position: relative;top: 3px;}
|
5 |
.berocket_aapf_output_limitations{display: none;}
|
6 |
|
7 |
-
.
|
8 |
|
9 |
-
.
|
10 |
position: absolute;
|
11 |
top: 0;
|
12 |
right: 0;
|
13 |
text-shadow: 0px 0px 1px white, 0px 0px 1px white, 0px 0px 1px white, 0px 0px 1px white, 0px 0px 1px white;
|
14 |
}
|
15 |
-
td.
|
16 |
content: " ";
|
17 |
display: block;
|
18 |
position: absolute;
|
@@ -521,4 +521,4 @@ td.colorpicker_field.colorpicker_removed:after {
|
|
521 |
.berocket_group_is_hide_theme_option_slider div label img {
|
522 |
padding: 0;
|
523 |
margin: 0;
|
524 |
-
}
|
4 |
.berocket_aapf_advanced_settings_subcategory{float: right;position: relative;top: 3px;}
|
5 |
.berocket_aapf_output_limitations{display: none;}
|
6 |
|
7 |
+
.br_colorpicker_field{width: 30px; height: 30px; margin: 0 auto; border: 1px solid black; position: relative!important;}
|
8 |
|
9 |
+
.br_colorpicker_field .fa-times {
|
10 |
position: absolute;
|
11 |
top: 0;
|
12 |
right: 0;
|
13 |
text-shadow: 0px 0px 1px white, 0px 0px 1px white, 0px 0px 1px white, 0px 0px 1px white, 0px 0px 1px white;
|
14 |
}
|
15 |
+
td.br_colorpicker_field.colorpicker_removed:after {
|
16 |
content: " ";
|
17 |
display: block;
|
18 |
position: absolute;
|
521 |
.berocket_group_is_hide_theme_option_slider div label img {
|
522 |
padding: 0;
|
523 |
margin: 0;
|
524 |
+
}
|
css/brjsf.css
CHANGED
@@ -184,7 +184,7 @@ background-color: white;
|
|
184 |
.berocket_aapf_admin_search_box .brjsf_accord > .brjsf_accord_block label.br_admin_center {
|
185 |
top: 0;
|
186 |
}
|
187 |
-
.berocket_aapf_admin_search_box .br_accordion .
|
188 |
margin: 3px 0;
|
189 |
display: inline-block;
|
190 |
}
|
@@ -228,4 +228,4 @@ background-color: white;
|
|
228 |
}
|
229 |
.berocket_aapf_admin_search_box .br_search_box_attribute_block {
|
230 |
text-align: left;
|
231 |
-
}
|
184 |
.berocket_aapf_admin_search_box .brjsf_accord > .brjsf_accord_block label.br_admin_center {
|
185 |
top: 0;
|
186 |
}
|
187 |
+
.berocket_aapf_admin_search_box .br_accordion .br_colorpicker_field {
|
188 |
margin: 3px 0;
|
189 |
display: inline-block;
|
190 |
}
|
228 |
}
|
229 |
.berocket_aapf_admin_search_box .br_search_box_attribute_block {
|
230 |
text-align: left;
|
231 |
+
}
|
css/widget.css
CHANGED
@@ -856,7 +856,7 @@ ul.berocket_aapf_widget li.berocket_tag_cloud_element > span label
|
|
856 |
.berocket_child_parent_sample{
|
857 |
display: none;
|
858 |
}
|
859 |
-
.berocket_widget_color_pick .
|
860 |
width: 2em;
|
861 |
height: 2em;
|
862 |
border: 1px solid #333;
|
856 |
.berocket_child_parent_sample{
|
857 |
display: none;
|
858 |
}
|
859 |
+
.berocket_widget_color_pick .br_colorpicker_field{
|
860 |
width: 2em;
|
861 |
height: 2em;
|
862 |
border: 1px solid #333;
|
includes/widget_functions.php
CHANGED
@@ -801,7 +801,12 @@ class BeRocket_AAPF_Widget_functions {
|
|
801 |
ceil(apply_filters('berocket_price_filter_widget_max_amount', apply_filters('berocket_price_slider_widget_max_amount', apply_filters( 'woocommerce_price_filter_widget_max_amount', $query_string->max_price )), $query_string->max_price))
|
802 |
);
|
803 |
}
|
804 |
-
|
|
|
|
|
|
|
|
|
|
|
805 |
return apply_filters( 'berocket_aapf_get_price_range', $price_range );
|
806 |
}
|
807 |
|
801 |
ceil(apply_filters('berocket_price_filter_widget_max_amount', apply_filters('berocket_price_slider_widget_max_amount', apply_filters( 'woocommerce_price_filter_widget_max_amount', $query_string->max_price )), $query_string->max_price))
|
802 |
);
|
803 |
}
|
804 |
+
if( BeRocket_AAPF::$debug_mode ) {
|
805 |
+
BeRocket_AAPF::$error_log['7_price_range'] = array(
|
806 |
+
'price_range' => $price_range,
|
807 |
+
'sql' => $query_string,
|
808 |
+
);
|
809 |
+
}
|
810 |
return apply_filters( 'berocket_aapf_get_price_range', $price_range );
|
811 |
}
|
812 |
|
js/admin.js
CHANGED
@@ -23,7 +23,7 @@ var berocket_admin_filter_types_by_attr = {
|
|
23 |
$('.get_shortcode').click( function ( event ) {
|
24 |
event.preventDefault();
|
25 |
$form = $(this).parents('form');
|
26 |
-
var params = $( '.
|
27 |
var attr = $( '#berocket_sc_attribute' );
|
28 |
var type = $( '#berocket_sc_type' );
|
29 |
if ( params.length > 0 ) {
|
@@ -477,17 +477,19 @@ var berocket_admin_filter_types_by_attr = {
|
|
477 |
}
|
478 |
});
|
479 |
|
480 |
-
$('.
|
481 |
-
$(o).
|
482 |
-
|
483 |
-
|
484 |
-
|
485 |
-
|
486 |
-
|
487 |
-
|
488 |
-
|
489 |
-
|
490 |
-
|
|
|
|
|
491 |
});
|
492 |
|
493 |
$(document).on('click', '.theme_default', function (event) {
|
@@ -499,8 +501,8 @@ var berocket_admin_filter_types_by_attr = {
|
|
499 |
$(document).on('click', '.all_theme_default', function (event) {
|
500 |
event.preventDefault();
|
501 |
$table = $(this).parents('table');
|
502 |
-
$table.find('.
|
503 |
-
$table.find('.
|
504 |
$table.find('select').val("");
|
505 |
$table.find('input[type=text]').val("");
|
506 |
});
|
23 |
$('.get_shortcode').click( function ( event ) {
|
24 |
event.preventDefault();
|
25 |
$form = $(this).parents('form');
|
26 |
+
var params = $( '.br_colorpicker_field_input, .berocket_image_value' );
|
27 |
var attr = $( '#berocket_sc_attribute' );
|
28 |
var type = $( '#berocket_sc_type' );
|
29 |
if ( params.length > 0 ) {
|
477 |
}
|
478 |
});
|
479 |
|
480 |
+
$('.br_colorpicker_field').each(function (i,o){
|
481 |
+
if( typeof($(o).colpick) != 'undefined' ) {
|
482 |
+
$(o).css('backgroundColor', '#'+$(o).data('color'));
|
483 |
+
$(o).colpick({
|
484 |
+
layout: 'hex',
|
485 |
+
submit: 0,
|
486 |
+
color: '#'+$(o).data('color'),
|
487 |
+
onChange: function(hsb,hex,rgb,el,bySetColor) {
|
488 |
+
$(el).removeClass('colorpicker_removed');
|
489 |
+
$(el).css('backgroundColor', '#'+hex).next().val(hex).trigger('change');
|
490 |
+
}
|
491 |
+
})
|
492 |
+
}
|
493 |
});
|
494 |
|
495 |
$(document).on('click', '.theme_default', function (event) {
|
501 |
$(document).on('click', '.all_theme_default', function (event) {
|
502 |
event.preventDefault();
|
503 |
$table = $(this).parents('table');
|
504 |
+
$table.find('.br_colorpicker_field').css('backgroundColor', '#000000').colpickSetColor('#000000');
|
505 |
+
$table.find('.br_colorpicker_field').next().val('');
|
506 |
$table.find('select').val("");
|
507 |
$table.find('input[type=text]').val("");
|
508 |
});
|
js/widget.min.js
CHANGED
@@ -1289,8 +1289,8 @@ var berocket_aapf_widget_product_filters = [],
|
|
1289 |
return uri;
|
1290 |
} else {
|
1291 |
var stateParameters = { BeRocket: "Rules" };
|
1292 |
-
history.replaceState(stateParameters, "
|
1293 |
-
history.pushState(stateParameters, "
|
1294 |
history.pathname = uri;
|
1295 |
}
|
1296 |
}
|
@@ -2260,9 +2260,9 @@ load_hash_test();
|
|
2260 |
if(typeof($style) == 'undefined' ) {
|
2261 |
$style = '';
|
2262 |
}
|
2263 |
-
$style = $style.replace(/width:\s?(\d|\.)
|
2264 |
-
$style = $style.replace(/clear
|
2265 |
-
$style = $style.replace(/opacity
|
2266 |
$style = $style+'width:'+width_to_set+';';
|
2267 |
element_i++;
|
2268 |
if( element_i == every_clear ) {
|
1289 |
return uri;
|
1290 |
} else {
|
1291 |
var stateParameters = { BeRocket: "Rules" };
|
1292 |
+
history.replaceState(stateParameters, "");
|
1293 |
+
history.pushState(stateParameters, "", uri);
|
1294 |
history.pathname = uri;
|
1295 |
}
|
1296 |
}
|
2260 |
if(typeof($style) == 'undefined' ) {
|
2261 |
$style = '';
|
2262 |
}
|
2263 |
+
$style = $style.replace(/width:\s?(\d|\.)+%\s?!important;/g, '');
|
2264 |
+
$style = $style.replace(/clear:\s?both\s?!important;/g, '');
|
2265 |
+
$style = $style.replace(/opacity:\s?0\s?!important;/g, '');
|
2266 |
$style = $style+'width:'+width_to_set+';';
|
2267 |
element_i++;
|
2268 |
if( element_i == every_clear ) {
|
main.php
CHANGED
@@ -203,6 +203,11 @@ class BeRocket_AAPF extends BeRocket_Framework {
|
|
203 |
if ( ! function_exists('is_network_admin') || ! is_network_admin() ) {
|
204 |
if( $this->check_framework_version() ) {
|
205 |
if ( $this->init_validation() ) {
|
|
|
|
|
|
|
|
|
|
|
206 |
$last_version = get_option('br_filters_version');
|
207 |
if( $last_version === FALSE ) $last_version = 0;
|
208 |
if ( version_compare($last_version, BeRocket_AJAX_filters_version, '<') ) {
|
@@ -263,9 +268,6 @@ class BeRocket_AAPF extends BeRocket_Framework {
|
|
263 |
}
|
264 |
add_action('plugins_loaded', array($this, 'plugins_loaded'));
|
265 |
}
|
266 |
-
if ( ! empty($option['products_per_page']) && ! br_is_plugin_active( 'list-grid' ) && ! br_is_plugin_active( 'List_Grid' ) && ! br_is_plugin_active( 'more-products' ) && ! br_is_plugin_active( 'Load_More_Products' ) ) {
|
267 |
-
add_filter( 'loop_shop_per_page', array($this, 'products_per_page_set'), 9999 );
|
268 |
-
}
|
269 |
if( ! empty($option['products_only']) ) {
|
270 |
add_filter('woocommerce_is_filtered', array($this, 'woocommerce_is_filtered'));
|
271 |
}
|
@@ -359,10 +361,8 @@ class BeRocket_AAPF extends BeRocket_Framework {
|
|
359 |
wp_dequeue_style( 'font-awesome' );
|
360 |
}
|
361 |
global $wp_query;
|
362 |
-
if ( ! is_admin() ) {
|
363 |
-
|
364 |
-
session_start();
|
365 |
-
}
|
366 |
}
|
367 |
}
|
368 |
public function plugins_loaded() {
|
@@ -381,6 +381,10 @@ class BeRocket_AAPF extends BeRocket_Framework {
|
|
381 |
if( defined( 'WCJ_PLUGIN_FILE' ) ) {
|
382 |
include(plugin_dir_path( __FILE__ ) . "includes/compatibility/woojetpack.php");
|
383 |
}
|
|
|
|
|
|
|
|
|
384 |
}
|
385 |
public function register_admin_scripts(){
|
386 |
wp_enqueue_script( 'brjsf-ui');
|
@@ -389,7 +393,6 @@ class BeRocket_AAPF extends BeRocket_Framework {
|
|
389 |
}
|
390 |
public function admin_settings( $tabs_info = array(), $data = array() ) {
|
391 |
wp_enqueue_script( 'berocket_aapf_widget-admin' );
|
392 |
-
add_filter('brfr_data_ajax_filters', array($this, 'admin_settings_additional'));
|
393 |
parent::admin_settings(
|
394 |
array(
|
395 |
'General' => array(
|
@@ -964,12 +967,6 @@ class BeRocket_AAPF extends BeRocket_Framework {
|
|
964 |
)
|
965 |
);
|
966 |
}
|
967 |
-
public function admin_settings_additional($data) {
|
968 |
-
if ( br_is_plugin_active( 'list-grid' ) || br_is_plugin_active( 'List_Grid' ) || br_is_plugin_active( 'more-products' ) || br_is_plugin_active( 'Load_More_Products' ) ) {
|
969 |
-
unset($data['General']['products_per_page']);
|
970 |
-
}
|
971 |
-
return $data;
|
972 |
-
}
|
973 |
public function section_setup_wizard ( $item, $options ) {
|
974 |
$html = '';
|
975 |
if( apply_filters('br_filters_options-setup_wizard-show', true) ) {
|
@@ -1797,12 +1794,25 @@ jQuery(document).on('change', '.br_selected_area_show', br_selected_area_show);
|
|
1797 |
}
|
1798 |
$query_vars['post__not_in'] = array_merge($query_vars['post__not_in'], apply_filters('berocket_add_out_of_stock_variable', array(), $custom_terms, berocket_isset($_POST['limits_arr'])));
|
1799 |
$query_vars['post__in'] = apply_filters( 'loop_shop_post_in', $query_vars['post__in']);
|
|
|
1800 |
if ( br_woocommerce_version_check('3.6') && ! empty($_POST['price']) ) {
|
1801 |
$query_vars['berocket_price'] = $_POST['price'];
|
1802 |
}
|
1803 |
$query_vars['berocket_filtered'] = true;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1804 |
global $br_wc_query, $br_aapf_wc_footer_widget;
|
1805 |
-
$
|
|
|
|
|
|
|
|
|
1806 |
add_action( 'wp_footer', array( $this, 'wp_footer_widget'), 99999 );
|
1807 |
$br_aapf_wc_footer_widget = true;
|
1808 |
$query_vars = apply_filters('berocket_filters_query_vars_already_filtered', $query_vars, berocket_isset($_POST['terms']), berocket_isset($_POST['limits_arr']));
|
@@ -2790,13 +2800,6 @@ jQuery(document).on('change', '.br_selected_area_show', br_selected_area_show);
|
|
2790 |
}
|
2791 |
}
|
2792 |
}
|
2793 |
-
public function save_settings_callback( $settings ) {
|
2794 |
-
$options = $this->get_option();
|
2795 |
-
delete_option( 'rewrite_rules' );
|
2796 |
-
flush_rewrite_rules(true);
|
2797 |
-
|
2798 |
-
return parent::save_settings_callback( $settings );
|
2799 |
-
}
|
2800 |
}
|
2801 |
|
2802 |
new BeRocket_AAPF;
|
203 |
if ( ! function_exists('is_network_admin') || ! is_network_admin() ) {
|
204 |
if( $this->check_framework_version() ) {
|
205 |
if ( $this->init_validation() ) {
|
206 |
+
if(! empty($_GET['settings-updated']) ) {
|
207 |
+
wp_cache_delete($this->values[ 'settings_name' ], 'berocket_framework_option');
|
208 |
+
delete_option( 'rewrite_rules' );
|
209 |
+
flush_rewrite_rules();
|
210 |
+
}
|
211 |
$last_version = get_option('br_filters_version');
|
212 |
if( $last_version === FALSE ) $last_version = 0;
|
213 |
if ( version_compare($last_version, BeRocket_AJAX_filters_version, '<') ) {
|
268 |
}
|
269 |
add_action('plugins_loaded', array($this, 'plugins_loaded'));
|
270 |
}
|
|
|
|
|
|
|
271 |
if( ! empty($option['products_only']) ) {
|
272 |
add_filter('woocommerce_is_filtered', array($this, 'woocommerce_is_filtered'));
|
273 |
}
|
361 |
wp_dequeue_style( 'font-awesome' );
|
362 |
}
|
363 |
global $wp_query;
|
364 |
+
if ( ! is_admin() && ! wp_doing_cron() && ! wp_doing_ajax() && ! session_id() ) {
|
365 |
+
session_start();
|
|
|
|
|
366 |
}
|
367 |
}
|
368 |
public function plugins_loaded() {
|
381 |
if( defined( 'WCJ_PLUGIN_FILE' ) ) {
|
382 |
include(plugin_dir_path( __FILE__ ) . "includes/compatibility/woojetpack.php");
|
383 |
}
|
384 |
+
$option = $this->get_option();
|
385 |
+
if ( ! empty($option['products_per_page']) ) {
|
386 |
+
add_filter( 'loop_shop_per_page', array($this, 'products_per_page_set'), 9999 );
|
387 |
+
}
|
388 |
}
|
389 |
public function register_admin_scripts(){
|
390 |
wp_enqueue_script( 'brjsf-ui');
|
393 |
}
|
394 |
public function admin_settings( $tabs_info = array(), $data = array() ) {
|
395 |
wp_enqueue_script( 'berocket_aapf_widget-admin' );
|
|
|
396 |
parent::admin_settings(
|
397 |
array(
|
398 |
'General' => array(
|
967 |
)
|
968 |
);
|
969 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
970 |
public function section_setup_wizard ( $item, $options ) {
|
971 |
$html = '';
|
972 |
if( apply_filters('br_filters_options-setup_wizard-show', true) ) {
|
1794 |
}
|
1795 |
$query_vars['post__not_in'] = array_merge($query_vars['post__not_in'], apply_filters('berocket_add_out_of_stock_variable', array(), $custom_terms, berocket_isset($_POST['limits_arr'])));
|
1796 |
$query_vars['post__in'] = apply_filters( 'loop_shop_post_in', $query_vars['post__in']);
|
1797 |
+
$query_vars['post__in'] = array_diff($query_vars['post__in'], $query_vars['post__not_in']);
|
1798 |
if ( br_woocommerce_version_check('3.6') && ! empty($_POST['price']) ) {
|
1799 |
$query_vars['berocket_price'] = $_POST['price'];
|
1800 |
}
|
1801 |
$query_vars['berocket_filtered'] = true;
|
1802 |
+
$br_query_vars = $query_vars;
|
1803 |
+
foreach($br_query_vars['tax_query'] as $i => $tax_query_val) {
|
1804 |
+
if( ! empty($tax_query_val['taxonomy']) ) {
|
1805 |
+
$br_query_vars['tax_query'][$i] = array(
|
1806 |
+
$tax_query_val,
|
1807 |
+
);
|
1808 |
+
}
|
1809 |
+
}
|
1810 |
global $br_wc_query, $br_aapf_wc_footer_widget;
|
1811 |
+
$query_vars['tax_query'] = array(
|
1812 |
+
$query_vars['tax_query'],
|
1813 |
+
'relation' => 'AND'
|
1814 |
+
);
|
1815 |
+
$br_wc_query = new WP_Query($query_vars);
|
1816 |
add_action( 'wp_footer', array( $this, 'wp_footer_widget'), 99999 );
|
1817 |
$br_aapf_wc_footer_widget = true;
|
1818 |
$query_vars = apply_filters('berocket_filters_query_vars_already_filtered', $query_vars, berocket_isset($_POST['terms']), berocket_isset($_POST['limits_arr']));
|
2800 |
}
|
2801 |
}
|
2802 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2803 |
}
|
2804 |
|
2805 |
new BeRocket_AAPF;
|
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: 4.0
|
7 |
Tested up to: 5.3.2
|
8 |
-
Stable tag: 1.4.1.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -184,6 +184,18 @@ You can try this plugin's admin side [here](https://berocket.com/product/woocomm
|
|
184 |
|
185 |
== Changelog ==
|
186 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
187 |
= 1.4.1.4 =
|
188 |
* Fix - Correct count for attribute values with some WooCommerce Shortcodes
|
189 |
* Fix - Option text not correct
|
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: 4.0
|
7 |
Tested up to: 5.3.2
|
8 |
+
Stable tag: 1.4.1.5
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
184 |
|
185 |
== Changelog ==
|
186 |
|
187 |
+
= 1.4.1.5 =
|
188 |
+
* Enhancement - Additional Tables compatibility with Polylang
|
189 |
+
* Enhancement - Better compatibility with Load More and Grid/List plugins
|
190 |
+
* Fix - Session start error for some admin pages
|
191 |
+
* Fix - Nice URL do not work after first save
|
192 |
+
* Fix - JavaScript errors in WordPress customization
|
193 |
+
* Fix - Multiple category/attribute values in WooCommerce shortcode
|
194 |
+
* Fix - Use unique class for color picker script
|
195 |
+
* Fix - Remove title from HTML5 PushState
|
196 |
+
* Fix - Group simple create from widget do not work
|
197 |
+
* Fix - Variable products with out of stock variation still visible if query uses post__in parameter
|
198 |
+
|
199 |
= 1.4.1.4 =
|
200 |
* Fix - Correct count for attribute values with some WooCommerce Shortcodes
|
201 |
* Fix - Option text not correct
|
templates/color_ajax.php
CHANGED
@@ -14,9 +14,9 @@
|
|
14 |
$color_term_selector = '<tr>';
|
15 |
$color_term_selector .= '<td>'.berocket_isset($term, 'name').'</td>';
|
16 |
$color_meta = get_metadata('berocket_term', $term->term_id, 'color');
|
17 |
-
$color_term_selector .= '<td class="
|
18 |
</td>
|
19 |
-
<input class="
|
20 |
name="br_widget_color[color][' . $term->term_id . ']" />';
|
21 |
$color_term_selector .= '</tr>';
|
22 |
echo $color_term_selector;
|
@@ -28,9 +28,9 @@
|
|
28 |
<script>
|
29 |
(function ($) {
|
30 |
var colPick_timer = setInterval(function() {
|
31 |
-
if (typeof $('.
|
32 |
clearInterval(colPick_timer);
|
33 |
-
$('.
|
34 |
var color = $(o).data('color');
|
35 |
color = color+'';
|
36 |
color = color.replace('#', '');
|
@@ -49,7 +49,7 @@
|
|
49 |
}
|
50 |
});
|
51 |
});
|
52 |
-
jQuery('.
|
53 |
event.preventDefault();
|
54 |
event.stopPropagation();
|
55 |
jQuery(this).parent().css('backgroundColor', '#000000').colpickSetColor('#000000').addClass('colorpicker_removed');
|
14 |
$color_term_selector = '<tr>';
|
15 |
$color_term_selector .= '<td>'.berocket_isset($term, 'name').'</td>';
|
16 |
$color_meta = get_metadata('berocket_term', $term->term_id, 'color');
|
17 |
+
$color_term_selector .= '<td class="br_colorpicker_field" data-color="' . br_get_value_from_array($color_meta, 0, 'ffffff') . '">
|
18 |
</td>
|
19 |
+
<input class="br_colorpicker_field_input" type="hidden" value="' . br_get_value_from_array($color_meta, 0) . '"
|
20 |
name="br_widget_color[color][' . $term->term_id . ']" />';
|
21 |
$color_term_selector .= '</tr>';
|
22 |
echo $color_term_selector;
|
28 |
<script>
|
29 |
(function ($) {
|
30 |
var colPick_timer = setInterval(function() {
|
31 |
+
if (typeof $('.br_colorpicker_field').colpick == 'function') {
|
32 |
clearInterval(colPick_timer);
|
33 |
+
$('.br_colorpicker_field').each(function (i,o) {
|
34 |
var color = $(o).data('color');
|
35 |
color = color+'';
|
36 |
color = color.replace('#', '');
|
49 |
}
|
50 |
});
|
51 |
});
|
52 |
+
jQuery('.br_colorpicker_field .fa-times').on('click', function(event) {
|
53 |
event.preventDefault();
|
54 |
event.stopPropagation();
|
55 |
jQuery(this).parent().css('backgroundColor', '#000000').colpickSetColor('#000000').addClass('colorpicker_removed');
|
templates/filter_post.php
CHANGED
@@ -598,7 +598,7 @@ $custom_taxonomies = array_combine($custom_taxonomies, $custom_taxonomies);
|
|
598 |
jQuery('.color_image_checked_'+jQuery(this).val()).show();
|
599 |
});
|
600 |
jQuery(document).ready(function() {
|
601 |
-
jQuery('.
|
602 |
jQuery(o).css('backgroundColor', '#'+jQuery(o).data('color'));
|
603 |
jQuery(o).colpick({
|
604 |
layout: 'hex',
|
598 |
jQuery('.color_image_checked_'+jQuery(this).val()).show();
|
599 |
});
|
600 |
jQuery(document).ready(function() {
|
601 |
+
jQuery('.br_colorpicker_field').each(function (i,o){
|
602 |
jQuery(o).css('backgroundColor', '#'+jQuery(o).data('color'));
|
603 |
jQuery(o).colpick({
|
604 |
layout: 'hex',
|
templates/filters_group_simple.php
CHANGED
@@ -47,7 +47,7 @@
|
|
47 |
<script>
|
48 |
jQuery('.berocket_add_filter_to_group').on('click', function(event) {
|
49 |
event.preventDefault();
|
50 |
-
var $parent =
|
51 |
if( ! jQuery('.berocket_filter_added_'+jQuery('.berocket_filter_list', $parent).val(), $parent).length ) {
|
52 |
var html = '<li class="berocket_filter_added_'+jQuery('.berocket_filter_list', $parent).val()+'"><i class="fa fa-bars"></i> ';
|
53 |
html += '<input type="hidden" name="'+jQuery('.berocket_filter_added_list', $parent).data('name')+'" value="'+jQuery('.berocket_filter_list', $parent).val()+'">';
|
47 |
<script>
|
48 |
jQuery('.berocket_add_filter_to_group').on('click', function(event) {
|
49 |
event.preventDefault();
|
50 |
+
var $parent = jQuery(this).parents('form').first();
|
51 |
if( ! jQuery('.berocket_filter_added_'+jQuery('.berocket_filter_list', $parent).val(), $parent).length ) {
|
52 |
var html = '<li class="berocket_filter_added_'+jQuery('.berocket_filter_list', $parent).val()+'"><i class="fa fa-bars"></i> ';
|
53 |
html += '<input type="hidden" name="'+jQuery('.berocket_filter_added_list', $parent).data('name')+'" value="'+jQuery('.berocket_filter_list', $parent).val()+'">';
|
templates/settings/design.php
CHANGED
@@ -52,7 +52,7 @@ $fonts_list = g_fonts_list();
|
|
52 |
<td><?php echo $designable['name'] ?></td>
|
53 |
<td class="admin-column-color">
|
54 |
<?php if ( $designable['has']['color'] ) { ?>
|
55 |
-
<div class="
|
56 |
<input type="hidden" value="<?php echo ( ! empty($options['styles'][$key]['color']) ) ? $options['styles'][$key]['color'] : '' ?>" name="br_filters_options[styles][<?php echo $key ?>][color]" />
|
57 |
<input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button tiny-button">
|
58 |
<?php } else {
|
@@ -160,7 +160,7 @@ $fonts_list = g_fonts_list();
|
|
160 |
<tr class="br_checkbox_radio_settings">
|
161 |
<td><?php _e('Checkbox', 'BeRocket_AJAX_domain') ?></td>
|
162 |
<td class="admin-column-color">
|
163 |
-
<div class="
|
164 |
<input class="br_border_color_set" type="hidden" value="<?php echo br_get_value_from_array($options, array('styles_input', 'checkbox', 'bcolor')) ?>" name="br_filters_options[styles_input][checkbox][bcolor]" />
|
165 |
<input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button tiny-button">
|
166 |
</td>
|
@@ -174,12 +174,12 @@ $fonts_list = g_fonts_list();
|
|
174 |
<input class="br_size_set" type="text" placeholder="<?php _e('Theme Default', 'BeRocket_AJAX_domain') ?>" name="br_filters_options[styles_input][checkbox][fontsize]" value="<?php echo br_get_value_from_array($options, array('styles_input', 'checkbox', 'fontsize')); ?>" />
|
175 |
</td>
|
176 |
<td class="admin-column-color">
|
177 |
-
<div class="
|
178 |
<input class="br_font_color_set" type="hidden" value="<?php echo br_get_value_from_array($options, array('styles_input', 'checkbox', 'fcolor')) ?>" name="br_filters_options[styles_input][checkbox][fcolor]" />
|
179 |
<input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button tiny-button">
|
180 |
</td>
|
181 |
<td class="admin-column-color">
|
182 |
-
<div class="
|
183 |
<input class="br_background_set" type="hidden" value="<?php echo br_get_value_from_array($options, array('styles_input', 'checkbox', 'backcolor')) ?>" name="br_filters_options[styles_input][checkbox][backcolor]" />
|
184 |
<input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button tiny-button">
|
185 |
</td>
|
@@ -416,7 +416,7 @@ $fonts_list = g_fonts_list();
|
|
416 |
<tr class="br_checkbox_radio_settings">
|
417 |
<td><?php _e('Radio', 'BeRocket_AJAX_domain') ?></td>
|
418 |
<td class="admin-column-color">
|
419 |
-
<div class="
|
420 |
<input class="br_border_color_set" type="hidden" value="<?php echo br_get_value_from_array($options, array('styles_input', 'radio', 'bcolor')) ?>" name="br_filters_options[styles_input][radio][bcolor]" />
|
421 |
<input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button tiny-button">
|
422 |
</td>
|
@@ -430,12 +430,12 @@ $fonts_list = g_fonts_list();
|
|
430 |
<input class="br_size_set" type="text" placeholder="<?php _e('Theme Default', 'BeRocket_AJAX_domain') ?>" name="br_filters_options[styles_input][radio][fontsize]" value="<?php echo br_get_value_from_array($options, array('styles_input', 'radio', 'fontsize')) ?>" />
|
431 |
</td>
|
432 |
<td class="admin-column-color">
|
433 |
-
<div class="
|
434 |
<input class="br_font_color_set" type="hidden" value="<?php echo br_get_value_from_array($options, array('styles_input', 'radio', 'fcolor')) ?>" name="br_filters_options[styles_input][radio][fcolor]" />
|
435 |
<input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button tiny-button">
|
436 |
</td>
|
437 |
<td class="admin-column-color">
|
438 |
-
<div class="
|
439 |
<input class="br_background_set" type="hidden" value="<?php echo br_get_value_from_array($options, array('styles_input', 'radio', 'backcolor')) ?>" name="br_filters_options[styles_input][radio][backcolor]" />
|
440 |
<input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button tiny-button">
|
441 |
</td>
|
@@ -648,12 +648,12 @@ $fonts_list = g_fonts_list();
|
|
648 |
<tbody>
|
649 |
<tr>
|
650 |
<td class="admin-column-color">
|
651 |
-
<div class="
|
652 |
<input type="hidden" value="<?php echo br_get_value_from_array($options, array('styles_input', 'slider', 'line_color')) ?>" name="br_filters_options[styles_input][slider][line_color]" />
|
653 |
<input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button tiny-button">
|
654 |
</td>
|
655 |
<td class="admin-column-color">
|
656 |
-
<div class="
|
657 |
<input type="hidden" value="<?php echo br_get_value_from_array($options, array('styles_input', 'slider', 'back_line_color')) ?>" name="br_filters_options[styles_input][slider][back_line_color]" />
|
658 |
<input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button tiny-button">
|
659 |
</td>
|
@@ -661,7 +661,7 @@ $fonts_list = g_fonts_list();
|
|
661 |
<input type="text" placeholder="<?php _e('Theme Default', 'BeRocket_AJAX_domain') ?>" name="br_filters_options[styles_input][slider][line_height]" value="<?php echo br_get_value_from_array($options, array('styles_input', 'slider', 'line_height')) ?>" />
|
662 |
</td>
|
663 |
<td class="admin-column-color">
|
664 |
-
<div class="
|
665 |
<input type="hidden" value="<?php echo br_get_value_from_array($options, array('styles_input', 'slider', 'line_border_color')) ?>" name="br_filters_options[styles_input][slider][line_border_color]" />
|
666 |
<input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button tiny-button">
|
667 |
</td>
|
@@ -672,12 +672,12 @@ $fonts_list = g_fonts_list();
|
|
672 |
<input type="text" placeholder="<?php _e('Theme Default', 'BeRocket_AJAX_domain') ?>" name="br_filters_options[styles_input][slider][button_size]" value="<?php echo br_get_value_from_array($options, array('styles_input', 'slider', 'button_size')) ?>" />
|
673 |
</td>
|
674 |
<td class="admin-column-color">
|
675 |
-
<div class="
|
676 |
<input type="hidden" value="<?php echo br_get_value_from_array($options, array('styles_input', 'slider', 'button_color')) ?>" name="br_filters_options[styles_input][slider][button_color]" />
|
677 |
<input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button tiny-button">
|
678 |
</td>
|
679 |
<td class="admin-column-color">
|
680 |
-
<div class="
|
681 |
<input type="hidden" value="<?php echo br_get_value_from_array($options, array('styles_input', 'slider', 'button_border_color')) ?>" name="br_filters_options[styles_input][slider][button_border_color]" />
|
682 |
<input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button tiny-button">
|
683 |
</td>
|
@@ -717,12 +717,12 @@ $fonts_list = g_fonts_list();
|
|
717 |
<tbody>
|
718 |
<tr>
|
719 |
<td class="admin-column-color">
|
720 |
-
<div class="
|
721 |
<input type="hidden" value="<?php echo br_get_value_from_array($options, array('styles_input', 'pc_ub', 'back_color')) ?>" name="br_filters_options[styles_input][pc_ub][back_color]" />
|
722 |
<input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button tiny-button">
|
723 |
</td>
|
724 |
<td class="admin-column-color">
|
725 |
-
<div class="
|
726 |
<input type="hidden" value="<?php echo br_get_value_from_array($options, array('styles_input', 'pc_ub', 'border_color')) ?>" name="br_filters_options[styles_input][pc_ub][border_color]" />
|
727 |
<input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button tiny-button">
|
728 |
</td>
|
@@ -730,7 +730,7 @@ $fonts_list = g_fonts_list();
|
|
730 |
<input type="text" placeholder="<?php _e('Theme Default', 'BeRocket_AJAX_domain') ?>" name="br_filters_options[styles_input][pc_ub][font_size]" value="<?php echo br_get_value_from_array($options, array('styles_input', 'pc_ub', 'font_size')); ?>" />
|
731 |
</td>
|
732 |
<td class="admin-column-color">
|
733 |
-
<div class="
|
734 |
<input type="hidden" value="<?php echo br_get_value_from_array($options, array('styles_input', 'pc_ub', 'font_color')) ?>" name="br_filters_options[styles_input][pc_ub][font_color]" />
|
735 |
<input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button tiny-button">
|
736 |
</td>
|
@@ -738,12 +738,12 @@ $fonts_list = g_fonts_list();
|
|
738 |
<input type="text" placeholder="<?php _e('Theme Default', 'BeRocket_AJAX_domain') ?>" name="br_filters_options[styles_input][pc_ub][show_font_size]" value="<?php echo br_get_value_from_array($options, array('styles_input', 'pc_ub', 'show_font_size')); ?>" />
|
739 |
</td>
|
740 |
<td class="admin-column-color">
|
741 |
-
<div class="
|
742 |
<input type="hidden" value="<?php echo br_get_value_from_array($options, array('styles_input', 'pc_ub', 'show_font_color')) ?>" name="br_filters_options[styles_input][pc_ub][show_font_color]" />
|
743 |
<input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button tiny-button">
|
744 |
</td>
|
745 |
<td class="admin-column-color">
|
746 |
-
<div class="
|
747 |
<input type="hidden" value="<?php echo br_get_value_from_array($options, array('styles_input', 'pc_ub', 'show_font_color_hover')) ?>" name="br_filters_options[styles_input][pc_ub][show_font_color_hover]" />
|
748 |
<input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button tiny-button">
|
749 |
</td>
|
@@ -751,12 +751,12 @@ $fonts_list = g_fonts_list();
|
|
751 |
<input type="text" placeholder="<?php _e('Theme Default', 'BeRocket_AJAX_domain') ?>" name="br_filters_options[styles_input][pc_ub][close_size]" value="<?php echo br_get_value_from_array($options, array('styles_input', 'pc_ub', 'close_size')); ?>" />
|
752 |
</td>
|
753 |
<td class="admin-column-color">
|
754 |
-
<div class="
|
755 |
<input type="hidden" value="<?php echo br_get_value_from_array($options, array('styles_input', 'pc_ub', 'close_font_color')) ?>" name="br_filters_options[styles_input][pc_ub][close_font_color]" />
|
756 |
<input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button tiny-button">
|
757 |
</td>
|
758 |
<td class="admin-column-color">
|
759 |
-
<div class="
|
760 |
<input type="hidden" value="<?php echo br_get_value_from_array($options, array('styles_input', 'pc_ub', 'close_font_color_hover')) ?>" name="br_filters_options[styles_input][pc_ub][close_font_color_hover]" />
|
761 |
<input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button tiny-button">
|
762 |
</td>
|
@@ -788,7 +788,7 @@ $fonts_list = g_fonts_list();
|
|
788 |
<tr class="br_onlyTitle_title_radio_settings">
|
789 |
<td><?php _e('Title', 'BeRocket_AJAX_domain') ?></td>
|
790 |
<td class="admin-column-color">
|
791 |
-
<div class="
|
792 |
<input class="br_border_color_set" type="hidden" value="<?php echo br_get_value_from_array($options, array('styles_input', 'onlyTitle_title', 'bcolor')) ?>" name="br_filters_options[styles_input][onlyTitle_title][bcolor]" />
|
793 |
<input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button tiny-button">
|
794 |
</td>
|
@@ -802,12 +802,12 @@ $fonts_list = g_fonts_list();
|
|
802 |
<input class="br_size_set" type="text" placeholder="<?php _e('Theme Default', 'BeRocket_AJAX_domain') ?>" name="br_filters_options[styles_input][onlyTitle_title][fontsize]" value="<?php echo br_get_value_from_array($options, array('styles_input', 'onlyTitle_title', 'fontsize')); ?>" />
|
803 |
</td>
|
804 |
<td class="admin-column-color">
|
805 |
-
<div class="
|
806 |
<input class="br_font_color_set" type="hidden" value="<?php echo br_get_value_from_array($options, array('styles_input', 'onlyTitle_title', 'fcolor')) ?>" name="br_filters_options[styles_input][onlyTitle_title][fcolor]" />
|
807 |
<input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button tiny-button">
|
808 |
</td>
|
809 |
<td class="admin-column-color">
|
810 |
-
<div class="
|
811 |
<input class="br_background_set" type="hidden" value="<?php echo br_get_value_from_array($options, array('styles_input', 'onlyTitle_title', 'backcolor')) ?>" name="br_filters_options[styles_input][onlyTitle_title][backcolor]" />
|
812 |
<input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button tiny-button">
|
813 |
</td>
|
@@ -815,7 +815,7 @@ $fonts_list = g_fonts_list();
|
|
815 |
<tr class="br_onlyTitle_title_radio_settings">
|
816 |
<td><?php _e('Title opened', 'BeRocket_AJAX_domain') ?></td>
|
817 |
<td class="admin-column-color">
|
818 |
-
<div class="
|
819 |
<input class="br_border_color_set" type="hidden" value="<?php echo br_get_value_from_array($options, array('styles_input', 'onlyTitle_titleopened', 'bcolor')) ?>" name="br_filters_options[styles_input][onlyTitle_titleopened][bcolor]" />
|
820 |
<input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button tiny-button">
|
821 |
</td>
|
@@ -829,12 +829,12 @@ $fonts_list = g_fonts_list();
|
|
829 |
<input class="br_size_set" type="text" placeholder="<?php _e('Theme Default', 'BeRocket_AJAX_domain') ?>" name="br_filters_options[styles_input][onlyTitle_titleopened][fontsize]" value="<?php echo br_get_value_from_array($options, array('styles_input', 'onlyTitle_titleopened', 'fontsize')); ?>" />
|
830 |
</td>
|
831 |
<td class="admin-column-color">
|
832 |
-
<div class="
|
833 |
<input class="br_font_color_set" type="hidden" value="<?php echo br_get_value_from_array($options, array('styles_input', 'onlyTitle_titleopened', 'fcolor')) ?>" name="br_filters_options[styles_input][onlyTitle_titleopened][fcolor]" />
|
834 |
<input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button tiny-button">
|
835 |
</td>
|
836 |
<td class="admin-column-color">
|
837 |
-
<div class="
|
838 |
<input class="br_background_set" type="hidden" value="<?php echo br_get_value_from_array($options, array('styles_input', 'onlyTitle_titleopened', 'backcolor')) ?>" name="br_filters_options[styles_input][onlyTitle_titleopened][backcolor]" />
|
839 |
<input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button tiny-button">
|
840 |
</td>
|
@@ -842,7 +842,7 @@ $fonts_list = g_fonts_list();
|
|
842 |
<tr class="br_onlyTitle_filter_radio_settings">
|
843 |
<td><?php _e('Filter', 'BeRocket_AJAX_domain') ?></td>
|
844 |
<td class="admin-column-color">
|
845 |
-
<div class="
|
846 |
<input class="br_border_color_set" type="hidden" value="<?php echo br_get_value_from_array($options, array('styles_input', 'onlyTitle_filter', 'bcolor')) ?>" name="br_filters_options[styles_input][onlyTitle_filter][bcolor]" />
|
847 |
<input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button tiny-button">
|
848 |
</td>
|
@@ -856,12 +856,12 @@ $fonts_list = g_fonts_list();
|
|
856 |
<input class="br_size_set" type="text" placeholder="<?php _e('Theme Default', 'BeRocket_AJAX_domain') ?>" name="br_filters_options[styles_input][onlyTitle_filter][fontsize]" value="<?php echo br_get_value_from_array($options, array('styles_input', 'onlyTitle_filter', 'fontsize')) ?>" />
|
857 |
</td>
|
858 |
<td class="admin-column-color">
|
859 |
-
<div class="
|
860 |
<input class="br_font_color_set" type="hidden" value="<?php echo br_get_value_from_array($options, array('styles_input', 'onlyTitle_filter', 'fcolor')) ?>" name="br_filters_options[styles_input][onlyTitle_filter][fcolor]" />
|
861 |
<input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button tiny-button">
|
862 |
</td>
|
863 |
<td class="admin-column-color">
|
864 |
-
<div class="
|
865 |
<input class="br_background_set" type="hidden" value="<?php echo br_get_value_from_array($options, array('styles_input', 'onlyTitle_filter', 'backcolor')) ?>" name="br_filters_options[styles_input][onlyTitle_filter][backcolor]" />
|
866 |
<input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button tiny-button">
|
867 |
</td>
|
52 |
<td><?php echo $designable['name'] ?></td>
|
53 |
<td class="admin-column-color">
|
54 |
<?php if ( $designable['has']['color'] ) { ?>
|
55 |
+
<div class="br_colorpicker_field" data-color="<?php echo ( ! empty($options['styles'][$key]['color']) ) ? $options['styles'][$key]['color'] : '000000' ?>"></div>
|
56 |
<input type="hidden" value="<?php echo ( ! empty($options['styles'][$key]['color']) ) ? $options['styles'][$key]['color'] : '' ?>" name="br_filters_options[styles][<?php echo $key ?>][color]" />
|
57 |
<input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button tiny-button">
|
58 |
<?php } else {
|
160 |
<tr class="br_checkbox_radio_settings">
|
161 |
<td><?php _e('Checkbox', 'BeRocket_AJAX_domain') ?></td>
|
162 |
<td class="admin-column-color">
|
163 |
+
<div class="br_colorpicker_field" data-color="<?php echo br_get_value_from_array($options, array('styles_input', 'checkbox', 'bcolor'), '000000') ?>"></div>
|
164 |
<input class="br_border_color_set" type="hidden" value="<?php echo br_get_value_from_array($options, array('styles_input', 'checkbox', 'bcolor')) ?>" name="br_filters_options[styles_input][checkbox][bcolor]" />
|
165 |
<input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button tiny-button">
|
166 |
</td>
|
174 |
<input class="br_size_set" type="text" placeholder="<?php _e('Theme Default', 'BeRocket_AJAX_domain') ?>" name="br_filters_options[styles_input][checkbox][fontsize]" value="<?php echo br_get_value_from_array($options, array('styles_input', 'checkbox', 'fontsize')); ?>" />
|
175 |
</td>
|
176 |
<td class="admin-column-color">
|
177 |
+
<div class="br_colorpicker_field" data-color="<?php echo br_get_value_from_array($options, array('styles_input', 'checkbox', 'fcolor'), '000000') ?>"></div>
|
178 |
<input class="br_font_color_set" type="hidden" value="<?php echo br_get_value_from_array($options, array('styles_input', 'checkbox', 'fcolor')) ?>" name="br_filters_options[styles_input][checkbox][fcolor]" />
|
179 |
<input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button tiny-button">
|
180 |
</td>
|
181 |
<td class="admin-column-color">
|
182 |
+
<div class="br_colorpicker_field" data-color="<?php echo br_get_value_from_array($options, array('styles_input', 'checkbox', 'backcolor'), '000000') ?>"></div>
|
183 |
<input class="br_background_set" type="hidden" value="<?php echo br_get_value_from_array($options, array('styles_input', 'checkbox', 'backcolor')) ?>" name="br_filters_options[styles_input][checkbox][backcolor]" />
|
184 |
<input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button tiny-button">
|
185 |
</td>
|
416 |
<tr class="br_checkbox_radio_settings">
|
417 |
<td><?php _e('Radio', 'BeRocket_AJAX_domain') ?></td>
|
418 |
<td class="admin-column-color">
|
419 |
+
<div class="br_colorpicker_field" data-color="<?php echo br_get_value_from_array($options, array('styles_input', 'radio', 'bcolor'), '000000') ?>"></div>
|
420 |
<input class="br_border_color_set" type="hidden" value="<?php echo br_get_value_from_array($options, array('styles_input', 'radio', 'bcolor')) ?>" name="br_filters_options[styles_input][radio][bcolor]" />
|
421 |
<input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button tiny-button">
|
422 |
</td>
|
430 |
<input class="br_size_set" type="text" placeholder="<?php _e('Theme Default', 'BeRocket_AJAX_domain') ?>" name="br_filters_options[styles_input][radio][fontsize]" value="<?php echo br_get_value_from_array($options, array('styles_input', 'radio', 'fontsize')) ?>" />
|
431 |
</td>
|
432 |
<td class="admin-column-color">
|
433 |
+
<div class="br_colorpicker_field" data-color="<?php echo br_get_value_from_array($options, array('styles_input', 'radio', 'fcolor'), '000000') ?>"></div>
|
434 |
<input class="br_font_color_set" type="hidden" value="<?php echo br_get_value_from_array($options, array('styles_input', 'radio', 'fcolor')) ?>" name="br_filters_options[styles_input][radio][fcolor]" />
|
435 |
<input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button tiny-button">
|
436 |
</td>
|
437 |
<td class="admin-column-color">
|
438 |
+
<div class="br_colorpicker_field" data-color="<?php echo br_get_value_from_array($options, array('styles_input', 'radio', 'backcolor'), '000000') ?>"></div>
|
439 |
<input class="br_background_set" type="hidden" value="<?php echo br_get_value_from_array($options, array('styles_input', 'radio', 'backcolor')) ?>" name="br_filters_options[styles_input][radio][backcolor]" />
|
440 |
<input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button tiny-button">
|
441 |
</td>
|
648 |
<tbody>
|
649 |
<tr>
|
650 |
<td class="admin-column-color">
|
651 |
+
<div class="br_colorpicker_field" data-color="<?php echo br_get_value_from_array($options, array('styles_input', 'slider', 'line_color'), '000000') ?>"></div>
|
652 |
<input type="hidden" value="<?php echo br_get_value_from_array($options, array('styles_input', 'slider', 'line_color')) ?>" name="br_filters_options[styles_input][slider][line_color]" />
|
653 |
<input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button tiny-button">
|
654 |
</td>
|
655 |
<td class="admin-column-color">
|
656 |
+
<div class="br_colorpicker_field" data-color="<?php echo br_get_value_from_array($options, array('styles_input', 'slider', 'back_line_color'), '000000') ?>"></div>
|
657 |
<input type="hidden" value="<?php echo br_get_value_from_array($options, array('styles_input', 'slider', 'back_line_color')) ?>" name="br_filters_options[styles_input][slider][back_line_color]" />
|
658 |
<input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button tiny-button">
|
659 |
</td>
|
661 |
<input type="text" placeholder="<?php _e('Theme Default', 'BeRocket_AJAX_domain') ?>" name="br_filters_options[styles_input][slider][line_height]" value="<?php echo br_get_value_from_array($options, array('styles_input', 'slider', 'line_height')) ?>" />
|
662 |
</td>
|
663 |
<td class="admin-column-color">
|
664 |
+
<div class="br_colorpicker_field" data-color="<?php echo br_get_value_from_array($options, array('styles_input', 'slider', 'line_border_color'), '000000') ?>"></div>
|
665 |
<input type="hidden" value="<?php echo br_get_value_from_array($options, array('styles_input', 'slider', 'line_border_color')) ?>" name="br_filters_options[styles_input][slider][line_border_color]" />
|
666 |
<input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button tiny-button">
|
667 |
</td>
|
672 |
<input type="text" placeholder="<?php _e('Theme Default', 'BeRocket_AJAX_domain') ?>" name="br_filters_options[styles_input][slider][button_size]" value="<?php echo br_get_value_from_array($options, array('styles_input', 'slider', 'button_size')) ?>" />
|
673 |
</td>
|
674 |
<td class="admin-column-color">
|
675 |
+
<div class="br_colorpicker_field" data-color="<?php echo br_get_value_from_array($options, array('styles_input', 'slider', 'button_color'), '000000') ?>"></div>
|
676 |
<input type="hidden" value="<?php echo br_get_value_from_array($options, array('styles_input', 'slider', 'button_color')) ?>" name="br_filters_options[styles_input][slider][button_color]" />
|
677 |
<input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button tiny-button">
|
678 |
</td>
|
679 |
<td class="admin-column-color">
|
680 |
+
<div class="br_colorpicker_field" data-color="<?php echo br_get_value_from_array($options, array('styles_input', 'slider', 'button_border_color'), '000000') ?>"></div>
|
681 |
<input type="hidden" value="<?php echo br_get_value_from_array($options, array('styles_input', 'slider', 'button_border_color')) ?>" name="br_filters_options[styles_input][slider][button_border_color]" />
|
682 |
<input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button tiny-button">
|
683 |
</td>
|
717 |
<tbody>
|
718 |
<tr>
|
719 |
<td class="admin-column-color">
|
720 |
+
<div class="br_colorpicker_field" data-color="<?php echo br_get_value_from_array($options, array('styles_input', 'pc_ub', 'back_color'), '000000') ?>"></div>
|
721 |
<input type="hidden" value="<?php echo br_get_value_from_array($options, array('styles_input', 'pc_ub', 'back_color')) ?>" name="br_filters_options[styles_input][pc_ub][back_color]" />
|
722 |
<input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button tiny-button">
|
723 |
</td>
|
724 |
<td class="admin-column-color">
|
725 |
+
<div class="br_colorpicker_field" data-color="<?php echo br_get_value_from_array($options, array('styles_input', 'pc_ub', 'border_color'), '000000') ?>"></div>
|
726 |
<input type="hidden" value="<?php echo br_get_value_from_array($options, array('styles_input', 'pc_ub', 'border_color')) ?>" name="br_filters_options[styles_input][pc_ub][border_color]" />
|
727 |
<input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button tiny-button">
|
728 |
</td>
|
730 |
<input type="text" placeholder="<?php _e('Theme Default', 'BeRocket_AJAX_domain') ?>" name="br_filters_options[styles_input][pc_ub][font_size]" value="<?php echo br_get_value_from_array($options, array('styles_input', 'pc_ub', 'font_size')); ?>" />
|
731 |
</td>
|
732 |
<td class="admin-column-color">
|
733 |
+
<div class="br_colorpicker_field" data-color="<?php echo br_get_value_from_array($options, array('styles_input', 'pc_ub', 'font_color'), '000000') ?>"></div>
|
734 |
<input type="hidden" value="<?php echo br_get_value_from_array($options, array('styles_input', 'pc_ub', 'font_color')) ?>" name="br_filters_options[styles_input][pc_ub][font_color]" />
|
735 |
<input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button tiny-button">
|
736 |
</td>
|
738 |
<input type="text" placeholder="<?php _e('Theme Default', 'BeRocket_AJAX_domain') ?>" name="br_filters_options[styles_input][pc_ub][show_font_size]" value="<?php echo br_get_value_from_array($options, array('styles_input', 'pc_ub', 'show_font_size')); ?>" />
|
739 |
</td>
|
740 |
<td class="admin-column-color">
|
741 |
+
<div class="br_colorpicker_field" data-color="<?php echo br_get_value_from_array($options, array('styles_input', 'pc_ub', 'show_font_color'), '000000') ?>"></div>
|
742 |
<input type="hidden" value="<?php echo br_get_value_from_array($options, array('styles_input', 'pc_ub', 'show_font_color')) ?>" name="br_filters_options[styles_input][pc_ub][show_font_color]" />
|
743 |
<input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button tiny-button">
|
744 |
</td>
|
745 |
<td class="admin-column-color">
|
746 |
+
<div class="br_colorpicker_field" data-color="<?php echo br_get_value_from_array($options, array('styles_input', 'pc_ub', 'show_font_color_hover'), '000000') ?>"></div>
|
747 |
<input type="hidden" value="<?php echo br_get_value_from_array($options, array('styles_input', 'pc_ub', 'show_font_color_hover')) ?>" name="br_filters_options[styles_input][pc_ub][show_font_color_hover]" />
|
748 |
<input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button tiny-button">
|
749 |
</td>
|
751 |
<input type="text" placeholder="<?php _e('Theme Default', 'BeRocket_AJAX_domain') ?>" name="br_filters_options[styles_input][pc_ub][close_size]" value="<?php echo br_get_value_from_array($options, array('styles_input', 'pc_ub', 'close_size')); ?>" />
|
752 |
</td>
|
753 |
<td class="admin-column-color">
|
754 |
+
<div class="br_colorpicker_field" data-color="<?php echo br_get_value_from_array($options, array('styles_input', 'pc_ub', 'close_font_color'), '000000') ?>"></div>
|
755 |
<input type="hidden" value="<?php echo br_get_value_from_array($options, array('styles_input', 'pc_ub', 'close_font_color')) ?>" name="br_filters_options[styles_input][pc_ub][close_font_color]" />
|
756 |
<input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button tiny-button">
|
757 |
</td>
|
758 |
<td class="admin-column-color">
|
759 |
+
<div class="br_colorpicker_field" data-color="<?php echo br_get_value_from_array($options, array('styles_input', 'pc_ub', 'close_font_color_hover'), '000000') ?>"></div>
|
760 |
<input type="hidden" value="<?php echo br_get_value_from_array($options, array('styles_input', 'pc_ub', 'close_font_color_hover')) ?>" name="br_filters_options[styles_input][pc_ub][close_font_color_hover]" />
|
761 |
<input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button tiny-button">
|
762 |
</td>
|
788 |
<tr class="br_onlyTitle_title_radio_settings">
|
789 |
<td><?php _e('Title', 'BeRocket_AJAX_domain') ?></td>
|
790 |
<td class="admin-column-color">
|
791 |
+
<div class="br_colorpicker_field" data-color="<?php echo br_get_value_from_array($options, array('styles_input', 'onlyTitle_title', 'bcolor'), '000000') ?>"></div>
|
792 |
<input class="br_border_color_set" type="hidden" value="<?php echo br_get_value_from_array($options, array('styles_input', 'onlyTitle_title', 'bcolor')) ?>" name="br_filters_options[styles_input][onlyTitle_title][bcolor]" />
|
793 |
<input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button tiny-button">
|
794 |
</td>
|
802 |
<input class="br_size_set" type="text" placeholder="<?php _e('Theme Default', 'BeRocket_AJAX_domain') ?>" name="br_filters_options[styles_input][onlyTitle_title][fontsize]" value="<?php echo br_get_value_from_array($options, array('styles_input', 'onlyTitle_title', 'fontsize')); ?>" />
|
803 |
</td>
|
804 |
<td class="admin-column-color">
|
805 |
+
<div class="br_colorpicker_field" data-color="<?php echo br_get_value_from_array($options, array('styles_input', 'onlyTitle_title', 'fcolor'), '000000') ?>"></div>
|
806 |
<input class="br_font_color_set" type="hidden" value="<?php echo br_get_value_from_array($options, array('styles_input', 'onlyTitle_title', 'fcolor')) ?>" name="br_filters_options[styles_input][onlyTitle_title][fcolor]" />
|
807 |
<input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button tiny-button">
|
808 |
</td>
|
809 |
<td class="admin-column-color">
|
810 |
+
<div class="br_colorpicker_field" data-color="<?php echo br_get_value_from_array($options, array('styles_input', 'onlyTitle_title', 'backcolor'), '000000') ?>"></div>
|
811 |
<input class="br_background_set" type="hidden" value="<?php echo br_get_value_from_array($options, array('styles_input', 'onlyTitle_title', 'backcolor')) ?>" name="br_filters_options[styles_input][onlyTitle_title][backcolor]" />
|
812 |
<input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button tiny-button">
|
813 |
</td>
|
815 |
<tr class="br_onlyTitle_title_radio_settings">
|
816 |
<td><?php _e('Title opened', 'BeRocket_AJAX_domain') ?></td>
|
817 |
<td class="admin-column-color">
|
818 |
+
<div class="br_colorpicker_field" data-color="<?php echo br_get_value_from_array($options, array('styles_input', 'onlyTitle_titleopened', 'bcolor'), '000000') ?>"></div>
|
819 |
<input class="br_border_color_set" type="hidden" value="<?php echo br_get_value_from_array($options, array('styles_input', 'onlyTitle_titleopened', 'bcolor')) ?>" name="br_filters_options[styles_input][onlyTitle_titleopened][bcolor]" />
|
820 |
<input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button tiny-button">
|
821 |
</td>
|
829 |
<input class="br_size_set" type="text" placeholder="<?php _e('Theme Default', 'BeRocket_AJAX_domain') ?>" name="br_filters_options[styles_input][onlyTitle_titleopened][fontsize]" value="<?php echo br_get_value_from_array($options, array('styles_input', 'onlyTitle_titleopened', 'fontsize')); ?>" />
|
830 |
</td>
|
831 |
<td class="admin-column-color">
|
832 |
+
<div class="br_colorpicker_field" data-color="<?php echo br_get_value_from_array($options, array('styles_input', 'onlyTitle_titleopened', 'fcolor'), '000000') ?>"></div>
|
833 |
<input class="br_font_color_set" type="hidden" value="<?php echo br_get_value_from_array($options, array('styles_input', 'onlyTitle_titleopened', 'fcolor')) ?>" name="br_filters_options[styles_input][onlyTitle_titleopened][fcolor]" />
|
834 |
<input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button tiny-button">
|
835 |
</td>
|
836 |
<td class="admin-column-color">
|
837 |
+
<div class="br_colorpicker_field" data-color="<?php echo br_get_value_from_array($options, array('styles_input', 'onlyTitle_titleopened', 'backcolor'), '000000') ?>"></div>
|
838 |
<input class="br_background_set" type="hidden" value="<?php echo br_get_value_from_array($options, array('styles_input', 'onlyTitle_titleopened', 'backcolor')) ?>" name="br_filters_options[styles_input][onlyTitle_titleopened][backcolor]" />
|
839 |
<input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button tiny-button">
|
840 |
</td>
|
842 |
<tr class="br_onlyTitle_filter_radio_settings">
|
843 |
<td><?php _e('Filter', 'BeRocket_AJAX_domain') ?></td>
|
844 |
<td class="admin-column-color">
|
845 |
+
<div class="br_colorpicker_field" data-color="<?php echo br_get_value_from_array($options, array('styles_input', 'onlyTitle_filter', 'bcolor'), '000000') ?>"></div>
|
846 |
<input class="br_border_color_set" type="hidden" value="<?php echo br_get_value_from_array($options, array('styles_input', 'onlyTitle_filter', 'bcolor')) ?>" name="br_filters_options[styles_input][onlyTitle_filter][bcolor]" />
|
847 |
<input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button tiny-button">
|
848 |
</td>
|
856 |
<input class="br_size_set" type="text" placeholder="<?php _e('Theme Default', 'BeRocket_AJAX_domain') ?>" name="br_filters_options[styles_input][onlyTitle_filter][fontsize]" value="<?php echo br_get_value_from_array($options, array('styles_input', 'onlyTitle_filter', 'fontsize')) ?>" />
|
857 |
</td>
|
858 |
<td class="admin-column-color">
|
859 |
+
<div class="br_colorpicker_field" data-color="<?php echo br_get_value_from_array($options, array('styles_input', 'onlyTitle_filter', 'fcolor'), '000000') ?>"></div>
|
860 |
<input class="br_font_color_set" type="hidden" value="<?php echo br_get_value_from_array($options, array('styles_input', 'onlyTitle_filter', 'fcolor')) ?>" name="br_filters_options[styles_input][onlyTitle_filter][fcolor]" />
|
861 |
<input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button tiny-button">
|
862 |
</td>
|
863 |
<td class="admin-column-color">
|
864 |
+
<div class="br_colorpicker_field" data-color="<?php echo br_get_value_from_array($options, array('styles_input', 'onlyTitle_filter', 'backcolor'), '000000') ?>"></div>
|
865 |
<input class="br_background_set" type="hidden" value="<?php echo br_get_value_from_array($options, array('styles_input', 'onlyTitle_filter', 'backcolor')) ?>" name="br_filters_options[styles_input][onlyTitle_filter][backcolor]" />
|
866 |
<input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button tiny-button">
|
867 |
</td>
|
woocommerce-filters.php
CHANGED
@@ -3,14 +3,14 @@
|
|
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.4.1.
|
7 |
* Author: BeRocket
|
8 |
* Requires at least: 4.0
|
9 |
* Author URI: https://berocket.com?utm_source=free_plugin&utm_medium=plugins&utm_campaign=ajax_filters
|
10 |
* Text Domain: BeRocket_AJAX_domain
|
11 |
* Domain Path: /languages/
|
12 |
-
* WC tested up to: 3.
|
13 |
*/
|
14 |
-
define( "BeRocket_AJAX_filters_version", '1.4.1.
|
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.4.1.5
|
7 |
* Author: BeRocket
|
8 |
* Requires at least: 4.0
|
9 |
* Author URI: https://berocket.com?utm_source=free_plugin&utm_medium=plugins&utm_campaign=ajax_filters
|
10 |
* Text Domain: BeRocket_AJAX_domain
|
11 |
* Domain Path: /languages/
|
12 |
+
* WC tested up to: 3.9.1
|
13 |
*/
|
14 |
+
define( "BeRocket_AJAX_filters_version", '1.4.1.5' );
|
15 |
define( "BeRocket_AJAX_filters_file", __FILE__ );
|
16 |
include_once('main.php');
|