Advanced AJAX Product Filters - Version 1.3.1.2

Version Description

  • Fix - Loading Icon
  • Fix - Creation filters/groups in customizer
  • Fix - Multiple sorting form
  • Fix - Better compatibility with Flatsome theme
  • Fix - Security problem
  • Fix - Code optimization
  • Fix - Addon Filtering Conditions
Download this release

Release Info

Developer RazyRx
Plugin Icon wp plugin Advanced AJAX Product Filters
Version 1.3.1.2
Comparing to
See all releases

Code changes from version 1.3.1.1 to 1.3.1.2

addons/filtering_conditions/filtering_conditions.php CHANGED
@@ -2,9 +2,7 @@
2
  class BeRocket_aapf_filtering_conditions_addon extends BeRocket_framework_addon_lib {
3
  public $addon_file = __FILE__;
4
  public $plugin_name = 'ajax_filters';
5
- function init_active() {
6
- include_once('add_conditions.php');
7
- }
8
  function get_addon_data() {
9
  $data = parent::get_addon_data();
10
  return array_merge($data, array(
2
  class BeRocket_aapf_filtering_conditions_addon extends BeRocket_framework_addon_lib {
3
  public $addon_file = __FILE__;
4
  public $plugin_name = 'ajax_filters';
5
+ public $php_file_name = 'add_conditions';
 
 
6
  function get_addon_data() {
7
  $data = parent::get_addon_data();
8
  return array_merge($data, array(
berocket/README.md ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # README #
2
+
3
+
4
+ ### Process of new plugin initialization ###
5
+
6
+ * Create plugin folder name (locally)
7
+ * In that folder create folder called `berocket`
8
+ * Clone repository into `berocket`
9
+ * Run this from the `berocket` folder `git update-index --assume-unchanged plugin.php` - We are telling git that we will not change this file and no sense to check it (but we will lol)
10
+ * Move `plugin.php` to the parent folder (plugin root)
11
+ * Rename and edit `plugin.php` as you need
12
+ * Create new repo on the bitbucket and clone it to the plugin root
13
+ * Create all needed folders(js, css, includes, etc) and files you need for the plugin.
14
+ * On change don't forget to commit
15
+
16
+ ##### Don't edit Plugin Framework files from the plugin. OR at least commit asap because always there is a chance that you will forget to commit changes and we will have problems of merging #####
17
+
18
+ ###### Plugin Framework would be as a sub-repository. Sub-repositories updating manually. So it will not provide issues while you still can update it when needed. ######
19
+
20
+
21
+
22
+ ### Process of cloning plugin in process ###
23
+
24
+ * Create plugin folder name (locally)
25
+ * Clone repository
26
+ * In the plugin folder you will see folder `berocket`
27
+ * Clone into it this repo
28
+ * On change don't forget to commit
29
+
30
+ ##### Don't edit Plugin Framework files from the plugin. OR at least commit asap because always there is a chance that you will forget to commit changes and we will have problems of merging #####
berocket/includes/custom_post.php CHANGED
@@ -235,8 +235,7 @@ if ( ! class_exists('BeRocket_custom_post_class') ) {
235
  <div id="delete-action">
236
  <?php
237
  global $pagenow;
238
- if( in_array( $pagenow, array( 'post-new.php' ) ) ) {
239
- } else {
240
  if ( current_user_can( "delete_post", $post->ID ) ) {
241
  if ( ! EMPTY_TRASH_DAYS )
242
  $delete_text = __( 'Delete Permanently', 'BeRocket_domain' );
235
  <div id="delete-action">
236
  <?php
237
  global $pagenow;
238
+ if( ! in_array( $pagenow, array( 'post-new.php' ) ) ) {
 
239
  if ( current_user_can( "delete_post", $post->ID ) ) {
240
  if ( ! EMPTY_TRASH_DAYS )
241
  $delete_text = __( 'Delete Permanently', 'BeRocket_domain' );
berocket/includes/libraries.php CHANGED
@@ -2,11 +2,12 @@
2
  if( ! class_exists('BeRocket_framework_libraries') ) {
3
  class BeRocket_framework_libraries {
4
  public $libraries_name = array(
5
- 'addons' => 'addons/addons.php',
6
- 'templates' => 'templates/templates.php',
7
- 'popup' => 'popup.php',
8
- 'tooltip' => 'tippy.php',
9
- 'tippy' => 'tippy.php',
 
10
  );
11
  public $info, $values, $options;
12
  public $libraries_class = array();
@@ -30,5 +31,8 @@ if( ! class_exists('BeRocket_framework_libraries') ) {
30
  function templates() {
31
  return new BeRocket_framework_templates($this->info, $this->values, $this->options);
32
  }
 
 
 
33
  }
34
  }
2
  if( ! class_exists('BeRocket_framework_libraries') ) {
3
  class BeRocket_framework_libraries {
4
  public $libraries_name = array(
5
+ 'addons' => 'addons/addons.php',
6
+ 'templates' => 'templates/templates.php',
7
+ 'popup' => 'popup.php',
8
+ 'tooltip' => 'tippy.php',
9
+ 'tippy' => 'tippy.php',
10
+ 'feature' => 'feature_tab.php',
11
  );
12
  public $info, $values, $options;
13
  public $libraries_class = array();
31
  function templates() {
32
  return new BeRocket_framework_templates($this->info, $this->values, $this->options);
33
  }
34
+ function feature() {
35
+ return new BeRocket_framework_feature_tab($this->info, $this->values, $this->options);
36
+ }
37
  }
38
  }
berocket/includes/updater.php CHANGED
@@ -97,7 +97,6 @@ if ( ! class_exists( 'BeRocket_updater' ) ) {
97
  if( empty($submenu[ 'berocket_account' ]) || ! is_array($submenu[ 'berocket_account' ]) || count($submenu[ 'berocket_account' ]) == 0 ) {
98
  return $menu_ord;
99
  }
100
-
101
  $new_order_temp = array();
102
  $new_sub_order = array();
103
  $new_order_sort = array();
@@ -115,7 +114,7 @@ if ( ! class_exists( 'BeRocket_updater' ) ) {
115
  continue;
116
  }
117
 
118
- if ( false !== strpos( $item[ 2 ], 'edit.php' ) && ! empty($compatibility_hack[ str_replace( "edit.php?post_type=", "", $item[ 2 ] ) ]) ) {
119
  $item[ 0 ] = "<span class='berocket_admin_menu_custom_post_submenu'>" . $item[ 0 ] . "</span>";
120
  $new_sub_order[ $compatibility_hack[ str_replace( "edit.php?post_type=", "", $item[ 2 ] ) ] ][] = $item;
121
  } else {
97
  if( empty($submenu[ 'berocket_account' ]) || ! is_array($submenu[ 'berocket_account' ]) || count($submenu[ 'berocket_account' ]) == 0 ) {
98
  return $menu_ord;
99
  }
 
100
  $new_order_temp = array();
101
  $new_sub_order = array();
102
  $new_order_sort = array();
114
  continue;
115
  }
116
 
117
+ if ( ! empty($compatibility_hack[ str_replace( "edit.php?post_type=", "", $item[ 2 ] ) ]) ) {
118
  $item[ 0 ] = "<span class='berocket_admin_menu_custom_post_submenu'>" . $item[ 0 ] . "</span>";
119
  $new_sub_order[ $compatibility_hack[ str_replace( "edit.php?post_type=", "", $item[ 2 ] ) ] ][] = $item;
120
  } else {
berocket/libraries/feature_tab.php ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if( ! class_exists('BeRocket_framework_feature_tab') ) {
3
+ class BeRocket_framework_feature_tab {
4
+ public $info;
5
+ public $values;
6
+ public $options;
7
+ public $hook_name;
8
+ public $FILE;
9
+ function __construct($info, $values, $options) {
10
+ $this->info = $info;
11
+ $this->values = $values;
12
+ $this->options = $options;
13
+ if( ! empty($info['feature_template']) ) {
14
+ $this->FILE = $info['feature_template'];
15
+ } else {
16
+ $this->FILE = $info['plugin_dir'] . "/templates/features.php";
17
+ }
18
+ if( file_exists($this->FILE) ) {
19
+ add_action( 'admin_menu', array( $this, 'admin_menu' ) );
20
+ add_filter ( 'BeRocket_updater_menu_order_custom_post', array($this, 'menu_order_custom_post'), 5 );
21
+ }
22
+ }
23
+ public function admin_menu() {
24
+ register_setting($this->values[ 'option_page' ].'_features', $this->values[ 'settings_name' ].'_features');
25
+ if ( method_exists( 'BeRocket_updater', 'get_plugin_count' ) ) {
26
+ add_submenu_page(
27
+ 'berocket_account',
28
+ $this->info[ 'norm_name' ] . ' ' . __( 'Features', 'BeRocket_domain' ),
29
+ __( 'Features', 'BeRocket_domain' ),
30
+ 'manage_woocommerce',
31
+ $this->values[ 'option_page' ].'_features',
32
+ array( $this, 'option_form' )
33
+ );
34
+
35
+ return false;
36
+ }
37
+
38
+ return true;
39
+ }
40
+ public function option_form() {
41
+ echo '<div class="wrap">';
42
+ echo '<h3>'.$this->info[ 'norm_name' ] . ' ' . __( 'Features', 'BeRocket_domain' ).'</h3>';
43
+ include $this->FILE;
44
+ echo '</div>';
45
+ }
46
+ public function menu_order_custom_post($compatibility) {
47
+ $compatibility[$this->values[ 'option_page' ].'_features'] = $this->values[ 'option_page' ];
48
+ return $compatibility;
49
+ }
50
+ }
51
+ }
css/widget.css CHANGED
@@ -1248,3 +1248,9 @@ div.berocket_single_filter_widget div.berocket_aapf_widget-wrapper * {
1248
  .berocket_aapf_widget select {
1249
  overflow: auto!important;
1250
  }
 
 
 
 
 
 
1248
  .berocket_aapf_widget select {
1249
  overflow: auto!important;
1250
  }
1251
+ /* COMPATIBILITY WITH THEMES */
1252
+ /* FLATSOME */
1253
+ .berocket_aapf_widget-wrapper .slider:not(.flickity-enabled) {
1254
+ overflow: initial;
1255
+ white-space: initial;
1256
+ }
includes/custom_post.php CHANGED
@@ -404,6 +404,8 @@ class BeRocket_AAPF_single_filter extends BeRocket_custom_post_class {
404
  case "shortcode":
405
  echo "[br_filter_single filter_id={$post->ID}]";
406
  break;
 
 
407
  }
408
  }
409
  public function shortcode($atts = array()) {
@@ -662,6 +664,8 @@ class BeRocket_AAPF_group_filters extends BeRocket_custom_post_class {
662
  case "shortcode":
663
  echo "[br_filters_group group_id={$post->ID}]";
664
  break;
 
 
665
  }
666
  }
667
  public function shortcode($atts = array()) {
404
  case "shortcode":
405
  echo "[br_filter_single filter_id={$post->ID}]";
406
  break;
407
+ default:
408
+ break;
409
  }
410
  }
411
  public function shortcode($atts = array()) {
664
  case "shortcode":
665
  echo "[br_filters_group group_id={$post->ID}]";
666
  break;
667
+ default:
668
+ break;
669
  }
670
  }
671
  public function shortcode($atts = array()) {
includes/functions.php CHANGED
@@ -346,6 +346,8 @@ if( ! function_exists( 'br_aapf_parse_order_by' ) ) {
346
  $args['orderby'] = 'title';
347
  $args['order'] = $order == 'DESC' ? 'DESC' : 'ASC';
348
  break;
 
 
349
  }
350
  }
351
  }
346
  $args['orderby'] = 'title';
347
  $args['order'] = $order == 'DESC' ? 'DESC' : 'ASC';
348
  break;
349
+ default:
350
+ break;
351
  }
352
  }
353
  }
includes/widget.php CHANGED
@@ -687,7 +687,7 @@ class BeRocket_AAPF_Widget extends WP_Widget {
687
  if ( $wc_order_by == 'menu_order' and $order_values_by == 'Default' ) {
688
  foreach ( $terms as $term ) {
689
  if( isset($term->term_id) ) {
690
- $sort_array[] = get_woocommerce_term_meta( $term->term_id, 'order_' . $attribute );
691
  }
692
  }
693
  array_multisort( $sort_array, $terms );
@@ -1745,8 +1745,7 @@ if( BeRocket_AAPF::$debug_mode ) {
1745
  foreach($re as &$res_count) {
1746
  if( ! empty($results[$res_count->term_id] ) ) {
1747
  $res_count->count = $results[$res_count->term_id];
1748
- } elseif( $res_count->term_id == 'R__term_id__R' ) {
1749
- } else {
1750
  $res_count->count = 0;
1751
  }
1752
  if( $res_count->count > 0 ) {
@@ -2358,7 +2357,7 @@ if( BeRocket_AAPF::$debug_mode ) {
2358
  if ( ! empty($terms) && is_array( $terms ) && count( $terms ) ) {
2359
  if ( ! empty($sort_data['attribute']) and in_array($sort_data['attribute'], array('product_cat', 'berocket_brand')) and ! empty($sort_data['order_values_by']) and $sort_data['order_values_by'] == 'Default' ) {
2360
  foreach ( $terms as $term ) {
2361
- $element_of_sort = get_woocommerce_term_meta( $term->term_id, 'order', true );
2362
  if( is_array($element_of_sort) || $element_of_sort === false ) {
2363
  $sort_array[] = 0;
2364
  } else {
@@ -2408,6 +2407,8 @@ if( BeRocket_AAPF::$debug_mode ) {
2408
  case 'menu_order':
2409
  $get_terms_args['menu_order'] = 'ASC';
2410
  break;
 
 
2411
  }
2412
 
2413
  $terms2 = get_terms( $terms[0]->taxonomy, $get_terms_args );
@@ -2611,7 +2612,8 @@ if( BeRocket_AAPF::$debug_mode ) {
2611
  $categories = self::get_product_categories( @ json_decode( $instance['product_cat'] ) );
2612
  $categories = self::set_terms_on_same_level( $categories );
2613
  $tags = get_terms( 'product_tag' );
2614
- $custom_taxonomies = get_taxonomies( array( "_builtin" => false, "public" => true ) );
 
2615
 
2616
  include AAPF_TEMPLATE_PATH . "admin.php";
2617
  }
@@ -2683,8 +2685,7 @@ if( BeRocket_AAPF::$debug_mode ) {
2683
  if(isset($_POST['attributes']) && is_array($_POST['attributes'])) {
2684
  $attributes = array_combine ( $_POST['attributes'], $_POST['cat_limit'] );
2685
  foreach( $attributes as $attribute => $cat_limit ) {
2686
- if($attribute == 'price') {
2687
- } else {
2688
  $terms = FALSE;
2689
  if( $attribute == '_stock_status' ) {
2690
  $terms = array();
@@ -2806,7 +2807,7 @@ if( BeRocket_AAPF::$debug_mode ) {
2806
  foreach($add_to_args as $arg_name => $add_arg) {
2807
  $args[$arg_name] = $add_arg;
2808
  }
2809
- if( empty($br_options['slider_compatibility']) && ! empty($_POST['limits']) ) {
2810
  $args = apply_filters('berocket_aapf_convert_limits_to_tax_query', $args, $_POST['limits']);
2811
  }
2812
  if( ! isset($args['post__in']) ) {
@@ -2820,40 +2821,34 @@ if( BeRocket_AAPF::$debug_mode ) {
2820
  }
2821
  $args['meta_query'] = $meta_query;
2822
 
2823
- if( empty($br_options['slider_compatibility']) && ! empty($_POST['limits']) ) {
2824
  $args = apply_filters('berocket_aapf_convert_limits_to_tax_query', $args, $_POST['limits']);
2825
- } else {
2826
- $args['post__in'] = $BeRocket_AAPF->limits_filter( $args['post__in'] );
2827
  }
2828
  if( isset($_POST['price']) && is_array($_POST['price']) ) {
2829
  $_POST['price'] = apply_filters('berocket_min_max_filter', $_POST['price']);
2830
  }
2831
- if( empty($br_options['slider_compatibility']) ) {
2832
- $min = isset( $_POST['price'][0] ) ? floatval( $_POST['price'][0] ) : 0;
2833
- $max = isset( $_POST['price'][1] ) ? floatval( $_POST['price'][1] ) : 9999999999;
2834
- if ( wc_tax_enabled() && 'incl' === get_option( 'woocommerce_tax_display_shop' ) && ! wc_prices_include_tax() ) {
2835
- $tax_classes = array_merge( array( '' ), WC_Tax::get_tax_classes() );
2836
- $class_min = $min;
2837
 
2838
- foreach ( $tax_classes as $tax_class ) {
2839
- if ( $tax_rates = WC_Tax::get_rates( $tax_class ) ) {
2840
- $class_min = $min - WC_Tax::get_tax_total( WC_Tax::calc_exclusive_tax( $min, $tax_rates ) );
2841
- }
2842
  }
2843
- $min = $class_min;
2844
  }
2845
-
2846
- $args['meta_query'][] = array(
2847
- 'key' => apply_filters('berocket_price_filter_meta_key', '_price', 'widget_2847'),
2848
- 'value' => array( $min, $max ),
2849
- 'compare' => 'BETWEEN',
2850
- 'type' => 'DECIMAL',
2851
- 'price_filter' => true,
2852
- );
2853
- } else {
2854
- $args['post__in'] = $BeRocket_AAPF->price_filter( $args['post__in'] );
2855
  }
2856
- $args['post_status'] = 'publish';
 
 
 
 
 
 
 
 
2857
  if ( is_user_logged_in() ) {
2858
  $args['post_status'] .= '|private';
2859
  }
@@ -2974,8 +2969,7 @@ if( BeRocket_AAPF::$debug_mode ) {
2974
  if ( isset($_POST['attributes']) && is_array( $_POST['attributes'] ) ) {
2975
  $attributes = array_combine ( $_POST['attributes'], $_POST['cat_limit'] );
2976
  foreach ( $attributes as $attribute => $cat_limit ) {
2977
- if ( $attribute == 'price' ) {
2978
- } else {
2979
  $terms = FALSE;
2980
  if( $attribute == '_stock_status' ) {
2981
  $terms = array();
687
  if ( $wc_order_by == 'menu_order' and $order_values_by == 'Default' ) {
688
  foreach ( $terms as $term ) {
689
  if( isset($term->term_id) ) {
690
+ $sort_array[] = get_term_meta( $term->term_id, 'order_' . $attribute );
691
  }
692
  }
693
  array_multisort( $sort_array, $terms );
1745
  foreach($re as &$res_count) {
1746
  if( ! empty($results[$res_count->term_id] ) ) {
1747
  $res_count->count = $results[$res_count->term_id];
1748
+ } elseif( $res_count->term_id != 'R__term_id__R' ) {
 
1749
  $res_count->count = 0;
1750
  }
1751
  if( $res_count->count > 0 ) {
2357
  if ( ! empty($terms) && is_array( $terms ) && count( $terms ) ) {
2358
  if ( ! empty($sort_data['attribute']) and in_array($sort_data['attribute'], array('product_cat', 'berocket_brand')) and ! empty($sort_data['order_values_by']) and $sort_data['order_values_by'] == 'Default' ) {
2359
  foreach ( $terms as $term ) {
2360
+ $element_of_sort = get_term_meta( $term->term_id, 'order', true );
2361
  if( is_array($element_of_sort) || $element_of_sort === false ) {
2362
  $sort_array[] = 0;
2363
  } else {
2407
  case 'menu_order':
2408
  $get_terms_args['menu_order'] = 'ASC';
2409
  break;
2410
+ default:
2411
+ break;
2412
  }
2413
 
2414
  $terms2 = get_terms( $terms[0]->taxonomy, $get_terms_args );
2612
  $categories = self::get_product_categories( @ json_decode( $instance['product_cat'] ) );
2613
  $categories = self::set_terms_on_same_level( $categories );
2614
  $tags = get_terms( 'product_tag' );
2615
+ $custom_taxonomies = get_object_taxonomies( 'product' );
2616
+ $custom_taxonomies = array_combine($custom_taxonomies, $custom_taxonomies);
2617
 
2618
  include AAPF_TEMPLATE_PATH . "admin.php";
2619
  }
2685
  if(isset($_POST['attributes']) && is_array($_POST['attributes'])) {
2686
  $attributes = array_combine ( $_POST['attributes'], $_POST['cat_limit'] );
2687
  foreach( $attributes as $attribute => $cat_limit ) {
2688
+ if($attribute != 'price') {
 
2689
  $terms = FALSE;
2690
  if( $attribute == '_stock_status' ) {
2691
  $terms = array();
2807
  foreach($add_to_args as $arg_name => $add_arg) {
2808
  $args[$arg_name] = $add_arg;
2809
  }
2810
+ if( ! empty($_POST['limits']) ) {
2811
  $args = apply_filters('berocket_aapf_convert_limits_to_tax_query', $args, $_POST['limits']);
2812
  }
2813
  if( ! isset($args['post__in']) ) {
2821
  }
2822
  $args['meta_query'] = $meta_query;
2823
 
2824
+ if( ! empty($_POST['limits']) ) {
2825
  $args = apply_filters('berocket_aapf_convert_limits_to_tax_query', $args, $_POST['limits']);
 
 
2826
  }
2827
  if( isset($_POST['price']) && is_array($_POST['price']) ) {
2828
  $_POST['price'] = apply_filters('berocket_min_max_filter', $_POST['price']);
2829
  }
2830
+ $min = isset( $_POST['price'][0] ) ? floatval( $_POST['price'][0] ) : 0;
2831
+ $max = isset( $_POST['price'][1] ) ? floatval( $_POST['price'][1] ) : 9999999999;
2832
+ if ( wc_tax_enabled() && 'incl' === get_option( 'woocommerce_tax_display_shop' ) && ! wc_prices_include_tax() ) {
2833
+ $tax_classes = array_merge( array( '' ), WC_Tax::get_tax_classes() );
2834
+ $class_min = $min;
 
2835
 
2836
+ foreach ( $tax_classes as $tax_class ) {
2837
+ if ( $tax_rates = WC_Tax::get_rates( $tax_class ) ) {
2838
+ $class_min = $min - WC_Tax::get_tax_total( WC_Tax::calc_exclusive_tax( $min, $tax_rates ) );
 
2839
  }
 
2840
  }
2841
+ $min = $class_min;
 
 
 
 
 
 
 
 
 
2842
  }
2843
+
2844
+ $args['meta_query'][] = array(
2845
+ 'key' => apply_filters('berocket_price_filter_meta_key', '_price', 'widget_2847'),
2846
+ 'value' => array( $min, $max ),
2847
+ 'compare' => 'BETWEEN',
2848
+ 'type' => 'DECIMAL',
2849
+ 'price_filter' => true,
2850
+ );
2851
+ $args['post_status'] = 'publish';
2852
  if ( is_user_logged_in() ) {
2853
  $args['post_status'] .= '|private';
2854
  }
2969
  if ( isset($_POST['attributes']) && is_array( $_POST['attributes'] ) ) {
2970
  $attributes = array_combine ( $_POST['attributes'], $_POST['cat_limit'] );
2971
  foreach ( $attributes as $attribute => $cat_limit ) {
2972
+ if ( $attribute != 'price' ) {
 
2973
  $terms = FALSE;
2974
  if( $attribute == '_stock_status' ) {
2975
  $terms = array();
js/admin.js CHANGED
@@ -268,12 +268,16 @@ var berocket_admin_filter_types_by_attr = {
268
  || filter_type == 'product_cat'
269
  || filter_type == 'custom_taxonomy' && custom_taxonomy == 'product_cat' ) );
270
  berocket_aapf_show_hide( $('.berocket_aapf_widget_admin_non_price_tag_cloud', $parent),
271
- ( type == 'tag_cloud'
272
- || type == 'slider' ) );
 
 
273
  berocket_aapf_show_hide( $('.berocket_aapf_widget_admin_non_price_tag_cloud_select', $parent),
274
- ( type == 'tag_cloud'
 
 
275
  || type == 'slider'
276
- || type == 'select' ) );
277
  berocket_aapf_show_hide( $('.berocket_aapf_widget_admin_price_attribute', $parent),
278
  ( filter_type != 'attribute'
279
  || attribute != 'price' ) );
@@ -851,18 +855,21 @@ var br_savin_ajax = false;
851
  }
852
  parent.css('position', 'relative');
853
  parent.append($(html));
 
854
  });
855
  });
856
- $(document).on('submit', '.berocket_simple_filter_creation', function(event) {
857
- event.preventDefault();
858
- $this = $(this);
859
- var form_data = $this.serialize();
860
- $.post($this.attr('action'), form_data, function(result) {
861
- if( typeof(window[$this.data('function')]) == 'function' ) {
862
- window[$this.data('function')]($this, result);
863
- }
864
- }, 'json');
865
- });
 
 
866
  $(document).on('click', '.berocket_simple_filter_creation .berocket_simple_close', function(event) {
867
  event.preventDefault();
868
  $(this).parents('.berocket_simple_filter_creation').remove();
268
  || filter_type == 'product_cat'
269
  || filter_type == 'custom_taxonomy' && custom_taxonomy == 'product_cat' ) );
270
  berocket_aapf_show_hide( $('.berocket_aapf_widget_admin_non_price_tag_cloud', $parent),
271
+ ( filter_type == 'date'
272
+ || ( filter_type != 'date'
273
+ && ( type == 'tag_cloud'
274
+ || type == 'slider' ) ) ) );
275
  berocket_aapf_show_hide( $('.berocket_aapf_widget_admin_non_price_tag_cloud_select', $parent),
276
+ ( filter_type == 'date'
277
+ || ( filter_type != 'date'
278
+ && ( type == 'tag_cloud'
279
  || type == 'slider'
280
+ || type == 'select' ) ) ) );
281
  berocket_aapf_show_hide( $('.berocket_aapf_widget_admin_price_attribute', $parent),
282
  ( filter_type != 'attribute'
283
  || attribute != 'price' ) );
855
  }
856
  parent.css('position', 'relative');
857
  parent.append($(html));
858
+ berocket_add_submit_function_to_element();
859
  });
860
  });
861
+ function berocket_add_submit_function_to_element() {
862
+ $('.berocket_simple_filter_creation:not(.berocket_submit_event_added)').on('submit', function(event) {
863
+ event.preventDefault();
864
+ $this = $(this);
865
+ var form_data = $this.serialize();
866
+ $.post($this.attr('action'), form_data, function(result) {
867
+ if( typeof(window[$this.data('function')]) == 'function' ) {
868
+ window[$this.data('function')]($this, result);
869
+ }
870
+ }, 'json');
871
+ }).addClass('berocket_submit_event_added');
872
+ }
873
  $(document).on('click', '.berocket_simple_filter_creation .berocket_simple_close', function(event) {
874
  event.preventDefault();
875
  $(this).parents('.berocket_simple_filter_creation').remove();
js/widget.min.js CHANGED
@@ -482,15 +482,7 @@ var updateProducts, berocket_set_slider, berocket_product_recount, global_ajax_d
482
  if( the_ajax_script.pos_relative ) {
483
  $('.berocket_aapf_widget_loading').parent().css('position', 'relative');
484
  }
485
- if( $('.berocket_aapf_widget_loading_container').hasClass('berocket_aapf_widget_loading_container') ) {
486
- loading_top = ( $(document).scrollTop() + ( window.innerHeight / 2 ) ) - $('.berocket_aapf_widget_loading').offset().top;
487
- if ( loading_top < 100 && $('.berocket_aapf_widget_loading').height() < 200 ) {
488
- loading_top = 100;
489
- } else if ( loading_top > ( $('.berocket_aapf_widget_loading').height() - $('.berocket_aapf_widget_loading_container').height() ) ) {
490
- loading_top = $('.berocket_aapf_widget_loading').height() - $('.berocket_aapf_widget_loading_container').height();
491
- }
492
- $('.berocket_aapf_widget_loading_container').css('top', loading_top);
493
- }
494
 
495
  if( the_ajax_script.seo_friendly_urls && 'history' in window && 'pushState' in history ) {
496
  updateLocation(args, true);
@@ -1781,7 +1773,7 @@ var updateProducts, berocket_set_slider, berocket_product_recount, global_ajax_d
1781
  $('.berocket_aapf_description_div').remove();
1782
  });
1783
 
1784
- $(document).scroll( function() {
1785
  if( $('.berocket_aapf_widget_loading').length > 0 ) {
1786
  loading_top = ( ( $(document).scrollTop() + ( window.innerHeight / 2 ) ) - $('.berocket_aapf_widget_loading').offset().top );
1787
  if ( loading_top < 100 || $('.berocket_aapf_widget_loading').height() < 200 ) {
@@ -1792,7 +1784,8 @@ var updateProducts, berocket_set_slider, berocket_product_recount, global_ajax_d
1792
  $('.berocket_aapf_widget_loading_container').css('top', loading_top);
1793
  }
1794
  $('.berocket_aapf_description_div').remove();
1795
- });
 
1796
  $(document).on( 'click', function( event ) {
1797
  $('.berocket_aapf_product_count_desc').remove();
1798
  });
@@ -1838,6 +1831,7 @@ var updateProducts, berocket_set_slider, berocket_product_recount, global_ajax_d
1838
  });
1839
  $(document).on('change', 'select.orderby', function (event) {
1840
  event.preventDefault();
 
1841
  updateProducts(true);
1842
  });
1843
  }
482
  if( the_ajax_script.pos_relative ) {
483
  $('.berocket_aapf_widget_loading').parent().css('position', 'relative');
484
  }
485
+ berocket_aapf_widget_loading();
 
 
 
 
 
 
 
 
486
 
487
  if( the_ajax_script.seo_friendly_urls && 'history' in window && 'pushState' in history ) {
488
  updateLocation(args, true);
1773
  $('.berocket_aapf_description_div').remove();
1774
  });
1775
 
1776
+ function berocket_aapf_widget_loading() {
1777
  if( $('.berocket_aapf_widget_loading').length > 0 ) {
1778
  loading_top = ( ( $(document).scrollTop() + ( window.innerHeight / 2 ) ) - $('.berocket_aapf_widget_loading').offset().top );
1779
  if ( loading_top < 100 || $('.berocket_aapf_widget_loading').height() < 200 ) {
1784
  $('.berocket_aapf_widget_loading_container').css('top', loading_top);
1785
  }
1786
  $('.berocket_aapf_description_div').remove();
1787
+ }
1788
+ $(document).scroll( berocket_aapf_widget_loading );
1789
  $(document).on( 'click', function( event ) {
1790
  $('.berocket_aapf_product_count_desc').remove();
1791
  });
1831
  });
1832
  $(document).on('change', 'select.orderby', function (event) {
1833
  event.preventDefault();
1834
+ $('select.orderby').val($(this).val());
1835
  updateProducts(true);
1836
  });
1837
  }
main.php CHANGED
@@ -1380,6 +1380,8 @@ jQuery(document).on('change', '.br_selected_area_show', br_selected_area_show);
1380
  $BeRocket_AAPF_single_filter->wc_save_product_without_check($filter, $filter_post);
1381
  }
1382
  }
 
 
1383
  }
1384
 
1385
  update_option( 'br_filters_options', $option );
@@ -1534,9 +1536,6 @@ jQuery(document).on('change', '.br_selected_area_show', br_selected_area_show);
1534
  $is_wc_main_query = apply_filters('berocket_aapf_check_is_wc_main_query', $is_wc_main_query, $query, $is_shortcode);
1535
  if ( ( ( ! is_admin() && $is_wc_main_query ) || $is_shortcode ) && ( apply_filters( 'berocket_aapf_is_filtered_page_check', ! empty($_GET['filters']), 'apply_user_price', $query ) ) ) {
1536
  br_aapf_args_converter( $query );
1537
- if ( ! empty($_POST['price']) ) {
1538
- add_filter( 'loop_shop_post_in', array( $this, 'price_filter' ) );
1539
- }
1540
  if( ! empty($options['products_only']) ) {
1541
  add_filter('pre_option_woocommerce_shop_page_display', array( $this, 'display_products' ), 99999);
1542
  add_filter('pre_option_woocommerce_category_archive_display', array( $this, 'display_products' ), 99999);
@@ -1644,35 +1643,27 @@ jQuery(document).on('change', '.br_selected_area_show', br_selected_area_show);
1644
  }
1645
  $_POST['terms'] = $old_post_terms;
1646
  if ( ! empty($_POST['price']) ) {
1647
- if( empty($options['slider_compatibility']) ) {
1648
- $min = isset( $_POST['price'][0] ) ? floatval( $_POST['price'][0] ) : 0;
1649
- $max = isset( $_POST['price'][1] ) ? floatval( $_POST['price'][1] ) : 9999999999;
1650
- if ( wc_tax_enabled() && 'incl' === get_option( 'woocommerce_tax_display_shop' ) && ! wc_prices_include_tax() ) {
1651
- $tax_classes = array_merge( array( '' ), WC_Tax::get_tax_classes() );
1652
- $class_min = $min;
1653
-
1654
- foreach ( $tax_classes as $tax_class ) {
1655
- if ( $tax_rates = WC_Tax::get_rates( $tax_class ) ) {
1656
- $class_min = $min - WC_Tax::get_tax_total( WC_Tax::calc_exclusive_tax( $min, $tax_rates ) );
1657
- }
1658
  }
1659
- $min = $class_min;
1660
- }
1661
-
1662
- $args['meta_query'][] = array(
1663
- 'key' => apply_filters('berocket_price_filter_meta_key', '_price', 'main_1543'),
1664
- 'value' => array( $min, $max ),
1665
- 'compare' => 'BETWEEN',
1666
- 'type' => 'DECIMAL',
1667
- 'price_filter' => true,
1668
- );
1669
- } else {
1670
- if( $is_shortcode ) {
1671
- $args['meta_query'][] = array( 'key' => apply_filters('berocket_price_filter_meta_key', '_price', 'main_1551'), 'compare' => 'BETWEEN', 'type' => 'NUMERIC', 'value' => array( ($_POST['price'][0]), $_POST['price'][1] ) );
1672
- } else {
1673
- add_filter( 'loop_shop_post_in', array( $this, 'price_filter' ) );
1674
  }
 
1675
  }
 
 
 
 
 
 
 
 
1676
  }
1677
 
1678
  $args = apply_filters( 'berocket_aapf_filters_on_page_load', $args );
@@ -1802,101 +1793,6 @@ jQuery(document).on('change', '.br_selected_area_show', br_selected_area_show);
1802
  public function delete_products_not_on_sale($transient) {
1803
  delete_transient( 'wc_products_notonsale' );
1804
  }
1805
- public function price_filter( $filtered_posts ) {
1806
- $option = $this->get_aapf_option();
1807
- if( empty($option['slider_compatibility']) ) {
1808
- return $filtered_posts;
1809
- }
1810
- global $wpdb;
1811
-
1812
- if ( ! empty($_POST['price']) || ! empty($_POST['price_ranges']) ) {
1813
- $matched_products = array( 0 );
1814
- if ( ! empty($_POST['price']) ) {
1815
- $min = floatval( $_POST['price'][0] );
1816
- $max = floatval( $_POST['price'][1] );
1817
-
1818
- if( self::$debug_mode ) {
1819
- if( ! isset( self::$error_log['5_price'] ) )
1820
- {
1821
- self::$error_log['5_price'] = array();
1822
- }
1823
- self::$error_log['5_price']['select'] = 'from '.$min.' to '.$max;
1824
- $wpdb->show_errors();
1825
- }
1826
-
1827
- $matched_products_query = apply_filters( 'woocommerce_price_filter_results', $wpdb->get_results( $wpdb->prepare( "
1828
- SELECT DISTINCT ID, post_parent FROM $wpdb->posts
1829
- INNER JOIN $wpdb->postmeta ON ID = post_id
1830
- WHERE post_type = 'product' AND post_status = 'publish' AND meta_key = %s AND meta_value BETWEEN %d AND %d
1831
- ", apply_filters('berocket_price_filter_meta_key', '_price', 'main_1711'), $min, $max ), OBJECT_K ), $min, $max );
1832
- } else {
1833
- $values = $_POST['price_ranges'];
1834
- $between = '';
1835
- foreach ( $values as $value ) {
1836
- if ( $between ) {
1837
- $between .= ' OR ';
1838
- }
1839
- $between .= '( ';
1840
- $value = explode( '*', $value );
1841
- $value = $value;
1842
- $between .= 'meta_value BETWEEN '.($value[0] - 1).' AND '.$value[1];
1843
- $between .= ' )';
1844
- }
1845
-
1846
- $matched_products_query = apply_filters( 'woocommerce_price_ranges_filter_results', $wpdb->get_results( $wpdb->prepare( "
1847
- SELECT DISTINCT ID, post_parent FROM $wpdb->posts
1848
- INNER JOIN $wpdb->postmeta ON ID = post_id
1849
- WHERE post_type = 'product' AND post_status = 'publish' AND meta_key = %s AND ( $between )
1850
- ", apply_filters('berocket_price_filter_meta_key', '_price', 'main_1730') ), OBJECT_K ), $values );
1851
-
1852
- if( self::$debug_mode ) {
1853
- self::$error_log['000_select_status'][] = @ $wpdb->last_error;
1854
- self::$error_log['0099_price'][] = $wpdb->prepare( "
1855
- SELECT DISTINCT ID, post_parent FROM $wpdb->posts
1856
- INNER JOIN $wpdb->postmeta ON ID = post_id
1857
- WHERE post_type = 'product' AND post_status = 'publish' AND meta_key = %s AND ( $between )
1858
- ", apply_filters('berocket_price_filter_meta_key', '_price', 'main_1738') );
1859
- }
1860
- }
1861
-
1862
- if ( $matched_products_query ) {
1863
- foreach ( $matched_products_query as $product ) {
1864
- $matched_products[] = $product->ID;
1865
- // TODO: check if this is needed here. probably this is for product_variation
1866
- if ( $product->post_parent > 0 && ! in_array( $product->post_parent, $matched_products ) ) {
1867
- $matched_products[] = $product->post_parent;
1868
- }
1869
- }
1870
- unset( $matched_products_query );
1871
- }
1872
-
1873
- $matched_product_variations_query = apply_filters( 'woocommerce_price_filter_results', $wpdb->get_results( $wpdb->prepare( "
1874
- SELECT DISTINCT ID, post_parent FROM $wpdb->posts
1875
- INNER JOIN $wpdb->postmeta ON ID = post_id
1876
- WHERE post_type = 'product_variation' AND post_status = 'publish' AND meta_key = %s AND meta_value BETWEEN %d AND %d
1877
- ", apply_filters('berocket_price_filter_meta_key', '_price', 'main_1757'), $min, $max ), OBJECT_K ), $min, $max );
1878
-
1879
- if ( $matched_product_variations_query ) {
1880
- foreach ( $matched_product_variations_query as $product ) {
1881
- if ( $product->post_parent > 0 && ! in_array( $product->post_parent, $matched_products ) ) {
1882
- $matched_products[] = $product->post_parent;
1883
- }
1884
- }
1885
- unset( $matched_product_variations_query );
1886
- }
1887
-
1888
- // Filter the id's
1889
- if ( sizeof( $filtered_posts ) == 0 ) {
1890
- $filtered_posts = $matched_products;
1891
- } else {
1892
- // TODO: remove array_intersect from here and check for intersect in foreach
1893
- $filtered_posts = array_intersect( $filtered_posts, $matched_products );
1894
- }
1895
-
1896
- }
1897
-
1898
- return (array) $filtered_posts;
1899
- }
1900
  public function new_blog( $blog_id, $user_id, $domain, $path, $site_id, $meta ) {
1901
  global $wpdb;
1902
  if ( is_plugin_active_for_network( plugin_basename( __FILE__ ) ) ) {
1380
  $BeRocket_AAPF_single_filter->wc_save_product_without_check($filter, $filter_post);
1381
  }
1382
  }
1383
+ default:
1384
+ break;
1385
  }
1386
 
1387
  update_option( 'br_filters_options', $option );
1536
  $is_wc_main_query = apply_filters('berocket_aapf_check_is_wc_main_query', $is_wc_main_query, $query, $is_shortcode);
1537
  if ( ( ( ! is_admin() && $is_wc_main_query ) || $is_shortcode ) && ( apply_filters( 'berocket_aapf_is_filtered_page_check', ! empty($_GET['filters']), 'apply_user_price', $query ) ) ) {
1538
  br_aapf_args_converter( $query );
 
 
 
1539
  if( ! empty($options['products_only']) ) {
1540
  add_filter('pre_option_woocommerce_shop_page_display', array( $this, 'display_products' ), 99999);
1541
  add_filter('pre_option_woocommerce_category_archive_display', array( $this, 'display_products' ), 99999);
1643
  }
1644
  $_POST['terms'] = $old_post_terms;
1645
  if ( ! empty($_POST['price']) ) {
1646
+ $min = isset( $_POST['price'][0] ) ? floatval( $_POST['price'][0] ) : 0;
1647
+ $max = isset( $_POST['price'][1] ) ? floatval( $_POST['price'][1] ) : 9999999999;
1648
+ if ( wc_tax_enabled() && 'incl' === get_option( 'woocommerce_tax_display_shop' ) && ! wc_prices_include_tax() ) {
1649
+ $tax_classes = array_merge( array( '' ), WC_Tax::get_tax_classes() );
1650
+ $class_min = $min;
1651
+
1652
+ foreach ( $tax_classes as $tax_class ) {
1653
+ if ( $tax_rates = WC_Tax::get_rates( $tax_class ) ) {
1654
+ $class_min = $min - WC_Tax::get_tax_total( WC_Tax::calc_exclusive_tax( $min, $tax_rates ) );
 
 
1655
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1656
  }
1657
+ $min = $class_min;
1658
  }
1659
+
1660
+ $args['meta_query'][] = array(
1661
+ 'key' => apply_filters('berocket_price_filter_meta_key', '_price', 'main_1543'),
1662
+ 'value' => array( $min, $max ),
1663
+ 'compare' => 'BETWEEN',
1664
+ 'type' => 'DECIMAL',
1665
+ 'price_filter' => true,
1666
+ );
1667
  }
1668
 
1669
  $args = apply_filters( 'berocket_aapf_filters_on_page_load', $args );
1793
  public function delete_products_not_on_sale($transient) {
1794
  delete_transient( 'wc_products_notonsale' );
1795
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1796
  public function new_blog( $blog_id, $user_id, $domain, $path, $site_id, $meta ) {
1797
  global $wpdb;
1798
  if ( is_plugin_active_for_network( plugin_basename( __FILE__ ) ) ) {
readme.txt CHANGED
@@ -5,7 +5,7 @@ Donate link: http://berocket.com/product/woocommerce-ajax-products-filter
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.1.1
8
- Stable tag: 1.3.1.1
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -14,7 +14,7 @@ WooCommerce AJAX Product Filters - Advanced product filtering ability for your W
14
  == Description ==
15
 
16
  WooCommerce AJAX Product Filters - Advanced product filtering ability for your WooCommerce shop. Add unlimited filters with one widget.
17
- [](http://coderisk.com/wp/plugin/woocommerce-ajax-filters/RIPS-B_czgkRaNh)
18
  = New Feature in version 1.3 =
19
 
20
  &#9989; New admin settings design
@@ -187,6 +187,15 @@ You can try this plugin's admin side [here](http://berocket.com/product/woocomme
187
 
188
  == Changelog ==
189
 
 
 
 
 
 
 
 
 
 
190
  = 1.3.1.1 =
191
  * Fix - Categories order
192
 
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.1.1
8
+ Stable tag: 1.3.1.2
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
14
  == Description ==
15
 
16
  WooCommerce AJAX Product Filters - Advanced product filtering ability for your WooCommerce shop. Add unlimited filters with one widget.
17
+
18
  = New Feature in version 1.3 =
19
 
20
  &#9989; New admin settings design
187
 
188
  == Changelog ==
189
 
190
+ = 1.3.1.2 =
191
+ * Fix - Loading Icon
192
+ * Fix - Creation filters/groups in customizer
193
+ * Fix - Multiple sorting form
194
+ * Fix - Better compatibility with Flatsome theme
195
+ * Fix - Security problem
196
+ * Fix - Code optimization
197
+ * Fix - Addon Filtering Conditions
198
+
199
  = 1.3.1.1 =
200
  * Fix - Categories order
201
 
templates/admin-settings.php DELETED
@@ -1,1713 +0,0 @@
1
- <?php
2
- $dplugin_name = 'WooCommerce AJAX Products Filter';
3
- $dplugin_link = 'http://berocket.com/product/woocommerce-ajax-products-filter';
4
- $dplugin_price = 26;
5
- $dplugin_desc = '';
6
- @ include 'settings_head.php';
7
- $BeRocket_AAPF = BeRocket_AAPF::getInstance();
8
- $defaults = $BeRocket_AAPF->defaults;
9
- ?>
10
- <div class="wrap">
11
- <form class="berocket_aapf_setting_form" method="post" action="options.php">
12
- <?php
13
- settings_fields('br_filters_plugin_options');
14
- $options = BeRocket_AAPF::get_aapf_option();
15
- $fonts_list = g_fonts_list();
16
-
17
- $designables = br_aapf_get_styled();
18
- $tabs_array = array('general', 'elements', 'selectors', 'seo', 'advanced', 'design', 'javascript', 'customcss', 'shortcode');
19
- ?>
20
- <h2 class="nav-tab-wrapper filter_settings_tabs">
21
- <a href="#general" class="nav-tab <?php if($options['br_opened_tab'] == 'general' || !in_array( $options['br_opened_tab'], $tabs_array ) ) echo 'nav-tab-active'; ?>"><?php _e('General', 'BeRocket_AJAX_domain') ?></a>
22
- <a href="#elements" class="nav-tab <?php if($options['br_opened_tab'] == 'elements' ) echo 'nav-tab-active'; ?>"><?php _e('Elements', 'BeRocket_AJAX_domain') ?></a>
23
- <a href="#selectors" class="nav-tab <?php if($options['br_opened_tab'] == 'selectors' ) echo 'nav-tab-active'; ?>"><?php _e('Selectors', 'BeRocket_AJAX_domain') ?></a>
24
- <a href="<?php echo admin_url( 'edit.php?post_type=br_filters_group' ); ?>" target="_blank" class="link-tab"><?php _e('Filters Group', 'BeRocket_AJAX_domain') ?></a>
25
- <a href="#seo" class="nav-tab <?php if($options['br_opened_tab'] == 'seo' ) echo 'nav-tab-active'; ?>"><?php _e('SEO', 'BeRocket_AJAX_domain') ?></a>
26
- <a href="#advanced" class="nav-tab <?php if($options['br_opened_tab'] == 'advanced' ) echo 'nav-tab-active'; ?>"><?php _e('Advanced', 'BeRocket_AJAX_domain') ?></a>
27
- <a href="#design" class="nav-tab <?php if($options['br_opened_tab'] == 'design' ) echo 'nav-tab-active'; ?>"><?php _e('Design', 'BeRocket_AJAX_domain') ?></a>
28
- <a href="#javascript" class="nav-tab <?php if($options['br_opened_tab'] == 'javascript' ) echo 'nav-tab-active'; ?>"><?php _e('JavaScript/CSS', 'BeRocket_AJAX_domain') ?></a>
29
- </h2>
30
- <div id="general" class="tab-item <?php if($options['br_opened_tab'] == 'general' || !in_array( $options['br_opened_tab'], $tabs_array ) ) echo 'current'; ?>">
31
- <table class="form-table">
32
- <?php if( apply_filters('br_filters_options-setup_wizard-show', true) ) { ?>
33
- <tr>
34
- <th scope="row"><?php _e('SETUP WIZARD', 'BeRocket_AJAX_domain') ?></th>
35
- <td>
36
- <a class="button" href="<?php echo admin_url( 'admin.php?page=br-aapf-setup' ); ?>"><?php _e('RUN SETUP WIZARD', 'BeRocket_AJAX_domain') ?></a>
37
- <div>
38
- <?php _e('Run it to setup plugin options step by step', 'BeRocket_AJAX_domain') ?>
39
- </div>
40
- </td>
41
- </tr>
42
- <?php } ?>
43
-
44
- <tr>
45
- <th scope="row"><?php _e('"No Products" message', 'BeRocket_AJAX_domain') ?></th>
46
- <td>
47
- <input size="50" name="br_filters_options[no_products_message]" type='text' value='<?php echo $options['no_products_message']?>'/>
48
- <br />
49
- <span style="color:#666666;margin-left:2px;"><?php _e('Text that will be shown if no products found', 'BeRocket_AJAX_domain') ?></span>
50
- </td>
51
- </tr>
52
- <tr<?php 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' ) ) echo ' style="display: none;"'?>>
53
- <th><?php _e( 'Products Per Page', 'BeRocket_AJAX_domain' ) ?></th>
54
- <td>
55
- <input name="br_filters_options[products_per_page]" value="<?php echo br_get_value_from_array($options,'products_per_page'); ?>" type="number">
56
- </td>
57
- </tr>
58
- <tr>
59
- <th><?php _e( 'Attribute Values count', 'BeRocket_AJAX_domain' ) ?></th>
60
- <td>
61
- <input name="br_filters_options[attribute_count]" value="<?php echo br_get_value_from_array($options,'attribute_count'); ?>" type="number">
62
- <?php _e( 'Attribute Values count that will be displayed. Other values will be hidden and can be displayed by pressing the button. Option <strong>Hide "Show/Hide value(s)" button</strong> must be disabled', 'BeRocket_AJAX_domain' ) ?>
63
- </td>
64
- </tr>
65
- <tr>
66
- <th scope="row"><?php _e('Sorting control', 'BeRocket_AJAX_domain') ?></th>
67
- <td>
68
- <input name="br_filters_options[control_sorting]" type='checkbox' value='1' <?php if( ! empty($options['control_sorting']) ) echo "checked='checked'";?>/>
69
- <span style="color:#666666;margin-left:2px;"><?php _e("Take control over WooCommerce's sorting selectbox?", 'BeRocket_AJAX_domain') ?></span>
70
- </td>
71
- </tr>
72
- <tr>
73
- <th scope="row"><?php _e('Hide values', 'BeRocket_AJAX_domain') ?></th>
74
- <td>
75
- <input name="br_filters_options[hide_value][o]" type='checkbox' value='1' <?php if( ! empty($options['hide_value']['o']) ) echo "checked='checked'";?>/>
76
- <span style="color:#666666;margin-left:2px;"><?php _e('Hide values without products', 'BeRocket_AJAX_domain') ?></span><br>
77
- <input name="br_filters_options[hide_value][sel]" type='checkbox' value='1' <?php if( ! empty($options['hide_value']['sel']) ) echo "checked='checked'";?>/>
78
- <span style="color:#666666;margin-left:2px;"><?php _e('Hide selected values', 'BeRocket_AJAX_domain') ?></span><br>
79
- <input name="br_filters_options[hide_value][empty]" type='checkbox' value='1' <?php if( ! empty($options['hide_value']['empty']) ) echo "checked='checked'";?>/>
80
- <span style="color:#666666;margin-left:2px;"><?php _e('Hide empty widget', 'BeRocket_AJAX_domain') ?></span><br>
81
- <input name="br_filters_options[hide_value][button]" type='checkbox' value='1' <?php if( ! empty($options['hide_value']['button']) ) echo "checked='checked'";?>/>
82
- <span style="color:#666666;margin-left:2px;"><?php _e('Hide "Show/Hide value(s)" button', 'BeRocket_AJAX_domain') ?></span>
83
- </td>
84
- </tr>
85
- <tr>
86
- <th scope="row"><?php _e('Jump to first page', 'BeRocket_AJAX_domain') ?></th>
87
- <td>
88
- <input name="br_filters_options[first_page_jump]" type='checkbox' value='1' <?php if( ! empty($options['first_page_jump']) ) echo "checked='checked'";?>/>
89
- <span style="color:#666666;margin-left:2px;"><?php _e('Check if you want load first page after filters change', 'BeRocket_AJAX_domain') ?></span>
90
- </td>
91
- </tr>
92
- <tr>
93
- <th scope="row"><?php _e('Scroll page to the top', 'BeRocket_AJAX_domain') ?></th>
94
- <td>
95
- <input class="berocket_scroll_shop_top" name="br_filters_options[scroll_shop_top]" type='checkbox' value='1' <?php if( ! empty($options['scroll_shop_top']) ) echo "checked='checked'";?>/>
96
- <span style="color:#666666;margin-left:2px;"><?php _e('Check if you want scroll page to the top of shop after filters change', 'BeRocket_AJAX_domain') ?></span>
97
- </td>
98
- <td <?php if( empty($options['scroll_shop_top']) ) echo ' style="display:none;"';?>>
99
- <input name="br_filters_options[scroll_shop_top_px]" type='number' value='<?php echo ( ! empty($options['scroll_shop_top_px']) ? $options['scroll_shop_top_px'] : $defaults['scroll_shop_top_px'] ); ?>'/>
100
- <span style="color:#666666;margin-left:2px;"><?php _e('px from products top.', 'BeRocket_AJAX_domain') ?></span><br>
101
- <span><?php _e('Use this to fix top scroll.', 'BeRocket_AJAX_domain') ?></span>
102
- </td>
103
- </tr>
104
- <tr>
105
- <th scope="row"><?php _e('Select2', 'BeRocket_AJAX_domain') ?></th>
106
- <td>
107
- <input name="br_filters_options[use_select2]" type='checkbox' value='1' <?php if( ! empty($options['use_select2']) ) echo "checked='checked'";?>/>
108
- <span style="color:#666666;margin-left:2px;"><?php _e('Use Select2 script for dropdown menu', 'BeRocket_AJAX_domain') ?></span>
109
- <p>
110
- <input name="br_filters_options[fixed_select2]" type='checkbox' value='1' <?php if( ! empty($options['fixed_select2']) ) echo "checked='checked'";?>/>
111
- <span style="color:#666666;margin-left:2px;"><?php _e('Fixed CSS styles for Select2 (do not enable if Select2 work correct. Option can break Select2 in other plugins or themes)', 'BeRocket_AJAX_domain') ?></span>
112
- </p>
113
- </td>
114
- </tr>
115
- <tr>
116
- <th scope="row"><?php _e('Reload amount of products', 'BeRocket_AJAX_domain') ?></th>
117
- <td>
118
- <input class="reload_amount_of_products" name="br_filters_options[recount_products]" type='checkbox' value='1' <?php if( ! empty($options['recount_products']) ) echo "checked='checked'";?>/>
119
- <span style="color:#666666;margin-left:2px;"><?php _e('Use filters on products count display', 'BeRocket_AJAX_domain') ?></span>
120
- <p class="notice notice-error"><?php _e('Can slow down page load and filtering speed. Also do not use it with more then 5000 products.', 'BeRocket_AJAX_domain') ?></p>
121
- </td>
122
- </tr>
123
- <tr>
124
- <th scope="row"><?php _e('Data cache', 'BeRocket_AJAX_domain') ?></th>
125
- <td>
126
- <select name="br_filters_options[object_cache]">
127
- <option <?php echo ( empty($options['object_cache']) ) ? 'selected' : '' ?> value=""><?php _e('Disable', 'BeRocket_AJAX_domain') ?></option>
128
- <option <?php echo ( br_get_value_from_array($options, 'object_cache') == 'wordpress' ) ? 'selected' : '' ?> value="wordpress"><?php _e('WordPress Cache', 'BeRocket_AJAX_domain') ?></option>
129
- <option <?php echo ( br_get_value_from_array($options, 'object_cache') == 'persistent' ) ? 'selected' : '' ?> value="persistent"><?php _e('Persistent Cache Plugins', 'BeRocket_AJAX_domain') ?></option>
130
- </select>
131
- </td>
132
- </tr>
133
- <tr>
134
- <th scope="row"><?php _e('Thousand Separator', 'BeRocket_AJAX_domain') ?></th>
135
- <td>
136
- <input name="br_filters_options[number_style][thousand_separate]" type='text' value='<?php echo br_get_value_from_array($options, array('number_style', 'thousand_separate'))?>'/>
137
- </td>
138
- </tr>
139
- <tr>
140
- <th scope="row"><?php _e('Decimal Separator', 'BeRocket_AJAX_domain') ?></th>
141
- <td>
142
- <input name="br_filters_options[number_style][decimal_separate]" type='text' value='<?php echo br_get_value_from_array($options, array('number_style', 'decimal_separate'))?>'/>
143
- </td>
144
- </tr>
145
- <tr>
146
- <th scope="row"><?php _e('Number Of Decimal', 'BeRocket_AJAX_domain') ?></th>
147
- <td>
148
- <input name="br_filters_options[number_style][decimal_number]" min="0" type='number' value='<?php echo br_get_value_from_array($options, array('number_style', 'decimal_number'))?>'/>
149
- </td>
150
- </tr>
151
- </table>
152
- <p class="submit">
153
- <input type="submit" class="button-primary" value="<?php _e('Save Changes', 'BeRocket_AJAX_domain') ?>" />
154
- </p>
155
- </div>
156
- <div id="elements" class="tab-item <?php if($options['br_opened_tab'] == 'elements' ) echo 'current'; ?>">
157
- <table class="form-table">
158
- <tr>
159
- <th scope="row"><?php _e('Elements position', 'BeRocket_AJAX_domain') ?></th>
160
- <td>
161
- <select name="br_filters_options[elements_position_hook]">
162
- <?php
163
- $elements_position_hook = array(
164
- 'woocommerce_archive_description' => __('WooCommerce Description(in header)', 'BeRocket_AJAX_domain'),
165
- 'woocommerce_before_shop_loop' => __('WooCommerce Before Shop Loop', 'BeRocket_AJAX_domain'),
166
- 'woocommerce_after_shop_loop' => __('WooCommerce After Shop Loop', 'BeRocket_AJAX_domain')
167
- );
168
- $current_elements_hook = br_get_value_from_array($options, 'elements_position_hook', 'woocommerce_archive_description');
169
- foreach($elements_position_hook as $hook_slug => $hook_name) {
170
- echo '<option value="' . $hook_slug . '"' . ($current_elements_hook == $hook_slug ? ' selected' : '') . '>' . $hook_name . '</option>';
171
- }
172
- ?>
173
- </select>
174
- </td>
175
- </tr>
176
- <tr>
177
- <th scope="row"><?php _e('Show selected filters', 'BeRocket_AJAX_domain') ?></th>
178
- <td>
179
- <input name="br_filters_options[selected_area_show]" type='checkbox' value='1' <?php if( ! empty($options['selected_area_show']) ) echo "checked='checked'";?>/>
180
- <span style="color:#666666;margin-left:2px;"><?php _e('Show selected filters above products', 'BeRocket_AJAX_domain') ?></span>
181
- <p>
182
- <input name="br_filters_options[selected_area_hide_empty]" type='checkbox' value='1' <?php if( ! empty($options['selected_area_hide_empty']) ) echo "checked='checked'";?>/>
183
- <span style="color:#666666;margin-left:2px;"><?php _e('Hide selected filters area if nothing selected(affect only area above products)', 'BeRocket_AJAX_domain') ?></span>
184
- </p>
185
- </td>
186
- </tr>
187
- <tr>
188
- <th scope="row"><?php _e('Show products count before filtering', 'BeRocket_AJAX_domain') ?></th>
189
- <td>
190
- <input name="br_filters_options[ub_product_count]" type='checkbox' value='1' <?php if( ! empty($options['ub_product_count']) ) echo "checked='checked'";?>/>
191
- <span style="color:#666666;margin-left:2px;"><?php _e('Show products count before filtering, when using update button', 'BeRocket_AJAX_domain') ?></span>
192
- <p>
193
- <label><?php _e('Text that means products', 'BeRocket_AJAX_domain') ?></label>
194
- <input name="br_filters_options[ub_product_text]" type='text' value='<?php echo br_get_value_from_array($options, 'ub_product_text');?>'/>
195
- </p>
196
- <p>
197
- <label><?php _e('Text for show button', 'BeRocket_AJAX_domain') ?></label>
198
- <input name="br_filters_options[ub_product_button_text]" type='text' value='<?php echo br_get_value_from_array($options, 'ub_product_button_text');?>'/>
199
- </p>
200
- </td>
201
- </tr>
202
- <tr>
203
- <th scope="row"><?php _e('Elements above products', 'BeRocket_AJAX_domain') ?></th>
204
- <td>
205
- <?php
206
- $posts_args = array(
207
- 'posts_per_page' => -1,
208
- 'offset' => 0,
209
- 'category' => '',
210
- 'category_name' => '',
211
- 'include' => '',
212
- 'exclude' => '',
213
- 'meta_key' => '',
214
- 'meta_value' => '',
215
- 'post_type' => 'br_filters_group',
216
- 'post_mime_type' => '',
217
- 'post_parent' => '',
218
- 'author' => '',
219
- 'post_status' => 'publish',
220
- 'fields' => 'ids',
221
- 'suppress_filters' => false
222
- );
223
- $posts_array = new WP_Query($posts_args);
224
- $br_filters_group = $posts_array->posts;
225
- echo '<div>' . __('Group', 'BeRocket_AJAX_domain') . '<select>';
226
- foreach($br_filters_group as $post_id) {
227
- echo '<option data-name="' . get_the_title($post_id) . '" value="' . $post_id . '">' . get_the_title($post_id) . ' (ID:' . $post_id . ')</option>';
228
- }
229
- echo '</select><button class="button berocket_elements_above_group" type="button">'.__('Add group', 'BeRocket_AJAX_domain').'</button></div>';
230
- echo '<ul class="berocket_elements_above_products">';
231
- if( is_array(br_get_value_from_array($options, 'elements_above_products')) ) {
232
- foreach($options['elements_above_products'] as $post_id) {
233
- $post_type = get_post_type($post_id);
234
- echo '<li class="berocket_elements_added_' . $post_id . '"><fa class="fa fa-bars"></fa>
235
- <input type="hidden" name="br_filters_options[elements_above_products][]" value="' . $post_id . '">
236
- ' . get_the_title($post_id) . ' (ID:' . $post_id . ')
237
- <i class="fa fa-times"></i>
238
- </li>';
239
- }
240
- }
241
- echo '</ul>';
242
- wp_enqueue_script('jquery-color');
243
- wp_enqueue_script('jquery-ui-sortable');
244
- ?>
245
- <script>
246
- jQuery(document).on('click', '.berocket_elements_above_group', function(event) {
247
- event.preventDefault();
248
- var selected = jQuery(this).prev().find(':selected');
249
- post_id = selected.val();
250
- post_title = selected.text();
251
- if( ! jQuery('.berocket_elements_added_'+post_id).length ) {
252
- var html = '<li class="berocket_elements_added_'+post_id+'"><fa class="fa fa-bars"></fa>';
253
- html += '<input type="hidden" name="br_filters_options[elements_above_products][]" value="'+post_id+'">';
254
- html += post_title;
255
- html += '<i class="fa fa-times"></i></li>';
256
- jQuery('.berocket_elements_above_products').append(jQuery(html));
257
- } else {
258
- jQuery('.berocket_elements_added_'+post_id).css('background-color', '#ee3333').clearQueue().animate({backgroundColor:'#eeeeee'}, 1000);
259
- }
260
- });
261
- jQuery(document).on('click', '.berocket_elements_above_products .fa-times', function(event) {
262
- jQuery(this).parents('li').first().remove();
263
- });
264
- jQuery(document).ready(function() {
265
- if(typeof(jQuery( ".berocket_elements_above_products" ).sortable) == 'function') {
266
- jQuery( ".berocket_elements_above_products" ).sortable({axis:"y", handle:".fa-bars", placeholder: "berocket_sortable_space"});
267
- }
268
- });
269
- </script>
270
- <style>
271
- .berocket_elements_above_products li {
272
- font-size: 2em;
273
- border: 2px solid rgb(153, 153, 153);
274
- background-color: rgb(238, 238, 238);
275
- padding: 5px;
276
- line-height: 1.1em;
277
- }
278
- .berocket_elements_above_products li .fa-bars {
279
- margin-right: 0.5em;
280
- cursor: move;
281
- }
282
- .berocket_elements_above_products small {
283
- font-size: 0.5em;
284
- line-height: 2em;
285
- vertical-align: middle;
286
- }
287
- .berocket_elements_above_products li .fa-times {
288
- margin-left: 0.5em;
289
- cursor: pointer;
290
- float: right;
291
- }
292
- .berocket_elements_above_products li .fa-times:hover {
293
- color: black;
294
- }
295
- .berocket_elements_above_products .berocket_edit_filter {
296
- vertical-align: middle;
297
- font-size: 0.5em;
298
- float: right;
299
- line-height: 2em;
300
- height: 2em;
301
- display: inline-block;
302
- }
303
- .berocket_elements_above_products .berocket_sortable_space {
304
- border: 2px dashed #aaa;
305
- background: white;
306
- font-size: 2em;
307
- height: 1.1em;
308
- box-sizing: content-box;
309
- padding: 5px;
310
- }
311
- </style>
312
- </td>
313
- </tr>
314
- </table>
315
- <p class="submit">
316
- <input type="submit" class="button-primary" value="<?php _e('Save Changes', 'BeRocket_AJAX_domain') ?>" />
317
- </p>
318
- </div>
319
- <div id="selectors" class="tab-item <?php if($options['br_opened_tab'] == 'selectors' ) echo 'current'; ?>">
320
- <table class="form-table">
321
- <tr>
322
- <th scope="row"><?php _e('Get selectors automatically', 'BeRocket_AJAX_domain') ?></th>
323
- <td>
324
- <?php echo BeRocket_wizard_generate_autoselectors(array('products' => '.berocket_aapf_products_selector', 'pagination' => '.berocket_aapf_pagination_selector', 'result_count' => '.berocket_aapf_product_count_selector')); ?>
325
- <ol>
326
- <li><?php _e('Run Auto-selector', 'BeRocket_AJAX_domain') ?></li>
327
- <li><?php _e('Wait until end <strong style="color:red;">do not close this page</strong>', 'BeRocket_AJAX_domain') ?></li>
328
- <li><?php _e('Save settings with new selectors', 'BeRocket_AJAX_domain') ?></li>
329
- </ol>
330
- </td>
331
- </tr>
332
- <tr>
333
- <th scope="row"><?php _e('Products selector', 'BeRocket_AJAX_domain') ?></th>
334
- <td>
335
- <input class="berocket_aapf_products_selector" size="30" name="br_filters_options[products_holder_id]" type='text' value='<?php echo ! empty($options['products_holder_id'])?$options['products_holder_id']:$defaults['products_holder_id']?>'/>
336
- <br />
337
- <span style="color:#666666;margin-left:2px;"><?php _e("Selector for tag that is holding products. Don't change this if you don't know what it is", 'BeRocket_AJAX_domain') ?></span>
338
- </td>
339
- </tr>
340
- <tr>
341
- <th scope="row"><?php _e('Product count selector', 'BeRocket_AJAX_domain') ?></th>
342
- <td>
343
- <input class="berocket_aapf_product_count_selector" size="30" name="br_filters_options[woocommerce_result_count_class]" type='text' value='<?php echo ! empty($options['woocommerce_result_count_class'])?$options['woocommerce_result_count_class']:$defaults['woocommerce_result_count_class']?>'/>
344
- <br />
345
- <span style="color:#666666;margin-left:2px;"><?php _e('Selector for tag with product result count("Showing 1–8 of 61 results"). Don\'t change this if you don\'t know what it is', 'BeRocket_AJAX_domain') ?></span>
346
- <?php if( apply_filters('br_filters_options-woocommerce_removes_result_count-show', true) ) { ?>
347
- <div class="settings-sub-option">
348
- <input name="br_filters_options[woocommerce_removes][result_count]" type='checkbox' value='1' <?php if( ! empty($options['woocommerce_removes']['result_count']) ) echo "checked='checked'";?>/>
349
- <span style="color:#666666;margin-left:2px;"><?php _e('Removed product count. Enable if page doesn\'t have product count block', 'BeRocket_AJAX_domain') ?></span>
350
- </div>
351
- <?php } ?>
352
- </td>
353
- </tr>
354
- <tr>
355
- <th scope="row"><?php _e('Product order by selector', 'BeRocket_AJAX_domain') ?></th>
356
- <td>
357
- <input size="30" name="br_filters_options[woocommerce_ordering_class]" type='text' value='<?php echo ! empty($options['woocommerce_ordering_class'])?$options['woocommerce_ordering_class']:$defaults['woocommerce_ordering_class']?>'/>
358
- <br />
359
- <span style="color:#666666;margin-left:2px;"><?php _e("Selector for order by form with drop down menu. Don't change this if you don't know what it is", 'BeRocket_AJAX_domain') ?></span>
360
- <?php if( apply_filters('br_filters_options-woocommerce_removes_ordering-show', true) ) { ?>
361
- <div class="settings-sub-option">
362
- <input name="br_filters_options[woocommerce_removes][ordering]" type='checkbox' value='1' <?php if( ! empty($options['woocommerce_removes']['ordering']) ) echo "checked='checked'";?>/>
363
- <span style="color:#666666;margin-left:2px;"><?php _e('Removed order by drop down menu. Enable if page doesn\'t have order by drop down menu', 'BeRocket_AJAX_domain') ?></span>
364
- </div>
365
- <?php } ?>
366
- </td>
367
- </tr>
368
- <tr>
369
- <th scope="row"><?php _e('Products pagination selector', 'BeRocket_AJAX_domain') ?></th>
370
- <td>
371
- <input class="berocket_aapf_pagination_selector" size="30" name="br_filters_options[woocommerce_pagination_class]" type='text' value='<?php echo ! empty($options['woocommerce_pagination_class'])?$options['woocommerce_pagination_class']:$defaults['woocommerce_pagination_class']?>'/>
372
- <br />
373
- <span style="color:#666666;margin-left:2px;"><?php _e("Selector for tag that is holding products. Don't change this if you don't know what it is", 'BeRocket_AJAX_domain') ?></span>
374
- <?php if( apply_filters('br_filters_options-woocommerce_removes_pagination-show', true) ) { ?>
375
- <div class="settings-sub-option">
376
- <input name="br_filters_options[woocommerce_removes][pagination]" type='checkbox' value='1' <?php if( ! empty($options['woocommerce_removes']['pagination']) ) echo "checked='checked'";?>/>
377
- <span style="color:#666666;margin-left:2px;"><?php _e('Removed pagination. Enable if page doesn\'t have pagination', 'BeRocket_AJAX_domain') ?></span>
378
- </div>
379
- <?php } ?>
380
- </td>
381
- </tr>
382
- </table>
383
- <p class="submit">
384
- <input type="submit" class="button-primary" value="<?php _e('Save Changes', 'BeRocket_AJAX_domain') ?>" />
385
- </p>
386
- </div>
387
- <div id="seo" class="tab-item <?php if($options['br_opened_tab'] == 'seo' ) echo 'current'; ?>">
388
- <table class="form-table">
389
- <tr>
390
- <th scope="row"><?php _e('SEO friendly urls', 'BeRocket_AJAX_domain') ?></th>
391
- <td>
392
- <input class="berocket_seo_friendly_urls" name="br_filters_options[seo_friendly_urls]" type='checkbox' value='1' <?php if( ! empty($options['seo_friendly_urls']) ) echo "checked='checked'";?>/>
393
- <span style="color:#666666;margin-left:2px;"><?php _e("If this option is on url will be changed when filter is selected/changed", 'BeRocket_AJAX_domain') ?></span>
394
- </td>
395
- </tr>
396
- <tr>
397
- <th scope="row"><?php _e('Use links in checkbox and radio filters', 'BeRocket_AJAX_domain') ?></th>
398
- <td>
399
- <input class="berocket_use_links_filters" name="br_filters_options[use_links_filters]" type='checkbox' value='1' <?php if( ! empty($options['use_links_filters']) ) echo "checked='checked'";?>/>
400
- </td>
401
- </tr>
402
- <tr>
403
- <th scope="row"><?php _e('Use slug in URL', 'BeRocket_AJAX_domain') ?></th>
404
- <td>
405
- <input class="berocket_use_slug_in_url" name="br_filters_options[slug_urls]" type='checkbox' value='1' <?php if( ! empty($options['slug_urls']) ) echo "checked='checked'";?>/>
406
- <span style="color:#666666;margin-left:2px;"><?php _e("Use attribute slug instead ID", 'BeRocket_AJAX_domain') ?></span>
407
- </td>
408
- </tr>
409
- <tr>
410
- <th scope="row"><?php _e('Nice URL', 'BeRocket_AJAX_domain') ?></th>
411
- <td>
412
- <input class="berocket_nice_url" name="br_filters_options[nice_urls]" type='checkbox' value='1' <?php if( ! empty($options['nice_urls']) ) echo "checked='checked'";?>/>
413
- <span style="color:#666666;margin-left:2px;"><?php _e("Works only with SEO friendly urls. WordPress permalinks must be set to Post name(Custom structure: /%postname%/ )", 'BeRocket_AJAX_domain') ?></span>
414
- </td>
415
- </tr>
416
- <tr>
417
- <th scope="row"><?php _e('Canonicalization', 'BeRocket_AJAX_domain') ?></th>
418
- <td>
419
- <input class="berocket_canonicalization" name="br_filters_options[canonicalization]" type='checkbox' value='1' <?php if( ! empty($options['canonicalization']) ) echo "checked='checked'";?>/>
420
- <span style="color:#666666;margin-left:2px;"><?php _e("Use canonical tag on WooCommerce pages", 'BeRocket_AJAX_domain') ?></span>
421
- </td>
422
- </tr>
423
- <tr>
424
- <th scope="row"><?php _e('URL decode', 'BeRocket_AJAX_domain') ?></th>
425
- <td>
426
- <input class="berocket_uri_decode" name="br_filters_options[seo_uri_decode]" type='checkbox' value='1' <?php if( ! empty($options['seo_uri_decode']) ) echo "checked='checked'";?>/>
427
- <span style="color:#666666;margin-left:2px;"><?php _e("Decode all symbols in URL to prevent errors on server side", 'BeRocket_AJAX_domain') ?></span>
428
- </td>
429
- </tr>
430
- </table>
431
- <p class="submit">
432
- <input type="submit" class="button-primary" value="<?php _e('Save Changes', 'BeRocket_AJAX_domain') ?>" />
433
- </p>
434
- </div>
435
- <div id="advanced" class="tab-item <?php if($options['br_opened_tab'] == 'advanced' ) echo 'current'; ?>">
436
- <table class="form-table">
437
- <tr>
438
- <th scope="row"><?php _e('Add position relative to products holder', 'BeRocket_AJAX_domain') ?></th>
439
- <td>
440
- <input name="br_filters_options[pos_relative]" type='checkbox' value='1' <?php if( $options['pos_relative'] ) echo "checked='checked'";?>/>
441
- <span style="color:#666666;margin-left:2px;"><?php _e('Fix for correct displaying loading block', 'BeRocket_AJAX_domain') ?></span>
442
- </td>
443
- </tr>
444
- <tr>
445
- <th scope="row"><?php _e('"No Products" class', 'BeRocket_AJAX_domain') ?></th>
446
- <td>
447
- <input size="30" name="br_filters_options[no_products_class]" type='text' value='<?php echo $options['no_products_class']?>'/>
448
- <br />
449
- <span style="color:#666666;margin-left:2px;"><?php _e('Add class and use it to style "No Products" box', 'BeRocket_AJAX_domain') ?></span>
450
- </td>
451
- </tr>
452
- <tr>
453
- <th scope="row"><?php _e('Turn all filters off', 'BeRocket_AJAX_domain') ?></th>
454
- <td>
455
- <input name="br_filters_options[filters_turn_off]" type='checkbox' value='1' <?php if( ! empty($options['filters_turn_off']) ) echo "checked='checked'";?>/>
456
- <span style="color:#666666;margin-left:2px;"><?php _e("If you want to hide filters without losing current configuration just turn them off", 'BeRocket_AJAX_domain') ?></span>
457
- </td>
458
- </tr>
459
- <tr>
460
- <th scope="row"><?php _e('Show all values', 'BeRocket_AJAX_domain') ?></th>
461
- <td>
462
- <input name="br_filters_options[show_all_values]" type='checkbox' value='1' <?php if( ! empty($options['show_all_values']) ) echo "checked='checked'";?>/>
463
- <span style="color:#666666;margin-left:2px;"><?php _e('Check if you want to show not used attribute values too', 'BeRocket_AJAX_domain') ?></span>
464
- </td>
465
- </tr>
466
- <tr>
467
- <th scope="row"><?php _e('Display products', 'BeRocket_AJAX_domain') ?></th>
468
- <td>
469
- <input name="br_filters_options[products_only]" type='checkbox' value='1' <?php if( ! empty($options['products_only']) ) echo "checked='checked'";?>/>
470
- <span style="color:#666666;margin-left:2px;"><?php _e('Display always products when filters selected. Use this when you have categories and subcategories on shop pages, but you want to display products on filtering', 'BeRocket_AJAX_domain') ?></span>
471
- </td>
472
- </tr>
473
- <tr>
474
- <th scope="row"><?php _e('Hide out of stock variable', 'BeRocket_AJAX_domain') ?></th>
475
- <td>
476
- <input class="out_of_stock_variable" name="br_filters_options[out_of_stock_variable]" type='checkbox' value='1' <?php if( ! empty($options['out_of_stock_variable']) ) echo "checked='checked'";?>/>
477
- <span style="color:#666666;margin-left:2px;"><?php _e('Hide variable products if variations with selected filters out of stock', 'BeRocket_AJAX_domain') ?></span>
478
- <p class="out_of_stock_variable_reload">
479
- <input name="br_filters_options[out_of_stock_variable_reload]" type='checkbox' value='1' <?php if( ! empty($options['out_of_stock_variable_reload']) ) echo "checked='checked'";?>/>
480
- <span style="color:#666666;margin-left:2px;"><?php _e('Use it for attributes values to display more correct count with option Reload amount of products', 'BeRocket_AJAX_domain') ?></span>
481
- </p>
482
- <script>
483
- function out_of_stock_variable_reload_hide() {
484
- if( jQuery('.reload_amount_of_products').prop('checked') && jQuery('.out_of_stock_variable').prop('checked') ) {
485
- jQuery('.out_of_stock_variable_reload').show();
486
- } else {
487
- jQuery('.out_of_stock_variable_reload').hide();
488
- }
489
- }
490
- out_of_stock_variable_reload_hide();
491
- jQuery('.reload_amount_of_products, .out_of_stock_variable').on('change', out_of_stock_variable_reload_hide);
492
- </script>
493
- </td>
494
- </tr>
495
- <tr>
496
- <th scope="row"><?php _e('Display variation image', 'BeRocket_AJAX_domain') ?></th>
497
- <td>
498
- <input name="br_filters_options[search_variation_image]" type='checkbox' value='1' <?php if( ! empty($options['search_variation_image']) ) echo "checked='checked'";?>/>
499
- <span style="color:#666666;margin-left:2px;"><?php _e('Display variation image instead variable image on filtering', 'BeRocket_AJAX_domain') ?></span>
500
- </td>
501
- </tr>
502
- <tr>
503
- <th scope="row"><?php _e('Template ajax load fix', 'BeRocket_AJAX_domain') ?></th>
504
- <td>
505
- <input class="load_fix_ajax_request_load" name="br_filters_options[ajax_request_load]" type='checkbox' value='1' <?php if( ! empty($options['ajax_request_load']) ) echo "checked='checked'";?>/>
506
- <span style="color:#666666;margin-left:2px;"><?php _e('Use all plugins on ajax load(can slow down products loading)', 'BeRocket_AJAX_domain') ?></span>
507
- <p class="load_fix_use_get_query"<?php if( empty($options['ajax_request_load']) ) echo ' style="display:none;"'; ?>>
508
- <input name="br_filters_options[use_get_query]" type='checkbox' value='1' <?php if( ! empty($options['use_get_query']) ) echo "checked='checked'";?>/>
509
- <span style="color:#666666;margin-left:2px;"><?php _e('Use GET query instead POST for filtering', 'BeRocket_AJAX_domain') ?></span>
510
- <script>
511
- jQuery(document).on('change', '.load_fix_ajax_request_load', function() {
512
- if( jQuery(this).prop('checked') ) {
513
- jQuery('.load_fix_use_get_query').show();
514
- } else {
515
- jQuery('.load_fix_use_get_query').hide();
516
- }
517
- });
518
- </script>
519
- </p>
520
- <div class="settings-sub-option">
521
- <span style="color:#666666;margin-left:2px;"><?php _e('Use', 'BeRocket_AJAX_domain') ?></span>
522
- <select name="br_filters_options[ajax_request_load_style]">
523
- <option <?php echo ( empty($options['ajax_request_load_style']) ) ? 'selected' : '' ?> value=""><?php _e('PHP', 'BeRocket_AJAX_domain') ?></option>
524
- <option <?php echo ( br_get_value_from_array($options, 'ajax_request_load_style') == 'jquery' ) ? 'selected' : '' ?> value="jquery"><?php _e('JavaScript (jQuery)', 'BeRocket_AJAX_domain') ?></option>
525
- <option <?php echo ( br_get_value_from_array($options, 'ajax_request_load_style') == 'js' ) ? 'selected' : '' ?> value="js"><?php _e('JavaScript', 'BeRocket_AJAX_domain') ?></option>
526
- </select>
527
- <span style="color:#666666;margin-left:2px;"><?php _e('for fix', 'BeRocket_AJAX_domain') ?></span>
528
- <br>
529
- <span style="color:#666666;margin-left:2px;">
530
- <?php _e('PHP - loads the full page and cuts products from the page via PHP. Slow down server, but users take only needed information.', 'BeRocket_AJAX_domain') ?>
531
- </span>
532
- <br>
533
- <span style="color:#666666;margin-left:2px;">
534
- <?php _e('JavaScript (jQuery) - loads the full page and copy all products from the loaded page to the current page using JQuery. Slow down server and users take the full page. Works good with different themes and plugins.', 'BeRocket_AJAX_domain') ?>
535
- </span>
536
- <br>
537
- <span style="color:#666666;margin-left:2px;">
538
- <?php _e('JavaScript - loads the full page and cuts products from the page via JavaScript. Slow down server and users take the full page. Works like PHP method.', 'BeRocket_AJAX_domain') ?>
539
- </span>
540
- <p class="notice notice-error"><?php _e('Some features work only with JavaScript (jQuery) fix', 'BeRocket_AJAX_domain') ?></p>
541
- </div>
542
- </td>
543
- </tr>
544
- <tr>
545
- <th scope="row"><?php _e('Slider has a lot of values', 'BeRocket_AJAX_domain') ?></th>
546
- <td>
547
- <input name="br_filters_options[slider_250_fix]" type='checkbox' value='1' <?php if( ! empty($options['slider_250_fix']) ) echo "checked='checked'";?>/>
548
- <span style="color:#666666;margin-left:2px;"><?php _e('Enable it if slider has more than 250 values. Hierarchical taxonomy can work incorrect with sliders', 'BeRocket_AJAX_domain') ?></span>
549
- </td>
550
- </tr>
551
- <tr>
552
- <th scope="row"><?php _e('Old slider compatibility', 'BeRocket_AJAX_domain') ?></th>
553
- <td>
554
- <input name="br_filters_options[slider_compatibility]" type='checkbox' value='1' <?php if( ! empty($options['slider_compatibility']) ) echo "checked='checked'";?>/>
555
- <span style="color:#666666;margin-left:2px;"><?php _e('Slow down filtering with sliders. Enable it only if you have some problem with slider filters', 'BeRocket_AJAX_domain') ?></span>
556
- </td>
557
- </tr>
558
- <tr>
559
- <th scope="row"><?php _e('Display styles only for pages with filters', 'BeRocket_AJAX_domain') ?></th>
560
- <td>
561
- <input name="br_filters_options[styles_in_footer]" type='checkbox' value='1' <?php if( ! empty($options['styles_in_footer']) ) echo "checked='checked'";?>/>
562
- <span style="color:#666666;margin-left:2px;"><?php _e('On some sites it can cause some visual problem on page loads', 'BeRocket_AJAX_domain') ?></span>
563
- </td>
564
- </tr>
565
- <tr>
566
- <th scope="row"><?php _e('Product per row fix', 'BeRocket_AJAX_domain') ?></th>
567
- <td>
568
- <input min='1' name="br_filters_options[product_per_row]" type='number' value='<?php echo br_get_value_from_array($options, 'product_per_row')?>'/>
569
- <br />
570
- <span style="color:#666666;margin-left:2px;"><?php _e('Change this only if after filtering count of products per row changes.', 'BeRocket_AJAX_domain') ?></span>
571
- </td>
572
- </tr>
573
- <tr>
574
- <th scope="row"><?php _e('Fix for sites with AJAX', 'BeRocket_AJAX_domain') ?></th>
575
- <td>
576
- <input name="br_filters_options[ajax_site]" type='checkbox' value='1' <?php if( ! empty($options['ajax_site']) ) echo "checked='checked'";?>/>
577
- <span style="color:#666666;margin-left:2px;"><?php _e('Add JavaScript files to all pages.', 'BeRocket_AJAX_domain') ?></span>
578
- </td>
579
- </tr>
580
- <tr>
581
- <th scope="row"><?php _e('Search page fix', 'BeRocket_AJAX_domain') ?></th>
582
- <td>
583
- <input name="br_filters_options[search_fix]" type='checkbox' value='1' <?php if( ! empty($options['search_fix']) ) echo "checked='checked'";?>/>
584
- <span style="color:#666666;margin-left:2px;"><?php _e('Disable redirection, when search page return only one product', 'BeRocket_AJAX_domain') ?></span>
585
- </td>
586
- </tr>
587
- <tr>
588
- <th scope="row"><?php _e('Use Tags like custom taxonomy', 'BeRocket_AJAX_domain') ?></th>
589
- <td>
590
- <input name="br_filters_options[tags_custom]" type='checkbox' value='1' <?php if( ! empty($options['tags_custom']) ) echo "checked='checked'";?>/>
591
- <span style="color:#666666;margin-left:2px;"><?php _e('Try to enable this if widget with tags didn\'t work.', 'BeRocket_AJAX_domain') ?></span>
592
- </td>
593
- </tr>
594
- <tr>
595
- <th scope="row"><?php _e('Disable loading Font Awesome on front end', 'BeRocket_AJAX_domain') ?></th>
596
- <td>
597
- <input name="br_filters_options[disable_font_awesome]" type='checkbox' value='1' <?php if( ! empty($options['disable_font_awesome']) ) echo "checked='checked'";?>/>
598
- <span style="color:#666666;margin-left:2px;"><?php _e('Don\'t loading css file for Font Awesome on site front end. Use this only if you doesn\'t uses Font Awesome icons in widgets or you have Font Awesome in your theme.', 'BeRocket_AJAX_domain') ?></span>
599
- </td>
600
- </tr>
601
- <tr>
602
- <th scope="row"><?php _e('Use filtered variation link and session', 'BeRocket_AJAX_domain') ?></th>
603
- <td>
604
- <input name="br_filters_options[use_filtered_variation]" type='checkbox' value='1' <?php if( ! empty($options['use_filtered_variation']) ) echo "checked='checked'";?>/>
605
- </td>
606
- </tr>
607
- <tr>
608
- <th scope="row"><?php _e('Use filtered variation only after search', 'BeRocket_AJAX_domain') ?></th>
609
- <td>
610
- <input name="br_filters_options[use_filtered_variation_once]" type='checkbox' value='1' <?php if( ! empty($options['use_filtered_variation_once']) ) echo "checked='checked'";?>/>
611
- </td>
612
- </tr>
613
- <tr>
614
- <th scope="row"><?php _e('Replace old widgets', 'BeRocket_AJAX_domain') ?></th>
615
- <td>
616
- <?php $old_filter_widgets = get_option('widget_berocket_aapf_widget');
617
- if( ! is_array($old_filter_widgets) ) {
618
- $old_filter_widgets = array();
619
- }
620
- foreach ($old_filter_widgets as $key => $value) {
621
- if (!is_numeric($key)) {
622
- unset($old_filter_widgets[$key]);
623
- }
624
- }
625
- ?>
626
- <span
627
- class="button berocket_replace_deprecated_with_new<?php if( !count($old_filter_widgets) ) echo ' berocket_ajax_sending'; ?>"
628
- data-ready="<?php _e('Widget replaced', 'BeRocket_AJAX_domain') ?>"
629
- data-loading="<?php _e('Replacing widgets... Please wait', 'BeRocket_AJAX_domain') ?>"
630
- <?php if( !count($old_filter_widgets) ) echo 'disabled="disabled"'; ?>
631
- >
632
- <?php if( count($old_filter_widgets) ) { _e('Replace widgets', 'BeRocket_AJAX_domain'); } else { _e('No old widgets', 'BeRocket_AJAX_domain'); } ?>
633
- </span>
634
- <p><?php _e('Replace deprecated widgets with new single filter widgets', 'BeRocket_AJAX_domain') ?></p>
635
- <script>
636
- jQuery('.berocket_replace_deprecated_with_new').click(function() {
637
- var $this = jQuery(this);
638
- if( ! $this.is('.berocket_ajax_sending') ) {
639
- $this.data('text', $this.text());
640
- $this.attr('disabled', 'disabled');
641
- $this.text($this.data('loading'));
642
- $this.addClass('berocket_ajax_sending');
643
- jQuery.post(ajaxurl, {action:'replace_deprecated_with_new'}, function() {
644
- $this.text($this.data('ready'));
645
- });
646
- }
647
- });
648
- </script>
649
- </td>
650
- </tr>
651
- </table>
652
- <p class="submit">
653
- <input type="submit" class="button-primary" value="<?php _e('Save Changes', 'BeRocket_AJAX_domain') ?>" />
654
- </p>
655
- </div>
656
- <div id="design" class="tab-item <?php if($options['br_opened_tab'] == 'design' ) echo 'current'; ?>">
657
- <table class="wp-list-table widefat fixed posts">
658
- <thead>
659
- <tr>
660
- <th class="manage-column column-cb check-column" id="cb" scope="col">
661
- <label for="cb-select-all-1" class="screen-reader-text"><?php _e('Select All', 'BeRocket_AJAX_domain') ?></label>
662
- <input type="checkbox" id="cb-select-all-1" />
663
- </th>
664
- <th class="manage-column" scope="col"><?php _e('Element', 'BeRocket_AJAX_domain') ?></th>
665
- <th class="manage-column admin-column-color" scope="col"><?php _e('Color', 'BeRocket_AJAX_domain') ?></th>
666
- <th class="manage-column admin-column-font-family" scope="col"><?php _e('Font Family', 'BeRocket_AJAX_domain') ?></th>
667
- <th class="manage-column admin-column-font-weight" scope="col"><?php _e('Font-Weight', 'BeRocket_AJAX_domain') ?><br /><small><?php _e('(depends on font)', 'BeRocket_AJAX_domain') ?></small></th>
668
- <th class="manage-column admin-column-font-size" scope="col"><?php _e('Font-Size', 'BeRocket_AJAX_domain') ?></th>
669
- <th class="manage-column admin-column-theme" scope="col"><?php _e('Theme', 'BeRocket_AJAX_domain') ?></th>
670
- </tr>
671
- </thead>
672
-
673
- <tfoot>
674
- <tr>
675
- <th class="manage-column column-cb check-column" scope="col">
676
- <label for="cb-select-all-2" class="screen-reader-text"><?php _e('Select All', 'BeRocket_AJAX_domain') ?></label>
677
- <input type="checkbox" id="cb-select-all-2" />
678
- </th>
679
- <th class="manage-column" scope="col"><?php _e('Element', 'BeRocket_AJAX_domain') ?></th>
680
- <th class="manage-column admin-column-color" scope="col"><?php _e('Color', 'BeRocket_AJAX_domain') ?></th>
681
- <th class="manage-column admin-column-font-family" scope="col"><?php _e('Font Family', 'BeRocket_AJAX_domain') ?></th>
682
- <th class="manage-column admin-column-font-weight" scope="col"><?php _e('Font-Weight', 'BeRocket_AJAX_domain') ?><br /><small><?php _e('(depends on font)', 'BeRocket_AJAX_domain') ?></small></th>
683
- <th class="manage-column admin-column-font-size" scope="col"><?php _e('Font-Size', 'BeRocket_AJAX_domain') ?></th>
684
- <th class="manage-column admin-column-theme" scope="col"><?php _e('Theme', 'BeRocket_AJAX_domain') ?></th>
685
- </tr>
686
- <tr>
687
- <th class="manage-column admin-column-theme" scope="col" colspan="7">
688
- <input type="button" value="<?php _e('Set all to theme default', 'BeRocket_AJAX_domain') ?>" class="all_theme_default button">
689
- <div style="clear:both;"></div>
690
- </th>
691
- </tr>
692
- </tfoot>
693
-
694
- <tbody id="the-list">
695
- <?php
696
- $i_designable = 1;
697
- foreach ( $designables as $key => $designable ) {
698
- ?>
699
- <tr class="type-page status-publish author-self">
700
- <th class="check-column" scope="row">
701
- <label for="cb-select-<?php echo $i_designable ?>" class="screen-reader-text"><?php _e('Select Element', 'BeRocket_AJAX_domain') ?></label>
702
- <input type="checkbox" value="<?php echo $i_designable ?>" name="element[]" id="cb-select-<?php echo $i_designable ?>">
703
- <div class="locked-indicator"></div>
704
- </th>
705
- <td><?php echo $designable['name'] ?></td>
706
- <td class="admin-column-color">
707
- <?php if ( $designable['has']['color'] ) { ?>
708
- <div class="colorpicker_field" data-color="<?php echo ( ! empty($options['styles'][$key]['color']) ) ? $options['styles'][$key]['color'] : '000000' ?>"></div>
709
- <input type="hidden" value="<?php echo ( ! empty($options['styles'][$key]['color']) ) ? $options['styles'][$key]['color'] : '' ?>" name="br_filters_options[styles][<?php echo $key ?>][color]" />
710
- <input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button">
711
- <?php } else {
712
- _e('N/A', 'BeRocket_AJAX_domain');
713
- } ?>
714
- </td>
715
- <td class="admin-column-font-family">
716
- <?php if ( $designable['has']['font_family'] ) { ?>
717
- <select name="br_filters_options[styles][<?php echo $key ?>][font_family]">
718
- <option value=""><?php _e('Theme Default', 'BeRocket_AJAX_domain') ?></option>
719
- <?php foreach( $fonts_list as $font ) { ?>
720
- <option <?php echo ( br_get_value_from_array($options, array('styles', $key, 'font_family')) == $font ) ? 'selected' : '' ?>><?php echo $font?></option>
721
- <?php } ?>
722
- </select>
723
- <?php } else {
724
- _e('N/A', 'BeRocket_AJAX_domain');
725
- } ?>
726
- </td>
727
- <td class="admin-column-font-weight">
728
- <?php if ( $designable['has']['bold'] ) {
729
- if( empty( $options['styles'][$key]['bold'] ) ) {
730
- $options['styles'][$key]['bold'] = '';
731
- } ?>
732
- <select name="br_filters_options[styles][<?php echo $key ?>][bold]">
733
- <option value=""><?php _e('Theme Default', 'BeRocket_AJAX_domain') ?></option>
734
- <?php
735
- $font_weight = array(
736
- 'Textual Values' => array(
737
- 'lighter' => 'light',
738
- 'normal' => 'normal',
739
- 'bold' => 'bold',
740
- 'bolder' => 'bolder',
741
- ),
742
- 'Numeric Values' => array(
743
- '100' => '100',
744
- '200' => '200',
745
- '300' => '300',
746
- '400' => '400',
747
- '500' => '500',
748
- '600' => '600',
749
- '700' => '700',
750
- '800' => '800',
751
- '900' => '900',
752
- ),
753
- );
754
- $fw_current = br_get_value_from_array($options, array('styles', $key, 'bold'));
755
- foreach($font_weight as $fm_optgroup => $fw_options) {
756
- echo '<optgroup label="', $fm_optgroup, '">';
757
- foreach($fw_options as $fw_key => $fw_value) {
758
- echo '<option', ( $fw_current == $fw_key ? ' selected' : '' ), ' value="', $fw_key, '">', $fw_value, '</option>';
759
- }
760
- echo '</optgroup>';
761
- }
762
- ?>
763
- </select>
764
- <?php } else {
765
- _e('N/A', 'BeRocket_AJAX_domain');
766
- } ?>
767
- </td>
768
- <td class="admin-column-font-size">
769
- <?php if ( ! empty($designable['has']['font_size']) ) { ?>
770
- <input type="text" placeholder="<?php _e('Theme Default', 'BeRocket_AJAX_domain') ?>" name="br_filters_options[styles][<?php echo $key ?>][font_size]" value="<?php echo br_get_value_from_array($options, array('styles', $key, 'font_size')) ?>" />
771
- <?php } else {
772
- _e('N/A', 'BeRocket_AJAX_domain');
773
- } ?>
774
- </td>
775
- <td class="admin-column-theme">
776
- <?php if ( $designable['has']['theme'] ) { ?>
777
- <select name="br_filters_options[styles][<?php echo $key ?>][theme]">
778
- <option value=""><?php _e('Without Theme', 'BeRocket_AJAX_domain') ?></option>
779
- <?php if ( $key != 'selectbox' ) { ?>
780
- <option value="aapf_grey1" <?php echo ( empty($options['styles'][$key]['theme']) && $options['styles'][$key]['theme'] == 'aapf_grey1' ) ? 'selected' : '' ?>>Grey</option>
781
- <?php } ?>
782
- <?php if ( $key != 'slider' and $key != 'checkbox_radio' ) { ?>
783
- <option value="aapf_grey2" <?php echo ( ! empty($options['styles'][$key]['theme']) && $options['styles'][$key]['theme'] == 'aapf_grey2' ) ? 'selected' : '' ?>>Grey 2</option>
784
- <?php } ?>
785
- </select>
786
- <?php } else {
787
- _e('N/A', 'BeRocket_AJAX_domain');
788
- } ?>
789
- </td>
790
- </tr>
791
- <?php
792
- $i_designable++;
793
- }
794
- ?>
795
- </tbody>
796
- </table>
797
- <table class="wp-list-table widefat fixed posts">
798
- <thead>
799
- <tr><th colspan="9" style="text-align: center; font-size: 2em;"><?php _e('Checkbox / Radio', 'BeRocket_AJAX_domain') ?></th></tr>
800
- <tr>
801
- <th class="manage-column admin-column-font-size" scope="col"><?php _e('Element', 'BeRocket_AJAX_domain') ?></th>
802
- <th class="manage-column admin-column-color" scope="col"><?php _e('Border color', 'BeRocket_AJAX_domain') ?></th>
803
- <th class="manage-column admin-column-font-size" scope="col"><?php _e('Border width', 'BeRocket_AJAX_domain') ?></th>
804
- <th class="manage-column admin-column-font-size" scope="col"><?php _e('Border radius', 'BeRocket_AJAX_domain') ?></th>
805
- <th class="manage-column admin-column-font-size" scope="col"><?php _e('Size', 'BeRocket_AJAX_domain') ?></th>
806
- <th class="manage-column admin-column-color" scope="col"><?php _e('Font color', 'BeRocket_AJAX_domain') ?></th>
807
- <th class="manage-column admin-column-color" scope="col"><?php _e('Background', 'BeRocket_AJAX_domain') ?></th>
808
- <th class="manage-column admin-column-color" scope="col"><?php _e('Icon', 'BeRocket_AJAX_domain') ?></th>
809
- <th class="manage-column admin-column-color" scope="col"><?php _e('Theme', 'BeRocket_AJAX_domain') ?></th>
810
- </tr>
811
- </thead>
812
- <tbody>
813
- <tr class="br_checkbox_radio_settings">
814
- <td><?php _e('Checkbox', 'BeRocket_AJAX_domain') ?></td>
815
- <td class="admin-column-color">
816
- <div class="colorpicker_field" data-color="<?php echo br_get_value_from_array($options, array('styles_input', 'checkbox', 'bcolor'), '000000') ?>"></div>
817
- <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]" />
818
- <input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button">
819
- </td>
820
- <td class="admin-column-font-size">
821
- <input class="br_border_width_set" type="text" placeholder="<?php _e('Theme Default', 'BeRocket_AJAX_domain') ?>" name="br_filters_options[styles_input][checkbox][bwidth]" value="<?php echo br_get_value_from_array($options, array('styles_input', 'checkbox', 'bwidth')); ?>" />
822
- </td>
823
- <td class="admin-column-font-size">
824
- <input class="br_border_radius_set" type="text" placeholder="<?php _e('Theme Default', 'BeRocket_AJAX_domain') ?>" name="br_filters_options[styles_input][checkbox][bradius]" value="<?php echo br_get_value_from_array($options, array('styles_input', 'checkbox', 'bradius')); ?>" />
825
- </td>
826
- <td class="admin-column-font-size">
827
- <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')); ?>" />
828
- </td>
829
- <td class="admin-column-color">
830
- <div class="colorpicker_field" data-color="<?php echo br_get_value_from_array($options, array('styles_input', 'checkbox', 'fcolor'), '000000') ?>"></div>
831
- <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]" />
832
- <input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button">
833
- </td>
834
- <td class="admin-column-color">
835
- <div class="colorpicker_field" data-color="<?php echo br_get_value_from_array($options, array('styles_input', 'checkbox', 'backcolor'), '000000') ?>"></div>
836
- <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]" />
837
- <input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button">
838
- </td>
839
- <td class="admin-column-color">
840
- <select name="br_filters_options[styles_input][checkbox][icon]" class="fontawesome br_icon_set">
841
- <option value=""<?php if ( empty($options['styles_input']['checkbox']['icon']) ) echo ' selected' ?>>NONE</option>
842
- <?php $radion_icon = array( 'f00c', '2713', 'f00d', 'f067', 'f055', 'f0fe', 'f14a', 'f058' );
843
- foreach( $radion_icon as $r_icon ) {
844
- echo '<option value="'.$r_icon.'"'.( br_get_value_from_array($options, array('styles_input', 'checkbox', 'icon')) == $r_icon ? ' selected' : '' ).'>&#x'.$r_icon.';</option>';
845
- }?>
846
- </select>
847
- </td>
848
- <td class="admin-column-color">
849
- <select name="br_filters_options[styles_input][checkbox][theme]" class="br_theme_set_select">
850
- <option value=""<?php if ( empty($options['styles_input']['checkbox']['theme']) ) echo ' selected' ?>>NONE</option>
851
- <?php
852
- $checkbox_theme_current = br_get_value_from_array($options, array('styles_input', 'checkbox', 'theme'));
853
- $checkbox_themes = array(
854
- 'black_1' => array(
855
- 'name' => 'Black 1',
856
- 'border_color' => '',
857
- 'border_width' => '0',
858
- 'border_radius' => '5',
859
- 'size' => '',
860
- 'font_color' => '333333',
861
- 'background' => 'bbbbbb',
862
- 'icon' => 'f00c',
863
- ),
864
- 'black_2' => array(
865
- 'name' => 'Black 2',
866
- 'border_color' => '333333',
867
- 'border_width' => '1',
868
- 'border_radius' => '2',
869
- 'size' => '',
870
- 'font_color' => '333333',
871
- 'background' => '',
872
- 'icon' => '2713',
873
- ),
874
- 'black_3' => array(
875
- 'name' => 'Black 3',
876
- 'border_color' => '333333',
877
- 'border_width' => '2',
878
- 'border_radius' => '50',
879
- 'size' => '',
880
- 'font_color' => '333333',
881
- 'background' => '',
882
- 'icon' => 'f058',
883
- ),
884
- 'black_4' => array(
885
- 'name' => 'Black 4',
886
- 'border_color' => '333333',
887
- 'border_width' => '2',
888
- 'border_radius' => '2',
889
- 'size' => '',
890
- 'font_color' => '333333',
891
- 'background' => '',
892
- 'icon' => 'f14a',
893
- ),
894
- 'white_1' => array(
895
- 'name' => 'White 1',
896
- 'border_color' => '',
897
- 'border_width' => '0',
898
- 'border_radius' => '5',
899
- 'size' => '',
900
- 'font_color' => 'dddddd',
901
- 'background' => '333333',
902
- 'icon' => 'f00c',
903
- ),
904
- 'white_2' => array(
905
- 'name' => 'White 2',
906
- 'border_color' => 'dddddd',
907
- 'border_width' => '1',
908
- 'border_radius' => '2',
909
- 'size' => '',
910
- 'font_color' => 'dddddd',
911
- 'background' => '',
912
- 'icon' => '2713',
913
- ),
914
- 'white_3' => array(
915
- 'name' => 'White 3',
916
- 'border_color' => 'dddddd',
917
- 'border_width' => '2',
918
- 'border_radius' => '50',
919
- 'size' => '',
920
- 'font_color' => 'dddddd',
921
- 'background' => '',
922
- 'icon' => 'f058',
923
- ),
924
- 'white_4' => array(
925
- 'name' => 'White 4',
926
- 'border_color' => 'dddddd',
927
- 'border_width' => '2',
928
- 'border_radius' => '2',
929
- 'size' => '',
930
- 'font_color' => 'dddddd',
931
- 'background' => '',
932
- 'icon' => 'f14a',
933
- ),
934
- 'red_1' => array(
935
- 'name' => 'Red 1',
936
- 'border_color' => '',
937
- 'border_width' => '0',
938
- 'border_radius' => '5',
939
- 'size' => '',
940
- 'font_color' => 'dd3333',
941
- 'background' => '333333',
942
- 'icon' => 'f00c',
943
- ),
944
- 'red_2' => array(
945
- 'name' => 'Red 2',
946
- 'border_color' => 'dd3333',
947
- 'border_width' => '1',
948
- 'border_radius' => '2',
949
- 'size' => '',
950
- 'font_color' => 'dd3333',
951
- 'background' => '',
952
- 'icon' => '2713',
953
- ),
954
- 'red_3' => array(
955
- 'name' => 'Red 3',
956
- 'border_color' => 'dd3333',
957
- 'border_width' => '2',
958
- 'border_radius' => '50',
959
- 'size' => '',
960
- 'font_color' => 'dd3333',
961
- 'background' => '',
962
- 'icon' => 'f058',
963
- ),
964
- 'red_4' => array(
965
- 'name' => 'Red 4',
966
- 'border_color' => 'dd3333',
967
- 'border_width' => '2',
968
- 'border_radius' => '2',
969
- 'size' => '',
970
- 'font_color' => 'dd3333',
971
- 'background' => '',
972
- 'icon' => 'f14a',
973
- ),
974
- 'green_1' => array(
975
- 'name' => 'Green 1',
976
- 'border_color' => '',
977
- 'border_width' => '0',
978
- 'border_radius' => '5',
979
- 'size' => '',
980
- 'font_color' => '33dd33',
981
- 'background' => '333333',
982
- 'icon' => 'f00c',
983
- ),
984
- 'green_2' => array(
985
- 'name' => 'Green 2',
986
- 'border_color' => '33dd33',
987
- 'border_width' => '1',
988
- 'border_radius' => '2',
989
- 'size' => '',
990
- 'font_color' => '33dd33',
991
- 'background' => '',
992
- 'icon' => '2713',
993
- ),
994
- 'green_3' => array(
995
- 'name' => 'Green 3',
996
- 'border_color' => '33dd33',
997
- 'border_width' => '2',
998
- 'border_radius' => '50',
999
- 'size' => '',
1000
- 'font_color' => '33dd33',
1001
- 'background' => '',
1002
- 'icon' => 'f058',
1003
- ),
1004
- 'green_4' => array(
1005
- 'name' => 'Green 4',
1006
- 'border_color' => '33dd33',
1007
- 'border_width' => '2',
1008
- 'border_radius' => '2',
1009
- 'size' => '',
1010
- 'font_color' => '33dd33',
1011
- 'background' => '',
1012
- 'icon' => 'f14a',
1013
- ),
1014
- 'blue_1' => array(
1015
- 'name' => 'Blue 1',
1016
- 'border_color' => '',
1017
- 'border_width' => '0',
1018
- 'border_radius' => '5',
1019
- 'size' => '',
1020
- 'font_color' => '3333dd',
1021
- 'background' => '333333',
1022
- 'icon' => 'f00c',
1023
- ),
1024
- 'blue_2' => array(
1025
- 'name' => 'Blue 2',
1026
- 'border_color' => '3333dd',
1027
- 'border_width' => '1',
1028
- 'border_radius' => '2',
1029
- 'size' => '',
1030
- 'font_color' => '3333dd',
1031
- 'background' => '',
1032
- 'icon' => '2713',
1033
- ),
1034
- 'blue_3' => array(
1035
- 'name' => 'Blue 3',
1036
- 'border_color' => '3333dd',
1037
- 'border_width' => '2',
1038
- 'border_radius' => '50',
1039
- 'size' => '',
1040
- 'font_color' => '3333dd',
1041
- 'background' => '',
1042
- 'icon' => 'f058',
1043
- ),
1044
- 'blue_4' => array(
1045
- 'name' => 'Blue 4',
1046
- 'border_color' => '3333dd',
1047
- 'border_width' => '2',
1048
- 'border_radius' => '2',
1049
- 'size' => '',
1050
- 'font_color' => '3333dd',
1051
- 'background' => '',
1052
- 'icon' => 'f14a',
1053
- ),
1054
- );
1055
- foreach($checkbox_themes as $chth_key => $chth_data) {
1056
- echo '<option value="', $chth_key, '"';
1057
- foreach($chth_data as $chth_data_key => $chth_data_val) {
1058
- echo ' data-', $chth_data_key, '="', $chth_data_val, '"';
1059
- }
1060
- if( $checkbox_theme_current == $chth_key ) {
1061
- echo ' selected';
1062
- }
1063
- echo '>', $chth_data['name'], '</option>';
1064
- }
1065
- ?>
1066
- </select>
1067
- </td>
1068
- </tr>
1069
- <tr class="br_checkbox_radio_settings">
1070
- <td><?php _e('Radio', 'BeRocket_AJAX_domain') ?></td>
1071
- <td class="admin-column-color">
1072
- <div class="colorpicker_field" data-color="<?php echo br_get_value_from_array($options, array('styles_input', 'radio', 'bcolor'), '000000') ?>"></div>
1073
- <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]" />
1074
- <input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button">
1075
- </td>
1076
- <td class="admin-column-font-size">
1077
- <input class="br_border_width_set" type="text" placeholder="<?php _e('Theme Default', 'BeRocket_AJAX_domain') ?>" name="br_filters_options[styles_input][radio][bwidth]" value="<?php echo br_get_value_from_array($options, array('styles_input', 'radio', 'bwidth')) ?>" />
1078
- </td>
1079
- <td class="admin-column-font-size">
1080
- <input class="br_border_radius_set" type="text" placeholder="<?php _e('Theme Default', 'BeRocket_AJAX_domain') ?>" name="br_filters_options[styles_input][radio][bradius]" value="<?php echo br_get_value_from_array($options, array('styles_input', 'radio', 'bradius')) ?>" />
1081
- </td>
1082
- <td class="admin-column-font-size">
1083
- <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')) ?>" />
1084
- </td>
1085
- <td class="admin-column-color">
1086
- <div class="colorpicker_field" data-color="<?php echo br_get_value_from_array($options, array('styles_input', 'radio', 'fcolor'), '000000') ?>"></div>
1087
- <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]" />
1088
- <input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button">
1089
- </td>
1090
- <td class="admin-column-color">
1091
- <div class="colorpicker_field" data-color="<?php echo br_get_value_from_array($options, array('styles_input', 'radio', 'backcolor'), '000000') ?>"></div>
1092
- <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]" />
1093
- <input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button">
1094
- </td>
1095
- <td class="admin-column-color">
1096
- <select name="br_filters_options[styles_input][radio][icon]" class="fontawesome br_icon_set">
1097
- <option value=""<?php if ( empty($options['styles_input']['radio']['icon']) ) echo ' selected' ?>>NONE</option>
1098
- <?php $radion_icon = array( 'f111', '2022', 'f10c', 'f192', 'f0c8', 'f055', 'f0fe', 'f14a', 'f058' );
1099
- foreach( $radion_icon as $r_icon ) {
1100
- echo '<option value="'.$r_icon.'"'.( br_get_value_from_array($options, array('styles_input', 'radio', 'icon')) == $r_icon ? ' selected' : '' ).'>&#x'.$r_icon.';</option>';
1101
- }?>
1102
- </select>
1103
- </td>
1104
- <td class="admin-column-color">
1105
- <select name="br_filters_options[styles_input][radio][theme]" class="br_theme_set_select">
1106
- <option value=""<?php if ( empty($options['styles_input']['radio']['theme']) ) echo ' selected' ?>>NONE</option>
1107
- <?php
1108
- $radio_theme_current = br_get_value_from_array($options, array('styles_input', 'checkbox', 'theme'));
1109
- $radio_themes = array(
1110
- 'black_1' => array(
1111
- 'name' => 'Black 1',
1112
- 'border_color' => '',
1113
- 'border_width' => '0',
1114
- 'border_radius' => '5',
1115
- 'size' => '',
1116
- 'font_color' => '333333',
1117
- 'background' => 'bbbbbb',
1118
- 'icon' => 'f111',
1119
- ),
1120
- 'black_2' => array(
1121
- 'name' => 'Black 2',
1122
- 'border_color' => '333333',
1123
- 'border_width' => '1',
1124
- 'border_radius' => '2',
1125
- 'size' => '',
1126
- 'font_color' => '333333',
1127
- 'background' => '',
1128
- 'icon' => 'f0c8',
1129
- ),
1130
- 'black_3' => array(
1131
- 'name' => 'Black 3',
1132
- 'border_color' => '333333',
1133
- 'border_width' => '2',
1134
- 'border_radius' => '',
1135
- 'size' => '10',
1136
- 'font_color' => '333333',
1137
- 'background' => '',
1138
- 'icon' => 'f055',
1139
- ),
1140
- 'white_1' => array(
1141
- 'name' => 'White 1',
1142
- 'border_color' => '',
1143
- 'border_width' => '0',
1144
- 'border_radius' => '5',
1145
- 'size' => '',
1146
- 'font_color' => 'dddddd',
1147
- 'background' => '333333',
1148
- 'icon' => 'f111',
1149
- ),
1150
- 'white_2' => array(
1151
- 'name' => 'White 2',
1152
- 'border_color' => 'dddddd',
1153
- 'border_width' => '1',
1154
- 'border_radius' => '2',
1155
- 'size' => '',
1156
- 'font_color' => 'dddddd',
1157
- 'background' => '',
1158
- 'icon' => 'f0c8',
1159
- ),
1160
- 'white_3' => array(
1161
- 'name' => 'White 3',
1162
- 'border_color' => 'dddddd',
1163
- 'border_width' => '2',
1164
- 'border_radius' => '',
1165
- 'size' => '10',
1166
- 'font_color' => 'dddddd',
1167
- 'background' => '',
1168
- 'icon' => 'f055',
1169
- ),
1170
- 'red_1' => array(
1171
- 'name' => 'Red 1',
1172
- 'border_color' => '',
1173
- 'border_width' => '0',
1174
- 'border_radius' => '5',
1175
- 'size' => '',
1176
- 'font_color' => 'dd3333',
1177
- 'background' => '333333',
1178
- 'icon' => 'f111',
1179
- ),
1180
- 'red_2' => array(
1181
- 'name' => 'Red 2',
1182
- 'border_color' => 'dd3333',
1183
- 'border_width' => '1',
1184
- 'border_radius' => '2',
1185
- 'size' => '',
1186
- 'font_color' => 'dd3333',
1187
- 'background' => '',
1188
- 'icon' => 'f0c8',
1189
- ),
1190
- 'red_3' => array(
1191
- 'name' => 'Red 3',
1192
- 'border_color' => 'dd3333',
1193
- 'border_width' => '2',
1194
- 'border_radius' => '',
1195
- 'size' => '10',
1196
- 'font_color' => 'dd3333',
1197
- 'background' => '',
1198
- 'icon' => 'f055',
1199
- ),
1200
- 'green_1' => array(
1201
- 'name' => 'Green 1',
1202
- 'border_color' => '',
1203
- 'border_width' => '0',
1204
- 'border_radius' => '5',
1205
- 'size' => '',
1206
- 'font_color' => '33dd33',
1207
- 'background' => '333333',
1208
- 'icon' => 'f111',
1209
- ),
1210
- 'green_2' => array(
1211
- 'name' => 'Green 2',
1212
- 'border_color' => '33dd33',
1213
- 'border_width' => '1',
1214
- 'border_radius' => '2',
1215
- 'size' => '',
1216
- 'font_color' => '33dd33',
1217
- 'background' => '',
1218
- 'icon' => 'f0c8',
1219
- ),
1220
- 'green_3' => array(
1221
- 'name' => 'Green 3',
1222
- 'border_color' => '33dd33',
1223
- 'border_width' => '2',
1224
- 'border_radius' => '',
1225
- 'size' => '10',
1226
- 'font_color' => '33dd33',
1227
- 'background' => '',
1228
- 'icon' => 'f055',
1229
- ),
1230
- 'blue_1' => array(
1231
- 'name' => 'Blue 1',
1232
- 'border_color' => '',
1233
- 'border_width' => '0',
1234
- 'border_radius' => '5',
1235
- 'size' => '',
1236
- 'font_color' => '3333dd',
1237
- 'background' => '333333',
1238
- 'icon' => 'f111',
1239
- ),
1240
- 'blue_2' => array(
1241
- 'name' => 'Blue 2',
1242
- 'border_color' => '3333dd',
1243
- 'border_width' => '1',
1244
- 'border_radius' => '2',
1245
- 'size' => '',
1246
- 'font_color' => '3333dd',
1247
- 'background' => '',
1248
- 'icon' => 'f0c8',
1249
- ),
1250
- 'blue_3' => array(
1251
- 'name' => 'Blue 3',
1252
- 'border_color' => '3333dd',
1253
- 'border_width' => '2',
1254
- 'border_radius' => '',
1255
- 'size' => '10',
1256
- 'font_color' => '3333dd',
1257
- 'background' => '',
1258
- 'icon' => 'f055',
1259
- ),
1260
- );
1261
- foreach($radio_themes as $rth_key => $rth_data) {
1262
- echo '<option value="', $rth_key, '"';
1263
- foreach($rth_data as $rth_data_key => $rth_data_val) {
1264
- echo ' data-', $rth_data_key, '="', $rth_data_val, '"';
1265
- }
1266
- if( $checkbox_theme_current == $rth_key ) {
1267
- echo ' selected';
1268
- }
1269
- echo '>', $rth_data['name'], '</option>';
1270
- }
1271
- ?>
1272
- </select>
1273
- </td>
1274
- </tr>
1275
- </tbody>
1276
- <tfoot>
1277
- <tr>
1278
- <th class="manage-column admin-column-theme" scope="col" colspan="9">
1279
- <input type="button" value="<?php _e('Set all to theme default', 'BeRocket_AJAX_domain') ?>" class="all_theme_default button">
1280
- <div style="clear:both;"></div>
1281
- </th>
1282
- </tr>
1283
- </tfoot>
1284
- </table>
1285
- <table class="wp-list-table widefat fixed posts">
1286
- <thead>
1287
- <tr><th colspan="10" style="text-align: center; font-size: 2em;"><?php _e('Slider', 'BeRocket_AJAX_domain') ?></th></tr>
1288
- <tr>
1289
- <th class="manage-column admin-column-color" scope="col"><?php _e('Line color', 'BeRocket_AJAX_domain') ?></th>
1290
- <th class="manage-column admin-column-color" scope="col"><?php _e('Back line color', 'BeRocket_AJAX_domain') ?></th>
1291
- <th class="manage-column admin-column-font-size" scope="col"><?php _e('Line height', 'BeRocket_AJAX_domain') ?></th>
1292
- <th class="manage-column admin-column-color" scope="col"><?php _e('Line border color', 'BeRocket_AJAX_domain') ?></th>
1293
- <th class="manage-column admin-column-font-size" scope="col"><?php _e('Line border width', 'BeRocket_AJAX_domain') ?></th>
1294
- <th class="manage-column admin-column-font-size" scope="col"><?php _e('Button size', 'BeRocket_AJAX_domain') ?></th>
1295
- <th class="manage-column admin-column-color" scope="col"><?php _e('Button color', 'BeRocket_AJAX_domain') ?></th>
1296
- <th class="manage-column admin-column-color" scope="col"><?php _e('Button border color', 'BeRocket_AJAX_domain') ?></th>
1297
- <th class="manage-column admin-column-font-size" scope="col"><?php _e('Button border width', 'BeRocket_AJAX_domain') ?></th>
1298
- <th class="manage-column admin-column-font-size" scope="col"><?php _e('Button border radius', 'BeRocket_AJAX_domain') ?></th>
1299
- </tr>
1300
- </thead>
1301
- <tbody>
1302
- <tr>
1303
- <td class="admin-column-color">
1304
- <div class="colorpicker_field" data-color="<?php echo br_get_value_from_array($options, array('styles_input', 'slider', 'line_color'), '000000') ?>"></div>
1305
- <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]" />
1306
- <input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button">
1307
- </td>
1308
- <td class="admin-column-color">
1309
- <div class="colorpicker_field" data-color="<?php echo br_get_value_from_array($options, array('styles_input', 'slider', 'back_line_color'), '000000') ?>"></div>
1310
- <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]" />
1311
- <input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button">
1312
- </td>
1313
- <td class="admin-column-font-size">
1314
- <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')) ?>" />
1315
- </td>
1316
- <td class="admin-column-color">
1317
- <div class="colorpicker_field" data-color="<?php echo br_get_value_from_array($options, array('styles_input', 'slider', 'line_border_color'), '000000') ?>"></div>
1318
- <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]" />
1319
- <input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button">
1320
- </td>
1321
- <td class="admin-column-font-size">
1322
- <input type="text" placeholder="<?php _e('Theme Default', 'BeRocket_AJAX_domain') ?>" name="br_filters_options[styles_input][slider][line_border_width]" value="<?php echo br_get_value_from_array($options, array('styles_input', 'slider', 'line_border_width')) ?>" />
1323
- </td>
1324
- <td class="admin-column-font-size">
1325
- <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')) ?>" />
1326
- </td>
1327
- <td class="admin-column-color">
1328
- <div class="colorpicker_field" data-color="<?php echo br_get_value_from_array($options, array('styles_input', 'slider', 'button_color'), '000000') ?>"></div>
1329
- <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]" />
1330
- <input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button">
1331
- </td>
1332
- <td class="admin-column-color">
1333
- <div class="colorpicker_field" data-color="<?php echo br_get_value_from_array($options, array('styles_input', 'slider', 'button_border_color'), '000000') ?>"></div>
1334
- <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]" />
1335
- <input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button">
1336
- </td>
1337
- <td class="admin-column-font-size">
1338
- <input type="text" placeholder="<?php _e('Theme Default', 'BeRocket_AJAX_domain') ?>" name="br_filters_options[styles_input][slider][button_border_width]" value="<?php echo br_get_value_from_array($options, array('styles_input', 'slider', 'button_border_width')); ?>" />
1339
- </td>
1340
- <td class="admin-column-font-size">
1341
- <input type="text" placeholder="<?php _e('Theme Default', 'BeRocket_AJAX_domain') ?>" name="br_filters_options[styles_input][slider][button_border_radius]" value="<?php echo br_get_value_from_array($options, array('styles_input', 'slider', 'button_border_radius')); ?>" />
1342
- </td>
1343
- </tr>
1344
- </tbody>
1345
- <tfoot>
1346
- <tr>
1347
- <th class="manage-column admin-column-theme" scope="col" colspan="10">
1348
- <input type="button" value="<?php _e('Set all to theme default', 'BeRocket_AJAX_domain') ?>" class="all_theme_default button">
1349
- <div style="clear:both;"></div>
1350
- </th>
1351
- </tr>
1352
- </tfoot>
1353
- </table>
1354
- <table class="wp-list-table widefat fixed posts">
1355
- <thead>
1356
- <tr><th colspan="10" style="text-align: center; font-size: 2em;"><?php _e('Product count description before filtering with Update button', 'BeRocket_AJAX_domain') ?></th></tr>
1357
- <tr>
1358
- <th class="manage-column admin-column-color" scope="col"><?php _e('Background color', 'BeRocket_AJAX_domain') ?></th>
1359
- <th class="manage-column admin-column-color" scope="col"><?php _e('Border color', 'BeRocket_AJAX_domain') ?></th>
1360
- <th class="manage-column admin-column-font-size" scope="col"><?php _e('Font size', 'BeRocket_AJAX_domain') ?></th>
1361
- <th class="manage-column admin-column-color" scope="col"><?php _e('Font color', 'BeRocket_AJAX_domain') ?></th>
1362
- <th class="manage-column admin-column-font-size" scope="col"><?php _e('Show button font size', 'BeRocket_AJAX_domain') ?></th>
1363
- <th class="manage-column admin-column-color" scope="col"><?php _e('Show button font color', 'BeRocket_AJAX_domain') ?></th>
1364
- <th class="manage-column admin-column-color" scope="col"><?php _e('Show button font color on mouse over', 'BeRocket_AJAX_domain') ?></th>
1365
- <th class="manage-column admin-column-font-size" scope="col"><?php _e('Close button size', 'BeRocket_AJAX_domain') ?></th>
1366
- <th class="manage-column admin-column-color" scope="col"><?php _e('Close button font color', 'BeRocket_AJAX_domain') ?></th>
1367
- <th class="manage-column admin-column-color" scope="col"><?php _e('Close button font color on mouse over', 'BeRocket_AJAX_domain') ?></th>
1368
- </tr>
1369
- </thead>
1370
- <tbody>
1371
- <tr>
1372
- <td class="admin-column-color">
1373
- <div class="colorpicker_field" data-color="<?php echo br_get_value_from_array($options, array('styles_input', 'pc_ub', 'back_color'), '000000') ?>"></div>
1374
- <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]" />
1375
- <input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button">
1376
- </td>
1377
- <td class="admin-column-color">
1378
- <div class="colorpicker_field" data-color="<?php echo br_get_value_from_array($options, array('styles_input', 'pc_ub', 'border_color'), '000000') ?>"></div>
1379
- <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]" />
1380
- <input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button">
1381
- </td>
1382
- <td class="admin-column-font-size">
1383
- <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')); ?>" />
1384
- </td>
1385
- <td class="admin-column-color">
1386
- <div class="colorpicker_field" data-color="<?php echo br_get_value_from_array($options, array('styles_input', 'pc_ub', 'font_color'), '000000') ?>"></div>
1387
- <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]" />
1388
- <input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button">
1389
- </td>
1390
- <td class="admin-column-font-size">
1391
- <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')); ?>" />
1392
- </td>
1393
- <td class="admin-column-color">
1394
- <div class="colorpicker_field" data-color="<?php echo br_get_value_from_array($options, array('styles_input', 'pc_ub', 'show_font_color'), '000000') ?>"></div>
1395
- <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]" />
1396
- <input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button">
1397
- </td>
1398
- <td class="admin-column-color">
1399
- <div class="colorpicker_field" data-color="<?php echo br_get_value_from_array($options, array('styles_input', 'pc_ub', 'show_font_color_hover'), '000000') ?>"></div>
1400
- <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]" />
1401
- <input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button">
1402
- </td>
1403
- <td class="admin-column-font-size">
1404
- <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')); ?>" />
1405
- </td>
1406
- <td class="admin-column-color">
1407
- <div class="colorpicker_field" data-color="<?php echo br_get_value_from_array($options, array('styles_input', 'pc_ub', 'close_font_color'), '000000') ?>"></div>
1408
- <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]" />
1409
- <input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button">
1410
- </td>
1411
- <td class="admin-column-color">
1412
- <div class="colorpicker_field" data-color="<?php echo br_get_value_from_array($options, array('styles_input', 'pc_ub', 'close_font_color_hover'), '000000') ?>"></div>
1413
- <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]" />
1414
- <input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button">
1415
- </td>
1416
- </tr>
1417
- </tbody>
1418
- <tfoot>
1419
- <tr>
1420
- <th class="manage-column admin-column-theme" scope="col" colspan="10">
1421
- <input type="button" value="<?php _e('Set all to theme default', 'BeRocket_AJAX_domain') ?>" class="all_theme_default button">
1422
- <div style="clear:both;"></div>
1423
- </th>
1424
- </tr>
1425
- </tfoot>
1426
- </table>
1427
- <table class="wp-list-table widefat fixed posts">
1428
- <thead>
1429
- <tr><th colspan="7" style="text-align: center; font-size: 2em;"><?php _e('Show title only Styles', 'BeRocket_AJAX_domain') ?></th></tr>
1430
- <tr>
1431
- <th class="manage-column admin-column-font-size" scope="col"><?php _e('Element', 'BeRocket_AJAX_domain') ?></th>
1432
- <th class="manage-column admin-column-color" scope="col"><?php _e('Border color', 'BeRocket_AJAX_domain') ?></th>
1433
- <th class="manage-column admin-column-font-size" scope="col"><?php _e('Border width', 'BeRocket_AJAX_domain') ?></th>
1434
- <th class="manage-column admin-column-font-size" scope="col"><?php _e('Border radius', 'BeRocket_AJAX_domain') ?></th>
1435
- <th class="manage-column admin-column-font-size" scope="col"><?php _e('Size', 'BeRocket_AJAX_domain') ?></th>
1436
- <th class="manage-column admin-column-color" scope="col"><?php _e('Font color', 'BeRocket_AJAX_domain') ?></th>
1437
- <th class="manage-column admin-column-color" scope="col"><?php _e('Background', 'BeRocket_AJAX_domain') ?></th>
1438
- </tr>
1439
- </thead>
1440
- <tbody>
1441
- <tr class="br_onlyTitle_title_radio_settings">
1442
- <td><?php _e('Title', 'BeRocket_AJAX_domain') ?></td>
1443
- <td class="admin-column-color">
1444
- <div class="colorpicker_field" data-color="<?php echo br_get_value_from_array($options, array('styles_input', 'onlyTitle_title', 'bcolor'), '000000') ?>"></div>
1445
- <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]" />
1446
- <input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button">
1447
- </td>
1448
- <td class="admin-column-font-size">
1449
- <input class="br_border_width_set" type="text" placeholder="<?php _e('Theme Default', 'BeRocket_AJAX_domain') ?>" name="br_filters_options[styles_input][onlyTitle_title][bwidth]" value="<?php echo br_get_value_from_array($options, array('styles_input', 'onlyTitle_title', 'bwidth')); ?>" />
1450
- </td>
1451
- <td class="admin-column-font-size">
1452
- <input class="br_border_radius_set" type="text" placeholder="<?php _e('Theme Default', 'BeRocket_AJAX_domain') ?>" name="br_filters_options[styles_input][onlyTitle_title][bradius]" value="<?php echo br_get_value_from_array($options, array('styles_input', 'onlyTitle_title', 'bradius')); ?>" />
1453
- </td>
1454
- <td class="admin-column-font-size">
1455
- <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')); ?>" />
1456
- </td>
1457
- <td class="admin-column-color">
1458
- <div class="colorpicker_field" data-color="<?php echo br_get_value_from_array($options, array('styles_input', 'onlyTitle_title', 'fcolor'), '000000') ?>"></div>
1459
- <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]" />
1460
- <input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button">
1461
- </td>
1462
- <td class="admin-column-color">
1463
- <div class="colorpicker_field" data-color="<?php echo br_get_value_from_array($options, array('styles_input', 'onlyTitle_title', 'backcolor'), '000000') ?>"></div>
1464
- <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]" />
1465
- <input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button">
1466
- </td>
1467
- </tr>
1468
- <tr class="br_onlyTitle_title_radio_settings">
1469
- <td><?php _e('Title opened', 'BeRocket_AJAX_domain') ?></td>
1470
- <td class="admin-column-color">
1471
- <div class="colorpicker_field" data-color="<?php echo br_get_value_from_array($options, array('styles_input', 'onlyTitle_titleopened', 'bcolor'), '000000') ?>"></div>
1472
- <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]" />
1473
- <input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button">
1474
- </td>
1475
- <td class="admin-column-font-size">
1476
- <input class="br_border_width_set" type="text" placeholder="<?php _e('Theme Default', 'BeRocket_AJAX_domain') ?>" name="br_filters_options[styles_input][onlyTitle_titleopened][bwidth]" value="<?php echo br_get_value_from_array($options, array('styles_input', 'onlyTitle_titleopened', 'bwidth')); ?>" />
1477
- </td>
1478
- <td class="admin-column-font-size">
1479
- <input class="br_border_radius_set" type="text" placeholder="<?php _e('Theme Default', 'BeRocket_AJAX_domain') ?>" name="br_filters_options[styles_input][onlyTitle_titleopened][bradius]" value="<?php echo br_get_value_from_array($options, array('styles_input', 'onlyTitle_titleopened', 'bradius')); ?>" />
1480
- </td>
1481
- <td class="admin-column-font-size">
1482
- <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')); ?>" />
1483
- </td>
1484
- <td class="admin-column-color">
1485
- <div class="colorpicker_field" data-color="<?php echo br_get_value_from_array($options, array('styles_input', 'onlyTitle_titleopened', 'fcolor'), '000000') ?>"></div>
1486
- <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]" />
1487
- <input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button">
1488
- </td>
1489
- <td class="admin-column-color">
1490
- <div class="colorpicker_field" data-color="<?php echo br_get_value_from_array($options, array('styles_input', 'onlyTitle_titleopened', 'backcolor'), '000000') ?>"></div>
1491
- <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]" />
1492
- <input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button">
1493
- </td>
1494
- </tr>
1495
- <tr class="br_onlyTitle_filter_radio_settings">
1496
- <td><?php _e('Filter', 'BeRocket_AJAX_domain') ?></td>
1497
- <td class="admin-column-color">
1498
- <div class="colorpicker_field" data-color="<?php echo br_get_value_from_array($options, array('styles_input', 'onlyTitle_filter', 'bcolor'), '000000') ?>"></div>
1499
- <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]" />
1500
- <input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button">
1501
- </td>
1502
- <td class="admin-column-font-size">
1503
- <input class="br_border_width_set" type="text" placeholder="<?php _e('Theme Default', 'BeRocket_AJAX_domain') ?>" name="br_filters_options[styles_input][onlyTitle_filter][bwidth]" value="<?php echo br_get_value_from_array($options, array('styles_input', 'onlyTitle_filter', 'bwidth')) ?>" />
1504
- </td>
1505
- <td class="admin-column-font-size">
1506
- <input class="br_border_radius_set" type="text" placeholder="<?php _e('Theme Default', 'BeRocket_AJAX_domain') ?>" name="br_filters_options[styles_input][onlyTitle_filter][bradius]" value="<?php echo br_get_value_from_array($options, array('styles_input', 'onlyTitle_filter', 'bradius')) ?>" />
1507
- </td>
1508
- <td class="admin-column-font-size">
1509
- <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')) ?>" />
1510
- </td>
1511
- <td class="admin-column-color">
1512
- <div class="colorpicker_field" data-color="<?php echo br_get_value_from_array($options, array('styles_input', 'onlyTitle_filter', 'fcolor'), '000000') ?>"></div>
1513
- <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]" />
1514
- <input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button">
1515
- </td>
1516
- <td class="admin-column-color">
1517
- <div class="colorpicker_field" data-color="<?php echo br_get_value_from_array($options, array('styles_input', 'onlyTitle_filter', 'backcolor'), '000000') ?>"></div>
1518
- <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]" />
1519
- <input type="button" value="<?php _e('Default', 'BeRocket_AJAX_domain') ?>" class="theme_default button">
1520
- </td>
1521
- </tr>
1522
- </tbody>
1523
- <tfoot>
1524
- <tr>
1525
- <th class="manage-column admin-column-theme" scope="col" colspan="7">
1526
- <input type="button" value="<?php _e('Set all to theme default', 'BeRocket_AJAX_domain') ?>" class="all_theme_default button">
1527
- <div style="clear:both;"></div>
1528
- </th>
1529
- </tr>
1530
- </tfoot>
1531
- </table>
1532
- <table class="form-table">
1533
- <tr>
1534
- <th scope="row"><?php _e('Loading products icon', 'BeRocket_AJAX_domain') ?></th>
1535
- <td>
1536
- <?php echo berocket_font_select_upload('', 'br_filters_options_ajax_load_icon', 'br_filters_options[ajax_load_icon]', br_get_value_from_array($options, 'ajax_load_icon'), false); ?>
1537
- </td>
1538
- </tr>
1539
- </table>
1540
- <table class="form-table">
1541
- <tr>
1542
- <th scope="row"><?php _e('Text at load icon', 'BeRocket_AJAX_domain') ?></th>
1543
- <td>
1544
- <span><?php _e('Above:', 'BeRocket_AJAX_domain') ?> </span><input name="br_filters_options[ajax_load_text][top]" type='text' value='<?php echo br_get_value_from_array($options, array('ajax_load_text', 'top',)); ?>'/>
1545
- </td>
1546
- <td>
1547
- <span><?php _e('Under:', 'BeRocket_AJAX_domain') ?> </span><input name="br_filters_options[ajax_load_text][bottom]" type='text' value='<?php echo br_get_value_from_array($options, array('ajax_load_text', 'bottom')); ?>'/>
1548
- </td>
1549
- <td>
1550
- <span><?php _e('Before:', 'BeRocket_AJAX_domain') ?> </span><input name="br_filters_options[ajax_load_text][left]" type='text' value='<?php echo br_get_value_from_array($options, array('ajax_load_text', 'left')); ?>'/>
1551
- </td>
1552
- <td>
1553
- <span><?php _e('After:', 'BeRocket_AJAX_domain') ?> </span><input name="br_filters_options[ajax_load_text][right]" type='text' value='<?php echo br_get_value_from_array($options, array('ajax_load_text', 'right')); ?>'/>
1554
- </td>
1555
- </tr>
1556
- </table>
1557
- <table class="form-table">
1558
- <tr>
1559
- <th scope="row"><?php _e('Description show and hide', 'BeRocket_AJAX_domain') ?></th>
1560
- <td>
1561
- <span><?php _e('Show on:', 'BeRocket_AJAX_domain') ?> </span>
1562
- <select name="br_filters_options[description][show]">
1563
- <option <?php echo ( $options['description']['show'] == 'click' ) ? 'selected' : '' ?> value="click"><?php _e('Click', 'BeRocket_AJAX_domain') ?></option>
1564
- <option <?php echo ( $options['description']['show'] == 'hover' ) ? 'selected' : '' ?> value="hover"><?php _e('Mouse over icon', 'BeRocket_AJAX_domain') ?></option>
1565
- </select>
1566
- </td>
1567
- <td>
1568
- <span><?php _e('Hide on:', 'BeRocket_AJAX_domain') ?> </span>
1569
- <select name="br_filters_options[description][hide]">
1570
- <option <?php echo ( $options['description']['hide'] == 'click' ) ? 'selected' : '' ?> value="click"><?php _e('Click anywhere', 'BeRocket_AJAX_domain') ?></option>
1571
- <option <?php echo ( $options['description']['hide'] == 'mouseleave' ) ? 'selected' : '' ?> value="mouseleave"><?php _e('Mouse out of icon', 'BeRocket_AJAX_domain') ?></option>
1572
- </select>
1573
- </td>
1574
- </tr>
1575
- <tr>
1576
- <th scope="row"><?php _e('Product count style', 'BeRocket_AJAX_domain') ?></th>
1577
- <td>
1578
- <select name="br_filters_options[styles_input][product_count]">
1579
- <option <?php echo ( $options['styles_input']['product_count'] ) ? 'selected' : '' ?> value=""><?php _e('4', 'BeRocket_AJAX_domain') ?></option>
1580
- <option <?php echo ( $options['styles_input']['product_count'] == 'round' ) ? 'selected' : '' ?> value="round"><?php _e('(4)', 'BeRocket_AJAX_domain') ?></option>
1581
- <option <?php echo ( $options['styles_input']['product_count'] == 'quad' ) ? 'selected' : '' ?> value="quad"><?php _e('[4]', 'BeRocket_AJAX_domain') ?></option>
1582
- </select>
1583
- </td>
1584
- <td>
1585
- <span><?php _e('Position:', 'BeRocket_AJAX_domain') ?> </span>
1586
- <select name="br_filters_options[styles_input][product_count_position]">
1587
- <option <?php echo ( $options['styles_input']['product_count_position'] ) ? 'selected' : '' ?> value=""><?php _e('Normal', 'BeRocket_AJAX_domain') ?></option>
1588
- <option <?php echo ( $options['styles_input']['product_count_position'] == 'right' ) ? 'selected' : '' ?> value="right"><?php _e('Right', 'BeRocket_AJAX_domain') ?></option>
1589
- <option <?php echo ( $options['styles_input']['product_count_position'] == 'right2em' ) ? 'selected' : '' ?> value="right2em"><?php _e('Right from name', 'BeRocket_AJAX_domain') ?></option>
1590
- </select>
1591
- </td>
1592
- </tr>
1593
- </table>
1594
- <p class="submit">
1595
- <input type="submit" class="button-primary" value="<?php _e('Save Changes', 'BeRocket_AJAX_domain') ?>" />
1596
- </p>
1597
- </div>
1598
- <div id="javascript" class="tab-item <?php if($options['br_opened_tab'] == 'javascript' ) echo 'current'; ?>">
1599
- <table class="form-table">
1600
- <tr>
1601
- <th scope="row"><?php _e('Before Update:', 'BeRocket_AJAX_domain') ?></th>
1602
- <td>
1603
- <textarea style="min-width: 500px; height: 100px;" name="br_filters_options[user_func][before_update]"><?php echo br_get_value_from_array($options, array('user_func', 'before_update')) ?></textarea>
1604
- <br />
1605
- <span style="color:#666666;margin-left:2px;"><?php _e("If you want to add own actions on filter activation, eg: alert('1');", 'BeRocket_AJAX_domain') ?></span>
1606
- </td>
1607
- </tr>
1608
- <tr>
1609
- <th scope="row"><?php _e('On Update:', 'BeRocket_AJAX_domain') ?></th>
1610
- <td>
1611
- <textarea style="min-width: 500px; height: 100px;" name="br_filters_options[user_func][on_update]"><?php echo br_get_value_from_array($options, array('user_func', 'on_update')) ?></textarea>
1612
- <br />
1613
- <span style="color:#666666;margin-left:2px;"><?php _e("If you want to add own actions right on products update. You can manipulate data here, try: data.products = 'Ha!';", 'BeRocket_AJAX_domain') ?></span>
1614
- </td>
1615
- </tr>
1616
- <tr>
1617
- <th scope="row"><?php _e('After Update:', 'BeRocket_AJAX_domain') ?></th>
1618
- <td>
1619
- <textarea style="min-width: 500px; height: 100px;" name="br_filters_options[user_func][after_update]"><?php echo br_get_value_from_array($options, array('user_func', 'after_update')) ?></textarea>
1620
- <br />
1621
- <span style="color:#666666;margin-left:2px;"><?php _e("If you want to add own actions after products updated, eg: alert('1');", 'BeRocket_AJAX_domain') ?></span>
1622
- </td>
1623
- </tr>
1624
- </table>
1625
- <table class="form-table">
1626
- <tr>
1627
- <th colspan="2"><?php _e('User custom CSS style:', 'BeRocket_AJAX_domain') ?></th>
1628
- </tr>
1629
- <tr>
1630
- <td style="width:600px;">
1631
- <textarea style="width: 100%; min-height: 400px; height:900px" name="br_filters_options[user_custom_css]"><?php echo br_get_value_from_array($options, 'user_custom_css') ?></textarea>
1632
- </td>
1633
- <td><div class="berocket_css_examples"style="max-width:300px;">
1634
- <h4>Add border to widget</h4>
1635
- <div style="background-color:white;"><pre>#widget#{
1636
- border:2px solid #FF8800;
1637
- }</pre></div>
1638
- <h4>Set font size and font color for title</h4>
1639
- <div style="background-color:white;"><pre>#widget-title#{
1640
- font-size:36px!important;
1641
- color:orange!important;
1642
- }</pre></div>
1643
- <h4>Display all inline</h4>
1644
- <div style="background-color:white;"><pre>#widget# li{
1645
- display: inline-block;
1646
- }</pre></div>
1647
- <h4>Use WooCommerce font for checkbox</h4>
1648
- <div style="background-color:white;">
1649
- <pre>#widget# li:not(.berocket_checkbox_color) input[type=checkbox] {
1650
- display: none!important;
1651
- }
1652
- #widget# li:not(.berocket_checkbox_color) input[type=checkbox] + label:before{
1653
- font-family: WooCommerce!important;
1654
- speak: none!important;
1655
- font-weight: 400!important;
1656
- font-variant: normal!important;
1657
- text-transform: none!important;
1658
- content: "\e039"!important;
1659
- text-decoration: none!important;
1660
- background:none!important;
1661
- display: inline-block!important;
1662
- border: 0!important;
1663
- margin-right: 5px!important;
1664
- }
1665
- #widget# li:not(.berocket_checkbox_color) input[type=checkbox]:checked + label:before {
1666
- content: "\e015"!important;
1667
- }</pre></div>
1668
- <h4>Use block for slider handler instead image</h4>
1669
- <div style="background-color:white;"><pre>#widget# .ui-slider-handle {
1670
- background:none!important;
1671
- border-radius:50px!important;
1672
- background-color:white!important;
1673
- border: 2px solid black!important;
1674
- outline:none!important;
1675
- }
1676
- #widget# .ui-slider-handle.ui-state-active {
1677
- border: 3px solid black!important;
1678
- }</pre></div>
1679
- <style>
1680
- .berocket_css_examples {
1681
- width:300px;
1682
- overflow:visible;
1683
- }
1684
- .berocket_css_examples div{
1685
- background-color:white;
1686
- width:100%;
1687
- min-width:100%;
1688
- overflow:hidden;
1689
- float:right;
1690
- border:1px solid white;
1691
- padding: 2px;
1692
- }
1693
- .berocket_css_examples div:hover {
1694
- position:relative;
1695
- z-index: 9999;
1696
- width: initial;
1697
- border:1px solid #888;
1698
- }
1699
- </style>
1700
- </div></td>
1701
- </tr>
1702
- </table>
1703
- <input type="hidden" id="br_opened_tab" name="br_filters_options[br_opened_tab]" value="<?php echo $options['br_opened_tab'] ?>">
1704
- <p class="submit">
1705
- <input type="submit" class="button-primary" value="<?php _e('Save Changes', 'BeRocket_AJAX_domain') ?>" />
1706
- </p>
1707
- </div>
1708
- </form>
1709
- </div>
1710
- <?php
1711
- $feature_list = array();
1712
- @ include 'settings_footer.php';
1713
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
templates/filter_post.php CHANGED
@@ -3,7 +3,8 @@ $attributes = br_aapf_get_attributes();
3
  $categories = BeRocket_AAPF_Widget::get_product_categories( '' );
4
  $categories = BeRocket_AAPF_Widget::set_terms_on_same_level( $categories );
5
  $tags = get_terms( 'product_tag' );
6
- $custom_taxonomies = get_taxonomies( array( "_builtin" => false, "public" => true ) );
 
7
  ?>
8
  <div class="berocket_aapf_widget_content">
9
  <div class="widget-liquid-right tab-item current">
@@ -381,7 +382,7 @@ $custom_taxonomies = get_taxonomies( array( "_builtin" => false, "public" => tru
381
  ',
382
  'hide_child_attributes' => '
383
  <div class="berocket_aapf_widget_admin_non_price_tag_cloud_select"'
384
- .( ( $instance['type'] == 'tag_cloud' || $instance['type'] == 'slider' || $instance['type'] == 'select' ) ? ' style="display:none;"' : '' ).'>
385
  <input id="hide_child_attributes" type="checkbox" name="'.$post_name.'[hide_child_attributes]"'.( empty($instance['hide_child_attributes']) ? '' : ' checked' ).' value="1" />
386
  <label for="hide_child_attributes">'.__('Show hierarchical values as a tree with hidden child values on load?', 'BeRocket_AJAX_domain').'</label>
387
  </div>
3
  $categories = BeRocket_AAPF_Widget::get_product_categories( '' );
4
  $categories = BeRocket_AAPF_Widget::set_terms_on_same_level( $categories );
5
  $tags = get_terms( 'product_tag' );
6
+ $custom_taxonomies = get_object_taxonomies( 'product' );
7
+ $custom_taxonomies = array_combine($custom_taxonomies, $custom_taxonomies);
8
  ?>
9
  <div class="berocket_aapf_widget_content">
10
  <div class="widget-liquid-right tab-item current">
382
  ',
383
  'hide_child_attributes' => '
384
  <div class="berocket_aapf_widget_admin_non_price_tag_cloud_select"'
385
+ .( ( $instance['filter_type'] == 'date' || ( $instance['filter_type'] != 'date' && ( $instance['type'] == 'tag_cloud' || $instance['type'] == 'slider' || $instance['type'] == 'select' ) ) ) ? ' style="display:none;"' : '' ).'>
386
  <input id="hide_child_attributes" type="checkbox" name="'.$post_name.'[hide_child_attributes]"'.( empty($instance['hide_child_attributes']) ? '' : ' checked' ).' value="1" />
387
  <label for="hide_child_attributes">'.__('Show hierarchical values as a tree with hidden child values on load?', 'BeRocket_AJAX_domain').'</label>
388
  </div>
templates/filter_post_simple.php CHANGED
@@ -3,7 +3,8 @@ $attributes = br_aapf_get_attributes();
3
  $categories = BeRocket_AAPF_Widget::get_product_categories( '' );
4
  $categories = BeRocket_AAPF_Widget::set_terms_on_same_level( $categories );
5
  $tags = get_terms( 'product_tag' );
6
- $custom_taxonomies = get_taxonomies( array( "_builtin" => false, "public" => true ) );
 
7
  ?>
8
  <div class="widget-liquid-right tab-item current">
9
  <div>
3
  $categories = BeRocket_AAPF_Widget::get_product_categories( '' );
4
  $categories = BeRocket_AAPF_Widget::set_terms_on_same_level( $categories );
5
  $tags = get_terms( 'product_tag' );
6
+ $custom_taxonomies = get_object_taxonomies( 'product' );
7
+ $custom_taxonomies = array_combine($custom_taxonomies, $custom_taxonomies);
8
  ?>
9
  <div class="widget-liquid-right tab-item current">
10
  <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/
5
  * Description: Unlimited AJAX products filters to make your shop perfect
6
- * Version: 1.3.1.1
7
  * Author: BeRocket
8
  * Requires at least: 4.0
9
  * Author URI: http://berocket.com
@@ -11,8 +11,8 @@
11
  * License URI: http://berocket.com/license
12
  * Text Domain: BeRocket_AJAX_domain
13
  * Domain Path: /languages/
14
- * WC tested up to: 3.5.6
15
  */
16
- define( "BeRocket_AJAX_filters_version", '1.3.1.1' );
17
  define( "BeRocket_AJAX_filters_file", __FILE__ );
18
  include_once('main.php');
3
  * Plugin Name: Advanced AJAX Product Filters for WooCommerce
4
  * Plugin URI: https://wordpress.org/plugins/woocommerce-ajax-filters/
5
  * Description: Unlimited AJAX products filters to make your shop perfect
6
+ * Version: 1.3.1.2
7
  * Author: BeRocket
8
  * Requires at least: 4.0
9
  * Author URI: http://berocket.com
11
  * License URI: http://berocket.com/license
12
  * Text Domain: BeRocket_AJAX_domain
13
  * Domain Path: /languages/
14
+ * WC tested up to: 3.5.7
15
  */
16
+ define( "BeRocket_AJAX_filters_version", '1.3.1.2' );
17
  define( "BeRocket_AJAX_filters_file", __FILE__ );
18
  include_once('main.php');