YITH WooCommerce Ajax Product Filter - Version 2.4.0

Version Description

  • Tweak: New wordpress translation text domain added
  • Added: Language files called yith-woocommerce-ajax-navigation
  • Removed: All language files called yith_wc_ajxnav
Download this release

Release Info

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

Code changes from version 2.3.1 to 2.4.0

README.txt CHANGED
@@ -3,8 +3,8 @@
3
  Contributors: yithemes
4
  Tags: woocommerce ajax product filter download, woocommerce, widget, ajax, ajax filtered nav, ajax navigation, ajax filtered navigation, woocommerce layered navigation, woocommerce layered nav, product filter, product filters, ajax product filter, woocommerce ajax product filter, woocommerce filters, sidebar filter, sidebar ajax filter, ajax price filter, price filter, product sorting, woocommerce filter, taxonomy filter, attribute filter, attributes filter, woocommerce product sort, ajax sort, woocommerce ajax product filter, advanced product filters, ajax product filters, filters, woocommerce ajax product filters, woocommerce product filters, woocommerce product filters, category filter, attribute filters, woocommerce products filter, woocommerce price filter, yit, yith, yithemes
5
  Requires at least: 4.0
6
- Tested up to: 4.3
7
- Stable tag: 2.3.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -78,6 +78,10 @@ It may be possible that, with the plugin update, some language files will not be
78
  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 as yith_wc_ajxnav-en_GB.po and yith_wc_ajxnav-en_GB.mo.
79
  After renaming the files, you can update/translate the .po file following the classic procedure for translations.
80
 
 
 
 
 
81
  = The widget with WooCommerce filters is not working =
82
  = The page doesn't update after clicking on a WooCommerce filter =
83
 
@@ -155,6 +159,12 @@ If you want to see a demonstration version of the premium plugin, you can see it
155
 
156
  == Changelog ==
157
 
 
 
 
 
 
 
158
  = 2.3.1 =
159
 
160
  * Added: Support to YITH Infinite Scrolling plugin
@@ -300,6 +310,10 @@ Full documentation is available [here](http://yithemes.com/docs-plugins/yith_woo
300
 
301
  == Upgrade notice ==
302
 
 
 
 
 
303
  = 2.2.0 =
304
 
305
  * WordPress 4.3 Support
3
  Contributors: yithemes
4
  Tags: woocommerce ajax product filter download, woocommerce, widget, ajax, ajax filtered nav, ajax navigation, ajax filtered navigation, woocommerce layered navigation, woocommerce layered nav, product filter, product filters, ajax product filter, woocommerce ajax product filter, woocommerce filters, sidebar filter, sidebar ajax filter, ajax price filter, price filter, product sorting, woocommerce filter, taxonomy filter, attribute filter, attributes filter, woocommerce product sort, ajax sort, woocommerce ajax product filter, advanced product filters, ajax product filters, filters, woocommerce ajax product filters, woocommerce product filters, woocommerce product filters, category filter, attribute filters, woocommerce products filter, woocommerce price filter, yit, yith, yithemes
5
  Requires at least: 4.0
6
+ Tested up to: 4.3.1
7
+ Stable tag: 2.4.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
78
  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 as yith_wc_ajxnav-en_GB.po and yith_wc_ajxnav-en_GB.mo.
79
  After renaming the files, you can update/translate the .po file following the classic procedure for translations.
80
 
81
+ = What are the main changes in plugin translation? =
82
+ = Translation issue with the version 2.4.0 =
83
+ Recently YITH WooCommerce Ajax Product Filter has been selected to be included in the "translate.wordpress.org" translate programme. In order to import correctly the plugin strings in the new system, we had to change the text domain form 'yith_wc_ajxnav' to 'yith-woocommerce-ajax-navigation'. Once the plugin will be imported in the translate.wordpress.org system, the translations of other languages will be downloaded directly from WordPress, without using any .po and .mo files. Moreover, users will be able to participate in a more direct way to plugin translations, suggesting texts in their languages in the dedicated tab on translate.wordpress.org. During this transition step, .po and .mo files will be used as always, but in order to be recognized by WordPress, they will need to have a new nomenclature, renaming them in: yith-woocommerce-ajax-navigation-.po yith-woocommerce-ajax-navigation-.mo. 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 as yith-woocommerce-ajax-navigation-en_GB.po and yith-woocommerce-ajax-navigation-en_GB.mo.
84
+
85
  = The widget with WooCommerce filters is not working =
86
  = The page doesn't update after clicking on a WooCommerce filter =
87
 
159
 
160
  == Changelog ==
161
 
162
+ = 2.4.0 =
163
+
164
+ * Tweak: New wordpress translation text domain added
165
+ * Added: Language files called yith-woocommerce-ajax-navigation
166
+ * Removed: All language files called yith_wc_ajxnav
167
+
168
  = 2.3.1 =
169
 
170
  * Added: Support to YITH Infinite Scrolling plugin
310
 
311
  == Upgrade notice ==
312
 
313
+ = 2.4.0 =
314
+
315
+ * Changing translation texdomain for new translate program: "translate.wordpress.org"
316
+
317
  = 2.2.0 =
318
 
319
  * WordPress 4.3 Support
includes/class.yith-wcan-admin.php CHANGED
@@ -139,16 +139,16 @@ if ( ! class_exists( 'YITH_WCAN_Admin' ) ) {
139
  }
140
 
141
  $admin_tabs = array(
142
- 'frontend' => __( 'Front end', 'yith_wc_ajxnav' ),
143
- 'custom-style' => __( 'Custom Style', 'yith_wc_ajxnav' ),
144
- 'premium' => __( 'Premium Version', 'yith_wc_ajxnav' )
145
  );
146
 
147
  $args = array(
148
  'create_menu_page' => true,
149
  'parent_slug' => '',
150
- 'page_title' => __( 'Ajax Product Filter', 'yith_wc_ajxnav' ),
151
- 'menu_title' => __( 'Ajax Product Filter', 'yith_wc_ajxnav' ),
152
  'capability' => 'manage_options',
153
  'parent' => 'wcan',
154
  'parent_page' => 'yit_plugin_panel',
@@ -209,11 +209,11 @@ if ( ! class_exists( 'YITH_WCAN_Admin' ) ) {
209
  * @use plugin_action_links_{$plugin_file_name}
210
  */
211
  public function action_links( $links ) {
212
- $premium_live_text = defined( 'YITH_WCAN_FREE_INIT' ) ? __( 'Premium live demo', 'yith_wc_ajxnav' ) : __( 'Live demo', 'yith_wc_ajxnav' );
213
  $links[] = '<a href="' . $this->_premium_live . '" target="_blank">' . $premium_live_text . '</a>';
214
 
215
  if ( defined( 'YITH_WCAN_FREE_INIT' ) ) {
216
- $links[] = '<a href="' . $this->get_premium_landing_uri() . '" target="_blank">' . __( 'Premium Version', 'yith_wc_ajxnav' ) . '</a>';
217
  }
218
 
219
  return $links;
@@ -237,7 +237,7 @@ if ( ! class_exists( 'YITH_WCAN_Admin' ) ) {
237
  public function plugin_row_meta( $plugin_meta, $plugin_file, $plugin_data, $status ) {
238
 
239
  if ( ( defined( 'YITH_WCAN_INIT' ) && YITH_WCAN_INIT == $plugin_file ) || ( defined( 'YITH_WCAN_FREE_INIT' ) && YITH_WCAN_FREE_INIT == $plugin_file ) ) {
240
- $plugin_meta[] = '<a href="' . $this->_official_documentation . '" target="_blank">' . __( 'Plugin Documentation', 'yith_wc_ajxnav' ) . '</a>';
241
  }
242
  return $plugin_meta;
243
  }
@@ -269,11 +269,11 @@ if ( ! class_exists( 'YITH_WCAN_Admin' ) ) {
269
  $message = __( 'Dear users,
270
  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. Also, the plugin textdomain will change too from "yit" to "yith_wc_ajxnav".
271
  This modification solves the issues about textdomain conflicts generated by some translation/multilanguage plugins you have identified in the past weeks.
272
- If updating the plugin some language files are no more recognized by WordPress, you will just have to rename the language files in the correct format. After renaming the files, you can update/translate the .po file following the classic procedure for translations.', 'yith_wc_ajxnav' );
273
 
274
- $plugin_name = _x( 'YITH WooCommerce Ajax Product Filter', 'Admin(Pointers): Plugin Title', 'yith_wc_ajxnav' );
275
 
276
- $premium_message = sprintf( '%s, <a href="%s" target"_blank">%s</a>.', __( 'YITH WooCommerce Product Filter has been updated with new available options', 'yith_wc_ajxnav' ), $this->_premium_landing, __( 'discover the PREMIUM version', 'yith_wc_ajxnav' ) );
277
 
278
  $args = array();
279
  foreach ( array( 'plugins', 'update' ) as $screen ) {
139
  }
140
 
141
  $admin_tabs = array(
142
+ 'frontend' => __( 'Front end', 'yith-woocommerce-ajax-navigation' ),
143
+ 'custom-style' => __( 'Custom Style', 'yith-woocommerce-ajax-navigation' ),
144
+ 'premium' => __( 'Premium Version', 'yith-woocommerce-ajax-navigation' )
145
  );
146
 
147
  $args = array(
148
  'create_menu_page' => true,
149
  'parent_slug' => '',
150
+ 'page_title' => __( 'Ajax Product Filter', 'yith-woocommerce-ajax-navigation' ),
151
+ 'menu_title' => __( 'Ajax Product Filter', 'yith-woocommerce-ajax-navigation' ),
152
  'capability' => 'manage_options',
153
  'parent' => 'wcan',
154
  'parent_page' => 'yit_plugin_panel',
209
  * @use plugin_action_links_{$plugin_file_name}
210
  */
211
  public function action_links( $links ) {
212
+ $premium_live_text = defined( 'YITH_WCAN_FREE_INIT' ) ? __( 'Premium live demo', 'yith-woocommerce-ajax-navigation' ) : __( 'Live demo', 'yith-woocommerce-ajax-navigation' );
213
  $links[] = '<a href="' . $this->_premium_live . '" target="_blank">' . $premium_live_text . '</a>';
214
 
215
  if ( defined( 'YITH_WCAN_FREE_INIT' ) ) {
216
+ $links[] = '<a href="' . $this->get_premium_landing_uri() . '" target="_blank">' . __( 'Premium Version', 'yith-woocommerce-ajax-navigation' ) . '</a>';
217
  }
218
 
219
  return $links;
237
  public function plugin_row_meta( $plugin_meta, $plugin_file, $plugin_data, $status ) {
238
 
239
  if ( ( defined( 'YITH_WCAN_INIT' ) && YITH_WCAN_INIT == $plugin_file ) || ( defined( 'YITH_WCAN_FREE_INIT' ) && YITH_WCAN_FREE_INIT == $plugin_file ) ) {
240
+ $plugin_meta[] = '<a href="' . $this->_official_documentation . '" target="_blank">' . __( 'Plugin Documentation', 'yith-woocommerce-ajax-navigation' ) . '</a>';
241
  }
242
  return $plugin_meta;
243
  }
269
  $message = __( 'Dear users,
270
  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. Also, the plugin textdomain will change too from "yit" to "yith_wc_ajxnav".
271
  This modification solves the issues about textdomain conflicts generated by some translation/multilanguage plugins you have identified in the past weeks.
272
+ If updating the plugin some language files are no more recognized by WordPress, you will just have to rename the language files in the correct format. After renaming the files, you can update/translate the .po file following the classic procedure for translations.', 'yith-woocommerce-ajax-navigation' );
273
 
274
+ $plugin_name = _x( 'YITH WooCommerce Ajax Product Filter', 'Admin(Pointers): Plugin Title', 'yith-woocommerce-ajax-navigation' );
275
 
276
+ $premium_message = sprintf( '%s, <a href="%s" target"_blank">%s</a>.', __( 'YITH WooCommerce Product Filter has been updated with new available options', 'yith-woocommerce-ajax-navigation' ), $this->_premium_landing, __( 'discover the PREMIUM version', 'yith-woocommerce-ajax-navigation' ) );
277
 
278
  $args = array();
279
  foreach ( array( 'plugins', 'update' ) as $screen ) {
includes/functions.yith-wcan.php CHANGED
@@ -54,7 +54,7 @@ function yith_wcan_attributes_table( $type, $attribute, $id, $name, $values = ar
54
 
55
  elseif ( 'color' == $type ) {
56
  if ( ! empty( $terms ) ) {
57
- $return = sprintf( '<table><tr><th>%s</th><th>%s</th></tr>', __( 'Term', 'yith_wc_ajxnav' ), __( 'Color', 'yith_wc_ajxnav' ) );
58
 
59
  foreach ( $terms as $term ) {
60
  $return .= "<tr><td><label for='{$id}{$term->term_id}'>{$term->name}</label></td><td><input type='text' id='{$id}{$term->term_id}' name='{$name}[colors][{$term->term_id}]' value='" . ( isset( $values[$term->term_id] ) ? $values[$term->term_id] : '' ) . "' size='3' class='yith-colorpicker' /></td></tr>";
@@ -68,7 +68,7 @@ function yith_wcan_attributes_table( $type, $attribute, $id, $name, $values = ar
68
 
69
  elseif ( 'multicolor' == $type ) {
70
  if ( ! empty( $terms ) ) {
71
- $return = sprintf( '<table class="yith-wcan-multicolor"><tr><th>%s</th><th>%s</th><th>%s</th></tr>', __( 'Term', 'yith_wc_ajxnav' ), _x( 'Color 1', 'For multicolor: I.E. white and red T-Shirt', 'yith_wc_ajxnav' ), _x( 'Color 2', 'For multicolor: I.E. white and red T-Shirt', 'yith_wc_ajxnav' ) );
72
 
73
  foreach ( $terms as $term ) {
74
 
@@ -90,7 +90,7 @@ function yith_wcan_attributes_table( $type, $attribute, $id, $name, $values = ar
90
 
91
  elseif ( 'label' == $type ) {
92
  if ( ! empty( $terms ) ) {
93
- $return = sprintf( '<table><tr><th>%s</th><th>%s</th></tr>', __( 'Term', 'yith_wc_ajxnav' ), __( 'Labels', 'yith_wc_ajxnav' ) );
94
 
95
  foreach ( $terms as $term ) {
96
  $return .= "<tr><td><label for='{$id}{$term->term_id}'>{$term->name}</label></td><td><input type='text' id='{$id}{$term->term_id}' name='{$name}[labels][{$term->term_id}]' value='" . ( isset( $values[$term->term_id] ) ? $values[$term->term_id] : '' ) . "' size='3' /></td></tr>";
54
 
55
  elseif ( 'color' == $type ) {
56
  if ( ! empty( $terms ) ) {
57
+ $return = sprintf( '<table><tr><th>%s</th><th>%s</th></tr>', __( 'Term', 'yith-woocommerce-ajax-navigation' ), __( 'Color', 'yith-woocommerce-ajax-navigation' ) );
58
 
59
  foreach ( $terms as $term ) {
60
  $return .= "<tr><td><label for='{$id}{$term->term_id}'>{$term->name}</label></td><td><input type='text' id='{$id}{$term->term_id}' name='{$name}[colors][{$term->term_id}]' value='" . ( isset( $values[$term->term_id] ) ? $values[$term->term_id] : '' ) . "' size='3' class='yith-colorpicker' /></td></tr>";
68
 
69
  elseif ( 'multicolor' == $type ) {
70
  if ( ! empty( $terms ) ) {
71
+ $return = sprintf( '<table class="yith-wcan-multicolor"><tr><th>%s</th><th>%s</th><th>%s</th></tr>', __( 'Term', 'yith-woocommerce-ajax-navigation' ), _x( 'Color 1', 'For multicolor: I.E. white and red T-Shirt', 'yith-woocommerce-ajax-navigation' ), _x( 'Color 2', 'For multicolor: I.E. white and red T-Shirt', 'yith-woocommerce-ajax-navigation' ) );
72
 
73
  foreach ( $terms as $term ) {
74
 
90
 
91
  elseif ( 'label' == $type ) {
92
  if ( ! empty( $terms ) ) {
93
+ $return = sprintf( '<table><tr><th>%s</th><th>%s</th></tr>', __( 'Term', 'yith-woocommerce-ajax-navigation' ), __( 'Labels', 'yith-woocommerce-ajax-navigation' ) );
94
 
95
  foreach ( $terms as $term ) {
96
  $return .= "<tr><td><label for='{$id}{$term->term_id}'>{$term->name}</label></td><td><input type='text' id='{$id}{$term->term_id}' name='{$name}[labels][{$term->term_id}]' value='" . ( isset( $values[$term->term_id] ) ? $values[$term->term_id] : '' ) . "' size='3' /></td></tr>";
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.3.1
7
  * Author: yithemes
8
  * Author URI: http://yithemes.com/
9
  * Text Domain: yith_wc_ajxnav
@@ -43,7 +43,7 @@ if( ! function_exists( 'install_premium_woocommerce_admin_notice' ) ) {
43
  */
44
  function install_premium_woocommerce_admin_notice() { ?>
45
  <div class="error">
46
- <p><?php _e( 'YITH WooCommerce Ajax Product Filter is enabled but not effective. It requires WooCommerce in order to work.', 'yith_wc_ajxnav' ); ?></p>
47
  </div>
48
  <?php
49
  }
@@ -55,7 +55,7 @@ if ( ! function_exists( 'WC' ) ) {
55
  return;
56
  }
57
 
58
- load_plugin_textdomain( 'yith_wc_ajxnav', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
59
 
60
  //Stop activation if the premium version of the same plugin is still active
61
  if ( defined( 'YITH_WCAN_VERSION' ) ) {
@@ -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.3.1' );
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.4.0
7
  * Author: yithemes
8
  * Author URI: http://yithemes.com/
9
  * Text Domain: yith_wc_ajxnav
43
  */
44
  function install_premium_woocommerce_admin_notice() { ?>
45
  <div class="error">
46
+ <p><?php _e( 'YITH WooCommerce Ajax Product Filter is enabled but not effective. It requires WooCommerce in order to work.', 'yith-woocommerce-ajax-navigation' ); ?></p>
47
  </div>
48
  <?php
49
  }
55
  return;
56
  }
57
 
58
+ load_plugin_textdomain( 'yith-woocommerce-ajax-navigation', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
59
 
60
  //Stop activation if the premium version of the same plugin is still active
61
  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.4.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-woocommerce-ajax-navigation-it_IT.mo ADDED
Binary file
languages/{yith_wc_ajxnav-it_IT.po → yith-woocommerce-ajax-navigation-it_IT.po} RENAMED
@@ -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-09-17 14:37+0100\n"
6
- "PO-Revision-Date: 2015-09-17 14:37+0100\n"
7
  "Last-Translator: Your Inspiration Themes <plugins@yithemes.com>\n"
8
  "Language-Team: \n"
9
  "Language: it_IT\n"
@@ -193,22 +193,24 @@ msgid ""
193
  "Upgrade to %1$spremium version%2$s of %1$sYITH WooCommerce Ajax Product "
194
  "Filter%2$s to benefit from all features!"
195
  msgstr ""
 
 
196
 
197
  #: templates/admin/premium.php:206 templates/admin/premium.php:316
198
  msgid "UPGRADE"
199
- msgstr ""
200
 
201
  #: templates/admin/premium.php:207 templates/admin/premium.php:317
202
  msgid "to the premium version"
203
- msgstr ""
204
 
205
  #: templates/admin/premium.php:213
206
  msgid "Premium Features"
207
- msgstr ""
208
 
209
  #: templates/admin/premium.php:221
210
  msgid "Two more layouts"
211
- msgstr ""
212
 
213
  #: templates/admin/premium.php:224
214
  #, php-format
@@ -222,10 +224,19 @@ msgid ""
222
  "On%2$s plugin, you will be able to offer the freedom to filter your shop "
223
  "products by brands thanks to the ajax technology."
224
  msgstr ""
 
 
 
 
 
 
 
 
 
225
 
226
  #: templates/admin/premium.php:234
227
  msgid "Price range"
228
- msgstr ""
229
 
230
  #: templates/admin/premium.php:237
231
  #, php-format
@@ -235,10 +246,16 @@ msgid ""
235
  "Price Filter, %1$syou can set unlimited price ranges:%2$s your users will be "
236
  "able to filter products selecting on the ranges you have set."
237
  msgstr ""
 
 
 
 
 
 
238
 
239
  #: templates/admin/premium.php:253
240
  msgid "Ajax Stock/On Sale Filters"
241
- msgstr ""
242
 
243
  #: templates/admin/premium.php:256
244
  #, php-format
@@ -248,10 +265,14 @@ msgid ""
248
  "the available ones.%3$s %1$sAn additional feature for an e-commerce site "
249
  "that is worthy!%2$s"
250
  msgstr ""
 
 
 
 
251
 
252
  #: templates/admin/premium.php:266
253
  msgid "Product sorting"
254
- msgstr ""
255
 
256
  #: templates/admin/premium.php:269
257
  #, php-format
@@ -261,20 +282,27 @@ msgid ""
261
  "need to reload the page. Products can be sorted by rate, sales, price or "
262
  "publication date."
263
  msgstr ""
 
 
 
 
264
 
265
  #: templates/admin/premium.php:285
266
  msgid "Customized loader"
267
- msgstr ""
268
 
269
  #: templates/admin/premium.php:288
270
  msgid ""
271
  "From the plugin option panel, you can choose to upload a new icon for your "
272
  "loader: in this way, it will better meet your needs."
273
  msgstr ""
 
 
 
274
 
275
  #: templates/admin/premium.php:298
276
  msgid "WooCommerce Price Filter"
277
- msgstr ""
278
 
279
  #: templates/admin/premium.php:301
280
  msgid ""
@@ -282,6 +310,9 @@ msgid ""
282
  "WooCommerce Price Filter widget, changing the settings you can find in the "
283
  "plugin option panel."
284
  msgstr ""
 
 
 
285
 
286
  #: widgets/class.yith-wcan-navigation-widget.php:23
287
  msgid "Filter the product list without reloading the page"
2
  msgstr ""
3
  "Project-Id-Version: YITH WooCommerce Ajax Product Filter\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2015-09-25 10:01+0100\n"
6
+ "PO-Revision-Date: 2015-09-25 10:01+0100\n"
7
  "Last-Translator: Your Inspiration Themes <plugins@yithemes.com>\n"
8
  "Language-Team: \n"
9
  "Language: it_IT\n"
193
  "Upgrade to %1$spremium version%2$s of %1$sYITH WooCommerce Ajax Product "
194
  "Filter%2$s to benefit from all features!"
195
  msgstr ""
196
+ "Aggiorna alla %1$sversione premium%2$s di %1$sYITH WooCommerce Ajax Product "
197
+ "Filter%2$s per beneficiare di tutte le funzionalità!"
198
 
199
  #: templates/admin/premium.php:206 templates/admin/premium.php:316
200
  msgid "UPGRADE"
201
+ msgstr "AGGIORNA"
202
 
203
  #: templates/admin/premium.php:207 templates/admin/premium.php:317
204
  msgid "to the premium version"
205
+ msgstr "alla versione premium"
206
 
207
  #: templates/admin/premium.php:213
208
  msgid "Premium Features"
209
+ msgstr "Caratteristiche Premium"
210
 
211
  #: templates/admin/premium.php:221
212
  msgid "Two more layouts"
213
+ msgstr "Due layout aggiuntivi"
214
 
215
  #: templates/admin/premium.php:224
216
  #, php-format
224
  "On%2$s plugin, you will be able to offer the freedom to filter your shop "
225
  "products by brands thanks to the ajax technology."
226
  msgstr ""
227
+ "Il widget YITH WooCommerce Ajax Product Filter si arricchisce ulteriormente "
228
+ "di 2 nuove tipologie di layout per il filtro dei prodotti del tuo shop. "
229
+ "%1$sBicolor%2$s, perfetto per quegli attributi (di tipo colore) che fanno "
230
+ "riferimento a due colori contemporaneamente (bianco/nero), per un impatto "
231
+ "visivo agevole per l’utente finale. Scegli la tipologia %1$sTag%2$s se "
232
+ "invece vuoi che i tuoi prodotti possano essere filtrati per tag di prodotto. "
233
+ "Se stai usando contemporaneamente anche %1$sYITH WooCommerce Brand Add-On"
234
+ "%2$s, potrai offrire la possibilità di filtrare per brand i prodotti del tuo "
235
+ "shop grazie alla tecnologia ajax."
236
 
237
  #: templates/admin/premium.php:234
238
  msgid "Price range"
239
+ msgstr "Fascia di prezzo"
240
 
241
  #: templates/admin/premium.php:237
242
  #, php-format
246
  "Price Filter, %1$syou can set unlimited price ranges:%2$s your users will be "
247
  "able to filter products selecting on the ranges you have set."
248
  msgstr ""
249
+ "Uno dei filtri maggiormente richiesti dagli utenti all’interno di un e-"
250
+ "commerce interessa la possibilità di fare una selezione di prodotti sulla "
251
+ "base del prezzo. Grazie a YITH WooCommerce Ajax List Price Filter %1$spotrai "
252
+ "definire infiniti range di prezzo%2$s, così da permettere ai tuoi utenti di "
253
+ "filtrare i prodotti selezionando uno degli intervalli di prezzo da te "
254
+ "definiti."
255
 
256
  #: templates/admin/premium.php:253
257
  msgid "Ajax Stock/On Sale Filters"
258
+ msgstr "Filtri Ajax Disponibili/In Saldo"
259
 
260
  #: templates/admin/premium.php:256
261
  #, php-format
265
  "the available ones.%3$s %1$sAn additional feature for an e-commerce site "
266
  "that is worthy!%2$s"
267
  msgstr ""
268
+ "Ancora un widget novità per la versione premium del plugin. Con esso "
269
+ "chiunque si trovi a navigare tra le pagine del tuo shop potrà visualizzare "
270
+ "solo i prodotti in saldo e/o i prodotti al momento disponibili.%3$s %1$sUna "
271
+ "caratteristica aggiuntiva per un e-commerce che vale!%2$s"
272
 
273
  #: templates/admin/premium.php:266
274
  msgid "Product sorting"
275
+ msgstr "Ordinamento prodotti"
276
 
277
  #: templates/admin/premium.php:269
278
  #, php-format
282
  "need to reload the page. Products can be sorted by rate, sales, price or "
283
  "publication date."
284
  msgstr ""
285
+ "Con il nuovo widget %1$sYITH WooCommerce Disposizione Ajax%2$s dai ai tuoi "
286
+ "utenti la possibilità di ordinare in ajax i prodotti, senza la necessità di "
287
+ "dover attendere che la pagina ricarichi. L’ordinamento può essere fatto in "
288
+ "base al rating, numero di vendite, prezzo o data di pubblicazione."
289
 
290
  #: templates/admin/premium.php:285
291
  msgid "Customized loader"
292
+ msgstr "Loader personalizzato"
293
 
294
  #: templates/admin/premium.php:288
295
  msgid ""
296
  "From the plugin option panel, you can choose to upload a new icon for your "
297
  "loader: in this way, it will better meet your needs."
298
  msgstr ""
299
+ "Direttamente dal pannello opzioni del plugin potrai scegliere di effettuare "
300
+ "l’upload di una nuova icona per il loader, nel caso quello di default non "
301
+ "faccia al caso tuo."
302
 
303
  #: templates/admin/premium.php:298
304
  msgid "WooCommerce Price Filter"
305
+ msgstr "WooCommerce Price Filter"
306
 
307
  #: templates/admin/premium.php:301
308
  msgid ""
310
  "WooCommerce Price Filter widget, changing the settings you can find in the "
311
  "plugin option panel."
312
  msgstr ""
313
+ "Con la versione premium del plugin avrai anche la possibilità di "
314
+ "personalizzare il widget WooCommerce Price Filter, modificando le apposite "
315
+ "impostazioni che sono state inserite nel pannello opzioni del plugin."
316
 
317
  #: widgets/class.yith-wcan-navigation-widget.php:23
318
  msgid "Filter the product list without reloading the page"
languages/{yith_wc_ajxnav-tr_TR.mo → yith-woocommerce-ajax-navigation-tr_TR.mo} RENAMED
Binary file
languages/{yith_wc_ajxnav-tr_TR.po → yith-woocommerce-ajax-navigation-tr_TR.po} RENAMED
@@ -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-09-17 14:37+0100\n"
6
- "PO-Revision-Date: 2015-09-17 14: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"
@@ -241,7 +241,8 @@ msgid "Type"
241
  msgstr ""
242
 
243
  #: plugin-fw/lib/yit-cpt-unlimited.php:1052
244
- msgid "Layout for this "
 
245
  msgstr ""
246
 
247
  #: plugin-fw/lib/yit-cpt-unlimited.php:1058
2
  msgstr ""
3
  "Project-Id-Version: YITH WooCommerce Ajax Product filter\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2015-09-25 10:01+0100\n"
6
+ "PO-Revision-Date: 2015-09-25 10:01+0100\n"
7
  "Last-Translator: Caner Öncel <caneroncel@gmail.com>\n"
8
  "Language-Team: Caner Öncel <caneroncel@gmail.com>\n"
9
  "Language: tr\n"
241
  msgstr ""
242
 
243
  #: plugin-fw/lib/yit-cpt-unlimited.php:1052
244
+ #, php-format
245
+ msgid "Layout for this %s"
246
  msgstr ""
247
 
248
  #: plugin-fw/lib/yit-cpt-unlimited.php:1058
languages/{yith_wc_ajxnav.pot → yith-woocommerce-ajax-navigation.pot} RENAMED
@@ -3,7 +3,7 @@ msgid ""
3
  msgstr ""
4
  "Project-Id-Version: YITH WooCommerce Ajax Product Filter\n"
5
  "Report-Msgid-Bugs-To: \n"
6
- "POT-Creation-Date: 2015-09-17 14: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"
@@ -243,7 +243,8 @@ msgid "Type"
243
  msgstr ""
244
 
245
  #: plugin-fw/lib/yit-cpt-unlimited.php:1052
246
- msgid "Layout for this "
 
247
  msgstr ""
248
 
249
  #: plugin-fw/lib/yit-cpt-unlimited.php:1058
3
  msgstr ""
4
  "Project-Id-Version: YITH WooCommerce Ajax Product Filter\n"
5
  "Report-Msgid-Bugs-To: \n"
6
+ "POT-Creation-Date: 2015-09-25 10:01+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"
243
  msgstr ""
244
 
245
  #: plugin-fw/lib/yit-cpt-unlimited.php:1052
246
+ #, php-format
247
+ msgid "Layout for this %s"
248
  msgstr ""
249
 
250
  #: plugin-fw/lib/yit-cpt-unlimited.php:1058
languages/yith_wc_ajxnav-it_IT.mo DELETED
Binary file
plugin-fw/lib/yit-cpt-unlimited.php CHANGED
@@ -1049,7 +1049,7 @@ class YIT_CPT_Unlimited {
1049
  'fields' => apply_filters( 'yit_cptu_fields', array(
1050
  'type' => array(
1051
  'label' => __( 'Type', 'yith-plugin-fw' ),
1052
- 'desc' => __( 'Layout for this '.strtolower( $this->_labels['singular'] ) , 'yith-plugin-fw' ),
1053
  'type' => 'select',
1054
  'options' => isset( $layouts ) ? $layouts : array(),
1055
  'std' => '' ),
1049
  'fields' => apply_filters( 'yit_cptu_fields', array(
1050
  'type' => array(
1051
  'label' => __( 'Type', 'yith-plugin-fw' ),
1052
+ 'desc' => sprintf( __( 'Layout for this %s' , 'yith-plugin-fw' ), strtolower( $this->_labels['singular'] ) ),
1053
  'type' => 'select',
1054
  'options' => isset( $layouts ) ? $layouts : array(),
1055
  'std' => '' ),
plugin-fw/lib/yit-plugin-panel-wc.php CHANGED
@@ -365,8 +365,7 @@ if ( ! class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
365
  * @return array Filtered body classes
366
  */
367
  public function admin_body_class( $admin_body_classes ){
368
- $admin_body_classes .= ' woocommerce ';
369
- return $admin_body_classes;
370
  }
371
 
372
  /**
365
  * @return array Filtered body classes
366
  */
367
  public function admin_body_class( $admin_body_classes ){
368
+ return substr_count( $admin_body_classes, 'woocommerce' ) == 0 ? $admin_body_classes .= ' woocommerce ' : $admin_body_classes;
 
369
  }
370
 
371
  /**
plugin-fw/lib/yit-upgrade.php CHANGED
@@ -262,7 +262,7 @@ if ( ! class_exists( 'YIT_Upgrade' ) ) {
262
 
263
  //WARNING: The file is not automatically deleted, The script must unlink() the file.
264
  if ( ! $url ) {
265
- return new WP_Error( 'http_no_url', __( 'Invalid URL Provided.' ) );
266
  }
267
 
268
  $tmpfname = wp_tempnam( $url );
@@ -275,7 +275,7 @@ if ( ! class_exists( 'YIT_Upgrade' ) ) {
275
  );
276
 
277
  if ( ! $tmpfname ) {
278
- return new WP_Error( 'http_no_file', __( 'Could not create Temporary file.' ) );
279
  }
280
 
281
  $response = wp_safe_remote_post( $url, $args );
@@ -507,7 +507,7 @@ if ( ! class_exists( 'YIT_Upgrade' ) ) {
507
 
508
  check_admin_referer( 'upgrade-plugin-multisite_' . $plugin );
509
 
510
- $title = __( 'Update Plugin' );
511
  $parent_file = 'plugins.php';
512
  $submenu_file = 'plugins.php';
513
 
262
 
263
  //WARNING: The file is not automatically deleted, The script must unlink() the file.
264
  if ( ! $url ) {
265
+ return new WP_Error( 'http_no_url', __( 'Invalid URL Provided.', 'yit' ) );
266
  }
267
 
268
  $tmpfname = wp_tempnam( $url );
275
  );
276
 
277
  if ( ! $tmpfname ) {
278
+ return new WP_Error( 'http_no_file', __( 'Could not create Temporary file.', 'yit' ) );
279
  }
280
 
281
  $response = wp_safe_remote_post( $url, $args );
507
 
508
  check_admin_referer( 'upgrade-plugin-multisite_' . $plugin );
509
 
510
+ $title = __( 'Update Plugin', 'yith-plugin-fw' );
511
  $parent_file = 'plugins.php';
512
  $submenu_file = 'plugins.php';
513
 
plugin-fw/templates/metaboxes/types/categories.php CHANGED
@@ -43,7 +43,7 @@ $categories = yit_get_model('cpt_unlimited')->get_setting( 'categories', $post->
43
  </h4>
44
  <p class="category-add-field" id="<?php echo $id ?>-category-field">
45
  <input type="text" class="newcategory" name="newcategory" style="width:100%;" id="<?php echo $id ?>-new-category" />
46
- <input type="button" value="<?php esc_attr_e( 'Add' ); ?>" class="add:categorychecklist:category-add button category-add-submit" id="<?php echo $id ?>-category-add-submit" />
47
  </p>
48
  </div>
49
  </div>
43
  </h4>
44
  <p class="category-add-field" id="<?php echo $id ?>-category-field">
45
  <input type="text" class="newcategory" name="newcategory" style="width:100%;" id="<?php echo $id ?>-new-category" />
46
+ <input type="button" value="<?php esc_attr_e( 'Add', 'yit' ); ?>" class="add:categorychecklist:category-add button category-add-submit" id="<?php echo $id ?>-category-add-submit" />
47
  </p>
48
  </div>
49
  </div>
settings/custom-style-options.php CHANGED
@@ -9,7 +9,7 @@ $custom_style = array(
9
  array( 'type' => 'open' ),
10
 
11
  array(
12
- 'name' => __( 'Custom Style', 'yith_wc_ajxnav' ),
13
  'type' => 'title'
14
  ),
15
 
@@ -21,7 +21,7 @@ $custom_style = array(
21
  array( 'type' => 'open' ),
22
 
23
  array(
24
- 'name' => __( 'Put here your custom CSS rules:', 'yith_wc_ajxnav' ),
25
  'desc' => '',
26
  'id' => 'yith_wcan_custom_style',
27
  'type' => 'textarea',
9
  array( 'type' => 'open' ),
10
 
11
  array(
12
+ 'name' => __( 'Custom Style', 'yith-woocommerce-ajax-navigation' ),
13
  'type' => 'title'
14
  ),
15
 
21
  array( 'type' => 'open' ),
22
 
23
  array(
24
+ 'name' => __( 'Put here your custom CSS rules:', 'yith-woocommerce-ajax-navigation' ),
25
  'desc' => '',
26
  'id' => 'yith_wcan_custom_style',
27
  'type' => 'textarea',
settings/frontend-options.php CHANGED
@@ -9,7 +9,7 @@ $frontend = array(
9
  array( 'type' => 'open' ),
10
 
11
  array(
12
- 'name' => __( 'General Settings', 'yith_wc_ajxnav' ),
13
  'type' => 'title'
14
  ),
15
 
@@ -22,32 +22,32 @@ $frontend = array(
22
 
23
  array(
24
  'id' => 'yith_wcan_frontend_description',
25
- 'name' => _x( 'How To:', 'Admin panel: option description', 'yith_wc_ajxnav' ),
26
  'type' => 'wcan_description',
27
  'desc' => _x( "If your theme use the WooCommerce standard templates, you don't need to change the following values.
28
  Otherwise, add the classes used in the template of your theme.
29
- If you don't know them, please contact the developer of your theme to receive the correct classes.", 'Admin: Panel section description', 'yith_wc_ajxnav' ),
30
  ),
31
 
32
  array(
33
- 'name' => __( 'Product Container', 'yith_wc_ajxnav' ),
34
- 'desc' => __( 'Put here the CSS class or id for the product container', 'yith_wc_ajxnav' ) . ' (Default: <strong>.products</strong>)',
35
  'id' => 'yith_wcan_ajax_shop_container',
36
  'type' => 'text',
37
  'std' => '.products'
38
  ),
39
 
40
  array(
41
- 'name' => __( 'Shop Pagination Container', 'yith_wc_ajxnav' ),
42
- 'desc' => __( 'Put here the CSS class or id for the shop pagination container', 'yith_wc_ajxnav' ) . ' (Default: <strong>nav.woocommerce-pagination</strong>)',
43
  'id' => 'yith_wcan_ajax_shop_pagination',
44
  'type' => 'text',
45
  'std' => 'nav.woocommerce-pagination'
46
  ),
47
 
48
  array(
49
- 'name' => __( 'Result Count Container', 'yith_wc_ajxnav' ),
50
- 'desc' => __( 'Put here the CSS class or id for the result count container', 'yith_wc_ajxnav' ) . ' (Default: <strong>.woocommerce-result-count</strong>)',
51
  'id' => 'yith_wcan_ajax_shop_result_container',
52
  'type' => 'text',
53
  'std' => '.woocommerce-result-count'
9
  array( 'type' => 'open' ),
10
 
11
  array(
12
+ 'name' => __( 'General Settings', 'yith-woocommerce-ajax-navigation' ),
13
  'type' => 'title'
14
  ),
15
 
22
 
23
  array(
24
  'id' => 'yith_wcan_frontend_description',
25
+ 'name' => _x( 'How To:', 'Admin panel: option description', 'yith-woocommerce-ajax-navigation' ),
26
  'type' => 'wcan_description',
27
  'desc' => _x( "If your theme use the WooCommerce standard templates, you don't need to change the following values.
28
  Otherwise, add the classes used in the template of your theme.
29
+ If you don't know them, please contact the developer of your theme to receive the correct classes.", 'Admin: Panel section description', 'yith-woocommerce-ajax-navigation' ),
30
  ),
31
 
32
  array(
33
+ 'name' => __( 'Product Container', 'yith-woocommerce-ajax-navigation' ),
34
+ 'desc' => __( 'Put here the CSS class or id for the product container', 'yith-woocommerce-ajax-navigation' ) . ' (Default: <strong>.products</strong>)',
35
  'id' => 'yith_wcan_ajax_shop_container',
36
  'type' => 'text',
37
  'std' => '.products'
38
  ),
39
 
40
  array(
41
+ 'name' => __( 'Shop Pagination Container', 'yith-woocommerce-ajax-navigation' ),
42
+ 'desc' => __( 'Put here the CSS class or id for the shop pagination container', 'yith-woocommerce-ajax-navigation' ) . ' (Default: <strong>nav.woocommerce-pagination</strong>)',
43
  'id' => 'yith_wcan_ajax_shop_pagination',
44
  'type' => 'text',
45
  'std' => 'nav.woocommerce-pagination'
46
  ),
47
 
48
  array(
49
+ 'name' => __( 'Result Count Container', 'yith-woocommerce-ajax-navigation' ),
50
+ 'desc' => __( 'Put here the CSS class or id for the result count container', 'yith-woocommerce-ajax-navigation' ) . ' (Default: <strong>.woocommerce-result-count</strong>)',
51
  'id' => 'yith_wcan_ajax_shop_result_container',
52
  'type' => 'text',
53
  'std' => '.woocommerce-result-count'
templates/admin/premium.php CHANGED
@@ -200,17 +200,17 @@
200
  <div class="landing-container">
201
  <div class="premium-cta">
202
  <p>
203
- <?php echo sprintf( __('Upgrade to %1$spremium version%2$s of %1$sYITH WooCommerce Ajax Product Filter%2$s to benefit from all features!','yith_wc_ajxnav'),'<span class="highlight">','</span>' );?>
204
  </p>
205
  <a href="<?php echo $this->get_premium_landing_uri() ?>" target="_blank" class="premium-cta-button button btn">
206
- <span class="highlight"><?php _e('UPGRADE','yith_wc_ajxnav');?></span>
207
- <span><?php _e('to the premium version','yith_wc_ajxnav');?></span>
208
  </a>
209
  </div>
210
  </div>
211
  </div>
212
  <div class="section section-even clear" style="background: url(<?php echo YITH_WCAN_URL ?>assets/images/01-bg.png) no-repeat #fff; background-position: 85% 75%">
213
- <h1><?php _e('Premium Features','yith_wc_ajxnav');?></h1>
214
  <div class="landing-container">
215
  <div class="col-1">
216
  <img src="<?php echo YITH_WCAN_URL ?>assets/images/01.png" alt="layouts" />
@@ -218,10 +218,10 @@
218
  <div class="col-2">
219
  <div class="section-title">
220
  <img src="<?php echo YITH_WCAN_URL ?>assets/images/01-icon.png" alt="icon 01"/>
221
- <h2><?php _e('Two more layouts','yith_wc_ajxnav');?></h2>
222
  </div>
223
  <p>
224
- <?php echo sprintf(__('The YITH WooCommerce Ajax product Filter widget get richer with 2 new layouts to filter the products of your shop.%1$sBicolor%2$s: the perfect choice for those attributes related to two different colors at the same time (white/black), for a simple visual impact for the final user. Pick the %1$sTag%2$s typology, on the contrary, if you want to filter your products by product tag. And if you are using also the %1$sYITH WooCommerce Brand Add-On%2$s plugin, you will be able to offer the freedom to filter your shop products by brands thanks to the ajax technology.', 'yith_wc_ajxnav'), '<b>', '</b>');?>
225
  </p>
226
  </div>
227
  </div>
@@ -231,10 +231,10 @@
231
  <div class="col-2">
232
  <div class="section-title">
233
  <img src="<?php echo YITH_WCAN_URL ?>assets/images/02-icon.png" alt="icon 02" />
234
- <h2><?php _e('Price range','yith_wc_ajxnav');?></h2>
235
  </div>
236
  <p>
237
- <?php echo sprintf(__('One of the most requested filter for e-commerce sites is the one that let you select products by their prices. Thanks to YITH WooCommerce Ajax List Price Filter, %1$syou can set unlimited price ranges:%2$s your users will be able to filter products selecting on the ranges you have set.', 'yith_wc_ajxnav'), '<b>', '</b>');?>
238
  </p>
239
  </div>
240
  <div class="col-1">
@@ -250,10 +250,10 @@
250
  <div class="col-2">
251
  <div class="section-title">
252
  <img src="<?php echo YITH_WCAN_URL ?>assets/images/03-icon.png" alt="icon 03" />
253
- <h2><?php _e( 'Ajax Stock/On Sale Filters','yith_wc_ajxnav');?></h2>
254
  </div>
255
  <p>
256
- <?php echo sprintf(__('A new widget for the premium version of the plugin. Whoever will surf the pages of your shop will be able to display only the products on sale and/or the available ones.%3$s %1$sAn additional feature for an e-commerce site that is worthy!%2$s', 'yith_wc_ajxnav'), '<b>', '</b>','<br>');?>
257
  </p>
258
  </div>
259
  </div>
@@ -263,10 +263,10 @@
263
  <div class="col-2">
264
  <div class="section-title">
265
  <img src="<?php echo YITH_WCAN_URL ?>assets/images/04-icon.png" alt="icon 04" />
266
- <h2><?php _e('Product sorting','yith_wc_ajxnav');?></h2>
267
  </div>
268
  <p>
269
- <?php echo sprintf(__('With the new %1$sYITH WooCommerce Ajax Sort By%2$s widget, you can give your users the freedom to sort products with the ajax technology, without the need to reload the page. Products can be sorted by rate, sales, price or publication date.', 'yith_wc_ajxnav'), '<b>', '</b>');?>
270
  </p>
271
  </div>
272
  <div class="col-1">
@@ -282,10 +282,10 @@
282
  <div class="col-2">
283
  <div class="section-title">
284
  <img src="<?php echo YITH_WCAN_URL?>assets/images/05-icon.png" alt="icon 05" />
285
- <h2><?php _e('Customized loader','yith_wc_ajxnav');?></h2>
286
  </div>
287
  <p>
288
- <?php _e('From the plugin option panel, you can choose to upload a new icon for your loader: in this way, it will better meet your needs.','yith_wc_ajxnav') ?>
289
  </p>
290
  </div>
291
  </div>
@@ -295,10 +295,10 @@
295
  <div class="col-2">
296
  <div class="section-title">
297
  <img src="<?php echo YITH_WCAN_URL ?>assets/images/06-icon.png" alt="icon 06" />
298
- <h2><?php _e('WooCommerce Price Filter','yith_wc_ajxnav');?></h2>
299
  </div>
300
  <p>
301
- <?php echo _e('With the premium version of the plugin, you will also be able to customize WooCommerce Price Filter widget, changing the settings you can find in the plugin option panel.', 'yith_wc_ajxnav');?>
302
  </p>
303
  </div>
304
  <div class="col-1">
@@ -310,11 +310,11 @@
310
  <div class="landing-container">
311
  <div class="premium-cta">
312
  <p>
313
- <?php echo sprintf( __('Upgrade to %1$spremium version%2$s of %1$sYITH WooCommerce Ajax Product Filter%2$s to benefit from all features!','yith_wc_ajxnav'),'<span class="highlight">','</span>' );?>
314
  </p>
315
  <a href="<?php echo $this->get_premium_landing_uri() ?>" target="_blank" class="premium-cta-button button btn">
316
- <span class="highlight"><?php _e('UPGRADE','yith_wc_ajxnav');?></span>
317
- <span><?php _e('to the premium version','yith_wc_ajxnav');?></span>
318
  </a>
319
  </div>
320
  </div>
200
  <div class="landing-container">
201
  <div class="premium-cta">
202
  <p>
203
+ <?php echo sprintf( __('Upgrade to %1$spremium version%2$s of %1$sYITH WooCommerce Ajax Product Filter%2$s to benefit from all features!','yith-woocommerce-ajax-navigation'),'<span class="highlight">','</span>' );?>
204
  </p>
205
  <a href="<?php echo $this->get_premium_landing_uri() ?>" target="_blank" class="premium-cta-button button btn">
206
+ <span class="highlight"><?php _e('UPGRADE','yith-woocommerce-ajax-navigation');?></span>
207
+ <span><?php _e('to the premium version','yith-woocommerce-ajax-navigation');?></span>
208
  </a>
209
  </div>
210
  </div>
211
  </div>
212
  <div class="section section-even clear" style="background: url(<?php echo YITH_WCAN_URL ?>assets/images/01-bg.png) no-repeat #fff; background-position: 85% 75%">
213
+ <h1><?php _e('Premium Features','yith-woocommerce-ajax-navigation');?></h1>
214
  <div class="landing-container">
215
  <div class="col-1">
216
  <img src="<?php echo YITH_WCAN_URL ?>assets/images/01.png" alt="layouts" />
218
  <div class="col-2">
219
  <div class="section-title">
220
  <img src="<?php echo YITH_WCAN_URL ?>assets/images/01-icon.png" alt="icon 01"/>
221
+ <h2><?php _e('Two more layouts','yith-woocommerce-ajax-navigation');?></h2>
222
  </div>
223
  <p>
224
+ <?php echo sprintf(__('The YITH WooCommerce Ajax product Filter widget get richer with 2 new layouts to filter the products of your shop.%1$sBicolor%2$s: the perfect choice for those attributes related to two different colors at the same time (white/black), for a simple visual impact for the final user. Pick the %1$sTag%2$s typology, on the contrary, if you want to filter your products by product tag. And if you are using also the %1$sYITH WooCommerce Brand Add-On%2$s plugin, you will be able to offer the freedom to filter your shop products by brands thanks to the ajax technology.', 'yith-woocommerce-ajax-navigation'), '<b>', '</b>');?>
225
  </p>
226
  </div>
227
  </div>
231
  <div class="col-2">
232
  <div class="section-title">
233
  <img src="<?php echo YITH_WCAN_URL ?>assets/images/02-icon.png" alt="icon 02" />
234
+ <h2><?php _e('Price range','yith-woocommerce-ajax-navigation');?></h2>
235
  </div>
236
  <p>
237
+ <?php echo sprintf(__('One of the most requested filter for e-commerce sites is the one that let you select products by their prices. Thanks to YITH WooCommerce Ajax List Price Filter, %1$syou can set unlimited price ranges:%2$s your users will be able to filter products selecting on the ranges you have set.', 'yith-woocommerce-ajax-navigation'), '<b>', '</b>');?>
238
  </p>
239
  </div>
240
  <div class="col-1">
250
  <div class="col-2">
251
  <div class="section-title">
252
  <img src="<?php echo YITH_WCAN_URL ?>assets/images/03-icon.png" alt="icon 03" />
253
+ <h2><?php _e( 'Ajax Stock/On Sale Filters','yith-woocommerce-ajax-navigation');?></h2>
254
  </div>
255
  <p>
256
+ <?php echo sprintf(__('A new widget for the premium version of the plugin. Whoever will surf the pages of your shop will be able to display only the products on sale and/or the available ones.%3$s %1$sAn additional feature for an e-commerce site that is worthy!%2$s', 'yith-woocommerce-ajax-navigation'), '<b>', '</b>','<br>');?>
257
  </p>
258
  </div>
259
  </div>
263
  <div class="col-2">
264
  <div class="section-title">
265
  <img src="<?php echo YITH_WCAN_URL ?>assets/images/04-icon.png" alt="icon 04" />
266
+ <h2><?php _e('Product sorting','yith-woocommerce-ajax-navigation');?></h2>
267
  </div>
268
  <p>
269
+ <?php echo sprintf(__('With the new %1$sYITH WooCommerce Ajax Sort By%2$s widget, you can give your users the freedom to sort products with the ajax technology, without the need to reload the page. Products can be sorted by rate, sales, price or publication date.', 'yith-woocommerce-ajax-navigation'), '<b>', '</b>');?>
270
  </p>
271
  </div>
272
  <div class="col-1">
282
  <div class="col-2">
283
  <div class="section-title">
284
  <img src="<?php echo YITH_WCAN_URL?>assets/images/05-icon.png" alt="icon 05" />
285
+ <h2><?php _e('Customized loader','yith-woocommerce-ajax-navigation');?></h2>
286
  </div>
287
  <p>
288
+ <?php _e('From the plugin option panel, you can choose to upload a new icon for your loader: in this way, it will better meet your needs.','yith-woocommerce-ajax-navigation') ?>
289
  </p>
290
  </div>
291
  </div>
295
  <div class="col-2">
296
  <div class="section-title">
297
  <img src="<?php echo YITH_WCAN_URL ?>assets/images/06-icon.png" alt="icon 06" />
298
+ <h2><?php _e('WooCommerce Price Filter','yith-woocommerce-ajax-navigation');?></h2>
299
  </div>
300
  <p>
301
+ <?php echo _e('With the premium version of the plugin, you will also be able to customize WooCommerce Price Filter widget, changing the settings you can find in the plugin option panel.', 'yith-woocommerce-ajax-navigation');?>
302
  </p>
303
  </div>
304
  <div class="col-1">
310
  <div class="landing-container">
311
  <div class="premium-cta">
312
  <p>
313
+ <?php echo sprintf( __('Upgrade to %1$spremium version%2$s of %1$sYITH WooCommerce Ajax Product Filter%2$s to benefit from all features!','yith-woocommerce-ajax-navigation'),'<span class="highlight">','</span>' );?>
314
  </p>
315
  <a href="<?php echo $this->get_premium_landing_uri() ?>" target="_blank" class="premium-cta-button button btn">
316
+ <span class="highlight"><?php _e('UPGRADE','yith-woocommerce-ajax-navigation');?></span>
317
+ <span><?php _e('to the premium version','yith-woocommerce-ajax-navigation');?></span>
318
  </a>
319
  </div>
320
  </div>
widgets/class.yith-wcan-navigation-widget.php CHANGED
@@ -20,10 +20,10 @@ if ( ! class_exists( 'YITH_WCAN_Navigation_Widget' ) ) {
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', _x( 'YITH WooCommerce Ajax Product Filter', 'Admin: Widget Title', 'yith_wc_ajxnav' ), $widget_ops, $control_ops );
27
  }
28
 
29
 
@@ -261,7 +261,7 @@ if ( ! class_exists( 'YITH_WCAN_Navigation_Widget' ) ) {
261
 
262
  }
263
  elseif ( $display_type == 'select' ) {
264
- $dropdown_label = __( 'Filters:', 'yith_wc_ajxnav' );
265
  ?>
266
 
267
  <a class="yit-wcan-select-open" href="#"><?php echo apply_filters( 'yith_wcan_dropdown_default_label', $dropdown_label ) ?></a>
@@ -809,23 +809,23 @@ if ( ! class_exists( 'YITH_WCAN_Navigation_Widget' ) ) {
809
  $instance = wp_parse_args( (array) $instance, $defaults );
810
 
811
  $widget_types = apply_filters( 'yith_wcan_widget_types', array(
812
- 'list' => __( 'List', 'yith_wc_ajxnav' ),
813
- 'color' => __( 'Color', 'yith_wc_ajxnav' ),
814
- 'label' => __( 'Label', 'yith_wc_ajxnav' ),
815
- 'select' => __( 'Dropdown', 'yith_wc_ajxnav' )
816
  )
817
  );
818
  ?>
819
 
820
  <p>
821
  <label>
822
- <strong><?php _e( 'Title', 'yith_wc_ajxnav' ) ?>:</strong><br />
823
  <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']; ?>" />
824
  </label>
825
  </p>
826
 
827
  <p>
828
- <label for="<?php echo $this->get_field_id( 'type' ); ?>"><strong><?php _e( 'Type:', 'yith_wc_ajxnav' ) ?></strong></label>
829
  <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' ) ); ?>">
830
  <?php foreach ( $widget_types as $type => $label ) : ?>
831
  <option value="<?php echo $type ?>" <?php selected( $type, $instance['type'] ) ?>><?php echo $label ?></option>
@@ -836,25 +836,25 @@ if ( ! class_exists( 'YITH_WCAN_Navigation_Widget' ) ) {
836
  <?php do_action( 'yith_wcan_after_widget_type' ); ?>
837
 
838
  <p>
839
- <label for="<?php echo $this->get_field_id( 'query_type' ); ?>"><?php _e( 'Query Type:', 'yith_wc_ajxnav' ) ?></label>
840
  <select id="<?php echo esc_attr( $this->get_field_id( 'query_type' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'query_type' ) ); ?>">
841
- <option value="and" <?php selected( $instance['query_type'], 'and' ); ?>><?php _e( 'AND', 'yith_wc_ajxnav' ); ?></option>
842
- <option value="or" <?php selected( $instance['query_type'], 'or' ); ?>><?php _e( 'OR', 'yith_wc_ajxnav' ); ?></option>
843
  </select></p>
844
 
845
  <p class="yith-wcan-attribute-list" style="display: <?php echo $instance['type'] == 'tags' || $instance['type'] == 'brands' ? 'none' : 'block' ?>;">
846
- <label for="<?php echo $this->get_field_id( 'attribute' ); ?>"><strong><?php _e( 'Attribute:', 'yith_wc_ajxnav' ) ?></strong></label>
847
  <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' ) ); ?>">
848
  <?php yith_wcan_dropdown_attributes( $instance['attribute'] ); ?>
849
  </select>
850
  </p>
851
 
852
  <p id="yit-wcan-display" class="yit-wcan-display-<?php echo $instance['type'] ?>">
853
- <label for="<?php echo $this->get_field_id( 'display' ); ?>"><strong><?php _e( 'Display (default All):', 'yith_wc_ajxnav' ) ?></strong></label>
854
  <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' ) ); ?>">
855
- <option value="all" <?php selected( 'all', $instance['display'] ) ?>> <?php _e( 'All (no hierarchical)', 'yith_wc_ajxnav' ) ?></option>
856
- <option value="hierarchical" <?php selected( 'hierarchical', $instance['display'] ) ?>> <?php _e( 'All (hierarchical)', 'yith_wc_ajxnav' ) ?> </option>
857
- <option value="parent" <?php selected( 'parent', $instance['display'] ) ?>> <?php _e( 'Only Parent', 'yith_wc_ajxnav' ) ?> </option>
858
  </select>
859
  </p>
860
 
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-woocommerce-ajax-navigation' ) );
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', _x( 'YITH WooCommerce Ajax Product Filter', 'Admin: Widget Title', 'yith-woocommerce-ajax-navigation' ), $widget_ops, $control_ops );
27
  }
28
 
29
 
261
 
262
  }
263
  elseif ( $display_type == 'select' ) {
264
+ $dropdown_label = __( 'Filters:', 'yith-woocommerce-ajax-navigation' );
265
  ?>
266
 
267
  <a class="yit-wcan-select-open" href="#"><?php echo apply_filters( 'yith_wcan_dropdown_default_label', $dropdown_label ) ?></a>
809
  $instance = wp_parse_args( (array) $instance, $defaults );
810
 
811
  $widget_types = apply_filters( 'yith_wcan_widget_types', array(
812
+ 'list' => __( 'List', 'yith-woocommerce-ajax-navigation' ),
813
+ 'color' => __( 'Color', 'yith-woocommerce-ajax-navigation' ),
814
+ 'label' => __( 'Label', 'yith-woocommerce-ajax-navigation' ),
815
+ 'select' => __( 'Dropdown', 'yith-woocommerce-ajax-navigation' )
816
  )
817
  );
818
  ?>
819
 
820
  <p>
821
  <label>
822
+ <strong><?php _e( 'Title', 'yith-woocommerce-ajax-navigation' ) ?>:</strong><br />
823
  <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']; ?>" />
824
  </label>
825
  </p>
826
 
827
  <p>
828
+ <label for="<?php echo $this->get_field_id( 'type' ); ?>"><strong><?php _e( 'Type:', 'yith-woocommerce-ajax-navigation' ) ?></strong></label>
829
  <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' ) ); ?>">
830
  <?php foreach ( $widget_types as $type => $label ) : ?>
831
  <option value="<?php echo $type ?>" <?php selected( $type, $instance['type'] ) ?>><?php echo $label ?></option>
836
  <?php do_action( 'yith_wcan_after_widget_type' ); ?>
837
 
838
  <p>
839
+ <label for="<?php echo $this->get_field_id( 'query_type' ); ?>"><?php _e( 'Query Type:', 'yith-woocommerce-ajax-navigation' ) ?></label>
840
  <select id="<?php echo esc_attr( $this->get_field_id( 'query_type' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'query_type' ) ); ?>">
841
+ <option value="and" <?php selected( $instance['query_type'], 'and' ); ?>><?php _e( 'AND', 'yith-woocommerce-ajax-navigation' ); ?></option>
842
+ <option value="or" <?php selected( $instance['query_type'], 'or' ); ?>><?php _e( 'OR', 'yith-woocommerce-ajax-navigation' ); ?></option>
843
  </select></p>
844
 
845
  <p class="yith-wcan-attribute-list" style="display: <?php echo $instance['type'] == 'tags' || $instance['type'] == 'brands' ? 'none' : 'block' ?>;">
846
+ <label for="<?php echo $this->get_field_id( 'attribute' ); ?>"><strong><?php _e( 'Attribute:', 'yith-woocommerce-ajax-navigation' ) ?></strong></label>
847
  <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' ) ); ?>">
848
  <?php yith_wcan_dropdown_attributes( $instance['attribute'] ); ?>
849
  </select>
850
  </p>
851
 
852
  <p id="yit-wcan-display" class="yit-wcan-display-<?php echo $instance['type'] ?>">
853
+ <label for="<?php echo $this->get_field_id( 'display' ); ?>"><strong><?php _e( 'Display (default All):', 'yith-woocommerce-ajax-navigation' ) ?></strong></label>
854
  <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' ) ); ?>">
855
+ <option value="all" <?php selected( 'all', $instance['display'] ) ?>> <?php _e( 'All (no hierarchical)', 'yith-woocommerce-ajax-navigation' ) ?></option>
856
+ <option value="hierarchical" <?php selected( 'hierarchical', $instance['display'] ) ?>> <?php _e( 'All (hierarchical)', 'yith-woocommerce-ajax-navigation' ) ?> </option>
857
+ <option value="parent" <?php selected( 'parent', $instance['display'] ) ?>> <?php _e( 'Only Parent', 'yith-woocommerce-ajax-navigation' ) ?> </option>
858
  </select>
859
  </p>
860
 
widgets/class.yith-wcan-reset-navigation-widget.php CHANGED
@@ -20,9 +20,9 @@ if ( ! class_exists( 'YITH_WCAN_Reset_Navigation_Widget' ) ) {
20
  class YITH_WCAN_Reset_Navigation_Widget extends WP_Widget {
21
 
22
  function __construct() {
23
- $widget_ops = array( 'classname' => 'yith-woo-ajax-reset-navigation yith-woo-ajax-navigation woocommerce widget_layered_nav', 'description' => __( 'Reset all filters set by YITH WooCommerce Ajax Product Filter', 'yith_wc_ajxnav' ) );
24
  $control_ops = array( 'width' => 400, 'height' => 350 );
25
- parent::__construct( 'yith-woo-ajax-reset-navigation', __( 'YITH WooCommerce Ajax Reset Filter', 'yith_wc_ajxnav' ), $widget_ops, $control_ops );
26
  }
27
 
28
 
@@ -63,7 +63,7 @@ if ( ! class_exists( 'YITH_WCAN_Reset_Navigation_Widget' ) ) {
63
  echo $before_title . $title . $after_title;
64
  }
65
  $button_class = apply_filters( 'yith-wcan-reset-navigation-button-class', "yith-wcan-reset-navigation button" );
66
- echo "<div class='yith-wcan'><a class='{$button_class}' href='{$link}'>" . __( $label, 'yith_wc_ajxnav' ) . "</a></div>";
67
  echo $after_widget;
68
  echo ob_get_clean();
69
  }
@@ -79,20 +79,20 @@ if ( ! class_exists( 'YITH_WCAN_Reset_Navigation_Widget' ) ) {
79
 
80
  $defaults = array(
81
  'title' => '',
82
- 'label' => __( 'Reset All Filters', 'yith_wc_ajxnav' )
83
  );
84
 
85
  $instance = wp_parse_args( (array) $instance, $defaults ); ?>
86
 
87
  <p>
88
  <label>
89
- <strong><?php _e( 'Title', 'yith_wc_ajxnav' ) ?>:</strong><br />
90
  <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']; ?>" />
91
  </label>
92
  </p>
93
  <p>
94
  <label>
95
- <strong><?php _e( 'Button Label', 'yith_wc_ajxnav' ) ?>:</strong><br />
96
  <input class="widefat" type="text" id="<?php echo $this->get_field_id( 'label' ); ?>" name="<?php echo $this->get_field_name( 'label' ); ?>" value="<?php echo $instance['label']; ?>" />
97
  </label>
98
  </p>
20
  class YITH_WCAN_Reset_Navigation_Widget extends WP_Widget {
21
 
22
  function __construct() {
23
+ $widget_ops = array( 'classname' => 'yith-woo-ajax-reset-navigation yith-woo-ajax-navigation woocommerce widget_layered_nav', 'description' => __( 'Reset all filters set by YITH WooCommerce Ajax Product Filter', 'yith-woocommerce-ajax-navigation' ) );
24
  $control_ops = array( 'width' => 400, 'height' => 350 );
25
+ parent::__construct( 'yith-woo-ajax-reset-navigation', __( 'YITH WooCommerce Ajax Reset Filter', 'yith-woocommerce-ajax-navigation' ), $widget_ops, $control_ops );
26
  }
27
 
28
 
63
  echo $before_title . $title . $after_title;
64
  }
65
  $button_class = apply_filters( 'yith-wcan-reset-navigation-button-class', "yith-wcan-reset-navigation button" );
66
+ echo "<div class='yith-wcan'><a class='{$button_class}' href='{$link}'>" . __( $label, 'yith-woocommerce-ajax-navigation' ) . "</a></div>";
67
  echo $after_widget;
68
  echo ob_get_clean();
69
  }
79
 
80
  $defaults = array(
81
  'title' => '',
82
+ 'label' => __( 'Reset All Filters', 'yith-woocommerce-ajax-navigation' )
83
  );
84
 
85
  $instance = wp_parse_args( (array) $instance, $defaults ); ?>
86
 
87
  <p>
88
  <label>
89
+ <strong><?php _e( 'Title', 'yith-woocommerce-ajax-navigation' ) ?>:</strong><br />
90
  <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']; ?>" />
91
  </label>
92
  </p>
93
  <p>
94
  <label>
95
+ <strong><?php _e( 'Button Label', 'yith-woocommerce-ajax-navigation' ) ?>:</strong><br />
96
  <input class="widefat" type="text" id="<?php echo $this->get_field_id( 'label' ); ?>" name="<?php echo $this->get_field_name( 'label' ); ?>" value="<?php echo $instance['label']; ?>" />
97
  </label>
98
  </p>