YITH WooCommerce Ajax Product Filter - Version 2.1.0

Version Description

  • Added: Frontend classes option panel
  • Added: yith_wcan_ajax_frontend_classes filter
  • Added: plugin works in product category page
  • Added: WPML and String translation support
  • Updated: language pot file
  • Updated: Italian translation
  • Tweak: Shop uri management
  • Fixed: wrong filter link in product category page
  • Fixed: Widget doesn't work fine in Shop Category Page
  • Fixed: Remove trailing slash in widget shop uri
  • Fixed: Prevent double instance in singleton class
  • Fixed: The widget doesn't work with WPML with Label and Color style
Download this release

Release Info

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

Code changes from version 2.0.4 to 2.1.0

README.txt CHANGED
@@ -3,8 +3,8 @@
3
  Contributors: yithemes
4
  Tags: woocommerce, widget, ajax, ajax filtered nav, ajax navigation, ajax filtered navigation, woocommerce layered navigation, woocommerce layered nav, product filter, product filters, ajax product filter, woocommerce ajax product filter, woocommerce filters, sidebar filter, sidebar ajax filter, ajax price filter, price filter, product sorting, woocommerce filter, taxonomy filter, attribute filter, attributes filter, woocommerce product sort, ajax sort, woocommerce ajax product filter, advanced product filters, ajax product filters, filters, woocommerce ajax product filters, woocommerce product filters, woocommerce product filters, category filter, attribute filters, woocommerce products filter, woocommerce price filter, yit, yith, yithemes
5
  Requires at least: 4.0
6
- Tested up to: 4.2.2
7
- Stable tag: 2.0.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -44,7 +44,7 @@ Full documentation is available [here](http://yithemes.com/docs-plugins/yith-woo
44
  = Why isn't the widget displayed in my sidebar? =
45
  In order to display the widget, you need to assign it to the sidebar in the Shop page, and you also need to add Product Attributes to your product. Read the Getting Started section to learn how to add them.
46
 
47
- = Translation issue with the latest version =
48
  Dear users,
49
  we would like to inform you that the YITH WooCommerce Ajax Navigation plugin will change its name in YITH WooCommerce Ajax Product Filter from the next update.
50
  In addition to the name, with the new release the plugin textdomain will change too from "yit" to "yith_wc_ajxnav".
@@ -53,6 +53,29 @@ It may be possible that, updating the plugin, some language files will not be re
53
  For example, if your language files were named yit-en_GB.po and yit-en_GB.mo, you will just have to rename them respectively in yith_wc_ajxnav-en_GB.po and yith_wc_ajxnav-en_GB.mo.
54
  After renaming the files, you can update/translate the .po file following the classic procedure for translations.
55
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
56
  == Screenshots ==
57
 
58
  1. Admin - Appearance -> Widget: Filter Widget List Style
@@ -66,6 +89,21 @@ After renaming the files, you can update/translate the .po file following the cl
66
 
67
  == Changelog ==
68
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
69
  = 2.0.4 =
70
 
71
  * Added: Filter 'yith_wcan_product_taxonomy_type' to widget product tax type
3
  Contributors: yithemes
4
  Tags: woocommerce, widget, ajax, ajax filtered nav, ajax navigation, ajax filtered navigation, woocommerce layered navigation, woocommerce layered nav, product filter, product filters, ajax product filter, woocommerce ajax product filter, woocommerce filters, sidebar filter, sidebar ajax filter, ajax price filter, price filter, product sorting, woocommerce filter, taxonomy filter, attribute filter, attributes filter, woocommerce product sort, ajax sort, woocommerce ajax product filter, advanced product filters, ajax product filters, filters, woocommerce ajax product filters, woocommerce product filters, woocommerce product filters, category filter, attribute filters, woocommerce products filter, woocommerce price filter, yit, yith, yithemes
5
  Requires at least: 4.0
6
+ Tested up to: 4.2.3
7
+ Stable tag: 2.1.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
44
  = Why isn't the widget displayed in my sidebar? =
45
  In order to display the widget, you need to assign it to the sidebar in the Shop page, and you also need to add Product Attributes to your product. Read the Getting Started section to learn how to add them.
46
 
47
+ = Translation issue with the version 2.0.0 =
48
  Dear users,
49
  we would like to inform you that the YITH WooCommerce Ajax Navigation plugin will change its name in YITH WooCommerce Ajax Product Filter from the next update.
50
  In addition to the name, with the new release the plugin textdomain will change too from "yit" to "yith_wc_ajxnav".
53
  For example, if your language files were named yit-en_GB.po and yit-en_GB.mo, you will just have to rename them respectively in yith_wc_ajxnav-en_GB.po and yith_wc_ajxnav-en_GB.mo.
54
  After renaming the files, you can update/translate the .po file following the classic procedure for translations.
55
 
56
+ = The widget of the filters is not working =
57
+ = The page doesn't update after clicking on a filter =
58
+
59
+ The issue could be related to the fact you are using a non-standard template for a WooCommerce shop page. To solve it, you should ask to the theme's author to use WooCommerce standard HTML classes.
60
+ As an alternative, you can use this piece of code in the functions.php file of your theme:
61
+
62
+ `
63
+ if( ! function_exists( 'yith_wcan_frontend_classes' ) ){
64
+ function yith_wcan_frontend_classes(){
65
+ return array(
66
+ 'container' => 'YOUR_SHOP_CONTAINER',
67
+ 'pagination' => 'YOUR_PAGINATION_CONTAINER',
68
+ 'result_count' => 'YOUR_RESULT_COUNT_CONTAINER'
69
+
70
+ );
71
+ }
72
+ }
73
+
74
+ add_filter( 'yith_wcan_ajax_frontend_classes', 'yith_wcan_frontend_classes' );
75
+ `
76
+
77
+ If you don't know which classes you should use, ask to the developer of your theme.
78
+
79
  == Screenshots ==
80
 
81
  1. Admin - Appearance -> Widget: Filter Widget List Style
89
 
90
  == Changelog ==
91
 
92
+ = 2.1.0 =
93
+
94
+ * Added: Frontend classes option panel
95
+ * Added: yith_wcan_ajax_frontend_classes filter
96
+ * Added: plugin works in product category page
97
+ * Added: WPML and String translation support
98
+ * Updated: language pot file
99
+ * Updated: Italian translation
100
+ * Tweak: Shop uri management
101
+ * Fixed: wrong filter link in product category page
102
+ * Fixed: Widget doesn't work fine in Shop Category Page
103
+ * Fixed: Remove trailing slash in widget shop uri
104
+ * Fixed: Prevent double instance in singleton class
105
+ * Fixed: The widget doesn't work with WPML with Label and Color style
106
+
107
  = 2.0.4 =
108
 
109
  * Added: Filter 'yith_wcan_product_taxonomy_type' to widget product tax type
assets/css/admin.css CHANGED
@@ -83,11 +83,8 @@ label.yith-wcan-reset-table{
83
  width: 240px;
84
  }
85
 
86
- .yit-plugins_page_yith_wcan_panel .plugin-option .form-table tr th label {
87
- line-height: 45px;
88
- }
89
-
90
- div#yit_wcan_options_yith_wcan_dropdown_style-container .select_wrapper {
91
  width: 220px;
92
  }
93
 
@@ -105,4 +102,83 @@ input.yith-wcan-price-filter-input.widefat {
105
 
106
  .yith-add-new-range-button {
107
  margin-bottom: 15px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
108
  }
83
  width: 240px;
84
  }
85
 
86
+ div#yit_wcan_options_yith_wcan_dropdown_style-container .select_wrapper,
87
+ div#yit_wcan_options_yith_wcan_tag_query_option-container .select_wrapper {
 
 
 
88
  width: 220px;
89
  }
90
 
102
 
103
  .yith-add-new-range-button {
104
  margin-bottom: 15px;
105
+ }
106
+
107
+ .plugin-option .form-table td .yith_wcan_select_tag tbody td,
108
+ .plugin-option .form-table td .yith_wcan_select_tag thead td{
109
+ padding: 5px 5px 5px 0;
110
+ line-height: 0;
111
+ }
112
+
113
+ .plugin-option .form-table td .yith_wcan_select_tag tbody td.term_count{
114
+ text-align: center;
115
+ }
116
+
117
+ .plugin-option .form-table td .yith_wcan_select_tag thead {
118
+ margin-bottom: 15px;
119
+ }
120
+
121
+ .plugin-option .form-table td .yith_wcan_select_tag thead td{
122
+ font-weight: bold;
123
+ text-transform: uppercase;
124
+ padding-bottom: 25px;
125
+ }
126
+
127
+ .yith_wcan_select_tag_wrapper {
128
+ max-height: 150px;
129
+ overflow-y: scroll;
130
+ overflow-x: hidden;
131
+ }
132
+
133
+ .yith_wcan_select_tag_wrapper .term_count{
134
+ text-align: center;
135
+ }
136
+
137
+ .yith_wcan_tags_query_type{
138
+ margin-bottom: 15px;
139
+ }
140
+
141
+ .yith-wcan-select-option .select-all {
142
+ margin-right: 15px;
143
+ }
144
+ .yith-wcan-select-option .select-all,
145
+ .yith-wcan-select-option .unselect-all {
146
+ text-decoration: none;
147
+ font-size: 12px;
148
+ font-weight: bold;
149
+ text-transform: uppercase;
150
+ margin-bottom: 5px;
151
+ display: inline-block;
152
+ }
153
+
154
+ .yith-wcan-select-option a.select-all:focus,
155
+ .yith-wcan-select-option a.unselect-all:focus{
156
+ -webkit-box-shadow: none;
157
+ box-shadow: none;
158
+ }
159
+
160
+ .yith-wcan-admin-note {
161
+ display: block;
162
+ font-style: italic;
163
+ }
164
+
165
+ .yith-wcan-admin-note-star {
166
+ font-size: 8px;
167
+ }
168
+
169
+ #yith-wcan-tag-list-messages {
170
+ display: none;
171
+ background-color: #FAFAFA ;
172
+ border: 1px solid #e5e5e5;
173
+ -webkit-box-shadow: 0 1px 1px rgba(0,0,0,.04);
174
+ box-shadow: 0 1px 1px rgba(0,0,0,.04);
175
+ padding: 5px;
176
+ border-radius: 5px;
177
+ font-size: 12px;
178
+ }
179
+
180
+ input#yit_wcan_options_yith_wcan_ajax_shop_pagination,
181
+ input#yit_wcan_options_yith_wcan_ajax_shop_container,
182
+ input#yit_wcan_options_yith_wcan_ajax_shop_result_container {
183
+ width: 230px;
184
  }
assets/css/frontend.css CHANGED
@@ -177,7 +177,7 @@
177
  cursor: pointer;
178
  }
179
  .widget h3.with-dropdown .widget-dropdown {
180
- border: none;
181
  width: 22px;
182
  height: 22px;
183
  background: url(../images/select-arrow.png) top 0px right no-repeat;
177
  cursor: pointer;
178
  }
179
  .widget h3.with-dropdown .widget-dropdown {
180
+ border-width: 0;
181
  width: 22px;
182
  height: 22px;
183
  background: url(../images/select-arrow.png) top 0px right no-repeat;
assets/js/yith-wcan-admin.js CHANGED
@@ -31,7 +31,8 @@ jQuery(function ($) {
31
  display = $(this).parents('.widget-content').find('#yit-wcan-display'),
32
  style = $(this).parents('.widget-content').find('#yit-wcan-style'),
33
  show_count = $(this).parents('.widget-content').find('#yit-wcan-show-count'),
34
- attributes = $(this).parents('.widget-content').find('.yith-wcan-attribute-list');
 
35
 
36
  var data = {
37
  action : 'yith_wcan_select_type',
@@ -67,6 +68,13 @@ jQuery(function ($) {
67
  attributes.show();
68
  }
69
 
 
 
 
 
 
 
 
70
  $.post(ajaxurl, data, function (response) {
71
  spinner.hide();
72
  container.html(response.content);
@@ -74,6 +82,8 @@ jQuery(function ($) {
74
  }, 'json');
75
  });
76
 
 
 
77
  //color-picker
78
  $(document).on('yith_colorpicker',function () {
79
  $('.yith-colorpicker').each(function () {
@@ -92,4 +102,31 @@ jQuery(function ($) {
92
  $(document).on('change', '.yith-wcan-dropdown-check', function(){
93
  $.select_dropdown( $(this) );
94
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
95
  });
31
  display = $(this).parents('.widget-content').find('#yit-wcan-display'),
32
  style = $(this).parents('.widget-content').find('#yit-wcan-style'),
33
  show_count = $(this).parents('.widget-content').find('#yit-wcan-show-count'),
34
+ attributes = $(this).parents('.widget-content').find('.yith-wcan-attribute-list'),
35
+ tag_list = $(this).parents('.widget-content').find('.yit-wcan-widget-tag-list');
36
 
37
  var data = {
38
  action : 'yith_wcan_select_type',
68
  attributes.show();
69
  }
70
 
71
+ if( data.value == 'tags' ){
72
+ tag_list.show();
73
+ } else {
74
+ tag_list.hide();
75
+ }
76
+
77
+
78
  $.post(ajaxurl, data, function (response) {
79
  spinner.hide();
80
  container.html(response.content);
82
  }, 'json');
83
  });
84
 
85
+ $('.yith_wcan_type').trigger('change');
86
+
87
  //color-picker
88
  $(document).on('yith_colorpicker',function () {
89
  $('.yith-colorpicker').each(function () {
102
  $(document).on('change', '.yith-wcan-dropdown-check', function(){
103
  $.select_dropdown( $(this) );
104
  });
105
+
106
+ //Filter By Tag tab
107
+ var select_all = $('.yith-wcan-select-option .select-all'),
108
+ unselect_all = $('.yith-wcan-select-option .unselect-all'),
109
+ checklist = $('.yith_wcan_select_tag'),
110
+ widget_select = $('#yith-wcan-tag-widget-select');
111
+
112
+ select_all.on('click', function(e){
113
+ e.preventDefault();
114
+ $(this).parents( '.yith-wcan-select-option').next('.yith_wcan_select_tag').find('.yith_wcan_tag_list_checkbox').attr( 'checked', true );
115
+ });
116
+
117
+ unselect_all.on('click', function(e){
118
+ e.preventDefault();
119
+ $(this).parents( '.yith-wcan-select-option').next('.yith_wcan_select_tag').find('.yith_wcan_tag_list_checkbox').attr( 'checked', false );
120
+ });
121
+
122
+ /* widget_select.on('yith_wcan_admin_widget_change', function(){
123
+ $('#' + widget_select.val()).show();
124
+ });
125
+
126
+ widget_select.on('change', function(){
127
+ $('.option-wrapper').hide();
128
+ $('#' + widget_select.val()).fadeIn();
129
+ });
130
+
131
+ widget_select.trigger('yith_wcan_admin_widget_change');*/
132
  });
includes/class.yith-wcan-admin.php CHANGED
@@ -30,6 +30,11 @@ if ( ! class_exists( 'YITH_WCAN_Admin' ) ) {
30
  /* @var YIT_Plugin_Panel_WooCommerce */
31
  protected $_panel;
32
 
 
 
 
 
 
33
  /**
34
  * @var string The panel page
35
  */
@@ -111,33 +116,6 @@ if ( ! class_exists( 'YITH_WCAN_Admin' ) ) {
111
  }
112
  }
113
 
114
- /**
115
- * Print terms for the element selected
116
- *
117
- * @access public
118
- * @return void
119
- * @since 1.0.0
120
- */
121
- public function ajax_print_terms() {
122
- $type = $_POST['value'];
123
- $attribute = $_POST['attribute'];
124
- $return = array( 'message' => '', 'content' => $_POST );
125
-
126
- $terms = get_terms( 'pa_' . $attribute, array( 'hide_empty' => '0' ) );
127
-
128
- $return['content'] = yith_wcan_attributes_table(
129
- $type,
130
- $attribute,
131
- $_POST['id'],
132
- $_POST['name'],
133
- json_decode( $_POST['value'] ),
134
- false
135
- );
136
-
137
- echo json_encode( $return );
138
- die();
139
- }
140
-
141
  /**
142
  * Add a panel under YITH Plugins tab
143
  *
@@ -147,7 +125,6 @@ if ( ! class_exists( 'YITH_WCAN_Admin' ) ) {
147
  * @use /Yit_Plugin_Panel class
148
  * @see plugin-fw/lib/yit-plugin-panel.php
149
  */
150
-
151
  public function register_panel() {
152
 
153
  if ( ! empty( $this->_panel ) ) {
@@ -178,6 +155,9 @@ if ( ! class_exists( 'YITH_WCAN_Admin' ) ) {
178
  }
179
 
180
  $this->_panel = new YIT_Plugin_Panel( $args );
 
 
 
181
  }
182
 
183
  public function premium_tab() {
@@ -198,11 +178,11 @@ if ( ! class_exists( 'YITH_WCAN_Admin' ) ) {
198
  * @use plugin_action_links_{$plugin_file_name}
199
  */
200
  public function action_links( $links ) {
201
- $premium_live_text = defined( 'YITH_WCAN_FREE_INIT' ) ? __( 'Premium live demo', 'yith_wc_product_vendors' ) : __( 'Live demo', 'yith_wc_product_vendors' );
202
  $links[] = '<a href="' . $this->_premium_live . '" target="_blank">' . $premium_live_text . '</a>';
203
 
204
  if ( defined( 'YITH_WCAN_FREE_INIT' ) ) {
205
- $links[] = '<a href="' . $this->get_premium_landing_uri() . '" target="_blank">' . __( 'Premium Version', 'yith_wc_product_vendors' ) . '</a>';
206
  }
207
 
208
  return $links;
@@ -226,7 +206,7 @@ if ( ! class_exists( 'YITH_WCAN_Admin' ) ) {
226
  public function plugin_row_meta( $plugin_meta, $plugin_file, $plugin_data, $status ) {
227
 
228
  if ( ( defined( 'YITH_WCAN_INIT' ) && YITH_WCAN_INIT == $plugin_file ) || ( defined( 'YITH_WCAN_FREE_INIT' ) && YITH_WCAN_FREE_INIT == $plugin_file ) ) {
229
- $plugin_meta[] = '<a href="' . $this->_official_documentation . '" target="_blank">' . __( 'Plugin Documentation', 'yith_wc_product_vendors' ) . '</a>';
230
  }
231
  return $plugin_meta;
232
  }
@@ -242,6 +222,33 @@ if ( ! class_exists( 'YITH_WCAN_Admin' ) ) {
242
  return defined( 'YITH_REFER_ID' ) ? $this->_premium_landing . '?refer_id=' . YITH_REFER_ID : $this->_premium_landing . '?refer_id=1030585';
243
  }
244
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
245
  public function register_pointer() {
246
 
247
  if( defined( 'YITH_WCAN_PREMIUM' ) && YITH_WCAN_PREMIUM ){
30
  /* @var YIT_Plugin_Panel_WooCommerce */
31
  protected $_panel;
32
 
33
+ /**
34
+ * @var string Main Panel Option
35
+ */
36
+ protected $_main_panel_option;
37
+
38
  /**
39
  * @var string The panel page
40
  */
116
  }
117
  }
118
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
119
  /**
120
  * Add a panel under YITH Plugins tab
121
  *
125
  * @use /Yit_Plugin_Panel class
126
  * @see plugin-fw/lib/yit-plugin-panel.php
127
  */
 
128
  public function register_panel() {
129
 
130
  if ( ! empty( $this->_panel ) ) {
155
  }
156
 
157
  $this->_panel = new YIT_Plugin_Panel( $args );
158
+ $this->_main_panel_option = "yit_{$args['parent']}_options";
159
+
160
+ do_action( 'yith_wcan_after_option_panel', $args );
161
  }
162
 
163
  public function premium_tab() {
178
  * @use plugin_action_links_{$plugin_file_name}
179
  */
180
  public function action_links( $links ) {
181
+ $premium_live_text = defined( 'YITH_WCAN_FREE_INIT' ) ? __( 'Premium live demo', 'yith_wc_ajxnav' ) : __( 'Live demo', 'yith_wc_ajxnav' );
182
  $links[] = '<a href="' . $this->_premium_live . '" target="_blank">' . $premium_live_text . '</a>';
183
 
184
  if ( defined( 'YITH_WCAN_FREE_INIT' ) ) {
185
+ $links[] = '<a href="' . $this->get_premium_landing_uri() . '" target="_blank">' . __( 'Premium Version', 'yith_wc_ajxnav' ) . '</a>';
186
  }
187
 
188
  return $links;
206
  public function plugin_row_meta( $plugin_meta, $plugin_file, $plugin_data, $status ) {
207
 
208
  if ( ( defined( 'YITH_WCAN_INIT' ) && YITH_WCAN_INIT == $plugin_file ) || ( defined( 'YITH_WCAN_FREE_INIT' ) && YITH_WCAN_FREE_INIT == $plugin_file ) ) {
209
+ $plugin_meta[] = '<a href="' . $this->_official_documentation . '" target="_blank">' . __( 'Plugin Documentation', 'yith_wc_ajxnav' ) . '</a>';
210
  }
211
  return $plugin_meta;
212
  }
222
  return defined( 'YITH_REFER_ID' ) ? $this->_premium_landing . '?refer_id=' . YITH_REFER_ID : $this->_premium_landing . '?refer_id=1030585';
223
  }
224
 
225
+ /**
226
+ * Print terms for the element selected
227
+ *
228
+ * @access public
229
+ * @return void
230
+ * @since 1.0.0
231
+ */
232
+ public function ajax_print_terms() {
233
+ $type = $_POST['value'];
234
+ $attribute = $_POST['attribute'];
235
+ $return = array( 'message' => '', 'content' => $_POST );
236
+
237
+ $terms = get_terms( 'pa_' . $attribute, array( 'hide_empty' => '0' ) );
238
+
239
+ $return['content'] = yith_wcan_attributes_table(
240
+ $type,
241
+ $attribute,
242
+ $_POST['id'],
243
+ $_POST['name'],
244
+ json_decode( $_POST['value'] ),
245
+ false
246
+ );
247
+
248
+ echo json_encode( $return );
249
+ die();
250
+ }
251
+
252
  public function register_pointer() {
253
 
254
  if( defined( 'YITH_WCAN_PREMIUM' ) && YITH_WCAN_PREMIUM ){
includes/class.yith-wcan-frontend.php CHANGED
@@ -37,7 +37,6 @@ if ( ! class_exists( 'YITH_WCAN_Frontend' ) ) {
37
  $this->version = $version;
38
 
39
  //Actions
40
- add_action( 'init', array( $this, 'init' ) );
41
  add_action( 'init', array( $this, 'woocommerce_layered_nav_init' ), 99 );
42
 
43
  add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_styles_scripts' ) );
@@ -46,19 +45,6 @@ if ( ! class_exists( 'YITH_WCAN_Frontend' ) ) {
46
  do_action( 'yith_wcan_loaded' );
47
  }
48
 
49
-
50
- /**
51
- * Init method:
52
- * - default options
53
- *
54
- * @access public
55
- * @since 1.0.0
56
- */
57
- public function init() {
58
-
59
- }
60
-
61
-
62
  /**
63
  * Enqueue frontend styles and scripts
64
  *
@@ -73,11 +59,13 @@ if ( ! class_exists( 'YITH_WCAN_Frontend' ) ) {
73
  wp_enqueue_style( 'yith_wcan_admin', YITH_WCAN_URL . 'assets/css/frontend.css', false, $this->version );
74
  wp_enqueue_script( 'yith_wcan_frontend', YITH_WCAN_URL . 'assets/js/yith-wcan-frontend' . $suffix . '.js', array( 'jquery' ), $this->version, true );
75
 
76
- $args = array(
77
  'container' => '.products',
78
  'pagination' => 'nav.woocommerce-pagination',
79
  'result_count' => '.woocommerce-result-count'
 
80
  );
 
81
  wp_localize_script( 'yith_wcan_frontend', 'yith_wcan', apply_filters( 'yith-wcan-frontend-args', $args ) );
82
  }
83
  }
@@ -99,13 +87,7 @@ if ( ! class_exists( 'YITH_WCAN_Frontend' ) ) {
99
  $_chosen_attributes = array();
100
 
101
  /* FIX TO WOOCOMMERCE 2.1 */
102
- if ( function_exists( 'wc_get_attribute_taxonomies' ) ) {
103
- $attribute_taxonomies = wc_get_attribute_taxonomies();
104
- }
105
- else {
106
- $attribute_taxonomies = $woocommerce->get_attribute_taxonomies();
107
- }
108
-
109
 
110
  if ( $attribute_taxonomies ) {
111
  foreach ( $attribute_taxonomies as $tax ) {
37
  $this->version = $version;
38
 
39
  //Actions
 
40
  add_action( 'init', array( $this, 'woocommerce_layered_nav_init' ), 99 );
41
 
42
  add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_styles_scripts' ) );
45
  do_action( 'yith_wcan_loaded' );
46
  }
47
 
 
 
 
 
 
 
 
 
 
 
 
 
 
48
  /**
49
  * Enqueue frontend styles and scripts
50
  *
59
  wp_enqueue_style( 'yith_wcan_admin', YITH_WCAN_URL . 'assets/css/frontend.css', false, $this->version );
60
  wp_enqueue_script( 'yith_wcan_frontend', YITH_WCAN_URL . 'assets/js/yith-wcan-frontend' . $suffix . '.js', array( 'jquery' ), $this->version, true );
61
 
62
+ $args = apply_filters( 'yith_wcan_ajax_frontend_classes', array(
63
  'container' => '.products',
64
  'pagination' => 'nav.woocommerce-pagination',
65
  'result_count' => '.woocommerce-result-count'
66
+ )
67
  );
68
+
69
  wp_localize_script( 'yith_wcan_frontend', 'yith_wcan', apply_filters( 'yith-wcan-frontend-args', $args ) );
70
  }
71
  }
87
  $_chosen_attributes = array();
88
 
89
  /* FIX TO WOOCOMMERCE 2.1 */
90
+ $attibute_taxonomies = function_exists( 'wc_get_attribute_taxonomies' ) ? $attribute_taxonomies = wc_get_attribute_taxonomies() : $attribute_taxonomies = $woocommerce->get_attribute_taxonomies();
 
 
 
 
 
 
91
 
92
  if ( $attribute_taxonomies ) {
93
  foreach ( $attribute_taxonomies as $tax ) {
includes/class.yith-wcan.php CHANGED
@@ -110,13 +110,16 @@ if ( ! class_exists( 'YITH_WCAN' ) ) {
110
  * @return YITH_Vendors Main instance
111
  * @author Andrea Grillo <andrea.grillo@yithemes.com>
112
  */
113
- public static function instance() {
114
- if ( is_null( self::$_instance ) ) {
115
- self::$_instance = new self();
116
- }
 
 
 
 
 
117
 
118
- return self::$_instance;
119
- }
120
 
121
 
122
  /**
110
  * @return YITH_Vendors Main instance
111
  * @author Andrea Grillo <andrea.grillo@yithemes.com>
112
  */
113
+ public static function instance() {
114
+ $self = __CLASS__ . ( class_exists( __CLASS__ . '_Premium' ) ? '_Premium' : '' );
115
+
116
+ if ( is_null( $self::$_instance ) ) {
117
+ $self::$_instance = new $self;
118
+ }
119
+
120
+ return $self::$_instance;
121
+ }
122
 
 
 
123
 
124
 
125
  /**
includes/functions.yith-wcan.php CHANGED
@@ -118,10 +118,6 @@ function yith_wcan_attributes_table( $type, $attribute, $id, $name, $values = ar
118
  function yith_wcan_can_be_displayed() {
119
  global $woocommerce, $_attributes_array;
120
 
121
-
122
- /* if ( ! is_post_type_archive( 'product' ) && ! is_tax( array_merge( $_attributes_array, array( 'product_cat', 'product_tag' ) ) ) )
123
- return false;*/
124
-
125
  if ( is_active_widget( false, false, 'yith-woo-ajax-navigation', true ) ) {
126
  return true;
127
  }
@@ -225,7 +221,8 @@ if ( ! function_exists( 'yit_get_terms' ) ) {
225
  */
226
  function yit_get_terms( $case, $taxonomy, $instance = false ) {
227
 
228
- $exclude = apply_filters( 'yith_wcan_exclude_terms', array() );
 
229
 
230
  switch ( $case ) {
231
 
@@ -242,7 +239,7 @@ if ( ! function_exists( 'yit_get_terms' ) ) {
242
  break;
243
 
244
  default:
245
- $args = array( 'hide_empty' => true, 'exclude' => $exclude );
246
  if ( 'parent' == $instance['display'] ) {
247
  $args['parent'] = false;
248
  }
@@ -390,6 +387,10 @@ if ( ! function_exists( 'yit_get_filter_args' ) ) {
390
  $link = $filter_value['orderby'] = $_GET['orderby'];
391
  }
392
 
 
 
 
 
393
  return $filter_value;
394
  }
395
  }
@@ -422,4 +423,56 @@ if ( ! function_exists( 'yit_remove_price_filter_query_args' ) ) {
422
 
423
  return $filter_value;
424
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
425
  }
118
  function yith_wcan_can_be_displayed() {
119
  global $woocommerce, $_attributes_array;
120
 
 
 
 
 
121
  if ( is_active_widget( false, false, 'yith-woo-ajax-navigation', true ) ) {
122
  return true;
123
  }
221
  */
222
  function yit_get_terms( $case, $taxonomy, $instance = false ) {
223
 
224
+ $exclude = apply_filters( 'yith_wcan_exclude_terms', array(), $instance );
225
+ $include = apply_filters( 'yith_wcan_include_terms', array(), $instance );
226
 
227
  switch ( $case ) {
228
 
239
  break;
240
 
241
  default:
242
+ $args = array( 'hide_empty' => true, 'exclude' => $exclude, 'include' => $include );
243
  if ( 'parent' == $instance['display'] ) {
244
  $args['parent'] = false;
245
  }
387
  $link = $filter_value['orderby'] = $_GET['orderby'];
388
  }
389
 
390
+ if ( isset( $_GET['product_tag'] ) ) {
391
+ $link = $filter_value['product_tag'] = urlencode( $_GET['product_tag'] );
392
+ }
393
+
394
  return $filter_value;
395
  }
396
  }
423
 
424
  return $filter_value;
425
  }
426
+ }
427
+
428
+ if ( ! function_exists( 'yit_get_woocommerce_layered_nav_link' ) ) {
429
+ /**
430
+ * Get current layered link
431
+ *
432
+ * @return string The new link
433
+ *
434
+ * @since 1.4
435
+ * @author Andrea Grillo <andrea.grillo@yithemes.com>
436
+ */
437
+ function yit_get_woocommerce_layered_nav_link() {
438
+
439
+ if ( defined( 'SHOP_IS_ON_FRONT' ) || is_shop() ) {
440
+ return untrailingslashit( get_post_type_archive_link( 'product' ) );
441
+ }
442
+
443
+ elseif ( is_product_category() ) {
444
+ return untrailingslashit( get_term_link( get_queried_object()->slug, 'product_cat' ) );
445
+ }
446
+
447
+ else {
448
+ return untrailingslashit( get_term_link( get_query_var( 'term' ), get_query_var( 'taxonomy' ) ) );
449
+ }
450
+
451
+ return false;
452
+ }
453
+ }
454
+
455
+ if ( ! function_exists( 'yit_wcan_localize_terms' ) ) {
456
+ /**
457
+ * Get current layered link
458
+ *
459
+ * @param $term_id The term id
460
+ * @param $taxonomy The taxonomy name
461
+ *
462
+ * @return string The new term_id
463
+ *
464
+ * @since 1.4
465
+ * @author Andrea Grillo <andrea.grillo@yithemes.com>
466
+ */
467
+
468
+ function yit_wcan_localize_terms( $term_id, $taxonomy ) {
469
+ /* === WPML Support === */
470
+ global $sitepress;
471
+ if ( ! empty( $sitepress ) && function_exists( 'wpml_object_id_filter' ) ) {
472
+ $term_id = wpml_object_id_filter( $term_id, $taxonomy, true, $sitepress->get_default_language() );
473
+ }
474
+
475
+ return $term_id;
476
+ }
477
+
478
  }
init.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: YITH WooCommerce Ajax Product Filter
4
  * Plugin URI: http://yithemes.com/
5
  * Description: YITH WooCommerce Ajax Product Filter offers the perfect way to filter all the products of your shop.
6
- * Version: 2.0.4
7
  * Author: yithemes
8
  * Author URI: http://yithemes.com/
9
  * Text Domain: yith_wc_ajxnav
@@ -65,7 +65,7 @@ if ( defined( 'YITH_WCAN_VERSION' ) ) {
65
  ! defined( 'YITH_WCAN' ) && define( 'YITH_WCAN', true );
66
  ! defined( 'YITH_WCAN_URL' ) && define( 'YITH_WCAN_URL', plugin_dir_url( __FILE__ ) );
67
  ! defined( 'YITH_WCAN_DIR' ) && define( 'YITH_WCAN_DIR', plugin_dir_path( __FILE__ ) );
68
- ! defined( 'YITH_WCAN_VERSION' ) && define( 'YITH_WCAN_VERSION', '2.0.4' );
69
  ! defined( 'YITH_WCAN_FREE_INIT') && define( 'YITH_WCAN_FREE_INIT', plugin_basename( __FILE__ ) );
70
  ! defined( 'YITH_WCAN_FILE' ) && define( 'YITH_WCAN_FILE', __FILE__ );
71
 
3
  * Plugin Name: YITH WooCommerce Ajax Product Filter
4
  * Plugin URI: http://yithemes.com/
5
  * Description: YITH WooCommerce Ajax Product Filter offers the perfect way to filter all the products of your shop.
6
+ * Version: 2.1.0
7
  * Author: yithemes
8
  * Author URI: http://yithemes.com/
9
  * Text Domain: yith_wc_ajxnav
65
  ! defined( 'YITH_WCAN' ) && define( 'YITH_WCAN', true );
66
  ! defined( 'YITH_WCAN_URL' ) && define( 'YITH_WCAN_URL', plugin_dir_url( __FILE__ ) );
67
  ! defined( 'YITH_WCAN_DIR' ) && define( 'YITH_WCAN_DIR', plugin_dir_path( __FILE__ ) );
68
+ ! defined( 'YITH_WCAN_VERSION' ) && define( 'YITH_WCAN_VERSION', '2.1.0' );
69
  ! defined( 'YITH_WCAN_FREE_INIT') && define( 'YITH_WCAN_FREE_INIT', plugin_basename( __FILE__ ) );
70
  ! defined( 'YITH_WCAN_FILE' ) && define( 'YITH_WCAN_FILE', __FILE__ );
71
 
languages/yith_wc_ajxnav-it_IT.mo CHANGED
Binary file
languages/yith_wc_ajxnav-it_IT.po CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: YITH WooCommerce Ajax Product Filter\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2015-06-19 17:32+0100\n"
6
- "PO-Revision-Date: 2015-06-19 17:38+0100\n"
7
  "Last-Translator: Your Inspiration Themes <plugins@yithemes.com>\n"
8
  "Language-Team: \n"
9
  "Language: it_IT\n"
@@ -11,7 +11,7 @@ msgstr ""
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
  "Plural-Forms: nplurals=2; plural=n != 1;\n"
14
- "X-Generator: Poedit 1.7.4\n"
15
  "X-Poedit-SourceCharset: UTF-8\n"
16
  "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;"
17
  "_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
@@ -20,33 +20,70 @@ msgstr ""
20
  "X-Poedit-SearchPath-0: .\n"
21
  "X-Poedit-SearchPathExcluded-0: plugin-fw\n"
22
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
  # @ yit
24
- #: functions.yith-wcan.php:56 functions.yith-wcan.php:69
25
  #: includes/functions.yith-wcan.php:57 includes/functions.yith-wcan.php:71
26
  #: includes/functions.yith-wcan.php:93
27
  msgid "Term"
28
  msgstr "Proprietà"
29
 
30
  # @ yit
31
- #: functions.yith-wcan.php:56 includes/functions.yith-wcan.php:57
32
- #: widgets/class.yith-wcan-navigation-widget.php:784
33
  msgid "Color"
34
  msgstr "Colore"
35
 
36
- # @ yit
37
- #: functions.yith-wcan.php:69 includes/functions.yith-wcan.php:93
38
- msgid "Labels"
39
- msgstr "Etichetta"
40
-
41
- #: includes/class.yith-wcan-admin.php:119
42
- msgid "Premium Version"
43
- msgstr "Versione Premium"
44
-
45
- #: includes/class.yith-wcan-admin.php:125
46
- #: includes/class.yith-wcan-admin.php:126
47
- msgid "Product filter"
48
- msgstr "Filtro prodotto"
49
-
50
  #: includes/functions.yith-wcan.php:71
51
  msgctxt "For multicolor: I.E. white and red T-Shirt"
52
  msgid "Color 1"
@@ -57,6 +94,11 @@ msgctxt "For multicolor: I.E. white and red T-Shirt"
57
  msgid "Color 2"
58
  msgstr "Colore 2"
59
 
 
 
 
 
 
60
  #: init.php:46
61
  msgid ""
62
  "YITH WooCommerce Ajax Product Filter is enabled but not effective. It "
@@ -65,76 +107,172 @@ msgstr ""
65
  "YITH WooCommerce Ajax Product Filter è attivo, ma non operativo. Richiede "
66
  "WooCommerce affinché possa funzionare correttamente."
67
 
68
- #: widgets/class.yith-wcan-navigation-widget.php:23
69
- msgid "Filter the products list without reloading the page"
70
- msgstr "Filtra l'elenco dei prodotti senza ricaricare la pagina"
 
 
 
71
 
72
- #: widgets/class.yith-wcan-navigation-widget.php:25
73
- msgid "YITH WooCommerce Ajax Product Filter"
74
- msgstr "YITH WooCommerce Ajax Product Filter"
 
 
 
 
75
 
76
- #: widgets/class.yith-wcan-navigation-widget.php:260
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
77
  msgid "Filters:"
78
  msgstr "Filtri:"
79
 
80
  # @ yit
81
- #: widgets/class.yith-wcan-navigation-widget.php:783
82
  msgid "List"
83
  msgstr "Lista"
84
 
85
  # @ yit
86
- #: widgets/class.yith-wcan-navigation-widget.php:785
87
  msgid "Label"
88
  msgstr "Etichetta"
89
 
90
- #: widgets/class.yith-wcan-navigation-widget.php:786
91
  msgid "Dropdown"
92
  msgstr "Menu a tendina"
93
 
94
  # @ yit
95
- #: widgets/class.yith-wcan-navigation-widget.php:793
96
  #: widgets/class.yith-wcan-reset-navigation-widget.php:89
97
  msgid "Title"
98
  msgstr "Titolo"
99
 
100
  # @ yit
101
- #: widgets/class.yith-wcan-navigation-widget.php:799
102
  msgid "Type:"
103
  msgstr "Tipo:"
104
 
105
  # @ yit
106
- #: widgets/class.yith-wcan-navigation-widget.php:808
107
  msgid "Query Type:"
108
  msgstr "Tipo Query:"
109
 
110
  # @ yit
111
- #: widgets/class.yith-wcan-navigation-widget.php:810
112
  msgid "AND"
113
  msgstr "E"
114
 
115
  # @ yit
116
- #: widgets/class.yith-wcan-navigation-widget.php:811
117
  msgid "OR"
118
  msgstr "O"
119
 
120
  # @ yit
121
- #: widgets/class.yith-wcan-navigation-widget.php:815
122
  msgid "Attribute:"
123
  msgstr "Attributo:"
124
 
125
- #: widgets/class.yith-wcan-navigation-widget.php:822
126
  msgid "Display (default All):"
127
  msgstr "Visualizza (default Tutti)"
128
 
129
- #: widgets/class.yith-wcan-navigation-widget.php:824
130
  msgid "All (no hierarchical)"
131
  msgstr "Tutti (non gerarchico)"
132
 
133
- #: widgets/class.yith-wcan-navigation-widget.php:825
134
- msgid "All Hierarchical"
135
- msgstr "Tutti (gerarchico)"
136
 
137
- #: widgets/class.yith-wcan-navigation-widget.php:826
138
  msgid "Only Parent"
139
  msgstr "Solo Principali"
140
 
@@ -155,6 +293,15 @@ msgstr "Resetta tutti i filtri"
155
  msgid "Button Label"
156
  msgstr "Etichetta Pulsante"
157
 
 
 
 
 
 
 
 
 
 
158
  # @ yit
159
  #~ msgid "Narrow down the products list without reloading the page"
160
  #~ msgstr "Filtra la lista dei prodotti senza ricaricare la pagina"
2
  msgstr ""
3
  "Project-Id-Version: YITH WooCommerce Ajax Product Filter\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2015-07-28 10:38+0100\n"
6
+ "PO-Revision-Date: 2015-07-28 10:38+0100\n"
7
  "Last-Translator: Your Inspiration Themes <plugins@yithemes.com>\n"
8
  "Language-Team: \n"
9
  "Language: it_IT\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
  "Plural-Forms: nplurals=2; plural=n != 1;\n"
14
+ "X-Generator: Poedit 1.8.1\n"
15
  "X-Poedit-SourceCharset: UTF-8\n"
16
  "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;"
17
  "_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
20
  "X-Poedit-SearchPath-0: .\n"
21
  "X-Poedit-SearchPathExcluded-0: plugin-fw\n"
22
 
23
+ #: includes/class.yith-wcan-admin.php:135
24
+ #: includes/class.yith-wcan-admin.php:185
25
+ msgid "Premium Version"
26
+ msgstr "Versione Premium"
27
+
28
+ #: includes/class.yith-wcan-admin.php:141
29
+ #: includes/class.yith-wcan-admin.php:142
30
+ msgid "Ajax Product Filter"
31
+ msgstr ""
32
+
33
+ #: includes/class.yith-wcan-admin.php:181
34
+ msgid "Premium live demo"
35
+ msgstr ""
36
+
37
+ #: includes/class.yith-wcan-admin.php:181
38
+ msgid "Live demo"
39
+ msgstr ""
40
+
41
+ #: includes/class.yith-wcan-admin.php:209
42
+ msgid "Plugin Documentation"
43
+ msgstr ""
44
+
45
+ #: includes/class.yith-wcan-admin.php:262
46
+ msgid ""
47
+ "Dear users,\n"
48
+ " we would like to inform you that the YITH "
49
+ "WooCommerce Ajax Navigation plugin will change its name in YITH WooCommerce "
50
+ "Ajax Product Filter from the next update. Also, the plugin textdomain will "
51
+ "change too from \"yit\" to \"yith_wc_ajxnav\".\n"
52
+ " This modification solves the issues about "
53
+ "textdomain conflicts generated by some translation/multilanguage plugins you "
54
+ "have identified in the past weeks.\n"
55
+ " If updating the plugin some language files are "
56
+ "no more recognized by WordPress, you will just have to rename the language "
57
+ "files in the correct format. After renaming the files, you can update/"
58
+ "translate the .po file following the classic procedure for translations."
59
+ msgstr ""
60
+
61
+ #: includes/class.yith-wcan-admin.php:267
62
+ #: widgets/class.yith-wcan-navigation-widget.php:26
63
+ msgid "YITH WooCommerce Ajax Product Filter"
64
+ msgstr "YITH WooCommerce Ajax Product Filter"
65
+
66
+ #: includes/class.yith-wcan-admin.php:269
67
+ msgid ""
68
+ "YITH WooCommerce Product Filter has been updated with new available options"
69
+ msgstr ""
70
+
71
+ #: includes/class.yith-wcan-admin.php:269
72
+ msgid "discover the PREMIUM version"
73
+ msgstr ""
74
+
75
  # @ yit
 
76
  #: includes/functions.yith-wcan.php:57 includes/functions.yith-wcan.php:71
77
  #: includes/functions.yith-wcan.php:93
78
  msgid "Term"
79
  msgstr "Proprietà"
80
 
81
  # @ yit
82
+ #: includes/functions.yith-wcan.php:57
83
+ #: widgets/class.yith-wcan-navigation-widget.php:807
84
  msgid "Color"
85
  msgstr "Colore"
86
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
87
  #: includes/functions.yith-wcan.php:71
88
  msgctxt "For multicolor: I.E. white and red T-Shirt"
89
  msgid "Color 1"
94
  msgid "Color 2"
95
  msgstr "Colore 2"
96
 
97
+ # @ yit
98
+ #: includes/functions.yith-wcan.php:93
99
+ msgid "Labels"
100
+ msgstr "Etichetta"
101
+
102
  #: init.php:46
103
  msgid ""
104
  "YITH WooCommerce Ajax Product Filter is enabled but not effective. It "
107
  "YITH WooCommerce Ajax Product Filter è attivo, ma non operativo. Richiede "
108
  "WooCommerce affinché possa funzionare correttamente."
109
 
110
+ #: templates/admin/premium.php:207 templates/admin/premium.php:324
111
+ #, php-format
112
+ msgid ""
113
+ "Upgrade to %1$spremium version%2$s of %1$sYITH WooCommerce Ajax Product "
114
+ "Filter%2$s to benefit from all features!"
115
+ msgstr ""
116
 
117
+ #: templates/admin/premium.php:210 templates/admin/premium.php:327
118
+ msgid "UPGRADE"
119
+ msgstr ""
120
+
121
+ #: templates/admin/premium.php:211 templates/admin/premium.php:328
122
+ msgid "to the premium version"
123
+ msgstr ""
124
 
125
+ #: templates/admin/premium.php:217
126
+ msgid "Premium Features"
127
+ msgstr ""
128
+
129
+ #: templates/admin/premium.php:225
130
+ msgid "Two more layouts"
131
+ msgstr ""
132
+
133
+ #: templates/admin/premium.php:228
134
+ #, php-format
135
+ msgid ""
136
+ "The YITH WooCommerce Ajax product Filter widget get richer with 2 new "
137
+ "layouts to filter the products of your shop.\n"
138
+ " %1$sBicolor%2$s: the perfect choice for those attributes "
139
+ "related to two different colors at the same time (white/black), for a simple "
140
+ "visual impact for the final user. Pick the %1$sTag%2$s typology, on the "
141
+ "contrary, if you want to filter your products by product tag.\n"
142
+ " And if you are using also the %1$sYITH WooCommerce Brand "
143
+ "Add-On%2$s plugin, you will be able to offer the freedom to filter your shop "
144
+ "products by brands thanks to the ajax technology.\n"
145
+ " "
146
+ msgstr ""
147
+
148
+ #: templates/admin/premium.php:241
149
+ msgid "Price range"
150
+ msgstr ""
151
+
152
+ #: templates/admin/premium.php:244
153
+ #, php-format
154
+ msgid ""
155
+ "One of the most requested filter for e-commerce sites is the one that let "
156
+ "you select products by their prices.\n"
157
+ " Thanks to YITH WooCommerce Ajax List Price Filter, "
158
+ "%1$syou can set unlimited price ranges:%2$s your users will be able to "
159
+ "filter products selecting on the ranges you have set."
160
+ msgstr ""
161
+
162
+ #: templates/admin/premium.php:261
163
+ msgid "Ajax Stock/On Sale Filters"
164
+ msgstr ""
165
+
166
+ #: templates/admin/premium.php:264
167
+ #, php-format
168
+ msgid ""
169
+ "A new widget for the premium version of the plugin.\n"
170
+ " Whoever will surf the pages of your shop will be able to "
171
+ "display only the products on sale and/or the available ones.%3$s\n"
172
+ " %1$sAn additional feature for an e-commerce site that is "
173
+ "worthy!%2$s"
174
+ msgstr ""
175
+
176
+ #: templates/admin/premium.php:276
177
+ msgid "Product sorting"
178
+ msgstr ""
179
+
180
+ #: templates/admin/premium.php:279
181
+ #, php-format
182
+ msgid ""
183
+ "With the new %1$sYITH WooCommerce Ajax Sort By%2$s widget, you can give your "
184
+ "users the freedom to sort products with the ajax technology,\n"
185
+ " without the need to reload the page. Products can be "
186
+ "sorted by rate, sales, price or publication date."
187
+ msgstr ""
188
+
189
+ #: templates/admin/premium.php:296
190
+ msgid "Customized loader"
191
+ msgstr ""
192
+
193
+ #: templates/admin/premium.php:299
194
+ msgid ""
195
+ "From the plugin option panel, you can choose to upload a new icon for your "
196
+ "loader: in this way, it will better meet your needs."
197
+ msgstr ""
198
+
199
+ #: templates/admin/premium.php:309
200
+ msgid "WooCommerce Price Filter"
201
+ msgstr ""
202
+
203
+ #: templates/admin/premium.php:312
204
+ msgid ""
205
+ "With the premium version of the plugin, you will also be able to customize "
206
+ "WooCommerce Price Filter widget, changing the settings you can find in the "
207
+ "plugin option panel."
208
+ msgstr ""
209
+
210
+ #: widgets/class.yith-wcan-navigation-widget.php:23
211
+ msgid "Filter the product list without reloading the page"
212
+ msgstr ""
213
+
214
+ #: widgets/class.yith-wcan-navigation-widget.php:262
215
  msgid "Filters:"
216
  msgstr "Filtri:"
217
 
218
  # @ yit
219
+ #: widgets/class.yith-wcan-navigation-widget.php:806
220
  msgid "List"
221
  msgstr "Lista"
222
 
223
  # @ yit
224
+ #: widgets/class.yith-wcan-navigation-widget.php:808
225
  msgid "Label"
226
  msgstr "Etichetta"
227
 
228
+ #: widgets/class.yith-wcan-navigation-widget.php:809
229
  msgid "Dropdown"
230
  msgstr "Menu a tendina"
231
 
232
  # @ yit
233
+ #: widgets/class.yith-wcan-navigation-widget.php:816
234
  #: widgets/class.yith-wcan-reset-navigation-widget.php:89
235
  msgid "Title"
236
  msgstr "Titolo"
237
 
238
  # @ yit
239
+ #: widgets/class.yith-wcan-navigation-widget.php:822
240
  msgid "Type:"
241
  msgstr "Tipo:"
242
 
243
  # @ yit
244
+ #: widgets/class.yith-wcan-navigation-widget.php:833
245
  msgid "Query Type:"
246
  msgstr "Tipo Query:"
247
 
248
  # @ yit
249
+ #: widgets/class.yith-wcan-navigation-widget.php:835
250
  msgid "AND"
251
  msgstr "E"
252
 
253
  # @ yit
254
+ #: widgets/class.yith-wcan-navigation-widget.php:836
255
  msgid "OR"
256
  msgstr "O"
257
 
258
  # @ yit
259
+ #: widgets/class.yith-wcan-navigation-widget.php:840
260
  msgid "Attribute:"
261
  msgstr "Attributo:"
262
 
263
+ #: widgets/class.yith-wcan-navigation-widget.php:847
264
  msgid "Display (default All):"
265
  msgstr "Visualizza (default Tutti)"
266
 
267
+ #: widgets/class.yith-wcan-navigation-widget.php:849
268
  msgid "All (no hierarchical)"
269
  msgstr "Tutti (non gerarchico)"
270
 
271
+ #: widgets/class.yith-wcan-navigation-widget.php:850
272
+ msgid "All (hierarchical)"
273
+ msgstr ""
274
 
275
+ #: widgets/class.yith-wcan-navigation-widget.php:851
276
  msgid "Only Parent"
277
  msgstr "Solo Principali"
278
 
293
  msgid "Button Label"
294
  msgstr "Etichetta Pulsante"
295
 
296
+ #~ msgid "Product filter"
297
+ #~ msgstr "Filtro prodotto"
298
+
299
+ #~ msgid "Filter the products list without reloading the page"
300
+ #~ msgstr "Filtra l'elenco dei prodotti senza ricaricare la pagina"
301
+
302
+ #~ msgid "All Hierarchical"
303
+ #~ msgstr "Tutti (gerarchico)"
304
+
305
  # @ yit
306
  #~ msgid "Narrow down the products list without reloading the page"
307
  #~ msgstr "Filtra la lista dei prodotti senza ricaricare la pagina"
languages/yith_wc_ajxnav-tr_TR.mo CHANGED
Binary file
languages/yith_wc_ajxnav-tr_TR.po CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: YITH WooCommerce Ajax Product filter\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2015-06-19 14:00+0100\n"
6
- "PO-Revision-Date: 2015-06-19 14:00+0100\n"
7
  "Last-Translator: Caner Öncel <caneroncel@gmail.com>\n"
8
  "Language-Team: Caner Öncel <caneroncel@gmail.com>\n"
9
  "Language: tr\n"
@@ -11,7 +11,7 @@ msgstr ""
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
  "Plural-Forms: nplurals=2; plural=n != 1;\n"
14
- "X-Generator: Poedit 1.7.6\n"
15
  "X-Poedit-SourceCharset: UTF-8\n"
16
  "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;"
17
  "_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
@@ -20,113 +20,1208 @@ msgstr ""
20
  "X-Poedit-SearchPath-0: .\n"
21
  "X-Poedit-SearchPathExcluded-0: ../plugin-fw\n"
22
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
  # @ yit
24
- #: functions.yith-wcan.php:56 functions.yith-wcan.php:69
 
25
  msgid "Term"
26
  msgstr "Terim"
27
 
28
  # @ yit
29
- #: functions.yith-wcan.php:56
30
- #: widgets/class.yith-wcan-navigation-widget.php:784
31
  msgid "Color"
32
  msgstr "Renk"
33
 
 
 
 
 
 
 
 
 
 
 
34
  # @ yit
35
- #: functions.yith-wcan.php:69
36
  msgid "Labels"
37
  msgstr "Etiketler"
38
 
39
  #: init.php:46
40
  msgid ""
41
  "YITH WooCommerce Ajax Product Filter is enabled but not effective. It "
42
- "requires Woocommerce in order to work."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
43
  msgstr ""
44
 
45
  # @ yit
46
- #: widgets/class.yith-wcan-navigation-widget.php:23
47
- msgid "Narrow down the products list without reloading the page"
48
- msgstr "Sayfayı yenilemeden ürün listesini daralt"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
49
 
50
  # @ yit
51
- #: widgets/class.yith-wcan-navigation-widget.php:25
52
- msgid "YITH WooCommerce Ajax Navigation"
53
- msgstr "YITH WooCommerce Ajax Navigation"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
54
 
55
- #: widgets/class.yith-wcan-navigation-widget.php:260
56
- msgid "Filters List:"
57
- msgstr "Filtre Listesi:"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
58
 
59
  # @ yit
60
- #: widgets/class.yith-wcan-navigation-widget.php:783
61
  msgid "List"
62
  msgstr "Liste"
63
 
64
  # @ yit
65
- #: widgets/class.yith-wcan-navigation-widget.php:785
66
  msgid "Label"
67
  msgstr "Etiket"
68
 
69
- #: widgets/class.yith-wcan-navigation-widget.php:786
70
  msgid "Dropdown"
71
  msgstr "Açılır Menü"
72
 
73
  # @ yit
74
- #: widgets/class.yith-wcan-navigation-widget.php:793
75
  #: widgets/class.yith-wcan-reset-navigation-widget.php:89
76
  msgid "Title"
77
  msgstr "Başlık"
78
 
79
  # @ yit
80
- #: widgets/class.yith-wcan-navigation-widget.php:799
81
  msgid "Type:"
82
  msgstr "Tür:"
83
 
84
  # @ yit
85
- #: widgets/class.yith-wcan-navigation-widget.php:808
86
  msgid "Query Type:"
87
  msgstr "Sorgu Tipi:"
88
 
89
  # @ yit
90
- #: widgets/class.yith-wcan-navigation-widget.php:810
91
  msgid "AND"
92
  msgstr "VE"
93
 
94
  # @ yit
95
- #: widgets/class.yith-wcan-navigation-widget.php:811
96
  msgid "OR"
97
  msgstr "VEYA"
98
 
99
  # @ yit
100
- #: widgets/class.yith-wcan-navigation-widget.php:815
101
  msgid "Attribute:"
102
  msgstr "Özellikler:"
103
 
104
- #: widgets/class.yith-wcan-navigation-widget.php:822
105
  msgid "Display (default All):"
106
  msgstr "Görüntüleme (Varsayılan tümü):"
107
 
108
- #: widgets/class.yith-wcan-navigation-widget.php:824
109
  msgid "All (no hierarchical)"
110
  msgstr "Tümü"
111
 
112
- #: widgets/class.yith-wcan-navigation-widget.php:825
113
- msgid "All Hierarchical"
114
- msgstr "Tüm Hiyerarşik"
115
 
116
- #: widgets/class.yith-wcan-navigation-widget.php:826
117
  msgid "Only Parent"
118
  msgstr "Sadece Ebeveyn"
119
 
120
- # @ yit
121
  #: widgets/class.yith-wcan-reset-navigation-widget.php:23
122
- msgid "Reset all filters setted by YITH WooCommerce Ajax Navigation"
123
  msgstr ""
124
- "YITH WooCommerce Ajax Navigation için ayarlanmış tüm filtreleri sıfırlayın"
125
 
126
- # @ yit
127
  #: widgets/class.yith-wcan-reset-navigation-widget.php:25
128
- msgid "YITH WooCommerce Ajax Reset Navigation"
129
- msgstr "YITH WooCommerce Ajax Reset Navigation"
130
 
131
  #: widgets/class.yith-wcan-reset-navigation-widget.php:82
132
  msgid "Reset All Filters"
@@ -137,61 +1232,44 @@ msgid "Button Label"
137
  msgstr "Buton Metni"
138
 
139
  # @ yit
140
- #~ msgid "Select a date"
141
- #~ msgstr "Bir tarih seçin"
142
 
143
  # @ yit
144
- #~ msgid "Hours"
145
- #~ msgstr "Saat"
146
 
147
- # @ yit
148
- #~ msgid "Minutes"
149
- #~ msgstr "Dakika"
 
 
150
 
151
  # @ yit
152
- #~ msgid "Upload"
153
- #~ msgstr "Yükle"
 
154
 
155
  # @ yit
156
- #~ msgid "px"
157
- #~ msgstr "px"
158
 
159
  # @ yit
160
- #~ msgid "em"
161
- #~ msgstr "em"
162
 
163
  # @ yit
164
- #~ msgid "pt"
165
- #~ msgstr "pt"
166
 
167
  # @ yit
168
- #~ msgid "rem"
169
- #~ msgstr "rem"
170
 
171
  # @ yit
172
  #~ msgid "Select a font family"
173
  #~ msgstr "Bir font ailesi seçin"
174
 
175
- # @ yit
176
- #~ msgid "Regular"
177
- #~ msgstr "Normal"
178
-
179
- # @ yit
180
- #~ msgid "Bold"
181
- #~ msgstr "Kalın"
182
-
183
- # @ yit
184
- #~ msgid "Extra bold"
185
- #~ msgstr "Ekstra kalın"
186
-
187
- # @ yit
188
- #~ msgid "Italic"
189
- #~ msgstr "İtalik"
190
-
191
- # @ yit
192
- #~ msgid "Italic bold"
193
- #~ msgstr "İtalik kalın"
194
-
195
  # @ yit
196
  #~ msgid "Click to preview"
197
  #~ msgstr "Önizleme için tıklayın"
2
  msgstr ""
3
  "Project-Id-Version: YITH WooCommerce Ajax Product filter\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2015-07-28 10:37+0100\n"
6
+ "PO-Revision-Date: 2015-07-28 10:37+0100\n"
7
  "Last-Translator: Caner Öncel <caneroncel@gmail.com>\n"
8
  "Language-Team: Caner Öncel <caneroncel@gmail.com>\n"
9
  "Language: tr\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
  "Plural-Forms: nplurals=2; plural=n != 1;\n"
14
+ "X-Generator: Poedit 1.8.1\n"
15
  "X-Poedit-SourceCharset: UTF-8\n"
16
  "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;"
17
  "_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
20
  "X-Poedit-SearchPath-0: .\n"
21
  "X-Poedit-SearchPathExcluded-0: ../plugin-fw\n"
22
 
23
+ #: includes/class.yith-wcan-admin.php:135
24
+ #: includes/class.yith-wcan-admin.php:185
25
+ msgid "Premium Version"
26
+ msgstr ""
27
+
28
+ #: includes/class.yith-wcan-admin.php:141
29
+ #: includes/class.yith-wcan-admin.php:142
30
+ msgid "Ajax Product Filter"
31
+ msgstr ""
32
+
33
+ #: includes/class.yith-wcan-admin.php:181
34
+ msgid "Premium live demo"
35
+ msgstr ""
36
+
37
+ #: includes/class.yith-wcan-admin.php:181
38
+ msgid "Live demo"
39
+ msgstr ""
40
+
41
+ #: includes/class.yith-wcan-admin.php:209
42
+ msgid "Plugin Documentation"
43
+ msgstr ""
44
+
45
+ #: includes/class.yith-wcan-admin.php:262
46
+ msgid ""
47
+ "Dear users,\n"
48
+ " we would like to inform you that the YITH "
49
+ "WooCommerce Ajax Navigation plugin will change its name in YITH WooCommerce "
50
+ "Ajax Product Filter from the next update. Also, the plugin textdomain will "
51
+ "change too from \"yit\" to \"yith_wc_ajxnav\".\n"
52
+ " This modification solves the issues about "
53
+ "textdomain conflicts generated by some translation/multilanguage plugins you "
54
+ "have identified in the past weeks.\n"
55
+ " If updating the plugin some language files are "
56
+ "no more recognized by WordPress, you will just have to rename the language "
57
+ "files in the correct format. After renaming the files, you can update/"
58
+ "translate the .po file following the classic procedure for translations."
59
+ msgstr ""
60
+
61
+ #: includes/class.yith-wcan-admin.php:267
62
+ #: widgets/class.yith-wcan-navigation-widget.php:26
63
+ msgid "YITH WooCommerce Ajax Product Filter"
64
+ msgstr ""
65
+
66
+ #: includes/class.yith-wcan-admin.php:269
67
+ msgid ""
68
+ "YITH WooCommerce Product Filter has been updated with new available options"
69
+ msgstr ""
70
+
71
+ #: includes/class.yith-wcan-admin.php:269
72
+ msgid "discover the PREMIUM version"
73
+ msgstr ""
74
+
75
  # @ yit
76
+ #: includes/functions.yith-wcan.php:57 includes/functions.yith-wcan.php:71
77
+ #: includes/functions.yith-wcan.php:93
78
  msgid "Term"
79
  msgstr "Terim"
80
 
81
  # @ yit
82
+ #: includes/functions.yith-wcan.php:57
83
+ #: widgets/class.yith-wcan-navigation-widget.php:807
84
  msgid "Color"
85
  msgstr "Renk"
86
 
87
+ #: includes/functions.yith-wcan.php:71
88
+ msgctxt "For multicolor: I.E. white and red T-Shirt"
89
+ msgid "Color 1"
90
+ msgstr ""
91
+
92
+ #: includes/functions.yith-wcan.php:71
93
+ msgctxt "For multicolor: I.E. white and red T-Shirt"
94
+ msgid "Color 2"
95
+ msgstr ""
96
+
97
  # @ yit
98
+ #: includes/functions.yith-wcan.php:93
99
  msgid "Labels"
100
  msgstr "Etiketler"
101
 
102
  #: init.php:46
103
  msgid ""
104
  "YITH WooCommerce Ajax Product Filter is enabled but not effective. It "
105
+ "requires WooCommerce in order to work."
106
+ msgstr ""
107
+
108
+ #: plugin-fw/lib/yit-cpt-unlimited.php:460
109
+ #: plugin-fw/lib/yit-cpt-unlimited.php:574
110
+ #: plugin-fw/lib/yit-cpt-unlimited.php:719
111
+ #: plugin-fw/lib/yit-cpt-unlimited.php:1632
112
+ #, php-format
113
+ msgid "Add %s"
114
+ msgstr ""
115
+
116
+ #: plugin-fw/lib/yit-cpt-unlimited.php:461
117
+ #: plugin-fw/lib/yit-cpt-unlimited.php:575
118
+ #, php-format
119
+ msgid "Add New %s"
120
+ msgstr ""
121
+
122
+ #: plugin-fw/lib/yit-cpt-unlimited.php:462
123
+ #: plugin-fw/lib/yit-cpt-unlimited.php:576
124
+ #: plugin-fw/lib/yit-cpt-unlimited.php:1267
125
+ #: plugin-fw/lib/yit-cpt-unlimited.php:1304
126
+ #, php-format
127
+ msgid "Edit %s"
128
+ msgstr ""
129
+
130
+ #: plugin-fw/lib/yit-cpt-unlimited.php:463
131
+ #: plugin-fw/lib/yit-cpt-unlimited.php:577
132
+ #, php-format
133
+ msgid "New %s"
134
+ msgstr ""
135
+
136
+ #: plugin-fw/lib/yit-cpt-unlimited.php:464
137
+ #: plugin-fw/lib/yit-cpt-unlimited.php:578
138
+ #, php-format
139
+ msgid "All %s"
140
+ msgstr ""
141
+
142
+ #: plugin-fw/lib/yit-cpt-unlimited.php:465
143
+ #: plugin-fw/lib/yit-cpt-unlimited.php:579
144
+ #: plugin-fw/lib/yit-cpt-unlimited.php:1251
145
+ #: plugin-fw/lib/yit-cpt-unlimited.php:1305
146
+ #, php-format
147
+ msgid "View %s"
148
+ msgstr ""
149
+
150
+ #: plugin-fw/lib/yit-cpt-unlimited.php:466
151
+ #: plugin-fw/lib/yit-cpt-unlimited.php:580
152
+ #, php-format
153
+ msgid "Search %s"
154
+ msgstr ""
155
+
156
+ #: plugin-fw/lib/yit-cpt-unlimited.php:467
157
+ #: plugin-fw/lib/yit-cpt-unlimited.php:581
158
+ #, php-format
159
+ msgid "No %s found"
160
+ msgstr ""
161
+
162
+ #: plugin-fw/lib/yit-cpt-unlimited.php:468
163
+ #: plugin-fw/lib/yit-cpt-unlimited.php:582
164
+ #, php-format
165
+ msgid "No %s found in Trash"
166
+ msgstr ""
167
+
168
+ #: plugin-fw/lib/yit-cpt-unlimited.php:625
169
+ #, php-format
170
+ msgctxt "taxonomy general name"
171
+ msgid "%s Categories"
172
+ msgstr ""
173
+
174
+ #: plugin-fw/lib/yit-cpt-unlimited.php:626
175
+ msgctxt "taxonomy singular name"
176
+ msgid "Category"
177
+ msgstr ""
178
+
179
+ #: plugin-fw/lib/yit-cpt-unlimited.php:627
180
+ msgid "Search Categories"
181
+ msgstr ""
182
+
183
+ #: plugin-fw/lib/yit-cpt-unlimited.php:628
184
+ msgid "All Categories"
185
+ msgstr ""
186
+
187
+ #: plugin-fw/lib/yit-cpt-unlimited.php:629
188
+ msgid "Parent Category"
189
+ msgstr ""
190
+
191
+ #: plugin-fw/lib/yit-cpt-unlimited.php:630
192
+ msgid "Parent Category:"
193
+ msgstr ""
194
+
195
+ #: plugin-fw/lib/yit-cpt-unlimited.php:631
196
+ msgid "Edit Category"
197
+ msgstr ""
198
+
199
+ #: plugin-fw/lib/yit-cpt-unlimited.php:632
200
+ msgid "Update Category"
201
+ msgstr ""
202
+
203
+ #: plugin-fw/lib/yit-cpt-unlimited.php:633
204
+ msgid "Add New Category"
205
+ msgstr ""
206
+
207
+ #: plugin-fw/lib/yit-cpt-unlimited.php:634
208
+ msgid "New Category Name"
209
+ msgstr ""
210
+
211
+ #: plugin-fw/lib/yit-cpt-unlimited.php:635
212
+ msgid "Category"
213
+ msgstr ""
214
+
215
+ #: plugin-fw/lib/yit-cpt-unlimited.php:724
216
+ msgid "Categories"
217
+ msgstr ""
218
+
219
+ #: plugin-fw/lib/yit-cpt-unlimited.php:1042
220
+ #, php-format
221
+ msgid "%s Settings"
222
+ msgstr ""
223
+
224
+ #: plugin-fw/lib/yit-cpt-unlimited.php:1048
225
+ #: plugin-fw/lib/yit-cpt-unlimited.php:1196
226
+ #: plugin-fw/lib/yit-cpt-unlimited.php:1202
227
+ #: plugin-fw/lib/yit-plugin-panel.php:64
228
+ msgid "Settings"
229
+ msgstr ""
230
+
231
+ #: plugin-fw/lib/yit-cpt-unlimited.php:1051
232
+ msgid "Type"
233
+ msgstr ""
234
+
235
+ #: plugin-fw/lib/yit-cpt-unlimited.php:1052
236
+ msgid "Layout for this "
237
+ msgstr ""
238
+
239
+ #: plugin-fw/lib/yit-cpt-unlimited.php:1058
240
+ msgid "Rewrite"
241
+ msgstr ""
242
+
243
+ #: plugin-fw/lib/yit-cpt-unlimited.php:1059
244
+ msgid ""
245
+ "Univocal identification name in the URL for each product (slug from post if "
246
+ "empty)"
247
+ msgstr ""
248
+
249
+ #: plugin-fw/lib/yit-cpt-unlimited.php:1064
250
+ msgid "Label in Singular"
251
+ msgstr ""
252
+
253
+ #: plugin-fw/lib/yit-cpt-unlimited.php:1065
254
+ msgid "Set a label in singular (title of portfolio if empty)"
255
+ msgstr ""
256
+
257
+ #: plugin-fw/lib/yit-cpt-unlimited.php:1070
258
+ msgid "Label in Plural"
259
+ msgstr ""
260
+
261
+ #: plugin-fw/lib/yit-cpt-unlimited.php:1071
262
+ msgid "Set a label in plural (title of portfolio if empty)"
263
+ msgstr ""
264
+
265
+ #: plugin-fw/lib/yit-cpt-unlimited.php:1076
266
+ msgid "Taxonomy"
267
+ msgstr ""
268
+
269
+ #: plugin-fw/lib/yit-cpt-unlimited.php:1077
270
+ msgid ""
271
+ "If you want to use categories in the portfolio, set a name for taxonomy. "
272
+ "Name should be a slug (must not contain capital letters nor spaces) and must "
273
+ "not be more than 32 characters long (database structure restriction)."
274
+ msgstr ""
275
+
276
+ #: plugin-fw/lib/yit-cpt-unlimited.php:1082
277
+ msgid "Taxonomy Rewrite"
278
+ msgstr ""
279
+
280
+ #: plugin-fw/lib/yit-cpt-unlimited.php:1083
281
+ msgid "Set univocal name for each category page URL."
282
+ msgstr ""
283
+
284
+ #: plugin-fw/lib/yit-cpt-unlimited.php:1088
285
+ msgid "Single layout"
286
+ msgstr ""
287
+
288
+ #: plugin-fw/lib/yit-cpt-unlimited.php:1089
289
+ msgid "Layout for single page of this portfolio"
290
+ msgstr ""
291
+
292
+ #: plugin-fw/lib/yit-cpt-unlimited.php:1130
293
+ msgid "layout settings"
294
+ msgstr ""
295
+
296
+ #: plugin-fw/lib/yit-cpt-unlimited.php:1222
297
+ #: plugin-fw/lib/yit-cpt-unlimited.php:1235
298
+ msgid "Quick links"
299
+ msgstr ""
300
+
301
+ #: plugin-fw/lib/yit-cpt-unlimited.php:1475
302
+ #, php-format
303
+ msgid "Show frontend of the %s"
304
+ msgstr ""
305
+
306
+ #: plugin-fw/lib/yit-cpt-unlimited.php:1482
307
+ #: plugin-fw/templates/metaboxes/types/customtabs.php:46
308
+ #: plugin-fw/templates/metaboxes/types/customtabs.php:90
309
+ msgid "Name"
310
+ msgstr ""
311
+
312
+ #: plugin-fw/lib/yit-cpt-unlimited.php:1631
313
+ #, php-format
314
+ msgid "Add %s from images"
315
+ msgstr ""
316
+
317
+ #: plugin-fw/lib/yit-cpt-unlimited.php:1633
318
+ msgid "Upload multiple files"
319
+ msgstr ""
320
+
321
+ #: plugin-fw/lib/yit-plugin-panel-wc.php:295
322
+ msgid "The changes you have made will be lost if you leave this page."
323
+ msgstr ""
324
+
325
+ #: plugin-fw/lib/yit-plugin-panel.php:63
326
+ msgid "Plugin Settings"
327
+ msgstr ""
328
+
329
+ #: plugin-fw/lib/yit-plugin-panel.php:96
330
+ #: plugin-fw/lib/yit-plugin-subpanel.php:101
331
+ msgid "YIT Plugins"
332
+ msgstr ""
333
+
334
+ #: plugin-fw/lib/yit-plugin-panel.php:293
335
+ #: plugin-fw/lib/yit-plugin-subpanel.php:143
336
+ #: plugin-fw/templates/panel/woocommerce/woocommerce-form.php:5
337
+ msgid "Save Changes"
338
+ msgstr ""
339
+
340
+ #: plugin-fw/lib/yit-plugin-panel.php:296
341
+ #: plugin-fw/templates/panel/woocommerce/woocommerce-form.php:8
342
+ msgid ""
343
+ "If you continue with this action, you will reset all options in this page."
344
+ msgstr ""
345
+
346
+ #: plugin-fw/lib/yit-plugin-panel.php:298
347
+ #: plugin-fw/lib/yit-plugin-subpanel.php:148
348
+ msgid "Reset to default"
349
+ msgstr ""
350
+
351
+ #: plugin-fw/lib/yit-plugin-panel.php:298
352
+ #: plugin-fw/lib/yit-plugin-subpanel.php:148
353
+ #: plugin-fw/templates/panel/woocommerce/woocommerce-form.php:10
354
+ msgid "Are you sure?"
355
+ msgstr ""
356
+
357
+ #: plugin-fw/lib/yit-plugin-panel.php:432
358
+ msgid ""
359
+ "The element you have entered already exists. Please, enter another name."
360
+ msgstr ""
361
+
362
+ #: plugin-fw/lib/yit-plugin-panel.php:433
363
+ msgid "Settings saved"
364
+ msgstr ""
365
+
366
+ #: plugin-fw/lib/yit-plugin-panel.php:434
367
+ msgid "Settings reset"
368
+ msgstr ""
369
+
370
+ #: plugin-fw/lib/yit-plugin-panel.php:435
371
+ msgid "Element deleted correctly."
372
+ msgstr ""
373
+
374
+ #: plugin-fw/lib/yit-plugin-panel.php:436
375
+ #: plugin-fw/lib/yit-plugin-panel.php:437
376
+ msgid "Element updated correctly."
377
+ msgstr ""
378
+
379
+ #: plugin-fw/lib/yit-plugin-panel.php:438
380
+ msgid "Database imported correctly."
381
+ msgstr ""
382
+
383
+ #: plugin-fw/lib/yit-plugin-panel.php:439
384
+ msgid "An error has occurred during import. Please try again."
385
+ msgstr ""
386
+
387
+ #: plugin-fw/lib/yit-plugin-panel.php:440
388
+ msgid "The added file is not valid."
389
+ msgstr ""
390
+
391
+ #: plugin-fw/lib/yit-plugin-panel.php:441
392
+ msgid "Sorry, import is disabled."
393
+ msgstr ""
394
+
395
+ #: plugin-fw/lib/yit-plugin-panel.php:442
396
+ msgid "Sorting successful."
397
+ msgstr ""
398
+
399
+ #: plugin-fw/lib/yit-plugin-subpanel.php:146
400
+ msgid ""
401
+ "If you continue with this action, you will reset all the options in this "
402
+ "page."
403
+ msgstr ""
404
+
405
+ #: plugin-fw/lib/yit-pointers.php:70
406
+ msgid "Plugins Activated"
407
+ msgstr ""
408
+
409
+ #: plugin-fw/lib/yit-pointers.php:71
410
+ msgid ""
411
+ "From now on, you can find all plugin options in YIT Plugin menu.\n"
412
+ " For each plugin installed, "
413
+ "customization settings will be available as a new entry in YIT Plugin menu."
414
+ msgstr ""
415
+
416
+ #: plugin-fw/lib/yit-pointers.php:73 plugin-fw/lib/yit-pointers.php:89
417
+ msgid "Discover all our plugins available on:"
418
+ msgstr ""
419
+
420
+ #: plugin-fw/lib/yit-pointers.php:74 plugin-fw/lib/yit-pointers.php:90
421
+ msgid "and"
422
+ msgstr ""
423
+
424
+ #: plugin-fw/lib/yit-pointers.php:84
425
+ msgid "Plugins Upgraded"
426
+ msgstr ""
427
+
428
+ #: plugin-fw/lib/yit-pointers.php:85
429
+ msgid ""
430
+ "From now on, you can find all options of your plugins in YIT Plugin menu.\n"
431
+ " Any time one of our plugins is updated, "
432
+ "a new entry will be added to this menu.\n"
433
+ " For example, after the update, plugin "
434
+ "options (such as for YITH WooCommerce Wishlist, YITH WooCommerce Ajax "
435
+ "Search, etc.)\n"
436
+ " will be moved from previous location to "
437
+ "YIT Plugin tab."
438
+ msgstr ""
439
+
440
+ #: plugin-fw/lib/yit-upgrade.php:123
441
+ msgid "There is a new version of %plugin_name% available."
442
+ msgstr ""
443
+
444
+ #: plugin-fw/lib/yit-upgrade.php:124
445
+ msgid "View version %latest% details."
446
+ msgstr ""
447
+
448
+ #: plugin-fw/lib/yit-upgrade.php:125
449
+ msgid "Automatic update is unavailable for this plugin,"
450
+ msgstr ""
451
+
452
+ #: plugin-fw/lib/yit-upgrade.php:126
453
+ msgid ""
454
+ "please <a href=\"%activate_link%\">activate</a> your copy of %plugin_name%."
455
+ msgstr ""
456
+
457
+ #: plugin-fw/lib/yit-upgrade.php:127
458
+ msgid "Update now."
459
+ msgstr ""
460
+
461
+ #: plugin-fw/lib/yit-upgrade.php:230
462
+ msgid "Yithemes Repository"
463
+ msgstr ""
464
+
465
+ #: plugin-fw/lib/yit-upgrade.php:264
466
+ msgid "Invalid URL Provided."
467
+ msgstr ""
468
+
469
+ #: plugin-fw/lib/yit-upgrade.php:277
470
+ msgid "Could not create Temporary file."
471
+ msgstr ""
472
+
473
+ #: plugin-fw/lib/yit-upgrade.php:419
474
+ #, php-format
475
+ msgid ""
476
+ "There is a new version of %1$s available. <a href=\"%2$s\" class=\"thickbox "
477
+ "yit-changelog-button\" title=\"%3$s\">View version %4$s details</a>."
478
+ msgstr ""
479
+
480
+ #: plugin-fw/lib/yit-upgrade.php:421
481
+ #, php-format
482
+ msgid ""
483
+ "There is a new version of %1$s available. <a href=\"%2$s\" class=\"thickbox "
484
+ "yit-changelog-button\" title=\"%3$s\">View version %4$s details</a>. <em>You "
485
+ "have to activate the plugin on a single site of the network to benefit from "
486
+ "automatic updates.</em>"
487
+ msgstr ""
488
+
489
+ #: plugin-fw/lib/yit-upgrade.php:423
490
+ #, php-format
491
+ msgid ""
492
+ "There is a new version of %1$s available. <a href=\"%2$s\" class=\"thickbox "
493
+ "yit-changelog-button\" title=\"%3$s\">View version %4$s details</a>. "
494
+ "<em>Automatic update is unavailable for this plugin, please <a href=\"%5$s\" "
495
+ "title=\"Licence activation\">activate</a> your copy of %6s.</em>"
496
+ msgstr ""
497
+
498
+ #: plugin-fw/lib/yit-upgrade.php:425
499
+ #, php-format
500
+ msgid ""
501
+ "There is a new version of %1$s available. <a href=\"%2$s\" class=\"thickbox "
502
+ "yit-changelog-button\" title=\"%3$s\">View version %4$s details</a> or <a "
503
+ "href=\"%5$s\">update now</a>."
504
+ msgstr ""
505
+
506
+ #: plugin-fw/lib/yit-upgrade.php:498
507
+ msgid "You can't update the plugins for this site."
508
+ msgstr ""
509
+
510
+ #: plugin-fw/lib/yit-upgrade.php:502
511
+ msgid ""
512
+ "You do not have sufficient permissions to update the plugins for this site."
513
+ msgstr ""
514
+
515
+ #: plugin-fw/lib/yit-upgrade.php:509
516
+ msgid "Update Plugin"
517
+ msgstr ""
518
+
519
+ #: plugin-fw/licence/lib/yit-licence.php:161
520
+ #, php-format
521
+ msgctxt "%s = field name"
522
+ msgid "%s field cannot be empty"
523
+ msgstr ""
524
+
525
+ #: plugin-fw/licence/lib/yit-licence.php:162
526
+ #, php-format
527
+ msgid "%s and %s fields cannot be empty"
528
+ msgstr ""
529
+
530
+ #: plugin-fw/licence/lib/yit-licence.php:163
531
+ msgid "Unable to contact the remote server, please try again later. Thanks!"
532
+ msgstr ""
533
+
534
+ #: plugin-fw/licence/lib/yit-licence.php:548
535
+ msgid "Invalid Request"
536
+ msgstr ""
537
+
538
+ #: plugin-fw/licence/lib/yit-licence.php:549
539
+ msgid "Invalid licence key"
540
+ msgstr ""
541
+
542
+ #: plugin-fw/licence/lib/yit-licence.php:550
543
+ msgid "Software has been deactivated"
544
+ msgstr ""
545
+
546
+ #: plugin-fw/licence/lib/yit-licence.php:551
547
+ msgid "Maximum number of activations exceeded"
548
+ msgstr ""
549
+
550
+ #: plugin-fw/licence/lib/yit-licence.php:552
551
+ msgid "Invalid instance ID"
552
+ msgstr ""
553
+
554
+ #: plugin-fw/licence/lib/yit-licence.php:553
555
+ msgid "Invalid security key"
556
+ msgstr ""
557
+
558
+ #: plugin-fw/licence/lib/yit-licence.php:554
559
+ msgid "Licence key has expired"
560
+ msgstr ""
561
+
562
+ #: plugin-fw/licence/lib/yit-licence.php:555
563
+ msgid "Licence key has been banned"
564
+ msgstr ""
565
+
566
+ #: plugin-fw/licence/lib/yit-plugin-licence.php:68
567
+ #: plugin-fw/licence/lib/yit-plugin-licence.php:69
568
+ #: plugin-fw/licence/lib/yit-theme-licence.php:64
569
+ #: plugin-fw/licence/lib/yit-theme-licence.php:65
570
+ #: plugin-fw/licence/lib/yit-theme-licence.php:107
571
+ #: plugin-fw/licence/lib/yit-theme-licence.php:108
572
+ msgid "Licence Activation"
573
+ msgstr ""
574
+
575
+ #: plugin-fw/licence/lib/yit-theme-licence.php:115
576
+ #: plugin-fw/licence/lib/yit-theme-licence.php:116
577
+ #, php-format
578
+ msgid "%s"
579
+ msgstr ""
580
+
581
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:19
582
+ msgid "Yithemes Licence Activation"
583
+ msgstr ""
584
+
585
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:23
586
+ msgid ""
587
+ "I cannot find the license key for activating the theme I have bought some "
588
+ "time ago. Where can I find it?"
589
+ msgstr ""
590
+
591
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:26
592
+ msgid ""
593
+ "If you have purchased one of our products before 27 January 2015, you can "
594
+ "benefit from support and updates (the services offered with the license)\n"
595
+ " until 27 January 2016 and you do not have to purchase it again "
596
+ "to get a new license key, because, before this date, your license used to be "
597
+ "activated automatically by our system.\n"
598
+ " After 27 January 2016, instead, if you want to benefit from "
599
+ "support and updates you have to buy a new license and activate it through "
600
+ "the license key you will be\n"
601
+ " provided with and that you can find in your YIThemes account, in "
602
+ "section \"My licenses\"."
603
+ msgstr ""
604
+
605
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:37
606
+ msgid ""
607
+ "Have you updated your licenses? Have you asked for an extension? Update "
608
+ "information concerning your products."
609
+ msgstr ""
610
+
611
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:39
612
+ msgid "Update licence information"
613
+ msgstr ""
614
+
615
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:49
616
+ msgid "Products to be activated"
617
+ msgstr ""
618
+
619
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:68
620
+ msgid "Activate"
621
+ msgstr ""
622
+
623
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:87
624
+ msgid "Activated"
625
+ msgstr ""
626
+
627
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:91
628
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:123
629
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:147
630
+ msgid "Product Name"
631
+ msgstr ""
632
+
633
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:92
634
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:124
635
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:148
636
+ #: plugin-fw/templates/metaboxes/types/contactform.php:148
637
+ #: plugin-fw/templates/metaboxes/types/contactform.php:340
638
+ msgid "Email"
639
+ msgstr ""
640
+
641
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:93
642
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:125
643
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:149
644
+ msgid "Licence Key"
645
+ msgstr ""
646
+
647
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:94
648
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:150
649
+ msgid "Expires"
650
+ msgstr ""
651
+
652
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:95
653
+ msgid "Remaining"
654
+ msgstr ""
655
+
656
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:96
657
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:109
658
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:151
659
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:161
660
+ msgid "Renew"
661
+ msgstr ""
662
+
663
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:107
664
+ #, php-format
665
+ msgid "%1s out of %2s"
666
+ msgstr ""
667
+
668
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:119
669
+ msgid "Banned"
670
+ msgstr ""
671
+
672
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:143
673
+ msgid "Expired"
674
+ msgstr ""
675
+
676
+ #: plugin-fw/templates/metaboxes/types/ajax-products.php:23
677
+ msgid "Search for a product"
678
+ msgstr ""
679
+
680
+ #: plugin-fw/templates/metaboxes/types/categories.php:36
681
+ msgid "No categories."
682
+ msgstr ""
683
+
684
+ #: plugin-fw/templates/metaboxes/types/categories.php:42
685
+ msgid "+ Add New Category"
686
+ msgstr ""
687
+
688
+ #: plugin-fw/templates/metaboxes/types/contactform.php:7
689
+ msgid "Text Input"
690
+ msgstr ""
691
+
692
+ #: plugin-fw/templates/metaboxes/types/contactform.php:8
693
+ msgid "Checkbox"
694
+ msgstr ""
695
+
696
+ #: plugin-fw/templates/metaboxes/types/contactform.php:9
697
+ msgid "Select"
698
+ msgstr ""
699
+
700
+ #: plugin-fw/templates/metaboxes/types/contactform.php:10
701
+ msgid "Textarea"
702
+ msgstr ""
703
+
704
+ #: plugin-fw/templates/metaboxes/types/contactform.php:11
705
+ msgid "Radio Input"
706
+ msgstr ""
707
+
708
+ #: plugin-fw/templates/metaboxes/types/contactform.php:12
709
+ msgid "Password Field"
710
+ msgstr ""
711
+
712
+ #: plugin-fw/templates/metaboxes/types/contactform.php:13
713
+ msgid "File Upload"
714
+ msgstr ""
715
+
716
+ #: plugin-fw/templates/metaboxes/types/contactform.php:47
717
+ msgid "Theme Icon"
718
+ msgstr ""
719
+
720
+ #: plugin-fw/templates/metaboxes/types/contactform.php:48
721
+ msgid "Custom Icon"
722
+ msgstr ""
723
+
724
+ #: plugin-fw/templates/metaboxes/types/contactform.php:49
725
+ #: plugin-fw/templates/metaboxes/types/responsivesliders.php:24
726
+ msgid "None"
727
+ msgstr ""
728
+
729
+ #: plugin-fw/templates/metaboxes/types/contactform.php:60
730
+ msgid "Add field"
731
+ msgstr ""
732
+
733
+ #: plugin-fw/templates/metaboxes/types/contactform.php:69
734
+ #: plugin-fw/templates/metaboxes/types/contactform.php:261
735
+ #: plugin-fw/templates/metaboxes/types/customtabs.php:37
736
+ #: plugin-fw/templates/metaboxes/types/customtabs.php:82
737
+ msgid "Remove"
738
+ msgstr ""
739
+
740
+ #: plugin-fw/templates/metaboxes/types/contactform.php:70
741
+ #: plugin-fw/templates/metaboxes/types/contactform.php:262
742
+ msgid "Click to toggle"
743
+ msgstr ""
744
+
745
+ #: plugin-fw/templates/metaboxes/types/contactform.php:77
746
+ #: plugin-fw/templates/metaboxes/types/contactform.php:269
747
+ msgid "Field Title"
748
+ msgstr ""
749
+
750
+ #: plugin-fw/templates/metaboxes/types/contactform.php:81
751
+ #: plugin-fw/templates/metaboxes/types/contactform.php:273
752
+ msgid "Insert the title for the field."
753
+ msgstr ""
754
+
755
+ #: plugin-fw/templates/metaboxes/types/contactform.php:86
756
+ #: plugin-fw/templates/metaboxes/types/contactform.php:278
757
+ msgid "Data Name"
758
+ msgstr ""
759
+
760
+ #: plugin-fw/templates/metaboxes/types/contactform.php:90
761
+ #: plugin-fw/templates/metaboxes/types/contactform.php:282
762
+ msgid ""
763
+ "REQUIRED: Field identification name to be entered into email body. "
764
+ "<strong>Note:</strong>Use only lowercase characters and underscores."
765
+ msgstr ""
766
+
767
+ #: plugin-fw/templates/metaboxes/types/contactform.php:95
768
+ #: plugin-fw/templates/metaboxes/types/contactform.php:287
769
+ msgid "Field Type"
770
+ msgstr ""
771
+
772
+ #: plugin-fw/templates/metaboxes/types/contactform.php:103
773
+ #: plugin-fw/templates/metaboxes/types/contactform.php:295
774
+ msgid "Select the type for this field."
775
+ msgstr ""
776
+
777
+ #: plugin-fw/templates/metaboxes/types/contactform.php:108
778
+ #: plugin-fw/templates/metaboxes/types/contactform.php:300
779
+ msgid "Checked"
780
+ msgstr ""
781
+
782
+ #: plugin-fw/templates/metaboxes/types/contactform.php:112
783
+ #: plugin-fw/templates/metaboxes/types/contactform.php:304
784
+ msgid "Select this option if you want this field appears as already checked."
785
+ msgstr ""
786
+
787
+ #: plugin-fw/templates/metaboxes/types/contactform.php:117
788
+ #: plugin-fw/templates/metaboxes/types/contactform.php:309
789
+ msgid "Add options "
790
+ msgstr ""
791
+
792
+ #: plugin-fw/templates/metaboxes/types/contactform.php:118
793
+ #: plugin-fw/templates/metaboxes/types/contactform.php:310
794
+ msgid "Add option"
795
+ msgstr ""
796
+
797
+ #: plugin-fw/templates/metaboxes/types/contactform.php:121
798
+ #: plugin-fw/templates/metaboxes/types/contactform.php:313
799
+ #: plugin-fw/templates/metaboxes/types/contactform.php:436
800
+ msgid "Selected"
801
+ msgstr ""
802
+
803
+ #: plugin-fw/templates/metaboxes/types/contactform.php:124
804
+ #: plugin-fw/templates/metaboxes/types/contactform.php:316
805
+ #: plugin-fw/templates/metaboxes/types/contactform.php:436
806
+ msgid "Delete option"
807
+ msgstr ""
808
+
809
+ #: plugin-fw/templates/metaboxes/types/contactform.php:130
810
+ #: plugin-fw/templates/metaboxes/types/contactform.php:322
811
+ msgid "Error Message"
812
+ msgstr ""
813
+
814
+ #: plugin-fw/templates/metaboxes/types/contactform.php:134
815
+ #: plugin-fw/templates/metaboxes/types/contactform.php:326
816
+ msgid "Insert the error message for validation."
817
+ msgstr ""
818
+
819
+ #: plugin-fw/templates/metaboxes/types/contactform.php:139
820
+ #: plugin-fw/templates/metaboxes/types/contactform.php:331
821
+ msgid "Required"
822
+ msgstr ""
823
+
824
+ #: plugin-fw/templates/metaboxes/types/contactform.php:143
825
+ #: plugin-fw/templates/metaboxes/types/contactform.php:335
826
+ msgid "Select this option if it must be required."
827
+ msgstr ""
828
+
829
+ #: plugin-fw/templates/metaboxes/types/contactform.php:152
830
+ #: plugin-fw/templates/metaboxes/types/contactform.php:344
831
+ msgid "Select this option if the email must be valid."
832
+ msgstr ""
833
+
834
+ #: plugin-fw/templates/metaboxes/types/contactform.php:157
835
+ #: plugin-fw/templates/metaboxes/types/contactform.php:349
836
+ msgid "Reply To"
837
+ msgstr ""
838
+
839
+ #: plugin-fw/templates/metaboxes/types/contactform.php:161
840
+ #: plugin-fw/templates/metaboxes/types/contactform.php:353
841
+ msgid "Select this if it is the email you can reply to."
842
+ msgstr ""
843
+
844
+ #: plugin-fw/templates/metaboxes/types/contactform.php:166
845
+ #: plugin-fw/templates/metaboxes/types/contactform.php:358
846
+ msgid "Class"
847
+ msgstr ""
848
+
849
+ #: plugin-fw/templates/metaboxes/types/contactform.php:170
850
+ #: plugin-fw/templates/metaboxes/types/contactform.php:362
851
+ msgid ""
852
+ "Insert additional class(es) (separated by commas) for more personalization."
853
+ msgstr ""
854
+
855
+ #: plugin-fw/templates/metaboxes/types/contactform.php:175
856
+ #: plugin-fw/templates/metaboxes/types/contactform.php:367
857
+ msgid "Icon"
858
  msgstr ""
859
 
860
  # @ yit
861
+ #: plugin-fw/templates/metaboxes/types/contactform.php:203
862
+ #: plugin-fw/templates/metaboxes/types/contactform.php:391
863
+ #: plugin-fw/templates/metaboxes/types/icon-list.php:69
864
+ #: plugin-fw/templates/metaboxes/types/select-icon.php:33
865
+ #: plugin-fw/templates/metaboxes/types/upload.php:21
866
+ #: plugin-fw/templates/panel/types/upload.php:31
867
+ #: plugin-fw/templates/panel/woocommerce/woocommerce-upload.php:35
868
+ msgid "Upload"
869
+ msgstr "Yükle"
870
+
871
+ #: plugin-fw/templates/metaboxes/types/contactform.php:209
872
+ #: plugin-fw/templates/metaboxes/types/contactform.php:397
873
+ #: plugin-fw/templates/metaboxes/types/icon-list.php:75
874
+ #: plugin-fw/templates/metaboxes/types/select-icon.php:39
875
+ msgid "Image preview"
876
+ msgstr ""
877
+
878
+ #: plugin-fw/templates/metaboxes/types/contactform.php:217
879
+ #: plugin-fw/templates/metaboxes/types/contactform.php:405
880
+ msgid "Insert an icon for more personalization."
881
+ msgstr ""
882
+
883
+ #: plugin-fw/templates/metaboxes/types/contactform.php:222
884
+ #: plugin-fw/templates/metaboxes/types/contactform.php:409
885
+ msgid "Width"
886
+ msgstr ""
887
+
888
+ #: plugin-fw/templates/metaboxes/types/contactform.php:247
889
+ #: plugin-fw/templates/metaboxes/types/contactform.php:421
890
+ msgid "Set field length."
891
+ msgstr ""
892
+
893
+ #: plugin-fw/templates/metaboxes/types/customtabs.php:28
894
+ msgid "Close all"
895
+ msgstr ""
896
+
897
+ #: plugin-fw/templates/metaboxes/types/customtabs.php:28
898
+ msgid "Expand all"
899
+ msgstr ""
900
+
901
+ #: plugin-fw/templates/metaboxes/types/customtabs.php:52
902
+ #: plugin-fw/templates/metaboxes/types/customtabs.php:95
903
+ msgid "Value"
904
+ msgstr ""
905
+
906
+ #: plugin-fw/templates/metaboxes/types/customtabs.php:53
907
+ #: plugin-fw/templates/metaboxes/types/customtabs.php:96
908
+ msgid "Content of the tab. (HTML is supported)"
909
+ msgstr ""
910
+
911
+ #: plugin-fw/templates/metaboxes/types/customtabs.php:65
912
+ msgid "Add custom product tab"
913
+ msgstr ""
914
+
915
+ #: plugin-fw/templates/metaboxes/types/customtabs.php:107
916
+ msgid "Do you want to remove the custom tab?"
917
+ msgstr ""
918
+
919
+ #: plugin-fw/templates/metaboxes/types/icon-list.php:89
920
+ #, php-format
921
+ msgid "(Default: %s <img src=\"%s\"/>)"
922
+ msgstr ""
923
+
924
+ #: plugin-fw/templates/metaboxes/types/icon-list.php:91
925
+ #, php-format
926
+ msgid "(Default: <i %s></i> )"
927
+ msgstr ""
928
+
929
+ #: plugin-fw/templates/metaboxes/types/image-gallery.php:40
930
+ #: plugin-fw/templates/metaboxes/types/image-gallery.php:45
931
+ #: plugin-fw/templates/metaboxes/types/images.php:38
932
+ #: plugin-fw/templates/metaboxes/types/images.php:64
933
+ msgid "Delete image"
934
+ msgstr ""
935
+
936
+ #: plugin-fw/templates/metaboxes/types/image-gallery.php:45
937
+ msgid "Add Images to Gallery"
938
+ msgstr ""
939
+
940
+ #: plugin-fw/templates/metaboxes/types/image-gallery.php:45
941
+ msgid "Add to gallery"
942
+ msgstr ""
943
+
944
+ #: plugin-fw/templates/metaboxes/types/image-gallery.php:45
945
+ msgid "Add images"
946
+ msgstr ""
947
+
948
+ #: plugin-fw/templates/metaboxes/types/image-gallery.php:45
949
+ msgid "Delete"
950
+ msgstr ""
951
+
952
+ #: plugin-fw/templates/metaboxes/types/images.php:42
953
+ msgid "Upload new images"
954
+ msgstr ""
955
+
956
+ #: plugin-fw/templates/metaboxes/types/images.php:75
957
+ msgid "Are you sure you want to remove this image?"
958
+ msgstr ""
959
+
960
+ #: plugin-fw/templates/metaboxes/types/sidebar-layout.php:25
961
+ #: plugin-fw/templates/metaboxes/types/sidebars.php:36
962
+ msgid "Left sidebar"
963
+ msgstr ""
964
+
965
+ #: plugin-fw/templates/metaboxes/types/sidebar-layout.php:28
966
+ #: plugin-fw/templates/metaboxes/types/sidebars.php:42
967
+ #: plugin-fw/templates/metaboxes/types/sidebars.php:45
968
+ msgid "No sidebar"
969
+ msgstr ""
970
+
971
+ #: plugin-fw/templates/metaboxes/types/sidebar-layout.php:31
972
+ #: plugin-fw/templates/metaboxes/types/sidebars.php:39
973
+ msgid "Right sidebar"
974
+ msgstr ""
975
+
976
+ #: plugin-fw/templates/metaboxes/types/sidebar-layout.php:34
977
+ #: plugin-fw/templates/metaboxes/types/sidebars.php:53
978
+ #: plugin-fw/templates/metaboxes/types/sidebars.php:64
979
+ msgid "Choose a sidebar"
980
+ msgstr ""
981
+
982
+ #: plugin-fw/templates/metaboxes/types/sidebars.php:51
983
+ msgid "Left Sidebar"
984
+ msgstr ""
985
+
986
+ #: plugin-fw/templates/metaboxes/types/sidebars.php:62
987
+ msgid "Right Sidebar"
988
+ msgstr ""
989
+
990
+ # @ yit
991
+ #: plugin-fw/templates/metaboxes/types/typography.php:42
992
+ msgid "px"
993
+ msgstr "px"
994
+
995
+ # @ yit
996
+ #: plugin-fw/templates/metaboxes/types/typography.php:43
997
+ msgid "em"
998
+ msgstr "em"
999
+
1000
+ # @ yit
1001
+ #: plugin-fw/templates/metaboxes/types/typography.php:44
1002
+ msgid "pt"
1003
+ msgstr "pt"
1004
 
1005
  # @ yit
1006
+ #: plugin-fw/templates/metaboxes/types/typography.php:45
1007
+ msgid "rem"
1008
+ msgstr "rem"
1009
+
1010
+ #: plugin-fw/templates/metaboxes/types/typography.php:59
1011
+ #: plugin-fw/templates/metaboxes/types/typography.php:153
1012
+ #: plugin-fw/templates/metaboxes/types/typography.php:217
1013
+ msgid "Web fonts"
1014
+ msgstr ""
1015
+
1016
+ #: plugin-fw/templates/metaboxes/types/typography.php:71
1017
+ msgid "Google fonts"
1018
+ msgstr ""
1019
+
1020
+ # @ yit
1021
+ #: plugin-fw/templates/metaboxes/types/typography.php:96
1022
+ msgid "Regular"
1023
+ msgstr "Normal"
1024
+
1025
+ # @ yit
1026
+ #: plugin-fw/templates/metaboxes/types/typography.php:97
1027
+ msgid "Bold"
1028
+ msgstr "Kalın"
1029
+
1030
+ # @ yit
1031
+ #: plugin-fw/templates/metaboxes/types/typography.php:98
1032
+ msgid "Extra bold"
1033
+ msgstr "Ekstra kalın"
1034
+
1035
+ # @ yit
1036
+ #: plugin-fw/templates/metaboxes/types/typography.php:99
1037
+ msgid "Italic"
1038
+ msgstr "İtalik"
1039
+
1040
+ # @ yit
1041
+ #: plugin-fw/templates/metaboxes/types/typography.php:100
1042
+ msgid "Italic bold"
1043
+ msgstr "İtalik kalın"
1044
+
1045
+ #: plugin-fw/templates/panel/woocommerce/woocommerce-form.php:10
1046
+ msgid "Reset Defaults"
1047
+ msgstr ""
1048
+
1049
+ #: templates/admin/premium.php:207 templates/admin/premium.php:324
1050
+ #, php-format
1051
+ msgid ""
1052
+ "Upgrade to %1$spremium version%2$s of %1$sYITH WooCommerce Ajax Product "
1053
+ "Filter%2$s to benefit from all features!"
1054
+ msgstr ""
1055
+
1056
+ #: templates/admin/premium.php:210 templates/admin/premium.php:327
1057
+ msgid "UPGRADE"
1058
+ msgstr ""
1059
+
1060
+ #: templates/admin/premium.php:211 templates/admin/premium.php:328
1061
+ msgid "to the premium version"
1062
+ msgstr ""
1063
+
1064
+ #: templates/admin/premium.php:217
1065
+ msgid "Premium Features"
1066
+ msgstr ""
1067
+
1068
+ #: templates/admin/premium.php:225
1069
+ msgid "Two more layouts"
1070
+ msgstr ""
1071
+
1072
+ #: templates/admin/premium.php:228
1073
+ #, php-format
1074
+ msgid ""
1075
+ "The YITH WooCommerce Ajax product Filter widget get richer with 2 new "
1076
+ "layouts to filter the products of your shop.\n"
1077
+ " %1$sBicolor%2$s: the perfect choice for those attributes "
1078
+ "related to two different colors at the same time (white/black), for a simple "
1079
+ "visual impact for the final user. Pick the %1$sTag%2$s typology, on the "
1080
+ "contrary, if you want to filter your products by product tag.\n"
1081
+ " And if you are using also the %1$sYITH WooCommerce Brand "
1082
+ "Add-On%2$s plugin, you will be able to offer the freedom to filter your shop "
1083
+ "products by brands thanks to the ajax technology.\n"
1084
+ " "
1085
+ msgstr ""
1086
 
1087
+ #: templates/admin/premium.php:241
1088
+ msgid "Price range"
1089
+ msgstr ""
1090
+
1091
+ #: templates/admin/premium.php:244
1092
+ #, php-format
1093
+ msgid ""
1094
+ "One of the most requested filter for e-commerce sites is the one that let "
1095
+ "you select products by their prices.\n"
1096
+ " Thanks to YITH WooCommerce Ajax List Price Filter, "
1097
+ "%1$syou can set unlimited price ranges:%2$s your users will be able to "
1098
+ "filter products selecting on the ranges you have set."
1099
+ msgstr ""
1100
+
1101
+ #: templates/admin/premium.php:261
1102
+ msgid "Ajax Stock/On Sale Filters"
1103
+ msgstr ""
1104
+
1105
+ #: templates/admin/premium.php:264
1106
+ #, php-format
1107
+ msgid ""
1108
+ "A new widget for the premium version of the plugin.\n"
1109
+ " Whoever will surf the pages of your shop will be able to "
1110
+ "display only the products on sale and/or the available ones.%3$s\n"
1111
+ " %1$sAn additional feature for an e-commerce site that is "
1112
+ "worthy!%2$s"
1113
+ msgstr ""
1114
+
1115
+ #: templates/admin/premium.php:276
1116
+ msgid "Product sorting"
1117
+ msgstr ""
1118
+
1119
+ #: templates/admin/premium.php:279
1120
+ #, php-format
1121
+ msgid ""
1122
+ "With the new %1$sYITH WooCommerce Ajax Sort By%2$s widget, you can give your "
1123
+ "users the freedom to sort products with the ajax technology,\n"
1124
+ " without the need to reload the page. Products can be "
1125
+ "sorted by rate, sales, price or publication date."
1126
+ msgstr ""
1127
+
1128
+ #: templates/admin/premium.php:296
1129
+ msgid "Customized loader"
1130
+ msgstr ""
1131
+
1132
+ #: templates/admin/premium.php:299
1133
+ msgid ""
1134
+ "From the plugin option panel, you can choose to upload a new icon for your "
1135
+ "loader: in this way, it will better meet your needs."
1136
+ msgstr ""
1137
+
1138
+ #: templates/admin/premium.php:309
1139
+ msgid "WooCommerce Price Filter"
1140
+ msgstr ""
1141
+
1142
+ #: templates/admin/premium.php:312
1143
+ msgid ""
1144
+ "With the premium version of the plugin, you will also be able to customize "
1145
+ "WooCommerce Price Filter widget, changing the settings you can find in the "
1146
+ "plugin option panel."
1147
+ msgstr ""
1148
+
1149
+ #: widgets/class.yith-wcan-navigation-widget.php:23
1150
+ msgid "Filter the product list without reloading the page"
1151
+ msgstr ""
1152
+
1153
+ #: widgets/class.yith-wcan-navigation-widget.php:262
1154
+ msgid "Filters:"
1155
+ msgstr ""
1156
 
1157
  # @ yit
1158
+ #: widgets/class.yith-wcan-navigation-widget.php:806
1159
  msgid "List"
1160
  msgstr "Liste"
1161
 
1162
  # @ yit
1163
+ #: widgets/class.yith-wcan-navigation-widget.php:808
1164
  msgid "Label"
1165
  msgstr "Etiket"
1166
 
1167
+ #: widgets/class.yith-wcan-navigation-widget.php:809
1168
  msgid "Dropdown"
1169
  msgstr "Açılır Menü"
1170
 
1171
  # @ yit
1172
+ #: widgets/class.yith-wcan-navigation-widget.php:816
1173
  #: widgets/class.yith-wcan-reset-navigation-widget.php:89
1174
  msgid "Title"
1175
  msgstr "Başlık"
1176
 
1177
  # @ yit
1178
+ #: widgets/class.yith-wcan-navigation-widget.php:822
1179
  msgid "Type:"
1180
  msgstr "Tür:"
1181
 
1182
  # @ yit
1183
+ #: widgets/class.yith-wcan-navigation-widget.php:833
1184
  msgid "Query Type:"
1185
  msgstr "Sorgu Tipi:"
1186
 
1187
  # @ yit
1188
+ #: widgets/class.yith-wcan-navigation-widget.php:835
1189
  msgid "AND"
1190
  msgstr "VE"
1191
 
1192
  # @ yit
1193
+ #: widgets/class.yith-wcan-navigation-widget.php:836
1194
  msgid "OR"
1195
  msgstr "VEYA"
1196
 
1197
  # @ yit
1198
+ #: widgets/class.yith-wcan-navigation-widget.php:840
1199
  msgid "Attribute:"
1200
  msgstr "Özellikler:"
1201
 
1202
+ #: widgets/class.yith-wcan-navigation-widget.php:847
1203
  msgid "Display (default All):"
1204
  msgstr "Görüntüleme (Varsayılan tümü):"
1205
 
1206
+ #: widgets/class.yith-wcan-navigation-widget.php:849
1207
  msgid "All (no hierarchical)"
1208
  msgstr "Tümü"
1209
 
1210
+ #: widgets/class.yith-wcan-navigation-widget.php:850
1211
+ msgid "All (hierarchical)"
1212
+ msgstr ""
1213
 
1214
+ #: widgets/class.yith-wcan-navigation-widget.php:851
1215
  msgid "Only Parent"
1216
  msgstr "Sadece Ebeveyn"
1217
 
 
1218
  #: widgets/class.yith-wcan-reset-navigation-widget.php:23
1219
+ msgid "Reset all filters set by YITH WooCommerce Ajax Product Filter"
1220
  msgstr ""
 
1221
 
 
1222
  #: widgets/class.yith-wcan-reset-navigation-widget.php:25
1223
+ msgid "YITH WooCommerce Ajax Reset Filter"
1224
+ msgstr ""
1225
 
1226
  #: widgets/class.yith-wcan-reset-navigation-widget.php:82
1227
  msgid "Reset All Filters"
1232
  msgstr "Buton Metni"
1233
 
1234
  # @ yit
1235
+ #~ msgid "Narrow down the products list without reloading the page"
1236
+ #~ msgstr "Sayfayı yenilemeden ürün listesini daralt"
1237
 
1238
  # @ yit
1239
+ #~ msgid "YITH WooCommerce Ajax Navigation"
1240
+ #~ msgstr "YITH WooCommerce Ajax Navigation"
1241
 
1242
+ #~ msgid "Filters List:"
1243
+ #~ msgstr "Filtre Listesi:"
1244
+
1245
+ #~ msgid "All Hierarchical"
1246
+ #~ msgstr "Tüm Hiyerarşik"
1247
 
1248
  # @ yit
1249
+ #~ msgid "Reset all filters setted by YITH WooCommerce Ajax Navigation"
1250
+ #~ msgstr ""
1251
+ #~ "YITH WooCommerce Ajax Navigation için ayarlanmış tüm filtreleri sıfırlayın"
1252
 
1253
  # @ yit
1254
+ #~ msgid "YITH WooCommerce Ajax Reset Navigation"
1255
+ #~ msgstr "YITH WooCommerce Ajax Reset Navigation"
1256
 
1257
  # @ yit
1258
+ #~ msgid "Select a date"
1259
+ #~ msgstr "Bir tarih seçin"
1260
 
1261
  # @ yit
1262
+ #~ msgid "Hours"
1263
+ #~ msgstr "Saat"
1264
 
1265
  # @ yit
1266
+ #~ msgid "Minutes"
1267
+ #~ msgstr "Dakika"
1268
 
1269
  # @ yit
1270
  #~ msgid "Select a font family"
1271
  #~ msgstr "Bir font ailesi seçin"
1272
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1273
  # @ yit
1274
  #~ msgid "Click to preview"
1275
  #~ msgstr "Önizleme için tıklayın"
languages/yith_wc_ajxnav.pot CHANGED
@@ -1,8 +1,9 @@
 
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: YITH WooCommerce Ajax Product Filter\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2015-06-19 13:59+0100\n"
6
  "PO-Revision-Date: 2015-06-19 13:59+0100\n"
7
  "Last-Translator: Your Inspiration Themes <plugins@yithemes.com>\n"
8
  "Language-Team: \n"
@@ -11,7 +12,7 @@ msgstr ""
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
  "Plural-Forms: nplurals=2; plural=n != 1;\n"
14
- "X-Generator: Poedit 1.7.6\n"
15
  "X-Poedit-SourceCharset: UTF-8\n"
16
  "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;"
17
  "_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
@@ -20,109 +21,1205 @@ msgstr ""
20
  "X-Poedit-SearchPath-0: .\n"
21
  "X-Poedit-SearchPathExcluded-0: ../plugin-fw\n"
22
 
23
- # @ yit
24
- #: functions.yith-wcan.php:56 functions.yith-wcan.php:69
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25
  msgid "Term"
26
  msgstr ""
27
 
28
- # @ yit
29
- #: functions.yith-wcan.php:56
30
- #: widgets/class.yith-wcan-navigation-widget.php:784
31
  msgid "Color"
32
  msgstr ""
33
 
34
- # @ yit
35
- #: functions.yith-wcan.php:69
 
 
 
 
 
 
 
 
 
36
  msgid "Labels"
37
  msgstr ""
38
 
39
  #: init.php:46
40
  msgid ""
41
  "YITH WooCommerce Ajax Product Filter is enabled but not effective. It "
42
- "requires Woocommerce in order to work."
43
  msgstr ""
44
 
45
- # @ yit
46
- #: widgets/class.yith-wcan-navigation-widget.php:23
47
- msgid "Narrow down the products list without reloading the page"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
48
  msgstr ""
49
 
50
- # @ yit
51
- #: widgets/class.yith-wcan-navigation-widget.php:25
52
- msgid "YITH WooCommerce Ajax Navigation"
53
  msgstr ""
54
 
55
- #: widgets/class.yith-wcan-navigation-widget.php:260
56
- msgid "Filters List:"
57
  msgstr ""
58
 
59
- # @ yit
60
- #: widgets/class.yith-wcan-navigation-widget.php:783
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
61
  msgid "List"
62
  msgstr ""
63
 
64
- # @ yit
65
- #: widgets/class.yith-wcan-navigation-widget.php:785
66
  msgid "Label"
67
  msgstr ""
68
 
69
- #: widgets/class.yith-wcan-navigation-widget.php:786
70
  msgid "Dropdown"
71
  msgstr ""
72
 
73
- # @ yit
74
- #: widgets/class.yith-wcan-navigation-widget.php:793
75
  #: widgets/class.yith-wcan-reset-navigation-widget.php:89
76
  msgid "Title"
77
  msgstr ""
78
 
79
- # @ yit
80
- #: widgets/class.yith-wcan-navigation-widget.php:799
81
  msgid "Type:"
82
  msgstr ""
83
 
84
- # @ yit
85
- #: widgets/class.yith-wcan-navigation-widget.php:808
86
  msgid "Query Type:"
87
  msgstr ""
88
 
89
- # @ yit
90
- #: widgets/class.yith-wcan-navigation-widget.php:810
91
  msgid "AND"
92
  msgstr ""
93
 
94
- # @ yit
95
- #: widgets/class.yith-wcan-navigation-widget.php:811
96
  msgid "OR"
97
  msgstr ""
98
 
99
- # @ yit
100
- #: widgets/class.yith-wcan-navigation-widget.php:815
101
  msgid "Attribute:"
102
  msgstr ""
103
 
104
- #: widgets/class.yith-wcan-navigation-widget.php:822
105
  msgid "Display (default All):"
106
  msgstr ""
107
 
108
- #: widgets/class.yith-wcan-navigation-widget.php:824
109
  msgid "All (no hierarchical)"
110
  msgstr ""
111
 
112
- #: widgets/class.yith-wcan-navigation-widget.php:825
113
- msgid "All Hierarchical"
114
  msgstr ""
115
 
116
- #: widgets/class.yith-wcan-navigation-widget.php:826
117
  msgid "Only Parent"
118
  msgstr ""
119
 
120
  #: widgets/class.yith-wcan-reset-navigation-widget.php:23
121
- msgid "Reset all filters setted by YITH WooCommerce Ajax Navigation"
122
  msgstr ""
123
 
124
  #: widgets/class.yith-wcan-reset-navigation-widget.php:25
125
- msgid "YITH WooCommerce Ajax Reset Navigation"
126
  msgstr ""
127
 
128
  #: widgets/class.yith-wcan-reset-navigation-widget.php:82
1
+ #, fuzzy
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: YITH WooCommerce Ajax Product Filter\n"
5
  "Report-Msgid-Bugs-To: \n"
6
+ "POT-Creation-Date: 2015-07-28 10:37+0100\n"
7
  "PO-Revision-Date: 2015-06-19 13:59+0100\n"
8
  "Last-Translator: Your Inspiration Themes <plugins@yithemes.com>\n"
9
  "Language-Team: \n"
12
  "Content-Type: text/plain; charset=UTF-8\n"
13
  "Content-Transfer-Encoding: 8bit\n"
14
  "Plural-Forms: nplurals=2; plural=n != 1;\n"
15
+ "X-Generator: Poedit 1.8.1\n"
16
  "X-Poedit-SourceCharset: UTF-8\n"
17
  "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;"
18
  "_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
21
  "X-Poedit-SearchPath-0: .\n"
22
  "X-Poedit-SearchPathExcluded-0: ../plugin-fw\n"
23
 
24
+ #: includes/class.yith-wcan-admin.php:135
25
+ #: includes/class.yith-wcan-admin.php:185
26
+ msgid "Premium Version"
27
+ msgstr ""
28
+
29
+ #: includes/class.yith-wcan-admin.php:141
30
+ #: includes/class.yith-wcan-admin.php:142
31
+ msgid "Ajax Product Filter"
32
+ msgstr ""
33
+
34
+ #: includes/class.yith-wcan-admin.php:181
35
+ msgid "Premium live demo"
36
+ msgstr ""
37
+
38
+ #: includes/class.yith-wcan-admin.php:181
39
+ msgid "Live demo"
40
+ msgstr ""
41
+
42
+ #: includes/class.yith-wcan-admin.php:209
43
+ msgid "Plugin Documentation"
44
+ msgstr ""
45
+
46
+ #: includes/class.yith-wcan-admin.php:262
47
+ msgid ""
48
+ "Dear users,\n"
49
+ " we would like to inform you that the YITH "
50
+ "WooCommerce Ajax Navigation plugin will change its name in YITH "
51
+ "WooCommerce Ajax Product Filter from the next update. Also, the plugin "
52
+ "textdomain will change too from \"yit\" to \"yith_wc_ajxnav\".\n"
53
+ " This modification solves the issues about "
54
+ "textdomain conflicts generated by some translation/multilanguage "
55
+ "plugins you have identified in the past weeks.\n"
56
+ " If updating the plugin some language files "
57
+ "are no more recognized by WordPress, you will just have to rename the "
58
+ "language files in the correct format. After renaming the files, you "
59
+ "can update/translate the .po file following the classic procedure for "
60
+ "translations."
61
+ msgstr ""
62
+
63
+ #: includes/class.yith-wcan-admin.php:267
64
+ #: widgets/class.yith-wcan-navigation-widget.php:26
65
+ msgid "YITH WooCommerce Ajax Product Filter"
66
+ msgstr ""
67
+
68
+ #: includes/class.yith-wcan-admin.php:269
69
+ msgid ""
70
+ "YITH WooCommerce Product Filter has been updated with new available "
71
+ "options"
72
+ msgstr ""
73
+
74
+ #: includes/class.yith-wcan-admin.php:269
75
+ msgid "discover the PREMIUM version"
76
+ msgstr ""
77
+
78
+ #: includes/functions.yith-wcan.php:57
79
+ #: includes/functions.yith-wcan.php:71
80
+ #: includes/functions.yith-wcan.php:93
81
  msgid "Term"
82
  msgstr ""
83
 
84
+ #: includes/functions.yith-wcan.php:57
85
+ #: widgets/class.yith-wcan-navigation-widget.php:807
 
86
  msgid "Color"
87
  msgstr ""
88
 
89
+ #: includes/functions.yith-wcan.php:71
90
+ msgctxt "For multicolor: I.E. white and red T-Shirt"
91
+ msgid "Color 1"
92
+ msgstr ""
93
+
94
+ #: includes/functions.yith-wcan.php:71
95
+ msgctxt "For multicolor: I.E. white and red T-Shirt"
96
+ msgid "Color 2"
97
+ msgstr ""
98
+
99
+ #: includes/functions.yith-wcan.php:93
100
  msgid "Labels"
101
  msgstr ""
102
 
103
  #: init.php:46
104
  msgid ""
105
  "YITH WooCommerce Ajax Product Filter is enabled but not effective. It "
106
+ "requires WooCommerce in order to work."
107
  msgstr ""
108
 
109
+ #: plugin-fw/lib/yit-cpt-unlimited.php:460
110
+ #: plugin-fw/lib/yit-cpt-unlimited.php:574
111
+ #: plugin-fw/lib/yit-cpt-unlimited.php:719
112
+ #: plugin-fw/lib/yit-cpt-unlimited.php:1632
113
+ #, php-format
114
+ msgid "Add %s"
115
+ msgstr ""
116
+
117
+ #: plugin-fw/lib/yit-cpt-unlimited.php:461
118
+ #: plugin-fw/lib/yit-cpt-unlimited.php:575
119
+ #, php-format
120
+ msgid "Add New %s"
121
+ msgstr ""
122
+
123
+ #: plugin-fw/lib/yit-cpt-unlimited.php:462
124
+ #: plugin-fw/lib/yit-cpt-unlimited.php:576
125
+ #: plugin-fw/lib/yit-cpt-unlimited.php:1267
126
+ #: plugin-fw/lib/yit-cpt-unlimited.php:1304
127
+ #, php-format
128
+ msgid "Edit %s"
129
+ msgstr ""
130
+
131
+ #: plugin-fw/lib/yit-cpt-unlimited.php:463
132
+ #: plugin-fw/lib/yit-cpt-unlimited.php:577
133
+ #, php-format
134
+ msgid "New %s"
135
+ msgstr ""
136
+
137
+ #: plugin-fw/lib/yit-cpt-unlimited.php:464
138
+ #: plugin-fw/lib/yit-cpt-unlimited.php:578
139
+ #, php-format
140
+ msgid "All %s"
141
+ msgstr ""
142
+
143
+ #: plugin-fw/lib/yit-cpt-unlimited.php:465
144
+ #: plugin-fw/lib/yit-cpt-unlimited.php:579
145
+ #: plugin-fw/lib/yit-cpt-unlimited.php:1251
146
+ #: plugin-fw/lib/yit-cpt-unlimited.php:1305
147
+ #, php-format
148
+ msgid "View %s"
149
+ msgstr ""
150
+
151
+ #: plugin-fw/lib/yit-cpt-unlimited.php:466
152
+ #: plugin-fw/lib/yit-cpt-unlimited.php:580
153
+ #, php-format
154
+ msgid "Search %s"
155
+ msgstr ""
156
+
157
+ #: plugin-fw/lib/yit-cpt-unlimited.php:467
158
+ #: plugin-fw/lib/yit-cpt-unlimited.php:581
159
+ #, php-format
160
+ msgid "No %s found"
161
+ msgstr ""
162
+
163
+ #: plugin-fw/lib/yit-cpt-unlimited.php:468
164
+ #: plugin-fw/lib/yit-cpt-unlimited.php:582
165
+ #, php-format
166
+ msgid "No %s found in Trash"
167
+ msgstr ""
168
+
169
+ #: plugin-fw/lib/yit-cpt-unlimited.php:625
170
+ #, php-format
171
+ msgctxt "taxonomy general name"
172
+ msgid "%s Categories"
173
+ msgstr ""
174
+
175
+ #: plugin-fw/lib/yit-cpt-unlimited.php:626
176
+ msgctxt "taxonomy singular name"
177
+ msgid "Category"
178
+ msgstr ""
179
+
180
+ #: plugin-fw/lib/yit-cpt-unlimited.php:627
181
+ msgid "Search Categories"
182
+ msgstr ""
183
+
184
+ #: plugin-fw/lib/yit-cpt-unlimited.php:628
185
+ msgid "All Categories"
186
+ msgstr ""
187
+
188
+ #: plugin-fw/lib/yit-cpt-unlimited.php:629
189
+ msgid "Parent Category"
190
+ msgstr ""
191
+
192
+ #: plugin-fw/lib/yit-cpt-unlimited.php:630
193
+ msgid "Parent Category:"
194
+ msgstr ""
195
+
196
+ #: plugin-fw/lib/yit-cpt-unlimited.php:631
197
+ msgid "Edit Category"
198
+ msgstr ""
199
+
200
+ #: plugin-fw/lib/yit-cpt-unlimited.php:632
201
+ msgid "Update Category"
202
+ msgstr ""
203
+
204
+ #: plugin-fw/lib/yit-cpt-unlimited.php:633
205
+ msgid "Add New Category"
206
+ msgstr ""
207
+
208
+ #: plugin-fw/lib/yit-cpt-unlimited.php:634
209
+ msgid "New Category Name"
210
+ msgstr ""
211
+
212
+ #: plugin-fw/lib/yit-cpt-unlimited.php:635
213
+ msgid "Category"
214
+ msgstr ""
215
+
216
+ #: plugin-fw/lib/yit-cpt-unlimited.php:724
217
+ msgid "Categories"
218
+ msgstr ""
219
+
220
+ #: plugin-fw/lib/yit-cpt-unlimited.php:1042
221
+ #, php-format
222
+ msgid "%s Settings"
223
+ msgstr ""
224
+
225
+ #: plugin-fw/lib/yit-cpt-unlimited.php:1048
226
+ #: plugin-fw/lib/yit-cpt-unlimited.php:1196
227
+ #: plugin-fw/lib/yit-cpt-unlimited.php:1202
228
+ #: plugin-fw/lib/yit-plugin-panel.php:64
229
+ msgid "Settings"
230
+ msgstr ""
231
+
232
+ #: plugin-fw/lib/yit-cpt-unlimited.php:1051
233
+ msgid "Type"
234
+ msgstr ""
235
+
236
+ #: plugin-fw/lib/yit-cpt-unlimited.php:1052
237
+ msgid "Layout for this "
238
+ msgstr ""
239
+
240
+ #: plugin-fw/lib/yit-cpt-unlimited.php:1058
241
+ msgid "Rewrite"
242
+ msgstr ""
243
+
244
+ #: plugin-fw/lib/yit-cpt-unlimited.php:1059
245
+ msgid ""
246
+ "Univocal identification name in the URL for each product (slug from "
247
+ "post if empty)"
248
+ msgstr ""
249
+
250
+ #: plugin-fw/lib/yit-cpt-unlimited.php:1064
251
+ msgid "Label in Singular"
252
+ msgstr ""
253
+
254
+ #: plugin-fw/lib/yit-cpt-unlimited.php:1065
255
+ msgid "Set a label in singular (title of portfolio if empty)"
256
+ msgstr ""
257
+
258
+ #: plugin-fw/lib/yit-cpt-unlimited.php:1070
259
+ msgid "Label in Plural"
260
+ msgstr ""
261
+
262
+ #: plugin-fw/lib/yit-cpt-unlimited.php:1071
263
+ msgid "Set a label in plural (title of portfolio if empty)"
264
+ msgstr ""
265
+
266
+ #: plugin-fw/lib/yit-cpt-unlimited.php:1076
267
+ msgid "Taxonomy"
268
+ msgstr ""
269
+
270
+ #: plugin-fw/lib/yit-cpt-unlimited.php:1077
271
+ msgid ""
272
+ "If you want to use categories in the portfolio, set a name for "
273
+ "taxonomy. Name should be a slug (must not contain capital letters nor "
274
+ "spaces) and must not be more than 32 characters long (database "
275
+ "structure restriction)."
276
+ msgstr ""
277
+
278
+ #: plugin-fw/lib/yit-cpt-unlimited.php:1082
279
+ msgid "Taxonomy Rewrite"
280
+ msgstr ""
281
+
282
+ #: plugin-fw/lib/yit-cpt-unlimited.php:1083
283
+ msgid "Set univocal name for each category page URL."
284
+ msgstr ""
285
+
286
+ #: plugin-fw/lib/yit-cpt-unlimited.php:1088
287
+ msgid "Single layout"
288
+ msgstr ""
289
+
290
+ #: plugin-fw/lib/yit-cpt-unlimited.php:1089
291
+ msgid "Layout for single page of this portfolio"
292
+ msgstr ""
293
+
294
+ #: plugin-fw/lib/yit-cpt-unlimited.php:1130
295
+ msgid "layout settings"
296
+ msgstr ""
297
+
298
+ #: plugin-fw/lib/yit-cpt-unlimited.php:1222
299
+ #: plugin-fw/lib/yit-cpt-unlimited.php:1235
300
+ msgid "Quick links"
301
+ msgstr ""
302
+
303
+ #: plugin-fw/lib/yit-cpt-unlimited.php:1475
304
+ #, php-format
305
+ msgid "Show frontend of the %s"
306
+ msgstr ""
307
+
308
+ #: plugin-fw/lib/yit-cpt-unlimited.php:1482
309
+ #: plugin-fw/templates/metaboxes/types/customtabs.php:46
310
+ #: plugin-fw/templates/metaboxes/types/customtabs.php:90
311
+ msgid "Name"
312
+ msgstr ""
313
+
314
+ #: plugin-fw/lib/yit-cpt-unlimited.php:1631
315
+ #, php-format
316
+ msgid "Add %s from images"
317
+ msgstr ""
318
+
319
+ #: plugin-fw/lib/yit-cpt-unlimited.php:1633
320
+ msgid "Upload multiple files"
321
+ msgstr ""
322
+
323
+ #: plugin-fw/lib/yit-plugin-panel-wc.php:295
324
+ msgid "The changes you have made will be lost if you leave this page."
325
+ msgstr ""
326
+
327
+ #: plugin-fw/lib/yit-plugin-panel.php:63
328
+ msgid "Plugin Settings"
329
+ msgstr ""
330
+
331
+ #: plugin-fw/lib/yit-plugin-panel.php:96
332
+ #: plugin-fw/lib/yit-plugin-subpanel.php:101
333
+ msgid "YIT Plugins"
334
+ msgstr ""
335
+
336
+ #: plugin-fw/lib/yit-plugin-panel.php:293
337
+ #: plugin-fw/lib/yit-plugin-subpanel.php:143
338
+ #: plugin-fw/templates/panel/woocommerce/woocommerce-form.php:5
339
+ msgid "Save Changes"
340
+ msgstr ""
341
+
342
+ #: plugin-fw/lib/yit-plugin-panel.php:296
343
+ #: plugin-fw/templates/panel/woocommerce/woocommerce-form.php:8
344
+ msgid ""
345
+ "If you continue with this action, you will reset all options in this "
346
+ "page."
347
+ msgstr ""
348
+
349
+ #: plugin-fw/lib/yit-plugin-panel.php:298
350
+ #: plugin-fw/lib/yit-plugin-subpanel.php:148
351
+ msgid "Reset to default"
352
+ msgstr ""
353
+
354
+ #: plugin-fw/lib/yit-plugin-panel.php:298
355
+ #: plugin-fw/lib/yit-plugin-subpanel.php:148
356
+ #: plugin-fw/templates/panel/woocommerce/woocommerce-form.php:10
357
+ msgid "Are you sure?"
358
+ msgstr ""
359
+
360
+ #: plugin-fw/lib/yit-plugin-panel.php:432
361
+ msgid ""
362
+ "The element you have entered already exists. Please, enter another "
363
+ "name."
364
+ msgstr ""
365
+
366
+ #: plugin-fw/lib/yit-plugin-panel.php:433
367
+ msgid "Settings saved"
368
+ msgstr ""
369
+
370
+ #: plugin-fw/lib/yit-plugin-panel.php:434
371
+ msgid "Settings reset"
372
+ msgstr ""
373
+
374
+ #: plugin-fw/lib/yit-plugin-panel.php:435
375
+ msgid "Element deleted correctly."
376
+ msgstr ""
377
+
378
+ #: plugin-fw/lib/yit-plugin-panel.php:436
379
+ #: plugin-fw/lib/yit-plugin-panel.php:437
380
+ msgid "Element updated correctly."
381
+ msgstr ""
382
+
383
+ #: plugin-fw/lib/yit-plugin-panel.php:438
384
+ msgid "Database imported correctly."
385
+ msgstr ""
386
+
387
+ #: plugin-fw/lib/yit-plugin-panel.php:439
388
+ msgid "An error has occurred during import. Please try again."
389
+ msgstr ""
390
+
391
+ #: plugin-fw/lib/yit-plugin-panel.php:440
392
+ msgid "The added file is not valid."
393
+ msgstr ""
394
+
395
+ #: plugin-fw/lib/yit-plugin-panel.php:441
396
+ msgid "Sorry, import is disabled."
397
+ msgstr ""
398
+
399
+ #: plugin-fw/lib/yit-plugin-panel.php:442
400
+ msgid "Sorting successful."
401
+ msgstr ""
402
+
403
+ #: plugin-fw/lib/yit-plugin-subpanel.php:146
404
+ msgid ""
405
+ "If you continue with this action, you will reset all the options in "
406
+ "this page."
407
+ msgstr ""
408
+
409
+ #: plugin-fw/lib/yit-pointers.php:70
410
+ msgid "Plugins Activated"
411
+ msgstr ""
412
+
413
+ #: plugin-fw/lib/yit-pointers.php:71
414
+ msgid ""
415
+ "From now on, you can find all plugin options in YIT Plugin menu.\n"
416
+ " For each plugin installed, "
417
+ "customization settings will be available as a new entry in YIT Plugin "
418
+ "menu."
419
+ msgstr ""
420
+
421
+ #: plugin-fw/lib/yit-pointers.php:73 plugin-fw/lib/yit-pointers.php:89
422
+ msgid "Discover all our plugins available on:"
423
+ msgstr ""
424
+
425
+ #: plugin-fw/lib/yit-pointers.php:74 plugin-fw/lib/yit-pointers.php:90
426
+ msgid "and"
427
+ msgstr ""
428
+
429
+ #: plugin-fw/lib/yit-pointers.php:84
430
+ msgid "Plugins Upgraded"
431
+ msgstr ""
432
+
433
+ #: plugin-fw/lib/yit-pointers.php:85
434
+ msgid ""
435
+ "From now on, you can find all options of your plugins in YIT Plugin "
436
+ "menu.\n"
437
+ " Any time one of our plugins is "
438
+ "updated, a new entry will be added to this menu.\n"
439
+ " For example, after the update, "
440
+ "plugin options (such as for YITH WooCommerce Wishlist, YITH "
441
+ "WooCommerce Ajax Search, etc.)\n"
442
+ " will be moved from previous "
443
+ "location to YIT Plugin tab."
444
+ msgstr ""
445
+
446
+ #: plugin-fw/lib/yit-upgrade.php:123
447
+ msgid "There is a new version of %plugin_name% available."
448
+ msgstr ""
449
+
450
+ #: plugin-fw/lib/yit-upgrade.php:124
451
+ msgid "View version %latest% details."
452
+ msgstr ""
453
+
454
+ #: plugin-fw/lib/yit-upgrade.php:125
455
+ msgid "Automatic update is unavailable for this plugin,"
456
+ msgstr ""
457
+
458
+ #: plugin-fw/lib/yit-upgrade.php:126
459
+ msgid ""
460
+ "please <a href=\"%activate_link%\">activate</a> your copy of "
461
+ "%plugin_name%."
462
+ msgstr ""
463
+
464
+ #: plugin-fw/lib/yit-upgrade.php:127
465
+ msgid "Update now."
466
+ msgstr ""
467
+
468
+ #: plugin-fw/lib/yit-upgrade.php:230
469
+ msgid "Yithemes Repository"
470
+ msgstr ""
471
+
472
+ #: plugin-fw/lib/yit-upgrade.php:264
473
+ msgid "Invalid URL Provided."
474
+ msgstr ""
475
+
476
+ #: plugin-fw/lib/yit-upgrade.php:277
477
+ msgid "Could not create Temporary file."
478
+ msgstr ""
479
+
480
+ #: plugin-fw/lib/yit-upgrade.php:419
481
+ #, php-format
482
+ msgid ""
483
+ "There is a new version of %1$s available. <a href=\"%2$s\" class="
484
+ "\"thickbox yit-changelog-button\" title=\"%3$s\">View version %4$s "
485
+ "details</a>."
486
+ msgstr ""
487
+
488
+ #: plugin-fw/lib/yit-upgrade.php:421
489
+ #, php-format
490
+ msgid ""
491
+ "There is a new version of %1$s available. <a href=\"%2$s\" class="
492
+ "\"thickbox yit-changelog-button\" title=\"%3$s\">View version %4$s "
493
+ "details</a>. <em>You have to activate the plugin on a single site of "
494
+ "the network to benefit from automatic updates.</em>"
495
+ msgstr ""
496
+
497
+ #: plugin-fw/lib/yit-upgrade.php:423
498
+ #, php-format
499
+ msgid ""
500
+ "There is a new version of %1$s available. <a href=\"%2$s\" class="
501
+ "\"thickbox yit-changelog-button\" title=\"%3$s\">View version %4$s "
502
+ "details</a>. <em>Automatic update is unavailable for this plugin, "
503
+ "please <a href=\"%5$s\" title=\"Licence activation\">activate</a> your "
504
+ "copy of %6s.</em>"
505
+ msgstr ""
506
+
507
+ #: plugin-fw/lib/yit-upgrade.php:425
508
+ #, php-format
509
+ msgid ""
510
+ "There is a new version of %1$s available. <a href=\"%2$s\" class="
511
+ "\"thickbox yit-changelog-button\" title=\"%3$s\">View version %4$s "
512
+ "details</a> or <a href=\"%5$s\">update now</a>."
513
+ msgstr ""
514
+
515
+ #: plugin-fw/lib/yit-upgrade.php:498
516
+ msgid "You can't update the plugins for this site."
517
+ msgstr ""
518
+
519
+ #: plugin-fw/lib/yit-upgrade.php:502
520
+ msgid ""
521
+ "You do not have sufficient permissions to update the plugins for this "
522
+ "site."
523
+ msgstr ""
524
+
525
+ #: plugin-fw/lib/yit-upgrade.php:509
526
+ msgid "Update Plugin"
527
+ msgstr ""
528
+
529
+ #: plugin-fw/licence/lib/yit-licence.php:161
530
+ #, php-format
531
+ msgctxt "%s = field name"
532
+ msgid "%s field cannot be empty"
533
+ msgstr ""
534
+
535
+ #: plugin-fw/licence/lib/yit-licence.php:162
536
+ #, php-format
537
+ msgid "%s and %s fields cannot be empty"
538
+ msgstr ""
539
+
540
+ #: plugin-fw/licence/lib/yit-licence.php:163
541
+ msgid ""
542
+ "Unable to contact the remote server, please try again later. Thanks!"
543
+ msgstr ""
544
+
545
+ #: plugin-fw/licence/lib/yit-licence.php:548
546
+ msgid "Invalid Request"
547
+ msgstr ""
548
+
549
+ #: plugin-fw/licence/lib/yit-licence.php:549
550
+ msgid "Invalid licence key"
551
  msgstr ""
552
 
553
+ #: plugin-fw/licence/lib/yit-licence.php:550
554
+ msgid "Software has been deactivated"
 
555
  msgstr ""
556
 
557
+ #: plugin-fw/licence/lib/yit-licence.php:551
558
+ msgid "Maximum number of activations exceeded"
559
  msgstr ""
560
 
561
+ #: plugin-fw/licence/lib/yit-licence.php:552
562
+ msgid "Invalid instance ID"
563
+ msgstr ""
564
+
565
+ #: plugin-fw/licence/lib/yit-licence.php:553
566
+ msgid "Invalid security key"
567
+ msgstr ""
568
+
569
+ #: plugin-fw/licence/lib/yit-licence.php:554
570
+ msgid "Licence key has expired"
571
+ msgstr ""
572
+
573
+ #: plugin-fw/licence/lib/yit-licence.php:555
574
+ msgid "Licence key has been banned"
575
+ msgstr ""
576
+
577
+ #: plugin-fw/licence/lib/yit-plugin-licence.php:68
578
+ #: plugin-fw/licence/lib/yit-plugin-licence.php:69
579
+ #: plugin-fw/licence/lib/yit-theme-licence.php:64
580
+ #: plugin-fw/licence/lib/yit-theme-licence.php:65
581
+ #: plugin-fw/licence/lib/yit-theme-licence.php:107
582
+ #: plugin-fw/licence/lib/yit-theme-licence.php:108
583
+ msgid "Licence Activation"
584
+ msgstr ""
585
+
586
+ #: plugin-fw/licence/lib/yit-theme-licence.php:115
587
+ #: plugin-fw/licence/lib/yit-theme-licence.php:116
588
+ #, php-format
589
+ msgid "%s"
590
+ msgstr ""
591
+
592
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:19
593
+ msgid "Yithemes Licence Activation"
594
+ msgstr ""
595
+
596
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:23
597
+ msgid ""
598
+ "I cannot find the license key for activating the theme I have bought "
599
+ "some time ago. Where can I find it?"
600
+ msgstr ""
601
+
602
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:26
603
+ msgid ""
604
+ "If you have purchased one of our products before 27 January 2015, you "
605
+ "can benefit from support and updates (the services offered with the "
606
+ "license)\n"
607
+ " until 27 January 2016 and you do not have to purchase it "
608
+ "again to get a new license key, because, before this date, your "
609
+ "license used to be activated automatically by our system.\n"
610
+ " After 27 January 2016, instead, if you want to benefit "
611
+ "from support and updates you have to buy a new license and activate it "
612
+ "through the license key you will be\n"
613
+ " provided with and that you can find in your YIThemes "
614
+ "account, in section \"My licenses\"."
615
+ msgstr ""
616
+
617
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:37
618
+ msgid ""
619
+ "Have you updated your licenses? Have you asked for an extension? "
620
+ "Update information concerning your products."
621
+ msgstr ""
622
+
623
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:39
624
+ msgid "Update licence information"
625
+ msgstr ""
626
+
627
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:49
628
+ msgid "Products to be activated"
629
+ msgstr ""
630
+
631
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:68
632
+ msgid "Activate"
633
+ msgstr ""
634
+
635
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:87
636
+ msgid "Activated"
637
+ msgstr ""
638
+
639
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:91
640
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:123
641
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:147
642
+ msgid "Product Name"
643
+ msgstr ""
644
+
645
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:92
646
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:124
647
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:148
648
+ #: plugin-fw/templates/metaboxes/types/contactform.php:148
649
+ #: plugin-fw/templates/metaboxes/types/contactform.php:340
650
+ msgid "Email"
651
+ msgstr ""
652
+
653
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:93
654
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:125
655
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:149
656
+ msgid "Licence Key"
657
+ msgstr ""
658
+
659
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:94
660
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:150
661
+ msgid "Expires"
662
+ msgstr ""
663
+
664
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:95
665
+ msgid "Remaining"
666
+ msgstr ""
667
+
668
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:96
669
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:109
670
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:151
671
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:161
672
+ msgid "Renew"
673
+ msgstr ""
674
+
675
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:107
676
+ #, php-format
677
+ msgid "%1s out of %2s"
678
+ msgstr ""
679
+
680
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:119
681
+ msgid "Banned"
682
+ msgstr ""
683
+
684
+ #: plugin-fw/licence/templates/panel/activation/activation-panel.php:143
685
+ msgid "Expired"
686
+ msgstr ""
687
+
688
+ #: plugin-fw/templates/metaboxes/types/ajax-products.php:23
689
+ msgid "Search for a product"
690
+ msgstr ""
691
+
692
+ #: plugin-fw/templates/metaboxes/types/categories.php:36
693
+ msgid "No categories."
694
+ msgstr ""
695
+
696
+ #: plugin-fw/templates/metaboxes/types/categories.php:42
697
+ msgid "+ Add New Category"
698
+ msgstr ""
699
+
700
+ #: plugin-fw/templates/metaboxes/types/contactform.php:7
701
+ msgid "Text Input"
702
+ msgstr ""
703
+
704
+ #: plugin-fw/templates/metaboxes/types/contactform.php:8
705
+ msgid "Checkbox"
706
+ msgstr ""
707
+
708
+ #: plugin-fw/templates/metaboxes/types/contactform.php:9
709
+ msgid "Select"
710
+ msgstr ""
711
+
712
+ #: plugin-fw/templates/metaboxes/types/contactform.php:10
713
+ msgid "Textarea"
714
+ msgstr ""
715
+
716
+ #: plugin-fw/templates/metaboxes/types/contactform.php:11
717
+ msgid "Radio Input"
718
+ msgstr ""
719
+
720
+ #: plugin-fw/templates/metaboxes/types/contactform.php:12
721
+ msgid "Password Field"
722
+ msgstr ""
723
+
724
+ #: plugin-fw/templates/metaboxes/types/contactform.php:13
725
+ msgid "File Upload"
726
+ msgstr ""
727
+
728
+ #: plugin-fw/templates/metaboxes/types/contactform.php:47
729
+ msgid "Theme Icon"
730
+ msgstr ""
731
+
732
+ #: plugin-fw/templates/metaboxes/types/contactform.php:48
733
+ msgid "Custom Icon"
734
+ msgstr ""
735
+
736
+ #: plugin-fw/templates/metaboxes/types/contactform.php:49
737
+ #: plugin-fw/templates/metaboxes/types/responsivesliders.php:24
738
+ msgid "None"
739
+ msgstr ""
740
+
741
+ #: plugin-fw/templates/metaboxes/types/contactform.php:60
742
+ msgid "Add field"
743
+ msgstr ""
744
+
745
+ #: plugin-fw/templates/metaboxes/types/contactform.php:69
746
+ #: plugin-fw/templates/metaboxes/types/contactform.php:261
747
+ #: plugin-fw/templates/metaboxes/types/customtabs.php:37
748
+ #: plugin-fw/templates/metaboxes/types/customtabs.php:82
749
+ msgid "Remove"
750
+ msgstr ""
751
+
752
+ #: plugin-fw/templates/metaboxes/types/contactform.php:70
753
+ #: plugin-fw/templates/metaboxes/types/contactform.php:262
754
+ msgid "Click to toggle"
755
+ msgstr ""
756
+
757
+ #: plugin-fw/templates/metaboxes/types/contactform.php:77
758
+ #: plugin-fw/templates/metaboxes/types/contactform.php:269
759
+ msgid "Field Title"
760
+ msgstr ""
761
+
762
+ #: plugin-fw/templates/metaboxes/types/contactform.php:81
763
+ #: plugin-fw/templates/metaboxes/types/contactform.php:273
764
+ msgid "Insert the title for the field."
765
+ msgstr ""
766
+
767
+ #: plugin-fw/templates/metaboxes/types/contactform.php:86
768
+ #: plugin-fw/templates/metaboxes/types/contactform.php:278
769
+ msgid "Data Name"
770
+ msgstr ""
771
+
772
+ #: plugin-fw/templates/metaboxes/types/contactform.php:90
773
+ #: plugin-fw/templates/metaboxes/types/contactform.php:282
774
+ msgid ""
775
+ "REQUIRED: Field identification name to be entered into email body. "
776
+ "<strong>Note:</strong>Use only lowercase characters and underscores."
777
+ msgstr ""
778
+
779
+ #: plugin-fw/templates/metaboxes/types/contactform.php:95
780
+ #: plugin-fw/templates/metaboxes/types/contactform.php:287
781
+ msgid "Field Type"
782
+ msgstr ""
783
+
784
+ #: plugin-fw/templates/metaboxes/types/contactform.php:103
785
+ #: plugin-fw/templates/metaboxes/types/contactform.php:295
786
+ msgid "Select the type for this field."
787
+ msgstr ""
788
+
789
+ #: plugin-fw/templates/metaboxes/types/contactform.php:108
790
+ #: plugin-fw/templates/metaboxes/types/contactform.php:300
791
+ msgid "Checked"
792
+ msgstr ""
793
+
794
+ #: plugin-fw/templates/metaboxes/types/contactform.php:112
795
+ #: plugin-fw/templates/metaboxes/types/contactform.php:304
796
+ msgid ""
797
+ "Select this option if you want this field appears as already checked."
798
+ msgstr ""
799
+
800
+ #: plugin-fw/templates/metaboxes/types/contactform.php:117
801
+ #: plugin-fw/templates/metaboxes/types/contactform.php:309
802
+ msgid "Add options "
803
+ msgstr ""
804
+
805
+ #: plugin-fw/templates/metaboxes/types/contactform.php:118
806
+ #: plugin-fw/templates/metaboxes/types/contactform.php:310
807
+ msgid "Add option"
808
+ msgstr ""
809
+
810
+ #: plugin-fw/templates/metaboxes/types/contactform.php:121
811
+ #: plugin-fw/templates/metaboxes/types/contactform.php:313
812
+ #: plugin-fw/templates/metaboxes/types/contactform.php:436
813
+ msgid "Selected"
814
+ msgstr ""
815
+
816
+ #: plugin-fw/templates/metaboxes/types/contactform.php:124
817
+ #: plugin-fw/templates/metaboxes/types/contactform.php:316
818
+ #: plugin-fw/templates/metaboxes/types/contactform.php:436
819
+ msgid "Delete option"
820
+ msgstr ""
821
+
822
+ #: plugin-fw/templates/metaboxes/types/contactform.php:130
823
+ #: plugin-fw/templates/metaboxes/types/contactform.php:322
824
+ msgid "Error Message"
825
+ msgstr ""
826
+
827
+ #: plugin-fw/templates/metaboxes/types/contactform.php:134
828
+ #: plugin-fw/templates/metaboxes/types/contactform.php:326
829
+ msgid "Insert the error message for validation."
830
+ msgstr ""
831
+
832
+ #: plugin-fw/templates/metaboxes/types/contactform.php:139
833
+ #: plugin-fw/templates/metaboxes/types/contactform.php:331
834
+ msgid "Required"
835
+ msgstr ""
836
+
837
+ #: plugin-fw/templates/metaboxes/types/contactform.php:143
838
+ #: plugin-fw/templates/metaboxes/types/contactform.php:335
839
+ msgid "Select this option if it must be required."
840
+ msgstr ""
841
+
842
+ #: plugin-fw/templates/metaboxes/types/contactform.php:152
843
+ #: plugin-fw/templates/metaboxes/types/contactform.php:344
844
+ msgid "Select this option if the email must be valid."
845
+ msgstr ""
846
+
847
+ #: plugin-fw/templates/metaboxes/types/contactform.php:157
848
+ #: plugin-fw/templates/metaboxes/types/contactform.php:349
849
+ msgid "Reply To"
850
+ msgstr ""
851
+
852
+ #: plugin-fw/templates/metaboxes/types/contactform.php:161
853
+ #: plugin-fw/templates/metaboxes/types/contactform.php:353
854
+ msgid "Select this if it is the email you can reply to."
855
+ msgstr ""
856
+
857
+ #: plugin-fw/templates/metaboxes/types/contactform.php:166
858
+ #: plugin-fw/templates/metaboxes/types/contactform.php:358
859
+ msgid "Class"
860
+ msgstr ""
861
+
862
+ #: plugin-fw/templates/metaboxes/types/contactform.php:170
863
+ #: plugin-fw/templates/metaboxes/types/contactform.php:362
864
+ msgid ""
865
+ "Insert additional class(es) (separated by commas) for more "
866
+ "personalization."
867
+ msgstr ""
868
+
869
+ #: plugin-fw/templates/metaboxes/types/contactform.php:175
870
+ #: plugin-fw/templates/metaboxes/types/contactform.php:367
871
+ msgid "Icon"
872
+ msgstr ""
873
+
874
+ #: plugin-fw/templates/metaboxes/types/contactform.php:203
875
+ #: plugin-fw/templates/metaboxes/types/contactform.php:391
876
+ #: plugin-fw/templates/metaboxes/types/icon-list.php:69
877
+ #: plugin-fw/templates/metaboxes/types/select-icon.php:33
878
+ #: plugin-fw/templates/metaboxes/types/upload.php:21
879
+ #: plugin-fw/templates/panel/types/upload.php:31
880
+ #: plugin-fw/templates/panel/woocommerce/woocommerce-upload.php:35
881
+ msgid "Upload"
882
+ msgstr ""
883
+
884
+ #: plugin-fw/templates/metaboxes/types/contactform.php:209
885
+ #: plugin-fw/templates/metaboxes/types/contactform.php:397
886
+ #: plugin-fw/templates/metaboxes/types/icon-list.php:75
887
+ #: plugin-fw/templates/metaboxes/types/select-icon.php:39
888
+ msgid "Image preview"
889
+ msgstr ""
890
+
891
+ #: plugin-fw/templates/metaboxes/types/contactform.php:217
892
+ #: plugin-fw/templates/metaboxes/types/contactform.php:405
893
+ msgid "Insert an icon for more personalization."
894
+ msgstr ""
895
+
896
+ #: plugin-fw/templates/metaboxes/types/contactform.php:222
897
+ #: plugin-fw/templates/metaboxes/types/contactform.php:409
898
+ msgid "Width"
899
+ msgstr ""
900
+
901
+ #: plugin-fw/templates/metaboxes/types/contactform.php:247
902
+ #: plugin-fw/templates/metaboxes/types/contactform.php:421
903
+ msgid "Set field length."
904
+ msgstr ""
905
+
906
+ #: plugin-fw/templates/metaboxes/types/customtabs.php:28
907
+ msgid "Close all"
908
+ msgstr ""
909
+
910
+ #: plugin-fw/templates/metaboxes/types/customtabs.php:28
911
+ msgid "Expand all"
912
+ msgstr ""
913
+
914
+ #: plugin-fw/templates/metaboxes/types/customtabs.php:52
915
+ #: plugin-fw/templates/metaboxes/types/customtabs.php:95
916
+ msgid "Value"
917
+ msgstr ""
918
+
919
+ #: plugin-fw/templates/metaboxes/types/customtabs.php:53
920
+ #: plugin-fw/templates/metaboxes/types/customtabs.php:96
921
+ msgid "Content of the tab. (HTML is supported)"
922
+ msgstr ""
923
+
924
+ #: plugin-fw/templates/metaboxes/types/customtabs.php:65
925
+ msgid "Add custom product tab"
926
+ msgstr ""
927
+
928
+ #: plugin-fw/templates/metaboxes/types/customtabs.php:107
929
+ msgid "Do you want to remove the custom tab?"
930
+ msgstr ""
931
+
932
+ #: plugin-fw/templates/metaboxes/types/icon-list.php:89
933
+ #, php-format
934
+ msgid "(Default: %s <img src=\"%s\"/>)"
935
+ msgstr ""
936
+
937
+ #: plugin-fw/templates/metaboxes/types/icon-list.php:91
938
+ #, php-format
939
+ msgid "(Default: <i %s></i> )"
940
+ msgstr ""
941
+
942
+ #: plugin-fw/templates/metaboxes/types/image-gallery.php:40
943
+ #: plugin-fw/templates/metaboxes/types/image-gallery.php:45
944
+ #: plugin-fw/templates/metaboxes/types/images.php:38
945
+ #: plugin-fw/templates/metaboxes/types/images.php:64
946
+ msgid "Delete image"
947
+ msgstr ""
948
+
949
+ #: plugin-fw/templates/metaboxes/types/image-gallery.php:45
950
+ msgid "Add Images to Gallery"
951
+ msgstr ""
952
+
953
+ #: plugin-fw/templates/metaboxes/types/image-gallery.php:45
954
+ msgid "Add to gallery"
955
+ msgstr ""
956
+
957
+ #: plugin-fw/templates/metaboxes/types/image-gallery.php:45
958
+ msgid "Add images"
959
+ msgstr ""
960
+
961
+ #: plugin-fw/templates/metaboxes/types/image-gallery.php:45
962
+ msgid "Delete"
963
+ msgstr ""
964
+
965
+ #: plugin-fw/templates/metaboxes/types/images.php:42
966
+ msgid "Upload new images"
967
+ msgstr ""
968
+
969
+ #: plugin-fw/templates/metaboxes/types/images.php:75
970
+ msgid "Are you sure you want to remove this image?"
971
+ msgstr ""
972
+
973
+ #: plugin-fw/templates/metaboxes/types/sidebar-layout.php:25
974
+ #: plugin-fw/templates/metaboxes/types/sidebars.php:36
975
+ msgid "Left sidebar"
976
+ msgstr ""
977
+
978
+ #: plugin-fw/templates/metaboxes/types/sidebar-layout.php:28
979
+ #: plugin-fw/templates/metaboxes/types/sidebars.php:42
980
+ #: plugin-fw/templates/metaboxes/types/sidebars.php:45
981
+ msgid "No sidebar"
982
+ msgstr ""
983
+
984
+ #: plugin-fw/templates/metaboxes/types/sidebar-layout.php:31
985
+ #: plugin-fw/templates/metaboxes/types/sidebars.php:39
986
+ msgid "Right sidebar"
987
+ msgstr ""
988
+
989
+ #: plugin-fw/templates/metaboxes/types/sidebar-layout.php:34
990
+ #: plugin-fw/templates/metaboxes/types/sidebars.php:53
991
+ #: plugin-fw/templates/metaboxes/types/sidebars.php:64
992
+ msgid "Choose a sidebar"
993
+ msgstr ""
994
+
995
+ #: plugin-fw/templates/metaboxes/types/sidebars.php:51
996
+ msgid "Left Sidebar"
997
+ msgstr ""
998
+
999
+ #: plugin-fw/templates/metaboxes/types/sidebars.php:62
1000
+ msgid "Right Sidebar"
1001
+ msgstr ""
1002
+
1003
+ #: plugin-fw/templates/metaboxes/types/typography.php:42
1004
+ msgid "px"
1005
+ msgstr ""
1006
+
1007
+ #: plugin-fw/templates/metaboxes/types/typography.php:43
1008
+ msgid "em"
1009
+ msgstr ""
1010
+
1011
+ #: plugin-fw/templates/metaboxes/types/typography.php:44
1012
+ msgid "pt"
1013
+ msgstr ""
1014
+
1015
+ #: plugin-fw/templates/metaboxes/types/typography.php:45
1016
+ msgid "rem"
1017
+ msgstr ""
1018
+
1019
+ #: plugin-fw/templates/metaboxes/types/typography.php:59
1020
+ #: plugin-fw/templates/metaboxes/types/typography.php:153
1021
+ #: plugin-fw/templates/metaboxes/types/typography.php:217
1022
+ msgid "Web fonts"
1023
+ msgstr ""
1024
+
1025
+ #: plugin-fw/templates/metaboxes/types/typography.php:71
1026
+ msgid "Google fonts"
1027
+ msgstr ""
1028
+
1029
+ #: plugin-fw/templates/metaboxes/types/typography.php:96
1030
+ msgid "Regular"
1031
+ msgstr ""
1032
+
1033
+ #: plugin-fw/templates/metaboxes/types/typography.php:97
1034
+ msgid "Bold"
1035
+ msgstr ""
1036
+
1037
+ #: plugin-fw/templates/metaboxes/types/typography.php:98
1038
+ msgid "Extra bold"
1039
+ msgstr ""
1040
+
1041
+ #: plugin-fw/templates/metaboxes/types/typography.php:99
1042
+ msgid "Italic"
1043
+ msgstr ""
1044
+
1045
+ #: plugin-fw/templates/metaboxes/types/typography.php:100
1046
+ msgid "Italic bold"
1047
+ msgstr ""
1048
+
1049
+ #: plugin-fw/templates/panel/woocommerce/woocommerce-form.php:10
1050
+ msgid "Reset Defaults"
1051
+ msgstr ""
1052
+
1053
+ #: templates/admin/premium.php:207 templates/admin/premium.php:324
1054
+ #, php-format
1055
+ msgid ""
1056
+ "Upgrade to %1$spremium version%2$s of %1$sYITH WooCommerce Ajax "
1057
+ "Product Filter%2$s to benefit from all features!"
1058
+ msgstr ""
1059
+
1060
+ #: templates/admin/premium.php:210 templates/admin/premium.php:327
1061
+ msgid "UPGRADE"
1062
+ msgstr ""
1063
+
1064
+ #: templates/admin/premium.php:211 templates/admin/premium.php:328
1065
+ msgid "to the premium version"
1066
+ msgstr ""
1067
+
1068
+ #: templates/admin/premium.php:217
1069
+ msgid "Premium Features"
1070
+ msgstr ""
1071
+
1072
+ #: templates/admin/premium.php:225
1073
+ msgid "Two more layouts"
1074
+ msgstr ""
1075
+
1076
+ #: templates/admin/premium.php:228
1077
+ #, php-format
1078
+ msgid ""
1079
+ "The YITH WooCommerce Ajax product Filter widget get richer with 2 new "
1080
+ "layouts to filter the products of your shop.\n"
1081
+ " %1$sBicolor%2$s: the perfect choice for those "
1082
+ "attributes related to two different colors at the same time (white/"
1083
+ "black), for a simple visual impact for the final user. Pick the %1$sTag"
1084
+ "%2$s typology, on the contrary, if you want to filter your products by "
1085
+ "product tag.\n"
1086
+ " And if you are using also the %1$sYITH WooCommerce "
1087
+ "Brand Add-On%2$s plugin, you will be able to offer the freedom to "
1088
+ "filter your shop products by brands thanks to the ajax technology.\n"
1089
+ " "
1090
+ msgstr ""
1091
+
1092
+ #: templates/admin/premium.php:241
1093
+ msgid "Price range"
1094
+ msgstr ""
1095
+
1096
+ #: templates/admin/premium.php:244
1097
+ #, php-format
1098
+ msgid ""
1099
+ "One of the most requested filter for e-commerce sites is the one that "
1100
+ "let you select products by their prices.\n"
1101
+ " Thanks to YITH WooCommerce Ajax List Price Filter, "
1102
+ "%1$syou can set unlimited price ranges:%2$s your users will be able to "
1103
+ "filter products selecting on the ranges you have set."
1104
+ msgstr ""
1105
+
1106
+ #: templates/admin/premium.php:261
1107
+ msgid "Ajax Stock/On Sale Filters"
1108
+ msgstr ""
1109
+
1110
+ #: templates/admin/premium.php:264
1111
+ #, php-format
1112
+ msgid ""
1113
+ "A new widget for the premium version of the plugin.\n"
1114
+ " Whoever will surf the pages of your shop will be "
1115
+ "able to display only the products on sale and/or the available ones."
1116
+ "%3$s\n"
1117
+ " %1$sAn additional feature for an e-commerce site "
1118
+ "that is worthy!%2$s"
1119
+ msgstr ""
1120
+
1121
+ #: templates/admin/premium.php:276
1122
+ msgid "Product sorting"
1123
+ msgstr ""
1124
+
1125
+ #: templates/admin/premium.php:279
1126
+ #, php-format
1127
+ msgid ""
1128
+ "With the new %1$sYITH WooCommerce Ajax Sort By%2$s widget, you can "
1129
+ "give your users the freedom to sort products with the ajax "
1130
+ "technology,\n"
1131
+ " without the need to reload the page. Products can "
1132
+ "be sorted by rate, sales, price or publication date."
1133
+ msgstr ""
1134
+
1135
+ #: templates/admin/premium.php:296
1136
+ msgid "Customized loader"
1137
+ msgstr ""
1138
+
1139
+ #: templates/admin/premium.php:299
1140
+ msgid ""
1141
+ "From the plugin option panel, you can choose to upload a new icon for "
1142
+ "your loader: in this way, it will better meet your needs."
1143
+ msgstr ""
1144
+
1145
+ #: templates/admin/premium.php:309
1146
+ msgid "WooCommerce Price Filter"
1147
+ msgstr ""
1148
+
1149
+ #: templates/admin/premium.php:312
1150
+ msgid ""
1151
+ "With the premium version of the plugin, you will also be able to "
1152
+ "customize WooCommerce Price Filter widget, changing the settings you "
1153
+ "can find in the plugin option panel."
1154
+ msgstr ""
1155
+
1156
+ #: widgets/class.yith-wcan-navigation-widget.php:23
1157
+ msgid "Filter the product list without reloading the page"
1158
+ msgstr ""
1159
+
1160
+ #: widgets/class.yith-wcan-navigation-widget.php:262
1161
+ msgid "Filters:"
1162
+ msgstr ""
1163
+
1164
+ #: widgets/class.yith-wcan-navigation-widget.php:806
1165
  msgid "List"
1166
  msgstr ""
1167
 
1168
+ #: widgets/class.yith-wcan-navigation-widget.php:808
 
1169
  msgid "Label"
1170
  msgstr ""
1171
 
1172
+ #: widgets/class.yith-wcan-navigation-widget.php:809
1173
  msgid "Dropdown"
1174
  msgstr ""
1175
 
1176
+ #: widgets/class.yith-wcan-navigation-widget.php:816
 
1177
  #: widgets/class.yith-wcan-reset-navigation-widget.php:89
1178
  msgid "Title"
1179
  msgstr ""
1180
 
1181
+ #: widgets/class.yith-wcan-navigation-widget.php:822
 
1182
  msgid "Type:"
1183
  msgstr ""
1184
 
1185
+ #: widgets/class.yith-wcan-navigation-widget.php:833
 
1186
  msgid "Query Type:"
1187
  msgstr ""
1188
 
1189
+ #: widgets/class.yith-wcan-navigation-widget.php:835
 
1190
  msgid "AND"
1191
  msgstr ""
1192
 
1193
+ #: widgets/class.yith-wcan-navigation-widget.php:836
 
1194
  msgid "OR"
1195
  msgstr ""
1196
 
1197
+ #: widgets/class.yith-wcan-navigation-widget.php:840
 
1198
  msgid "Attribute:"
1199
  msgstr ""
1200
 
1201
+ #: widgets/class.yith-wcan-navigation-widget.php:847
1202
  msgid "Display (default All):"
1203
  msgstr ""
1204
 
1205
+ #: widgets/class.yith-wcan-navigation-widget.php:849
1206
  msgid "All (no hierarchical)"
1207
  msgstr ""
1208
 
1209
+ #: widgets/class.yith-wcan-navigation-widget.php:850
1210
+ msgid "All (hierarchical)"
1211
  msgstr ""
1212
 
1213
+ #: widgets/class.yith-wcan-navigation-widget.php:851
1214
  msgid "Only Parent"
1215
  msgstr ""
1216
 
1217
  #: widgets/class.yith-wcan-reset-navigation-widget.php:23
1218
+ msgid "Reset all filters set by YITH WooCommerce Ajax Product Filter"
1219
  msgstr ""
1220
 
1221
  #: widgets/class.yith-wcan-reset-navigation-widget.php:25
1222
+ msgid "YITH WooCommerce Ajax Reset Filter"
1223
  msgstr ""
1224
 
1225
  #: widgets/class.yith-wcan-reset-navigation-widget.php:82
plugin-fw/languages/yith-plugin-fw-it_IT.mo CHANGED
Binary file
plugin-fw/languages/yith-plugin-fw-it_IT.po CHANGED
@@ -5,14 +5,14 @@ msgstr ""
5
  "Project-Id-Version: YITH Plugin Starter 1.0.0 Plugin FW\n"
6
  "Report-Msgid-Bugs-To: Your Inspiration Themes <plugins@yithemes.com>\n"
7
  "POT-Creation-Date: 2015-05-11 17:13+0100\n"
8
- "PO-Revision-Date: 2015-05-11 17:15+0100\n"
9
  "Last-Translator: \n"
10
  "Language-Team: Your Inspiration Themes <info@yithemes.com>\n"
11
  "Language: en\n"
12
  "MIME-Version: 1.0\n"
13
  "Content-Type: text/plain; charset=utf-8\n"
14
  "Content-Transfer-Encoding: 8bit\n"
15
- "X-Generator: Poedit 1.7.3\n"
16
  "X-Poedit-KeywordsList: __;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;"
17
  "_nx_noop:1,2,3c;esc_attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;"
18
  "esc_html_x:1,2c\n"
@@ -233,7 +233,7 @@ msgstr "Impostazioni plugin"
233
 
234
  #: lib/yit-plugin-panel.php:95 lib/yit-plugin-subpanel.php:101
235
  msgid "YIT Plugins"
236
- msgstr "Plugin YIT"
237
 
238
  #: lib/yit-plugin-panel.php:292 lib/yit-plugin-subpanel.php:142
239
  #: templates/panel/woocommerce/woocommerce-form.php:5
5
  "Project-Id-Version: YITH Plugin Starter 1.0.0 Plugin FW\n"
6
  "Report-Msgid-Bugs-To: Your Inspiration Themes <plugins@yithemes.com>\n"
7
  "POT-Creation-Date: 2015-05-11 17:13+0100\n"
8
+ "PO-Revision-Date: 2015-07-24 16:13+0100\n"
9
  "Last-Translator: \n"
10
  "Language-Team: Your Inspiration Themes <info@yithemes.com>\n"
11
  "Language: en\n"
12
  "MIME-Version: 1.0\n"
13
  "Content-Type: text/plain; charset=utf-8\n"
14
  "Content-Transfer-Encoding: 8bit\n"
15
+ "X-Generator: Poedit 1.8\n"
16
  "X-Poedit-KeywordsList: __;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;"
17
  "_nx_noop:1,2,3c;esc_attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;"
18
  "esc_html_x:1,2c\n"
233
 
234
  #: lib/yit-plugin-panel.php:95 lib/yit-plugin-subpanel.php:101
235
  msgid "YIT Plugins"
236
+ msgstr "YIT Plugins"
237
 
238
  #: lib/yit-plugin-panel.php:292 lib/yit-plugin-subpanel.php:142
239
  #: templates/panel/woocommerce/woocommerce-form.php:5
widgets/class.yith-wcan-navigation-widget.php CHANGED
@@ -12,856 +12,902 @@ if ( ! defined( 'YITH_WCAN' ) ) {
12
  } // Exit if accessed directly
13
 
14
  if ( ! class_exists( 'YITH_WCAN_Navigation_Widget' ) ) {
15
- /**
16
- * YITH WooCommerce Ajax Navigation Widget
17
- *
18
- * @since 1.0.0
19
- */
20
- class YITH_WCAN_Navigation_Widget extends WP_Widget {
21
-
22
- function __construct() {
23
- $widget_ops = array( 'classname' => 'yith-woo-ajax-navigation woocommerce widget_layered_nav', 'description' => __( 'Filter the product list without reloading the page', 'yith_wc_ajxnav' ) );
24
- $control_ops = array( 'width' => 400, 'height' => 350 );
25
- add_action('wp_ajax_yith_wcan_select_type', array( $this, 'ajax_print_terms') );
26
- parent::__construct( 'yith-woo-ajax-navigation', __( 'YITH WooCommerce Ajax Product Filter', 'yith_wc_ajxnav' ), $widget_ops, $control_ops );
27
- }
28
 
 
 
 
 
 
 
29
 
30
- function widget( $args, $instance ) {
31
- global $_chosen_attributes, $woocommerce, $_attributes_array;
32
 
33
- extract( $args );
 
34
 
35
- $attributes_array = ! empty( $_attributes_array ) ? $_attributes_array : array();
36
 
37
- if ( ! is_post_type_archive( 'product' ) && ! is_tax( array_merge( $attributes_array, apply_filters( 'yith_wcan_product_taxonomy_type', array( 'product_cat', 'product_tag' ) ) ) ) ) {
38
- return;
39
- }
40
 
41
- $current_term = $_attributes_array && is_tax( $_attributes_array ) ? get_queried_object()->term_id : '';
42
- $current_tax = $_attributes_array && is_tax( $_attributes_array ) ? get_queried_object()->taxonomy : '';
43
- $title = apply_filters( 'yith_widget_title_ajax_navigation', ( isset( $instance['title'] ) ? $instance['title'] : ''), $instance, $this->id_base );
44
- $query_type = isset( $instance['query_type'] ) ? $instance['query_type'] : 'and';
45
- $display_type = isset( $instance['type'] ) ? $instance['type'] : 'list';
46
- $is_child_class = 'yit-wcan-child-terms';
47
- $is_chosen_class = 'chosen';
48
- $terms_type_list = ( isset( $instance['display'] ) && ( $display_type == 'list' || $display_type == 'select' ) ) ? $instance['display'] : 'all';
49
 
50
- $instance['attribute'] = empty( $instance['attribute'] ) ? '' : $instance['attribute'];
 
 
 
 
 
 
 
51
 
52
- /* FIX TO WOOCOMMERCE 2.1 */
53
- if ( function_exists( 'wc_attribute_taxonomy_name' ) ) {
54
- $taxonomy = wc_attribute_taxonomy_name( $instance['attribute'] );
55
- }
56
- else {
57
- $taxonomy = $woocommerce->attribute_taxonomy_name( $instance['attribute'] );
58
- }
59
 
60
- if ( ! taxonomy_exists( $taxonomy ) ) {
61
- return;
62
- }
 
 
 
 
63
 
64
- $taxonomy = apply_filters( 'yith_wcan_get_terms_params', $taxonomy, $instance, 'taxonomy_name' );
65
- $terms_type_list = apply_filters( 'yith_wcan_get_terms_params', $terms_type_list, $instance, 'terms_type' );
 
66
 
67
- $terms = yit_get_terms( $terms_type_list, $taxonomy, $instance );
 
68
 
69
- if ( count( $terms ) > 0 ) {
70
 
71
- ob_start();
72
 
73
- $found = false;
74
 
75
- echo $before_widget;
76
 
77
- if( ! empty( $title ) ){
78
- echo $before_title . $title . $after_title;
79
- }
80
 
81
- // Force found when option is selected - do not force found on taxonomy attributes
82
- if ( ! $_attributes_array || ! is_tax( $_attributes_array ) ) {
83
- if ( is_array( $_chosen_attributes ) && array_key_exists( $taxonomy, $_chosen_attributes ) ) {
84
- $found = true;
85
  }
86
- }
87
 
88
- if ( in_array( $display_type, apply_filters( 'yith_wcan_display_type_list', array('list') ) ) ) {
89
- // List display
90
- echo "<ul class='yith-wcan-list yith-wcan'>";
 
 
 
91
 
92
- foreach ( $terms as $term ) {
 
 
93
 
94
- // Get count based on current view - uses transients
95
- $transient_name = 'wc_ln_count_' . md5( sanitize_key( $taxonomy ) . sanitize_key( $term->term_id ) );
96
 
97
- //if ( false === ( $_products_in_term = get_transient( $transient_name ) ) ) {
 
 
 
98
 
99
  $_products_in_term = get_objects_in_term( $term->term_id, $taxonomy );
100
 
101
  set_transient( $transient_name, $_products_in_term );
102
- //}
103
 
104
- $option_is_set = ( isset( $_chosen_attributes[$taxonomy] ) && in_array( $term->term_id, $_chosen_attributes[$taxonomy]['terms'] ) );
105
 
106
- $term_param = apply_filters( 'yith_wcan_term_param_uri', $term->term_id, $display_type, $term );
107
 
108
- // If this is an AND query, only show options with count > 0
109
- if ( $query_type == 'and' ) {
110
 
111
- $count = sizeof( array_intersect( $_products_in_term, $woocommerce->query->filtered_product_ids ) );
112
 
113
- // skip the term for the current archive
114
- if ( $current_term == $term_param ) {
115
- continue;
116
- }
117
 
118
- if ( $count > 0 && $current_term !== $term_param ) {
119
- $found = true;
120
- }
121
 
122
- if ( ( $terms_type_list != 'hierarchical' || ! yit_term_has_child( $term, $taxonomy ) ) && $count == 0 && ! $option_is_set ) {
123
- continue;
 
 
 
124
  }
 
125
 
126
- // If this is an OR query, show all options so search can be expanded
127
- }
128
- else {
 
129
 
130
- // skip the term for the current archive
131
- if ( $current_term == $term_param ) {
132
- continue;
133
- }
134
 
135
- $count = sizeof( array_intersect( $_products_in_term, $woocommerce->query->unfiltered_product_ids ) );
 
 
136
 
137
- if ( $count > 0 ) {
138
- $found = true;
139
  }
140
 
141
- }
142
 
143
- $arg = apply_filters( 'yith_wcan_list_type_query_arg', 'filter_' . sanitize_title( $instance['attribute'] ), $display_type, $term );
144
 
145
- $current_filter = ( isset( $_GET[$arg] ) ) ? explode( ',', $_GET[$arg] ) : array();
 
 
146
 
147
- if ( ! is_array( $current_filter ) ) {
148
- $current_filter = array();
149
- }
150
 
151
- $current_filter = array_map( 'esc_attr', $current_filter );
 
 
152
 
153
- if ( ! in_array( $term_param, $current_filter ) ) {
154
- $current_filter[] = $term_param;
155
- }
156
 
157
- if ( defined( 'SHOP_IS_ON_FRONT' ) || is_post_type_archive( 'product' ) || is_page( function_exists( 'wc_get_page_id' ) ? wc_get_page_id( 'shop' ) : woocommerce_get_page_id( 'shop' ) ) ) {
158
- $link = get_post_type_archive_link( 'product' );
159
- }
160
 
161
- else {
162
- $link = get_term_link( get_query_var( 'term' ), get_query_var( 'taxonomy' ) );
163
- }
164
 
165
- // All current filters
166
- if ( $_chosen_attributes ) {
167
- foreach ( $_chosen_attributes as $name => $data ) {
168
- if ( $name !== $taxonomy ) {
169
 
170
- // Exclude query arg for current term archive term
171
- while ( in_array( $current_term, $data['terms'] ) ) {
172
- $key = array_search( $current_term, $data );
173
- unset( $data['terms'][$key] );
174
- }
175
 
176
- // Remove pa_ and sanitize
177
- $filter_name = sanitize_title( str_replace( 'pa_', '', $name ) );
 
 
 
178
 
179
- if ( ! empty( $data['terms'] ) ) {
180
- $link = add_query_arg( 'filter_' . $filter_name, implode( ',', $data['terms'] ), $link );
181
- }
182
 
183
- if ( $data['query_type'] == 'or' ) {
184
- $link = add_query_arg( 'query_type_' . $filter_name, 'or', $link );
 
 
 
 
 
185
  }
186
  }
187
  }
188
- }
189
 
190
- // Min/Max
191
- if ( isset( $_GET['min_price'] ) ) {
192
- $link = add_query_arg( 'min_price', $_GET['min_price'], $link );
193
- }
194
 
195
- if ( isset( $_GET['max_price'] ) ) {
196
- $link = add_query_arg( 'max_price', $_GET['max_price'], $link );
197
- }
198
 
199
- $check_for_current_widget = isset( $_chosen_attributes[$taxonomy] ) && is_array( $_chosen_attributes[$taxonomy]['terms'] ) && in_array( $term->term_id, $_chosen_attributes[$taxonomy]['terms'] );
 
 
200
 
201
- // Current Filter = this widget
202
- if ( apply_filters( 'yith_wcan_list_type_current_widget_check', $check_for_current_widget, $current_filter, $display_type, $term_param ) ) {
203
 
204
- $class = ( $terms_type_list == 'hierarchical' && yit_term_is_child( $term ) ) ? "class='{$is_chosen_class} {$is_child_class}'" : "class='{$is_chosen_class}'";
 
 
205
 
206
- // Remove this term is $current_filter has more than 1 term filtered
207
- if ( sizeof( $current_filter ) > 1 ) {
208
- $current_filter_without_this = array_diff( $current_filter, array( $term_param ) );
209
- $link = add_query_arg( $arg, implode( ',', $current_filter_without_this ), $link );
 
210
  }
211
- }
212
 
213
- else {
214
- $class = ( $terms_type_list == 'hierarchical' && yit_term_is_child( $term ) ) ? "class='{$is_child_class}'" : '';
215
- $link = add_query_arg( $arg, implode( ',', $current_filter ), $link );
216
- }
217
 
218
- // Search Arg
219
- if ( get_search_query() ) {
220
- $link = add_query_arg( 's', get_search_query(), $link );
221
- }
222
 
223
- // Post Type Arg
224
- if ( isset( $_GET['post_type'] ) ) {
225
- $link = add_query_arg( 'post_type', $_GET['post_type'], $link );
226
- }
227
 
228
- $is_attribute = apply_filters( 'yith_wcan_is_attribute_check', true );
229
 
230
- // Query type Arg
231
- if ( $is_attribute && $query_type == 'or' && ! ( sizeof( $current_filter ) == 1 && isset( $_chosen_attributes[$taxonomy]['terms'] ) && is_array( $_chosen_attributes[$taxonomy]['terms'] ) && in_array( $term->term_id, $_chosen_attributes[$taxonomy]['terms'] ) ) ) {
232
- $link = add_query_arg( 'query_type_' . sanitize_title( $instance['attribute'] ), 'or', $link );
233
- }
234
 
235
 
236
- echo '<li ' . $class . '>';
237
 
238
- echo ( $count > 0 || $option_is_set ) ? '<a href="' . esc_url( apply_filters( 'woocommerce_layered_nav_link', $link ) ) . '">' : '<span>';
239
 
240
- echo $term->name;
241
 
242
- echo ( $count > 0 || $option_is_set ) ? '</a>' : '</span>';
243
 
244
- if ( $count != 0 && apply_filters( "{$args['widget_id']}-show_product_count", true, $instance ) ) {
245
- echo ' <small class="count">' . $count . '</small><div class="clear"></div></li>';
 
246
  }
247
- }
248
 
249
- echo "</ul>";
250
 
251
- }
252
- elseif ( $display_type == 'select' ) {
253
- ?>
 
254
 
255
- <a class="yit-wcan-select-open" href="#"><?php _e( 'Filters:', 'yith_wc_ajxnav' ) ?></a>
256
 
257
- <?php
258
- // Select display
259
- echo "<div class='yith-wcan-select-wrapper'>";
260
 
261
- echo "<ul class='yith-wcan-select yith-wcan'>";
262
 
263
- foreach ( $terms as $term ) {
264
 
265
- // Get count based on current view - uses transients
266
- $transient_name = 'wc_ln_count_' . md5( sanitize_key( $taxonomy ) . sanitize_key( $term->term_id ) );
267
 
268
- //if ( false === ( $_products_in_term = get_transient( $transient_name ) ) ) {
269
 
270
  $_products_in_term = get_objects_in_term( $term->term_id, $taxonomy );
271
 
272
  set_transient( $transient_name, $_products_in_term );
273
- //}
274
 
275
- $option_is_set = ( isset( $_chosen_attributes[$taxonomy] ) && in_array( $term->term_id, $_chosen_attributes[$taxonomy]['terms'] ) );
276
 
277
- // If this is an AND query, only show options with count > 0
278
- if ( $query_type == 'and' ) {
279
 
280
- $count = sizeof( array_intersect( $_products_in_term, $woocommerce->query->filtered_product_ids ) );
281
 
282
- // skip the term for the current archive
283
- if ( $current_term == $term->term_id ) {
284
- continue;
285
- }
286
 
287
- if ( $count > 0 && $current_term !== $term->term_id ) {
288
- $found = true;
 
 
 
 
 
 
 
289
  }
 
 
 
 
 
 
 
 
 
 
 
 
290
 
291
- if ( ( $terms_type_list != 'hierarchical' || ! yit_term_has_child( $term, $taxonomy ) ) && $count == 0 && ! $option_is_set ) {
292
- continue;
293
  }
294
 
295
- // If this is an OR query, show all options so search can be expanded
296
- }
297
- else {
298
 
299
- // skip the term for the current archive
300
- if ( $current_term == $term->term_id ) {
301
- continue;
302
  }
303
 
304
- $count = sizeof( array_intersect( $_products_in_term, $woocommerce->query->unfiltered_product_ids ) );
305
 
306
- if ( $count > 0 ) {
307
- $found = true;
308
  }
309
 
310
- }
 
 
311
 
312
- $arg = 'filter_' . urldecode( sanitize_title( $instance['attribute'] ) );
 
 
313
 
314
- $current_filter = ( isset( $_GET[$arg] ) ) ? explode( ',', $_GET[$arg] ) : array();
 
 
315
 
316
- if ( ! is_array( $current_filter ) ) {
317
- $current_filter = array();
318
- }
319
 
320
- $current_filter = array_map( 'esc_attr', $current_filter );
 
 
 
321
 
322
- if ( ! in_array( $term->term_id, $current_filter ) ) {
323
- $current_filter[] = $term->term_id;
324
- }
 
 
325
 
326
- if ( defined( 'SHOP_IS_ON_FRONT' ) || is_post_type_archive( 'product' ) || is_page( woocommerce_get_page_id( 'shop' ) ) ) {
327
- $link = get_post_type_archive_link( 'product' );
328
- }
329
- else {
330
- $link = get_term_link( get_query_var( 'term' ), get_query_var( 'taxonomy' ) );
331
- }
332
 
333
- // All current filters
334
- if ( $_chosen_attributes ) {
335
- foreach ( $_chosen_attributes as $name => $data ) {
336
- if ( $name !== $taxonomy ) {
337
 
338
- // Exclude query arg for current term archive term
339
- while ( in_array( $current_term, $data['terms'] ) ) {
340
- $key = array_search( $current_term, $data );
341
- unset( $data['terms'][$key] );
342
  }
 
 
343
 
344
- // Remove pa_ and sanitize
345
- $filter_name = urldecode( sanitize_title( str_replace( 'pa_', '', $name ) ) );
 
 
346
 
347
- if ( ! empty( $data['terms'] ) ) {
348
- $link = add_query_arg( 'filter_' . $filter_name, implode( ',', $data['terms'] ), $link );
349
- }
350
 
351
- if ( $data['query_type'] == 'or' ) {
352
- $link = add_query_arg( 'query_type_' . $filter_name, 'or', $link );
353
- }
354
- }
355
  }
356
- }
357
 
358
- // Min/Max
359
- if ( isset( $_GET['min_price'] ) ) {
360
- $link = add_query_arg( 'min_price', $_GET['min_price'], $link );
361
- }
362
 
363
- if ( isset( $_GET['max_price'] ) ) {
364
- $link = add_query_arg( 'max_price', $_GET['max_price'], $link );
365
- }
366
 
367
- // Current Filter = this widget
368
- if ( isset( $_chosen_attributes[$taxonomy] ) && is_array( $_chosen_attributes[$taxonomy]['terms'] ) && in_array( $term->term_id, $_chosen_attributes[$taxonomy]['terms'] ) ) {
 
 
 
369
 
370
- $class = ( $terms_type_list == 'hierarchical' && yit_term_is_child( $term ) ) ? "class='{$is_chosen_class} {$is_child_class}'" : "class='{$is_chosen_class}'";
 
 
 
 
371
 
372
- // Remove this term is $current_filter has more than 1 term filtered
373
- if ( sizeof( $current_filter ) > 1 ) {
374
- $current_filter_without_this = array_diff( $current_filter, array( $term->term_id ) );
375
- $link = add_query_arg( $arg, implode( ',', $current_filter_without_this ), $link );
376
  }
377
 
378
- }
379
- else {
 
 
380
 
381
- $class = ( $terms_type_list == 'hierarchical' && yit_term_is_child( $term ) ) ? "class='{$is_child_class}'" : '';
382
- $link = add_query_arg( $arg, implode( ',', $current_filter ), $link );
 
 
383
 
384
- }
 
 
 
385
 
386
- // Search Arg
387
- if ( get_search_query() ) {
388
- $link = add_query_arg( 's', get_search_query(), $link );
389
- }
390
 
391
- // Post Type Arg
392
- if ( isset( $_GET['post_type'] ) ) {
393
- $link = add_query_arg( 'post_type', $_GET['post_type'], $link );
394
- }
395
 
396
- // Query type Arg
397
- if ( $query_type == 'or' && ! ( sizeof( $current_filter ) == 1 && isset( $_chosen_attributes[$taxonomy]['terms'] ) && is_array( $_chosen_attributes[$taxonomy]['terms'] ) && in_array( $term->term_id, $_chosen_attributes[$taxonomy]['terms'] ) ) ) {
398
- $link = add_query_arg( 'query_type_' . sanitize_title( $instance['attribute'] ), 'or', $link );
399
- }
400
 
401
- echo '<li ' . $class . '>';
402
 
403
- echo ( $count > 0 || $option_is_set ) ? '<a data-type="select" href="' . esc_url( apply_filters( 'woocommerce_layered_nav_link', $link ) ) . '">' : '<span>';
404
 
405
- echo $term->name;
406
 
407
- echo ( $count > 0 || $option_is_set ) ? '</a>' : '</span>';
408
 
409
- echo '</li>';
410
 
411
  }
 
 
 
412
 
413
- echo "</ul>";
414
 
415
- echo "</div>";
 
416
 
417
- }
418
- elseif ( $display_type == 'color' ) {
419
- // List display
420
- echo "<ul class='yith-wcan-color yith-wcan yith-wcan-group'>";
421
 
422
- foreach ( $terms as $term ) {
423
 
424
- // Get count based on current view - uses transients
425
- $transient_name = 'wc_ln_count_' . md5( sanitize_key( $taxonomy ) . sanitize_key( $term->term_id ) );
426
 
427
- //if ( false === ( $_products_in_term = get_transient( $transient_name ) ) ) {
428
 
429
- $_products_in_term = get_objects_in_term( $term->term_id, $taxonomy );
 
430
 
431
- set_transient( $transient_name, $_products_in_term );
432
- //}
433
 
434
- $option_is_set = ( isset( $_chosen_attributes[$taxonomy] ) && in_array( $term->term_id, $_chosen_attributes[$taxonomy]['terms'] ) );
 
 
 
435
 
436
- // If this is an AND query, only show options with count > 0
437
- if ( $query_type == 'and' ) {
 
438
 
439
- $count = sizeof( array_intersect( $_products_in_term, $woocommerce->query->filtered_product_ids ) );
 
 
440
 
441
- // skip the term for the current archive
442
- if ( $current_term == $term->term_id ) {
443
- continue;
444
  }
 
445
 
446
- if ( $count > 0 && $current_term !== $term->term_id ) {
447
- $found = true;
448
- }
 
449
 
450
- if ( $count == 0 && ! $option_is_set ) {
451
- continue;
452
- }
453
 
454
- // If this is an OR query, show all options so search can be expanded
455
- }
456
- else {
457
 
458
- // skip the term for the current archive
459
- if ( $current_term == $term->term_id ) {
460
- continue;
461
  }
462
 
463
- $count = sizeof( array_intersect( $_products_in_term, $woocommerce->query->unfiltered_product_ids ) );
 
 
464
 
465
- if ( $count > 0 ) {
466
- $found = true;
467
  }
468
 
469
- }
470
 
471
- $arg = 'filter_' . sanitize_title( $instance['attribute'] );
 
 
472
 
473
- $current_filter = ( isset( $_GET[$arg] ) ) ? explode( ',', $_GET[$arg] ) : array();
 
 
474
 
475
- if ( ! is_array( $current_filter ) ) {
476
- $current_filter = array();
477
- }
478
 
479
- $current_filter = array_map( 'esc_attr', $current_filter );
 
 
480
 
481
- if ( ! in_array( $term->term_id, $current_filter ) ) {
482
- $current_filter[] = $term->term_id;
483
- }
484
 
485
- if ( defined( 'SHOP_IS_ON_FRONT' ) || is_post_type_archive( 'product' ) || is_page( function_exists( 'wc_get_page_id' ) ? wc_get_page_id( 'shop' ) : woocommerce_get_page_id( 'shop' ) ) ) {
486
- $link = get_post_type_archive_link( 'product' );
487
- }
488
- else {
489
- $link = get_term_link( get_query_var( 'term' ), get_query_var( 'taxonomy' ) );
490
- }
491
 
492
- // All current filters
493
- if ( $_chosen_attributes ) {
494
- foreach ( $_chosen_attributes as $name => $data ) {
495
- if ( $name !== $taxonomy ) {
 
496
 
497
- // Exclude query arg for current term archive term
498
- while ( in_array( $current_term, $data['terms'] ) ) {
499
- $key = array_search( $current_term, $data );
500
- unset( $data['terms'][$key] );
501
- }
502
 
503
- // Remove pa_ and sanitize
504
- $filter_name = sanitize_title( str_replace( 'pa_', '', $name ) );
 
505
 
506
- if ( ! empty( $data['terms'] ) ) {
507
- $link = add_query_arg( 'filter_' . $filter_name, implode( ',', $data['terms'] ), $link );
508
- }
509
-
510
- if ( $data['query_type'] == 'or' ) {
511
- $link = add_query_arg( 'query_type_' . $filter_name, 'or', $link );
512
  }
513
  }
514
  }
515
- }
516
-
517
- // Min/Max
518
- if ( isset( $_GET['min_price'] ) ) {
519
- $link = add_query_arg( 'min_price', $_GET['min_price'], $link );
520
- }
521
-
522
- if ( isset( $_GET['max_price'] ) ) {
523
- $link = add_query_arg( 'max_price', $_GET['max_price'], $link );
524
- }
525
 
526
- // Current Filter = this widget
527
- if ( isset( $_chosen_attributes[$taxonomy] ) && is_array( $_chosen_attributes[$taxonomy]['terms'] ) && in_array( $term->term_id, $_chosen_attributes[$taxonomy]['terms'] ) ) {
 
 
528
 
529
- $class = ( $terms_type_list == 'hierarchical' && yit_term_is_child( $term ) ) ? "class='{$is_chosen_class} {$is_child_class}'" : "class='{$is_chosen_class}'";
 
 
530
 
531
- // Remove this term is $current_filter has more than 1 term filtered
532
- if ( sizeof( $current_filter ) > 1 ) {
533
- $current_filter_without_this = array_diff( $current_filter, array( $term->term_id ) );
534
- $link = add_query_arg( $arg, implode( ',', $current_filter_without_this ), $link );
535
  }
536
 
537
- }
538
- else {
539
 
540
- $class = ( $terms_type_list == 'hierarchical' && yit_term_is_child( $term ) ) ? "class='{$is_child_class}'" : '';
541
- $link = add_query_arg( $arg, implode( ',', $current_filter ), $link );
542
 
543
- }
 
 
 
 
 
 
 
 
 
544
 
545
- // Search Arg
546
- if ( get_search_query() ) {
547
- $link = add_query_arg( 's', get_search_query(), $link );
548
- }
549
 
550
- // Post Type Arg
551
- if ( isset( $_GET['post_type'] ) ) {
552
- $link = add_query_arg( 'post_type', $_GET['post_type'], $link );
553
- }
554
 
555
- // Query type Arg
556
- if ( $query_type == 'or' && ! ( sizeof( $current_filter ) == 1 && isset( $_chosen_attributes[$taxonomy]['terms'] ) && is_array( $_chosen_attributes[$taxonomy]['terms'] ) && in_array( $term->term_id, $_chosen_attributes[$taxonomy]['terms'] ) ) ) {
557
- $link = add_query_arg( 'query_type_' . sanitize_title( $instance['attribute'] ), 'or', $link );
558
- }
559
 
560
- if ( $instance['colors'][$term->term_id] != '' ) {
561
- $li_style = apply_filters( "{$args['widget_id']}-li_style", 'background-color:' . $instance['colors'][$term->term_id] . ';', $instance );
562
 
563
- echo '<li ' . $class . '>';
 
564
 
565
- echo ( $count > 0 || $option_is_set ) ? '<a style="' . $li_style . '" href="' . esc_url( apply_filters( 'woocommerce_layered_nav_link', $link ) ) . '" title="' . $term->name . '" >' : '<span style="background-color:' . $instance['colors'][$term->term_id] . ';" >';
566
 
567
- echo $term->name;
568
 
569
- echo ( $count > 0 || $option_is_set ) ? '</a>' : '</span>';
 
 
 
570
  }
571
- }
572
 
573
- echo "</ul>";
574
 
575
- }
576
- elseif ( $display_type == 'label' ) {
577
- // List display
578
- echo "<ul class='yith-wcan-label yith-wcan yith-wcan-group'>";
579
 
580
- foreach ( $terms as $term ) {
581
 
582
- // Get count based on current view - uses transients
583
- $transient_name = 'wc_ln_count_' . md5( sanitize_key( $taxonomy ) . sanitize_key( $term->term_id ) );
584
 
585
- //if ( false === ( $_products_in_term = get_transient( $transient_name ) ) ) {
586
 
587
  $_products_in_term = get_objects_in_term( $term->term_id, $taxonomy );
588
 
589
  set_transient( $transient_name, $_products_in_term );
590
- //}
591
 
592
- $option_is_set = ( isset( $_chosen_attributes[$taxonomy] ) && in_array( $term->term_id, $_chosen_attributes[$taxonomy]['terms'] ) );
593
 
594
- // If this is an AND query, only show options with count > 0
595
- if ( $query_type == 'and' ) {
596
 
597
- $count = sizeof( array_intersect( $_products_in_term, $woocommerce->query->filtered_product_ids ) );
598
 
599
- // skip the term for the current archive
600
- if ( $current_term == $term->term_id ) {
601
- continue;
602
- }
603
 
604
- if ( $count > 0 && $current_term !== $term->term_id ) {
605
- $found = true;
606
- }
 
 
 
 
607
 
608
- if ( $count == 0 && ! $option_is_set ) {
609
- continue;
610
  }
 
611
 
612
- // If this is an OR query, show all options so search can be expanded
613
- }
614
- else {
 
615
 
616
- // skip the term for the current archive
617
- if ( $current_term == $term->term_id ) {
618
- continue;
619
- }
620
 
621
- $count = sizeof( array_intersect( $_products_in_term, $woocommerce->query->unfiltered_product_ids ) );
 
 
622
 
623
- if ( $count > 0 ) {
624
- $found = true;
625
  }
626
 
627
- }
628
 
629
- $arg = 'filter_' . sanitize_title( $instance['attribute'] );
630
 
631
- $current_filter = ( isset( $_GET[$arg] ) ) ? explode( ',', $_GET[$arg] ) : array();
 
 
632
 
633
- if ( ! is_array( $current_filter ) ) {
634
- $current_filter = array();
635
- }
636
 
637
- $current_filter = array_map( 'esc_attr', $current_filter );
 
 
638
 
639
- if ( ! in_array( $term->term_id, $current_filter ) ) {
640
- $current_filter[] = $term->term_id;
641
- }
642
 
643
- if ( defined( 'SHOP_IS_ON_FRONT' ) || is_post_type_archive( 'product' ) || is_page( function_exists( 'wc_get_page_id' ) ? wc_get_page_id( 'shop' ) : woocommerce_get_page_id( 'shop' ) ) ) {
644
- $link = get_post_type_archive_link( 'product' );
645
- }
646
- else {
647
- $link = get_term_link( get_query_var( 'term' ), get_query_var( 'taxonomy' ) );
648
- }
649
 
650
- // All current filters
651
- if ( $_chosen_attributes ) {
652
- foreach ( $_chosen_attributes as $name => $data ) {
653
- if ( $name !== $taxonomy ) {
654
 
655
- // Exclude query arg for current term archive term
656
- while ( in_array( $current_term, $data['terms'] ) ) {
657
- $key = array_search( $current_term, $data );
658
- unset( $data['terms'][$key] );
659
- }
660
 
661
- // Remove pa_ and sanitize
662
- $filter_name = sanitize_title( str_replace( 'pa_', '', $name ) );
 
 
663
 
664
- if ( ! empty( $data['terms'] ) ) {
665
- $link = add_query_arg( 'filter_' . $filter_name, implode( ',', $data['terms'] ), $link );
666
- }
 
 
 
 
 
667
 
668
- if ( $data['query_type'] == 'or' ) {
669
- $link = add_query_arg( 'query_type_' . $filter_name, 'or', $link );
 
 
 
 
 
670
  }
671
  }
672
  }
673
- }
674
 
675
- // Min/Max
676
- if ( isset( $_GET['min_price'] ) ) {
677
- $link = add_query_arg( 'min_price', $_GET['min_price'], $link );
678
- }
679
 
680
- if ( isset( $_GET['max_price'] ) ) {
681
- $link = add_query_arg( 'max_price', $_GET['max_price'], $link );
682
- }
 
 
 
 
 
 
 
683
 
684
- // Current Filter = this widget
685
- if ( isset( $_chosen_attributes[$taxonomy] ) && is_array( $_chosen_attributes[$taxonomy]['terms'] ) && in_array( $term->term_id, $_chosen_attributes[$taxonomy]['terms'] ) ) {
686
 
687
- $class = ( $terms_type_list == 'hierarchical' && yit_term_is_child( $term ) ) ? "class='{$is_chosen_class} {$is_child_class}'" : "class='{$is_chosen_class}'";
 
 
 
 
688
 
689
- // Remove this term is $current_filter has more than 1 term filtered
690
- if ( sizeof( $current_filter ) > 1 ) {
691
- $current_filter_without_this = array_diff( $current_filter, array( $term->term_id ) );
692
- $link = add_query_arg( $arg, implode( ',', $current_filter_without_this ), $link );
693
  }
 
694
 
695
- }
696
- else {
697
 
698
- $class = ( $terms_type_list == 'hierarchical' && yit_term_is_child( $term ) ) ? "class='{$is_child_class}'" : '';
699
- $link = add_query_arg( $arg, implode( ',', $current_filter ), $link );
700
 
701
- }
 
 
 
702
 
703
- // Search Arg
704
- if ( get_search_query() ) {
705
- $link = add_query_arg( 's', get_search_query(), $link );
706
- }
707
 
708
- // Post Type Arg
709
- if ( isset( $_GET['post_type'] ) ) {
710
- $link = add_query_arg( 'post_type', $_GET['post_type'], $link );
711
- }
712
 
713
- // Query type Arg
714
- if ( $query_type == 'or' && ! ( sizeof( $current_filter ) == 1 && isset( $_chosen_attributes[$taxonomy]['terms'] ) && is_array( $_chosen_attributes[$taxonomy]['terms'] ) && in_array( $term->term_id, $_chosen_attributes[$taxonomy]['terms'] ) ) ) {
715
- $link = add_query_arg( 'query_type_' . sanitize_title( $instance['attribute'] ), 'or', $link );
716
- }
717
 
718
- if ( $instance['labels'][$term->term_id] != '' ) {
719
 
720
- echo '<li ' . $class . '>';
721
 
722
- echo ( $count > 0 || $option_is_set ) ? '<a title="' . $term->name . '" href="' . esc_url( apply_filters( 'woocommerce_layered_nav_link', $link ) ) . '">' : '<span>';
723
 
724
- echo $instance['labels'][$term->term_id];
725
 
726
- echo ( $count > 0 || $option_is_set ) ? '</a>' : '</span>';
 
727
  }
728
- }
729
- echo "</ul>";
730
 
731
- }
732
- else{
733
- do_action( "yith_wcan_widget_display_{$display_type}", $args, $instance, $display_type, $terms, $taxonomy );
734
- }// End display type conditional
 
735
 
736
- echo $after_widget;
737
 
738
- if ( ! apply_filters( 'yith_wcan_found_taxonomy', $found ) ) {
739
- ob_end_clean();
740
- echo substr( $before_widget, 0, strlen( $before_widget ) - 1 ) . ' style="display:none">' . $after_widget;
741
- }
742
- else {
743
- echo ob_get_clean();
 
744
  }
745
  }
746
- }
747
-
748
 
749
- function form( $instance ) {
750
- global $woocommerce;
751
-
752
- $defaults = array(
753
- 'title' => '',
754
- 'attribute' => '',
755
- 'query_type' => 'and',
756
- 'type' => 'list',
757
- 'colors' => '',
758
- 'multicolor' => array(),
759
- 'labels' => '',
760
- 'display' => 'all'
761
- );
762
-
763
- $instance = wp_parse_args( (array) $instance, $defaults );
764
-
765
- $widget_types = apply_filters( 'yith_wcan_widget_types', array(
766
- 'list' => __( 'List', 'yith_wc_ajxnav' ),
767
- 'color' => __( 'Color', 'yith_wc_ajxnav' ),
768
- 'label' => __( 'Label', 'yith_wc_ajxnav' ),
769
- 'select' => __( 'Dropdown', 'yith_wc_ajxnav' )
770
- )
771
- );
772
- ?>
773
-
774
- <p>
775
- <label>
776
- <strong><?php _e( 'Title', 'yith_wc_ajxnav' ) ?>:</strong><br />
777
- <input class="widefat" type="text" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $instance['title']; ?>" />
778
- </label>
779
- </p>
780
-
781
- <p>
782
- <label for="<?php echo $this->get_field_id( 'type' ); ?>"><strong><?php _e( 'Type:', 'yith_wc_ajxnav' ) ?></strong></label>
783
- <select class="yith_wcan_type widefat" id="<?php echo esc_attr( $this->get_field_id( 'type' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'type' ) ); ?>">
784
- <?php foreach( $widget_types as $type => $label ) : ?>
785
- <option value="<?php echo $type ?>" <?php selected( $type, $instance['type'] ) ?>><?php echo $label ?></option>
786
- <?php endforeach; ?>
787
- </select>
788
- </p>
789
-
790
- <p>
791
- <label for="<?php echo $this->get_field_id( 'query_type' ); ?>"><?php _e( 'Query Type:', 'yith_wc_ajxnav' ) ?></label>
792
- <select id="<?php echo esc_attr( $this->get_field_id( 'query_type' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'query_type' ) ); ?>">
793
- <option value="and" <?php selected( $instance['query_type'], 'and' ); ?>><?php _e( 'AND', 'yith_wc_ajxnav' ); ?></option>
794
- <option value="or" <?php selected( $instance['query_type'], 'or' ); ?>><?php _e( 'OR', 'yith_wc_ajxnav' ); ?></option>
795
- </select></p>
796
-
797
- <p class="yith-wcan-attribute-list" style="display: <?php echo $instance['type'] == 'tags' || $instance['type'] == 'brands' ? 'none' : 'block' ?>;">
798
- <label for="<?php echo $this->get_field_id( 'attribute' ); ?>"><strong><?php _e( 'Attribute:', 'yith_wc_ajxnav' ) ?></strong></label>
799
- <select class="yith_wcan_attributes widefat" id="<?php echo esc_attr( $this->get_field_id( 'attribute' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'attribute' ) ); ?>">
800
- <?php yith_wcan_dropdown_attributes( $instance['attribute'] ); ?>
801
- </select>
802
- </p>
803
-
804
- <p id="yit-wcan-display" class="yit-wcan-display-<?php echo $instance['type'] ?>">
805
- <label for="<?php echo $this->get_field_id( 'display' ); ?>"><strong><?php _e( 'Display (default All):', 'yith_wc_ajxnav' ) ?></strong></label>
806
- <select class="yith_wcan_type widefat" id="<?php echo esc_attr( $this->get_field_id( 'display' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'display' ) ); ?>">
807
- <option value="all" <?php selected( 'all', $instance['display'] ) ?>> <?php _e( 'All (no hierarchical)', 'yith_wc_ajxnav' ) ?></option>
808
- <option value="hierarchical" <?php selected( 'hierarchical', $instance['display'] ) ?>> <?php _e( 'All (hierarchical)', 'yith_wc_ajxnav' ) ?> </option>
809
- <option value="parent" <?php selected( 'parent', $instance['display'] ) ?>> <?php _e( 'Only Parent', 'yith_wc_ajxnav' ) ?> </option>
810
- </select>
811
- </p>
812
-
813
- <div class="yith_wcan_placeholder">
814
- <?php
815
- $values = array();
816
-
817
- if( $instance['type'] == 'color' ) {
818
- $values = $instance['colors'];
819
- }
820
 
821
- if( $instance['type'] == 'multicolor' ) {
822
- $values = $instance['multicolor'];
823
- }
824
 
825
- elseif( $instance['type'] == 'label' ) {
826
- $values = $instance['labels'];
827
- }
828
-
829
- yith_wcan_attributes_table(
830
- $instance['type'],
831
- $instance['attribute'],
832
- 'widget-' . $this->id . '-',
833
- 'widget-' . $this->id_base . '[' . $this->number . ']',
834
- $values,
835
- $instance['display']
836
  );
837
  ?>
838
- </div>
839
- <span class="spinner" style="display: none;"></span>
840
 
841
- <input type="hidden" name="widget_id" value="widget-<?php echo $this->id ?>-" />
842
- <input type="hidden" name="widget_name" value="widget-<?php echo $this->id_base ?>[<?php echo $this->number ?>]" />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
843
 
844
- <script>jQuery(document).trigger('yith_colorpicker');</script>
845
- <?php
846
- }
847
 
848
- function update( $new_instance, $old_instance ) {
849
- global $woocommerce;
 
850
 
851
- $instance = $old_instance;
852
- $instance['title'] = strip_tags( $new_instance['title'] );
853
- $instance['attribute'] = stripslashes( $new_instance['attribute'] );
854
- $instance['query_type'] = stripslashes( $new_instance['query_type'] );
855
- $instance['type'] = stripslashes( $new_instance['type'] );
856
- $instance['colors'] = $new_instance['colors'];
857
- $instance['multicolor'] = $new_instance['multicolor'];
858
- $instance['labels'] = $new_instance['labels'];
859
- $instance['display'] = $new_instance['display'];
860
 
861
- return $instance;
862
- }
 
 
 
 
 
 
 
 
 
863
 
864
- /**
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
865
  * Print terms for the element selected
866
  *
867
  * @access public
@@ -906,6 +952,5 @@ class YITH_WCAN_Navigation_Widget extends WP_Widget {
906
  echo json_encode( $return );
907
  die();
908
  }
909
-
910
- }
911
  }
12
  } // Exit if accessed directly
13
 
14
  if ( ! class_exists( 'YITH_WCAN_Navigation_Widget' ) ) {
15
+ /**
16
+ * YITH WooCommerce Ajax Navigation Widget
17
+ *
18
+ * @since 1.0.0
19
+ */
20
+ class YITH_WCAN_Navigation_Widget extends WP_Widget {
 
 
 
 
 
 
 
21
 
22
+ function __construct() {
23
+ $widget_ops = array( 'classname' => 'yith-woo-ajax-navigation woocommerce widget_layered_nav', 'description' => __( 'Filter the product list without reloading the page', 'yith_wc_ajxnav' ) );
24
+ $control_ops = array( 'width' => 400, 'height' => 350 );
25
+ add_action('wp_ajax_yith_wcan_select_type', array( $this, 'ajax_print_terms') );
26
+ parent::__construct( 'yith-woo-ajax-navigation', __( 'YITH WooCommerce Ajax Product Filter', 'yith_wc_ajxnav' ), $widget_ops, $control_ops );
27
+ }
28
 
 
 
29
 
30
+ function widget( $args, $instance ) {
31
+ global $_chosen_attributes, $woocommerce, $_attributes_array;
32
 
33
+ extract( $args );
34
 
35
+ $attributes_array = ! empty( $_attributes_array ) ? $_attributes_array : array();
 
 
36
 
37
+ if ( ! is_post_type_archive( 'product' ) && ! is_tax( array_merge( $attributes_array, apply_filters( 'yith_wcan_product_taxonomy_type', array( 'product_cat', 'product_tag' ) ) ) ) ) {
38
+ return;
39
+ }
 
 
 
 
 
40
 
41
+ $current_term = $_attributes_array && is_tax( $_attributes_array ) ? get_queried_object()->term_id : '';
42
+ $current_tax = $_attributes_array && is_tax( $_attributes_array ) ? get_queried_object()->taxonomy : '';
43
+ $title = apply_filters( 'yith_widget_title_ajax_navigation', ( isset( $instance['title'] ) ? $instance['title'] : '' ), $instance, $this->id_base );
44
+ $query_type = isset( $instance['query_type'] ) ? $instance['query_type'] : 'and';
45
+ $display_type = isset( $instance['type'] ) ? $instance['type'] : 'list';
46
+ $is_child_class = 'yit-wcan-child-terms';
47
+ $is_chosen_class = 'chosen';
48
+ $terms_type_list = ( isset( $instance['display'] ) && ( $display_type == 'list' || $display_type == 'select' ) ) ? $instance['display'] : 'all';
49
 
50
+ $instance['attribute'] = empty( $instance['attribute'] ) ? '' : $instance['attribute'];
 
 
 
 
 
 
51
 
52
+ /* FIX TO WOOCOMMERCE 2.1 */
53
+ if ( function_exists( 'wc_attribute_taxonomy_name' ) ) {
54
+ $taxonomy = wc_attribute_taxonomy_name( $instance['attribute'] );
55
+ }
56
+ else {
57
+ $taxonomy = $woocommerce->attribute_taxonomy_name( $instance['attribute'] );
58
+ }
59
 
60
+ if ( ! taxonomy_exists( $taxonomy ) ) {
61
+ return;
62
+ }
63
 
64
+ $taxonomy = apply_filters( 'yith_wcan_get_terms_params', $taxonomy, $instance, 'taxonomy_name' );
65
+ $terms_type_list = apply_filters( 'yith_wcan_get_terms_params', $terms_type_list, $instance, 'terms_type' );
66
 
67
+ $terms = yit_get_terms( $terms_type_list, $taxonomy, $instance );
68
 
69
+ if ( count( $terms ) > 0 ) {
70
 
71
+ ob_start();
72
 
73
+ $found = false;
74
 
75
+ echo $before_widget;
 
 
76
 
77
+ if ( ! empty( $title ) ) {
78
+ echo $before_title . apply_filters( 'widget_title', $title ) . $after_title;
 
 
79
  }
 
80
 
81
+ // Force found when option is selected - do not force found on taxonomy attributes
82
+ if ( ! $_attributes_array || ! is_tax( $_attributes_array ) ) {
83
+ if ( is_array( $_chosen_attributes ) && array_key_exists( $taxonomy, $_chosen_attributes ) ) {
84
+ $found = true;
85
+ }
86
+ }
87
 
88
+ if ( in_array( $display_type, apply_filters( 'yith_wcan_display_type_list', array( 'list' ) ) ) ) {
89
+ // List display
90
+ echo "<ul class='yith-wcan-list yith-wcan'>";
91
 
92
+ foreach ( $terms as $term ) {
 
93
 
94
+ // Get count based on current view - uses transients
95
+ $transient_name = 'wc_ln_count_' . md5( sanitize_key( $taxonomy ) . sanitize_key( $term->term_id ) );
96
+
97
+ //if ( false === ( $_products_in_term = get_transient( $transient_name ) ) ) {
98
 
99
  $_products_in_term = get_objects_in_term( $term->term_id, $taxonomy );
100
 
101
  set_transient( $transient_name, $_products_in_term );
102
+ //}
103
 
104
+ $option_is_set = ( isset( $_chosen_attributes[$taxonomy] ) && in_array( $term->term_id, $_chosen_attributes[$taxonomy]['terms'] ) );
105
 
106
+ $term_param = apply_filters( 'yith_wcan_term_param_uri', $term->term_id, $display_type, $term );
107
 
108
+ // If this is an AND query, only show options with count > 0
109
+ if ( $query_type == 'and' ) {
110
 
111
+ $count = sizeof( array_intersect( $_products_in_term, $woocommerce->query->filtered_product_ids ) );
112
 
113
+ // skip the term for the current archive
114
+ if ( $current_term == $term_param ) {
115
+ continue;
116
+ }
117
 
118
+ if ( $count > 0 && $current_term !== $term_param ) {
119
+ $found = true;
120
+ }
121
 
122
+ if ( ( $terms_type_list != 'hierarchical' || ! yit_term_has_child( $term, $taxonomy ) ) && $count == 0 && ! $option_is_set ) {
123
+ continue;
124
+ }
125
+
126
+ // If this is an OR query, show all options so search can be expanded
127
  }
128
+ else {
129
 
130
+ // skip the term for the current archive
131
+ if ( $current_term == $term_param ) {
132
+ continue;
133
+ }
134
 
135
+ $count = sizeof( array_intersect( $_products_in_term, $woocommerce->query->unfiltered_product_ids ) );
 
 
 
136
 
137
+ if ( $count > 0 ) {
138
+ $found = true;
139
+ }
140
 
 
 
141
  }
142
 
143
+ $arg = apply_filters( 'yith_wcan_list_type_query_arg', 'filter_' . sanitize_title( $instance['attribute'] ), $display_type, $term );
144
 
145
+ $current_filter = ( isset( $_GET[$arg] ) ) ? explode(apply_filters( 'yith_wcan_list_filter_operator', ',', $display_type ), apply_filters( "yith_wcan_list_filter_query_{$arg}", $_GET[$arg] ) ) : array();
146
 
147
+ if ( ! is_array( $current_filter ) ) {
148
+ $current_filter = array();
149
+ }
150
 
151
+ $current_filter = array_map( 'esc_attr', $current_filter );
 
 
152
 
153
+ if ( ! in_array( $term_param, $current_filter ) ) {
154
+ $current_filter[] = $term_param;
155
+ }
156
 
157
+ if ( defined( 'SHOP_IS_ON_FRONT' ) || is_shop() ) {
158
+ $link = get_post_type_archive_link( 'product' );
159
+ }
160
 
161
+ elseif( is_product_category() ){
162
+ $link = get_term_link( get_queried_object()->slug, 'product_cat' );
163
+ }
164
 
165
+ else {
166
+ $link = get_term_link( get_query_var( 'term' ), get_query_var( 'taxonomy' ) );
167
+ }
168
 
169
+ $link = untrailingslashit( $link );
 
 
 
170
 
171
+ // All current filters
172
+ if ( $_chosen_attributes ) {
173
+ foreach ( $_chosen_attributes as $name => $data ) {
174
+ if ( $name !== $taxonomy ) {
 
175
 
176
+ // Exclude query arg for current term archive term
177
+ while ( in_array( $current_term, $data['terms'] ) ) {
178
+ $key = array_search( $current_term, $data );
179
+ unset( $data['terms'][$key] );
180
+ }
181
 
182
+ // Remove pa_ and sanitize
183
+ $filter_name = sanitize_title( str_replace( 'pa_', '', $name ) );
 
184
 
185
+ if ( ! empty( $data['terms'] ) ) {
186
+ $link = add_query_arg( 'filter_' . $filter_name, implode( ',', $data['terms'] ), $link );
187
+ }
188
+
189
+ if ( $data['query_type'] == 'or' ) {
190
+ $link = add_query_arg( 'query_type_' . $filter_name, 'or', $link );
191
+ }
192
  }
193
  }
194
  }
 
195
 
196
+ // Min/Max
197
+ if ( isset( $_GET['min_price'] ) ) {
198
+ $link = add_query_arg( 'min_price', $_GET['min_price'], $link );
199
+ }
200
 
201
+ if ( isset( $_GET['max_price'] ) ) {
202
+ $link = add_query_arg( 'max_price', $_GET['max_price'], $link );
203
+ }
204
 
205
+ if ( isset( $_GET['product_tag'] ) && $display_type != 'tags' ) {
206
+ $link = add_query_arg( 'product_tag', urlencode( $_GET['product_tag'] ), $link );
207
+ }
208
 
209
+ $check_for_current_widget = isset( $_chosen_attributes[$taxonomy] ) && is_array( $_chosen_attributes[$taxonomy]['terms'] ) && in_array( $term->term_id, $_chosen_attributes[$taxonomy]['terms'] );
 
210
 
211
+ // Current Filter = this widget
212
+ if ( apply_filters( 'yith_wcan_list_type_current_widget_check', $check_for_current_widget, $current_filter, $display_type, $term_param ) ) {
213
+ $class = ( $terms_type_list == 'hierarchical' && yit_term_is_child( $term ) ) ? "class='{$is_chosen_class} {$is_child_class}'" : "class='{$is_chosen_class}'";
214
 
215
+ // Remove this term is $current_filter has more than 1 term filtered
216
+ if ( sizeof( $current_filter ) > 1 ) {
217
+ $current_filter_without_this = array_diff( $current_filter, array( $term_param ) );
218
+ $link = add_query_arg( $arg, implode( apply_filters( 'yith_wcan_list_filter_operator', ',', $display_type ), $current_filter_without_this ), $link );
219
+ }
220
  }
 
221
 
222
+ else {
223
+ $class = ( $terms_type_list == 'hierarchical' && yit_term_is_child( $term ) ) ? "class='{$is_child_class}'" : '';
224
+ $link = add_query_arg( $arg, implode( apply_filters( 'yith_wcan_list_filter_operator', ',', $display_type ), $current_filter ), $link );
225
+ }
226
 
227
+ // Search Arg
228
+ if ( get_search_query() ) {
229
+ $link = add_query_arg( 's', get_search_query(), $link );
230
+ }
231
 
232
+ // Post Type Arg
233
+ if ( isset( $_GET['post_type'] ) ) {
234
+ $link = add_query_arg( 'post_type', $_GET['post_type'], $link );
235
+ }
236
 
237
+ $is_attribute = apply_filters( 'yith_wcan_is_attribute_check', true );
238
 
239
+ // Query type Arg
240
+ if ( $is_attribute && $query_type == 'or' && ! ( sizeof( $current_filter ) == 1 && isset( $_chosen_attributes[$taxonomy]['terms'] ) && is_array( $_chosen_attributes[$taxonomy]['terms'] ) && in_array( $term->term_id, $_chosen_attributes[$taxonomy]['terms'] ) ) ) {
241
+ $link = add_query_arg( 'query_type_' . sanitize_title( $instance['attribute'] ), 'or', $link );
242
+ }
243
 
244
 
245
+ echo '<li ' . $class . '>';
246
 
247
+ echo ( $count > 0 || $option_is_set ) ? '<a href="' . esc_url( apply_filters( 'woocommerce_layered_nav_link', $link ) ) . '">' : '<span>';
248
 
249
+ echo $term->name;
250
 
251
+ echo ( $count > 0 || $option_is_set ) ? '</a>' : '</span>';
252
 
253
+ if ( $count != 0 && apply_filters( "{$args['widget_id']}-show_product_count", true, $instance ) ) {
254
+ echo ' <small class="count">' . $count . '</small><div class="clear"></div></li>';
255
+ }
256
  }
 
257
 
258
+ echo "</ul>";
259
 
260
+ }
261
+ elseif ( $display_type == 'select' ) {
262
+ $dropdown_label = __( 'Filters:', 'yith_wc_ajxnav' );
263
+ ?>
264
 
265
+ <a class="yit-wcan-select-open" href="#"><?php echo apply_filters( 'yith_wcan_dropdown_default_label', $dropdown_label ) ?></a>
266
 
267
+ <?php
268
+ // Select display
269
+ echo "<div class='yith-wcan-select-wrapper'>";
270
 
271
+ echo "<ul class='yith-wcan-select yith-wcan'>";
272
 
273
+ foreach ( $terms as $term ) {
274
 
275
+ // Get count based on current view - uses transients
276
+ $transient_name = 'wc_ln_count_' . md5( sanitize_key( $taxonomy ) . sanitize_key( $term->term_id ) );
277
 
278
+ //if ( false === ( $_products_in_term = get_transient( $transient_name ) ) ) {
279
 
280
  $_products_in_term = get_objects_in_term( $term->term_id, $taxonomy );
281
 
282
  set_transient( $transient_name, $_products_in_term );
283
+ //}
284
 
285
+ $option_is_set = ( isset( $_chosen_attributes[$taxonomy] ) && in_array( $term->term_id, $_chosen_attributes[$taxonomy]['terms'] ) );
286
 
287
+ // If this is an AND query, only show options with count > 0
288
+ if ( $query_type == 'and' ) {
289
 
290
+ $count = sizeof( array_intersect( $_products_in_term, $woocommerce->query->filtered_product_ids ) );
291
 
292
+ // skip the term for the current archive
293
+ if ( $current_term == $term->term_id ) {
294
+ continue;
295
+ }
296
 
297
+ if ( $count > 0 && $current_term !== $term->term_id ) {
298
+ $found = true;
299
+ }
300
+
301
+ if ( ( $terms_type_list != 'hierarchical' || ! yit_term_has_child( $term, $taxonomy ) ) && $count == 0 && ! $option_is_set ) {
302
+ continue;
303
+ }
304
+
305
+ // If this is an OR query, show all options so search can be expanded
306
  }
307
+ else {
308
+
309
+ // skip the term for the current archive
310
+ if ( $current_term == $term->term_id ) {
311
+ continue;
312
+ }
313
+
314
+ $count = sizeof( array_intersect( $_products_in_term, $woocommerce->query->unfiltered_product_ids ) );
315
+
316
+ if ( $count > 0 ) {
317
+ $found = true;
318
+ }
319
 
 
 
320
  }
321
 
322
+ $arg = 'filter_' . urldecode( sanitize_title( $instance['attribute'] ) );
323
+
324
+ $current_filter = ( isset( $_GET[$arg] ) ) ? explode( ',', $_GET[$arg] ) : array();
325
 
326
+ if ( ! is_array( $current_filter ) ) {
327
+ $current_filter = array();
 
328
  }
329
 
330
+ $current_filter = array_map( 'esc_attr', $current_filter );
331
 
332
+ if ( ! in_array( $term->term_id, $current_filter ) ) {
333
+ $current_filter[] = $term->term_id;
334
  }
335
 
336
+ if ( defined( 'SHOP_IS_ON_FRONT' ) || is_shop() ) {
337
+ $link = get_post_type_archive_link( 'product' );
338
+ }
339
 
340
+ elseif( is_product_category() ){
341
+ $link = get_term_link( get_queried_object()->slug, 'product_cat' );
342
+ }
343
 
344
+ else {
345
+ $link = get_term_link( get_query_var( 'term' ), get_query_var( 'taxonomy' ) );
346
+ }
347
 
348
+ $link = untrailingslashit( $link );
 
 
349
 
350
+ // All current filters
351
+ if ( $_chosen_attributes ) {
352
+ foreach ( $_chosen_attributes as $name => $data ) {
353
+ if ( $name !== $taxonomy ) {
354
 
355
+ // Exclude query arg for current term archive term
356
+ while ( in_array( $current_term, $data['terms'] ) ) {
357
+ $key = array_search( $current_term, $data );
358
+ unset( $data['terms'][$key] );
359
+ }
360
 
361
+ // Remove pa_ and sanitize
362
+ $filter_name = urldecode( sanitize_title( str_replace( 'pa_', '', $name ) ) );
 
 
 
 
363
 
364
+ if ( ! empty( $data['terms'] ) ) {
365
+ $link = add_query_arg( 'filter_' . $filter_name, implode( ',', $data['terms'] ), $link );
366
+ }
 
367
 
368
+ if ( $data['query_type'] == 'or' ) {
369
+ $link = add_query_arg( 'query_type_' . $filter_name, 'or', $link );
370
+ }
 
371
  }
372
+ }
373
+ }
374
 
375
+ // Min/Max
376
+ if ( isset( $_GET['min_price'] ) ) {
377
+ $link = add_query_arg( 'min_price', $_GET['min_price'], $link );
378
+ }
379
 
380
+ if ( isset( $_GET['max_price'] ) ) {
381
+ $link = add_query_arg( 'max_price', $_GET['max_price'], $link );
382
+ }
383
 
384
+ if ( isset( $_GET['product_tag'] ) ) {
385
+ $link = add_query_arg( 'product_tag', urlencode( $_GET['product_tag'] ), $link );
 
 
386
  }
 
387
 
388
+ // Current Filter = this widget
389
+ if ( isset( $_chosen_attributes[$taxonomy] ) && is_array( $_chosen_attributes[$taxonomy]['terms'] ) && in_array( $term->term_id, $_chosen_attributes[$taxonomy]['terms'] ) ) {
 
 
390
 
391
+ $class = ( $terms_type_list == 'hierarchical' && yit_term_is_child( $term ) ) ? "class='{$is_chosen_class} {$is_child_class}'" : "class='{$is_chosen_class}'";
 
 
392
 
393
+ // Remove this term is $current_filter has more than 1 term filtered
394
+ if ( sizeof( $current_filter ) > 1 ) {
395
+ $current_filter_without_this = array_diff( $current_filter, array( $term->term_id ) );
396
+ $link = add_query_arg( $arg, implode( ',', $current_filter_without_this ), $link );
397
+ }
398
 
399
+ }
400
+ else {
401
+
402
+ $class = ( $terms_type_list == 'hierarchical' && yit_term_is_child( $term ) ) ? "class='{$is_child_class}'" : '';
403
+ $link = add_query_arg( $arg, implode( ',', $current_filter ), $link );
404
 
 
 
 
 
405
  }
406
 
407
+ // Search Arg
408
+ if ( get_search_query() ) {
409
+ $link = add_query_arg( 's', get_search_query(), $link );
410
+ }
411
 
412
+ // Post Type Arg
413
+ if ( isset( $_GET['post_type'] ) ) {
414
+ $link = add_query_arg( 'post_type', $_GET['post_type'], $link );
415
+ }
416
 
417
+ // Query type Arg
418
+ if ( $query_type == 'or' && ! ( sizeof( $current_filter ) == 1 && isset( $_chosen_attributes[$taxonomy]['terms'] ) && is_array( $_chosen_attributes[$taxonomy]['terms'] ) && in_array( $term->term_id, $_chosen_attributes[$taxonomy]['terms'] ) ) ) {
419
+ $link = add_query_arg( 'query_type_' . sanitize_title( $instance['attribute'] ), 'or', $link );
420
+ }
421
 
422
+ echo '<li ' . $class . '>';
 
 
 
423
 
424
+ echo ( $count > 0 || $option_is_set ) ? '<a data-type="select" href="' . esc_url( apply_filters( 'woocommerce_layered_nav_link', $link ) ) . '">' : '<span>';
 
 
 
425
 
426
+ echo $term->name;
 
 
 
427
 
428
+ echo ( $count > 0 || $option_is_set ) ? '</a>' : '</span>';
429
 
430
+ echo '</li>';
431
 
432
+ }
433
 
434
+ echo "</ul>";
435
 
436
+ echo "</div>";
437
 
438
  }
439
+ elseif ( $display_type == 'color' ) {
440
+ // List display
441
+ echo "<ul class='yith-wcan-color yith-wcan yith-wcan-group'>";
442
 
443
+ foreach ( $terms as $term ) {
444
 
445
+ // Get count based on current view - uses transients
446
+ $transient_name = 'wc_ln_count_' . md5( sanitize_key( $taxonomy ) . sanitize_key( $term->term_id ) );
447
 
448
+ //if ( false === ( $_products_in_term = get_transient( $transient_name ) ) ) {
 
 
 
449
 
450
+ $_products_in_term = get_objects_in_term( $term->term_id, $taxonomy );
451
 
452
+ set_transient( $transient_name, $_products_in_term );
453
+ //}
454
 
455
+ $option_is_set = ( isset( $_chosen_attributes[$taxonomy] ) && in_array( $term->term_id, $_chosen_attributes[$taxonomy]['terms'] ) );
456
 
457
+ // If this is an AND query, only show options with count > 0
458
+ if ( $query_type == 'and' ) {
459
 
460
+ $count = sizeof( array_intersect( $_products_in_term, $woocommerce->query->filtered_product_ids ) );
 
461
 
462
+ // skip the term for the current archive
463
+ if ( $current_term == $term->term_id ) {
464
+ continue;
465
+ }
466
 
467
+ if ( $count > 0 && $current_term !== $term->term_id ) {
468
+ $found = true;
469
+ }
470
 
471
+ if ( $count == 0 && ! $option_is_set ) {
472
+ continue;
473
+ }
474
 
475
+ // If this is an OR query, show all options so search can be expanded
 
 
476
  }
477
+ else {
478
 
479
+ // skip the term for the current archive
480
+ if ( $current_term == $term->term_id ) {
481
+ continue;
482
+ }
483
 
484
+ $count = sizeof( array_intersect( $_products_in_term, $woocommerce->query->unfiltered_product_ids ) );
 
 
485
 
486
+ if ( $count > 0 ) {
487
+ $found = true;
488
+ }
489
 
 
 
 
490
  }
491
 
492
+ $arg = 'filter_' . sanitize_title( $instance['attribute'] );
493
+
494
+ $current_filter = ( isset( $_GET[$arg] ) ) ? explode( ',', $_GET[$arg] ) : array();
495
 
496
+ if ( ! is_array( $current_filter ) ) {
497
+ $current_filter = array();
498
  }
499
 
500
+ $current_filter = array_map( 'esc_attr', $current_filter );
501
 
502
+ if ( ! in_array( $term->term_id, $current_filter ) ) {
503
+ $current_filter[] = $term->term_id;
504
+ }
505
 
506
+ if ( defined( 'SHOP_IS_ON_FRONT' ) || is_shop() ) {
507
+ $link = get_post_type_archive_link( 'product' );
508
+ }
509
 
510
+ elseif( is_product_category() ){
511
+ $link = get_term_link( get_queried_object()->slug, 'product_cat' );
512
+ }
513
 
514
+ else {
515
+ $link = get_term_link( get_query_var( 'term' ), get_query_var( 'taxonomy' ) );
516
+ }
517
 
518
+ $link = untrailingslashit( $link );
 
 
519
 
520
+ // All current filters
521
+ if ( $_chosen_attributes ) {
522
+ foreach ( $_chosen_attributes as $name => $data ) {
523
+ if ( $name !== $taxonomy ) {
 
 
524
 
525
+ // Exclude query arg for current term archive term
526
+ while ( in_array( $current_term, $data['terms'] ) ) {
527
+ $key = array_search( $current_term, $data );
528
+ unset( $data['terms'][$key] );
529
+ }
530
 
531
+ // Remove pa_ and sanitize
532
+ $filter_name = sanitize_title( str_replace( 'pa_', '', $name ) );
 
 
 
533
 
534
+ if ( ! empty( $data['terms'] ) ) {
535
+ $link = add_query_arg( 'filter_' . $filter_name, implode( ',', $data['terms'] ), $link );
536
+ }
537
 
538
+ if ( $data['query_type'] == 'or' ) {
539
+ $link = add_query_arg( 'query_type_' . $filter_name, 'or', $link );
540
+ }
 
 
 
541
  }
542
  }
543
  }
 
 
 
 
 
 
 
 
 
 
544
 
545
+ // Min/Max
546
+ if ( isset( $_GET['min_price'] ) ) {
547
+ $link = add_query_arg( 'min_price', $_GET['min_price'], $link );
548
+ }
549
 
550
+ if ( isset( $_GET['max_price'] ) ) {
551
+ $link = add_query_arg( 'max_price', $_GET['max_price'], $link );
552
+ }
553
 
554
+ if ( isset( $_GET['product_tag'] ) ) {
555
+ $link = add_query_arg( 'product_tag', urlencode( $_GET['product_tag'] ), $link );
 
 
556
  }
557
 
558
+ // Current Filter = this widget
559
+ if ( isset( $_chosen_attributes[$taxonomy] ) && is_array( $_chosen_attributes[$taxonomy]['terms'] ) && in_array( $term->term_id, $_chosen_attributes[$taxonomy]['terms'] ) ) {
560
 
561
+ $class = ( $terms_type_list == 'hierarchical' && yit_term_is_child( $term ) ) ? "class='{$is_chosen_class} {$is_child_class}'" : "class='{$is_chosen_class}'";
 
562
 
563
+ // Remove this term is $current_filter has more than 1 term filtered
564
+ if ( sizeof( $current_filter ) > 1 ) {
565
+ $current_filter_without_this = array_diff( $current_filter, array( $term->term_id ) );
566
+ $link = add_query_arg( $arg, implode( ',', $current_filter_without_this ), $link );
567
+ }
568
+ }
569
+ else {
570
+ $class = ( $terms_type_list == 'hierarchical' && yit_term_is_child( $term ) ) ? "class='{$is_child_class}'" : '';
571
+ $link = add_query_arg( $arg, implode( ',', $current_filter ), $link );
572
+ }
573
 
574
+ // Search Arg
575
+ if ( get_search_query() ) {
576
+ $link = add_query_arg( 's', get_search_query(), $link );
577
+ }
578
 
579
+ // Post Type Arg
580
+ if ( isset( $_GET['post_type'] ) ) {
581
+ $link = add_query_arg( 'post_type', $_GET['post_type'], $link );
582
+ }
583
 
584
+ // Query type Arg
585
+ if ( $query_type == 'or' && ! ( sizeof( $current_filter ) == 1 && isset( $_chosen_attributes[$taxonomy]['terms'] ) && is_array( $_chosen_attributes[$taxonomy]['terms'] ) && in_array( $term->term_id, $_chosen_attributes[$taxonomy]['terms'] ) ) ) {
586
+ $link = add_query_arg( 'query_type_' . sanitize_title( $instance['attribute'] ), 'or', $link );
587
+ }
588
 
589
+ $term_id = yit_wcan_localize_terms( $term->term_id, $taxonomy );
 
590
 
591
+ if ( $instance['colors'][$term_id] != '' ) {
592
+ $li_style = apply_filters( "{$args['widget_id']}-li_style", 'background-color:' . $instance['colors'][$term_id] . ';', $instance );
593
 
594
+ echo '<li ' . $class . '>';
595
 
596
+ echo ( $count > 0 || $option_is_set ) ? '<a style="' . $li_style . '" href="' . esc_url( apply_filters( 'woocommerce_layered_nav_link', $link ) ) . '" title="' . $term->name . '" >' : '<span style="background-color:' . $instance['colors'][$term_id] . ';" >';
597
 
598
+ echo $term->name;
599
+
600
+ echo ( $count > 0 || $option_is_set ) ? '</a>' : '</span>';
601
+ }
602
  }
 
603
 
604
+ echo "</ul>";
605
 
606
+ }
607
+ elseif ( $display_type == 'label' ) {
608
+ // List display
609
+ echo "<ul class='yith-wcan-label yith-wcan yith-wcan-group'>";
610
 
611
+ foreach ( $terms as $term ) {
612
 
613
+ // Get count based on current view - uses transients
614
+ $transient_name = 'wc_ln_count_' . md5( sanitize_key( $taxonomy ) . sanitize_key( $term->term_id ) );
615
 
616
+ //if ( false === ( $_products_in_term = get_transient( $transient_name ) ) ) {
617
 
618
  $_products_in_term = get_objects_in_term( $term->term_id, $taxonomy );
619
 
620
  set_transient( $transient_name, $_products_in_term );
621
+ //}
622
 
623
+ $option_is_set = ( isset( $_chosen_attributes[$taxonomy] ) && in_array( $term->term_id, $_chosen_attributes[$taxonomy]['terms'] ) );
624
 
625
+ // If this is an AND query, only show options with count > 0
626
+ if ( $query_type == 'and' ) {
627
 
628
+ $count = sizeof( array_intersect( $_products_in_term, $woocommerce->query->filtered_product_ids ) );
629
 
630
+ // skip the term for the current archive
631
+ if ( $current_term == $term->term_id ) {
632
+ continue;
633
+ }
634
 
635
+ if ( $count > 0 && $current_term !== $term->term_id ) {
636
+ $found = true;
637
+ }
638
+
639
+ if ( $count == 0 && ! $option_is_set ) {
640
+ continue;
641
+ }
642
 
643
+ // If this is an OR query, show all options so search can be expanded
 
644
  }
645
+ else {
646
 
647
+ // skip the term for the current archive
648
+ if ( $current_term == $term->term_id ) {
649
+ continue;
650
+ }
651
 
652
+ $count = sizeof( array_intersect( $_products_in_term, $woocommerce->query->unfiltered_product_ids ) );
 
 
 
653
 
654
+ if ( $count > 0 ) {
655
+ $found = true;
656
+ }
657
 
 
 
658
  }
659
 
660
+ $arg = 'filter_' . sanitize_title( $instance['attribute'] );
661
 
662
+ $current_filter = ( isset( $_GET[$arg] ) ) ? explode( ',', $_GET[$arg] ) : array();
663
 
664
+ if ( ! is_array( $current_filter ) ) {
665
+ $current_filter = array();
666
+ }
667
 
668
+ $current_filter = array_map( 'esc_attr', $current_filter );
 
 
669
 
670
+ if ( ! in_array( $term->term_id, $current_filter ) ) {
671
+ $current_filter[] = $term->term_id;
672
+ }
673
 
674
+ if ( defined( 'SHOP_IS_ON_FRONT' ) || is_shop() ) {
675
+ $link = get_post_type_archive_link( 'product' );
676
+ }
677
 
678
+ elseif( is_product_category() ){
679
+ $link = get_term_link( get_queried_object()->slug, 'product_cat' );
680
+ }
 
 
 
681
 
682
+ else {
683
+ $link = get_term_link( get_query_var( 'term' ), get_query_var( 'taxonomy' ) );
684
+ }
 
685
 
686
+ $link = untrailingslashit( $link );
 
 
 
 
687
 
688
+ // All current filters
689
+ if ( $_chosen_attributes ) {
690
+ foreach ( $_chosen_attributes as $name => $data ) {
691
+ if ( $name !== $taxonomy ) {
692
 
693
+ // Exclude query arg for current term archive term
694
+ while ( in_array( $current_term, $data['terms'] ) ) {
695
+ $key = array_search( $current_term, $data );
696
+ unset( $data['terms'][$key] );
697
+ }
698
+
699
+ // Remove pa_ and sanitize
700
+ $filter_name = sanitize_title( str_replace( 'pa_', '', $name ) );
701
 
702
+ if ( ! empty( $data['terms'] ) ) {
703
+ $link = add_query_arg( 'filter_' . $filter_name, implode( ',', $data['terms'] ), $link );
704
+ }
705
+
706
+ if ( $data['query_type'] == 'or' ) {
707
+ $link = add_query_arg( 'query_type_' . $filter_name, 'or', $link );
708
+ }
709
  }
710
  }
711
  }
 
712
 
713
+ // Min/Max
714
+ if ( isset( $_GET['min_price'] ) ) {
715
+ $link = add_query_arg( 'min_price', $_GET['min_price'], $link );
716
+ }
717
 
718
+ if ( isset( $_GET['max_price'] ) ) {
719
+ $link = add_query_arg( 'max_price', $_GET['max_price'], $link );
720
+ }
721
+
722
+ if ( isset( $_GET['product_tag'] ) ) {
723
+ $link = add_query_arg( 'product_tag', urlencode( $_GET['product_tag'] ), $link );
724
+ }
725
+
726
+ // Current Filter = this widget
727
+ if ( isset( $_chosen_attributes[$taxonomy] ) && is_array( $_chosen_attributes[$taxonomy]['terms'] ) && in_array( $term->term_id, $_chosen_attributes[$taxonomy]['terms'] ) ) {
728
 
729
+ $class = ( $terms_type_list == 'hierarchical' && yit_term_is_child( $term ) ) ? "class='{$is_chosen_class} {$is_child_class}'" : "class='{$is_chosen_class}'";
 
730
 
731
+ // Remove this term is $current_filter has more than 1 term filtered
732
+ if ( sizeof( $current_filter ) > 1 ) {
733
+ $current_filter_without_this = array_diff( $current_filter, array( $term->term_id ) );
734
+ $link = add_query_arg( $arg, implode( ',', $current_filter_without_this ), $link );
735
+ }
736
 
 
 
 
 
737
  }
738
+ else {
739
 
740
+ $class = ( $terms_type_list == 'hierarchical' && yit_term_is_child( $term ) ) ? "class='{$is_child_class}'" : '';
741
+ $link = add_query_arg( $arg, implode( ',', $current_filter ), $link );
742
 
743
+ }
 
744
 
745
+ // Search Arg
746
+ if ( get_search_query() ) {
747
+ $link = add_query_arg( 's', get_search_query(), $link );
748
+ }
749
 
750
+ // Post Type Arg
751
+ if ( isset( $_GET['post_type'] ) ) {
752
+ $link = add_query_arg( 'post_type', $_GET['post_type'], $link );
753
+ }
754
 
755
+ // Query type Arg
756
+ if ( $query_type == 'or' && ! ( sizeof( $current_filter ) == 1 && isset( $_chosen_attributes[$taxonomy]['terms'] ) && is_array( $_chosen_attributes[$taxonomy]['terms'] ) && in_array( $term->term_id, $_chosen_attributes[$taxonomy]['terms'] ) ) ) {
757
+ $link = add_query_arg( 'query_type_' . sanitize_title( $instance['attribute'] ), 'or', $link );
758
+ }
759
 
760
+ $term_id = yit_wcan_localize_terms( $term->term_id, $taxonomy );
 
 
 
761
 
762
+ if ( $instance['labels'][$term_id] != '' ) {
763
 
764
+ echo '<li ' . $class . '>';
765
 
766
+ echo ( $count > 0 || $option_is_set ) ? '<a title="' . $term->name . '" href="' . esc_url( apply_filters( 'woocommerce_layered_nav_link', $link ) ) . '">' : '<span>';
767
 
768
+ echo $instance['labels'][$term_id];
769
 
770
+ echo ( $count > 0 || $option_is_set ) ? '</a>' : '</span>';
771
+ }
772
  }
773
+ echo "</ul>";
 
774
 
775
+ }
776
+ else {
777
+ do_action( "yith_wcan_widget_display_{$display_type}", $args, $instance, $display_type, $terms, $taxonomy );
778
+ }
779
+ // End display type conditional
780
 
781
+ echo $after_widget;
782
 
783
+ if ( ! apply_filters( 'yith_wcan_found_taxonomy', $found ) ) {
784
+ ob_end_clean();
785
+ echo substr( $before_widget, 0, strlen( $before_widget ) - 1 ) . ' style="display:none">' . $after_widget;
786
+ }
787
+ else {
788
+ echo ob_get_clean();
789
+ }
790
  }
791
  }
 
 
792
 
793
+ function form( $instance ) {
794
+ global $woocommerce;
795
+
796
+ $defaults = array(
797
+ 'title' => '',
798
+ 'attribute' => '',
799
+ 'query_type' => 'and',
800
+ 'type' => 'list',
801
+ 'colors' => '',
802
+ 'multicolor' => array(),
803
+ 'labels' => '',
804
+ 'display' => 'all'
805
+ );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
806
 
807
+ $instance = wp_parse_args( (array) $instance, $defaults );
 
 
808
 
809
+ $widget_types = apply_filters( 'yith_wcan_widget_types', array(
810
+ 'list' => __( 'List', 'yith_wc_ajxnav' ),
811
+ 'color' => __( 'Color', 'yith_wc_ajxnav' ),
812
+ 'label' => __( 'Label', 'yith_wc_ajxnav' ),
813
+ 'select' => __( 'Dropdown', 'yith_wc_ajxnav' )
814
+ )
 
 
 
 
 
815
  );
816
  ?>
 
 
817
 
818
+ <p>
819
+ <label>
820
+ <strong><?php _e( 'Title', 'yith_wc_ajxnav' ) ?>:</strong><br />
821
+ <input class="widefat" type="text" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $instance['title']; ?>" />
822
+ </label>
823
+ </p>
824
+
825
+ <p>
826
+ <label for="<?php echo $this->get_field_id( 'type' ); ?>"><strong><?php _e( 'Type:', 'yith_wc_ajxnav' ) ?></strong></label>
827
+ <select class="yith_wcan_type widefat" id="<?php echo esc_attr( $this->get_field_id( 'type' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'type' ) ); ?>">
828
+ <?php foreach ( $widget_types as $type => $label ) : ?>
829
+ <option value="<?php echo $type ?>" <?php selected( $type, $instance['type'] ) ?>><?php echo $label ?></option>
830
+ <?php endforeach; ?>
831
+ </select>
832
+ </p>
833
+
834
+ <?php do_action( 'yith_wcan_after_widget_type' ); ?>
835
+
836
+ <p>
837
+ <label for="<?php echo $this->get_field_id( 'query_type' ); ?>"><?php _e( 'Query Type:', 'yith_wc_ajxnav' ) ?></label>
838
+ <select id="<?php echo esc_attr( $this->get_field_id( 'query_type' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'query_type' ) ); ?>">
839
+ <option value="and" <?php selected( $instance['query_type'], 'and' ); ?>><?php _e( 'AND', 'yith_wc_ajxnav' ); ?></option>
840
+ <option value="or" <?php selected( $instance['query_type'], 'or' ); ?>><?php _e( 'OR', 'yith_wc_ajxnav' ); ?></option>
841
+ </select></p>
842
+
843
+ <p class="yith-wcan-attribute-list" style="display: <?php echo $instance['type'] == 'tags' || $instance['type'] == 'brands' ? 'none' : 'block' ?>;">
844
+ <label for="<?php echo $this->get_field_id( 'attribute' ); ?>"><strong><?php _e( 'Attribute:', 'yith_wc_ajxnav' ) ?></strong></label>
845
+ <select class="yith_wcan_attributes widefat" id="<?php echo esc_attr( $this->get_field_id( 'attribute' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'attribute' ) ); ?>">
846
+ <?php yith_wcan_dropdown_attributes( $instance['attribute'] ); ?>
847
+ </select>
848
+ </p>
849
+
850
+ <p id="yit-wcan-display" class="yit-wcan-display-<?php echo $instance['type'] ?>">
851
+ <label for="<?php echo $this->get_field_id( 'display' ); ?>"><strong><?php _e( 'Display (default All):', 'yith_wc_ajxnav' ) ?></strong></label>
852
+ <select class="yith_wcan_type widefat" id="<?php echo esc_attr( $this->get_field_id( 'display' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'display' ) ); ?>">
853
+ <option value="all" <?php selected( 'all', $instance['display'] ) ?>> <?php _e( 'All (no hierarchical)', 'yith_wc_ajxnav' ) ?></option>
854
+ <option value="hierarchical" <?php selected( 'hierarchical', $instance['display'] ) ?>> <?php _e( 'All (hierarchical)', 'yith_wc_ajxnav' ) ?> </option>
855
+ <option value="parent" <?php selected( 'parent', $instance['display'] ) ?>> <?php _e( 'Only Parent', 'yith_wc_ajxnav' ) ?> </option>
856
+ </select>
857
+ </p>
858
+
859
+ <div class="yith_wcan_placeholder">
860
+ <?php
861
+ $values = array();
862
 
863
+ if ( $instance['type'] == 'color' ) {
864
+ $values = $instance['colors'];
865
+ }
866
 
867
+ if ( $instance['type'] == 'multicolor' ) {
868
+ $values = $instance['multicolor'];
869
+ }
870
 
871
+ elseif ( $instance['type'] == 'label' ) {
872
+ $values = $instance['labels'];
873
+ }
 
 
 
 
 
 
874
 
875
+ yith_wcan_attributes_table(
876
+ $instance['type'],
877
+ $instance['attribute'],
878
+ 'widget-' . $this->id . '-',
879
+ 'widget-' . $this->id_base . '[' . $this->number . ']',
880
+ $values,
881
+ $instance['display']
882
+ );
883
+ ?>
884
+ </div>
885
+ <span class="spinner" style="display: none;"></span>
886
 
887
+ <input type="hidden" name="widget_id" value="widget-<?php echo $this->id ?>-" />
888
+ <input type="hidden" name="widget_name" value="widget-<?php echo $this->id_base ?>[<?php echo $this->number ?>]" />
889
+
890
+ <script>jQuery(document).trigger('yith_colorpicker');</script>
891
+ <?php
892
+ }
893
+
894
+ function update( $new_instance, $old_instance ) {
895
+ global $woocommerce;
896
+
897
+ $instance = $old_instance;
898
+ $instance['title'] = strip_tags( $new_instance['title'] );
899
+ $instance['attribute'] = stripslashes( $new_instance['attribute'] );
900
+ $instance['query_type'] = stripslashes( $new_instance['query_type'] );
901
+ $instance['type'] = stripslashes( $new_instance['type'] );
902
+ $instance['colors'] = $new_instance['colors'];
903
+ $instance['multicolor'] = $new_instance['multicolor'];
904
+ $instance['labels'] = $new_instance['labels'];
905
+ $instance['display'] = $new_instance['display'];
906
+
907
+ return $instance;
908
+ }
909
+
910
+ /**
911
  * Print terms for the element selected
912
  *
913
  * @access public
952
  echo json_encode( $return );
953
  die();
954
  }
955
+ }
 
956
  }
widgets/class.yith-wcan-reset-navigation-widget.php CHANGED
@@ -31,7 +31,9 @@ if ( ! class_exists( 'YITH_WCAN_Reset_Navigation_Widget' ) ) {
31
 
32
  extract( $args );
33
 
34
- if ( ! is_post_type_archive( 'product' ) && ! is_tax( array_merge( (array) $_attributes_array, array( 'product_cat', 'product_tag' ) ) ) ) {
 
 
35
  return;
36
  }
37
 
@@ -51,12 +53,8 @@ if ( ! class_exists( 'YITH_WCAN_Reset_Navigation_Widget' ) ) {
51
  $taxonomy_filter = str_replace( 'pa_', '', $taxonomy );
52
  $link = remove_query_arg( 'filter_' . $taxonomy_filter, $link );
53
  }
54
- if ( isset( $_GET['min_price'] ) ) {
55
- $link = remove_query_arg( 'min_price', $link );
56
- }
57
- if ( isset( $_GET['max_price'] ) ) {
58
- $link = remove_query_arg( 'max_price', $link );
59
- }
60
 
61
  $link = apply_filters( 'yith_woocommerce_reset_filter_link', $link );
62
 
31
 
32
  extract( $args );
33
 
34
+ $attributes_array = ! empty( $_attributes_array ) ? $_attributes_array : array();
35
+
36
+ if ( ! is_post_type_archive( 'product' ) && ! is_tax( array_merge( $attributes_array, apply_filters( 'yith_wcan_product_taxonomy_type', array( 'product_cat', 'product_tag' ) ) ) ) ) {
37
  return;
38
  }
39
 
53
  $taxonomy_filter = str_replace( 'pa_', '', $taxonomy );
54
  $link = remove_query_arg( 'filter_' . $taxonomy_filter, $link );
55
  }
56
+
57
+ $link = remove_query_arg( array( 'min_price', 'max_price', 'product_tag' ), $link );
 
 
 
 
58
 
59
  $link = apply_filters( 'yith_woocommerce_reset_filter_link', $link );
60