YITH WooCommerce Ajax Product Filter - Version 3.6.6

Version Description

  • Released on 12nd June, 2019 =

  • Fix: Bug on plugin options

Download this release

Release Info

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

Code changes from version 3.6.5 to 3.6.6

README.txt CHANGED
@@ -4,7 +4,7 @@ Contributors: yithemes
4
  Tags: woocommerce ajax product filter download, woocommerce, widget, ajax, ajax filtered nav, ajax navigation, ajax filtered navigation, woocommerce layered navigation, woocommerce layered nav, product filter, product filters, ajax product filter, woocommerce ajax product filter, woocommerce filters, sidebar filter, sidebar ajax filter, ajax price filter, price filter, product sorting, woocommerce filter, taxonomy filter, attribute filter, attributes filter, woocommerce product sort, ajax sort, woocommerce ajax product filter, advanced product filters, ajax product filters, filters, woocommerce ajax product filters, woocommerce product filters, woocommerce product filters, category filter, attribute filters, woocommerce products filter, woocommerce price filter, yit, yith, yithemes
5
  Requires at least: 4.0
6
  Tested up to: 5.2
7
- Stable tag: 3.6.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -159,7 +159,11 @@ If you want to see a demonstration version of the premium plugin, you can see it
159
 
160
  == Changelog ==
161
 
162
- = 3.6.5 - Released on 12th June, 2019 =
 
 
 
 
163
 
164
  * Update: Plugin Core Framework
165
 
4
  Tags: woocommerce ajax product filter download, woocommerce, widget, ajax, ajax filtered nav, ajax navigation, ajax filtered navigation, woocommerce layered navigation, woocommerce layered nav, product filter, product filters, ajax product filter, woocommerce ajax product filter, woocommerce filters, sidebar filter, sidebar ajax filter, ajax price filter, price filter, product sorting, woocommerce filter, taxonomy filter, attribute filter, attributes filter, woocommerce product sort, ajax sort, woocommerce ajax product filter, advanced product filters, ajax product filters, filters, woocommerce ajax product filters, woocommerce product filters, woocommerce product filters, category filter, attribute filters, woocommerce products filter, woocommerce price filter, yit, yith, yithemes
5
  Requires at least: 4.0
6
  Tested up to: 5.2
7
+ Stable tag: 3.6.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
159
 
160
  == Changelog ==
161
 
162
+ = 3.6.6 - Released on 12nd June, 2019 =
163
+
164
+ * Fix: Bug on plugin options
165
+
166
+ = 3.6.5 - Released on 12nd June, 2019 =
167
 
168
  * Update: Plugin Core Framework
169
 
init.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: YITH WooCommerce Ajax Product Filter
4
  * Plugin URI: https://wordpress.org/plugins/yith-woocommerce-ajax-navigation/
5
  * Description:<code><strong>YITH WooCommerce AJAX Product Filter</strong></code> allows your users to find the product they are looking for as quickly as possible. Thanks to the plugin you will be able to set up one or more search filters for your WooCommerce products, improve the user experience and give the impression of being in a big and reliable store. <a href="https://yithemes.com/" target="_blank">Get more plugins for your e-commerce shop on <strong>YITH</strong></a>
6
- * Version: 3.6.5
7
  * Author: YITH
8
  * Author URI: https://yithemes.com/
9
  * Text Domain: yith-woocommerce-ajax-navigation
@@ -67,7 +67,7 @@ load_plugin_textdomain( 'yith-woocommerce-ajax-navigation', false, dirname( plug
67
  ! defined( 'YITH_WCAN' ) && define( 'YITH_WCAN', true );
68
  ! defined( 'YITH_WCAN_URL' ) && define( 'YITH_WCAN_URL', plugin_dir_url( __FILE__ ) );
69
  ! defined( 'YITH_WCAN_DIR' ) && define( 'YITH_WCAN_DIR', plugin_dir_path( __FILE__ ) );
70
- ! defined( 'YITH_WCAN_VERSION' ) && define( 'YITH_WCAN_VERSION', '3.6.5' );
71
  ! defined( 'YITH_WCAN_FREE_INIT') && define( 'YITH_WCAN_FREE_INIT', plugin_basename( __FILE__ ) );
72
  ! defined( 'YITH_WCAN_FILE' ) && define( 'YITH_WCAN_FILE', __FILE__ );
73
 
3
  * Plugin Name: YITH WooCommerce Ajax Product Filter
4
  * Plugin URI: https://wordpress.org/plugins/yith-woocommerce-ajax-navigation/
5
  * Description:<code><strong>YITH WooCommerce AJAX Product Filter</strong></code> allows your users to find the product they are looking for as quickly as possible. Thanks to the plugin you will be able to set up one or more search filters for your WooCommerce products, improve the user experience and give the impression of being in a big and reliable store. <a href="https://yithemes.com/" target="_blank">Get more plugins for your e-commerce shop on <strong>YITH</strong></a>
6
+ * Version: 3.6.6
7
  * Author: YITH
8
  * Author URI: https://yithemes.com/
9
  * Text Domain: yith-woocommerce-ajax-navigation
67
  ! defined( 'YITH_WCAN' ) && define( 'YITH_WCAN', true );
68
  ! defined( 'YITH_WCAN_URL' ) && define( 'YITH_WCAN_URL', plugin_dir_url( __FILE__ ) );
69
  ! defined( 'YITH_WCAN_DIR' ) && define( 'YITH_WCAN_DIR', plugin_dir_path( __FILE__ ) );
70
+ ! defined( 'YITH_WCAN_VERSION' ) && define( 'YITH_WCAN_VERSION', '3.6.6' );
71
  ! defined( 'YITH_WCAN_FREE_INIT') && define( 'YITH_WCAN_FREE_INIT', plugin_basename( __FILE__ ) );
72
  ! defined( 'YITH_WCAN_FILE' ) && define( 'YITH_WCAN_FILE', __FILE__ );
73
 
plugin-fw/assets/css/yith-fields.css CHANGED
@@ -493,7 +493,10 @@ YITH UI
493
  content: "\e90e";
494
  color: #d8d8d8;
495
  }
496
-
 
 
 
497
  .yith-plugin-fw-banner{
498
  width: 100%;
499
  height: 75px;
@@ -909,9 +912,7 @@ YITH UI
909
  background-color: #1c4863;
910
  color: #fff;
911
  }
912
- .yith-plugin-ui .yith-save-button:before{
913
- content: "\e905";
914
- }
915
 
916
  /** yith-remove-button **/
917
 
493
  content: "\e90e";
494
  color: #d8d8d8;
495
  }
496
+ .icon-reset:before {
497
+ content: "\e910";
498
+ color: #d8d8d8;
499
+ }
500
  .yith-plugin-fw-banner{
501
  width: 100%;
502
  height: 75px;
912
  background-color: #1c4863;
913
  color: #fff;
914
  }
915
+
 
 
916
 
917
  /** yith-remove-button **/
918
 
plugin-fw/assets/fonts/yith-icon.eot CHANGED
Binary file
plugin-fw/assets/fonts/yith-icon.svg CHANGED
@@ -23,4 +23,5 @@
23
  <glyph unicode="&#xe90d;" glyph-name="trash" d="M734.591 132.655c0-20.48-16.696-37.101-37.101-37.101h-371.014c-20.406 0-37.101 16.621-37.101 37.101v519.42h-74.203v-519.42c0-61.403 50.087-111.304 111.304-111.304h371.014c61.217 0 111.304 49.901 111.304 111.304v519.42h-74.203v-519.42zM400.679 800.48h222.608v-37.101h-222.608v37.101zM697.49 800.48c0 40.923-33.391 74.203-74.203 74.203h-222.608c-40.812 0-74.203-33.28-74.203-74.203v-37.101h-185.507v-74.203h742.028v74.203h-185.507v37.101zM474.882 614.973h74.203v-445.217h-74.203v445.217zM363.577 614.973h74.203v-445.217h-74.203v445.217zM586.186 614.973h74.203v-445.217h-74.203v445.217z" />
24
  <glyph unicode="&#xe90e;" glyph-name="info" d="M511.957 92.471c-196.017 0-355.555 159.466-355.555 355.555 0 196.053 159.538 355.555 355.555 355.555 196.053 0 355.555-159.502 355.555-355.555 0-196.089-159.502-355.555-355.555-355.555zM511.957 874.692c-235.271 0-426.666-191.431-426.666-426.666 0-235.271 191.395-426.666 426.666-426.666 235.306 0 426.666 191.395 426.666 426.666 0 235.235-191.36 426.666-426.666 426.666zM476.402 270.248v177.777h35.555v-177.777h-35.555zM583.068 448.026v71.111h-213.333v-71.111h35.555v-248.888h213.333v71.111h-35.555v177.777zM494.179 661.359c9.813 0 17.778-8 17.778-17.778 0-9.813-7.964-17.778-17.778-17.778-9.778 0-17.778 7.964-17.778 17.778 0 9.778 8 17.778 17.778 17.778zM494.179 554.692c49.031 0 88.889 39.858 88.889 88.889 0 48.995-39.858 88.889-88.889 88.889-48.995 0-88.889-39.893-88.889-88.889 0-49.031 39.893-88.889 88.889-88.889z" />
25
  <glyph unicode="&#xe90f;" glyph-name="drag" d="M241.835 409.259h232.277v-232.277h-116.053l156.501-154.795 156.501 154.795h-119.467v232.277h233.813v-116.224l154.965 156.672-154.965 156.501v-119.467h-233.813v232.277h119.467l-156.501 154.795-156.501-154.795h116.053v-232.277h-232.277v119.467l-154.795-156.501 154.795-156.672z" />
 
26
  </font></defs></svg>
23
  <glyph unicode="&#xe90d;" glyph-name="trash" d="M734.591 132.655c0-20.48-16.696-37.101-37.101-37.101h-371.014c-20.406 0-37.101 16.621-37.101 37.101v519.42h-74.203v-519.42c0-61.403 50.087-111.304 111.304-111.304h371.014c61.217 0 111.304 49.901 111.304 111.304v519.42h-74.203v-519.42zM400.679 800.48h222.608v-37.101h-222.608v37.101zM697.49 800.48c0 40.923-33.391 74.203-74.203 74.203h-222.608c-40.812 0-74.203-33.28-74.203-74.203v-37.101h-185.507v-74.203h742.028v74.203h-185.507v37.101zM474.882 614.973h74.203v-445.217h-74.203v445.217zM363.577 614.973h74.203v-445.217h-74.203v445.217zM586.186 614.973h74.203v-445.217h-74.203v445.217z" />
24
  <glyph unicode="&#xe90e;" glyph-name="info" d="M511.957 92.471c-196.017 0-355.555 159.466-355.555 355.555 0 196.053 159.538 355.555 355.555 355.555 196.053 0 355.555-159.502 355.555-355.555 0-196.089-159.502-355.555-355.555-355.555zM511.957 874.692c-235.271 0-426.666-191.431-426.666-426.666 0-235.271 191.395-426.666 426.666-426.666 235.306 0 426.666 191.395 426.666 426.666 0 235.235-191.36 426.666-426.666 426.666zM476.402 270.248v177.777h35.555v-177.777h-35.555zM583.068 448.026v71.111h-213.333v-71.111h35.555v-248.888h213.333v71.111h-35.555v177.777zM494.179 661.359c9.813 0 17.778-8 17.778-17.778 0-9.813-7.964-17.778-17.778-17.778-9.778 0-17.778 7.964-17.778 17.778 0 9.778 8 17.778 17.778 17.778zM494.179 554.692c49.031 0 88.889 39.858 88.889 88.889 0 48.995-39.858 88.889-88.889 88.889-48.995 0-88.889-39.893-88.889-88.889 0-49.031 39.893-88.889 88.889-88.889z" />
25
  <glyph unicode="&#xe90f;" glyph-name="drag" d="M241.835 409.259h232.277v-232.277h-116.053l156.501-154.795 156.501 154.795h-119.467v232.277h233.813v-116.224l154.965 156.672-154.965 156.501v-119.467h-233.813v232.277h119.467l-156.501 154.795-156.501-154.795h116.053v-232.277h-232.277v119.467l-154.795-156.501 154.795-156.672z" />
26
+ <glyph unicode="&#xe910;" glyph-name="reset" d="M188.928 400.384c23.211-158.379 159.573-280.405 324.267-280.405 118.613 0 228.352 64.341 286.379 167.936l-63.488 35.499c-45.227-80.555-130.56-130.731-222.891-130.731-120.491 0-221.525 84.139-248.149 196.608l40.107-40.107 51.541 51.541-135.168 135.168-135.168-135.168 51.541-51.541 51.029 51.2zM513.195 703.317c121.685 0 223.573-85.675 249.003-199.68l-43.179 43.179-51.541-51.541 135.168-135.168 135.168 135.168-51.541 51.541-48.981-48.981c-24.064 157.355-159.915 278.528-323.925 278.528-116.736 0-225.621-62.805-284.16-164.011l63.147-36.523c45.227 78.507 129.877 127.488 220.843 127.488z" />
27
  </font></defs></svg>
plugin-fw/assets/fonts/yith-icon.ttf CHANGED
Binary file
plugin-fw/assets/fonts/yith-icon.woff CHANGED
Binary file
plugin-fw/init.php CHANGED
@@ -1,13 +1,13 @@
1
  <?php
2
  /**
3
  * Framework Name: YIT Plugin Framework
4
- * Version: 3.3.0
5
  * Author: YITHEMES
6
  * Text Domain: yith-plugin-fw
7
  * Domain Path: /languages/
8
  *
9
  * @author Your Inspiration Themes
10
- * @version 3.1.26
11
  */
12
  /**
13
  * This file belongs to the YIT Plugin Framework.
1
  <?php
2
  /**
3
  * Framework Name: YIT Plugin Framework
4
+ * Version: 3.3.1
5
  * Author: YITHEMES
6
  * Text Domain: yith-plugin-fw
7
  * Domain Path: /languages/
8
  *
9
  * @author Your Inspiration Themes
10
+ * @version 3.3.1
11
  */
12
  /**
13
  * This file belongs to the YIT Plugin Framework.
plugin-fw/lib/promo/yith-promo.php CHANGED
@@ -21,7 +21,7 @@ if( ! function_exists( 'yith_plugin_fw_promo_notices' ) ){
21
  return false;
22
  }
23
 
24
- $base_url = apply_filters( 'yith_plugin_fw_promo_base_url', YIT_CORE_PLUGIN_URL . '/lib/promo/' );
25
  $xml = apply_filters( 'yith_plugin_fw_promo_xml_url', $base_url . 'yith-promo.xml' );
26
  $transient = "yith_promo_message";
27
  $remote_data = get_site_transient( $transient );
21
  return false;
22
  }
23
 
24
+ $base_url = apply_filters( 'yith_plugin_fw_promo_base_url', YIT_CORE_PLUGIN_PATH . '/lib/promo/' );
25
  $xml = apply_filters( 'yith_plugin_fw_promo_xml_url', $base_url . 'yith-promo.xml' );
26
  $transient = "yith_promo_message";
27
  $remote_data = get_site_transient( $transient );
plugin-fw/lib/yit-metabox.php CHANGED
@@ -595,7 +595,7 @@ if ( !class_exists( 'YIT_Metabox' ) ) {
595
  *
596
  * @param $classes
597
  *
598
- * @return void
599
  * @author Emanuela Castorina
600
  */
601
  public function add_body_class( $classes ) {
@@ -603,7 +603,7 @@ if ( !class_exists( 'YIT_Metabox' ) ) {
603
 
604
  $exclude_post_types = apply_filters( 'yith_plugin_fw_exclude_post_types_to_additional_classes', array( 'product' ) );
605
 
606
- if ( in_array( $post->post_type, $exclude_post_types ) ) {
607
  return $classes;
608
  }
609
 
595
  *
596
  * @param $classes
597
  *
598
+ * @return string
599
  * @author Emanuela Castorina
600
  */
601
  public function add_body_class( $classes ) {
603
 
604
  $exclude_post_types = apply_filters( 'yith_plugin_fw_exclude_post_types_to_additional_classes', array( 'product' ) );
605
 
606
+ if ( $post && in_array( $post->post_type, $exclude_post_types ) ) {
607
  return $classes;
608
  }
609
 
plugin-fw/lib/yit-plugin-licence.php CHANGED
@@ -58,7 +58,10 @@ if ( ! class_exists( 'YIT_Plugin_Licence' ) ) {
58
  yith_plugin_fw_load_update_and_licence_files();
59
  }
60
 
61
- YITH_Plugin_Licence()->register( $init, $secret_key, $product_id );
 
 
 
62
  }
63
 
64
  /**
58
  yith_plugin_fw_load_update_and_licence_files();
59
  }
60
 
61
+ try {
62
+ YITH_Plugin_Licence()->register( $init, $secret_key, $product_id );
63
+ } catch( Error $e ){
64
+ }
65
  }
66
 
67
  /**
plugin-fw/lib/yit-theme-licence.php CHANGED
@@ -58,7 +58,10 @@ if ( ! class_exists( 'YIT_Theme_Licence' ) ) {
58
  yith_plugin_fw_load_update_and_licence_files();
59
  }
60
 
61
- YITH_Theme_Licence()->register( $init, $secret_key, $product_id );
 
 
 
62
  }
63
 
64
  /**
58
  yith_plugin_fw_load_update_and_licence_files();
59
  }
60
 
61
+ try {
62
+ YITH_Theme_Licence()->register( $init, $secret_key, $product_id );
63
+ } catch( Error $e ){
64
+ }
65
  }
66
 
67
  /**
plugin-fw/lib/yit-upgrade.php CHANGED
@@ -56,7 +56,10 @@ if ( ! class_exists( 'YIT_Upgrade' ) ) {
56
  yith_plugin_fw_load_update_and_licence_files();
57
  }
58
 
59
- YITH_Plugin_Upgrade()->register( $plugin_slug, $plugin_init );
 
 
 
60
  }
61
 
62
  /**
56
  yith_plugin_fw_load_update_and_licence_files();
57
  }
58
 
59
+ try {
60
+ YITH_Plugin_Upgrade()->register( $plugin_slug, $plugin_init );
61
+ } catch( Error $e ){
62
+ }
63
  }
64
 
65
  /**
plugin-fw/templates/fields/select-buttons.php CHANGED
@@ -18,19 +18,20 @@ $field[ 'type' ] = 'select';
18
 
19
  if ( empty( $field[ 'class' ] ) ) unset( $field[ 'class' ] );
20
 
 
21
  $default_args = array(
22
  'multiple' => true,
23
  'class' => 'wc-enhanced-select',
24
  'buttons' => array(
25
  array(
26
- 'name' => __( 'Select All', 'yith-plugin-fw' ),
27
  'class' => 'yith-plugin-fw-select-all',
28
  'data' => array(
29
  'select-id' => $field[ 'id' ]
30
  ),
31
  ),
32
  array(
33
- 'name' => __( 'Deselect All', 'yith-plugin-fw' ),
34
  'class' => 'yith-plugin-fw-deselect-all',
35
  'data' => array(
36
  'select-id' => $field[ 'id' ]
18
 
19
  if ( empty( $field[ 'class' ] ) ) unset( $field[ 'class' ] );
20
 
21
+ $add_label = isset( $field['add_all_button_label'] ) ? $field['add_all_button_label'] : __( 'Add All', 'yith-plugin-fw' );
22
  $default_args = array(
23
  'multiple' => true,
24
  'class' => 'wc-enhanced-select',
25
  'buttons' => array(
26
  array(
27
+ 'name' => $add_label,
28
  'class' => 'yith-plugin-fw-select-all',
29
  'data' => array(
30
  'select-id' => $field[ 'id' ]
31
  ),
32
  ),
33
  array(
34
+ 'name' => __( 'Remove All', 'yith-plugin-fw' ),
35
  'class' => 'yith-plugin-fw-deselect-all',
36
  'data' => array(
37
  'select-id' => $field[ 'id' ]
plugin-fw/templates/fields/select.php CHANGED
@@ -15,7 +15,7 @@
15
  extract( $field );
16
  $multiple = isset( $multiple ) && $multiple;
17
  $multiple_html = ( $multiple ) ? ' multiple' : '';
18
-
19
  if ( $multiple && !is_array( $value ) )
20
  $value = array();
21
 
@@ -26,6 +26,7 @@ $class = isset( $class ) ? $class : 'yith-plugin-fw-select';
26
  name="<?php echo $name ?><?php if ( $multiple ) echo "[]" ?>" <?php if ( isset( $std ) ) : ?>
27
  data-std="<?php echo ( $multiple ) ? implode( ' ,', $std ) : $std ?>"<?php endif ?>
28
  class="<?php echo $class ?>"
 
29
  <?php echo $custom_attributes ?>
30
  <?php if ( isset( $data ) ) echo yith_plugin_fw_html_data_to_string( $data ); ?>>
31
  <?php foreach ( $options as $key => $item ) : ?>
15
  extract( $field );
16
  $multiple = isset( $multiple ) && $multiple;
17
  $multiple_html = ( $multiple ) ? ' multiple' : '';
18
+ $placeholder = isset( $placeholder ) ? ' data-placeholder = "' . $placeholder .'" ': '';
19
  if ( $multiple && !is_array( $value ) )
20
  $value = array();
21
 
26
  name="<?php echo $name ?><?php if ( $multiple ) echo "[]" ?>" <?php if ( isset( $std ) ) : ?>
27
  data-std="<?php echo ( $multiple ) ? implode( ' ,', $std ) : $std ?>"<?php endif ?>
28
  class="<?php echo $class ?>"
29
+ <?php echo $placeholder ?>
30
  <?php echo $custom_attributes ?>
31
  <?php if ( isset( $data ) ) echo yith_plugin_fw_html_data_to_string( $data ); ?>>
32
  <?php foreach ( $options as $key => $item ) : ?>