YITH WooCommerce Compare - Version 2.0.4

Version Description

  • Fixed: JS error when loading compare window
  • Updated: Changed Text Domain from 'yith-wcmp' to 'yith-woocommerce-compare'
  • Updated: Plugin Core Framework
Download this release

Release Info

Developer yithemes
Plugin Icon 128x128 YITH WooCommerce Compare
Version 2.0.4
Comparing to
See all releases

Code changes from version 2.0.3 to 2.0.4

Files changed (40) hide show
  1. README.txt +19 -4
  2. assets/images/loader.gif +0 -0
  3. assets/js/woocompare.js +5 -5
  4. includes/class.yith-woocompare-admin.php +11 -11
  5. includes/class.yith-woocompare-frontend.php +9 -8
  6. includes/class.yith-woocompare-helper.php +6 -6
  7. init.php +7 -7
  8. languages/yith-wcmp-it_IT.mo +0 -0
  9. languages/{yith-wcmp-bg_BG.mo → yith-woocommerce-compare-bg_BG.mo} +0 -0
  10. languages/{yith-wcmp-bg_BG.po → yith-woocommerce-compare-bg_BG.po} +15 -14
  11. languages/{yith-wcmp-es_ES.mo → yith-woocommerce-compare-es_ES.mo} +0 -0
  12. languages/{yith-wcmp-es_ES.po → yith-woocommerce-compare-es_ES.po} +13 -13
  13. languages/{yith-wcmp-fa_IR.mo → yith-woocommerce-compare-fa_IR.mo} +0 -0
  14. languages/{yith-wcmp-fa_IR.po → yith-woocommerce-compare-fa_IR.po} +13 -13
  15. languages/{yith-wcmp-fr_FR.mo → yith-woocommerce-compare-fr_FR.mo} +0 -0
  16. languages/{yith-wcmp-fr_FR.po → yith-woocommerce-compare-fr_FR.po} +15 -14
  17. languages/yith-woocommerce-compare-it_IT.mo +0 -0
  18. languages/{yith-wcmp-it_IT.po → yith-woocommerce-compare-it_IT.po} +446 -60
  19. languages/{yith-wcmp-nl_NL.mo → yith-woocommerce-compare-nl_NL.mo} +0 -0
  20. languages/{yith-wcmp-nl_NL.po → yith-woocommerce-compare-nl_NL.po} +15 -14
  21. languages/{yith-wcmp-pt_BR.mo → yith-woocommerce-compare-pt_BR.mo} +0 -0
  22. languages/{yith-wcmp-pt_BR.po → yith-woocommerce-compare-pt_BR.po} +15 -14
  23. languages/{yith-wcmp-tr_TR.mo → yith-woocommerce-compare-tr_TR.mo} +0 -0
  24. languages/{yith-wcmp-tr_TR.po → yith-woocommerce-compare-tr_TR.po} +13 -13
  25. languages/{yith-wcmp.pot → yith-woocommerce-compare.pot} +15 -14
  26. plugin-fw/assets/js/yit-cpt-unlimited.js +1 -1
  27. plugin-fw/assets/js/yit-cpt-unlimited.min.js +1 -1
  28. plugin-fw/lib/yit-cpt-unlimited.php +2 -2
  29. plugin-fw/lib/yit-metabox.php +135 -121
  30. plugin-fw/lib/yit-plugin-panel-wc.php +2 -1
  31. plugin-fw/lib/yit-plugin-panel.php +2 -1
  32. plugin-fw/lib/yit-upgrade.php +5 -4
  33. plugin-fw/lib/yit-video.php +12 -4
  34. plugin-fw/templates/metaboxes/types/categories.php +1 -1
  35. plugin-fw/templates/panel/woocommerce/woocommerce-form.php +1 -0
  36. plugin-fw/yit-functions.php +5 -0
  37. plugin-options/general-options.php +28 -26
  38. templates/admin/premium.php +23 -23
  39. templates/compare.php +4 -4
  40. widgets/class.yith-woocompare-widget.php +4 -4
README.txt CHANGED
@@ -4,7 +4,7 @@ Contributors: yithemes
4
Tags: wc, shop, woocommerce, compare, compare products, product compare, widget, comparison, product comparison, compare table
5
Requires at least: 3.5.1
6
Tested up to: 4.3
7
- Stable tag: 2.0.3
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
@@ -56,6 +56,14 @@ Yes, you can choose what fields to show in the compare table. You can do it in Y
56
= Can I order the fields in the compare table? =
57
Yes, you can sort the fields in the compare table. You can do it in YIT Plugins -> Compare.
58
59
== Screenshots ==
60
61
1. The popup with compare table.
@@ -64,6 +72,12 @@ Yes, you can sort the fields in the compare table. You can do it in YIT Plugins
64
65
== Changelog ==
66
67
= 2.0.3 =
68
69
* Added: Compatibility with WooPress 4.3
@@ -185,7 +199,8 @@ Full documentation is available [here](http://yithemes.com/docs-plugins/yith-woo
185
186
== Upgrade notice ==
187
188
- = 2.0.2 =
189
190
- * Added: Compatibility with WooCommerce 2.4
191
- * Updated: Core plugin
4
Tags: wc, shop, woocommerce, compare, compare products, product compare, widget, comparison, product comparison, compare table
5
Requires at least: 3.5.1
6
Tested up to: 4.3
7
+ Stable tag: 2.0.4
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
56
= Can I order the fields in the compare table? =
57
Yes, you can sort the fields in the compare table. You can do it in YIT Plugins -> Compare.
58
59
+ = What are the main changes in plugin translation? =
60
+ Recently YITH WooCommerce Compare has been selected to be included in the "translate.wordpress.org" translate programme.
61
+ In order to import correctly the plugin strings in the new system, we had to change the text domain form 'yit' to 'yith-woocommerce-compare'.
62
+ 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.
63
+ 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:
64
+ yith-woocommerce-compare-<WORDPRESS LOCALE>.po
65
+ yith-woocommerce-compare-<WORDPRESS LOCALE >.mo
66
+
67
== Screenshots ==
68
69
1. The popup with compare table.
72
73
== Changelog ==
74
75
+ = 2.0.4 =
76
+
77
+ * Fixed: JS error when loading compare window
78
+ * Updated: Changed Text Domain from 'yith-wcmp' to 'yith-woocommerce-compare'
79
+ * Updated: Plugin Core Framework
80
+
81
= 2.0.3 =
82
83
* Added: Compatibility with WooPress 4.3
199
200
== Upgrade notice ==
201
202
+ = 2.0.4 =
203
204
+ * Fixed: JS error when loading compare window
205
+ * Updated: Changed Text Domain from 'yith-wcmp' to 'yith-woocommerce-compare'
206
+ * Updated: Plugin Core Framework
assets/images/loader.gif ADDED
Binary file
assets/js/woocompare.js CHANGED
@@ -15,8 +15,8 @@ jQuery(document).ready(function($) {
15
16
// add ajax loader
17
if( typeof woocommerce_params != 'undefined' ) {
18
- button.block({message: null, overlayCSS: {background: '#fff url(' + woocommerce_params.ajax_loader_url + ') no-repeat center', backgroundSize: '16px 16px', opacity: 0.6}});
19
- widget_list.block({message: null, overlayCSS: {background: '#fff url(' + woocommerce_params.ajax_loader_url + ') no-repeat center', backgroundSize: '16px 16px', opacity: 0.6}});
20
}
21
22
$.ajax({
@@ -76,7 +76,7 @@ jQuery(document).ready(function($) {
76
};
77
78
if( typeof woocommerce_params != 'undefined' ) {
79
- widget_list.block({message: null, overlayCSS: {background: '#fff url(' + woocommerce_params.ajax_loader_url + ') no-repeat center', backgroundSize: '16px 16px', opacity: 0.6}});
80
}
81
82
$.ajax({
@@ -137,7 +137,7 @@ jQuery(document).ready(function($) {
137
button.block({
138
message: null,
139
overlayCSS: {
140
- background: '#fff url(' + woocommerce_params.ajax_loader_url + ') no-repeat center',
141
backgroundSize: '16px 16px',
142
opacity: 0.6
143
}
@@ -205,7 +205,7 @@ jQuery(document).ready(function($) {
205
if( typeof woocommerce_params != 'undefined' ) {
206
product_list.block({message: null,
207
overlayCSS : {
208
- background : '#fff url(' + woocommerce_params.ajax_loader_url + ') no-repeat center',
209
backgroundSize: '16px 16px',
210
opacity : 0.6
211
}
15
16
// add ajax loader
17
if( typeof woocommerce_params != 'undefined' ) {
18
+ button.block({message: null, overlayCSS: { background: '#fff url(' + yith_woocompare.loader + ') no-repeat center', backgroundSize: '16px 16px', opacity: 0.6}});
19
+ widget_list.block({message: null, overlayCSS: { background: '#fff url(' + yith_woocompare.loader + ') no-repeat center', backgroundSize: '16px 16px', opacity: 0.6}});
20
}
21
22
$.ajax({
76
};
77
78
if( typeof woocommerce_params != 'undefined' ) {
79
+ widget_list.block({message: null, overlayCSS: {background: '#fff url(' + yith_woocompare.loader + ') no-repeat center', backgroundSize: '16px 16px', opacity: 0.6}});
80
}
81
82
$.ajax({
137
button.block({
138
message: null,
139
overlayCSS: {
140
+ background: '#fff url(' + yith_woocompare.loader + ') no-repeat center',
141
backgroundSize: '16px 16px',
142
opacity: 0.6
143
}
205
if( typeof woocommerce_params != 'undefined' ) {
206
product_list.block({message: null,
207
overlayCSS : {
208
+ background : '#fff url(' + yith_woocompare.loader + ') no-repeat center',
209
backgroundSize: '16px 16px',
210
opacity : 0.6
211
}
includes/class.yith-woocompare-admin.php CHANGED
@@ -89,7 +89,7 @@ if ( ! class_exists( 'YITH_Woocompare_Admin' ) ) {
89
// add image size
90
YITH_Woocompare_Helper::set_image_size();
91
92
- add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_styles_scripts' ) );
93
94
add_action( 'woocommerce_admin_field_woocompare_image_width', array( $this, 'admin_fields_woocompare_image_width' ) );
95
add_action( 'woocommerce_admin_field_woocompare_attributes', array( $this, 'admin_fields_attributes' ), 10, 1 );
@@ -114,9 +114,9 @@ if ( ! class_exists( 'YITH_Woocompare_Admin' ) ) {
114
*/
115
public function action_links( $links ) {
116
117
- $links[] = '<a href="' . admin_url( "admin.php?page={$this->_panel_page}" ) . '">' . __( 'Settings', 'yith-wcmp' ) . '</a>';
118
if ( ! ( defined( 'YITH_WOOCOMPARE_PREMIUM' ) && YITH_WOOCOMPARE_PREMIUM ) ) {
119
- $links[] = '<a href="' . $this->get_premium_landing_uri() . '" target="_blank">' . __( 'Premium Version', 'yith-wcmp' ) . '</a>';
120
}
121
122
return $links;
@@ -138,18 +138,18 @@ if ( ! class_exists( 'YITH_Woocompare_Admin' ) ) {
138
}
139
140
$admin_tabs = array(
141
- 'general' => __( 'Settings', 'yith-wcmp' ),
142
);
143
144
if ( ! ( defined( 'YITH_WOOCOMPARE_PREMIUM' ) && YITH_WOOCOMPARE_PREMIUM ) ) {
145
- $admin_tabs['premium'] = __( 'Premium Version', 'yith-wcmp' );
146
}
147
148
$args = array(
149
'create_menu_page' => true,
150
'parent_slug' => '',
151
- 'page_title' => __( 'Compare', 'yith-wcmp' ),
152
- 'menu_title' => __( 'Compare', 'yith-wcmp' ),
153
'capability' => 'manage_options',
154
'parent' => '',
155
'parent_page' => 'yit_plugin_panel',
@@ -212,7 +212,7 @@ if ( ! class_exists( 'YITH_Woocompare_Admin' ) ) {
212
public function plugin_row_meta( $plugin_meta, $plugin_file, $plugin_data, $status ) {
213
214
if ( defined( 'YITH_WOOCOMPARE_INIT' ) && YITH_WOOCOMPARE_INIT == $plugin_file ) {
215
- $plugin_meta[] = '<a href="' . $this->doc_url . '" target="_blank">' . __( 'Plugin Documentation', 'yith-wcmp' ) . '</a>';
216
}
217
218
return $plugin_meta;
@@ -232,7 +232,7 @@ if ( ! class_exists( 'YITH_Woocompare_Admin' ) ) {
232
'pointer_id' => 'yith_woocompare_panel',
233
'target' => '#toplevel_page_yit_plugin_panel',
234
'content' => sprintf( '<h3> %s </h3> <p> %s </p>',
235
- __( 'YITH WooCommerce Compare Activated', 'yith-wcmp' ),
236
apply_filters( 'yith_woocompare_activated_pointer_content', sprintf( __( 'In the YIT Plugin tab you can find the YITH WooCommerce Compare options. With this menu, you can access to all the settings of our plugins that you have activated. YITH WooCommerce Compare is available in an outstanding PREMIUM version with many new options, <a href="%s">discover it now</a>.', 'yit' ), $this->get_premium_landing_uri() ) )
237
),
238
'position' => array( 'edge' => 'left', 'align' => 'center' ),
@@ -244,7 +244,7 @@ if ( ! class_exists( 'YITH_Woocompare_Admin' ) ) {
244
'pointer_id' => 'yith_woocompare_panel',
245
'target' => '#toplevel_page_yit_plugin_panel',
246
'content' => sprintf( '<h3> %s </h3> <p> %s </p>',
247
- __( 'YITH WooCommerce Compare Updated', 'yith-wcmp' ),
248
apply_filters( 'yith_woocompare_updated_pointer_content', sprintf( __( 'From now on, you can find all the options of YITH WooCommerce Compare under YIT Plugin -> Compare instead of WooCommerce -> Settings -> Compare, as in the previous version. When one of our plugins is updated, a new voice will be added to this menu. YITH WooCommerce Compare has been updated with new available options, <a href="%s">discover the PREMIUM version.</a>', 'yit' ), $this->get_premium_landing_uri() ) )
249
),
250
'position' => array( 'edge' => 'left', 'align' => 'center' ),
@@ -390,7 +390,7 @@ if ( ! class_exists( 'YITH_Woocompare_Admin' ) ) {
390
<input name="<?php echo esc_attr( $value['id'] ); ?>[width]" id="<?php echo esc_attr( $value['id'] ); ?>-width" type="text" size="3" value="<?php echo $width; ?>" /> &times;
391
<input name="<?php echo esc_attr( $value['id'] ); ?>[height]" id="<?php echo esc_attr( $value['id'] ); ?>-height" type="text" size="3" value="<?php echo $height; ?>" />px
392
393
- <label><input name="<?php echo esc_attr( $value['id'] ); ?>[crop]" id="<?php echo esc_attr( $value['id'] ); ?>-crop" type="checkbox" <?php echo $crop; ?> /> <?php _e( 'Do you want to hard crop the image?', 'yith-wcmp' ); ?>
394
</label>
395
<p class="description"><?php echo $value['desc'] ?></p>
396
89
// add image size
90
YITH_Woocompare_Helper::set_image_size();
91
92
+ add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_styles_scripts' ), 20 );
93
94
add_action( 'woocommerce_admin_field_woocompare_image_width', array( $this, 'admin_fields_woocompare_image_width' ) );
95
add_action( 'woocommerce_admin_field_woocompare_attributes', array( $this, 'admin_fields_attributes' ), 10, 1 );
114
*/
115
public function action_links( $links ) {
116
117
+ $links[] = '<a href="' . admin_url( "admin.php?page={$this->_panel_page}" ) . '">' . __( 'Settings', 'yith-woocommerce-compare' ) . '</a>';
118
if ( ! ( defined( 'YITH_WOOCOMPARE_PREMIUM' ) && YITH_WOOCOMPARE_PREMIUM ) ) {
119
+ $links[] = '<a href="' . $this->get_premium_landing_uri() . '" target="_blank">' . __( 'Premium Version', 'yith-woocommerce-compare' ) . '</a>';
120
}
121
122
return $links;
138
}
139
140
$admin_tabs = array(
141
+ 'general' => __( 'Settings', 'yith-woocommerce-compare' ),
142
);
143
144
if ( ! ( defined( 'YITH_WOOCOMPARE_PREMIUM' ) && YITH_WOOCOMPARE_PREMIUM ) ) {
145
+ $admin_tabs['premium'] = __( 'Premium Version', 'yith-woocommerce-compare' );
146
}
147
148
$args = array(
149
'create_menu_page' => true,
150
'parent_slug' => '',
151
+ 'page_title' => __( 'Compare', 'yith-woocommerce-compare' ),
152
+ 'menu_title' => __( 'Compare', 'yith-woocommerce-compare' ),
153
'capability' => 'manage_options',
154
'parent' => '',
155
'parent_page' => 'yit_plugin_panel',
212
public function plugin_row_meta( $plugin_meta, $plugin_file, $plugin_data, $status ) {
213
214
if ( defined( 'YITH_WOOCOMPARE_INIT' ) && YITH_WOOCOMPARE_INIT == $plugin_file ) {
215
+ $plugin_meta[] = '<a href="' . $this->doc_url . '" target="_blank">' . __( 'Plugin Documentation', 'yith-woocommerce-compare' ) . '</a>';
216
}
217
218
return $plugin_meta;
232
'pointer_id' => 'yith_woocompare_panel',
233
'target' => '#toplevel_page_yit_plugin_panel',
234
'content' => sprintf( '<h3> %s </h3> <p> %s </p>',
235
+ __( 'YITH WooCommerce Compare Activated', 'yith-woocommerce-compare' ),
236
apply_filters( 'yith_woocompare_activated_pointer_content', sprintf( __( 'In the YIT Plugin tab you can find the YITH WooCommerce Compare options. With this menu, you can access to all the settings of our plugins that you have activated. YITH WooCommerce Compare is available in an outstanding PREMIUM version with many new options, <a href="%s">discover it now</a>.', 'yit' ), $this->get_premium_landing_uri() ) )
237
),
238
'position' => array( 'edge' => 'left', 'align' => 'center' ),
244
'pointer_id' => 'yith_woocompare_panel',
245
'target' => '#toplevel_page_yit_plugin_panel',
246
'content' => sprintf( '<h3> %s </h3> <p> %s </p>',
247
+ __( 'YITH WooCommerce Compare Updated', 'yith-woocommerce-compare' ),
248
apply_filters( 'yith_woocompare_updated_pointer_content', sprintf( __( 'From now on, you can find all the options of YITH WooCommerce Compare under YIT Plugin -> Compare instead of WooCommerce -> Settings -> Compare, as in the previous version. When one of our plugins is updated, a new voice will be added to this menu. YITH WooCommerce Compare has been updated with new available options, <a href="%s">discover the PREMIUM version.</a>', 'yit' ), $this->get_premium_landing_uri() ) )
249
),
250
'position' => array( 'edge' => 'left', 'align' => 'center' ),
390
<input name="<?php echo esc_attr( $value['id'] ); ?>[width]" id="<?php echo esc_attr( $value['id'] ); ?>-width" type="text" size="3" value="<?php echo $width; ?>" /> &times;
391
<input name="<?php echo esc_attr( $value['id'] ); ?>[height]" id="<?php echo esc_attr( $value['id'] ); ?>-height" type="text" size="3" value="<?php echo $height; ?>" />px
392
393
+ <label><input name="<?php echo esc_attr( $value['id'] ); ?>[crop]" id="<?php echo esc_attr( $value['id'] ); ?>-crop" type="checkbox" <?php echo $crop; ?> /> <?php _e( 'Do you want to hard crop the image?', 'yith-woocommerce-compare' ); ?>
394
</label>
395
<p class="description"><?php echo $value['desc'] ?></p>
396
includes/class.yith-woocompare-frontend.php CHANGED
@@ -139,9 +139,10 @@ if( !class_exists( 'YITH_Woocompare_Frontend' ) ) {
139
'actionadd' => $this->action_add,
140
'actionremove' => $this->action_remove,
141
'actionview' => $this->action_view,
142
- 'added_label' => __( 'Added', 'yith-wcmp' ),
143
- 'table_title' => __( 'Product Comparison', 'yith-wcmp' ),
144
- 'auto_open' => get_option( 'yith_woocompare_auto_open', 'yes' )
145
));
146
147
// colorbox
@@ -207,7 +208,7 @@ if( !class_exists( 'YITH_Woocompare_Frontend' ) ) {
207
if ( defined('WC_TEMPLATE_PATH') ) {
208
209
$template_path = get_template_directory() . '/' . WC_TEMPLATE_PATH . $this->template_file;
210
- $child_path = get_stylesheet_directory() . '/' .WC_TEMPLATE_PATH . $this->template_file;
211
}
212
else {
213
$template_path = get_template_directory() . '/' . $woocommerce->template_url . $this->template_file;
@@ -262,7 +263,7 @@ if( !class_exists( 'YITH_Woocompare_Frontend' ) ) {
262
case 'stock':
263
$availability = $product->get_availability();
264
if ( empty( $availability['availability'] ) ) {
265
- $availability['availability'] = __( 'In stock', 'yith-wcmp' );
266
}
267
$product->fields[$field] = sprintf( '<span class="%s">%s</span>', esc_attr( $availability['class'] ), esc_html( $availability['availability'] ) );
268
break;
@@ -350,7 +351,7 @@ if( !class_exists( 'YITH_Woocompare_Frontend' ) ) {
350
$is_button = ! isset( $button_or_link ) || ! $button_or_link ? get_option( 'yith_woocompare_is_button' ) : $button_or_link;
351
352
if ( ! isset( $button_text ) || $button_text == 'default' ) {
353
- $button_text = get_option( 'yith_woocompare_button_text', __( 'Compare', 'yith-wcmp' ) );
354
$button_text = function_exists( 'icl_translate' ) ? icl_translate( 'Plugins', 'plugin_yit_compare_button_text', $button_text ) : $button_text;
355
}
356
@@ -545,7 +546,7 @@ if( !class_exists( 'YITH_Woocompare_Frontend' ) ) {
545
}
546
547
if ( empty( $this->products_list ) ) {
548
- echo '<li>' . __( 'No products to compare', 'yith-wcmp' ) . '</li>';
549
return ob_get_clean();
550
}
551
@@ -556,7 +557,7 @@ if( !class_exists( 'YITH_Woocompare_Frontend' ) ) {
556
?>
557
<li>
558
<a class="title" href="<?php echo get_permalink( $product_id ) ?>"><?php echo $product->get_title() ?></a>
559
- <a href="<?php echo $this->remove_product_url( $product_id ) ?>" data-product_id="<?php echo $product_id; ?>" class="remove" title="<?php _e( 'Remove', 'yith-wcmp' ) ?>">x</a>
560
</li>
561
<?php
562
}
139
'actionadd' => $this->action_add,
140
'actionremove' => $this->action_remove,
141
'actionview' => $this->action_view,
142
+ 'added_label' => __( 'Added', 'yith-woocommerce-compare' ),
143
+ 'table_title' => __( 'Product Comparison', 'yith-woocommerce-compare' ),
144
+ 'auto_open' => get_option( 'yith_woocompare_auto_open', 'yes' ),
145
+ 'loader' => YITH_WOOCOMPARE_ASSETS_URL . '/images/loader.gif'
146
));
147
148
// colorbox
208
if ( defined('WC_TEMPLATE_PATH') ) {
209
210
$template_path = get_template_directory() . '/' . WC_TEMPLATE_PATH . $this->template_file;
211
+ $child_path = get_stylesheet_directory() . '/' . WC_TEMPLATE_PATH . $this->template_file;
212
}
213
else {
214
$template_path = get_template_directory() . '/' . $woocommerce->template_url . $this->template_file;
263
case 'stock':
264
$availability = $product->get_availability();
265
if ( empty( $availability['availability'] ) ) {
266
+ $availability['availability'] = __( 'In stock', 'yith-woocommerce-compare' );
267
}
268
$product->fields[$field] = sprintf( '<span class="%s">%s</span>', esc_attr( $availability['class'] ), esc_html( $availability['availability'] ) );
269
break;
351
$is_button = ! isset( $button_or_link ) || ! $button_or_link ? get_option( 'yith_woocompare_is_button' ) : $button_or_link;
352
353
if ( ! isset( $button_text ) || $button_text == 'default' ) {
354
+ $button_text = get_option( 'yith_woocompare_button_text', __( 'Compare', 'yith-woocommerce-compare' ) );
355
$button_text = function_exists( 'icl_translate' ) ? icl_translate( 'Plugins', 'plugin_yit_compare_button_text', $button_text ) : $button_text;
356
}
357
546
}
547
548
if ( empty( $this->products_list ) ) {
549
+ echo '<li>' . __( 'No products to compare', 'yith-woocommerce-compare' ) . '</li>';
550
return ob_get_clean();
551
}
552
557
?>
558
<li>
559
<a class="title" href="<?php echo get_permalink( $product_id ) ?>"><?php echo $product->get_title() ?></a>
560
+ <a href="<?php echo $this->remove_product_url( $product_id ) ?>" data-product_id="<?php echo $product_id; ?>" class="remove" title="<?php _e( 'Remove', 'yith-woocommerce-compare' ) ?>">x</a>
561
</li>
562
<?php
563
}
includes/class.yith-woocompare-helper.php CHANGED
@@ -42,12 +42,12 @@ if( !class_exists( 'YITH_Woocompare_Helper' ) ) {
42
public static function standard_fields( $with_attr = true ) {
43
44
$fields = array(
45
- 'image' => __( 'Image', 'yith-wcmp' ),
46
- 'title' => __( 'Title', 'yith-wcmp' ),
47
- 'price' => __( 'Price', 'yith-wcmp' ),
48
- 'add-to-cart' => __( 'Add to cart', 'yith-wcmp' ),
49
- 'description' => __( 'Description', 'yith-wcmp' ),
50
- 'stock' => __( 'Availability', 'yith-wcmp' )
51
);
52
53
if( $with_attr )
42
public static function standard_fields( $with_attr = true ) {
43
44
$fields = array(
45
+ 'image' => __( 'Image', 'yith-woocommerce-compare' ),
46
+ 'title' => __( 'Title', 'yith-woocommerce-compare' ),
47
+ 'price' => __( 'Price', 'yith-woocommerce-compare' ),
48
+ 'add-to-cart' => __( 'Add to cart', 'yith-woocommerce-compare' ),
49
+ 'description' => __( 'Description', 'yith-woocommerce-compare' ),
50
+ 'stock' => __( 'Availability', 'yith-woocommerce-compare' )
51
);
52
53
if( $with_attr )
init.php CHANGED
@@ -3,15 +3,15 @@
3
* Plugin Name: YITH WooCommerce Compare
4
* Plugin URI: https://yithemes.com/
5
* Description: YITH WooCommerce Compare allows you to compare more products with WooCommerce plugin, through product attributes.
6
- * Version: 2.0.3
7
* Author: Yithemes
8
* Author URI: http://yithemes.com/
9
- * Text Domain: yith-wcmp
10
* Domain Path: /languages/
11
*
12
* @author Yithemes
13
* @package YITH WooCommerce Compare
14
- * @version 2.0.3
15
*/
16
/* Copyright 2013 Your Inspiration Themes (email : plugins@yithemes.com)
17
@@ -37,7 +37,7 @@ if ( ! function_exists( 'is_plugin_active' ) ) {
37
function yith_woocompare_install_woocommerce_admin_notice() {
38
?>
39
<div class="error">
40
- <p><?php _e( 'YITH WooCommerce Compare is enabled but not effective. It requires WooCommerce in order to work.', 'yith-wcmp' ); ?></p>
41
</div>
42
<?php
43
}
@@ -45,7 +45,7 @@ function yith_woocompare_install_woocommerce_admin_notice() {
45
function yith_woocompare_install_free_admin_notice() {
46
?>
47
<div class="error">
48
- <p><?php _e( 'You can\'t activate the free version of YITH WooCommerce Compare while you are using the premium one.', 'yith-wcmp' ); ?></p>
49
</div>
50
<?php
51
}
@@ -56,7 +56,7 @@ if ( ! function_exists( 'yith_plugin_registration_hook' ) ) {
56
register_activation_hook( __FILE__, 'yith_plugin_registration_hook' );
57
58
if ( ! defined( 'YITH_WOOCOMPARE_VERSION' ) ){
59
- define( 'YITH_WOOCOMPARE_VERSION', '2.0.3' );
60
}
61
if ( ! defined( 'YITH_WOOCOMPARE_FREE_INIT' ) ) {
62
define( 'YITH_WOOCOMPARE_FREE_INIT', plugin_basename( __FILE__ ) );
@@ -98,7 +98,7 @@ function yith_woocompare_constructor() {
98
return;
99
}
100
101
- load_plugin_textdomain( 'yith-wcmp', false, dirname( plugin_basename( __FILE__ ) ). '/languages/' );
102
103
// Load required classes and functions
104
require_once('includes/class.yith-woocompare-helper.php');
3
* Plugin Name: YITH WooCommerce Compare
4
* Plugin URI: https://yithemes.com/
5
* Description: YITH WooCommerce Compare allows you to compare more products with WooCommerce plugin, through product attributes.
6
+ * Version: 2.0.4
7
* Author: Yithemes
8
* Author URI: http://yithemes.com/
9
+ * Text Domain: yith-woocommerce-compare
10
* Domain Path: /languages/
11
*
12
* @author Yithemes
13
* @package YITH WooCommerce Compare
14
+ * @version 2.0.4
15
*/
16
/* Copyright 2013 Your Inspiration Themes (email : plugins@yithemes.com)
17
37
function yith_woocompare_install_woocommerce_admin_notice() {
38
?>
39
<div class="error">
40
+ <p><?php _e( 'YITH WooCommerce Compare is enabled but not effective. It requires WooCommerce in order to work.', 'yith-woocommerce-compare' ); ?></p>
41
</div>
42
<?php
43
}
45
function yith_woocompare_install_free_admin_notice() {
46
?>
47
<div class="error">
48
+ <p><?php _e( 'You can\'t activate the free version of YITH WooCommerce Compare while you are using the premium one.', 'yith-woocommerce-compare' ); ?></p>
49
</div>
50
<?php
51
}
56
register_activation_hook( __FILE__, 'yith_plugin_registration_hook' );
57
58
if ( ! defined( 'YITH_WOOCOMPARE_VERSION' ) ){
59
+ define( 'YITH_WOOCOMPARE_VERSION', '2.0.4' );
60
}
61
if ( ! defined( 'YITH_WOOCOMPARE_FREE_INIT' ) ) {
62
define( 'YITH_WOOCOMPARE_FREE_INIT', plugin_basename( __FILE__ ) );
98
return;
99
}
100
101
+ load_plugin_textdomain( 'yith-woocommerce-compare', false, dirname( plugin_basename( __FILE__ ) ). '/languages/' );
102
103
// Load required classes and functions
104
require_once('includes/class.yith-woocompare-helper.php');
languages/yith-wcmp-it_IT.mo DELETED
Binary file
languages/{yith-wcmp-bg_BG.mo → yith-woocommerce-compare-bg_BG.mo} RENAMED
Binary file
languages/{yith-wcmp-bg_BG.po → yith-woocommerce-compare-bg_BG.po} RENAMED
@@ -1,11 +1,11 @@
1
msgid ""
2
msgstr ""
3
"Project-Id-Version: YITH Woocommerce Compare\n"
4
- "POT-Creation-Date: 2015-07-14 15:30+0200\n"
5
- "PO-Revision-Date: 2015-07-14 15:31+0200\n"
6
"Last-Translator: \n"
7
"Language-Team: Your Inspiration Themes <support@yithemes.com>\n"
8
- "Language: en\n"
9
"MIME-Version: 1.0\n"
10
"Content-Type: text/plain; charset=UTF-8\n"
11
"Content-Transfer-Encoding: 8bit\n"
@@ -13,36 +13,37 @@ msgstr ""
13
"X-Poedit-KeywordsList: __;_e;_x\n"
14
"X-Poedit-Basepath: ..\n"
15
"X-Poedit-SourceCharset: UTF-8\n"
16
"X-Poedit-SearchPath-0: .\n"
17
"X-Poedit-SearchPathExcluded-0: plugin-fw\n"
18
19
#: includes/class.yith-woocompare-admin.php:117
20
- #: includes/class.yith-woocompare-admin.php:139
21
msgid "Settings"
22
msgstr ""
23
24
- #: includes/class.yith-woocompare-admin.php:118
25
- #: includes/class.yith-woocompare-admin.php:143
26
msgid "Premium Version"
27
msgstr ""
28
29
- #: includes/class.yith-woocompare-admin.php:149
30
- #: includes/class.yith-woocompare-admin.php:150
31
#: includes/class.yith-woocompare-frontend.php:353
32
#: plugin-options/general-options.php:40
33
#: widgets/class.yith-woocompare-widget.php:50
34
msgid "Compare"
35
msgstr "Сравни"
36
37
- #: includes/class.yith-woocompare-admin.php:213
38
msgid "Plugin Documentation"
39
msgstr ""
40
41
- #: includes/class.yith-woocompare-admin.php:232
42
msgid "YITH WooCommerce Compare Activated"
43
msgstr ""
44
45
- #: includes/class.yith-woocompare-admin.php:233
46
#, php-format
47
msgid ""
48
"In the YIT Plugin tab you can find the YITH WooCommerce Compare options. "
@@ -51,11 +52,11 @@ msgid ""
51
"PREMIUM version with many new options, <a href=\"%s\">discover it now</a>."
52
msgstr ""
53
54
- #: includes/class.yith-woocompare-admin.php:244
55
msgid "YITH WooCommerce Compare Updated"
56
msgstr ""
57
58
- #: includes/class.yith-woocompare-admin.php:245
59
#, php-format
60
msgid ""
61
"From now on, you can find all the options of YITH WooCommerce Compare under "
@@ -65,7 +66,7 @@ msgid ""
65
"available options, <a href=\"%s\">discover the PREMIUM version.</a>"
66
msgstr ""
67
68
- #: includes/class.yith-woocompare-admin.php:390
69
msgid "Do you want to hard crop the image?"
70
msgstr ""
71
1
msgid ""
2
msgstr ""
3
"Project-Id-Version: YITH Woocommerce Compare\n"
4
+ "POT-Creation-Date: 2015-09-22 09:45+0200\n"
5
+ "PO-Revision-Date: 2015-09-22 09:45+0200\n"
6
"Last-Translator: \n"
7
"Language-Team: Your Inspiration Themes <support@yithemes.com>\n"
8
+ "Language: bg_BG\n"
9
"MIME-Version: 1.0\n"
10
"Content-Type: text/plain; charset=UTF-8\n"
11
"Content-Transfer-Encoding: 8bit\n"
13
"X-Poedit-KeywordsList: __;_e;_x\n"
14
"X-Poedit-Basepath: ..\n"
15
"X-Poedit-SourceCharset: UTF-8\n"
16
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
17
"X-Poedit-SearchPath-0: .\n"
18
"X-Poedit-SearchPathExcluded-0: plugin-fw\n"
19
20
#: includes/class.yith-woocompare-admin.php:117
21
+ #: includes/class.yith-woocompare-admin.php:141
22
msgid "Settings"
23
msgstr ""
24
25
+ #: includes/class.yith-woocompare-admin.php:119
26
+ #: includes/class.yith-woocompare-admin.php:145
27
msgid "Premium Version"
28
msgstr ""
29
30
+ #: includes/class.yith-woocompare-admin.php:151
31
+ #: includes/class.yith-woocompare-admin.php:152
32
#: includes/class.yith-woocompare-frontend.php:353
33
#: plugin-options/general-options.php:40
34
#: widgets/class.yith-woocompare-widget.php:50
35
msgid "Compare"
36
msgstr "Сравни"
37
38
+ #: includes/class.yith-woocompare-admin.php:215
39
msgid "Plugin Documentation"
40
msgstr ""
41
42
+ #: includes/class.yith-woocompare-admin.php:235
43
msgid "YITH WooCommerce Compare Activated"
44
msgstr ""
45
46
+ #: includes/class.yith-woocompare-admin.php:236
47
#, php-format
48
msgid ""
49
"In the YIT Plugin tab you can find the YITH WooCommerce Compare options. "
52
"PREMIUM version with many new options, <a href=\"%s\">discover it now</a>."
53
msgstr ""
54
55
+ #: includes/class.yith-woocompare-admin.php:247
56
msgid "YITH WooCommerce Compare Updated"
57
msgstr ""
58
59
+ #: includes/class.yith-woocompare-admin.php:248
60
#, php-format
61
msgid ""
62
"From now on, you can find all the options of YITH WooCommerce Compare under "
66
"available options, <a href=\"%s\">discover the PREMIUM version.</a>"
67
msgstr ""
68
69
+ #: includes/class.yith-woocompare-admin.php:393
70
msgid "Do you want to hard crop the image?"
71
msgstr ""
72
languages/{yith-wcmp-es_ES.mo → yith-woocommerce-compare-es_ES.mo} RENAMED
Binary file
languages/{yith-wcmp-es_ES.po → yith-woocommerce-compare-es_ES.po} RENAMED
@@ -1,8 +1,8 @@
1
msgid ""
2
msgstr ""
3
"Project-Id-Version: YITH Woocommerce Compare\n"
4
- "POT-Creation-Date: 2015-07-14 15:32+0200\n"
5
- "PO-Revision-Date: 2015-07-14 15:32+0200\n"
6
"Last-Translator: Radi Angelov <fullmetalradi@hotmail.com>\n"
7
"Language-Team: Your Inspiration Themes <support@yithemes.com>\n"
8
"Language: es_ES\n"
@@ -18,32 +18,32 @@ msgstr ""
18
"X-Poedit-SearchPathExcluded-0: plugin-fw\n"
19
20
#: includes/class.yith-woocompare-admin.php:117
21
- #: includes/class.yith-woocompare-admin.php:139
22
msgid "Settings"
23
msgstr ""
24
25
- #: includes/class.yith-woocompare-admin.php:118
26
- #: includes/class.yith-woocompare-admin.php:143
27
msgid "Premium Version"
28
msgstr ""
29
30
- #: includes/class.yith-woocompare-admin.php:149
31
- #: includes/class.yith-woocompare-admin.php:150
32
#: includes/class.yith-woocompare-frontend.php:353
33
#: plugin-options/general-options.php:40
34
#: widgets/class.yith-woocompare-widget.php:50
35
msgid "Compare"
36
msgstr "Comparar"
37
38
- #: includes/class.yith-woocompare-admin.php:213
39
msgid "Plugin Documentation"
40
msgstr ""
41
42
- #: includes/class.yith-woocompare-admin.php:232
43
msgid "YITH WooCommerce Compare Activated"
44
msgstr ""
45
46
- #: includes/class.yith-woocompare-admin.php:233
47
#, php-format
48
msgid ""
49
"In the YIT Plugin tab you can find the YITH WooCommerce Compare options. "
@@ -52,11 +52,11 @@ msgid ""
52
"PREMIUM version with many new options, <a href=\"%s\">discover it now</a>."
53
msgstr ""
54
55
- #: includes/class.yith-woocompare-admin.php:244
56
msgid "YITH WooCommerce Compare Updated"
57
msgstr ""
58
59
- #: includes/class.yith-woocompare-admin.php:245
60
#, php-format
61
msgid ""
62
"From now on, you can find all the options of YITH WooCommerce Compare under "
@@ -66,7 +66,7 @@ msgid ""
66
"available options, <a href=\"%s\">discover the PREMIUM version.</a>"
67
msgstr ""
68
69
- #: includes/class.yith-woocompare-admin.php:390
70
msgid "Do you want to hard crop the image?"
71
msgstr ""
72
1
msgid ""
2
msgstr ""
3
"Project-Id-Version: YITH Woocommerce Compare\n"
4
+ "POT-Creation-Date: 2015-09-22 09:44+0200\n"
5
+ "PO-Revision-Date: 2015-09-22 09:44+0200\n"
6
"Last-Translator: Radi Angelov <fullmetalradi@hotmail.com>\n"
7
"Language-Team: Your Inspiration Themes <support@yithemes.com>\n"
8
"Language: es_ES\n"
18
"X-Poedit-SearchPathExcluded-0: plugin-fw\n"
19
20
#: includes/class.yith-woocompare-admin.php:117
21
+ #: includes/class.yith-woocompare-admin.php:141
22
msgid "Settings"
23
msgstr ""
24
25
+ #: includes/class.yith-woocompare-admin.php:119
26
+ #: includes/class.yith-woocompare-admin.php:145
27
msgid "Premium Version"
28
msgstr ""
29
30
+ #: includes/class.yith-woocompare-admin.php:151
31
+ #: includes/class.yith-woocompare-admin.php:152
32
#: includes/class.yith-woocompare-frontend.php:353
33
#: plugin-options/general-options.php:40
34
#: widgets/class.yith-woocompare-widget.php:50
35
msgid "Compare"
36
msgstr "Comparar"
37
38
+ #: includes/class.yith-woocompare-admin.php:215
39
msgid "Plugin Documentation"
40
msgstr ""
41
42
+ #: includes/class.yith-woocompare-admin.php:235
43
msgid "YITH WooCommerce Compare Activated"
44
msgstr ""
45
46
+ #: includes/class.yith-woocompare-admin.php:236
47
#, php-format
48
msgid ""
49
"In the YIT Plugin tab you can find the YITH WooCommerce Compare options. "
52
"PREMIUM version with many new options, <a href=\"%s\">discover it now</a>."
53
msgstr ""
54
55
+ #: includes/class.yith-woocompare-admin.php:247
56
msgid "YITH WooCommerce Compare Updated"
57
msgstr ""
58
59
+ #: includes/class.yith-woocompare-admin.php:248
60
#, php-format
61
msgid ""
62
"From now on, you can find all the options of YITH WooCommerce Compare under "
66
"available options, <a href=\"%s\">discover the PREMIUM version.</a>"
67
msgstr ""
68
69
+ #: includes/class.yith-woocompare-admin.php:393
70
msgid "Do you want to hard crop the image?"
71
msgstr ""
72
languages/{yith-wcmp-fa_IR.mo → yith-woocommerce-compare-fa_IR.mo} RENAMED
Binary file
languages/{yith-wcmp-fa_IR.po → yith-woocommerce-compare-fa_IR.po} RENAMED
@@ -1,8 +1,8 @@
1
msgid ""
2
msgstr ""
3
"Project-Id-Version: YITH Woocommerce Compare\n"
4
- "POT-Creation-Date: 2015-07-14 15:33+0200\n"
5
- "PO-Revision-Date: 2015-07-14 15:33+0200\n"
6
"Last-Translator: Khalil Delavaran <khalil.delavaran@gmail.com>\n"
7
"Language-Team: Qooqnos <khalil.delavaran@gmail.com>\n"
8
"Language: fa\n"
@@ -17,32 +17,32 @@ msgstr ""
17
"X-Poedit-SearchPathExcluded-0: plugin-fw\n"
18
19
#: includes/class.yith-woocompare-admin.php:117
20
- #: includes/class.yith-woocompare-admin.php:139
21
msgid "Settings"
22
msgstr ""
23
24
- #: includes/class.yith-woocompare-admin.php:118
25
- #: includes/class.yith-woocompare-admin.php:143
26
msgid "Premium Version"
27
msgstr ""
28
29
- #: includes/class.yith-woocompare-admin.php:149
30
- #: includes/class.yith-woocompare-admin.php:150
31
#: includes/class.yith-woocompare-frontend.php:353
32
#: plugin-options/general-options.php:40
33
#: widgets/class.yith-woocompare-widget.php:50
34
msgid "Compare"
35
msgstr "سنجش"
36
37
- #: includes/class.yith-woocompare-admin.php:213
38
msgid "Plugin Documentation"
39
msgstr ""
40
41
- #: includes/class.yith-woocompare-admin.php:232
42
msgid "YITH WooCommerce Compare Activated"
43
msgstr ""
44
45
- #: includes/class.yith-woocompare-admin.php:233
46
#, php-format
47
msgid ""
48
"In the YIT Plugin tab you can find the YITH WooCommerce Compare options. "
@@ -51,11 +51,11 @@ msgid ""
51
"PREMIUM version with many new options, <a href=\"%s\">discover it now</a>."
52
msgstr ""
53
54
- #: includes/class.yith-woocompare-admin.php:244
55
msgid "YITH WooCommerce Compare Updated"
56
msgstr ""
57
58
- #: includes/class.yith-woocompare-admin.php:245
59
#, php-format
60
msgid ""
61
"From now on, you can find all the options of YITH WooCommerce Compare under "
@@ -65,7 +65,7 @@ msgid ""
65
"available options, <a href=\"%s\">discover the PREMIUM version.</a>"
66
msgstr ""
67
68
- #: includes/class.yith-woocompare-admin.php:390
69
msgid "Do you want to hard crop the image?"
70
msgstr ""
71
1
msgid ""
2
msgstr ""
3
"Project-Id-Version: YITH Woocommerce Compare\n"
4
+ "POT-Creation-Date: 2015-09-22 09:43+0200\n"
5
+ "PO-Revision-Date: 2015-09-22 09:43+0200\n"
6
"Last-Translator: Khalil Delavaran <khalil.delavaran@gmail.com>\n"
7
"Language-Team: Qooqnos <khalil.delavaran@gmail.com>\n"
8
"Language: fa\n"
17
"X-Poedit-SearchPathExcluded-0: plugin-fw\n"
18
19
#: includes/class.yith-woocompare-admin.php:117
20
+ #: includes/class.yith-woocompare-admin.php:141
21
msgid "Settings"
22
msgstr ""
23
24
+ #: includes/class.yith-woocompare-admin.php:119
25
+ #: includes/class.yith-woocompare-admin.php:145
26
msgid "Premium Version"
27
msgstr ""
28
29
+ #: includes/class.yith-woocompare-admin.php:151
30
+ #: includes/class.yith-woocompare-admin.php:152
31
#: includes/class.yith-woocompare-frontend.php:353
32
#: plugin-options/general-options.php:40
33
#: widgets/class.yith-woocompare-widget.php:50
34
msgid "Compare"
35
msgstr "سنجش"
36
37
+ #: includes/class.yith-woocompare-admin.php:215
38
msgid "Plugin Documentation"
39
msgstr ""
40
41
+ #: includes/class.yith-woocompare-admin.php:235
42
msgid "YITH WooCommerce Compare Activated"
43
msgstr ""
44
45
+ #: includes/class.yith-woocompare-admin.php:236
46
#, php-format
47
msgid ""
48
"In the YIT Plugin tab you can find the YITH WooCommerce Compare options. "
51
"PREMIUM version with many new options, <a href=\"%s\">discover it now</a>."
52
msgstr ""
53
54
+ #: includes/class.yith-woocompare-admin.php:247
55
msgid "YITH WooCommerce Compare Updated"
56
msgstr ""
57
58
+ #: includes/class.yith-woocompare-admin.php:248
59
#, php-format
60
msgid ""
61
"From now on, you can find all the options of YITH WooCommerce Compare under "
65
"available options, <a href=\"%s\">discover the PREMIUM version.</a>"
66
msgstr ""
67
68
+ #: includes/class.yith-woocompare-admin.php:393
69
msgid "Do you want to hard crop the image?"
70
msgstr ""
71
languages/{yith-wcmp-fr_FR.mo → yith-woocommerce-compare-fr_FR.mo} RENAMED
Binary file
languages/{yith-wcmp-fr_FR.po → yith-woocommerce-compare-fr_FR.po} RENAMED
@@ -1,11 +1,11 @@
1
msgid ""
2
msgstr ""
3
"Project-Id-Version: YITH Woocommerce Compare\n"
4
- "POT-Creation-Date: 2015-07-14 15:46+0200\n"
5
- "PO-Revision-Date: 2015-07-14 15:46+0200\n"
6
"Last-Translator: YIThemes <support@yithemes.com>\n"
7
"Language-Team: Your Inspiration Themes <support@yithemes.com>\n"
8
- "Language: en\n"
9
"MIME-Version: 1.0\n"
10
"Content-Type: text/plain; charset=UTF-8\n"
11
"Content-Transfer-Encoding: 8bit\n"
@@ -13,36 +13,37 @@ msgstr ""
13
"X-Poedit-KeywordsList: __;_e;_x\n"
14
"X-Poedit-Basepath: ..\n"
15
"X-Poedit-SourceCharset: UTF-8\n"
16
"X-Poedit-SearchPath-0: .\n"
17
"X-Poedit-SearchPathExcluded-0: plugin-fw\n"
18
19
#: includes/class.yith-woocompare-admin.php:117
20
- #: includes/class.yith-woocompare-admin.php:139
21
msgid "Settings"
22
msgstr ""
23
24
- #: includes/class.yith-woocompare-admin.php:118
25
- #: includes/class.yith-woocompare-admin.php:143
26
msgid "Premium Version"
27
msgstr ""
28
29
- #: includes/class.yith-woocompare-admin.php:149
30
- #: includes/class.yith-woocompare-admin.php:150
31
#: includes/class.yith-woocompare-frontend.php:353
32
#: plugin-options/general-options.php:40
33
#: widgets/class.yith-woocompare-widget.php:50
34
msgid "Compare"
35
msgstr "Comparer"
36
37
- #: includes/class.yith-woocompare-admin.php:213
38
msgid "Plugin Documentation"
39
msgstr ""
40
41
- #: includes/class.yith-woocompare-admin.php:232
42
msgid "YITH WooCommerce Compare Activated"
43
msgstr ""
44
45
- #: includes/class.yith-woocompare-admin.php:233
46
#, php-format
47
msgid ""
48
"In the YIT Plugin tab you can find the YITH WooCommerce Compare options. "
@@ -51,11 +52,11 @@ msgid ""
51
"PREMIUM version with many new options, <a href=\"%s\">discover it now</a>."
52
msgstr ""
53
54
- #: includes/class.yith-woocompare-admin.php:244
55
msgid "YITH WooCommerce Compare Updated"
56
msgstr ""
57
58
- #: includes/class.yith-woocompare-admin.php:245
59
#, php-format
60
msgid ""
61
"From now on, you can find all the options of YITH WooCommerce Compare under "
@@ -65,7 +66,7 @@ msgid ""
65
"available options, <a href=\"%s\">discover the PREMIUM version.</a>"
66
msgstr ""
67
68
- #: includes/class.yith-woocompare-admin.php:390
69
msgid "Do you want to hard crop the image?"
70
msgstr ""
71
1
msgid ""
2
msgstr ""
3
"Project-Id-Version: YITH Woocommerce Compare\n"
4
+ "POT-Creation-Date: 2015-09-22 09:42+0200\n"
5
+ "PO-Revision-Date: 2015-09-22 09:42+0200\n"
6
"Last-Translator: YIThemes <support@yithemes.com>\n"
7
"Language-Team: Your Inspiration Themes <support@yithemes.com>\n"
8
+ "Language: fr\n"
9
"MIME-Version: 1.0\n"
10
"Content-Type: text/plain; charset=UTF-8\n"
11
"Content-Transfer-Encoding: 8bit\n"
13
"X-Poedit-KeywordsList: __;_e;_x\n"
14
"X-Poedit-Basepath: ..\n"
15
"X-Poedit-SourceCharset: UTF-8\n"
16
+ "Plural-Forms: nplurals=2; plural=(n > 1);\n"
17
"X-Poedit-SearchPath-0: .\n"
18
"X-Poedit-SearchPathExcluded-0: plugin-fw\n"
19
20
#: includes/class.yith-woocompare-admin.php:117
21
+ #: includes/class.yith-woocompare-admin.php:141
22
msgid "Settings"
23
msgstr ""
24
25
+ #: includes/class.yith-woocompare-admin.php:119
26
+ #: includes/class.yith-woocompare-admin.php:145
27
msgid "Premium Version"
28
msgstr ""
29
30
+ #: includes/class.yith-woocompare-admin.php:151
31
+ #: includes/class.yith-woocompare-admin.php:152
32
#: includes/class.yith-woocompare-frontend.php:353
33
#: plugin-options/general-options.php:40
34
#: widgets/class.yith-woocompare-widget.php:50
35
msgid "Compare"
36
msgstr "Comparer"
37
38
+ #: includes/class.yith-woocompare-admin.php:215
39
msgid "Plugin Documentation"
40
msgstr ""
41
42
+ #: includes/class.yith-woocompare-admin.php:235
43
msgid "YITH WooCommerce Compare Activated"
44
msgstr ""
45
46
+ #: includes/class.yith-woocompare-admin.php:236
47
#, php-format
48
msgid ""
49
"In the YIT Plugin tab you can find the YITH WooCommerce Compare options. "
52
"PREMIUM version with many new options, <a href=\"%s\">discover it now</a>."
53
msgstr ""
54
55
+ #: includes/class.yith-woocompare-admin.php:247
56
msgid "YITH WooCommerce Compare Updated"
57
msgstr ""
58
59
+ #: includes/class.yith-woocompare-admin.php:248
60
#, php-format
61
msgid ""
62
"From now on, you can find all the options of YITH WooCommerce Compare under "
66
"available options, <a href=\"%s\">discover the PREMIUM version.</a>"
67
msgstr ""
68
69
+ #: includes/class.yith-woocompare-admin.php:393
70
msgid "Do you want to hard crop the image?"
71
msgstr ""
72
languages/yith-woocommerce-compare-it_IT.mo ADDED
Binary file
languages/{yith-wcmp-it_IT.po → yith-woocommerce-compare-it_IT.po} RENAMED
@@ -1,11 +1,11 @@
1
msgid ""
2
msgstr ""
3
"Project-Id-Version: YITH Woocommerce Compare\n"
4
- "POT-Creation-Date: 2015-07-14 15:47+0200\n"
5
- "PO-Revision-Date: 2015-07-14 15:47+0200\n"
6
"Last-Translator: Nicola Mustone <mail@nicolamustone.it>\n"
7
"Language-Team: Your Inspiration Themes <support@yithemes.com>\n"
8
- "Language: en\n"
9
"MIME-Version: 1.0\n"
10
"Content-Type: text/plain; charset=UTF-8\n"
11
"Content-Transfer-Encoding: 8bit\n"
@@ -13,36 +13,37 @@ msgstr ""
13
"X-Poedit-KeywordsList: __;_e;_x\n"
14
"X-Poedit-Basepath: ..\n"
15
"X-Poedit-SourceCharset: UTF-8\n"
16
"X-Poedit-SearchPath-0: .\n"
17
"X-Poedit-SearchPathExcluded-0: plugin-fw\n"
18
19
#: includes/class.yith-woocompare-admin.php:117
20
- #: includes/class.yith-woocompare-admin.php:139
21
msgid "Settings"
22
msgstr "Impostazioni"
23
24
- #: includes/class.yith-woocompare-admin.php:118
25
- #: includes/class.yith-woocompare-admin.php:143
26
msgid "Premium Version"
27
- msgstr ""
28
29
- #: includes/class.yith-woocompare-admin.php:149
30
- #: includes/class.yith-woocompare-admin.php:150
31
#: includes/class.yith-woocompare-frontend.php:353
32
#: plugin-options/general-options.php:40
33
#: widgets/class.yith-woocompare-widget.php:50
34
msgid "Compare"
35
- msgstr "Compara"
36
37
- #: includes/class.yith-woocompare-admin.php:213
38
msgid "Plugin Documentation"
39
- msgstr ""
40
41
- #: includes/class.yith-woocompare-admin.php:232
42
msgid "YITH WooCommerce Compare Activated"
43
- msgstr ""
44
45
- #: includes/class.yith-woocompare-admin.php:233
46
#, php-format
47
msgid ""
48
"In the YIT Plugin tab you can find the YITH WooCommerce Compare options. "
@@ -50,12 +51,17 @@ msgid ""
50
"have activated. YITH WooCommerce Compare is available in an outstanding "
51
"PREMIUM version with many new options, <a href=\"%s\">discover it now</a>."
52
msgstr ""
53
54
- #: includes/class.yith-woocompare-admin.php:244
55
msgid "YITH WooCommerce Compare Updated"
56
- msgstr ""
57
58
- #: includes/class.yith-woocompare-admin.php:245
59
#, php-format
60
msgid ""
61
"From now on, you can find all the options of YITH WooCommerce Compare under "
@@ -64,10 +70,16 @@ msgid ""
64
"be added to this menu. YITH WooCommerce Compare has been updated with new "
65
"available options, <a href=\"%s\">discover the PREMIUM version.</a>"
66
msgstr ""
67
-
68
- #: includes/class.yith-woocompare-admin.php:390
69
msgid "Do you want to hard crop the image?"
70
- msgstr ""
71
72
#: includes/class.yith-woocompare-frontend.php:142
73
msgid "Added"
@@ -119,12 +131,16 @@ msgid ""
119
"YITH WooCommerce Compare is enabled but not effective. It requires "
120
"WooCommerce in order to work."
121
msgstr ""
122
123
#: init.php:48
124
msgid ""
125
"You can't activate the free version of YITH WooCommerce Compare while you "
126
"are using the premium one."
127
msgstr ""
128
129
#: plugin-options/general-options.php:17
130
msgid "General Settings"
@@ -132,13 +148,13 @@ msgstr "Impostazioni Generali"
132
133
#: plugin-options/general-options.php:24
134
msgid "Link or Button"
135
- msgstr "Collegamento o Pulsante"
136
137
#: plugin-options/general-options.php:25
138
msgid "Choose if you want to use a link or a button for the action button."
139
msgstr ""
140
"Scegli se vuoi usare un collegamento o un pulsante per l'azione di "
141
- "\"Comparazione\""
142
143
#: plugin-options/general-options.php:31
144
msgid "Link"
@@ -150,15 +166,17 @@ msgstr "Pulsante"
150
151
#: plugin-options/general-options.php:37
152
msgid "Link/Button text"
153
- msgstr "Testo Link/Pulsante"
154
155
#: plugin-options/general-options.php:38
156
msgid "Type the text to use for the button or the link of the compare."
157
msgstr ""
158
159
#: plugin-options/general-options.php:45
160
msgid "Show button in single product page"
161
- msgstr "Mostra pulsante nella pagina del dettaglio prodotto"
162
163
#: plugin-options/general-options.php:46
164
msgid "Say if you want to show the button in the single product page."
@@ -175,11 +193,11 @@ msgstr "Imposta se vuoi mostrare il pulsante nella lista prodotti."
175
176
#: plugin-options/general-options.php:63
177
msgid "Open automatically lightbox"
178
- msgstr "Apri la lightbox automaticamente"
179
180
#: plugin-options/general-options.php:64
181
msgid "Open link after click into \"Compare\" button\"."
182
- msgstr "Apri pagina dopo aver cliccato sul pulsante \"Compare\"."
183
184
#: plugin-options/general-options.php:77
185
msgid "Table Settings"
@@ -187,15 +205,15 @@ msgstr "Impostazioni tabella."
187
188
#: plugin-options/general-options.php:84
189
msgid "Table title"
190
- msgstr "Titolo Tabella"
191
192
#: plugin-options/general-options.php:85
193
msgid "Type the text to use for the table title."
194
- msgstr ""
195
196
#: plugin-options/general-options.php:87
197
msgid "Compare products"
198
- msgstr "Compara prodotti"
199
200
#: plugin-options/general-options.php:92
201
msgid "Fields to show"
@@ -211,19 +229,19 @@ msgstr ""
211
212
#: plugin-options/general-options.php:101
213
msgid "Repeat \"Price\" field"
214
- msgstr ""
215
216
#: plugin-options/general-options.php:102
217
msgid "Repeat the \"Price\" field at the end of the table"
218
- msgstr ""
219
220
#: plugin-options/general-options.php:110
221
msgid "Repeat \"Add to cart\" field"
222
- msgstr ""
223
224
#: plugin-options/general-options.php:111
225
msgid "Repeat the \"Add to cart\" field at the end of the table"
226
- msgstr ""
227
228
#: plugin-options/general-options.php:119
229
msgid "Image size"
@@ -239,22 +257,24 @@ msgid ""
239
"Upgrade to %1$spremium version%2$s of %1$sYITH WooCommerce Compare%2$s to "
240
"benefit from all features!"
241
msgstr ""
242
243
#: templates/admin/premium.php:231 templates/admin/premium.php:373
244
msgid "UPGRADE"
245
- msgstr ""
246
247
#: templates/admin/premium.php:232 templates/admin/premium.php:374
248
msgid "to the premium version"
249
- msgstr ""
250
251
#: templates/admin/premium.php:238
252
msgid "Premium Features"
253
- msgstr ""
254
255
#: templates/admin/premium.php:246
256
msgid "A DEDICATED PAGE"
257
- msgstr ""
258
259
#: templates/admin/premium.php:249
260
#, php-format
@@ -265,10 +285,15 @@ msgid ""
265
"you will be able to give to your users the chance to access it easily "
266
"whenever they want."
267
msgstr ""
268
269
#: templates/admin/premium.php:259
270
msgid "CATEGORY COMPARATION"
271
- msgstr ""
272
273
#: templates/admin/premium.php:262
274
#, php-format
@@ -279,10 +304,16 @@ msgid ""
279
"need: you will be able to separate the products in the table by category "
280
"affinity."
281
msgstr ""
282
283
#: templates/admin/premium.php:278
284
msgid "CATEGORY EXCLUSION "
285
- msgstr ""
286
287
#: templates/admin/premium.php:281
288
#, php-format
@@ -294,10 +325,17 @@ msgid ""
294
"of the feature, allowing the comparison only to those products of the "
295
"selected categories."
296
msgstr ""
297
298
#: templates/admin/premium.php:291
299
msgid "TABLE IMAGE"
300
- msgstr ""
301
302
#: templates/admin/premium.php:294
303
#, php-format
@@ -306,10 +344,13 @@ msgid ""
306
"Select an image, upload it from the option panel and show it ahead of the "
307
"table to your users. "
308
msgstr ""
309
310
#: templates/admin/premium.php:310
311
msgid "DYNAMIC FIELDS"
312
- msgstr ""
313
314
#: templates/admin/premium.php:313
315
#, php-format
@@ -319,10 +360,15 @@ msgid ""
319
"%3$sActivate the %1$s\"Dynamic Attribute fields\"%2$s option and there will "
320
"be no more empty lines in your comparison table."
321
msgstr ""
322
323
#: templates/admin/premium.php:323
324
msgid "SOCIAL NETWORK SHARING"
325
- msgstr ""
326
327
#: templates/admin/premium.php:326
328
#, php-format
@@ -332,10 +378,14 @@ msgid ""
332
"Pinterest) and the email system %1$sto share%2$s the comparison table of the "
333
"products they have selected."
334
msgstr ""
335
336
#: templates/admin/premium.php:342
337
msgid "RELATED PRODUCTS"
338
- msgstr ""
339
340
#: templates/admin/premium.php:345
341
#, php-format
@@ -346,10 +396,15 @@ msgid ""
346
"users to discover the shop products of the shop related to those they are "
347
"interested into."
348
msgstr ""
349
350
#: templates/admin/premium.php:355
351
msgid "CUSTOMIZABLE STYLE"
352
- msgstr ""
353
354
#: templates/admin/premium.php:358
355
#, php-format
@@ -359,6 +414,11 @@ msgid ""
359
"of your shop.We know it, looks also count... and we give you the right tools "
360
"to get to the best result."
361
msgstr ""
362
363
#: templates/compare.php:76
364
msgid "Close window [X]"
@@ -382,6 +442,347 @@ msgstr "YITH Woocommerce Compare Widget"
382
msgid "Clear all"
383
msgstr "Cancella tutti"
384
385
#~ msgid "Products Compare"
386
#~ msgstr "Compara Prodotti"
387
@@ -732,21 +1133,12 @@ msgstr "Cancella tutti"
732
#~ "Qui puoi settare gli url dei tuoi account social (puoi lasciare vuoto se "
733
#~ "non vuoi mostrare la rispettiva icona social)"
734
735
- #~ msgid "Facebook"
736
- #~ msgstr "Facebook"
737
-
738
#~ msgid "Set the URL of your facebook profile"
739
#~ msgstr "Imposta l'URL del tuo profilo facebok"
740
741
- #~ msgid "Twitter"
742
- #~ msgstr "Twitter"
743
-
744
#~ msgid "Set the URL of your twitter profile"
745
#~ msgstr "Imposta l'URL del tuo profilo twitter"
746
747
- #~ msgid "Google+"
748
- #~ msgstr "Google+"
749
-
750
#~ msgid "Set the URL of your Google+ profile"
751
#~ msgstr "Imposta l'url del tuo profilo Google+"
752
@@ -768,9 +1160,6 @@ msgstr "Cancella tutti"
768
#~ msgid "Set the username of your skype account"
769
#~ msgstr "Imposta l'username del tuo account skype"
770
771
- #~ msgid "Email"
772
- #~ msgstr "Email"
773
-
774
#~ msgid "Write here your email address"
775
#~ msgstr "Scrivi qui il tuo indirizzo email"
776
@@ -798,9 +1187,6 @@ msgstr "Cancella tutti"
798
#~ msgid "Set the URL of your instagram profile"
799
#~ msgstr "Imposta l'URL del tuo profilo Instagram"
800
801
- #~ msgid "Pinterest"
802
- #~ msgstr "Pinterest"
803
-
804
#~ msgid "Set the URL of your Pinterest profile"
805
#~ msgstr "Imposta l'URL del tuo profilo Pinterest"
806
1
msgid ""
2
msgstr ""
3
"Project-Id-Version: YITH Woocommerce Compare\n"
4
+ "POT-Creation-Date: 2015-09-22 09:42+0200\n"
5
+ "PO-Revision-Date: 2015-09-22 09:42+0200\n"
6
"Last-Translator: Nicola Mustone <mail@nicolamustone.it>\n"
7
"Language-Team: Your Inspiration Themes <support@yithemes.com>\n"
8
+ "Language: it\n"
9
"MIME-Version: 1.0\n"
10
"Content-Type: text/plain; charset=UTF-8\n"
11
"Content-Transfer-Encoding: 8bit\n"
13
"X-Poedit-KeywordsList: __;_e;_x\n"
14
"X-Poedit-Basepath: ..\n"
15
"X-Poedit-SourceCharset: UTF-8\n"
16
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
17
"X-Poedit-SearchPath-0: .\n"
18
"X-Poedit-SearchPathExcluded-0: plugin-fw\n"
19
20
#: includes/class.yith-woocompare-admin.php:117
21
+ #: includes/class.yith-woocompare-admin.php:141
22
msgid "Settings"
23
msgstr "Impostazioni"
24
25
+ #: includes/class.yith-woocompare-admin.php:119
26
+ #: includes/class.yith-woocompare-admin.php:145
27
msgid "Premium Version"
28
+ msgstr "Versione premium"
29
30
+ #: includes/class.yith-woocompare-admin.php:151
31
+ #: includes/class.yith-woocompare-admin.php:152
32
#: includes/class.yith-woocompare-frontend.php:353
33
#: plugin-options/general-options.php:40
34
#: widgets/class.yith-woocompare-widget.php:50
35
msgid "Compare"
36
+ msgstr "Confronta"
37
38
+ #: includes/class.yith-woocompare-admin.php:215
39
msgid "Plugin Documentation"
40
+ msgstr "Documentazione plugin"
41
42
+ #: includes/class.yith-woocompare-admin.php:235
43
msgid "YITH WooCommerce Compare Activated"
44
+ msgstr "YITH WooCommerce Compare attivato"
45
46
+ #: includes/class.yith-woocompare-admin.php:236
47
#, php-format
48
msgid ""
49
"In the YIT Plugin tab you can find the YITH WooCommerce Compare options. "
51
"have activated. YITH WooCommerce Compare is available in an outstanding "
52
"PREMIUM version with many new options, <a href=\"%s\">discover it now</a>."
53
msgstr ""
54
+ "Nella scheda YIT Plugins puoi trovare tutte le opzioni di YITH WooCommerce "
55
+ "Compare. Da questo menù potrai accedere a tutte le impostazioni dei plugin "
56
+ "YITH installati. È disponibile un'eccezionale versione PREMIUM di YITH "
57
+ "WooCommerce Compare con molte nuove opzioni, <a href=\"%s\">scoprila subito</"
58
+ "a>."
59
60
+ #: includes/class.yith-woocompare-admin.php:247
61
msgid "YITH WooCommerce Compare Updated"
62
+ msgstr "YITH WooCommerce Compare aggiornato"
63
64
+ #: includes/class.yith-woocompare-admin.php:248
65
#, php-format
66
msgid ""
67
"From now on, you can find all the options of YITH WooCommerce Compare under "
70
"be added to this menu. YITH WooCommerce Compare has been updated with new "
71
"available options, <a href=\"%s\">discover the PREMIUM version.</a>"
72
msgstr ""
73
+ "Da questo momento, puoi trovare tutte le opzioni di YITH WooCommerce Compare "
74
+ "in YIT Plugins > Compare invece che come era nella versione precedente in "
75
+ "WooCommerce > Impostazioni > Compare. Quando uno dei nostri plugin viene "
76
+ "aggiornato, sarà aggiunta una nuova voce di a questo menù. YITH WooCommerce "
77
+ "Compare è stato aggiornato includendo nuove opzioni, <a href=\"%s\">scopri "
78
+ "la versione PREMIUM</a>."
79
+
80
+ #: includes/class.yith-woocompare-admin.php:393
81
msgid "Do you want to hard crop the image?"
82
+ msgstr "Vuoi ritagliare questa immagine?"
83
84
#: includes/class.yith-woocompare-frontend.php:142
85
msgid "Added"
131
"YITH WooCommerce Compare is enabled but not effective. It requires "
132
"WooCommerce in order to work."
133
msgstr ""
134
+ "YITH WooCommerce Compare è abilitato ma non in funzione. Devi aver "
135
+ "installato WooCommerce perché questo possa funzionare correttamente."
136
137
#: init.php:48
138
msgid ""
139
"You can't activate the free version of YITH WooCommerce Compare while you "
140
"are using the premium one."
141
msgstr ""
142
+ "Non è possibile attrivare la versione free di YITH WooCommerce Compare se "
143
+ "stai già utilizzando la premium."
144
145
#: plugin-options/general-options.php:17
146
msgid "General Settings"
148
149
#: plugin-options/general-options.php:24
150
msgid "Link or Button"
151
+ msgstr "Collegamento o pulsante"
152
153
#: plugin-options/general-options.php:25
154
msgid "Choose if you want to use a link or a button for the action button."
155
msgstr ""
156
"Scegli se vuoi usare un collegamento o un pulsante per l'azione di "
157
+ "\"Confronto\""
158
159
#: plugin-options/general-options.php:31
160
msgid "Link"
166
167
#: plugin-options/general-options.php:37
168
msgid "Link/Button text"
169
+ msgstr "Testo collegamento/pulsante"
170
171
#: plugin-options/general-options.php:38
172
msgid "Type the text to use for the button or the link of the compare."
173
msgstr ""
174
+ "Inserisci il testo da utilizzare per il pulsante o il collegamento che ti "
175
+ "permetterà di confrontare i prodotti."
176
177
#: plugin-options/general-options.php:45
178
msgid "Show button in single product page"
179
+ msgstr "Mostra pulsante nella pagina dettaglio prodotto"
180
181
#: plugin-options/general-options.php:46
182
msgid "Say if you want to show the button in the single product page."
193
194
#: plugin-options/general-options.php:63
195
msgid "Open automatically lightbox"
196
+ msgstr "Apri lightbox automaticamente"
197
198
#: plugin-options/general-options.php:64
199
msgid "Open link after click into \"Compare\" button\"."
200
+ msgstr "Apri pagina dopo aver cliccato sul pulsante \"Confronta\"."
201
202
#: plugin-options/general-options.php:77
203
msgid "Table Settings"
205
206
#: plugin-options/general-options.php:84
207
msgid "Table title"
208
+ msgstr "Titolo tabella"
209
210
#: plugin-options/general-options.php:85
211
msgid "Type the text to use for the table title."
212
+ msgstr "Inserisci il testo da utilizzare come titolo della tabella."
213
214
#: plugin-options/general-options.php:87
215
msgid "Compare products"
216
+ msgstr "Confronta prodotti"
217
218
#: plugin-options/general-options.php:92
219
msgid "Fields to show"
229
230
#: plugin-options/general-options.php:101
231
msgid "Repeat \"Price\" field"
232
+ msgstr "Ripeti campo \"Prezzo\""
233
234
#: plugin-options/general-options.php:102
235
msgid "Repeat the \"Price\" field at the end of the table"
236
+ msgstr "Ripeti il campo \"Prezzo\" alla fine di ogni tabella"
237
238
#: plugin-options/general-options.php:110
239
msgid "Repeat \"Add to cart\" field"
240
+ msgstr "Ripeti campo \"Aggiungi al carrello\""
241
242
#: plugin-options/general-options.php:111
243
msgid "Repeat the \"Add to cart\" field at the end of the table"
244
+ msgstr "Ripeti il campo \"Aggiungi al carrello\" alla fine di ogni tabella"
245
246
#: plugin-options/general-options.php:119
247
msgid "Image size"
257
"Upgrade to %1$spremium version%2$s of %1$sYITH WooCommerce Compare%2$s to "
258
"benefit from all features!"
259
msgstr ""
260
+ "Aggiorna alla %1$sversione premium%2$s di %1$sYITH WooCommerce Compare%2$s "
261
+ "per usufruire di tutte le sue funzionalità!"
262
263
#: templates/admin/premium.php:231 templates/admin/premium.php:373
264
msgid "UPGRADE"
265
+ msgstr "AGGIORNA"
266
267
#: templates/admin/premium.php:232 templates/admin/premium.php:374
268
msgid "to the premium version"
269
+ msgstr "alla versione premium"
270
271
#: templates/admin/premium.php:238
272
msgid "Premium Features"
273
+ msgstr "Funzionalità premium"
274
275
#: templates/admin/premium.php:246
276
msgid "A DEDICATED PAGE"
277
+ msgstr "UNA PAGINA DEDICATA"
278
279
#: templates/admin/premium.php:249
280
#, php-format
285
"you will be able to give to your users the chance to access it easily "
286
"whenever they want."
287
msgstr ""
288
+ "Sei stufo di dover mostrare i prodotti messi a confronto all’interno di una "
289
+ "finestra modale? %3$sCon %1$sYITH WooCommerce Compare premium%2$s verrà "
290
+ "creata automaticamente una nuova pagina all’interno del tuo sito e, "
291
+ "aggiungendola tra le voci di menu, potrai dare ai tuoi utenti la possibilità "
292
+ "di accedervi in qualsiasi momento e in maniera agevole."
293
294
#: templates/admin/premium.php:259
295
msgid "CATEGORY COMPARATION"
296
+ msgstr "CONFRONTO PER CATEGORIA"
297
298
#: templates/admin/premium.php:262
299
#, php-format
304
"need: you will be able to separate the products in the table by category "
305
"affinity."
306
msgstr ""
307
+ "Trovare all’interno della tabella comparativa prodotti di tipologia diversa "
308
+ "spesso confonde gli utenti, generando difficoltà nel confrontare due "
309
+ "prodotti a cui sono interessati. L’opzione %1$s“Compare by category”%2$s "
310
+ "nasce proprio per venire incontro a questa esigenza, in modo tale da poter "
311
+ "suddividere i prodotti presenti nella tabella a seconda della categoria di "
312
+ "appartenenza."
313
314
#: templates/admin/premium.php:278
315
msgid "CATEGORY EXCLUSION "
316
+ msgstr "ESCLUSIONE CATEGORIE"
317
318
#: templates/admin/premium.php:281
319
#, php-format
325
"of the feature, allowing the comparison only to those products of the "
326
"selected categories."
327
msgstr ""
328
+ "Nel tuo shop potrebbero esistere categorie di prodotto per cui non vuoi "
329
+ "abilitare le funzionalità del plugin e dalle quali, quindi, vorresti "
330
+ "rimuovere il pulsante di comparazion. La versione premium del plugin ha "
331
+ "pensato anche a questo.%3$sMa non finisce qui. Attivando l’opzione "
332
+ "%1$s“Reverse exclusion list”%2$s, puoi invertire la logica di questo "
333
+ "comportamento, consentendo il confronto solo sui prodotti associati con le "
334
+ "categorie selezionate."
335
336
#: templates/admin/premium.php:291
337
msgid "TABLE IMAGE"
338
+ msgstr "IMMAGINE TABELLA"
339
340
#: templates/admin/premium.php:294
341
#, php-format
344
"Select an image, upload it from the option panel and show it ahead of the "
345
"table to your users. "
346
msgstr ""
347
+ "Da’ un tocco in più alla %1$stabella di comparazione%2$s che viene "
348
+ "visualizzata dagli utenti. Seleziona un’immagine, effettua l’upload dal "
349
+ "pannello opzioni e mostrala agli utenti in testa alla tabella."
350
351
#: templates/admin/premium.php:310
352
msgid "DYNAMIC FIELDS"
353
+ msgstr "CAMPI DINAMICI"
354
355
#: templates/admin/premium.php:313
356
#, php-format
360
"%3$sActivate the %1$s\"Dynamic Attribute fields\"%2$s option and there will "
361
"be no more empty lines in your comparison table."
362
msgstr ""
363
+ "Grazie a questa preziosa funzionalità avrai la possibilità di mostrare nella "
364
+ "tabella solo quei campi che sono stati impostati in almeno uno dei prodotti "
365
+ "presenti.%3$sAttiva l’opzione %1$s“Dynamic Attribute fields”%2$s e non "
366
+ "esisteranno più righe della tabella comparativa senza alcun valore di "
367
+ "confronto."
368
369
#: templates/admin/premium.php:323
370
msgid "SOCIAL NETWORK SHARING"
371
+ msgstr "CONDIVISIONE SUI SOCIAL NETWORK"
372
373
#: templates/admin/premium.php:326
374
#, php-format
378
"Pinterest) and the email system %1$sto share%2$s the comparison table of the "
379
"products they have selected."
380
msgstr ""
381
+ "Una delle novità più suggestive della versione premium del plugin: quattro "
382
+ "social network da mettere a disposizione dei tuoi utenti (Facebook, Twitter, "
383
+ "Google+ e Pinterest) e il servizio email per permettere loro di %1$sconvidere"
384
+ "%2$s in rete la tabella comparativa dei prodotti che hanno selezionato."
385
386
#: templates/admin/premium.php:342
387
msgid "RELATED PRODUCTS"
388
+ msgstr "PRODOTTI CORRELATI"
389
390
#: templates/admin/premium.php:345
391
#, php-format
396
"users to discover the shop products of the shop related to those they are "
397
"interested into."
398
msgstr ""
399
+ "Tutti i prodotti che hanno categorie e/o tag in comune con quelli presenti "
400
+ "nella tabella comparativa saranno mostrati all’utente all’interno di uno "
401
+ "slider, appena sotto la tabella comparativa.%3$sUno slider completamente "
402
+ "%1$s“touch-friendly”%2$s per invitare i tuoi utenti a scoprire i prodotti "
403
+ "del tuo shop affini a quelli che hanno attirato il loro interesse."
404
405
#: templates/admin/premium.php:355
406
msgid "CUSTOMIZABLE STYLE"
407
+ msgstr "STILE PERSONALIZZABILE"
408
409
#: templates/admin/premium.php:358
410
#, php-format
414
"of your shop.We know it, looks also count... and we give you the right tools "
415
"to get to the best result."
416
msgstr ""
417
+ "Un pannello opzioni avanzato che ti permette di modificare tutti i colori "
418
+ "del plugin, così da adattare stilisticamente tutti i suoi componenti al "
419
+ "%1$slayout%2$s del tuo shop.\n"
420
+ "In fondo, anche l’occhio vuole la sua parte... e noi ti diamo gli strumenti "
421
+ "adatti per arrivare al migliore risultato."
422
423
#: templates/compare.php:76
424
msgid "Close window [X]"
442
msgid "Clear all"
443
msgstr "Cancella tutti"
444
445
+ #~ msgid "Comparison Table"
446
+ #~ msgstr "Tabella confronto"
447
+
448
+ #~ msgid "Social Network Sites Sharing"
449
+ #~ msgstr "Condivisione social network"
450
+
451
+ #~ msgid "Related Products"
452
+ #~ msgstr "Prodotti correlati"
453
+
454
+ #~ msgid "Style"
455
+ #~ msgstr "Stile"
456
+
457
+ #~ msgid "View Page"
458
+ #~ msgstr "Visualizza pagina"
459
+
460
+ #~ msgid "Share on:"
461
+ #~ msgstr "Condividi su:"
462
+
463
+ #~ msgid "Category Filter"
464
+ #~ msgstr "Filtro categoria"
465
+
466
+ #~ msgid "Product Info"
467
+ #~ msgstr "Informazioni prodotto"
468
+
469
+ #~ msgid "Rating"
470
+ #~ msgstr "Valutazione"
471
+
472
+ #~ msgid "yith-compare"
473
+ #~ msgstr "yith-compare"
474
+
475
+ #~ msgid ""
476
+ #~ "YITH WooCommerce Compare Premium is enabled but not effective. It "
477
+ #~ "requires WooCommerce in order to work."
478
+ #~ msgstr ""
479
+ #~ "YITH WooCommerce Compare Premium è abilitato ma non in funzione. Devi "
480
+ #~ "aver installato WooCommerce perché questo possa funzionare correttamente."
481
+
482
+ #~ msgid ""
483
+ #~ "Choose if you want to use a link or a button for the comepare actions."
484
+ #~ msgstr ""
485
+ #~ "Scegli se utilizzare un linko un pulsante per confrontare i tuoi prodotti."
486
+
487
+ #~ msgid "Page or Popup"
488
+ #~ msgstr "Pagina o popup"
489
+
490
+ #~ msgid ""
491
+ #~ "Choose if you want to use a page or a popup for the standard comparison "
492
+ #~ "table."
493
+ #~ msgstr ""
494
+ #~ "Scegli se vuoi utilizzare una pagina o una popup per la tabella "
495
+ #~ "comparativa standard."
496
+
497
+ #~ msgid "Page"
498
+ #~ msgstr "Pagina"
499
+
500
+ #~ msgid "Popup"
501
+ #~ msgstr "Popup"
502
+
503
+ #~ msgid "Type the text you want to use for the compare button/link."
504
+ #~ msgstr ""
505
+ #~ "Inserisci il testo che vuoi utilizzare per il pulsante o il link di "
506
+ #~ "confronto."
507
+
508
+ #~ msgid "Set this option to show the button in the single product page."
509
+ #~ msgstr ""
510
+ #~ "Seleziona questa opzione per mostrare il pulsante nella pagina singolo "
511
+ #~ "prodotto."
512
+
513
+ #~ msgid "Set this option to show the button in the products list."
514
+ #~ msgstr ""
515
+ #~ "Seleziona questa opzione per mostrare il pulsante nella lista prodotti."
516
+
517
+ #~ msgid "Open lightbox automatically"
518
+ #~ msgstr "Apri la lightbox automaticamente"
519
+
520
+ #~ msgid "Open the link after clicking on the \"Compare\" button."
521
+ #~ msgstr "Apri il link dopo aver fatto clic sul pulsante \"Confronta\"."
522
+
523
+ #~ msgid "Open lightbox when adding a second item"
524
+ #~ msgstr "Apri la lightbox quando viene aggiunto un secondo elemento"
525
+
526
+ #~ msgid "Open the comparison lightbox after adding a second item to compare."
527
+ #~ msgstr ""
528
+ #~ "Apri la lighbox di confronto dopo che è stato aggiunto un secondo "
529
+ #~ "articolo alla tabella comparativa."
530
+
531
+ #~ msgid "Compare by category"
532
+ #~ msgstr "Effettua il confronto per categoria"
533
+
534
+ #~ msgid "Compare products by category."
535
+ #~ msgstr "Confronta i prodotti per categoria."
536
+
537
+ #~ msgid "Exclude category"
538
+ #~ msgstr "Escludi categoria"
539
+
540
+ #~ msgid "Choose category to exclude from the comparison."
541
+ #~ msgstr "Scegli la categoria da escludere durante il confronto."
542
+
543
+ #~ msgid "Reverse exclusion list"
544
+ #~ msgstr "Inverti lista esclusioni"
545
+
546
+ #~ msgid "Only categories in the exclusion list will have the compare feature"
547
+ #~ msgstr ""
548
+ #~ "Solo le categorie inserite nella lista esclusioni avranno la funzionalità "
549
+ #~ "di confronto"
550
+
551
+ #~ msgid "Related Options"
552
+ #~ msgstr "Opzioni correlate"
553
+
554
+ #~ msgid "Choose if you want to enable related products in the comparison"
555
+ #~ msgstr "Scegli se abilitare i prodotti correlati per il confronto"
556
+
557
+ #~ msgid "Show related products in"
558
+ #~ msgstr "Mostra prodotti correlati in"
559
+
560
+ #~ msgid "Visible Number"
561
+ #~ msgstr "Numero visibili"
562
+
563
+ #~ msgid "Choose number of related products you want to see on the screen."
564
+ #~ msgstr ""
565
+ #~ "Scegli il numero di prodotti correlati da visualizzare nello schermo."
566
+
567
+ #~ msgid "Autoplay"
568
+ #~ msgstr "Avvio automatico"
569
+
570
+ #~ msgid "Enable slider autoplay"
571
+ #~ msgstr "Abilita l'avvio automatico dello slider"
572
+
573
+ #~ msgid "Slider Navigation"
574
+ #~ msgstr "Navigazione slider"
575
+
576
+ #~ msgid "Show prev/next navigation in the slider"
577
+ #~ msgstr ""
578
+ #~ "Mostra pulsanti di navigazione indietro/avanti all'interno dello slider"
579
+
580
+ #~ msgid "Share Options"
581
+ #~ msgstr "Opzioni di condivisione"
582
+
583
+ #~ msgid "Enable Sharing"
584
+ #~ msgstr "Abilita condivisione"
585
+
586
+ #~ msgid "Check this option if you want to show the link to share the compare"
587
+ #~ msgstr ""
588
+ #~ "Spunta questa opzione se vuoi mostrare il link per condividere il "
589
+ #~ "confronto prodotti"
590
+
591
+ #~ msgid "Show sharing in"
592
+ #~ msgstr "Mostra condivisione nella"
593
+
594
+ #~ msgid "Select Social Network Sites"
595
+ #~ msgstr "Seleziona social network"
596
+
597
+ #~ msgid "Facebook"
598
+ #~ msgstr "Facebook"
599
+
600
+ #~ msgid "Twitter"
601
+ #~ msgstr "Twitter"
602
+
603
+ #~ msgid "Google+"
604
+ #~ msgstr "Google+"
605
+
606
+ #~ msgid "Pinterest"
607
+ #~ msgstr "Pinterest"
608
+
609
+ #~ msgid "eMail"
610
+ #~ msgstr "email"
611
+
612
+ #~ msgid "Title for Social Network Sharing"
613
+ #~ msgstr "Titolo per condivisione social"
614
+
615
+ #~ msgid "My Compare"
616
+ #~ msgstr "Ho confrontato questi prodotti"
617
+
618
+ #~ msgid "Text for Social Network Sharing"
619
+ #~ msgstr "Testo per condivisione social"
620
+
621
+ #~ msgid ""
622
+ #~ "It will be used on Facebook, Twitter and Pinterest. Use %compare_url% "
623
+ #~ "where you want to show the URL of your compare."
624
+ #~ msgstr ""
625
+ #~ "Sarà utilizzato su Facebook, Twitter e Pinterest. Utilizza %compare_url% "
626
+ #~ "dove vuoi per mostrare l'URL dei prodotti confrontati da te."
627
+
628
+ #~ msgid "Category Filter Options"
629
+ #~ msgstr "Opzioni filtro categoria"
630
+
631
+ #~ msgid "Filter title"
632
+ #~ msgstr "Nome filtro"
633
+
634
+ #~ msgid "The title for the category filter section"
635
+ #~ msgstr "Inserisci qui il titolo per la sezione filtro per categoria"
636
+
637
+ #~ msgid "Filter title color"
638
+ #~ msgstr "Colore nome del filtro"
639
+
640
+ #~ msgid "The color for the title of the category filter section"
641
+ #~ msgstr "Colore del titolo della sezione filtro categoria "
642
+
643
+ #~ msgid "Filter link color"
644
+ #~ msgstr "Colore link filtro"
645
+
646
+ #~ msgid "The color for the link of the category filter"
647
+ #~ msgstr "Colore del link per il filtro categoria"
648
+
649
+ #~ msgid "Filter link hover color"
650
+ #~ msgstr "Colore link filtro hover"
651
+
652
+ #~ msgid "The color for the link of the category filter on mouse hover"
653
+ #~ msgstr "Colore per il link del filtro categoria al passaggio del mouse"
654
+
655
+ #~ msgid "Table options"
656
+ #~ msgstr "Opzioni tabella"
657
+
658
+ #~ msgid "Remove color"
659
+ #~ msgstr "Colore \"Rimuovi\""
660
+
661
+ #~ msgid "The color for the \"Remove Product\" link"
662
+ #~ msgstr "Colore del link \"Rimuovi prodotto\""
663
+
664
+ #~ msgid "Remove hover color"
665
+ #~ msgstr "Colore \"Rimuovi\" hover"
666
+
667
+ #~ msgid "The color for the \"Remove Product\" link on mouse hover"
668
+ #~ msgstr "Colore del link \"Rimuovi prodotto\" al passaggio del mouse"
669
+
670
+ #~ msgid "Button text color"
671
+ #~ msgstr "Colore testo pulsante"
672
+
673
+ #~ msgid "The color for the text of the button"
674
+ #~ msgstr "Colore per il testo mostrato nel pulsante"
675
+
676
+ #~ msgid "Button text hover color"
677
+ #~ msgstr "Colore testo pulsante hover"
678
+
679
+ #~ msgid "The color for the text of the button on mouse hover"
680
+ #~ msgstr "Colore per il testo mostrato nel pulsante al passaggio del mouse"
681
+
682
+ #~ msgid "Button color"
683
+ #~ msgstr "Colore pulsante"
684
+
685
+ #~ msgid "The color for the button background"
686
+ #~ msgstr "Colore del pulsante"
687
+
688
+ #~ msgid "Button hover color"
689
+ #~ msgstr "Colore pulsante hover"
690
+
691
+ #~ msgid "The color for the button background on mouse hover"
692
+ #~ msgstr "Colore del pulsante al passaggio del mouse"
693
+
694
+ #~ msgid "Star color"
695
+ #~ msgstr "Colore stellina"
696
+
697
+ #~ msgid "The color of the star"
698
+ #~ msgstr "Colore della stellina"
699
+
700
+ #~ msgid "Share Title"
701
+ #~ msgstr "Titolo di condivisione"
702
+
703
+ #~ msgid "The title for the share section"
704
+ #~ msgstr "Titolo per la sezione di condivisione"
705
+
706
+ #~ msgid "Share on"
707
+ #~ msgstr "Condividi su"
708
+
709
+ #~ msgid "Share Title Color"
710
+ #~ msgstr "Colore del titolo di condivisione"
711
+
712
+ #~ msgid "The color for the title of the share section"
713
+ #~ msgstr "Colore del titolo della sezione per la condivisione"
714
+
715
+ #~ msgid "Related Title"
716
+ #~ msgstr "Titolo correlati"
717
+
718
+ #~ msgid "The title for the related section"
719
+ #~ msgstr "Titolo per la sezione prodotti correlati"
720
+
721
+ #~ msgid "Related Title Color"
722
+ #~ msgstr "Colore titolo correlati"
723
+
724
+ #~ msgid "The color for the title of the related section"
725
+ #~ msgstr "Colore del titolo della sezione prodotti correlati"
726
+
727
+ #~ msgid "Comparison Table Settings"
728
+ #~ msgstr "Impostazioni tabella confronto"
729
+
730
+ #~ msgid "Type the text for the table title."
731
+ #~ msgstr "Inserisci qui il testo da usare come titolo della tabella."
732
+
733
+ #~ msgid "Table image"
734
+ #~ msgstr "Immagine tabella"
735
+
736
+ #~ msgid "Choose an image/logo for the comparison table"
737
+ #~ msgstr "Scegli un'immagine/logo per la tabella confronto"
738
+
739
+ #~ msgid "Show table image in"
740
+ #~ msgstr "Mostra immagine tabella in"
741
+
742
+ #~ msgid "Dynamic Attribute fields"
743
+ #~ msgstr "Campi attributo dinamici"
744
+
745
+ #~ msgid "Choose to get dynamic attribute fields based on products"
746
+ #~ msgstr "Scegli di rendere dinamici i campi attributo a seconda del prodotto"
747
+
748
+ #~ msgid ""
749
+ #~ "Select the fields to show in the comparison table and order them by "
750
+ #~ "drag&drop (WooCommerce attributes are also included)"
751
+ #~ msgstr ""
752
+ #~ "Seleziona i campi da mostrare nella tabella confronto e ordinali grazie "
753
+ #~ "allo strumento drag&drop (sono inclusi anche gli attributi di WooCommerce)"
754
+
755
+ #~ msgid "Product Info Fields"
756
+ #~ msgstr "Campi info prodotti"
757
+
758
+ #~ msgid "Add to Cart"
759
+ #~ msgstr "Aggiungi al carrello"
760
+
761
+ #~ msgid ""
762
+ #~ "Set image size (in px). After changing these settings you may need to %s."
763
+ #~ msgstr ""
764
+ #~ "Imposta la dimensione dell'immagine (in px). Dopo aver cambiato queste "
765
+ #~ "impostazioni potrai aver bisogno di %s."
766
+
767
+ #~ msgid "regenerate your thumbnails"
768
+ #~ msgstr "rigenerare le thumbnail"
769
+
770
+ #~ msgid "Search for a category&hellip;"
771
+ #~ msgstr "Cerca una categoria&hellip;"
772
+
773
+ #~ msgid "Email"
774
+ #~ msgstr "Email"
775
+
776
+ #~ msgid "No products added in the comparison table."
777
+ #~ msgstr "Non è stato aggiunto alcun prodotto alla tabella comparativa."
778
+
779
+ #~ msgid "The widget shows the list of products added in the comparison table."
780
+ #~ msgstr ""
781
+ #~ "Il widget mostra l'elenco dei prodotti aggiunti alla tabella comparativa."
782
+
783
+ #~ msgid "YITH WooCommerce Compare Widget"
784
+ #~ msgstr "YITH WooCommerce Compare Widget"
785
+
786
#~ msgid "Products Compare"
787
#~ msgstr "Compara Prodotti"
788
1133
#~ "Qui puoi settare gli url dei tuoi account social (puoi lasciare vuoto se "
1134
#~ "non vuoi mostrare la rispettiva icona social)"
1135
1136
#~ msgid "Set the URL of your facebook profile"
1137
#~ msgstr "Imposta l'URL del tuo profilo facebok"
1138
1139
#~ msgid "Set the URL of your twitter profile"
1140
#~ msgstr "Imposta l'URL del tuo profilo twitter"
1141
1142
#~ msgid "Set the URL of your Google+ profile"
1143
#~ msgstr "Imposta l'url del tuo profilo Google+"
1144
1160
#~ msgid "Set the username of your skype account"
1161
#~ msgstr "Imposta l'username del tuo account skype"
1162
1163
#~ msgid "Write here your email address"
1164
#~ msgstr "Scrivi qui il tuo indirizzo email"
1165
1187
#~ msgid "Set the URL of your instagram profile"
1188
#~ msgstr "Imposta l'URL del tuo profilo Instagram"
1189
1190
#~ msgid "Set the URL of your Pinterest profile"
1191
#~ msgstr "Imposta l'URL del tuo profilo Pinterest"
1192
languages/{yith-wcmp-nl_NL.mo → yith-woocommerce-compare-nl_NL.mo} RENAMED
Binary file
languages/{yith-wcmp-nl_NL.po → yith-woocommerce-compare-nl_NL.po} RENAMED
@@ -1,11 +1,11 @@
1
msgid ""
2
msgstr ""
3
"Project-Id-Version: YITH Woocommerce Compare\n"
4
- "POT-Creation-Date: 2015-07-14 15:47+0200\n"
5
- "PO-Revision-Date: 2015-07-14 15:47+0200\n"
6
"Last-Translator: Frans Pronk <beheer@ifra.nl>\n"
7
"Language-Team: Your Inspiration Themes <support@yithemes.com>\n"
8
- "Language: en\n"
9
"MIME-Version: 1.0\n"
10
"Content-Type: text/plain; charset=UTF-8\n"
11
"Content-Transfer-Encoding: 8bit\n"
@@ -13,36 +13,37 @@ msgstr ""
13
"X-Poedit-KeywordsList: __;_e;_x\n"
14
"X-Poedit-Basepath: ..\n"
15
"X-Poedit-SourceCharset: UTF-8\n"
16
"X-Poedit-SearchPath-0: .\n"
17
"X-Poedit-SearchPathExcluded-0: plugin-fw\n"
18
19
#: includes/class.yith-woocompare-admin.php:117
20
- #: includes/class.yith-woocompare-admin.php:139
21
msgid "Settings"
22
msgstr ""
23
24
- #: includes/class.yith-woocompare-admin.php:118
25
- #: includes/class.yith-woocompare-admin.php:143
26
msgid "Premium Version"
27
msgstr ""
28
29
- #: includes/class.yith-woocompare-admin.php:149
30
- #: includes/class.yith-woocompare-admin.php:150
31
#: includes/class.yith-woocompare-frontend.php:353
32
#: plugin-options/general-options.php:40
33
#: widgets/class.yith-woocompare-widget.php:50
34
msgid "Compare"
35
msgstr "Vergelijk"
36
37
- #: includes/class.yith-woocompare-admin.php:213
38
msgid "Plugin Documentation"
39
msgstr ""
40
41
- #: includes/class.yith-woocompare-admin.php:232
42
msgid "YITH WooCommerce Compare Activated"
43
msgstr ""
44
45
- #: includes/class.yith-woocompare-admin.php:233
46
#, php-format
47
msgid ""
48
"In the YIT Plugin tab you can find the YITH WooCommerce Compare options. "
@@ -51,11 +52,11 @@ msgid ""
51
"PREMIUM version with many new options, <a href=\"%s\">discover it now</a>."
52
msgstr ""
53
54
- #: includes/class.yith-woocompare-admin.php:244
55
msgid "YITH WooCommerce Compare Updated"
56
msgstr ""
57
58
- #: includes/class.yith-woocompare-admin.php:245
59
#, php-format
60
msgid ""
61
"From now on, you can find all the options of YITH WooCommerce Compare under "
@@ -65,7 +66,7 @@ msgid ""
65
"available options, <a href=\"%s\">discover the PREMIUM version.</a>"
66
msgstr ""
67
68
- #: includes/class.yith-woocompare-admin.php:390
69
msgid "Do you want to hard crop the image?"
70
msgstr ""
71
1
msgid ""
2
msgstr ""
3
"Project-Id-Version: YITH Woocommerce Compare\n"
4
+ "POT-Creation-Date: 2015-09-22 09:41+0200\n"
5
+ "PO-Revision-Date: 2015-09-22 09:41+0200\n"
6
"Last-Translator: Frans Pronk <beheer@ifra.nl>\n"
7
"Language-Team: Your Inspiration Themes <support@yithemes.com>\n"
8
+ "Language: nl\n"
9
"MIME-Version: 1.0\n"
10
"Content-Type: text/plain; charset=UTF-8\n"
11
"Content-Transfer-Encoding: 8bit\n"
13
"X-Poedit-KeywordsList: __;_e;_x\n"
14
"X-Poedit-Basepath: ..\n"
15
"X-Poedit-SourceCharset: UTF-8\n"
16
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
17
"X-Poedit-SearchPath-0: .\n"
18
"X-Poedit-SearchPathExcluded-0: plugin-fw\n"
19
20
#: includes/class.yith-woocompare-admin.php:117
21
+ #: includes/class.yith-woocompare-admin.php:141
22
msgid "Settings"
23
msgstr ""
24
25
+ #: includes/class.yith-woocompare-admin.php:119
26
+ #: includes/class.yith-woocompare-admin.php:145
27
msgid "Premium Version"
28
msgstr ""
29
30
+ #: includes/class.yith-woocompare-admin.php:151
31
+ #: includes/class.yith-woocompare-admin.php:152
32
#: includes/class.yith-woocompare-frontend.php:353
33
#: plugin-options/general-options.php:40
34
#: widgets/class.yith-woocompare-widget.php:50
35
msgid "Compare"
36
msgstr "Vergelijk"
37
38
+ #: includes/class.yith-woocompare-admin.php:215
39
msgid "Plugin Documentation"
40
msgstr ""
41
42
+ #: includes/class.yith-woocompare-admin.php:235
43
msgid "YITH WooCommerce Compare Activated"
44
msgstr ""
45
46
+ #: includes/class.yith-woocompare-admin.php:236
47
#, php-format
48
msgid ""
49
"In the YIT Plugin tab you can find the YITH WooCommerce Compare options. "
52
"PREMIUM version with many new options, <a href=\"%s\">discover it now</a>."
53
msgstr ""
54
55
+ #: includes/class.yith-woocompare-admin.php:247
56
msgid "YITH WooCommerce Compare Updated"
57
msgstr ""
58
59
+ #: includes/class.yith-woocompare-admin.php:248
60
#, php-format
61
msgid ""
62
"From now on, you can find all the options of YITH WooCommerce Compare under "
66
"available options, <a href=\"%s\">discover the PREMIUM version.</a>"
67
msgstr ""
68
69
+ #: includes/class.yith-woocompare-admin.php:393
70
msgid "Do you want to hard crop the image?"
71
msgstr ""
72
languages/{yith-wcmp-pt_BR.mo → yith-woocommerce-compare-pt_BR.mo} RENAMED
Binary file
languages/{yith-wcmp-pt_BR.po → yith-woocommerce-compare-pt_BR.po} RENAMED
@@ -1,11 +1,11 @@
1
msgid ""
2
msgstr ""
3
"Project-Id-Version: YITH Woocommerce Compare\n"
4
- "POT-Creation-Date: 2015-07-14 15:48+0200\n"
5
- "PO-Revision-Date: 2015-07-14 15:48+0200\n"
6
"Last-Translator: Nicola Mustone <mail@nicolamustone.it>\n"
7
"Language-Team: Your Inspiration Themes <support@yithemes.com>\n"
8
- "Language: en\n"
9
"MIME-Version: 1.0\n"
10
"Content-Type: text/plain; charset=UTF-8\n"
11
"Content-Transfer-Encoding: 8bit\n"
@@ -13,36 +13,37 @@ msgstr ""
13
"X-Poedit-KeywordsList: __;_e;_x\n"
14
"X-Poedit-Basepath: ..\n"
15
"X-Poedit-SourceCharset: UTF-8\n"
16
"X-Poedit-SearchPath-0: .\n"
17
"X-Poedit-SearchPathExcluded-0: plugin-fw\n"
18
19
#: includes/class.yith-woocompare-admin.php:117
20
- #: includes/class.yith-woocompare-admin.php:139
21
msgid "Settings"
22
msgstr ""
23
24
- #: includes/class.yith-woocompare-admin.php:118
25
- #: includes/class.yith-woocompare-admin.php:143
26
msgid "Premium Version"
27
msgstr ""
28
29
- #: includes/class.yith-woocompare-admin.php:149
30
- #: includes/class.yith-woocompare-admin.php:150
31
#: includes/class.yith-woocompare-frontend.php:353
32
#: plugin-options/general-options.php:40
33
#: widgets/class.yith-woocompare-widget.php:50
34
msgid "Compare"
35
msgstr "Comparar"
36
37
- #: includes/class.yith-woocompare-admin.php:213
38
msgid "Plugin Documentation"
39
msgstr ""
40
41
- #: includes/class.yith-woocompare-admin.php:232
42
msgid "YITH WooCommerce Compare Activated"
43
msgstr ""
44
45
- #: includes/class.yith-woocompare-admin.php:233
46
#, php-format
47
msgid ""
48
"In the YIT Plugin tab you can find the YITH WooCommerce Compare options. "
@@ -51,11 +52,11 @@ msgid ""
51
"PREMIUM version with many new options, <a href=\"%s\">discover it now</a>."
52
msgstr ""
53
54
- #: includes/class.yith-woocompare-admin.php:244
55
msgid "YITH WooCommerce Compare Updated"
56
msgstr ""
57
58
- #: includes/class.yith-woocompare-admin.php:245
59
#, php-format
60
msgid ""
61
"From now on, you can find all the options of YITH WooCommerce Compare under "
@@ -65,7 +66,7 @@ msgid ""
65
"available options, <a href=\"%s\">discover the PREMIUM version.</a>"
66
msgstr ""
67
68
- #: includes/class.yith-woocompare-admin.php:390
69
msgid "Do you want to hard crop the image?"
70
msgstr ""
71
1
msgid ""
2
msgstr ""
3
"Project-Id-Version: YITH Woocommerce Compare\n"
4
+ "POT-Creation-Date: 2015-09-22 09:40+0200\n"
5
+ "PO-Revision-Date: 2015-09-22 09:40+0200\n"
6
"Last-Translator: Nicola Mustone <mail@nicolamustone.it>\n"
7
"Language-Team: Your Inspiration Themes <support@yithemes.com>\n"
8
+ "Language: pt_BR\n"
9
"MIME-Version: 1.0\n"
10
"Content-Type: text/plain; charset=UTF-8\n"
11
"Content-Transfer-Encoding: 8bit\n"
13
"X-Poedit-KeywordsList: __;_e;_x\n"
14
"X-Poedit-Basepath: ..\n"
15
"X-Poedit-SourceCharset: UTF-8\n"
16
+ "Plural-Forms: nplurals=2; plural=(n > 1);\n"
17
"X-Poedit-SearchPath-0: .\n"
18
"X-Poedit-SearchPathExcluded-0: plugin-fw\n"
19
20
#: includes/class.yith-woocompare-admin.php:117
21
+ #: includes/class.yith-woocompare-admin.php:141
22
msgid "Settings"
23
msgstr ""
24
25
+ #: includes/class.yith-woocompare-admin.php:119
26
+ #: includes/class.yith-woocompare-admin.php:145
27
msgid "Premium Version"
28
msgstr ""
29
30
+ #: includes/class.yith-woocompare-admin.php:151
31
+ #: includes/class.yith-woocompare-admin.php:152
32
#: includes/class.yith-woocompare-frontend.php:353
33
#: plugin-options/general-options.php:40
34
#: widgets/class.yith-woocompare-widget.php:50
35
msgid "Compare"
36
msgstr "Comparar"
37
38
+ #: includes/class.yith-woocompare-admin.php:215
39
msgid "Plugin Documentation"
40
msgstr ""
41
42
+ #: includes/class.yith-woocompare-admin.php:235
43
msgid "YITH WooCommerce Compare Activated"
44
msgstr ""
45
46
+ #: includes/class.yith-woocompare-admin.php:236
47
#, php-format
48
msgid ""
49
"In the YIT Plugin tab you can find the YITH WooCommerce Compare options. "
52
"PREMIUM version with many new options, <a href=\"%s\">discover it now</a>."
53
msgstr ""
54
55
+ #: includes/class.yith-woocompare-admin.php:247
56
msgid "YITH WooCommerce Compare Updated"
57
msgstr ""
58
59
+ #: includes/class.yith-woocompare-admin.php:248
60
#, php-format
61
msgid ""
62
"From now on, you can find all the options of YITH WooCommerce Compare under "
66
"available options, <a href=\"%s\">discover the PREMIUM version.</a>"
67
msgstr ""
68
69
+ #: includes/class.yith-woocompare-admin.php:393
70
msgid "Do you want to hard crop the image?"
71
msgstr ""
72
languages/{yith-wcmp-tr_TR.mo → yith-woocommerce-compare-tr_TR.mo} RENAMED
Binary file
languages/{yith-wcmp-tr_TR.po → yith-woocommerce-compare-tr_TR.po} RENAMED
@@ -1,8 +1,8 @@
1
msgid ""
2
msgstr ""
3
"Project-Id-Version: YITH Woocommerce Compare\n"
4
- "POT-Creation-Date: 2015-07-14 15:48+0200\n"
5
- "PO-Revision-Date: 2015-07-14 15:48+0200\n"
6
"Last-Translator: Caner Öncel <caneroncel@gmail.com>\n"
7
"Language-Team: Caner Öncel <caneroncel@gmail.com>\n"
8
"Language: tr\n"
@@ -18,32 +18,32 @@ msgstr ""
18
"X-Poedit-SearchPathExcluded-0: plugin-fw\n"
19
20
#: includes/class.yith-woocompare-admin.php:117
21
- #: includes/class.yith-woocompare-admin.php:139
22
msgid "Settings"
23
msgstr ""
24
25
- #: includes/class.yith-woocompare-admin.php:118
26
- #: includes/class.yith-woocompare-admin.php:143
27
msgid "Premium Version"
28
msgstr ""
29
30
- #: includes/class.yith-woocompare-admin.php:149
31
- #: includes/class.yith-woocompare-admin.php:150
32
#: includes/class.yith-woocompare-frontend.php:353
33
#: plugin-options/general-options.php:40
34
#: widgets/class.yith-woocompare-widget.php:50
35
msgid "Compare"
36
msgstr "Karşılaştır"
37
38
- #: includes/class.yith-woocompare-admin.php:213
39
msgid "Plugin Documentation"
40
msgstr ""
41
42
- #: includes/class.yith-woocompare-admin.php:232
43
msgid "YITH WooCommerce Compare Activated"
44
msgstr ""
45
46
- #: includes/class.yith-woocompare-admin.php:233
47
#, php-format
48
msgid ""
49
"In the YIT Plugin tab you can find the YITH WooCommerce Compare options. "
@@ -52,11 +52,11 @@ msgid ""
52
"PREMIUM version with many new options, <a href=\"%s\">discover it now</a>."
53
msgstr ""
54
55
- #: includes/class.yith-woocompare-admin.php:244
56
msgid "YITH WooCommerce Compare Updated"
57
msgstr ""
58
59
- #: includes/class.yith-woocompare-admin.php:245
60
#, php-format
61
msgid ""
62
"From now on, you can find all the options of YITH WooCommerce Compare under "
@@ -66,7 +66,7 @@ msgid ""
66
"available options, <a href=\"%s\">discover the PREMIUM version.</a>"
67
msgstr ""
68
69
- #: includes/class.yith-woocompare-admin.php:390
70
msgid "Do you want to hard crop the image?"
71
msgstr ""
72
1
msgid ""
2
msgstr ""
3
"Project-Id-Version: YITH Woocommerce Compare\n"
4
+ "POT-Creation-Date: 2015-09-22 09:39+0200\n"
5
+ "PO-Revision-Date: 2015-09-22 09:39+0200\n"
6
"Last-Translator: Caner Öncel <caneroncel@gmail.com>\n"
7
"Language-Team: Caner Öncel <caneroncel@gmail.com>\n"
8
"Language: tr\n"
18
"X-Poedit-SearchPathExcluded-0: plugin-fw\n"
19
20
#: includes/class.yith-woocompare-admin.php:117
21
+ #: includes/class.yith-woocompare-admin.php:141
22
msgid "Settings"
23
msgstr ""
24
25
+ #: includes/class.yith-woocompare-admin.php:119
26
+ #: includes/class.yith-woocompare-admin.php:145
27
msgid "Premium Version"
28
msgstr ""
29
30
+ #: includes/class.yith-woocompare-admin.php:151
31
+ #: includes/class.yith-woocompare-admin.php:152
32
#: includes/class.yith-woocompare-frontend.php:353
33
#: plugin-options/general-options.php:40
34
#: widgets/class.yith-woocompare-widget.php:50
35
msgid "Compare"
36
msgstr "Karşılaştır"
37
38
+ #: includes/class.yith-woocompare-admin.php:215
39
msgid "Plugin Documentation"
40
msgstr ""
41
42
+ #: includes/class.yith-woocompare-admin.php:235
43
msgid "YITH WooCommerce Compare Activated"
44
msgstr ""
45
46
+ #: includes/class.yith-woocompare-admin.php:236
47
#, php-format
48
msgid ""
49
"In the YIT Plugin tab you can find the YITH WooCommerce Compare options. "
52
"PREMIUM version with many new options, <a href=\"%s\">discover it now</a>."
53
msgstr ""
54
55
+ #: includes/class.yith-woocompare-admin.php:247
56
msgid "YITH WooCommerce Compare Updated"
57
msgstr ""
58
59
+ #: includes/class.yith-woocompare-admin.php:248
60
#, php-format
61
msgid ""
62
"From now on, you can find all the options of YITH WooCommerce Compare under "
66
"available options, <a href=\"%s\">discover the PREMIUM version.</a>"
67
msgstr ""
68
69
+ #: includes/class.yith-woocompare-admin.php:393
70
msgid "Do you want to hard crop the image?"
71
msgstr ""
72
languages/{yith-wcmp.pot → yith-woocommerce-compare.pot} RENAMED
@@ -1,7 +1,8 @@
1
msgid ""
2
msgstr ""
3
"Project-Id-Version: YITH Woocommerce Compare\n"
4
- "POT-Creation-Date: 2015-07-14 15:10+0100\n"
5
"PO-Revision-Date: 2015-07-14 15:10+0100\n"
6
"Last-Translator: Nicola Mustone <mail@nicolamustone.it>\n"
7
"Language-Team: Your Inspiration Themes <support@yithemes.com>\n"
@@ -9,40 +10,40 @@ msgstr ""
9
"MIME-Version: 1.0\n"
10
"Content-Type: text/plain; charset=UTF-8\n"
11
"Content-Transfer-Encoding: 8bit\n"
12
- "X-Generator: Poedit 1.7.6\n"
13
"X-Poedit-KeywordsList: __;_e;_x\n"
14
- "X-Poedit-Basepath: ./\n"
15
"X-Poedit-SourceCharset: UTF-8\n"
16
"X-Poedit-SearchPath-0: ..\n"
17
"X-Poedit-SearchPathExcluded-0: ../plugin-fw\n"
18
19
#: ../includes/class.yith-woocompare-admin.php:117
20
- #: ../includes/class.yith-woocompare-admin.php:139
21
msgid "Settings"
22
msgstr ""
23
24
- #: ../includes/class.yith-woocompare-admin.php:118
25
- #: ../includes/class.yith-woocompare-admin.php:143
26
msgid "Premium Version"
27
msgstr ""
28
29
- #: ../includes/class.yith-woocompare-admin.php:149
30
- #: ../includes/class.yith-woocompare-admin.php:150
31
#: ../includes/class.yith-woocompare-frontend.php:353
32
#: ../plugin-options/general-options.php:40
33
#: ../widgets/class.yith-woocompare-widget.php:50
34
msgid "Compare"
35
msgstr ""
36
37
- #: ../includes/class.yith-woocompare-admin.php:213
38
msgid "Plugin Documentation"
39
msgstr ""
40
41
- #: ../includes/class.yith-woocompare-admin.php:232
42
msgid "YITH WooCommerce Compare Activated"
43
msgstr ""
44
45
- #: ../includes/class.yith-woocompare-admin.php:233
46
#, php-format
47
msgid ""
48
"In the YIT Plugin tab you can find the YITH WooCommerce Compare options. "
@@ -51,11 +52,11 @@ msgid ""
51
"PREMIUM version with many new options, <a href=\"%s\">discover it now</a>."
52
msgstr ""
53
54
- #: ../includes/class.yith-woocompare-admin.php:244
55
msgid "YITH WooCommerce Compare Updated"
56
msgstr ""
57
58
- #: ../includes/class.yith-woocompare-admin.php:245
59
#, php-format
60
msgid ""
61
"From now on, you can find all the options of YITH WooCommerce Compare under "
@@ -65,7 +66,7 @@ msgid ""
65
"available options, <a href=\"%s\">discover the PREMIUM version.</a>"
66
msgstr ""
67
68
- #: ../includes/class.yith-woocompare-admin.php:390
69
msgid "Do you want to hard crop the image?"
70
msgstr ""
71
1
+ #, fuzzy
2
msgid ""
3
msgstr ""
4
"Project-Id-Version: YITH Woocommerce Compare\n"
5
+ "POT-Creation-Date: 2015-09-22 09:38+0200\n"
6
"PO-Revision-Date: 2015-07-14 15:10+0100\n"
7
"Last-Translator: Nicola Mustone <mail@nicolamustone.it>\n"
8
"Language-Team: Your Inspiration Themes <support@yithemes.com>\n"
10
"MIME-Version: 1.0\n"
11
"Content-Type: text/plain; charset=UTF-8\n"
12
"Content-Transfer-Encoding: 8bit\n"
13
+ "X-Generator: Poedit 1.8.2\n"
14
"X-Poedit-KeywordsList: __;_e;_x\n"
15
+ "X-Poedit-Basepath: .\n"
16
"X-Poedit-SourceCharset: UTF-8\n"
17
"X-Poedit-SearchPath-0: ..\n"
18
"X-Poedit-SearchPathExcluded-0: ../plugin-fw\n"
19
20
#: ../includes/class.yith-woocompare-admin.php:117
21
+ #: ../includes/class.yith-woocompare-admin.php:141
22
msgid "Settings"
23
msgstr ""
24
25
+ #: ../includes/class.yith-woocompare-admin.php:119
26
+ #: ../includes/class.yith-woocompare-admin.php:145
27
msgid "Premium Version"
28
msgstr ""
29
30
+ #: ../includes/class.yith-woocompare-admin.php:151
31
+ #: ../includes/class.yith-woocompare-admin.php:152
32
#: ../includes/class.yith-woocompare-frontend.php:353
33
#: ../plugin-options/general-options.php:40
34
#: ../widgets/class.yith-woocompare-widget.php:50
35
msgid "Compare"
36
msgstr ""
37
38
+ #: ../includes/class.yith-woocompare-admin.php:215
39
msgid "Plugin Documentation"
40
msgstr ""
41
42
+ #: ../includes/class.yith-woocompare-admin.php:235
43
msgid "YITH WooCommerce Compare Activated"
44
msgstr ""
45
46
+ #: ../includes/class.yith-woocompare-admin.php:236
47
#, php-format
48
msgid ""
49
"In the YIT Plugin tab you can find the YITH WooCommerce Compare options. "
52
"PREMIUM version with many new options, <a href=\"%s\">discover it now</a>."
53
msgstr ""
54
55
+ #: ../includes/class.yith-woocompare-admin.php:247
56
msgid "YITH WooCommerce Compare Updated"
57
msgstr ""
58
59
+ #: ../includes/class.yith-woocompare-admin.php:248
60
#, php-format
61
msgid ""
62
"From now on, you can find all the options of YITH WooCommerce Compare under "
66
"available options, <a href=\"%s\">discover the PREMIUM version.</a>"
67
msgstr ""
68
69
+ #: ../includes/class.yith-woocompare-admin.php:393
70
msgid "Do you want to hard crop the image?"
71
msgstr ""
72
plugin-fw/assets/js/yit-cpt-unlimited.js CHANGED
@@ -12,7 +12,7 @@
12
// Author code here
13
14
// open media box
15
- $('.wrap h2').on( 'click', 'a.multi-uploader', function(event){
16
event.preventDefault();
17
18
var file_frame,
12
// Author code here
13
14
// open media box
15
+ $('.wrap h1, .wrap h2').on( 'click', 'a.multi-uploader', function(event){
16
event.preventDefault();
17
18
var file_frame,
plugin-fw/assets/js/yit-cpt-unlimited.min.js CHANGED
@@ -1,2 +1,2 @@
1
- (function(c){c(".wrap h2").on("click","a.multi-uploader",function(f){f.preventDefault();var a,b=c(this),d=!1;b.next("span.spinner").css("display","inline-block");a||(a=wp.media.frames.file_frame=wp.media({title:b.data("uploader_title"),button:{text:b.data("uploader_button_text")},library:{type:"image"},multiple:!0}),a.on("select",function(){var e=[];a.state().get("selection").map(function(a){a=a.toJSON();e.push({id:a.id,url:a.url,title:a.title})});c.post(ajaxurl,{images:e,post_type:typenow,action:"yit_cptu_multiuploader"},
2
function(a){location.reload()});b.next("span.spinner").css("display","inline-block");d=!0}),a.on("close",function(){d||b.next("span.spinner").hide()}));a.open()})})(jQuery);
1
+ (function(c){c(".wrap h1, .wrap h2").on("click","a.multi-uploader",function(f){f.preventDefault();var a,b=c(this),d=!1;b.next("span.spinner").css("display","inline-block");a||(a=wp.media.frames.file_frame=wp.media({title:b.data("uploader_title"),button:{text:b.data("uploader_button_text")},library:{type:"image"},multiple:!0}),a.on("select",function(){var e=[];a.state().get("selection").map(function(a){a=a.toJSON();e.push({id:a.id,url:a.url,title:a.title})});c.post(ajaxurl,{images:e,post_type:typenow,action:"yit_cptu_multiuploader"},
2
function(a){location.reload()});b.next("span.spinner").css("display","inline-block");d=!0}),a.on("close",function(){d||b.next("span.spinner").hide()}));a.open()})})(jQuery);
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' => '' ),
@@ -1637,7 +1637,7 @@ class YIT_CPT_Unlimited {
1637
style: 'float: none;'
1638
});
1639
1640
- button.appendTo('.wrap h2').after(spinner);
1641
1642
})(jQuery);
1643
</script>
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' => '' ),
1637
style: 'float: none;'
1638
});
1639
1640
+ button.appendTo('.wrap h2, .wrap h1').after(spinner);
1641
1642
})(jQuery);
1643
</script>
plugin-fw/lib/yit-metabox.php CHANGED
@@ -9,11 +9,11 @@
9
*/
10
11
12
- if ( ! defined( 'ABSPATH' ) ) {
13
exit;
14
} // Exit if accessed directly
15
16
- if ( ! class_exists( 'YIT_Metabox' ) ) {
17
/**
18
* YIT Metabox
19
*
@@ -48,8 +48,8 @@ if ( ! class_exists( 'YIT_Metabox' ) ) {
48
* @author Emanuela Castorina <emanuela.castorina@yithemes.com>
49
*
50
*/
51
-
52
- class YIT_Metabox {
53
54
/**
55
* @var string the id of metabox
@@ -91,9 +91,10 @@ if ( ! class_exists( 'YIT_Metabox' ) ) {
91
* @since 1.0
92
* @author Antonino Scarfi' <antonino.scarfi@yithemes.com>
93
*/
94
- public static function instance( $id ) {
95
- if ( ! isset( self::$_instance[$id] ) ) {
96
- self::$_instance[$id] = new self( $id );
97
}
98
return self::$_instance[$id];
99
}
@@ -107,7 +108,8 @@ if ( ! class_exists( 'YIT_Metabox' ) ) {
107
* @since 1.0
108
* @author Emanuela Castorina <emanuela.castorina@yithemes.it>
109
*/
110
- function __construct( $id = '' ) {
111
$this->id = $id;
112
113
}
@@ -124,15 +126,16 @@ if ( ! class_exists( 'YIT_Metabox' ) ) {
124
* @since 1.0
125
* @author Emanuela Castorina <emanuela.castorina@yithemes.it>
126
*/
127
- public function init( $options = array() ) {
128
129
- $this->set_options( $options );
130
$this->set_tabs();
131
132
133
- add_action( 'add_meta_boxes', array( $this, 'register_metabox' ) );
134
- add_action( 'save_post', array( $this, 'save_postdata' ) );
135
- add_action( 'admin_enqueue_scripts', array( $this, 'enqueue' ), 15 );
136
137
}
138
@@ -145,18 +148,19 @@ if ( ! class_exists( 'YIT_Metabox' ) ) {
145
* @since 1.0
146
* @author Emanuela Castorina <emanuela.castorina@yithemes.it>
147
*/
148
- public function enqueue() {
149
150
wp_enqueue_media();
151
- wp_enqueue_style( 'wp-color-picker' );
152
- wp_enqueue_style( 'yit-plugin-metaboxes', YIT_CORE_PLUGIN_URL . '/assets/css/metaboxes.css' );
153
- wp_enqueue_style( 'jquery-chosen', YIT_CORE_PLUGIN_URL . '/assets/css/chosen/chosen.css' );
154
- wp_enqueue_script( 'jquery-ui-datepicker' );
155
- wp_enqueue_script( 'yit-spinner', YIT_CORE_PLUGIN_URL . '/assets/js/panel.spinner.js', array( 'jquery' ), '0.0.1', true );
156
- wp_enqueue_script( 'jquery-chosen', YIT_CORE_PLUGIN_URL . '/assets/js/chosen/chosen.jquery.js', array( 'jquery' ), '1.1.0', true );
157
- wp_enqueue_script( 'ajax-chosen', yit_load_js_file( YIT_CORE_PLUGIN_URL . '/assets/js/chosen/ajax-chosen.jquery.js' ), array( 'jquery' ), '1.1.0', true );
158
- wp_enqueue_script( 'yit-metabox', YIT_CORE_PLUGIN_URL . '/assets/js/metabox.js', array( 'jquery', 'wp-color-picker' ), '1.0.0', true );
159
- wp_enqueue_style( 'jquery-ui-overcast', YIT_CORE_PLUGIN_URL . '/assets/css/overcast/jquery-ui-1.8.9.custom.css', false, '1.8.9', 'all' );
160
161
162
}
@@ -172,7 +176,8 @@ if ( ! class_exists( 'YIT_Metabox' ) ) {
172
* @since 1.0
173
* @author Emanuela Castorina <emanuela.castorina@yithemes.it>
174
*/
175
- public function set_options( $options = array() ) {
176
$this->options = $options;
177
178
}
@@ -188,13 +193,14 @@ if ( ! class_exists( 'YIT_Metabox' ) ) {
188
* @since 1.0
189
* @author Emanuela Castorina <emanuela.castorina@yithemes.it>
190
*/
191
- public function set_tabs() {
192
- if ( ! isset( $this->options['tabs'] ) ) {
193
return;
194
}
195
- $this->tabs = $this->options['tabs'] ;
196
- if( isset($this->tabs['settings']['fields']) ){
197
- $this->tabs['settings']['fields'] = array_filter( $this->tabs['settings']['fields'] );
198
}
199
}
200
@@ -206,32 +212,31 @@ if ( ! class_exists( 'YIT_Metabox' ) ) {
206
*
207
* @internal param array $tabs
208
*
209
- * @param array $tab the new tab to add to the metabox
210
- * @param string $where tell where insert the tab if after or before a $refer
211
- * @param null $refer an existent tab inside metabox
212
*
213
* @return void
214
* @since 1.0
215
* @author Emanuela Castorina <emanuela.castorina@yithemes.it>
216
*/
217
- public function add_tab( $tab, $where = 'after', $refer = null ) {
218
- if ( ! is_null( $refer ) ) {
219
- $ref_pos = array_search( $refer, array_keys( $this->tabs ) );
220
- if ( $ref_pos !== false ) {
221
- if ( $where == 'after' ) {
222
- $this->tabs = array_slice( $this->tabs, 0, $ref_pos + 1, true ) +
223
$tab +
224
- array_slice( $this->tabs, $ref_pos + 1, count( $this->tabs ) - 1, true );
225
- }
226
- else {
227
- $this->tabs = array_slice( $this->tabs, 0, $ref_pos, true ) +
228
$tab +
229
- array_slice( $this->tabs, $ref_pos, count( $this->tabs ), true );
230
}
231
}
232
- }
233
- else {
234
- $this->tabs = array_merge( $tab, $this->tabs );
235