YITH WooCommerce Catalog Mode - Version 1.4.0

Version Description

Last Stable Tag 1.4.0

Download this release

Release Info

Developer yithemes
Plugin Icon 128x128 YITH WooCommerce Catalog Mode
Version 1.4.0
Comparing to
See all releases

Code changes from version 1.3.7 to 1.4.0

assets/images/10-bg.png ADDED
Binary file
assets/images/10-icon.png ADDED
Binary file
assets/images/10.png ADDED
Binary file
class.yith-woocommerce-catalog-mode.php CHANGED
@@ -1,824 +1,824 @@
1
  <?php
2
 
3
- if ( !defined( 'ABSPATH' ) ) {
4
- exit;
5
  } // Exit if accessed directly
6
 
7
- if ( !class_exists( 'YITH_WC_Catalog_Mode' ) ) {
8
-
9
- /**
10
- * Implements features of YITH WooCommerce Catalog Mode plugin
11
- *
12
- * @class YITH_WC_Catalog_Mode
13
- * @package Yithemes
14
- * @since 1.0.0
15
- * @author Your Inspiration Themes
16
- */
17
- class YITH_WC_Catalog_Mode {
18
-
19
- /**
20
- * Panel object
21
- *
22
- * @var /Yit_Plugin_Panel object
23
- * @since 1.0.0
24
- * @see plugin-fw/lib/yit-plugin-panel.php
25
- */
26
- protected $_panel;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
27
 
28
- /**
29
- * @var $_premium string Premium tab template file name
30
- */
31
- protected $_premium = 'premium.php';
32
 
33
- /**
34
- * @var string Premium version landing link
35
- */
36
- protected $_premium_landing = 'http://yithemes.com/themes/plugins/yith-woocommerce-catalog-mode/';
37
-
38
- /**
39
- * @var string Plugin official documentation
40
- */
41
- protected $_official_documentation = 'http://yithemes.com/docs-plugins/yith-woocommerce-catalog-mode/';
42
-
43
- /**
44
- * @var string Yith WooCommerce Catalog Mode panel page
45
- */
46
- protected $_panel_page = 'yith_wc_catalog_mode_panel';
47
-
48
- /**
49
- * Single instance of the class
50
- *
51
- * @var \YITH_WC_Catalog_Mode
52
- * @since 1.3.0
53
- */
54
- protected static $instance;
55
-
56
- /**
57
- * Returns single instance of the class
58
- *
59
- * @return \YITH_WC_Catalog_Mode
60
- * @since 1.3.0
61
- */
62
- public static function get_instance() {
63
-
64
- if ( is_null( self::$instance ) ) {
65
-
66
- self::$instance = new self;
67
-
68
- }
69
-
70
- return self::$instance;
71
-
72
- }
73
-
74
- /**
75
- * Constructor
76
- *
77
- * Initialize plugin and registers actions and filters to be used
78
- *
79
- * @since 1.0.0
80
- * @return mixed
81
- * @author Alberto Ruggiero
82
- */
83
- public function __construct() {
84
-
85
- if ( !function_exists( 'WC' ) ) {
86
- return;
87
- }
88
-
89
- // Load Plugin Framework
90
- add_action( 'plugins_loaded', array( $this, 'plugin_fw_loader' ), 12 );
91
-
92
- //Add action links
93
- add_filter( 'plugin_action_links_' . plugin_basename( YWCTM_DIR . '/' . basename( YWCTM_FILE ) ), array( $this, 'action_links' ) );
94
- add_filter( 'plugin_row_meta', array( $this, 'plugin_row_meta' ), 10, 4 );
95
-
96
- // Add stylesheets and scripts files
97
- add_action( 'admin_menu', array( $this, 'add_menu_page' ), 5 );
98
- add_action( 'yith_catalog_mode_premium', array( $this, 'premium_tab' ) );
99
-
100
- if ( get_option( 'ywctm_enable_plugin' ) == 'yes' && $this->check_user_admin_enable() ) {
101
-
102
- if ( !is_admin() || $this->is_quick_view() ) {
103
-
104
- if ( get_option( 'ywctm_hide_cart_header' ) == 'yes' ) {
105
-
106
- $priority = has_action( 'wp_loaded', array( 'WC_Form_Handler', 'add_to_cart_action' ) );
107
- remove_action( 'wp_loaded', array( 'WC_Form_Handler', 'add_to_cart_action' ), $priority );
108
-
109
- }
110
-
111
- add_action( 'wp', array( $this, 'check_pages_redirect' ) );
112
- add_action( 'get_pages', array( $this, 'hide_cart_checkout_pages' ) );
113
- add_action( 'woocommerce_single_product_summary', array( $this, 'hide_add_to_cart_single' ), 10 );
114
- add_action( 'woocommerce_before_shop_loop_item_title', array( $this, 'hide_add_to_cart_loop' ), 5 );
115
- add_action( 'wp_head', array( $this, 'hide_cart_widget' ) );
116
- add_filter( 'woocommerce_add_to_cart_validation', array( $this, 'avoid_add_to_cart' ), 10, 2 );
117
-
118
- if ( defined( 'YITH_WCWL' ) && YITH_WCWL ) {
119
- add_filter( 'woocommerce_loop_add_to_cart_link', array( $this, 'hide_add_to_cart_wishlist' ), 10, 2 );
120
- }
121
-
122
- }
123
-
124
- }
125
-
126
- }
127
 
128
- /**
129
- * ADMIN FUNCTIONS
130
- */
 
 
 
 
 
 
 
131
 
132
- /**
133
- * Add a panel under YITH Plugins tab
134
- *
135
- * @since 1.0.0
136
- * @return void
137
- * @author Alberto Ruggiero
138
- * @use /Yit_Plugin_Panel class
139
- * @see plugin-fw/lib/yit-plugin-panel.php
140
- */
141
- public function add_menu_page() {
142
 
143
- if ( !empty( $this->_panel ) ) {
144
- return;
145
- }
 
146
 
147
- $admin_tabs = array();
148
-
149
- if ( defined( 'YWCTM_PREMIUM' ) ) {
150
- $admin_tabs['premium-settings'] = __( 'Settings', 'yith-woocommerce-catalog-mode' );
151
- $admin_tabs['exclusions'] = __( 'Exclusion List', 'yith-woocommerce-catalog-mode' );
152
- $admin_tabs['custom-url'] = __( 'Custom Button Url List', 'yith-woocommerce-catalog-mode' );
153
-
154
- if ( YITH_WCTM()->is_multivendor_active() ) {
155
- $admin_tabs['vendors'] = __( 'Vendor Exclusion List', 'yith-woocommerce-catalog-mode' );
156
- }
157
-
158
- }
159
- else {
160
- $admin_tabs['settings'] = __( 'Settings', 'yith-woocommerce-catalog-mode' );
161
- $admin_tabs['premium-landing'] = __( 'Premium Version', 'yith-woocommerce-catalog-mode' );
162
- }
163
 
 
 
 
 
 
 
 
 
 
 
 
 
164
 
165
- $args = array(
166
- 'create_menu_page' => true,
167
- 'parent_slug' => '',
168
- 'page_title' => __( 'Catalog Mode', 'yith-woocommerce-catalog-mode' ),
169
- 'menu_title' => __( 'Catalog Mode', 'yith-woocommerce-catalog-mode' ),
170
- 'capability' => 'manage_options',
171
- 'parent' => '',
172
- 'parent_page' => 'yit_plugin_panel',
173
- 'page' => $this->_panel_page,
174
- 'admin-tabs' => $admin_tabs,
175
- 'options-path' => YWCTM_DIR . '/plugin-options'
176
- );
177
 
178
- $this->_panel = new YIT_Plugin_Panel_WooCommerce( $args );
179
- }
 
180
 
181
- /**
182
- * FRONTEND FUNCTIONS
183
- */
 
 
 
 
 
 
 
 
184
 
185
- /**
186
- * Check if Catalog mode must be applied to current user
187
- *
188
- * @since 1.3.0
189
- *
190
- * @param $post_id
191
- *
192
- * @return bool
193
- * @author Alberto Ruggiero
194
- */
195
- public function apply_catalog_mode( $post_id ) {
196
 
197
- $target_users = apply_filters( 'ywctm_get_vendor_option', get_option( 'ywctm_hide_price_users' ), $post_id, 'ywctm_hide_price_users' );
198
 
199
- if ( $target_users == 'country' && defined( 'YWCTM_PREMIUM' ) ) {
200
 
201
- return $this->country_check( $post_id );
202
 
203
- }
204
- elseif ( $target_users == 'all' ) {
205
 
206
- return true;
207
 
208
- }
209
- else {
210
 
211
- return !is_user_logged_in();
212
 
213
- }
214
 
215
- }
 
 
 
 
 
 
 
216
 
217
- /**
218
- * Check if catalog mode is enabled for administrator
219
- *
220
- * @since 1.0.2
221
- * @return bool
222
- * @author Alberto Ruggiero
223
- */
224
- public function check_user_admin_enable() {
225
 
226
- return !( current_user_can( 'administrator' ) && is_user_logged_in() && get_option( 'ywctm_admin_view' ) == 'no' );
227
 
228
- }
 
 
 
 
 
 
 
229
 
230
- /**
231
- * Checks if "Cart & Checkout pages" needs to be hidden
232
- *
233
- * @since 1.0.2
234
- * @return bool
235
- * @author Alberto Ruggiero
236
- */
237
- public function check_hide_cart_checkout_pages() {
238
 
239
- return get_option( 'ywctm_enable_plugin' ) == 'yes' && $this->check_user_admin_enable() && get_option( 'ywctm_hide_cart_header' ) == 'yes';
240
 
241
- }
 
 
 
 
 
 
 
 
 
 
242
 
243
- /**
244
- * Hides "Add to cart" button from single product page
245
- *
246
- * @since 1.0.0
247
- *
248
- * @param $action
249
- *
250
- * @return void
251
- * @author Alberto Ruggiero
252
- */
253
- public function hide_add_to_cart_single( $action = '' ) {
254
 
255
- if ( $action == '' ) {
256
- $action = 'woocommerce_single_product_summary';
257
- }
258
 
259
- $priority = has_action( $action, 'woocommerce_template_single_add_to_cart' );
260
 
261
- if ( $this->check_add_to_cart_single( $priority ) ) {
262
 
263
- add_action( 'woocommerce_before_add_to_cart_button', array( $this, 'hide_add_to_cart_quick_view' ), 10 );
264
 
265
- }
266
 
267
- }
 
 
 
 
 
 
 
268
 
269
- /**
270
- * Hide add to cart button in quick view
271
- *
272
- * @since 1.0.7
273
- * @return mixed
274
- * @author Francesco Licandro
275
- */
276
- public function hide_add_to_cart_quick_view() {
277
 
278
- $hide_variations = get_option( 'ywctm_hide_variations' );
279
- ob_start();
 
280
 
281
- $args = array(
282
- 'form.cart button.single_add_to_cart_button'
283
- );
284
 
285
- if ( !class_exists( 'YITH_YWRAQ_Frontend' ) ) {
286
 
287
- $args[] = 'form.cart .quantity';
288
 
289
- }
290
 
291
- if ( $hide_variations == 'yes' ) {
 
 
292
 
293
- $args[] = 'table.variations';
294
- $args[] = 'form.variations_form';
295
- $args[] = '.single_variation_wrap .variations_button';
296
 
297
- }
298
 
299
- $classes = implode( ', ', apply_filters( 'ywctm_catalog_classes', $args ) );
 
300
 
301
- ?>
302
- <style>
 
 
303
 
304
- <?php echo $classes; ?>
305
- {
306
- display: none !important
307
- }
308
 
309
- </style>
310
- <?php
311
- echo ob_get_clean();
312
 
313
- }
 
 
 
 
 
 
 
 
 
 
314
 
315
- /**
316
- * Check if price is hidden to hide add to cart button
317
- *
318
- * @since 1.0.4
319
- *
320
- * @param $post_id
321
- *
322
- * @return bool
323
- * @author Alberto Ruggiero
324
- */
325
- public function check_price_hidden( $post_id ) {
326
 
327
- $hide = false;
328
 
329
- $hide_price = apply_filters( 'ywctm_get_vendor_option', get_option( 'ywctm_hide_price' ), $post_id, 'ywctm_hide_price' );
330
 
331
- if ( $hide_price == 'yes' ) {
332
 
333
- if ( $this->apply_catalog_mode( $post_id ) ) {
 
334
 
335
- $enable_exclusion = apply_filters( 'ywctm_get_vendor_option', get_option( 'ywctm_exclude_hide_price' ), $post_id, 'ywctm_exclude_hide_price' );
336
- $exclude_catalog = apply_filters( 'ywctm_get_exclusion', get_post_meta( $post_id, '_ywctm_exclude_hide_price', true ), $post_id, '_ywctm_exclude_hide_price' );
337
 
338
- $hide = ( $enable_exclusion != 'yes' ? true : ( $exclude_catalog != 'yes' ? true : false ) );
339
 
340
- $reverse_criteria = apply_filters( 'ywctm_get_vendor_option', get_option( 'ywctm_exclude_hide_price_reverse' ), $post_id, 'ywctm_exclude_hide_price_reverse' );
341
 
342
- if ( $enable_exclusion == 'yes' && $reverse_criteria == 'yes' ) {
343
 
344
- $hide = !$hide;
345
 
346
- }
347
 
348
- }
349
 
350
- }
351
 
352
- return $hide;
353
 
354
- }
 
 
 
 
 
 
 
 
 
 
 
355
 
356
- /**
357
- * Checks if "Add to cart" needs to be hidden
358
- *
359
- * @since 1.0.2
360
- *
361
- * @param $priority
362
- * @param $product_id
363
- *
364
- * @return bool
365
- * @author Alberto Ruggiero
366
- */
367
- public function check_add_to_cart_single( $priority = true, $product_id = false ) {
368
 
369
- $hide = false;
370
 
371
- if ( get_option( 'ywctm_enable_plugin' ) == 'yes' && $this->check_user_admin_enable() ) {
372
 
373
- if ( get_option( 'ywctm_hide_cart_header' ) == 'yes' ) {
374
 
375
- $hide = true;
376
 
377
- }
378
- else {
379
 
380
- global $post;
 
 
381
 
382
- if ( !$product_id && !isset( $post ) ) {
383
- return false;
384
- }
385
 
386
- $post_id = ( $product_id ) ? $product_id : $post->ID;
387
 
388
- $hide_add_to_cart_single = apply_filters( 'ywctm_get_vendor_option', get_option( 'ywctm_hide_add_to_cart_single' ), $post_id, 'ywctm_hide_add_to_cart_single' );
389
 
390
- if ( $hide_add_to_cart_single == 'yes' ) {
391
 
392
- if ( $this->apply_catalog_mode( $post_id ) ) {
 
393
 
394
- $enable_exclusion = apply_filters( 'ywctm_get_vendor_option', get_option( 'ywctm_exclude_hide_add_to_cart' ), $post_id, 'ywctm_exclude_hide_add_to_cart' );
395
- $exclude_catalog = apply_filters( 'ywctm_get_exclusion', get_post_meta( $post_id, '_ywctm_exclude_catalog_mode', true ), $post_id, '_ywctm_exclude_catalog_mode' );
396
 
397
- if ( $priority ) {
398
 
399
- $hide = ( $enable_exclusion != 'yes' ? true : ( $exclude_catalog != 'yes' ? true : false ) );
400
 
401
- }
402
 
403
- $reverse_criteria = apply_filters( 'ywctm_get_vendor_option', get_option( 'ywctm_exclude_hide_add_to_cart_reverse' ), $post_id, 'ywctm_exclude_hide_add_to_cart_reverse' );
404
 
405
- if ( $enable_exclusion == 'yes' && $reverse_criteria == 'yes' ) {
406
 
407
- $hide = !$hide;
408
 
409
- }
410
 
411
- }
412
 
413
- }
414
 
415
- if ( $this->check_price_hidden( $post_id ) ) {
416
 
417
- $hide = true;
418
 
419
- }
420
 
421
- }
422
 
423
- }
424
 
425
- return $hide;
426
 
427
- }
 
 
 
 
 
 
 
 
 
 
 
428
 
429
- /**
430
- * Checks if "Add to cart" needs to be avoided
431
- *
432
- * @since 1.0.5
433
- *
434
- * @param $passed
435
- * @param $product_id
436
- *
437
- * @return bool
438
- * @author Alberto Ruggiero
439
- */
440
- public function avoid_add_to_cart( $passed, $product_id ) {
441
 
442
- if ( get_option( 'ywctm_enable_plugin' ) == 'yes' && $this->check_user_admin_enable() ) {
443
 
444
- if ( get_option( 'ywctm_hide_cart_header' ) == 'yes' ) {
445
 
446
- $passed = false;
447
 
448
- }
449
- else {
450
 
451
- $hide_add_to_cart_single = apply_filters( 'ywctm_get_vendor_option', get_option( 'ywctm_hide_add_to_cart_single' ), $product_id, 'ywctm_hide_add_to_cart_single' );
452
 
453
- if ( $hide_add_to_cart_single == 'yes' ) {
454
 
455
- if ( $this->apply_catalog_mode( $product_id ) ) {
 
456
 
457
- $enable_exclusion = apply_filters( 'ywctm_get_vendor_option', get_option( 'ywctm_exclude_hide_add_to_cart' ), $product_id, 'ywctm_exclude_hide_add_to_cart' );
458
- $exclude_catalog = apply_filters( 'ywctm_get_exclusion', get_post_meta( $product_id, '_ywctm_exclude_catalog_mode', true ), $product_id, '_ywctm_exclude_catalog_mode' );
459
 
460
- $passed = ( $enable_exclusion != 'yes' ? false : ( $exclude_catalog != 'yes' ? false : true ) );
461
 
462
- $reverse_criteria = apply_filters( 'ywctm_get_vendor_option', get_option( 'ywctm_exclude_hide_add_to_cart_reverse' ), $product_id, 'ywctm_exclude_hide_add_to_cart_reverse' );
463
 
464
- if ( $enable_exclusion == 'yes' && $reverse_criteria == 'yes' ) {
465
 
466
- $passed = !$passed;
467
 
468
- }
469
 
470
- }
471
 
472
- }
473
 
474
- if ( $this->check_price_hidden( $product_id ) ) {
475
 
476
- $passed = false;
477
 
478
- }
479
 
480
- }
481
 
482
- }
 
483
 
484
- return $passed;
485
- }
 
 
 
 
 
 
486
 
487
- /**
488
- * Checks if "Add to cart" needs to be hidden from loop page
489
- *
490
- * @since 1.0.6
491
- * @return bool
492
- * @author Alberto Ruggiero
493
- */
494
- public function check_hide_add_cart_loop() {
495
 
496
- $hide = false;
497
 
498
- if ( get_option( 'ywctm_hide_cart_header' ) == 'yes' ) {
499
 
500
- $hide = true;
501
 
502
- }
503
- else {
504
 
505
- global $post;
 
506
 
507
- $hide_add_to_cart_loop = apply_filters( 'ywctm_get_vendor_option', get_option( 'ywctm_hide_add_to_cart_loop' ), $post->ID, 'ywctm_hide_add_to_cart_loop' );
508
- $hide_variations = apply_filters( 'ywctm_get_vendor_option', get_option( 'ywctm_hide_variations' ), $post->ID, 'ywctm_hide_variations' );
509
 
510
- $can_hide = true;
511
- $product = wc_get_product( $post );
512
 
513
- if ( $product->product_type == 'variable' ) {
514
 
515
- $can_hide = ( $hide_variations == 'yes' ? true : false );
516
 
517
- }
518
 
 
519
 
520
- if ( $hide_add_to_cart_loop == 'yes' ) {
521
 
522
- if ( $this->apply_catalog_mode( $post->ID ) ) {
 
523
 
524
- $enable_exclusion = apply_filters( 'ywctm_get_vendor_option', get_option( 'ywctm_exclude_hide_add_to_cart' ), $post->ID, 'ywctm_exclude_hide_add_to_cart' );
525
- $exclude_catalog = apply_filters( 'ywctm_get_exclusion', get_post_meta( $post->ID, '_ywctm_exclude_catalog_mode', true ), $post->ID, '_ywctm_exclude_catalog_mode' );
526
 
527
- $hide = ( $enable_exclusion != 'yes' ? true : ( $exclude_catalog != 'yes' ? true : false ) );
528
 
529
- if ( $product->product_type == 'variable' ) {
530
 
531
- $hide = $can_hide;
532
 
533
- }
534
 
535
- $reverse_criteria = apply_filters( 'ywctm_get_vendor_option', get_option( 'ywctm_exclude_hide_add_to_cart_reverse' ), $post->ID, 'ywctm_exclude_hide_add_to_cart_reverse' );
536
 
537
- if ( $enable_exclusion == 'yes' && $reverse_criteria == 'yes' ) {
538
 
539
- $hide = !$hide;
540
 
541
- }
542
 
543
- }
544
 
545
- }
546
 
547
- if ( $this->check_price_hidden( $post->ID ) && $can_hide ) {
548
 
549
- $hide = true;
550
 
551
- }
552
 
 
553
 
554
- }
 
555
 
556
- return $hide;
557
- }
 
 
 
 
 
 
558
 
559
- /**
560
- * Hides "Add to cart" button, if not excluded, from loop page
561
- *
562
- * @since 1.0.0
563
- * @return void
564
- * @author Alberto Ruggiero
565
- */
566
- public function hide_add_to_cart_loop() {
567
 
568
- $ywctm_modify_woocommerce_after_shop_loop_item = apply_filters( 'ywctm_modify_woocommerce_after_shop_loop_item', true );
569
 
570
- if ( $this->check_hide_add_cart_loop() ) {
 
 
 
571
 
572
- if ( $ywctm_modify_woocommerce_after_shop_loop_item ) {
573
- remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10 );
574
- }
575
- add_filter( 'woocommerce_loop_add_to_cart_link', '__return_empty_string', 10 );
576
 
577
- }
578
- else {
 
579
 
580
- if ( $ywctm_modify_woocommerce_after_shop_loop_item ) {
581
- add_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10 );
582
- }
583
 
584
- remove_filter( 'woocommerce_loop_add_to_cart_link', '__return_empty_string', 10 );
585
 
586
- }
587
 
588
- }
 
 
 
 
 
 
 
589
 
590
- /**
591
- * Hide cart widget if needed
592
- *
593
- * @since 1.3.7
594
- * @return void
595
- * @author Alberto Ruggiero
596
- */
597
- public function hide_cart_widget() {
598
 
599
- if ( get_option( 'ywctm_hide_cart_header' ) == 'yes' ) {
600
 
601
- ob_start();
 
 
602
 
603
- $args = array(
604
- '.widget.woocommerce.widget_shopping_cart'
605
- );
606
 
607
- $classes = implode( ', ', apply_filters( 'ywctm_cart_widget_classes', $args ) );
 
608
 
609
- ?>
610
- <style type="text/css">
 
 
611
 
612
- <?php echo $classes; ?>
613
- {
614
- display: none !important
615
- }
616
 
617
- </style>
618
- <?php
619
- echo ob_get_clean();
620
 
621
- }
622
 
623
- }
 
 
 
 
 
 
 
624
 
625
- /**
626
- * Avoid Cart and Checkout Pages to be visited
627
- *
628
- * @since 1.0.4
629
- * @return void
630
- * @author Alberto Ruggiero
631
- */
632
- public function check_pages_redirect() {
633
 
634
- if ( get_option( 'ywctm_hide_cart_header' ) == 'yes' ) {
 
635
 
636
- $cart = is_page( wc_get_page_id( 'cart' ) );
637
- $checkout = is_page( wc_get_page_id( 'checkout' ) );
638
 
639
- wp_reset_query();
640
 
641
- if ( $cart || $checkout ) {
 
642
 
643
- wp_redirect( home_url() );
644
- exit;
645
 
646
- }
647
 
648
- }
649
 
650
- }
 
 
 
 
 
 
 
 
 
 
651
 
652
- /**
653
- * Removes Cart and checkout pages from menu
654
- *
655
- * @since 1.0.4
656
- *
657
- * @param $pages
658
- *
659
- * @return mixed
660
- * @author Alberto Ruggiero
661
- */
662
- public function hide_cart_checkout_pages( $pages ) {
663
 
664
- if ( get_option( 'ywctm_hide_cart_header' ) == 'yes' ) {
665
-
666
- $excluded_pages = array(
667
- wc_get_page_id( 'cart' ),
668
- wc_get_page_id( 'checkout' )
669
- );
670
-
671
- for ( $i = 0; $i < count( $pages ); $i ++ ) {
672
- $page = &$pages[$i];
673
-
674
- if ( in_array( $page->ID, $excluded_pages ) ) {
675
-
676
- unset( $pages[$i] );
677
-
678
- }
679
-
680
- }
681
-
682
- }
683
-
684
- return $pages;
685
-
686
- }
687
-
688
- /**
689
- * Say if the code is execute by quick view
690
- *
691
- * @since 1.0.7
692
- * @return bool
693
- * @author Andrea Frascaspata <andrea.frascaspata@yithemes.com>
694
- */
695
- public function is_quick_view() {
696
- return defined( 'DOING_AJAX' ) && DOING_AJAX && isset( $_REQUEST['action'] ) && ( $_REQUEST['action'] == 'yith_load_product_quick_view' || $_REQUEST['action'] == 'yit_load_product_quick_view' );
697
- }
698
-
699
- /**
700
- * Hides add to cart on wishlist
701
- *
702
- * @since 1.2.2
703
- *
704
- * @param $value
705
- * @param $product
706
- *
707
- * @return string
708
- * @author Alberto Ruggiero
709
- */
710
- public function hide_add_to_cart_wishlist( $value, $product ) {
711
-
712
- global $yith_wcwl_is_wishlist;
713
-
714
- if ( $this->check_add_to_cart_single( true, $product->id ) && $yith_wcwl_is_wishlist ) {
715
-
716
- $value = '';
717
-
718
- }
719
-
720
- return $value;
721
-
722
- }
723
-
724
- /**
725
- * YITH FRAMEWORK
726
- */
727
-
728
- /**
729
- * Load plugin framework
730
- *
731
- * @since 1.0.0
732
- * @return void
733
- * @author Andrea Grillo <andrea.grillo@yithemes.com>
734
- */
735
- public function plugin_fw_loader() {
736
- if ( !defined( 'YIT_CORE_PLUGIN' ) ) {
737
- global $plugin_fw_data;
738
- if ( !empty( $plugin_fw_data ) ) {
739
- $plugin_fw_file = array_shift( $plugin_fw_data );
740
- require_once( $plugin_fw_file );
741
- }
742
- }
743
- }
744
-
745
- /**
746
- * Premium Tab Template
747
- *
748
- * Load the premium tab template on admin page
749
- *
750
- * @since 1.0.0
751
- * @return void
752
- * @author Andrea Grillo <andrea.grillo@yithemes.com>
753
- */
754
- public function premium_tab() {
755
- $premium_tab_template = YWCTM_TEMPLATE_PATH . '/admin/' . $this->_premium;
756
- if ( file_exists( $premium_tab_template ) ) {
757
- include_once( $premium_tab_template );
758
- }
759
- }
760
-
761
- /**
762
- * Get the premium landing uri
763
- *
764
- * @since 1.0.0
765
- * @return string The premium landing link
766
- * @author Andrea Grillo <andrea.grillo@yithemes.com>
767
- */
768
- public function get_premium_landing_uri() {
769
- return defined( 'YITH_REFER_ID' ) ? $this->_premium_landing . '?refer_id=' . YITH_REFER_ID : $this->_premium_landing;
770
- }
771
-
772
- /**
773
- * Action Links
774
- *
775
- * add the action links to plugin admin page
776
- * @since 1.0.0
777
- *
778
- * @param $links | links plugin array
779
- *
780
- * @return mixed
781
- * @author Andrea Grillo <andrea.grillo@yithemes.com>
782
- * @use plugin_action_links_{$plugin_file_name}
783
- */
784
- public function action_links( $links ) {
785
-
786
- $links[] = '<a href="' . admin_url( "admin.php?page={$this->_panel_page}" ) . '">' . __( 'Settings', 'yith-woocommerce-catalog-mode' ) . '</a>';
787
-
788
- if ( defined( 'YWCTM_FREE_INIT' ) ) {
789
- $links[] = '<a href="' . $this->get_premium_landing_uri() . '" target="_blank">' . __( 'Premium Version', 'yith-woocommerce-catalog-mode' ) . '</a>';
790
- }
791
-
792
- return $links;
793
- }
794
-
795
- /**
796
- * Plugin row meta
797
- *
798
- * add the action links to plugin admin page
799
- *
800
- * @since 1.0.0
801
- *
802
- * @param $plugin_meta
803
- * @param $plugin_file
804
- * @param $plugin_data
805
- * @param $status
806
- *
807
- * @return array
808
- * @author Andrea Grillo <andrea.grillo@yithemes.com>
809
- * @use plugin_row_meta
810
- */
811
- public function plugin_row_meta( $plugin_meta, $plugin_file, $plugin_data, $status ) {
812
- if ( ( defined( 'YWCTM_INIT' ) && ( YWCTM_INIT == $plugin_file ) ) ||
813
- ( defined( 'YWCTM_FREE_INIT' ) && ( YWCTM_FREE_INIT == $plugin_file ) )
814
- ) {
815
-
816
- $plugin_meta[] = '<a href="' . $this->_official_documentation . '" target="_blank">' . __( 'Plugin Documentation', 'yith-woocommerce-catalog-mode' ) . '</a>';
817
- }
818
-
819
- return $plugin_meta;
820
- }
821
-
822
- }
823
 
824
  }
1
  <?php
2
 
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
  } // Exit if accessed directly
6
 
7
+ if ( ! class_exists( 'YITH_WC_Catalog_Mode' ) ) {
8
+
9
+ /**
10
+ * Implements features of YITH WooCommerce Catalog Mode plugin
11
+ *
12
+ * @class YITH_WC_Catalog_Mode
13
+ * @package Yithemes
14
+ * @since 1.0.0
15
+ * @author Your Inspiration Themes
16
+ */
17
+ class YITH_WC_Catalog_Mode {
18
+
19
+ /**
20
+ * Panel object
21
+ *
22
+ * @var /Yit_Plugin_Panel object
23
+ * @since 1.0.0
24
+ * @see plugin-fw/lib/yit-plugin-panel.php
25
+ */
26
+ protected $_panel;
27
+
28
+ /**
29
+ * @var $_premium string Premium tab template file name
30
+ */
31
+ protected $_premium = 'premium.php';
32
+
33
+ /**
34
+ * @var string Premium version landing link
35
+ */
36
+ protected $_premium_landing = 'http://yithemes.com/themes/plugins/yith-woocommerce-catalog-mode/';
37
+
38
+ /**
39
+ * @var string Plugin official documentation
40
+ */
41
+ protected $_official_documentation = 'http://yithemes.com/docs-plugins/yith-woocommerce-catalog-mode/';
42
+
43
+ /**
44
+ * @var string Yith WooCommerce Catalog Mode panel page
45
+ */
46
+ protected $_panel_page = 'yith_wc_catalog_mode_panel';
47
+
48
+ /**
49
+ * @var bool Check if WooCommerce version is lower than 2.6
50
+ */
51
+ public $is_wc_lower_2_6;
52
+
53
+ /**
54
+ * Single instance of the class
55
+ *
56
+ * @var \YITH_WC_Catalog_Mode
57
+ * @since 1.3.0
58
+ */
59
+ protected static $instance;
60
+
61
+ /**
62
+ * Returns single instance of the class
63
+ *
64
+ * @return \YITH_WC_Catalog_Mode
65
+ * @since 1.3.0
66
+ */
67
+ public static function get_instance() {
68
+
69
+ if ( is_null( self::$instance ) ) {
70
+
71
+ self::$instance = new self;
72
+
73
+ }
74
+
75
+ return self::$instance;
76
+
77
+ }
78
+
79
+ /**
80
+ * Constructor
81
+ *
82
+ * Initialize plugin and registers actions and filters to be used
83
+ *
84
+ * @since 1.0.0
85
+ * @return mixed
86
+ * @author Alberto Ruggiero
87
+ */
88
+ public function __construct() {
89
+
90
+ if ( ! function_exists( 'WC' ) ) {
91
+ return;
92
+ }
93
+
94
+ // Load Plugin Framework
95
+ add_action( 'plugins_loaded', array( $this, 'plugin_fw_loader' ), 12 );
96
+
97
+ //Add action links
98
+ add_filter( 'plugin_action_links_' . plugin_basename( YWCTM_DIR . '/' . basename( YWCTM_FILE ) ), array( $this, 'action_links' ) );
99
+ add_filter( 'plugin_row_meta', array( $this, 'plugin_row_meta' ), 10, 4 );
100
+
101
+ // Add stylesheets and scripts files
102
+ add_action( 'admin_menu', array( $this, 'add_menu_page' ), 5 );
103
+ add_action( 'yith_catalog_mode_premium', array( $this, 'premium_tab' ) );
104
+
105
+ $this->is_wc_lower_2_6 = version_compare( WC()->version, '2.6.0', '<' );
106
+
107
+ if ( get_option( 'ywctm_enable_plugin' ) == 'yes' && $this->check_user_admin_enable() ) {
108
+
109
+ if ( ! is_admin() || $this->is_quick_view() ) {
110
+
111
+ if ( get_option( 'ywctm_hide_cart_header' ) == 'yes' ) {
112
+
113
+ $priority = has_action( 'wp_loaded', array( 'WC_Form_Handler', 'add_to_cart_action' ) );
114
+ remove_action( 'wp_loaded', array( 'WC_Form_Handler', 'add_to_cart_action' ), $priority );
115
+
116
+ }
117
+
118
+ add_action( 'wp', array( $this, 'check_pages_redirect' ) );
119
+ add_action( 'get_pages', array( $this, 'hide_cart_checkout_pages' ) );
120
+ add_action( 'woocommerce_single_product_summary', array( $this, 'hide_add_to_cart_single' ), 10 );
121
+ add_action( 'woocommerce_before_shop_loop_item_title', array( $this, 'hide_add_to_cart_loop' ), 5 );
122
+ add_action( 'wp_head', array( $this, 'hide_cart_widget' ) );
123
+ add_filter( 'woocommerce_add_to_cart_validation', array( $this, 'avoid_add_to_cart' ), 10, 2 );
124
+
125
+ if ( defined( 'YITH_WCWL' ) && YITH_WCWL ) {
126
+ add_filter( 'woocommerce_loop_add_to_cart_link', array( $this, 'hide_add_to_cart_wishlist' ), 10, 2 );
127
+ }
128
+
129
+ }
130
+
131
+ }
132
 
133
+ }
 
 
 
134
 
135
+ /**
136
+ * ADMIN FUNCTIONS
137
+ */
138
+
139
+ /**
140
+ * Add a panel under YITH Plugins tab
141
+ *
142
+ * @since 1.0.0
143
+ * @return void
144
+ * @author Alberto Ruggiero
145
+ * @use /Yit_Plugin_Panel class
146
+ * @see plugin-fw/lib/yit-plugin-panel.php
147
+ */
148
+ public function add_menu_page() {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
149
 
150
+ if ( ! empty( $this->_panel ) ) {
151
+ return;
152
+ }
153
+
154
+ $admin_tabs = array();
155
+
156
+ if ( defined( 'YWCTM_PREMIUM' ) ) {
157
+ $admin_tabs['premium-settings'] = __( 'Settings', 'yith-woocommerce-catalog-mode' );
158
+ $admin_tabs['exclusions'] = __( 'Exclusion List', 'yith-woocommerce-catalog-mode' );
159
+ $admin_tabs['custom-url'] = __( 'Custom Button Url List', 'yith-woocommerce-catalog-mode' );
160
 
161
+ if ( YITH_WCTM()->is_multivendor_active() ) {
162
+ $admin_tabs['vendors'] = __( 'Vendor Exclusion List', 'yith-woocommerce-catalog-mode' );
163
+ }
 
 
 
 
 
 
 
164
 
165
+ } else {
166
+ $admin_tabs['settings'] = __( 'Settings', 'yith-woocommerce-catalog-mode' );
167
+ $admin_tabs['premium-landing'] = __( 'Premium Version', 'yith-woocommerce-catalog-mode' );
168
+ }
169
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
170
 
171
+ $args = array(
172
+ 'create_menu_page' => true,
173
+ 'parent_slug' => '',
174
+ 'page_title' => __( 'Catalog Mode', 'yith-woocommerce-catalog-mode' ),
175
+ 'menu_title' => __( 'Catalog Mode', 'yith-woocommerce-catalog-mode' ),
176
+ 'capability' => 'manage_options',
177
+ 'parent' => '',
178
+ 'parent_page' => 'yit_plugin_panel',
179
+ 'page' => $this->_panel_page,
180
+ 'admin-tabs' => $admin_tabs,
181
+ 'options-path' => YWCTM_DIR . '/plugin-options'
182
+ );
183
 
184
+ $this->_panel = new YIT_Plugin_Panel_WooCommerce( $args );
185
+ }
 
 
 
 
 
 
 
 
 
 
186
 
187
+ /**
188
+ * FRONTEND FUNCTIONS
189
+ */
190
 
191
+ /**
192
+ * Check if Catalog mode must be applied to current user
193
+ *
194
+ * @since 1.3.0
195
+ *
196
+ * @param $post_id
197
+ *
198
+ * @return bool
199
+ * @author Alberto Ruggiero
200
+ */
201
+ public function apply_catalog_mode( $post_id ) {
202
 
203
+ $target_users = apply_filters( 'ywctm_get_vendor_option', get_option( 'ywctm_hide_price_users' ), $post_id, 'ywctm_hide_price_users' );
 
 
 
 
 
 
 
 
 
 
204
 
205
+ if ( $target_users == 'country' && defined( 'YWCTM_PREMIUM' ) ) {
206
 
207
+ return $this->country_check( $post_id );
208
 
209
+ } elseif ( $target_users == 'all' ) {
210
 
211
+ return true;
 
212
 
213
+ } else {
214
 
215
+ return ! is_user_logged_in();
 
216
 
217
+ }
218
 
219
+ }
220
 
221
+ /**
222
+ * Check if catalog mode is enabled for administrator
223
+ *
224
+ * @since 1.0.2
225
+ * @return bool
226
+ * @author Alberto Ruggiero
227
+ */
228
+ public function check_user_admin_enable() {
229
 
230
+ return ! ( current_user_can( 'administrator' ) && is_user_logged_in() && get_option( 'ywctm_admin_view' ) == 'no' );
 
 
 
 
 
 
 
231
 
232
+ }
233
 
234
+ /**
235
+ * Checks if "Cart & Checkout pages" needs to be hidden
236
+ *
237
+ * @since 1.0.2
238
+ * @return bool
239
+ * @author Alberto Ruggiero
240
+ */
241
+ public function check_hide_cart_checkout_pages() {
242
 
243
+ return get_option( 'ywctm_enable_plugin' ) == 'yes' && $this->check_user_admin_enable() && get_option( 'ywctm_hide_cart_header' ) == 'yes';
 
 
 
 
 
 
 
244
 
245
+ }
246
 
247
+ /**
248
+ * Hides "Add to cart" button from single product page
249
+ *
250
+ * @since 1.0.0
251
+ *
252
+ * @param $action
253
+ *
254
+ * @return void
255
+ * @author Alberto Ruggiero
256
+ */
257
+ public function hide_add_to_cart_single( $action = '' ) {
258
 
259
+ if ( $action == '' ) {
260
+ $action = 'woocommerce_single_product_summary';
261
+ }
 
 
 
 
 
 
 
 
262
 
263
+ $priority = has_action( $action, 'woocommerce_template_single_add_to_cart' );
 
 
264
 
265
+ if ( $this->check_add_to_cart_single( $priority ) ) {
266
 
267
+ add_action( 'woocommerce_before_add_to_cart_button', array( $this, 'hide_add_to_cart_quick_view' ), 10 );
268
 
269
+ }
270
 
271
+ }
272
 
273
+ /**
274
+ * Hide add to cart button in quick view
275
+ *
276
+ * @since 1.0.7
277
+ * @return mixed
278
+ * @author Francesco Licandro
279
+ */
280
+ public function hide_add_to_cart_quick_view() {
281
 
282
+ $hide_variations = get_option( 'ywctm_hide_variations' );
283
+ ob_start();
 
 
 
 
 
 
284
 
285
+ $args = array(
286
+ 'form.cart button.single_add_to_cart_button'
287
+ );
288
 
289
+ if ( ! class_exists( 'YITH_YWRAQ_Frontend' ) ) {
 
 
290
 
291
+ $args[] = 'form.cart .quantity';
292
 
293
+ }
294
 
295
+ if ( $hide_variations == 'yes' ) {
296
 
297
+ $args[] = 'table.variations';
298
+ $args[] = 'form.variations_form';
299
+ $args[] = '.single_variation_wrap .variations_button';
300
 
301
+ }
 
 
302
 
303
+ $classes = implode( ', ', apply_filters( 'ywctm_catalog_classes', $args ) );
304
 
305
+ ?>
306
+ <style>
307
 
308
+ <?php echo $classes; ?>
309
+ {
310
+ display: none !important
311
+ }
312
 
313
+ </style>
314
+ <?php
315
+ echo ob_get_clean();
 
316
 
317
+ }
 
 
318
 
319
+ /**
320
+ * Check if price is hidden to hide add to cart button
321
+ *
322
+ * @since 1.0.4
323
+ *
324
+ * @param $post_id
325
+ *
326
+ * @return bool
327
+ * @author Alberto Ruggiero
328
+ */
329
+ public function check_price_hidden( $post_id ) {
330
 
331
+ $hide = false;
 
 
 
 
 
 
 
 
 
 
332
 
333
+ $hide_price = apply_filters( 'ywctm_get_vendor_option', get_option( 'ywctm_hide_price' ), $post_id, 'ywctm_hide_price' );
334
 
335
+ if ( $hide_price == 'yes' ) {
336
 
337
+ if ( $this->apply_catalog_mode( $post_id ) ) {
338
 
339
+ $enable_exclusion = apply_filters( 'ywctm_get_vendor_option', get_option( 'ywctm_exclude_hide_price' ), $post_id, 'ywctm_exclude_hide_price' );
340
+ $exclude_catalog = apply_filters( 'ywctm_get_exclusion', get_post_meta( $post_id, '_ywctm_exclude_hide_price', true ), $post_id, '_ywctm_exclude_hide_price' );
341
 
342
+ $hide = ( $enable_exclusion != 'yes' ? true : ( $exclude_catalog != 'yes' ? true : false ) );
 
343
 
344
+ $reverse_criteria = apply_filters( 'ywctm_get_vendor_option', get_option( 'ywctm_exclude_hide_price_reverse' ), $post_id, 'ywctm_exclude_hide_price_reverse' );
345
 
346
+ if ( $enable_exclusion == 'yes' && $reverse_criteria == 'yes' ) {
347
 
348
+ $hide = ! $hide;
349
 
350
+ }
351
 
352
+ }
353
 
354
+ }
355
 
356
+ return $hide;
357
 
358
+ }
359
 
360
+ /**
361
+ * Checks if "Add to cart" needs to be hidden
362
+ *
363
+ * @since 1.0.2
364
+ *
365
+ * @param $priority
366
+ * @param $product_id
367
+ *
368
+ * @return bool
369
+ * @author Alberto Ruggiero
370
+ */
371
+ public function check_add_to_cart_single( $priority = true, $product_id = false ) {
372
 
373
+ $hide = false;
 
 
 
 
 
 
 
 
 
 
 
374
 
375
+ if ( get_option( 'ywctm_enable_plugin' ) == 'yes' && $this->check_user_admin_enable() ) {
376
 
377
+ if ( get_option( 'ywctm_hide_cart_header' ) == 'yes' ) {
378
 
379
+ $hide = true;
380
 
381
+ } else {
382
 
383
+ global $post;
 
384
 
385
+ if ( ! $product_id && ! isset( $post ) ) {
386
+ return false;
387
+ }
388
 
389
+ $post_id = ( $product_id ) ? $product_id : $post->ID;
 
 
390
 
391
+ $hide_add_to_cart_single = apply_filters( 'ywctm_get_vendor_option', get_option( 'ywctm_hide_add_to_cart_single' ), $post_id, 'ywctm_hide_add_to_cart_single' );
392
 
393
+ if ( $hide_add_to_cart_single == 'yes' ) {
394
 
395
+ if ( $this->apply_catalog_mode( $post_id ) ) {
396
 
397
+ $enable_exclusion = apply_filters( 'ywctm_get_vendor_option', get_option( 'ywctm_exclude_hide_add_to_cart' ), $post_id, 'ywctm_exclude_hide_add_to_cart' );
398
+ $exclude_catalog = apply_filters( 'ywctm_get_exclusion', get_post_meta( $post_id, '_ywctm_exclude_catalog_mode', true ), $post_id, '_ywctm_exclude_catalog_mode' );
399
 
400
+ if ( $priority ) {
 
401
 
402
+ $hide = ( $enable_exclusion != 'yes' ? true : ( $exclude_catalog != 'yes' ? true : false ) );
403
 
404
+ }
405
 
406
+ $reverse_criteria = apply_filters( 'ywctm_get_vendor_option', get_option( 'ywctm_exclude_hide_add_to_cart_reverse' ), $post_id, 'ywctm_exclude_hide_add_to_cart_reverse' );
407
 
408
+ if ( $enable_exclusion == 'yes' && $reverse_criteria == 'yes' ) {
409
 
410
+ $hide = ! $hide;
411
 
412
+ }
413
 
414
+ }
415
 
416
+ }
417
 
418
+ if ( $this->check_price_hidden( $post_id ) ) {
419
 
420
+ $hide = true;
421
 
422
+ }
423
 
424
+ }
425
 
426
+ }
427
 
428
+ return $hide;
429
 
430
+ }
431
 
432
+ /**
433
+ * Checks if "Add to cart" needs to be avoided
434
+ *
435
+ * @since 1.0.5
436
+ *
437
+ * @param $passed
438
+ * @param $product_id
439
+ *
440
+ * @return bool
441
+ * @author Alberto Ruggiero
442
+ */
443
+ public function avoid_add_to_cart( $passed, $product_id ) {
444
 
445
+ if ( get_option( 'ywctm_enable_plugin' ) == 'yes' && $this->check_user_admin_enable() ) {
 
 
 
 
 
 
 
 
 
 
 
446
 
447
+ if ( get_option( 'ywctm_hide_cart_header' ) == 'yes' ) {
448
 
449
+ $passed = false;
450
 
451
+ } else {
452
 
453
+ $hide_add_to_cart_single = apply_filters( 'ywctm_get_vendor_option', get_option( 'ywctm_hide_add_to_cart_single' ), $product_id, 'ywctm_hide_add_to_cart_single' );
 
454
 
455
+ if ( $hide_add_to_cart_single == 'yes' ) {
456
 
457
+ if ( $this->apply_catalog_mode( $product_id ) ) {
458
 
459
+ $enable_exclusion = apply_filters( 'ywctm_get_vendor_option', get_option( 'ywctm_exclude_hide_add_to_cart' ), $product_id, 'ywctm_exclude_hide_add_to_cart' );
460
+ $exclude_catalog = apply_filters( 'ywctm_get_exclusion', get_post_meta( $product_id, '_ywctm_exclude_catalog_mode', true ), $product_id, '_ywctm_exclude_catalog_mode' );
461
 
462
+ $passed = ( $enable_exclusion != 'yes' ? false : ( $exclude_catalog != 'yes' ? false : true ) );
 
463
 
464
+ $reverse_criteria = apply_filters( 'ywctm_get_vendor_option', get_option( 'ywctm_exclude_hide_add_to_cart_reverse' ), $product_id, 'ywctm_exclude_hide_add_to_cart_reverse' );
465
 
466
+ if ( $enable_exclusion == 'yes' && $reverse_criteria == 'yes' ) {
467
 
468
+ $passed = ! $passed;
469
 
470
+ }
471
 
472
+ }
473
 
474
+ }
475
 
476
+ if ( $this->check_price_hidden( $product_id ) ) {
477
 
478
+ $passed = false;
479
 
480
+ }
481
 
482
+ }
483
 
484
+ }
485
 
486
+ return $passed;
487
+ }
488
 
489
+ /**
490
+ * Checks if "Add to cart" needs to be hidden from loop page
491
+ *
492
+ * @since 1.0.6
493
+ * @return bool
494
+ * @author Alberto Ruggiero
495
+ */
496
+ public function check_hide_add_cart_loop() {
497
 
498
+ $hide = false;
 
 
 
 
 
 
 
499
 
500
+ if ( get_option( 'ywctm_hide_cart_header' ) == 'yes' ) {
501
 
502
+ $hide = true;
503
 
504
+ } else {
505
 
506
+ global $post;
 
507
 
508
+ $hide_add_to_cart_loop = apply_filters( 'ywctm_get_vendor_option', get_option( 'ywctm_hide_add_to_cart_loop' ), $post->ID, 'ywctm_hide_add_to_cart_loop' );
509
+ $hide_variations = apply_filters( 'ywctm_get_vendor_option', get_option( 'ywctm_hide_variations' ), $post->ID, 'ywctm_hide_variations' );
510
 
511
+ $can_hide = true;
512
+ $product = wc_get_product( $post );
513
 
514
+ if ( $product->product_type == 'variable' ) {
 
515
 
516
+ $can_hide = ( $hide_variations == 'yes' ? true : false );
517
 
518
+ }
519
 
 
520
 
521
+ if ( $hide_add_to_cart_loop == 'yes' ) {
522
 
523
+ if ( $this->apply_catalog_mode( $post->ID ) ) {
524
 
525
+ $enable_exclusion = apply_filters( 'ywctm_get_vendor_option', get_option( 'ywctm_exclude_hide_add_to_cart' ), $post->ID, 'ywctm_exclude_hide_add_to_cart' );
526
+ $exclude_catalog = apply_filters( 'ywctm_get_exclusion', get_post_meta( $post->ID, '_ywctm_exclude_catalog_mode', true ), $post->ID, '_ywctm_exclude_catalog_mode' );
527
 
528
+ $hide = ( $enable_exclusion != 'yes' ? true : ( $exclude_catalog != 'yes' ? true : false ) );
 
529
 
530
+ if ( $product->product_type == 'variable' ) {
531
 
532
+ $hide = $can_hide;
533
 
534
+ }
535
 
536
+ $reverse_criteria = apply_filters( 'ywctm_get_vendor_option', get_option( 'ywctm_exclude_hide_add_to_cart_reverse' ), $post->ID, 'ywctm_exclude_hide_add_to_cart_reverse' );
537
 
538
+ if ( $enable_exclusion == 'yes' && $reverse_criteria == 'yes' ) {
539
 
540
+ $hide = ! $hide;
541
 
542
+ }
543
 
544
+ }
545
 
546
+ }
547
 
548
+ if ( $this->check_price_hidden( $post->ID ) && $can_hide ) {
549
 
550
+ $hide = true;
551
 
552
+ }
553
 
 
554
 
555
+ }
556
 
557
+ return $hide;
558
+ }
559
 
560
+ /**
561
+ * Hides "Add to cart" button, if not excluded, from loop page
562
+ *
563
+ * @since 1.0.0
564
+ * @return void
565
+ * @author Alberto Ruggiero
566
+ */
567
+ public function hide_add_to_cart_loop() {
568
 
569
+ $ywctm_modify_woocommerce_after_shop_loop_item = apply_filters( 'ywctm_modify_woocommerce_after_shop_loop_item', true );
 
 
 
 
 
 
 
570
 
571
+ if ( $this->check_hide_add_cart_loop() ) {
572
 
573
+ if ( $ywctm_modify_woocommerce_after_shop_loop_item ) {
574
+ remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10 );
575
+ }
576
+ add_filter( 'woocommerce_loop_add_to_cart_link', '__return_empty_string', 10 );
577
 
578
+ } else {
 
 
 
579
 
580
+ if ( $ywctm_modify_woocommerce_after_shop_loop_item ) {
581
+ add_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10 );
582
+ }
583
 
584
+ remove_filter( 'woocommerce_loop_add_to_cart_link', '__return_empty_string', 10 );
 
 
585
 
586
+ }
587
 
588
+ }
589
 
590
+ /**
591
+ * Hide cart widget if needed
592
+ *
593
+ * @since 1.3.7
594
+ * @return void
595
+ * @author Alberto Ruggiero
596
+ */
597
+ public function hide_cart_widget() {
598
 
599
+ if ( get_option( 'ywctm_hide_cart_header' ) == 'yes' ) {
 
 
 
 
 
 
 
600
 
601
+ ob_start();
602
 
603
+ $args = array(
604
+ '.widget.woocommerce.widget_shopping_cart'
605
+ );
606
 
607
+ $classes = implode( ', ', apply_filters( 'ywctm_cart_widget_classes', $args ) );
 
 
608
 
609
+ ?>
610
+ <style type="text/css">
611
 
612
+ <?php echo $classes; ?>
613
+ {
614
+ display: none !important
615
+ }
616
 
617
+ </style>
618
+ <?php
619
+ echo ob_get_clean();
 
620
 
621
+ }
 
 
622
 
623
+ }
624
 
625
+ /**
626
+ * Avoid Cart and Checkout Pages to be visited
627
+ *
628
+ * @since 1.0.4
629
+ * @return void
630
+ * @author Alberto Ruggiero
631
+ */
632
+ public function check_pages_redirect() {
633
 
634
+ if ( get_option( 'ywctm_hide_cart_header' ) == 'yes' ) {
 
 
 
 
 
 
 
635
 
636
+ $cart = is_page( wc_get_page_id( 'cart' ) );
637
+ $checkout = is_page( wc_get_page_id( 'checkout' ) );
638
 
639
+ wp_reset_query();
 
640
 
641
+ if ( $cart || $checkout ) {
642
 
643
+ wp_redirect( home_url() );
644
+ exit;
645
 
646
+ }
 
647
 
648
+ }
649
 
650
+ }
651
 
652
+ /**
653
+ * Removes Cart and checkout pages from menu
654
+ *
655
+ * @since 1.0.4
656
+ *
657
+ * @param $pages
658
+ *
659
+ * @return mixed
660
+ * @author Alberto Ruggiero
661
+ */
662
+ public function hide_cart_checkout_pages( $pages ) {
663
 
664
+ if ( get_option( 'ywctm_hide_cart_header' ) == 'yes' ) {
 
 
 
 
 
 
 
 
 
 
665
 
666
+ $excluded_pages = array(
667
+ wc_get_page_id( 'cart' ),
668
+ wc_get_page_id( 'checkout' )
669
+ );
670
+
671
+ for ( $i = 0; $i < count( $pages ); $i ++ ) {
672
+ $page = &$pages[ $i ];
673
+
674
+ if ( in_array( $page->ID, $excluded_pages ) ) {
675
+
676
+ unset( $pages[ $i ] );
677
+
678
+ }
679
+
680
+ }
681
+
682
+ }
683
+
684
+ return $pages;
685
+
686
+ }
687
+
688
+ /**
689
+ * Say if the code is execute by quick view
690
+ *
691
+ * @since 1.0.7
692
+ * @return bool
693
+ * @author Andrea Frascaspata <andrea.frascaspata@yithemes.com>
694
+ */
695
+ public function is_quick_view() {
696
+ return defined( 'DOING_AJAX' ) && DOING_AJAX && isset( $_REQUEST['action'] ) && ( $_REQUEST['action'] == 'yith_load_product_quick_view' || $_REQUEST['action'] == 'yit_load_product_quick_view' );
697
+ }
698
+
699
+ /**
700
+ * Hides add to cart on wishlist
701
+ *
702
+ * @since 1.2.2
703
+ *
704
+ * @param $value
705
+ * @param $product
706
+ *
707
+ * @return string
708
+ * @author Alberto Ruggiero
709
+ */
710
+ public function hide_add_to_cart_wishlist( $value, $product ) {
711
+
712
+ global $yith_wcwl_is_wishlist;
713
+
714
+ if ( $this->check_add_to_cart_single( true, $product->id ) && $yith_wcwl_is_wishlist ) {
715
+
716
+ $value = '';
717
+
718
+ }
719
+
720
+ return $value;
721
+
722
+ }
723
+
724
+ /**
725
+ * YITH FRAMEWORK
726
+ */
727
+
728
+ /**
729
+ * Load plugin framework
730
+ *
731
+ * @since 1.0.0
732
+ * @return void
733
+ * @author Andrea Grillo <andrea.grillo@yithemes.com>
734
+ */
735
+ public function plugin_fw_loader() {
736
+ if ( ! defined( 'YIT_CORE_PLUGIN' ) ) {
737
+ global $plugin_fw_data;
738
+ if ( ! empty( $plugin_fw_data ) ) {
739
+ $plugin_fw_file = array_shift( $plugin_fw_data );
740
+ require_once( $plugin_fw_file );
741
+ }
742
+ }
743
+ }
744
+
745
+ /**
746
+ * Premium Tab Template
747
+ *
748
+ * Load the premium tab template on admin page
749
+ *
750
+ * @since 1.0.0
751
+ * @return void
752
+ * @author Andrea Grillo <andrea.grillo@yithemes.com>
753
+ */
754
+ public function premium_tab() {
755
+ $premium_tab_template = YWCTM_TEMPLATE_PATH . '/admin/' . $this->_premium;
756
+ if ( file_exists( $premium_tab_template ) ) {
757
+ include_once( $premium_tab_template );
758
+ }
759
+ }
760
+
761
+ /**
762
+ * Get the premium landing uri
763
+ *
764
+ * @since 1.0.0
765
+ * @return string The premium landing link
766
+ * @author Andrea Grillo <andrea.grillo@yithemes.com>
767
+ */
768
+ public function get_premium_landing_uri() {
769
+ return defined( 'YITH_REFER_ID' ) ? $this->_premium_landing . '?refer_id=' . YITH_REFER_ID : $this->_premium_landing;
770
+ }
771
+
772
+ /**
773
+ * Action Links
774
+ *
775
+ * add the action links to plugin admin page
776
+ * @since 1.0.0
777
+ *
778
+ * @param $links | links plugin array
779
+ *
780
+ * @return mixed
781
+ * @author Andrea Grillo <andrea.grillo@yithemes.com>
782
+ * @use plugin_action_links_{$plugin_file_name}
783
+ */
784
+ public function action_links( $links ) {
785
+
786
+ $links[] = '<a href="' . admin_url( "admin.php?page={$this->_panel_page}" ) . '">' . __( 'Settings', 'yith-woocommerce-catalog-mode' ) . '</a>';
787
+
788
+ if ( defined( 'YWCTM_FREE_INIT' ) ) {
789
+ $links[] = '<a href="' . $this->get_premium_landing_uri() . '" target="_blank">' . __( 'Premium Version', 'yith-woocommerce-catalog-mode' ) . '</a>';
790
+ }
791
+
792
+ return $links;
793
+ }
794
+
795
+ /**
796
+ * Plugin row meta
797
+ *
798
+ * add the action links to plugin admin page
799
+ *
800
+ * @since 1.0.0
801
+ *
802
+ * @param $plugin_meta
803
+ * @param $plugin_file
804
+ * @param $plugin_data
805
+ * @param $status
806
+ *
807
+ * @return array
808
+ * @author Andrea Grillo <andrea.grillo@yithemes.com>
809
+ * @use plugin_row_meta
810
+ */
811
+ public function plugin_row_meta( $plugin_meta, $plugin_file, $plugin_data, $status ) {
812
+ if ( ( defined( 'YWCTM_INIT' ) && ( YWCTM_INIT == $plugin_file ) ) ||
813
+ ( defined( 'YWCTM_FREE_INIT' ) && ( YWCTM_FREE_INIT == $plugin_file ) )
814
+ ) {
815
+
816
+ $plugin_meta[] = '<a href="' . $this->_official_documentation . '" target="_blank">' . __( 'Plugin Documentation', 'yith-woocommerce-catalog-mode' ) . '</a>';
817
+ }
818
+
819
+ return $plugin_meta;
820
+ }
821
+
822
+ }
 
 
823
 
824
  }
init.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://yithemes.com/themes/plugins/yith-woocommerce-catalog-mode/
5
  Description: YITH WooCommerce Catalog Mode allows you to disable shop functions.
6
  Author: YITHEMES
7
  Text Domain: yith-woocommerce-catalog-mode
8
- Version: 1.3.7
9
  Author URI: http://yithemes.com/
10
  */
11
 
@@ -34,7 +34,7 @@ function ywctm_install_free_admin_notice() {
34
  }
35
 
36
  if ( !defined( 'YWCTM_VERSION' ) ) {
37
- define( 'YWCTM_VERSION', '1.3.7' );
38
  }
39
 
40
  if ( !defined( 'YWCTM_FREE_INIT' ) ) {
5
  Description: YITH WooCommerce Catalog Mode allows you to disable shop functions.
6
  Author: YITHEMES
7
  Text Domain: yith-woocommerce-catalog-mode
8
+ Version: 1.4.0
9
  Author URI: http://yithemes.com/
10
  */
11
 
34
  }
35
 
36
  if ( !defined( 'YWCTM_VERSION' ) ) {
37
+ define( 'YWCTM_VERSION', '1.4.0' );
38
  }
39
 
40
  if ( !defined( 'YWCTM_FREE_INIT' ) ) {
plugin-fw/assets/images/upgrade-page/01.jpg DELETED
Binary file
plugin-fw/assets/images/upgrade-page/02.jpg DELETED
Binary file
plugin-fw/assets/images/upgrade-page/03.jpg DELETED
Binary file
plugin-fw/assets/images/upgrade-page/04.jpg DELETED
Binary file
plugin-fw/assets/images/upgrade-page/05.jpg DELETED
Binary file
plugin-fw/assets/images/upgrade-page/06.jpg DELETED
Binary file
plugin-fw/assets/images/upgrade-page/07.jpg DELETED
Binary file
plugin-fw/assets/images/upgrade-page/08.jpg DELETED
Binary file
plugin-fw/assets/images/upgrade-page/09.jpg DELETED
Binary file
plugin-fw/assets/js/how-to.js ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
1
+ (function($){
2
+ var how_to_link = $('#yith-how-to-premium').parent();
3
+ if( typeof how_to_link != 'undefined' ){
4
+ how_to_link.prop( 'target', '_blank' );
5
+ }
6
+ })(jQuery);
plugin-fw/assets/js/multisite-updater.js CHANGED
@@ -54,7 +54,7 @@
54
  info = plugin[headers],
55
  name = '' + info.Name,
56
  id = name.replace(regex, '-').trim(),
57
- row = '#' + id.toLowerCase();
58
 
59
  $(row).addClass("update");
60
 
54
  info = plugin[headers],
55
  name = '' + info.Name,
56
  id = name.replace(regex, '-').trim(),
57
+ row = '*[data-slug="' + id.toLowerCase() +'"]';
58
 
59
  $(row).addClass("update");
60
 
plugin-fw/assets/js/multisite-updater.min.js CHANGED
@@ -1,4 +1 @@
1
- (function(m){function n(c,d,k){this.php_js=this.php_js||{};this.php_js.ENV=this.php_js.ENV||{};var a=0,e=0,b=0,f={dev:-6,alpha:-5,a:-5,beta:-4,b:-4,RC:-3,rc:-3,"#":-2,p:1,pl:1},a=function(a){a=(""+a).replace(/[_\-+]/g,".");a=a.replace(/([^.\d]+)/g,".$1.").replace(/\.{2,}/g,".");return a.length?a.split("."):[-8]};numVersion=function(a){return a?isNaN(a)?f[a]||-7:parseInt(a,10):0};c=a(c);d=a(d);e=Math.max(c.length,d.length);for(a=0;a<e;a++)if(c[a]!=d[a])if(c[a]=numVersion(c[a]),d[a]=numVersion(d[a]),
2
- c[a]<d[a]){b=-1;break}else if(c[a]>d[a]){b=1;break}if(!k)return b;switch(k){case ">":case "gt":return 0<b;case ">=":case "ge":return 0<=b;case "<=":case "le":return 0>=b;case "==":case "=":case "eq":return 0===b;case "<>":case "!=":case "ne":return 0!==b;case "":case "<":case "lt":return 0>b;default:return null}}var l=m("#menu-plugins"),g=l.find(".update-plugins").find(".update-count").text(),p=plugins.registered,q=plugins.activated;if(0==g||""==g)g=0,l.find(".wp-menu-name").append('<span class="update-plugins"><span class="plugin-count"></span></span>');
3
- (function(c,d,k,a){for(var e in c){var b=c[e],f;for(f in b)if("slug"!=f&&!n(b[f].Version,b[f].Latest,">=")){k=parseInt(k)+1;m(".plugin-count").empty().html(k);var g=""+b[f].Name,l="#"+g.replace(RegExp(" ","g"),"-").trim().toLowerCase();m(l).addClass("update");var h='<tr class="plugin-update-tr"><td colspan="3" class="plugin-update colspanchange"><div class="update-message">'+a.strings.new_version.replace("%plugin_name%",g)+'<a class="thickbox" href="'+a.details_url[e]+'">'+a.strings.latest.replace("%latest%",
4
- b[f].Latest)+"</a>",h="undefined"==typeof d[e]?h+" <em>"+a.strings.unavailable+"</em>"+a.strings.activate.replace("%activate_link%",a.licence_activation_url).replace("%plugin_name%",g):h+'. <a href="'+a.update_url[e]+'">'+a.strings.update_now+"</a>";"undefined"!=typeof a.changelogs[e]&&(h+=a.changelogs[e]);h+="</div></td></tr>";m(h).insertAfter(l)}}})(p,q,g,plugins)})(jQuery);
1
+ !function(e){function a(a,s,t,r){for(var i in a){var p=a[i];for(var l in p)if("slug"!=l&&!n(p[l].Version,p[l].Latest,">=")){t=parseInt(t)+1,e(".plugin-count").empty().html(t);var u=new RegExp(" ","g"),c=p[l],g=""+c.Name,d=g.replace(u,"-").trim(),o='*[data-slug="'+d.toLowerCase()+'"]';e(o).addClass("update");var f='<tr class="plugin-update-tr"><td colspan="3" class="plugin-update colspanchange"><div class="update-message">'+r.strings.new_version.replace("%plugin_name%",g)+'<a class="thickbox" href="'+r.details_url[i]+'">'+r.strings.latest.replace("%latest%",p[l].Latest)+"</a>";f="undefined"==typeof s[i]?f+" <em>"+r.strings.unavailable+"</em>"+r.strings.activate.replace("%activate_link%",r.licence_activation_url).replace("%plugin_name%",g):f+'. <a href="'+r.update_url[i]+'">'+r.strings.update_now+"</a>","undefined"!=typeof r.changelogs[i]&&(f+=r.changelogs[i]),f+="</div></td></tr>",e(f).insertAfter(o)}}}function n(e,a,n){this.php_js=this.php_js||{},this.php_js.ENV=this.php_js.ENV||{};var s=0,t=0,r=0,i={dev:-6,alpha:-5,a:-5,beta:-4,b:-4,RC:-3,rc:-3,"#":-2,p:1,pl:1},p=function(e){return e=(""+e).replace(/[_\-+]/g,"."),e=e.replace(/([^.\d]+)/g,".$1.").replace(/\.{2,}/g,"."),e.length?e.split("."):[-8]};for(numVersion=function(e){return e?isNaN(e)?i[e]||-7:parseInt(e,10):0},e=p(e),a=p(a),t=Math.max(e.length,a.length),s=0;t>s;s++)if(e[s]!=a[s]){if(e[s]=numVersion(e[s]),a[s]=numVersion(a[s]),e[s]<a[s]){r=-1;break}if(e[s]>a[s]){r=1;break}}if(!n)return r;switch(n){case">":case"gt":return r>0;case">=":case"ge":return r>=0;case"<=":case"le":return 0>=r;case"==":case"=":case"eq":return 0===r;case"<>":case"!=":case"ne":return 0!==r;case"":case"<":case"lt":return 0>r;default:return null}}var s=e("#menu-plugins"),t=s.find(".update-plugins"),r=t.find(".update-count").text(),i=plugins.registered,p=plugins.activated;if(0==r||""==r){var l='<span class="update-plugins"><span class="plugin-count"></span></span>';r=0,s.find(".wp-menu-name").append(l)}a(i,p,r,plugins)}(jQuery);
 
 
 
plugin-fw/init.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * Framework Name: YIT Plugin Framework
4
- * Version: 2.9.24
5
  * Author: Yithemes
6
  * Text Domain: yith-plugin-fw
7
  * Domain Path: /languages/
@@ -54,4 +54,4 @@ if ( ! function_exists ( 'yit_maybe_plugin_fw_loader' ) ) {
54
  $plugin_fw_data = array ( $framework_data[ 'Version' ] => $plugin_fw_main_file );
55
  }
56
  }
57
- }
1
  <?php
2
  /**
3
  * Framework Name: YIT Plugin Framework
4
+ * Version: 2.9.29
5
  * Author: Yithemes
6
  * Text Domain: yith-plugin-fw
7
  * Domain Path: /languages/
54
  $plugin_fw_data = array ( $framework_data[ 'Version' ] => $plugin_fw_main_file );
55
  }
56
  }
57
+ }
plugin-fw/languages/yith-plugin-fw-es_ES.mo ADDED
Binary file
plugin-fw/languages/yith-plugin-fw-es_ES.po ADDED
@@ -0,0 +1,1170 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2015 YIThemes
2
+ # This file is distributed under the same license as the YITH Plugin Starter package.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: YITH Plugin Starter 1.0.0 Plugin FW\n"
6
+ "Report-Msgid-Bugs-To: Your Inspiration Themes <plugins@yithemes.com>\n"
7
+ "POT-Creation-Date: 2016-05-16 16:37+0200\n"
8
+ "PO-Revision-Date: 2016-05-24 15:45+0100\n"
9
+ "Last-Translator: \n"
10
+ "Language-Team: Your Inspiration Themes <info@yithemes.com>\n"
11
+ "Language: es_ES\n"
12
+ "MIME-Version: 1.0\n"
13
+ "Content-Type: text/plain; charset=UTF-8\n"
14
+ "Content-Transfer-Encoding: 8bit\n"
15
+ "X-Generator: Poedit 1.8.7\n"
16
+ "X-Poedit-KeywordsList: __;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;"
17
+ "_nx_noop:1,2,3c;esc_attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;"
18
+ "esc_html_x:1,2c\n"
19
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
20
+ "X-Poedit-SourceCharset: UTF-8\n"
21
+ "X-Poedit-Basepath: ..\n"
22
+ "X-Textdomain-Support: yes\n"
23
+ "X-Poedit-SearchPath-0: .\n"
24
+
25
+ #: lib/yit-cpt-unlimited.php:460 lib/yit-cpt-unlimited.php:574
26
+ #: lib/yit-cpt-unlimited.php:719 lib/yit-cpt-unlimited.php:1632
27
+ #, php-format
28
+ msgid "Add %s"
29
+ msgstr "Añadir %s"
30
+
31
+ #: lib/yit-cpt-unlimited.php:461 lib/yit-cpt-unlimited.php:575
32
+ #, php-format
33
+ msgid "Add New %s"
34
+ msgstr "Añadir nuevo/a %s"
35
+
36
+ #: lib/yit-cpt-unlimited.php:462 lib/yit-cpt-unlimited.php:576
37
+ #: lib/yit-cpt-unlimited.php:1267 lib/yit-cpt-unlimited.php:1304
38
+ #, php-format
39
+ msgid "Edit %s"
40
+ msgstr "Editar %s"
41
+
42
+ #: lib/yit-cpt-unlimited.php:463 lib/yit-cpt-unlimited.php:577
43
+ #, php-format
44
+ msgid "New %s"
45
+ msgstr "Nuevo/a %s"
46
+
47
+ #: lib/yit-cpt-unlimited.php:464 lib/yit-cpt-unlimited.php:578
48
+ #, php-format
49
+ msgid "All %s"
50
+ msgstr "Todo %s"
51
+
52
+ #: lib/yit-cpt-unlimited.php:465 lib/yit-cpt-unlimited.php:579
53
+ #: lib/yit-cpt-unlimited.php:1251 lib/yit-cpt-unlimited.php:1305
54
+ #, php-format
55
+ msgid "View %s"
56
+ msgstr "Ver %s"
57
+
58
+ #: lib/yit-cpt-unlimited.php:466 lib/yit-cpt-unlimited.php:580
59
+ #, php-format
60
+ msgid "Search %s"
61
+ msgstr "Buscar %s"
62
+
63
+ #: lib/yit-cpt-unlimited.php:467 lib/yit-cpt-unlimited.php:581
64
+ #, php-format
65
+ msgid "No %s found"
66
+ msgstr "No se encontraron %s"
67
+
68
+ #: lib/yit-cpt-unlimited.php:468 lib/yit-cpt-unlimited.php:582
69
+ #, php-format
70
+ msgid "No %s found in Trash"
71
+ msgstr "No se encontraron %s en la Papelera"
72
+
73
+ #: lib/yit-cpt-unlimited.php:625
74
+ #, php-format
75
+ msgctxt "taxonomy general name"
76
+ msgid "%s Categories"
77
+ msgstr "%s Categorías"
78
+
79
+ #: lib/yit-cpt-unlimited.php:626
80
+ msgctxt "taxonomy singular name"
81
+ msgid "Category"
82
+ msgstr "Categoría"
83
+
84
+ #: lib/yit-cpt-unlimited.php:627
85
+ msgid "Search Categories"
86
+ msgstr "Buscar Categorías"
87
+
88
+ #: lib/yit-cpt-unlimited.php:628
89
+ msgid "All Categories"
90
+ msgstr "Todas las categorías"
91
+
92
+ #: lib/yit-cpt-unlimited.php:629
93
+ msgid "Parent Category"
94
+ msgstr "Categoría Madre"
95
+
96
+ #: lib/yit-cpt-unlimited.php:630
97
+ msgid "Parent Category:"
98
+ msgstr "Categoría Madre:"
99
+
100
+ #: lib/yit-cpt-unlimited.php:631
101
+ msgid "Edit Category"
102
+ msgstr "Editar Categoría:"
103
+
104
+ #: lib/yit-cpt-unlimited.php:632
105
+ msgid "Update Category"
106
+ msgstr "Actualizar Categoría:"
107
+
108
+ #: lib/yit-cpt-unlimited.php:633
109
+ msgid "Add New Category"
110
+ msgstr "Añadir nueva categoría"
111
+
112
+ #: lib/yit-cpt-unlimited.php:634
113
+ msgid "New Category Name"
114
+ msgstr "Nuevo nombre de categoría"
115
+
116
+ #: lib/yit-cpt-unlimited.php:635
117
+ msgid "Category"
118
+ msgstr "Categoría"
119
+
120
+ #: lib/yit-cpt-unlimited.php:724
121
+ msgid "Categories"
122
+ msgstr "Categorías"
123
+
124
+ #: lib/yit-cpt-unlimited.php:1042
125
+ #, php-format
126
+ msgid "%s Settings"
127
+ msgstr "%s Ajustes"
128
+
129
+ #: lib/yit-cpt-unlimited.php:1048 lib/yit-cpt-unlimited.php:1196
130
+ #: lib/yit-cpt-unlimited.php:1202 lib/yit-plugin-panel.php:74
131
+ msgid "Settings"
132
+ msgstr "Ajustes"
133
+
134
+ #: lib/yit-cpt-unlimited.php:1051
135
+ msgid "Type"
136
+ msgstr "Tipos"
137
+
138
+ #: lib/yit-cpt-unlimited.php:1052
139
+ #, php-format
140
+ msgid "Layout for this %s"
141
+ msgstr "Diseño para este %s"
142
+
143
+ #: lib/yit-cpt-unlimited.php:1058
144
+ msgid "Rewrite"
145
+ msgstr "Reescribir"
146
+
147
+ #: lib/yit-cpt-unlimited.php:1059
148
+ msgid ""
149
+ "Univocal identification name in the URL for each product (slug from post if empty)"
150
+ msgstr ""
151
+ "Nombre de identificación único en la URL para cada producto (slug desde la entrada "
152
+ "si está vacío)"
153
+
154
+ #: lib/yit-cpt-unlimited.php:1064
155
+ msgid "Label in Singular"
156
+ msgstr "Etiqueta en singular"
157
+
158
+ #: lib/yit-cpt-unlimited.php:1065
159
+ msgid "Set a label in singular (title of portfolio if empty)"
160
+ msgstr "Establecer una etiqueta en singular (título del portafolio si está vacío)"
161
+
162
+ #: lib/yit-cpt-unlimited.php:1070
163
+ msgid "Label in Plural"
164
+ msgstr "Etiqueta en Plural"
165
+
166
+ #: lib/yit-cpt-unlimited.php:1071
167
+ msgid "Set a label in plural (title of portfolio if empty)"
168
+ msgstr "Establecer una etiqueta en plural (título del portafolio si está vacío)"
169
+
170
+ #: lib/yit-cpt-unlimited.php:1076
171
+ msgid "Taxonomy"
172
+ msgstr "Taxonomía"
173
+
174
+ #: lib/yit-cpt-unlimited.php:1077
175
+ msgid ""
176
+ "If you want to use categories in the portfolio, set a name for taxonomy. Name "
177
+ "should be a slug (must not contain capital letters nor spaces) and must not be "
178
+ "more than 32 characters long (database structure restriction)."
179
+ msgstr ""
180
+ "Si quieres usar categorías en el portafolio, establece un nombre para la "
181
+ "taxonomía. El nombre debería ser un slug (no debe contener mayúsculas ni espacios) "
182
+ "y no debe ser más largo de 32 caracteres (restricción de estructura de base de "
183
+ "datos)."
184
+
185
+ #: lib/yit-cpt-unlimited.php:1082
186
+ msgid "Taxonomy Rewrite"
187
+ msgstr "Taxonomía de reescritura"
188
+
189
+ #: lib/yit-cpt-unlimited.php:1083
190
+ msgid "Set univocal name for each category page URL."
191
+ msgstr "Establecer nombre único para cada página URL de categoría."
192
+
193
+ #: lib/yit-cpt-unlimited.php:1088
194
+ msgid "Single layout"
195
+ msgstr "Diseño Simple"
196
+
197
+ #: lib/yit-cpt-unlimited.php:1089
198
+ msgid "Layout for single page of this portfolio"
199
+ msgstr "Diseño para cada página de este portafolio"
200
+
201
+ #: lib/yit-cpt-unlimited.php:1130
202
+ msgid "layout settings"
203
+ msgstr "Ajustes de diseño"
204
+
205
+ #: lib/yit-cpt-unlimited.php:1222 lib/yit-cpt-unlimited.php:1235
206
+ msgid "Quick links"
207
+ msgstr "Enlaces rápidos"
208
+
209
+ #: lib/yit-cpt-unlimited.php:1475
210
+ #, php-format
211
+ msgid "Show frontend of the %s"
212
+ msgstr "Mostrar parte delantera de %s"
213
+
214
+ #: lib/yit-cpt-unlimited.php:1482 templates/metaboxes/types/customtabs.php:46
215
+ #: templates/metaboxes/types/customtabs.php:90
216
+ msgid "Name"
217
+ msgstr "Nombre"
218
+
219
+ #: lib/yit-cpt-unlimited.php:1631
220
+ #, php-format
221
+ msgid "Add %s from images"
222
+ msgstr "Añadir %s desde imágenes"
223
+
224
+ #: lib/yit-cpt-unlimited.php:1633
225
+ msgid "Upload multiple files"
226
+ msgstr "Cargar archivos múltiples"
227
+
228
+ #: lib/yit-plugin-panel-sidebar.php:421 templates/panel/sidebar/sidebar.php:3
229
+ msgid "Hide sidebar"
230
+ msgstr "Ocultar barra lateral"
231
+
232
+ #: lib/yit-plugin-panel-sidebar.php:422 templates/panel/sidebar/sidebar.php:3
233
+ msgid "Show sidebar"
234
+ msgstr "Mostrar barra lateral"
235
+
236
+ #: lib/yit-plugin-panel-wc.php:359
237
+ msgid "The changes you have made will be lost if you leave this page."
238
+ msgstr "Los cambios que has hecho se perderán si sales de esta página."
239
+
240
+ #: lib/yit-plugin-panel.php:73
241
+ msgid "Plugin Settings"
242
+ msgstr "Ajustes del plugin"
243
+
244
+ #: lib/yit-plugin-panel.php:293
245
+ msgid "Premium version upgrade"
246
+ msgstr "Actualiza a la versión premium"
247
+
248
+ #: lib/yit-plugin-panel.php:344 lib/yit-plugin-subpanel.php:146
249
+ #: templates/panel/woocommerce/woocommerce-form.php:11
250
+ msgid "Save Changes"
251
+ msgstr "Guardar cambios"
252
+
253
+ #: lib/yit-plugin-panel.php:347 templates/panel/woocommerce/woocommerce-form.php:14
254
+ msgid "If you continue with this action, you will reset all options in this page."
255
+ msgstr "Si sigues con esta acción, se reiniciarán todas las opciones en esta página."
256
+
257
+ #: lib/yit-plugin-panel.php:349 lib/yit-plugin-subpanel.php:151
258
+ msgid "Reset to default"
259
+ msgstr "Reiniciar a predeterminado"
260
+
261
+ #: lib/yit-plugin-panel.php:349 lib/yit-plugin-subpanel.php:151
262
+ #: templates/panel/woocommerce/woocommerce-form.php:18
263
+ msgid "Are you sure?"
264
+ msgstr "¿Estás seguro/a?"
265
+
266
+ #: lib/yit-plugin-panel.php:545
267
+ msgid "The element you have entered already exists. Please, enter another name."
268
+ msgstr "El elemento que has introducido ya existe. Por favor, introduce otro nombre."
269
+
270
+ #: lib/yit-plugin-panel.php:546
271
+ msgid "Settings saved"
272
+ msgstr "Ajustes guardados"
273
+
274
+ #: lib/yit-plugin-panel.php:547
275
+ msgid "Settings reset"
276
+ msgstr "Ajustes reiniciados"
277
+
278
+ #: lib/yit-plugin-panel.php:548
279
+ msgid "Element deleted correctly."
280
+ msgstr "Elemento borrado correctamente."
281
+
282
+ #: lib/yit-plugin-panel.php:549 lib/yit-plugin-panel.php:550
283
+ msgid "Element updated correctly."
284
+ msgstr "Elemento actualizado correctamente."
285
+
286
+ #: lib/yit-plugin-panel.php:551
287
+ msgid "Database imported correctly."
288
+ msgstr "Base de datos importada correctamente."
289
+
290
+ #: lib/yit-plugin-panel.php:552
291
+ msgid "An error has occurred during import. Please try again."
292
+ msgstr "Ha ocurrido un error durante la importación. Por favor, inténtalo de nuevo."
293
+
294
+ #: lib/yit-plugin-panel.php:553
295
+ msgid "The added file is not valid."
296
+ msgstr "El archivo añadido no es válido."
297
+
298
+ #: lib/yit-plugin-panel.php:554
299
+ msgid "Sorry, import is disabled."
300
+ msgstr "Lo sentimos, la importación está deshabilitada."
301
+
302
+ #: lib/yit-plugin-panel.php:555
303
+ msgid "Sorting successful."
304
+ msgstr "Clasificación fue realizada con éxito."
305
+
306
+ #: lib/yit-plugin-subpanel.php:149
307
+ msgid ""
308
+ "If you continue with this action, you will reset all the options in this page."
309
+ msgstr "Si continúas con esta acción, reiniciarás todas las opciones de esta página."
310
+
311
+ #: lib/yit-pointers.php:70
312
+ msgid "Plugins Activated"
313
+ msgstr "Plugins Activados"
314
+
315
+ #: lib/yit-pointers.php:71
316
+ msgid ""
317
+ "From now on, you can find all plugin options in YIT Plugin menu.\n"
318
+ " For each plugin installed, customization "
319
+ "settings will be available as a new entry in YIT Plugin menu."
320
+ msgstr ""
321
+ "De ahora en adelante, puedes encontrar todas las opciones del plugin en el menú "
322
+ "YIT Plugin.\n"
323
+ " Para cada plugin instalado, los ajustes de "
324
+ "personalización estarán disponibles como una nueva entrada en el menú YIT Plugin."
325
+
326
+ #: lib/yit-pointers.php:73 lib/yit-pointers.php:89
327
+ msgid "Discover all our plugins available on:"
328
+ msgstr "Descubre todos nuestros plugins disponibles en:"
329
+
330
+ #: lib/yit-pointers.php:74 lib/yit-pointers.php:90
331
+ msgid "and"
332
+ msgstr "y"
333
+
334
+ #: lib/yit-pointers.php:84
335
+ msgid "Plugins Upgraded"
336
+ msgstr "Plugins Actualizados"
337
+
338
+ #: lib/yit-pointers.php:85
339
+ msgid ""
340
+ "From now on, you can find all options of your plugins in YIT Plugin menu.\n"
341
+ " Any time one of our plugins is updated, a new "
342
+ "entry will be added to this menu.\n"
343
+ " For example, after the update, plugin options "
344
+ "(such as for YITH WooCommerce Wishlist, YITH WooCommerce Ajax Search, etc.)\n"
345
+ " will be moved from previous location to YIT "
346
+ "Plugin tab."
347
+ msgstr ""
348
+ "De ahora en adelante, puedes encontrar todas las opciones de tus plugins en el "
349
+ "menú YIT Plugin.\n"
350
+ " Cada vez que uno de nuestros plugins sea "
351
+ "actualizado, se añadirá una nueva entrada a este menú.\n"
352
+ " Por ejemplo, después de actualizar, las "
353
+ "opciones del plugin (como las de YITH WooCommerce Wishlist, YITH WooCommerce Ajax "
354
+ "Search, etc.)\n"
355
+ " se moverán de su posición anterior a la "
356
+ "pestaña YIT Plugin."
357
+
358
+ #: lib/yit-upgrade.php:136
359
+ msgid "There is a new version of %plugin_name% available."
360
+ msgstr "Hay una nueva versión de %plugin_name% disponible."
361
+
362
+ #: lib/yit-upgrade.php:137
363
+ msgid "View version %latest% details."
364
+ msgstr "Ver detalles de la %latest% versión"
365
+
366
+ #: lib/yit-upgrade.php:138
367
+ msgid "Automatic update is unavailable for this plugin,"
368
+ msgstr "Las actualizaciones automáticas no están disponibles para este plugin,"
369
+
370
+ #: lib/yit-upgrade.php:139
371
+ msgid "please <a href=\"%activate_link%\">activate</a> your copy of %plugin_name%."
372
+ msgstr "por favor, <a href=\"%activate_link%\">activa</a> tu copia de %plugin_name%."
373
+
374
+ #: lib/yit-upgrade.php:140
375
+ msgid "Update now."
376
+ msgstr "Actualiza ahora."
377
+
378
+ #: lib/yit-upgrade.php:243
379
+ msgid "YIThemes Repository"
380
+ msgstr "Repositorio YIThemes"
381
+
382
+ #: lib/yit-upgrade.php:277
383
+ msgid "Invalid URL Provided."
384
+ msgstr "La URL proporcionada no es válida."
385
+
386
+ #: lib/yit-upgrade.php:290
387
+ msgid "Could not create Temporary file."
388
+ msgstr "No se pudo crear un archivo temporal."
389
+
390
+ #: lib/yit-upgrade.php:432
391
+ #, php-format
392
+ msgid ""
393
+ "There is a new version of %1$s available. <a href=\"%2$s\" class=\"thickbox yit-"
394
+ "changelog-button\" title=\"%3$s\">View version %4$s details</a>."
395
+ msgstr ""
396
+ "Hay una nueva versión de %1$s disponible. <a href=\"%2$s\" class=\"thickbox yit-"
397
+ "changelog-button\" title=\"%3$s\">Ver detalles de la versión %4$s</a>."
398
+
399
+ #: lib/yit-upgrade.php:434
400
+ #, php-format
401
+ msgid ""
402
+ "There is a new version of %1$s available. <a href=\"%2$s\" class=\"thickbox yit-"
403
+ "changelog-button\" title=\"%3$s\">View version %4$s details</a>. <em>You have to "
404
+ "activate the plugin on a single site of the network to benefit from automatic "
405
+ "updates.</em>"
406
+ msgstr ""
407
+ "Hay una nueva versión de %1$s disponible. <a href=\"%2$s\" class=\"thickbox yit-"
408
+ "changelog-button\" title=\"%3$s\">Ver detalles de la versión %4$s</a>. <em>Tienes "
409
+ "que activar el plugin en un único sitio web desdela red para beneficiarte de las "
410
+ "actualizaciones automáticas.</em>"
411
+
412
+ #: lib/yit-upgrade.php:436
413
+ #, php-format
414
+ msgid ""
415
+ "There is a new version of %1$s available. <a href=\"%2$s\" class=\"thickbox yit-"
416
+ "changelog-button\" title=\"%3$s\">View version %4$s details</a>. <em>Automatic "
417
+ "update is unavailable for this plugin, please <a href=\"%5$s\" title=\"License "
418
+ "activation\">activate</a> your copy of %6s.</em>"
419
+ msgstr ""
420
+ "Hay una nueva versión de %1$s disponible. <a href=\"%2$s\" class=\"thickbox yit-"
421
+ "changelog-button\" title=\"%3$s\">Ver detalles de la versión %4$s</a>. <em>Las "
422
+ "actualizaciones automáticas no están disponibles para este plugin, por favor <a "
423
+ "href=\"%5$s\" title=\"License activation\">activa</a> tu copia de %6s.</em>"
424
+
425
+ #: lib/yit-upgrade.php:438
426
+ #, php-format
427
+ msgid ""
428
+ "There is a new version of %1$s available. <a href=\"%2$s\" class=\"thickbox yit-"
429
+ "changelog-button\" title=\"%3$s\">View version %4$s details</a> or <a href=\"%5$s"
430
+ "\">update now</a>."
431
+ msgstr ""
432
+ "Hay una nueva versión de %1$s disponible. <a href=\"%2$s\" class=\"thickbox yit-"
433
+ "changelog-button\" title=\"%3$s\">Ver detalles de la versión %4$s</a> o <a href="
434
+ "\"%5$s\">actualizar ahora</a>."
435
+
436
+ #: lib/yit-upgrade.php:511
437
+ msgid "You can't update the plugins for this site."
438
+ msgstr "No puedes actualizar los plugins para este sitio web."
439
+
440
+ #: lib/yit-upgrade.php:515
441
+ msgid "You do not have sufficient permissions to update the plugins for this site."
442
+ msgstr ""
443
+ "No tienes suficientes permisos para actualizar los plugins para este sitio web."
444
+
445
+ #: lib/yit-upgrade.php:522
446
+ msgid "Update Plugin"
447
+ msgstr "Actualizar Plugin"
448
+
449
+ #: licence/lib/yit-licence.php:182
450
+ #, php-format
451
+ msgctxt "%s = field name"
452
+ msgid "%s field cannot be empty"
453
+ msgstr "%s el campo no puede estar vacío"
454
+
455
+ #: licence/lib/yit-licence.php:183
456
+ #, php-format
457
+ msgid "%s and %s fields cannot be empty"
458
+ msgstr "Los campos %s y %s no pueden estar vacíos"
459
+
460
+ #: licence/lib/yit-licence.php:184
461
+ msgid "Unable to contact the remote server, please try again later. Thanks!"
462
+ msgstr ""
463
+ "No fue posible contactar con el servidor remoto, por favor, inténtalo de nuevo más "
464
+ "tarde. ¡Gracias!"
465
+
466
+ #: licence/lib/yit-licence.php:185
467
+ #: licence/templates/panel/activation/activation-panel.php:88
468
+ #: licence/templates/panel/activation/activation-panel.php:166
469
+ #: licence/templates/panel/activation/activation-panel.php:197
470
+ #: templates/metaboxes/types/contactform.php:148
471
+ #: templates/metaboxes/types/contactform.php:340
472
+ msgid "Email"
473
+ msgstr "Email"
474
+
475
+ #: licence/lib/yit-licence.php:186
476
+ #: licence/templates/panel/activation/activation-panel.php:89
477
+ #: licence/templates/panel/activation/activation-panel.php:167
478
+ #: licence/templates/panel/activation/activation-panel.php:198
479
+ msgid "License Key"
480
+ msgstr "Clave de Licencia"
481
+
482
+ #: licence/lib/yit-licence.php:187
483
+ msgid "Are you sure you want to deactivate the license for current site?"
484
+ msgstr ""
485
+ "¿Estás seguro/a de que quieres desactivar la licencia para el sitio web actual?"
486
+
487
+ #: licence/lib/yit-licence.php:667
488
+ msgid "Invalid Request"
489
+ msgstr "Solicitud inválida"
490
+
491
+ #: licence/lib/yit-licence.php:668
492
+ msgid "Invalid license key"
493
+ msgstr "Clave de solicitud inválida"
494
+
495
+ #: licence/lib/yit-licence.php:669
496
+ msgid "Software has been deactivated"
497
+ msgstr "El software ha sido desactivado"
498
+
499
+ #: licence/lib/yit-licence.php:670
500
+ msgid "Maximum number of activations exceeded"
501
+ msgstr "Se ha excedido el número máximo de solicitudes"
502
+
503
+ #: licence/lib/yit-licence.php:671
504
+ msgid "Invalid instance ID"
505
+ msgstr "Instancia ID inválida"
506
+
507
+ #: licence/lib/yit-licence.php:672
508
+ msgid "Invalid security key"
509
+ msgstr "Clave de seguridad inválida"
510
+
511
+ #: licence/lib/yit-licence.php:673
512
+ msgid "License key has expired"
513
+ msgstr "La clave de licencia ha caducado"
514
+
515
+ #: licence/lib/yit-licence.php:674
516
+ msgid "License key has been banned"
517
+ msgstr "La clave de licencia ha sido bloqueada"
518
+
519
+ #: licence/lib/yit-licence.php:675
520
+ msgid "Current product is not included with your membership key"
521
+ msgstr "El producto actual no está incluido en tu clave de suscripción"
522
+
523
+ #: licence/lib/yit-licence.php:676
524
+ msgid "Great"
525
+ msgstr "Excelente"
526
+
527
+ #: licence/lib/yit-licence.php:676
528
+ msgid "License successfully activated"
529
+ msgstr "Licencia activada con éxito"
530
+
531
+ #: licence/lib/yit-licence.php:677
532
+ msgid "License key deactivated for website"
533
+ msgstr "Clave de licencia desactivada para nuestro sitio web"
534
+
535
+ #: licence/lib/yit-plugin-licence.php:67 licence/lib/yit-plugin-licence.php:68
536
+ #: licence/lib/yit-theme-licence.php:69 licence/lib/yit-theme-licence.php:70
537
+ #: licence/lib/yit-theme-licence.php:109 licence/lib/yit-theme-licence.php:110
538
+ msgid "License Activation"
539
+ msgstr "Activación de la Licencia"
540
+
541
+ #: licence/lib/yit-theme-licence.php:117 licence/lib/yit-theme-licence.php:118
542
+ #, php-format
543
+ msgid "%s"
544
+ msgstr "%s"
545
+
546
+ #: licence/lib/yit-theme-licence.php:159
547
+ msgid ""
548
+ "I cannot find the license key for activating the theme I have bought some time "
549
+ "ago. Where can I find it?"
550
+ msgstr ""
551
+ "No puedo encontrar la clave de licencia para activar el tema que compré hace "
552
+ "tiempo. ¿Dónde la puedo encontrar?"
553
+
554
+ #: licence/lib/yit-theme-licence.php:163
555
+ msgid ""
556
+ "If you have purchased one of our products before 27 January 2015, you can benefit "
557
+ "from support and updates (the services offered with the license)\n"
558
+ " until 27 January 2016 and you do not have to purchase it again "
559
+ "to get a new license key, because, before this date, your license used to be "
560
+ "activated automatically by our system.\n"
561
+ " After 27 January 2016, instead, if you want to benefit from "
562
+ "support and updates you have to buy a new license and activate it through the "
563
+ "license key you will be\n"
564
+ " provided with and that you can find in your YIThemes account, "
565
+ "in section \"My licenses\"."
566
+ msgstr ""
567
+ "Si has comprado uno de nuestros productos antes del 27 de enero de 2015, puedes "
568
+ "beneficiarte del soporte y actualizaciones (los servicios incluidos con la "
569
+ "licencia)\n"
570
+ " hasta el 27 de enero de 2016 y no tendrás que comprarla otra "
571
+ "vez para conseguir una nueva clave de licencia, porque, antes de esta fecha, tu "
572
+ "licencia se activaba automáticamente por nuestro sistema.\n"
573
+ " Después del 27 de enero de 2016, sin embargo, si quieres "
574
+ "beneficiarte de nuestro soporte y actualizaciones, tienes que comprar una nueva "
575
+ "licencia y activarla a través de la clave de licencia que \n"
576
+ " se te proporcionará y que podrás encontrar en tu cuenta "
577
+ "YIThemes, en la sección \"My licenses\"."
578
+
579
+ #: licence/templates/panel/activation/activation-panel.php:23
580
+ msgid "Yithemes License Activation"
581
+ msgstr "Licencia de Activación Yithemes"
582
+
583
+ #: licence/templates/panel/activation/activation-panel.php:27
584
+ msgid ""
585
+ "Have you updated your licenses? Have you asked for an extension? Update "
586
+ "information concerning your products."
587
+ msgstr "¿Has actualizado tus licencias? ¿Has pedido una extensión? Actualiza"
588
+
589
+ #: licence/templates/panel/activation/activation-panel.php:29
590
+ msgid "Update license information"
591
+ msgstr "Actualizar la información de la licencia"
592
+
593
+ #: licence/templates/panel/activation/activation-panel.php:42
594
+ msgid "Product to activate"
595
+ msgid_plural "Products to activate"
596
+ msgstr[0] "Producto que activar"
597
+ msgstr[1] "Productos que activar"
598
+
599
+ #: licence/templates/panel/activation/activation-panel.php:61
600
+ msgid "Activate"
601
+ msgstr "Activar"
602
+
603
+ #: licence/templates/panel/activation/activation-panel.php:80
604
+ msgid "Activated"
605
+ msgstr "Activado/a"
606
+
607
+ #: licence/templates/panel/activation/activation-panel.php:86
608
+ #: licence/templates/panel/activation/activation-panel.php:164
609
+ #: licence/templates/panel/activation/activation-panel.php:194
610
+ msgid "Product Name"
611
+ msgstr "Nombre de Producto"
612
+
613
+ #: licence/templates/panel/activation/activation-panel.php:92
614
+ #: licence/templates/panel/activation/activation-panel.php:201
615
+ msgid "Expires"
616
+ msgstr "Caduca"
617
+
618
+ #: licence/templates/panel/activation/activation-panel.php:95
619
+ msgid "Remaining"
620
+ msgstr "Queda"
621
+
622
+ #: licence/templates/panel/activation/activation-panel.php:97
623
+ msgid "Membership"
624
+ msgstr "Suscripción"
625
+
626
+ #: licence/templates/panel/activation/activation-panel.php:101
627
+ msgid "License Actions"
628
+ msgstr "Acciones de Licencia"
629
+
630
+ #: licence/templates/panel/activation/activation-panel.php:126
631
+ #, php-format
632
+ msgid "%1s out of %2s"
633
+ msgstr "%1s de %2s"
634
+
635
+ #: licence/templates/panel/activation/activation-panel.php:142
636
+ msgid "Deactivate"
637
+ msgstr "Desactivar"
638
+
639
+ #: licence/templates/panel/activation/activation-panel.php:147
640
+ #: licence/templates/panel/activation/activation-panel.php:204
641
+ msgid "Renew"
642
+ msgstr "Renovado"
643
+
644
+ #: licence/templates/panel/activation/activation-panel.php:160
645
+ msgid "Banned"
646
+ msgstr "Bloqueado"
647
+
648
+ #: licence/templates/panel/activation/activation-panel.php:190
649
+ msgid "Expired"
650
+ msgstr "Caducado"
651
+
652
+ #: licence/templates/panel/activation/activation-panel.php:226
653
+ msgid "Order again"
654
+ msgstr "Comprar de nuevo"
655
+
656
+ #: licence/templates/panel/activation/activation-panel.php:228
657
+ msgid "Renew license"
658
+ msgstr "Renovar licencia"
659
+
660
+ #: templates/metaboxes/types/ajax-products.php:23
661
+ msgid "Search for a product"
662
+ msgstr "Buscar un producto"
663
+
664
+ #: templates/metaboxes/types/categories.php:36
665
+ msgid "No categories."
666
+ msgstr "Ninguna categoría."
667
+
668
+ #: templates/metaboxes/types/categories.php:42
669
+ msgid "+ Add New Category"
670
+ msgstr "+ Añadir Nueva Categoría"
671
+
672
+ #: templates/metaboxes/types/categories.php:46
673
+ msgid "Add"
674
+ msgstr "Añadir"
675
+
676
+ #: templates/metaboxes/types/contactform.php:7
677
+ msgid "Text Input"
678
+ msgstr "Text Input"
679
+
680
+ #: templates/metaboxes/types/contactform.php:8
681
+ msgid "Checkbox"
682
+ msgstr "Casilla"
683
+
684
+ #: templates/metaboxes/types/contactform.php:9
685
+ msgid "Select"
686
+ msgstr "Seleciona"
687
+
688
+ #: templates/metaboxes/types/contactform.php:10
689
+ msgid "Textarea"
690
+ msgstr "Área de texto"
691
+
692
+ #: templates/metaboxes/types/contactform.php:11
693
+ msgid "Radio Input"
694
+ msgstr "Radio Input"
695
+
696
+ #: templates/metaboxes/types/contactform.php:12
697
+ msgid "Password Field"
698
+ msgstr "Campo de contraseña"
699
+
700
+ #: templates/metaboxes/types/contactform.php:13
701
+ msgid "File Upload"
702
+ msgstr "Carga de archivo"
703
+
704
+ #: templates/metaboxes/types/contactform.php:47
705
+ msgid "Theme Icon"
706
+ msgstr "Icono del tema"
707
+
708
+ #: templates/metaboxes/types/contactform.php:48
709
+ msgid "Custom Icon"
710
+ msgstr "Icono Personalizado"
711
+
712
+ #: templates/metaboxes/types/contactform.php:49
713
+ #: templates/metaboxes/types/responsivesliders.php:24
714
+ msgid "None"
715
+ msgstr "Ninguno"
716
+
717
+ #: templates/metaboxes/types/contactform.php:60
718
+ msgid "Add field"
719
+ msgstr "Añadir campo"
720
+
721
+ #: templates/metaboxes/types/contactform.php:69
722
+ #: templates/metaboxes/types/contactform.php:261
723
+ #: templates/metaboxes/types/customtabs.php:37
724
+ #: templates/metaboxes/types/customtabs.php:82
725
+ msgid "Remove"
726
+ msgstr "Borrar"
727
+
728
+ #: templates/metaboxes/types/contactform.php:70
729
+ #: templates/metaboxes/types/contactform.php:262
730
+ msgid "Click to toggle"
731
+ msgstr "Haz click para alternar"
732
+
733
+ #: templates/metaboxes/types/contactform.php:77
734
+ #: templates/metaboxes/types/contactform.php:269
735
+ msgid "Field Title"
736
+ msgstr "Campo de título"
737
+
738
+ #: templates/metaboxes/types/contactform.php:81
739
+ #: templates/metaboxes/types/contactform.php:273
740
+ msgid "Insert the title for the field."
741
+ msgstr "Inserta el título del campo."
742
+
743
+ #: templates/metaboxes/types/contactform.php:86
744
+ #: templates/metaboxes/types/contactform.php:278
745
+ msgid "Data Name"
746
+ msgstr "Nombre del dato."
747
+
748
+ #: templates/metaboxes/types/contactform.php:90
749
+ #: templates/metaboxes/types/contactform.php:282
750
+ msgid ""
751
+ "REQUIRED: Field identification name to be entered into email body. <strong>Note:</"
752
+ "strong>Use only lowercase characters and underscores."
753
+ msgstr ""
754
+ "OBLIGATORIO: El nombre del campo de identificación debe introducirse en el cuerpo "
755
+ "del email. <strong> Nota: </strong> Usa sólo minúsculas y guiones bajos."
756
+
757
+ #: templates/metaboxes/types/contactform.php:95
758
+ #: templates/metaboxes/types/contactform.php:287
759
+ msgid "Field Type"
760
+ msgstr "Tipo de campo"
761
+
762
+ #: templates/metaboxes/types/contactform.php:103
763
+ #: templates/metaboxes/types/contactform.php:295
764
+ msgid "Select the type for this field."
765
+ msgstr "Selecciona el tipo para este campo."
766
+
767
+ #: templates/metaboxes/types/contactform.php:108
768
+ #: templates/metaboxes/types/contactform.php:300
769
+ msgid "Checked"
770
+ msgstr "Campo seleccionado"
771
+
772
+ #: templates/metaboxes/types/contactform.php:112
773
+ #: templates/metaboxes/types/contactform.php:304
774
+ msgid "Select this option if you want this field appears as already checked."
775
+ msgstr "Selecciona esta opción si quieres que este campo aparezca como ya marcado."
776
+
777
+ #: templates/metaboxes/types/contactform.php:117
778
+ #: templates/metaboxes/types/contactform.php:309
779
+ msgid "Add options "
780
+ msgstr "Añadir opciones"
781
+
782
+ #: templates/metaboxes/types/contactform.php:118
783
+ #: templates/metaboxes/types/contactform.php:310
784
+ msgid "Add option"
785
+ msgstr "Añadir opción"
786
+
787
+ #: templates/metaboxes/types/contactform.php:121
788
+ #: templates/metaboxes/types/contactform.php:313
789
+ #: templates/metaboxes/types/contactform.php:436
790
+ msgid "Selected"
791
+ msgstr "Selecionado"
792
+
793
+ #: templates/metaboxes/types/contactform.php:124
794
+ #: templates/metaboxes/types/contactform.php:316
795
+ #: templates/metaboxes/types/contactform.php:436
796
+ msgid "Delete option"
797
+ msgstr "Borrar opción"
798
+
799
+ #: templates/metaboxes/types/contactform.php:130
800
+ #: templates/metaboxes/types/contactform.php:322
801
+ msgid "Error Message"
802
+ msgstr "Mensaje de error"
803
+
804
+ #: templates/metaboxes/types/contactform.php:134
805
+ #: templates/metaboxes/types/contactform.php:326
806
+ msgid "Insert the error message for validation."
807
+ msgstr "Inserta el mensaje de error para la validación."
808
+
809
+ #: templates/metaboxes/types/contactform.php:139
810
+ #: templates/metaboxes/types/contactform.php:331
811
+ msgid "Required"
812
+ msgstr "Campo obligatorio"
813
+
814
+ #: templates/metaboxes/types/contactform.php:143
815
+ #: templates/metaboxes/types/contactform.php:335
816
+ msgid "Select this option if it must be required."
817
+ msgstr "Selecciona esta opción si este campo debe ser obligatorio."
818
+
819
+ #: templates/metaboxes/types/contactform.php:152
820
+ #: templates/metaboxes/types/contactform.php:344
821
+ msgid "Select this option if the email must be valid."
822
+ msgstr "Selecciona esta opción si el email debe ser válido."
823
+
824
+ #: templates/metaboxes/types/contactform.php:157
825
+ #: templates/metaboxes/types/contactform.php:349
826
+ msgid "Reply To"
827
+ msgstr "Responder a"
828
+
829
+ #: templates/metaboxes/types/contactform.php:161
830
+ #: templates/metaboxes/types/contactform.php:353
831
+ msgid "Select this if it is the email you can reply to."
832
+ msgstr "Selecciona si este es el email al que puedes responder."
833
+
834
+ #: templates/metaboxes/types/contactform.php:166
835
+ #: templates/metaboxes/types/contactform.php:358
836
+ msgid "Class"
837
+ msgstr "Clase"
838
+
839
+ #: templates/metaboxes/types/contactform.php:170
840
+ #: templates/metaboxes/types/contactform.php:362
841
+ msgid "Insert additional class(es) (separated by commas) for more personalization."
842
+ msgstr "Inserta clase(s) adicionales (separados por comas) para más personalización."
843
+
844
+ #: templates/metaboxes/types/contactform.php:175
845
+ #: templates/metaboxes/types/contactform.php:367
846
+ msgid "Icon"
847
+ msgstr "Icono"
848
+
849
+ #: templates/metaboxes/types/contactform.php:203
850
+ #: templates/metaboxes/types/contactform.php:391
851
+ #: templates/metaboxes/types/icon-list.php:69
852
+ #: templates/metaboxes/types/select-icon.php:33
853
+ #: templates/metaboxes/types/upload.php:21 templates/panel/types/upload.php:31
854
+ #: templates/panel/woocommerce/woocommerce-upload.php:40
855
+ msgid "Upload"
856
+ msgstr "Actualiza"
857
+
858
+ #: templates/metaboxes/types/contactform.php:209
859
+ #: templates/metaboxes/types/contactform.php:397
860
+ #: templates/metaboxes/types/icon-list.php:75
861
+ #: templates/metaboxes/types/select-icon.php:39
862
+ msgid "Image preview"
863
+ msgstr "Previsualización de imagen"
864
+
865
+ #: templates/metaboxes/types/contactform.php:217
866
+ #: templates/metaboxes/types/contactform.php:405
867
+ msgid "Insert an icon for more personalization."
868
+ msgstr "Inserta un icono para más personalización"
869
+
870
+ #: templates/metaboxes/types/contactform.php:222
871
+ #: templates/metaboxes/types/contactform.php:409
872
+ msgid "Width"
873
+ msgstr "Ancho"
874
+
875
+ #: templates/metaboxes/types/contactform.php:247
876
+ #: templates/metaboxes/types/contactform.php:421
877
+ msgid "Set field length."
878
+ msgstr "Establecer el ancho de campo"
879
+
880
+ #: templates/metaboxes/types/customtabs.php:28
881
+ msgid "Close all"
882
+ msgstr "Cerrar todos"
883
+
884
+ #: templates/metaboxes/types/customtabs.php:28
885
+ msgid "Expand all"
886
+ msgstr "Expandir todos"
887
+
888
+ #: templates/metaboxes/types/customtabs.php:52
889
+ #: templates/metaboxes/types/customtabs.php:95
890
+ msgid "Value"
891
+ msgstr "Valor"
892
+
893
+ #: templates/metaboxes/types/customtabs.php:53
894
+ #: templates/metaboxes/types/customtabs.php:96
895
+ msgid "Content of the tab. (HTML is supported)"
896
+ msgstr "Contenido de la pestaña. (HTML se soporta)"
897
+
898
+ #: templates/metaboxes/types/customtabs.php:65
899
+ msgid "Add custom product tab"
900
+ msgstr "Añadir etiqueta de producto personalizado"
901
+
902
+ #: templates/metaboxes/types/customtabs.php:107
903
+ msgid "Do you want to remove the custom tab?"
904
+ msgstr "¿Quieres borrar la etiqueta personalizada?"
905
+
906
+ #: templates/metaboxes/types/icon-list.php:89
907
+ #, php-format
908
+ msgid "(Default: %s <img src=\"%s\"/>)"
909
+ msgstr "(Por defecto: %s <img src=\"%s\"/>)"
910
+
911
+ #: templates/metaboxes/types/icon-list.php:91
912
+ #, php-format
913
+ msgid "(Default: <i %s></i> )"
914
+ msgstr "(Por defecto: <i %s></i> )"
915
+
916
+ #: templates/metaboxes/types/image-gallery.php:40
917
+ #: templates/metaboxes/types/image-gallery.php:45
918
+ #: templates/metaboxes/types/images.php:38 templates/metaboxes/types/images.php:64
919
+ msgid "Delete image"
920
+ msgstr "Borrar imagen"
921
+
922
+ #: templates/metaboxes/types/image-gallery.php:45
923
+ msgid "Add Images to Gallery"
924
+ msgstr "Añadir imágenes a la Galería"
925
+
926
+ #: templates/metaboxes/types/image-gallery.php:45
927
+ msgid "Add to gallery"
928
+ msgstr "Añadir a la galería"
929
+
930
+ #: templates/metaboxes/types/image-gallery.php:45
931
+ msgid "Add images"
932
+ msgstr "Añadir imágenes"
933
+
934
+ #: templates/metaboxes/types/image-gallery.php:45
935
+ msgid "Delete"
936
+ msgstr "Borrar"
937
+
938
+ #: templates/metaboxes/types/images.php:42
939
+ msgid "Upload new images"
940
+ msgstr "Cargar nuevas imágenes"
941
+
942
+ #: templates/metaboxes/types/images.php:75
943
+ msgid "Are you sure you want to remove this image?"
944
+ msgstr "¿Estás seguro/a de que quieres borrar esta imagen?"
945
+
946
+ #: templates/metaboxes/types/sidebar-layout.php:25
947
+ #: templates/metaboxes/types/sidebars.php:36
948
+ msgid "Left sidebar"
949
+ msgstr "Barra lateral izquierda"
950
+
951
+ #: templates/metaboxes/types/sidebar-layout.php:28
952
+ #: templates/metaboxes/types/sidebars.php:42
953
+ #: templates/metaboxes/types/sidebars.php:45
954
+ msgid "No sidebar"
955
+ msgstr "Sin barra lateral"
956
+
957
+ #: templates/metaboxes/types/sidebar-layout.php:31
958
+ #: templates/metaboxes/types/sidebars.php:39
959
+ msgid "Right sidebar"
960
+ msgstr "Barra lateral derecha"
961
+
962
+ #: templates/metaboxes/types/sidebar-layout.php:34
963
+ #: templates/metaboxes/types/sidebars.php:53
964
+ #: templates/metaboxes/types/sidebars.php:64
965
+ msgid "Choose a sidebar"
966
+ msgstr "Elige una barra lateral"
967
+
968
+ #: templates/metaboxes/types/sidebars.php:51
969
+ msgid "Left Sidebar"
970
+ msgstr "Barra lateral izquierda"
971
+
972
+ #: templates/metaboxes/types/sidebars.php:62
973
+ msgid "Right Sidebar"
974
+ msgstr "Barra lateral derecha"
975
+
976
+ #: templates/metaboxes/types/typography.php:42
977
+ msgid "px"
978
+ msgstr "px"
979
+
980
+ #: templates/metaboxes/types/typography.php:43
981
+ msgid "em"
982
+ msgstr "em"
983
+
984
+ #: templates/metaboxes/types/typography.php:44
985
+ msgid "pt"
986
+ msgstr "pt"
987
+
988
+ #: templates/metaboxes/types/typography.php:45
989
+ msgid "rem"
990
+ msgstr "rem"
991
+
992
+ #: templates/metaboxes/types/typography.php:59
993
+ #: templates/metaboxes/types/typography.php:153
994
+ #: templates/metaboxes/types/typography.php:217
995
+ msgid "Web fonts"
996
+ msgstr "Fuentes web"
997
+
998
+ #: templates/metaboxes/types/typography.php:71
999
+ msgid "Google fonts"
1000
+ msgstr "Fuentes Google"
1001
+
1002
+ #: templates/metaboxes/types/typography.php:96
1003
+ msgid "Regular"
1004
+ msgstr "Normal"
1005
+
1006
+ #: templates/metaboxes/types/typography.php:97
1007
+ msgid "Bold"
1008
+ msgstr "Negrita"
1009
+
1010
+ #: templates/metaboxes/types/typography.php:98
1011
+ msgid "Extra bold"
1012
+ msgstr "Extra negrita"
1013
+
1014
+ #: templates/metaboxes/types/typography.php:99
1015
+ msgid "Italic"
1016
+ msgstr "Cursiva"
1017
+
1018
+ #: templates/metaboxes/types/typography.php:100
1019
+ msgid "Italic bold"
1020
+ msgstr "Cursiva negrita"
1021
+
1022
+ #: templates/panel/sidebar/widgets/widgets.php:17
1023
+ msgid "Join the club"
1024
+ msgstr "Únete al club"
1025
+
1026
+ #: templates/panel/sidebar/widgets/widgets.php:24
1027
+ msgid "Despacho Theme - 100% FREE"
1028
+ msgstr "Despacho Theme - 100% GRATIS"
1029
+
1030
+ #: templates/panel/sidebar/widgets/widgets.php:28
1031
+ msgid "FREE!"
1032
+ msgstr "¡GRATIS!"
1033
+
1034
+ #: templates/panel/sidebar/widgets/widgets.php:34
1035
+ msgid "Important Links"
1036
+ msgstr "Enlaces importantes"
1037
+
1038
+ #: templates/panel/types/upload.php:32
1039
+ msgid "Reset"
1040
+ msgstr "Reinicia"
1041
+
1042
+ #: templates/panel/woocommerce/woocommerce-form.php:17
1043
+ msgid "Reset Defaults"
1044
+ msgstr "Ajustes predeterminados"
1045
+
1046
+ #: templates/upgrade/upgrade-to-pro-version.php:2
1047
+ msgid "Upgrade to Premium Version"
1048
+ msgstr "Actualizar a la Versión Premium"
1049
+
1050
+ #: templates/upgrade/upgrade-to-pro-version.php:3
1051
+ msgid ""
1052
+ "Have you purchased the premium version of a plugin? Don't you know how to activate "
1053
+ "the license after the purchase?"
1054
+ msgstr ""
1055
+ "¿Has comprado la versión premium de un plugin? ¿No sabes cómo activar la licencia "
1056
+ "después de la compra?"
1057
+
1058
+ #: templates/upgrade/upgrade-to-pro-version.php:5
1059
+ msgid ""
1060
+ "To upgrade from a FREE to a PREMIUM plugin is not suffice to insert the license "
1061
+ "key provided after the purchase.\n"
1062
+ " The reason is that they are two distinct products, with significant "
1063
+ "differences both for available options and for number of files included in the "
1064
+ "plugin package.\n"
1065
+ " To start to use the PREMIUM version of the plugin, you simply need to "
1066
+ "download the PREMIUM packet and install it on your site."
1067
+ msgstr ""
1068
+ "Para actualizar a del plugin FREE al PREMIUMT no es suficiente con insertar la "
1069
+ "clave de licencia proporcionada después de la compra.\n"
1070
+ " La razón es que son dos productos diferentes, con diferencias "
1071
+ "significativas en las opciones disponibles para el número de archivos incluidos en "
1072
+ "el paquete del plugin.\n"
1073
+ " Para empezar a usar la versión PREMIUM del plugin, simplemente necesitas "
1074
+ "descargar el paquete PREMIUM e instalarlo en tu sitio web."
1075
+
1076
+ #: templates/upgrade/upgrade-to-pro-version.php:9
1077
+ #, php-format
1078
+ msgid ""
1079
+ "%1$sDo you need to know how to do it?%2$s Easy! %1$sFollow this list of steps%2$s "
1080
+ "and in a few minutes the plugin you purchased will be installed on your site"
1081
+ msgstr ""
1082
+ "%1$s¿Necesitas saber cómo hacerlo?%2$s ¡Fácil! %1$sSigue estos pasos%2$s y en unos "
1083
+ "minutos el plugin que has comprado estará instalado en tu sitio web"
1084
+
1085
+ #: templates/upgrade/upgrade-to-pro-version.php:12
1086
+ msgid "Go to yithemes.com and login to \"My Account\" page"
1087
+ msgstr "Ve a yithemes.com e inicia sesión en la página \"Mi cuenta\""
1088
+
1089
+ #: templates/upgrade/upgrade-to-pro-version.php:18
1090
+ msgid ""
1091
+ "From the menu on the left, click on \"My Downloads\", look for the plugin you want "
1092
+ "to install among the available downloads and click on \"Download\" button"
1093
+ msgstr ""
1094
+ "Desde el menú de la izquierda, haz click en \"Mis Descargas\", busca el plugin que "
1095
+ "te quieres descargar entre las descargas disponibles y haz click en el botón "
1096
+ "\"Descargar\""
1097
+
1098
+ #: templates/upgrade/upgrade-to-pro-version.php:24
1099
+ msgid ""
1100
+ "After downloading the packet, go to your website and login to WordPress "
1101
+ "administration area."
1102
+ msgstr ""
1103
+ "Después de descargar el paquete, ve a tu sitio web y regístrate en el área de "
1104
+ "administración de WordPress."
1105
+
1106
+ #: templates/upgrade/upgrade-to-pro-version.php:30
1107
+ msgid ""
1108
+ "From the menu on the left, click on \"Plugins\". You will be redirected to the "
1109
+ "page where you will find the complete list of all the plugins available on your "
1110
+ "site. Click on \"Add New\" button that you find above on the left to add a new "
1111
+ "plugin"
1112
+ msgstr ""
1113
+ "Desde el menú de la izquierda, haz click en \"Plugins\". Serás redirigido/a a la "
1114
+ "página donde podrás encontrar la lista completa de plugins disponible en tu sitio "
1115
+ "web. Haz click en el botón \"Añadir Nuevo\" que encontrarás arriba a la izquierda "
1116
+ "para añadir un nuevo plugin"
1117
+
1118
+ #: templates/upgrade/upgrade-to-pro-version.php:36
1119
+ msgid ""
1120
+ "You will be redirected to a new page where you will find, above on the left next "
1121
+ "to the page title, the \"Upload Plugin\" button."
1122
+ msgstr ""
1123
+ "Serás redirigido/a a una nueva página donde encontrarás, en la parte superior "
1124
+ "izquierda, junto al título de la página, el botón \"Actualizar Plugin\""
1125
+
1126
+ #: templates/upgrade/upgrade-to-pro-version.php:42
1127
+ msgid ""
1128
+ "Click on \"Upload Plugins\" button to start the upload of the PREMIUM version of "
1129
+ "the plugin previously downloaded. Click on \"Select File\", search for the "
1130
+ "download folder related to the plugin and upload the package. Now you only need to "
1131
+ "wait a few minutes for the upload and the installation on your site. (We used YITH "
1132
+ "Live Chat plugin by way of example)"
1133
+ msgstr ""
1134
+ "Haz click en el botón \"Actualizar Plugins\" para actualizar la versión premium "
1135
+ "del plugin anteriormente descargada. Haz click en \"Seleccionar Archivo\", busca "
1136
+ "la carpeta relacionada al plugin y actualiza el paquete. Ahora sólo necesitas "
1137
+ "esperar unos minutos para actualizarlo e instalarlo en tu sitio web. (Usamos YITH "
1138
+ "Live Chat a modo de ejemplo)"
1139
+
1140
+ #: templates/upgrade/upgrade-to-pro-version.php:48
1141
+ msgid "After completing the installation, click on \"Activate plugin\""
1142
+ msgstr "Después de completar la instalación, haz click en \"Activar plugin\""
1143
+
1144
+ #: templates/upgrade/upgrade-to-pro-version.php:52
1145
+ msgid ""
1146
+ "If everything worked allright, your plugin is now correctly installed on your "
1147
+ "website. Enjoy it :-)"
1148
+ msgstr ""
1149
+ "Si todo funcionó bien, tu plugin está ahora correctamente instalado en tu sitio "
1150
+ "web. Disfrútalo :-)"
1151
+
1152
+ #: templates/upgrade/upgrade-to-pro-version.php:55
1153
+ msgid ""
1154
+ "The last step is the activation of the plugin through its license key you received "
1155
+ "after the purchase. Click on \"License Activation\" that you find in \"YITH Plugins"
1156
+ "\" and insert the license key and the email address you used during the purchase."
1157
+ msgstr ""
1158
+ "El último paso es la activación del plugin a través de la clave de licencia, que "
1159
+ "recibiste después de la compra. Haz click en \"Activación de la licencia\", que "
1160
+ "encontrarás en \"YITH Plugins\" e introduce la dirección de email que usaste "
1161
+ "durante la compra."
1162
+
1163
+ #: templates/upgrade/upgrade-to-pro-version.php:61
1164
+ msgid ""
1165
+ "In case you had difficulty to recover the license key we sent you by email, you "
1166
+ "can easily find it in \"My Licenses\" section of your account on yithemes.com"
1167
+ msgstr ""
1168
+ "En caso de que hayas tenido dificultad para recuperar la clave de licencia que te "
1169
+ "enviamos por email, puedes encontrarla fácilmente en la sección \"Mis Licencias\" "
1170
+ "de tu cuenta en yithemes.com"
plugin-fw/languages/yith-plugin-fw-it_IT.mo CHANGED
Binary file
plugin-fw/languages/yith-plugin-fw-it_IT.po CHANGED
@@ -4,21 +4,21 @@ msgid ""
4
  msgstr ""
5
  "Project-Id-Version: YITH Plugin Starter 1.0.0 Plugin FW\n"
6
  "Report-Msgid-Bugs-To: Your Inspiration Themes <plugins@yithemes.com>\n"
7
- "POT-Creation-Date: 2016-03-18 15:29+0100\n"
8
- "PO-Revision-Date: 2016-03-18 15:34+0100\n"
9
  "Last-Translator: \n"
10
  "Language-Team: YIThemes <plugins@yithemes.com>\n"
11
  "Language: it_IT\n"
12
  "MIME-Version: 1.0\n"
13
  "Content-Type: text/plain; charset=UTF-8\n"
14
  "Content-Transfer-Encoding: 8bit\n"
15
- "X-Generator: Poedit 1.8.1\n"
16
  "X-Poedit-KeywordsList: __;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;"
17
  "_nx_noop:1,2,3c;esc_attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;"
18
  "esc_html_x:1,2c\n"
19
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
20
  "X-Poedit-SourceCharset: UTF-8\n"
21
- "X-Poedit-Basepath: ../\n"
22
  "X-Textdomain-Support: yes\n"
23
  "X-Poedit-SearchPath-0: .\n"
24
 
@@ -127,7 +127,7 @@ msgid "%s Settings"
127
  msgstr "Impostazioni %s"
128
 
129
  #: lib/yit-cpt-unlimited.php:1048 lib/yit-cpt-unlimited.php:1196
130
- #: lib/yit-cpt-unlimited.php:1202 lib/yit-plugin-panel.php:64
131
  msgid "Settings"
132
  msgstr "Impostazioni"
133
 
@@ -224,79 +224,83 @@ msgstr "Aggiungi %s dalla immagini"
224
  msgid "Upload multiple files"
225
  msgstr ""
226
 
227
- #: lib/yit-plugin-panel-wc.php:345
 
 
 
 
 
 
 
 
228
  msgid "The changes you have made will be lost if you leave this page."
229
  msgstr "Perderai tutti i cambiamenti effettuati se lasci questa pagina."
230
 
231
- #: lib/yit-plugin-panel.php:63
232
  msgid "Plugin Settings"
233
  msgstr "Impostazioni plugin"
234
 
235
- #: lib/yit-plugin-panel.php:99 lib/yit-plugin-subpanel.php:103
236
- msgid "YITH Plugins"
237
- msgstr "YITH Plugins"
238
-
239
- #: lib/yit-plugin-panel.php:276
240
  msgid "Premium version upgrade"
241
  msgstr ""
242
 
243
- #: lib/yit-plugin-panel.php:322 lib/yit-plugin-subpanel.php:146
244
- #: templates/panel/woocommerce/woocommerce-form.php:5
245
  msgid "Save Changes"
246
  msgstr "Salva modifiche"
247
 
248
- #: lib/yit-plugin-panel.php:325 templates/panel/woocommerce/woocommerce-form.php:8
249
  msgid "If you continue with this action, you will reset all options in this page."
250
  msgstr ""
251
  "Se prosegui con questa azione, tutte le opzioni di questa pagina saranno "
252
  "reimpostate."
253
 
254
- #: lib/yit-plugin-panel.php:327 lib/yit-plugin-subpanel.php:151
255
  msgid "Reset to default"
256
  msgstr ""
257
 
258
- #: lib/yit-plugin-panel.php:327 lib/yit-plugin-subpanel.php:151
259
- #: templates/panel/woocommerce/woocommerce-form.php:11
260
  msgid "Are you sure?"
261
  msgstr "Sei sicuro?"
262
 
263
- #: lib/yit-plugin-panel.php:461
264
  msgid "The element you have entered already exists. Please, enter another name."
265
  msgstr "L'elemento inserito esiste già. Per favore, inserisci un altro nome."
266
 
267
- #: lib/yit-plugin-panel.php:462
268
  msgid "Settings saved"
269
  msgstr "Impostazioni salvate"
270
 
271
- #: lib/yit-plugin-panel.php:463
272
  msgid "Settings reset"
273
  msgstr "Impostazioni azzerate"
274
 
275
- #: lib/yit-plugin-panel.php:464
276
  msgid "Element deleted correctly."
277
  msgstr "Elemento rimosso correttamente."
278
 
279
- #: lib/yit-plugin-panel.php:465 lib/yit-plugin-panel.php:466
280
  msgid "Element updated correctly."
281
  msgstr "Elemento aggiornato correttamente."
282
 
283
- #: lib/yit-plugin-panel.php:467
284
  msgid "Database imported correctly."
285
  msgstr "Database importato correttamente."
286
 
287
- #: lib/yit-plugin-panel.php:468
288
  msgid "An error has occurred during import. Please try again."
289
  msgstr "Si è verificato un errore durante l'importazione. Prova di nuovo."
290
 
291
- #: lib/yit-plugin-panel.php:469
292
  msgid "The added file is not valid."
293
  msgstr "Il file aggiunto non è valido."
294
 
295
- #: lib/yit-plugin-panel.php:470
296
  msgid "Sorry, import is disabled."
297
  msgstr "Ci dispiace, l'importazione è disabilitata."
298
 
299
- #: lib/yit-plugin-panel.php:471
300
  msgid "Sorting successful."
301
  msgstr "Ordinamento effettuato con successo."
302
 
@@ -1003,11 +1007,27 @@ msgstr "Corsivo"
1003
  msgid "Italic bold"
1004
  msgstr "Grassetto corsivo"
1005
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1006
  #: templates/panel/types/upload.php:32
1007
  msgid "Reset"
1008
  msgstr ""
1009
 
1010
- #: templates/panel/woocommerce/woocommerce-form.php:11
1011
  msgid "Reset Defaults"
1012
  msgstr "Ripristina impostazioni iniziali"
1013
 
@@ -1121,12 +1141,8 @@ msgstr ""
1121
  msgid ""
1122
  "The last step is the activation of the plugin through its license key you received "
1123
  "after the purchase. Click on \"License Activation\" that you find in \"YITH Plugins"
1124
- "\" and insert the license key and the email address you used during the purchas."
1125
  msgstr ""
1126
- "Ultimo step è attivare il plugin con la chiave di licenza che hai ricevuto dopo "
1127
- "l'acquisto. Clicca quindi sul link \"License Activation\" che trovi sotto \"YITH "
1128
- "Plugins\" ed inserisci la license key in tuo possesso ed email utilizzata in fase "
1129
- "di acquisto."
1130
 
1131
  #: templates/upgrade/upgrade-to-pro-version.php:61
1132
  msgid ""
@@ -1137,6 +1153,20 @@ msgstr ""
1137
  "facilmente recuperarla dalla sezione \"My Licenses\" all'interno della sezione My "
1138
  "Account del nostro sito yithemes.com."
1139
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1140
  #~ msgid "YIT Plugins"
1141
  #~ msgstr "YIT Plugins"
1142
 
4
  msgstr ""
5
  "Project-Id-Version: YITH Plugin Starter 1.0.0 Plugin FW\n"
6
  "Report-Msgid-Bugs-To: Your Inspiration Themes <plugins@yithemes.com>\n"
7
+ "POT-Creation-Date: 2016-05-16 16:37+0200\n"
8
+ "PO-Revision-Date: 2016-05-16 16:37+0200\n"
9
  "Last-Translator: \n"
10
  "Language-Team: YIThemes <plugins@yithemes.com>\n"
11
  "Language: it_IT\n"
12
  "MIME-Version: 1.0\n"
13
  "Content-Type: text/plain; charset=UTF-8\n"
14
  "Content-Transfer-Encoding: 8bit\n"
15
+ "X-Generator: Poedit 1.8.4\n"
16
  "X-Poedit-KeywordsList: __;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;"
17
  "_nx_noop:1,2,3c;esc_attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;"
18
  "esc_html_x:1,2c\n"
19
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
20
  "X-Poedit-SourceCharset: UTF-8\n"
21
+ "X-Poedit-Basepath: ..\n"
22
  "X-Textdomain-Support: yes\n"
23
  "X-Poedit-SearchPath-0: .\n"
24
 
127
  msgstr "Impostazioni %s"
128
 
129
  #: lib/yit-cpt-unlimited.php:1048 lib/yit-cpt-unlimited.php:1196
130
+ #: lib/yit-cpt-unlimited.php:1202 lib/yit-plugin-panel.php:74
131
  msgid "Settings"
132
  msgstr "Impostazioni"
133
 
224
  msgid "Upload multiple files"
225
  msgstr ""
226
 
227
+ #: lib/yit-plugin-panel-sidebar.php:421 templates/panel/sidebar/sidebar.php:3
228
+ msgid "Hide sidebar"
229
+ msgstr ""
230
+
231
+ #: lib/yit-plugin-panel-sidebar.php:422 templates/panel/sidebar/sidebar.php:3
232
+ msgid "Show sidebar"
233
+ msgstr ""
234
+
235
+ #: lib/yit-plugin-panel-wc.php:359
236
  msgid "The changes you have made will be lost if you leave this page."
237
  msgstr "Perderai tutti i cambiamenti effettuati se lasci questa pagina."
238
 
239
+ #: lib/yit-plugin-panel.php:73
240
  msgid "Plugin Settings"
241
  msgstr "Impostazioni plugin"
242
 
243
+ #: lib/yit-plugin-panel.php:293
 
 
 
 
244
  msgid "Premium version upgrade"
245
  msgstr ""
246
 
247
+ #: lib/yit-plugin-panel.php:344 lib/yit-plugin-subpanel.php:146
248
+ #: templates/panel/woocommerce/woocommerce-form.php:11
249
  msgid "Save Changes"
250
  msgstr "Salva modifiche"
251
 
252
+ #: lib/yit-plugin-panel.php:347 templates/panel/woocommerce/woocommerce-form.php:14
253
  msgid "If you continue with this action, you will reset all options in this page."
254
  msgstr ""
255
  "Se prosegui con questa azione, tutte le opzioni di questa pagina saranno "
256
  "reimpostate."
257
 
258
+ #: lib/yit-plugin-panel.php:349 lib/yit-plugin-subpanel.php:151
259
  msgid "Reset to default"
260
  msgstr ""
261
 
262
+ #: lib/yit-plugin-panel.php:349 lib/yit-plugin-subpanel.php:151
263
+ #: templates/panel/woocommerce/woocommerce-form.php:18
264
  msgid "Are you sure?"
265
  msgstr "Sei sicuro?"
266
 
267
+ #: lib/yit-plugin-panel.php:545
268
  msgid "The element you have entered already exists. Please, enter another name."
269
  msgstr "L'elemento inserito esiste già. Per favore, inserisci un altro nome."
270
 
271
+ #: lib/yit-plugin-panel.php:546
272
  msgid "Settings saved"
273
  msgstr "Impostazioni salvate"
274
 
275
+ #: lib/yit-plugin-panel.php:547
276
  msgid "Settings reset"
277
  msgstr "Impostazioni azzerate"
278
 
279
+ #: lib/yit-plugin-panel.php:548
280
  msgid "Element deleted correctly."
281
  msgstr "Elemento rimosso correttamente."
282
 
283
+ #: lib/yit-plugin-panel.php:549 lib/yit-plugin-panel.php:550
284
  msgid "Element updated correctly."
285
  msgstr "Elemento aggiornato correttamente."
286
 
287
+ #: lib/yit-plugin-panel.php:551
288
  msgid "Database imported correctly."
289
  msgstr "Database importato correttamente."
290
 
291
+ #: lib/yit-plugin-panel.php:552
292
  msgid "An error has occurred during import. Please try again."
293
  msgstr "Si è verificato un errore durante l'importazione. Prova di nuovo."
294
 
295
+ #: lib/yit-plugin-panel.php:553
296
  msgid "The added file is not valid."
297
  msgstr "Il file aggiunto non è valido."
298
 
299
+ #: lib/yit-plugin-panel.php:554
300
  msgid "Sorry, import is disabled."
301
  msgstr "Ci dispiace, l'importazione è disabilitata."
302
 
303
+ #: lib/yit-plugin-panel.php:555
304
  msgid "Sorting successful."
305
  msgstr "Ordinamento effettuato con successo."
306
 
1007
  msgid "Italic bold"
1008
  msgstr "Grassetto corsivo"
1009
 
1010
+ #: templates/panel/sidebar/widgets/widgets.php:17
1011
+ msgid "Join the club"
1012
+ msgstr ""
1013
+
1014
+ #: templates/panel/sidebar/widgets/widgets.php:24
1015
+ msgid "Despacho Theme - 100% FREE"
1016
+ msgstr ""
1017
+
1018
+ #: templates/panel/sidebar/widgets/widgets.php:28
1019
+ msgid "FREE!"
1020
+ msgstr ""
1021
+
1022
+ #: templates/panel/sidebar/widgets/widgets.php:34
1023
+ msgid "Important Links"
1024
+ msgstr ""
1025
+
1026
  #: templates/panel/types/upload.php:32
1027
  msgid "Reset"
1028
  msgstr ""
1029
 
1030
+ #: templates/panel/woocommerce/woocommerce-form.php:17
1031
  msgid "Reset Defaults"
1032
  msgstr "Ripristina impostazioni iniziali"
1033
 
1141
  msgid ""
1142
  "The last step is the activation of the plugin through its license key you received "
1143
  "after the purchase. Click on \"License Activation\" that you find in \"YITH Plugins"
1144
+ "\" and insert the license key and the email address you used during the purchase."
1145
  msgstr ""
 
 
 
 
1146
 
1147
  #: templates/upgrade/upgrade-to-pro-version.php:61
1148
  msgid ""
1153
  "facilmente recuperarla dalla sezione \"My Licenses\" all'interno della sezione My "
1154
  "Account del nostro sito yithemes.com."
1155
 
1156
+ #~ msgid "YITH Plugins"
1157
+ #~ msgstr "YITH Plugins"
1158
+
1159
+ #~ msgid ""
1160
+ #~ "The last step is the activation of the plugin through its license key you "
1161
+ #~ "received after the purchase. Click on \"License Activation\" that you find in "
1162
+ #~ "\"YITH Plugins\" and insert the license key and the email address you used "
1163
+ #~ "during the purchas."
1164
+ #~ msgstr ""
1165
+ #~ "Ultimo step è attivare il plugin con la chiave di licenza che hai ricevuto dopo "
1166
+ #~ "l'acquisto. Clicca quindi sul link \"License Activation\" che trovi sotto "
1167
+ #~ "\"YITH Plugins\" ed inserisci la license key in tuo possesso ed email "
1168
+ #~ "utilizzata in fase di acquisto."
1169
+
1170
  #~ msgid "YIT Plugins"
1171
  #~ msgstr "YIT Plugins"
1172
 
plugin-fw/languages/yith-plugin-fw.pot CHANGED
@@ -5,7 +5,7 @@ msgid ""
5
  msgstr ""
6
  "Project-Id-Version: YITH Plugin Starter 1.0.0 Plugin FW\n"
7
  "Report-Msgid-Bugs-To: Your Inspiration Themes <plugins@yithemes.com>\n"
8
- "POT-Creation-Date: 2016-03-07 15:11+0100\n"
9
  "PO-Revision-Date: 2015-05-05 10:38+0100\n"
10
  "Last-Translator: \n"
11
  "Language-Team: Your Inspiration Themes <info@yithemes.com>\n"
@@ -13,13 +13,13 @@ msgstr ""
13
  "MIME-Version: 1.0\n"
14
  "Content-Type: text/plain; charset=utf-8\n"
15
  "Content-Transfer-Encoding: 8bit\n"
16
- "X-Generator: Poedit 1.8.1\n"
17
  "X-Poedit-KeywordsList: __;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;"
18
  "_nx_noop:1,2,3c;esc_attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;"
19
  "esc_html_x:1,2c\n"
20
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
21
  "X-Poedit-SourceCharset: UTF-8\n"
22
- "X-Poedit-Basepath: ../\n"
23
  "X-Textdomain-Support: yes\n"
24
  "X-Poedit-SearchPath-0: .\n"
25
 
@@ -128,7 +128,7 @@ msgid "%s Settings"
128
  msgstr ""
129
 
130
  #: lib/yit-cpt-unlimited.php:1048 lib/yit-cpt-unlimited.php:1196
131
- #: lib/yit-cpt-unlimited.php:1202 lib/yit-plugin-panel.php:64
132
  msgid "Settings"
133
  msgstr ""
134
 
@@ -220,73 +220,81 @@ msgstr ""
220
  msgid "Upload multiple files"
221
  msgstr ""
222
 
223
- #: lib/yit-plugin-panel-wc.php:341
 
 
 
 
 
 
 
 
224
  msgid "The changes you have made will be lost if you leave this page."
225
  msgstr ""
226
 
227
- #: lib/yit-plugin-panel.php:63
228
  msgid "Plugin Settings"
229
  msgstr ""
230
 
231
- #: lib/yit-plugin-panel.php:99 lib/yit-plugin-subpanel.php:103
232
- msgid "YITH Plugins"
233
  msgstr ""
234
 
235
- #: lib/yit-plugin-panel.php:297 lib/yit-plugin-subpanel.php:146
236
- #: templates/panel/woocommerce/woocommerce-form.php:5
237
  msgid "Save Changes"
238
  msgstr ""
239
 
240
- #: lib/yit-plugin-panel.php:300 templates/panel/woocommerce/woocommerce-form.php:8
241
  msgid "If you continue with this action, you will reset all options in this page."
242
  msgstr ""
243
 
244
- #: lib/yit-plugin-panel.php:302 lib/yit-plugin-subpanel.php:151
245
  msgid "Reset to default"
246
  msgstr ""
247
 
248
- #: lib/yit-plugin-panel.php:302 lib/yit-plugin-subpanel.php:151
249
- #: templates/panel/woocommerce/woocommerce-form.php:11
250
  msgid "Are you sure?"
251
  msgstr ""
252
 
253
- #: lib/yit-plugin-panel.php:436
254
  msgid "The element you have entered already exists. Please, enter another name."
255
  msgstr ""
256
 
257
- #: lib/yit-plugin-panel.php:437
258
  msgid "Settings saved"
259
  msgstr ""
260
 
261
- #: lib/yit-plugin-panel.php:438
262
  msgid "Settings reset"
263
  msgstr ""
264
 
265
- #: lib/yit-plugin-panel.php:439
266
  msgid "Element deleted correctly."
267
  msgstr ""
268
 
269
- #: lib/yit-plugin-panel.php:440 lib/yit-plugin-panel.php:441
270
  msgid "Element updated correctly."
271
  msgstr ""
272
 
273
- #: lib/yit-plugin-panel.php:442
274
  msgid "Database imported correctly."
275
  msgstr ""
276
 
277
- #: lib/yit-plugin-panel.php:443
278
  msgid "An error has occurred during import. Please try again."
279
  msgstr ""
280
 
281
- #: lib/yit-plugin-panel.php:444
282
  msgid "The added file is not valid."
283
  msgstr ""
284
 
285
- #: lib/yit-plugin-panel.php:445
286
  msgid "Sorry, import is disabled."
287
  msgstr ""
288
 
289
- #: lib/yit-plugin-panel.php:446
290
  msgid "Sorting successful."
291
  msgstr ""
292
 
@@ -961,10 +969,116 @@ msgstr ""
961
  msgid "Italic bold"
962
  msgstr ""
963
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
964
  #: templates/panel/types/upload.php:32
965
  msgid "Reset"
966
  msgstr ""
967
 
968
- #: templates/panel/woocommerce/woocommerce-form.php:11
969
  msgid "Reset Defaults"
970
  msgstr ""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  msgstr ""
6
  "Project-Id-Version: YITH Plugin Starter 1.0.0 Plugin FW\n"
7
  "Report-Msgid-Bugs-To: Your Inspiration Themes <plugins@yithemes.com>\n"
8
+ "POT-Creation-Date: 2016-05-16 16:37+0200\n"
9
  "PO-Revision-Date: 2015-05-05 10:38+0100\n"
10
  "Last-Translator: \n"
11
  "Language-Team: Your Inspiration Themes <info@yithemes.com>\n"
13
  "MIME-Version: 1.0\n"
14
  "Content-Type: text/plain; charset=utf-8\n"
15
  "Content-Transfer-Encoding: 8bit\n"
16
+ "X-Generator: Poedit 1.8.4\n"
17
  "X-Poedit-KeywordsList: __;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;"
18
  "_nx_noop:1,2,3c;esc_attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;"
19
  "esc_html_x:1,2c\n"
20
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
21
  "X-Poedit-SourceCharset: UTF-8\n"
22
+ "X-Poedit-Basepath: ..\n"
23
  "X-Textdomain-Support: yes\n"
24
  "X-Poedit-SearchPath-0: .\n"
25
 
128
  msgstr ""
129
 
130
  #: lib/yit-cpt-unlimited.php:1048 lib/yit-cpt-unlimited.php:1196
131
+ #: lib/yit-cpt-unlimited.php:1202 lib/yit-plugin-panel.php:74
132
  msgid "Settings"
133
  msgstr ""
134
 
220
  msgid "Upload multiple files"
221
  msgstr ""
222
 
223
+ #: lib/yit-plugin-panel-sidebar.php:421 templates/panel/sidebar/sidebar.php:3
224
+ msgid "Hide sidebar"
225
+ msgstr ""
226
+
227
+ #: lib/yit-plugin-panel-sidebar.php:422 templates/panel/sidebar/sidebar.php:3
228
+ msgid "Show sidebar"
229
+ msgstr ""
230
+
231
+ #: lib/yit-plugin-panel-wc.php:359
232
  msgid "The changes you have made will be lost if you leave this page."
233
  msgstr ""
234
 
235
+ #: lib/yit-plugin-panel.php:73
236
  msgid "Plugin Settings"
237
  msgstr ""
238
 
239
+ #: lib/yit-plugin-panel.php:293
240
+ msgid "Premium version upgrade"
241
  msgstr ""
242
 
243
+ #: lib/yit-plugin-panel.php:344 lib/yit-plugin-subpanel.php:146
244
+ #: templates/panel/woocommerce/woocommerce-form.php:11
245
  msgid "Save Changes"
246
  msgstr ""
247
 
248
+ #: lib/yit-plugin-panel.php:347 templates/panel/woocommerce/woocommerce-form.php:14
249
  msgid "If you continue with this action, you will reset all options in this page."
250
  msgstr ""
251
 
252
+ #: lib/yit-plugin-panel.php:349 lib/yit-plugin-subpanel.php:151
253
  msgid "Reset to default"
254
  msgstr ""
255
 
256
+ #: lib/yit-plugin-panel.php:349 lib/yit-plugin-subpanel.php:151
257
+ #: templates/panel/woocommerce/woocommerce-form.php:18
258
  msgid "Are you sure?"
259
  msgstr ""
260
 
261
+ #: lib/yit-plugin-panel.php:545
262
  msgid "The element you have entered already exists. Please, enter another name."
263
  msgstr ""
264
 
265
+ #: lib/yit-plugin-panel.php:546
266
  msgid "Settings saved"
267
  msgstr ""
268
 
269
+ #: lib/yit-plugin-panel.php:547
270
  msgid "Settings reset"
271
  msgstr ""
272
 
273
+ #: lib/yit-plugin-panel.php:548
274
  msgid "Element deleted correctly."
275
  msgstr ""
276
 
277
+ #: lib/yit-plugin-panel.php:549 lib/yit-plugin-panel.php:550
278
  msgid "Element updated correctly."
279
  msgstr ""
280
 
281
+ #: lib/yit-plugin-panel.php:551
282
  msgid "Database imported correctly."
283
  msgstr ""
284
 
285
+ #: lib/yit-plugin-panel.php:552
286
  msgid "An error has occurred during import. Please try again."
287
  msgstr ""
288
 
289
+ #: lib/yit-plugin-panel.php:553
290
  msgid "The added file is not valid."
291
  msgstr ""
292
 
293
+ #: lib/yit-plugin-panel.php:554
294
  msgid "Sorry, import is disabled."
295
  msgstr ""
296
 
297
+ #: lib/yit-plugin-panel.php:555
298
  msgid "Sorting successful."
299
  msgstr ""
300
 
969
  msgid "Italic bold"
970
  msgstr ""
971
 
972
+ #: templates/panel/sidebar/widgets/widgets.php:17
973
+ msgid "Join the club"
974
+ msgstr ""
975
+
976
+ #: templates/panel/sidebar/widgets/widgets.php:24
977
+ msgid "Despacho Theme - 100% FREE"
978
+ msgstr ""
979
+
980
+ #: templates/panel/sidebar/widgets/widgets.php:28
981
+ msgid "FREE!"
982
+ msgstr ""
983
+
984
+ #: templates/panel/sidebar/widgets/widgets.php:34
985
+ msgid "Important Links"
986
+ msgstr ""
987
+
988
  #: templates/panel/types/upload.php:32
989
  msgid "Reset"
990
  msgstr ""
991
 
992
+ #: templates/panel/woocommerce/woocommerce-form.php:17
993
  msgid "Reset Defaults"
994
  msgstr ""
995
+
996
+ #: templates/upgrade/upgrade-to-pro-version.php:2
997
+ msgid "Upgrade to Premium Version"
998
+ msgstr ""
999
+
1000
+ #: templates/upgrade/upgrade-to-pro-version.php:3
1001
+ msgid ""
1002
+ "Have you purchased the premium version of a plugin? Don't you know how to activate "
1003
+ "the license after the purchase?"
1004
+ msgstr ""
1005
+
1006
+ #: templates/upgrade/upgrade-to-pro-version.php:5
1007
+ msgid ""
1008
+ "To upgrade from a FREE to a PREMIUM plugin is not suffice to insert the license "
1009
+ "key provided after the purchase.\n"
1010
+ " The reason is that they are two distinct products, with significant "
1011
+ "differences both for available options and for number of files included in the "
1012
+ "plugin package.\n"
1013
+ " To start to use the PREMIUM version of the plugin, you simply need to "
1014
+ "download the PREMIUM packet and install it on your site."
1015
+ msgstr ""
1016
+
1017
+ #: templates/upgrade/upgrade-to-pro-version.php:9
1018
+ #, php-format
1019
+ msgid ""
1020
+ "%1$sDo you need to know how to do it?%2$s Easy! %1$sFollow this list of steps%2$s "
1021
+ "and in a few minutes the plugin you purchased will be installed on your site"
1022
+ msgstr ""
1023
+
1024
+ #: templates/upgrade/upgrade-to-pro-version.php:12
1025
+ msgid "Go to yithemes.com and login to \"My Account\" page"
1026
+ msgstr ""
1027
+
1028
+ #: templates/upgrade/upgrade-to-pro-version.php:18
1029
+ msgid ""
1030
+ "From the menu on the left, click on \"My Downloads\", look for the plugin you want "
1031
+ "to install among the available downloads and click on \"Download\" button"
1032
+ msgstr ""
1033
+
1034
+ #: templates/upgrade/upgrade-to-pro-version.php:24
1035
+ msgid ""
1036
+ "After downloading the packet, go to your website and login to WordPress "
1037
+ "administration area."
1038
+ msgstr ""
1039
+
1040
+ #: templates/upgrade/upgrade-to-pro-version.php:30
1041
+ msgid ""
1042
+ "From the menu on the left, click on \"Plugins\". You will be redirected to the "
1043
+ "page where you will find the complete list of all the plugins available on your "
1044
+ "site. Click on \"Add New\" button that you find above on the left to add a new "
1045
+ "plugin"
1046
+ msgstr ""
1047
+
1048
+ #: templates/upgrade/upgrade-to-pro-version.php:36
1049
+ msgid ""
1050
+ "You will be redirected to a new page where you will find, above on the left next "
1051
+ "to the page title, the \"Upload Plugin\" button."
1052
+ msgstr ""
1053
+
1054
+ #: templates/upgrade/upgrade-to-pro-version.php:42
1055
+ msgid ""
1056
+ "Click on \"Upload Plugins\" button to start the upload of the PREMIUM version of "
1057
+ "the plugin previously downloaded. Click on \"Select File\", search for the "
1058
+ "download folder related to the plugin and upload the package. Now you only need to "
1059
+ "wait a few minutes for the upload and the installation on your site. (We used YITH "
1060
+ "Live Chat plugin by way of example)"
1061
+ msgstr ""
1062
+
1063
+ #: templates/upgrade/upgrade-to-pro-version.php:48
1064
+ msgid "After completing the installation, click on \"Activate plugin\""
1065
+ msgstr ""
1066
+
1067
+ #: templates/upgrade/upgrade-to-pro-version.php:52
1068
+ msgid ""
1069
+ "If everything worked allright, your plugin is now correctly installed on your "
1070
+ "website. Enjoy it :-)"
1071
+ msgstr ""
1072
+
1073
+ #: templates/upgrade/upgrade-to-pro-version.php:55
1074
+ msgid ""
1075
+ "The last step is the activation of the plugin through its license key you received "
1076
+ "after the purchase. Click on \"License Activation\" that you find in \"YITH Plugins"
1077
+ "\" and insert the license key and the email address you used during the purchase."
1078
+ msgstr ""
1079
+
1080
+ #: templates/upgrade/upgrade-to-pro-version.php:61
1081
+ msgid ""
1082
+ "In case you had difficulty to recover the license key we sent you by email, you "
1083
+ "can easily find it in \"My Licenses\" section of your account on yithemes.com"
1084
+ msgstr ""
plugin-fw/lib/yit-plugin-panel-sidebar.php CHANGED
@@ -180,7 +180,7 @@ if ( !class_exists( 'YIT_Plugin_Panel_Sidebar' ) ) {
180
  $updated_expiration = DAY_IN_SECONDS; // update frequency
181
 
182
  $remote_xml = wp_remote_get( $this->_remote_widget_xml );
183
- if ( !is_wp_error( $remote_xml ) && isset( $remote_xml[ 'response' ][ 'code' ] ) && '200' == $remote_xml[ 'response' ][ 'code' ] ) {
184
  try {
185
  // suppress all XML errors when loading the document
186
  libxml_use_internal_errors( true );
180
  $updated_expiration = DAY_IN_SECONDS; // update frequency
181
 
182
  $remote_xml = wp_remote_get( $this->_remote_widget_xml );
183
+ if ( !is_wp_error( $remote_xml ) && isset( $remote_xml[ 'response' ][ 'code' ] ) && '200' == $remote_xml[ 'response' ][ 'code' ] && class_exists( 'SimpleXmlElement' ) ) {
184
  try {
185
  // suppress all XML errors when loading the document
186
  libxml_use_internal_errors( true );
plugin-fw/lib/yit-plugin-panel-wc.php CHANGED
@@ -335,24 +335,39 @@ if ( ! class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
335
  */
336
  public function admin_enqueue_scripts() {
337
  global $woocommerce, $pagenow;
 
 
338
 
339
  wp_enqueue_style( 'raleway-font', '//fonts.googleapis.com/css?family=Raleway:400,500,600,700,800,100,200,300,900' );
340
 
341
  wp_enqueue_media();
342
- wp_enqueue_style( 'woocommerce_admin_styles', $woocommerce->plugin_url() . '/assets/css/admin.css', array(), $woocommerce->version );
343
- wp_register_style( 'yit-plugin-style', YIT_CORE_PLUGIN_URL . '/assets/css/yit-plugin-panel.css', $woocommerce->version );
344
- wp_register_style( 'colorbox', YIT_CORE_PLUGIN_URL . '/assets/css/colorbox.css', array(), $woocommerce->version );
345
- wp_register_style( 'yit-upgrade-to-pro', YIT_CORE_PLUGIN_URL . '/assets/css/yit-upgrade-to-pro.css', array( 'colorbox' ), $woocommerce->version );
346
 
347
  if ( 'customize.php' != $pagenow ){
348
-
349
  wp_enqueue_style ( 'wp-jquery-ui-dialog' );
350
-
351
  }
352
 
353
  wp_enqueue_style( 'jquery-chosen', YIT_CORE_PLUGIN_URL . '/assets/css/chosen/chosen.css' );
354
  wp_enqueue_script( 'jquery-chosen', YIT_CORE_PLUGIN_URL . '/assets/js/chosen/chosen.jquery.js', array( 'jquery' ), '1.1.0', true );
355
- wp_enqueue_script( 'woocommerce_settings', $woocommerce->plugin_url() . '/assets/js/admin/settings.min.js', array( 'jquery', 'jquery-ui-datepicker','jquery-ui-dialog', 'jquery-ui-sortable', 'iris', 'chosen' ), $woocommerce->version, true );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
356
  wp_register_script( 'colorbox', YIT_CORE_PLUGIN_URL . '/assets/js/jquery.colorbox.js', array( 'jquery' ), '1.6.3', true );
357
  wp_register_script( 'yit-plugin-panel', YIT_CORE_PLUGIN_URL . '/assets/js/yit-plugin-panel.min.js', array( 'jquery', 'jquery-chosen' ), $this->version, true );
358
  wp_localize_script( 'woocommerce_settings', 'woocommerce_settings_params', array(
335
  */
336
  public function admin_enqueue_scripts() {
337
  global $woocommerce, $pagenow;
338
+
339
+ $woocommerce_version = function_exists( 'WC' ) ? WC()->version : $woocommerce->version;
340
 
341
  wp_enqueue_style( 'raleway-font', '//fonts.googleapis.com/css?family=Raleway:400,500,600,700,800,100,200,300,900' );
342
 
343
  wp_enqueue_media();
344
+ wp_enqueue_style( 'woocommerce_admin_styles', $woocommerce->plugin_url() . '/assets/css/admin.css', array(), $woocommerce_version );
345
+ wp_register_style( 'yit-plugin-style', YIT_CORE_PLUGIN_URL . '/assets/css/yit-plugin-panel.css', $woocommerce_version );
346
+ wp_register_style( 'colorbox', YIT_CORE_PLUGIN_URL . '/assets/css/colorbox.css', array(), $woocommerce_version );
347
+ wp_register_style( 'yit-upgrade-to-pro', YIT_CORE_PLUGIN_URL . '/assets/css/yit-upgrade-to-pro.css', array( 'colorbox' ), $woocommerce_version );
348
 
349
  if ( 'customize.php' != $pagenow ){
 
350
  wp_enqueue_style ( 'wp-jquery-ui-dialog' );
 
351
  }
352
 
353
  wp_enqueue_style( 'jquery-chosen', YIT_CORE_PLUGIN_URL . '/assets/css/chosen/chosen.css' );
354
  wp_enqueue_script( 'jquery-chosen', YIT_CORE_PLUGIN_URL . '/assets/js/chosen/chosen.jquery.js', array( 'jquery' ), '1.1.0', true );
355
+
356
+ $woocommerce_settings_deps = array( 'jquery', 'jquery-ui-datepicker', 'jquery-ui-sortable', 'iris' );
357
+
358
+ if( version_compare( '2.5', $woocommerce_version, '<=' ) ){
359
+ // WooCommerce > 2.6
360
+ $woocommerce_settings_deps[] = 'select2';
361
+ }
362
+
363
+ else {
364
+ // WooCommerce < 2.6
365
+ $woocommerce_settings_deps[] = 'jquery-ui-dialog';
366
+ $woocommerce_settings_deps[] = 'chosen';
367
+ }
368
+
369
+ wp_enqueue_script( 'woocommerce_settings', $woocommerce->plugin_url() . '/assets/js/admin/settings.min.js', $woocommerce_settings_deps, $woocommerce_version, true );
370
+
371
  wp_register_script( 'colorbox', YIT_CORE_PLUGIN_URL . '/assets/js/jquery.colorbox.js', array( 'jquery' ), '1.6.3', true );
372
  wp_register_script( 'yit-plugin-panel', YIT_CORE_PLUGIN_URL . '/assets/js/yit-plugin-panel.min.js', array( 'jquery', 'jquery-chosen' ), $this->version, true );
373
  wp_localize_script( 'woocommerce_settings', 'woocommerce_settings_params', array(
plugin-fw/lib/yit-plugin-panel.php CHANGED
@@ -155,6 +155,7 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
155
  wp_register_script( 'codemirror', YIT_CORE_PLUGIN_URL . '/assets/js/codemirror/codemirror.js', array( 'jquery' ), $this->version, true );
156
  wp_register_script( 'codemirror-javascript', YIT_CORE_PLUGIN_URL . '/assets/js/codemirror/javascript.js', array( 'jquery', 'codemirror' ), $this->version, true );
157
  wp_register_script( 'colorbox', YIT_CORE_PLUGIN_URL . '/assets/js/jquery.colorbox.js', array( 'jquery' ), '1.6.3', true );
 
158
 
159
  //styles
160
  $jquery_version = isset( $wp_scripts->registered['jquery-ui-core']->ver ) ? $wp_scripts->registered['jquery-ui-core']->ver : '1.9.2';
@@ -175,7 +176,8 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
175
  if( 'admin.php' == $pagenow && strpos( get_current_screen()->id, 'yith_upgrade_premium_version' ) !== false ){
176
  wp_enqueue_style( 'yit-upgrade-to-pro' );
177
  wp_enqueue_script( 'colorbox' );
178
- }
 
179
  }
180
 
181
  /**
@@ -287,10 +289,15 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
287
  * @author Andrea Grillo <andrea.grillo@yithemes.com>
288
  */
289
  public function add_premium_version_upgrade_to_menu(){
290
- global $_parent_pages;
291
-
292
- if( apply_filters( 'yit_show_upgrade_to_premium_version', ! isset( $_parent_pages['yith_upgrade_premium_version'] ) ) ){
293
- add_submenu_page( 'yit_plugin_panel', __( 'Premium version upgrade', 'yith-plugin-fw' ), __( 'Premium version upgrade', 'yith-plugin-fw' ), 'install_plugins', 'yith_upgrade_premium_version', array( $this, 'show_premium_version_upgrade' ) );
 
 
 
 
 
294
  }
295
  }
296
 
@@ -906,16 +913,5 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
906
 
907
  $this->add_videobox( $args );
908
  }
909
-
910
- /**
911
- * Show the upgrade to pro version page
912
- *
913
- * @return void
914
- * @since 2.9.13
915
- * @author Andrea Grillo <andrea.grillo@yithemes.com>
916
- */
917
- public function show_premium_version_upgrade() {
918
- yit_plugin_get_template ( YIT_CORE_PLUGIN_PATH, 'upgrade/upgrade-to-pro-version.php', array( 'core_plugin_url' => YIT_CORE_PLUGIN_URL ) ) ;
919
- }
920
  }
921
  }
155
  wp_register_script( 'codemirror', YIT_CORE_PLUGIN_URL . '/assets/js/codemirror/codemirror.js', array( 'jquery' ), $this->version, true );
156
  wp_register_script( 'codemirror-javascript', YIT_CORE_PLUGIN_URL . '/assets/js/codemirror/javascript.js', array( 'jquery', 'codemirror' ), $this->version, true );
157
  wp_register_script( 'colorbox', YIT_CORE_PLUGIN_URL . '/assets/js/jquery.colorbox.js', array( 'jquery' ), '1.6.3', true );
158
+ wp_enqueue_script( 'yith_how_to', YIT_CORE_PLUGIN_URL . '/assets/js/how-to.js', array('jquery'), $this->version, true );
159
 
160
  //styles
161
  $jquery_version = isset( $wp_scripts->registered['jquery-ui-core']->ver ) ? $wp_scripts->registered['jquery-ui-core']->ver : '1.9.2';
176
  if( 'admin.php' == $pagenow && strpos( get_current_screen()->id, 'yith_upgrade_premium_version' ) !== false ){
177
  wp_enqueue_style( 'yit-upgrade-to-pro' );
178
  wp_enqueue_script( 'colorbox' );
179
+ }
180
+
181
  }
182
 
183
  /**
289
  * @author Andrea Grillo <andrea.grillo@yithemes.com>
290
  */
291
  public function add_premium_version_upgrade_to_menu(){
292
+ global $submenu;
293
+
294
+ if( apply_filters( 'yit_show_upgrade_to_premium_version', ! isset( $submenu['yit_plugin_panel']['how_to'] ) ) ){
295
+ $submenu['yit_plugin_panel']['how_to'] = array(
296
+ sprintf( '%s%s%s', '<span id="yith-how-to-premium">', __( 'How to install premium version', 'yith-plugin-fw' ), '</span>' ),
297
+ 'install_plugins',
298
+ '//support.yithemes.com/hc/en-us/articles/217840988',
299
+ __( 'How to install premium version', 'yith-plugin-fw' ),
300
+ );
301
  }
302
  }
303
 
913
 
914
  $this->add_videobox( $args );
915
  }
 
 
 
 
 
 
 
 
 
 
 
916
  }
917
  }
plugin-fw/lib/yit-plugin-subpanel.php CHANGED
@@ -100,7 +100,7 @@ if ( ! class_exists( 'YIT_Plugin_SubPanel' ) ) {
100
 
101
  if( ! isset( $admin_page_hooks['yit_plugin_panel'] ) ) {
102
  $position = apply_filters( 'yit_plugins_menu_item_position', '62.32' );
103
- add_menu_page( 'yit_plugin_panel', __( 'YITH Plugins', 'yith-plugin-fw' ), 'nosuchcapability', 'yit_plugin_panel', NULL, $logo, $position );
104
  }
105
 
106
  add_submenu_page( 'yit_plugin_panel', $this->settings['label'], $this->settings['label'], 'manage_options', $this->settings['page'], array( $this, 'yit_panel' ) );
100
 
101
  if( ! isset( $admin_page_hooks['yit_plugin_panel'] ) ) {
102
  $position = apply_filters( 'yit_plugins_menu_item_position', '62.32' );
103
+ add_menu_page( 'yit_plugin_panel', 'YITH Plugins', 'nosuchcapability', 'yit_plugin_panel', NULL, $logo, $position );
104
  }
105
 
106
  add_submenu_page( 'yit_plugin_panel', $this->settings['label'], $this->settings['label'], 'manage_options', $this->settings['page'], array( $this, 'yit_panel' ) );
plugin-fw/templates/upgrade/upgrade-to-pro-version.php DELETED
@@ -1,75 +0,0 @@
1
- <div id="upgrade-to-premium">
2
- <h1><?php _e( 'Upgrade to Premium Version', 'yith-plugin-fw' ) ?></h1>
3
- <h3><?php _e( "Have you purchased the premium version of a plugin? Don't you know how to activate the license after the purchase?", 'yith-plugin-fw' ) ?></h3>
4
- <p class="upgrade-how-to">
5
- <?php echo _e( "To upgrade from a FREE to a PREMIUM plugin is not suffice to insert the license key provided after the purchase.
6
- The reason is that they are two distinct products, with significant differences both for available options and for number of files included in the plugin package.
7
- To start to use the PREMIUM version of the plugin, you simply need to download the PREMIUM packet and install it on your site.", 'yith-plugin-fw' ); ?>
8
- </p>
9
- <p class="highlighted"><?php echo sprintf( __( '%1$sDo you need to know how to do it?%2$s Easy! %1$sFollow this list of steps%2$s and in a few minutes the plugin you purchased will be installed on your site', 'yith-plugin-fw' ),'<b>','</b>' ); ?></p>
10
- <ol class="upgrade-steps">
11
- <li class="step">
12
- <?php _e( 'Go to yithemes.com and login to "My Account" page', 'yith-plugin-fw' ); ?>
13
- <a class="image-lightbox" href="<?php echo $core_plugin_url; ?>/assets/images/upgrade-page/01.jpg" title="YIThemes - Login">
14
- <img class="img-responsive" src="<?php echo $core_plugin_url; ?>/assets/images/upgrade-page/01.jpg" alt="YIThemes - Login">
15
- </a>
16
- </li>
17
- <li class="step">
18
- <?php _e( 'From the menu on the left, click on "My Downloads", look for the plugin you want to install among the available downloads and click on "Download" button' , 'yith-plugin-fw' ); ?>
19
- <a class="image-lightbox" href="<?php echo $core_plugin_url; ?>/assets/images/upgrade-page/02.jpg" title="My Account -> My Downloads">
20
- <img class="img-responsive" src="<?php echo $core_plugin_url; ?>/assets/images/upgrade-page/02.jpg" alt="My Account -> My Downloads">
21
- </a>
22
- </li>
23
- <li class="step">
24
- <?php _e( "After downloading the packet, go to your website and login to WordPress administration area.", 'yith-plugin-fw' ); ?>
25
- <a class="image-lightbox" href="<?php echo $core_plugin_url; ?>/assets/images/upgrade-page/03.jpg" title="Login to WordPress">
26
- <img class="img-responsive" src="<?php echo $core_plugin_url; ?>/assets/images/upgrade-page/03.jpg" alt="Login to WordPress">
27
- </a>
28
- </li>
29
- <li class="step">
30
- <?php _e( 'From the menu on the left, click on "Plugins". You will be redirected to the page where you will find the complete list of all the plugins available on your site. Click on "Add New" button that you find above on the left to add a new plugin', 'yith-plugin-fw' ); ?>
31
- <a class="image-lightbox" href="<?php echo $core_plugin_url; ?>/assets/images/upgrade-page/04.jpg" title="Add new plugin">
32
- <img class="img-responsive" src="<?php echo $core_plugin_url; ?>/assets/images/upgrade-page/04.jpg" alt="Add new plugin">
33
- </a>
34
- </li>
35
- <li class="step">
36
- <?php _e( 'You will be redirected to a new page where you will find, above on the left next to the page title, the "Upload Plugin" button.', 'yith-plugin-fw' ); ?>
37
- <a class="image-lightbox" href="<?php echo $core_plugin_url; ?>/assets/images/upgrade-page/05.jpg" title="Upload plugin">
38
- <img class="img-responsive" src="<?php echo $core_plugin_url; ?>/assets/images/upgrade-page/05.jpg" alt="Upload plugin">
39
- </a>
40
- </li>
41
- <li class="step">
42
- <?php _e( 'Click on "Upload Plugins" button to start the upload of the PREMIUM version of the plugin previously downloaded. Click on "Select File", search for the download folder related to the plugin and upload the package. Now you only need to wait a few minutes for the upload and the installation on your site. (We used YITH Live Chat plugin by way of example)', 'yith-plugin-fw' ); ?>
43
- <a class="image-lightbox" href="<?php echo $core_plugin_url; ?>/assets/images/upgrade-page/06.jpg" title="Select plugin package">
44
- <img class="img-responsive" src="<?php echo $core_plugin_url; ?>/assets/images/upgrade-page/06.jpg" alt="Select plugin package">
45
- </a>
46
- </li>
47
- <li class="step">
48
- <?php _e( 'After completing the installation, click on "Activate plugin"', 'yith-plugin-fw' ); ?>
49
- <a class="image-lightbox" href="<?php echo $core_plugin_url; ?>/assets/images/upgrade-page/07.jpg" title="Activate plugin">
50
- <img class="img-responsive" src="<?php echo $core_plugin_url; ?>/assets/images/upgrade-page/07.jpg" alt="Activate plugin">
51
- </a>
52
- <?php _e( 'If everything worked allright, your plugin is now correctly installed on your website. Enjoy it :-)', 'yith-plugin-fw' ); ?>
53
- </li>
54
- <li class="step">
55
- <?php _e( 'The last step is the activation of the plugin through its license key you received after the purchase. Click on "License Activation" that you find in "YITH Plugins" and insert the license key and the email address you used during the purchase.', 'yith-plugin-fw' ); ?>
56
- <a class="image-lightbox" href="<?php echo $core_plugin_url; ?>/assets/images/upgrade-page/08.jpg" title="Activate license">
57
- <img class="img-responsive" src="<?php echo $core_plugin_url; ?>/assets/images/upgrade-page/08.jpg" alt="Activate license">
58
- </a>
59
- </li>
60
- <li class="step">
61
- <?php _e( 'In case you had difficulty to recover the license key we sent you by email, you can easily find it in "My Licenses" section of your account on yithemes.com', 'yith-plugin-fw' ); ?>
62
- <a class="image-lightbox" href="<?php echo $core_plugin_url; ?>/assets/images/upgrade-page/09.jpg" title="Section My License">
63
- <img class="img-responsive" src="<?php echo $core_plugin_url; ?>/assets/images/upgrade-page/09.jpg" alt="Section My License">
64
- </a>
65
- </li>
66
- </ol>
67
- </div>
68
-
69
- <script>
70
- // Lightbox image
71
- jQuery('document').ready(function($){
72
- $(".image-lightbox").colorbox({rel:'image-lightbox'});
73
- });
74
-
75
- </script>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
readme.txt CHANGED
@@ -3,8 +3,8 @@
3
  Contributors: yithemes
4
  Tags: woocommerce catalog mode plugin, woocommerce catalog only, woocommerce, products, themes, yit, yith, yithemes, e-commerce, shop, catalog mode, catalogue mode, remove add to cart, ask for price, ask price, asking for price, asking price, button remove, call, call for price, call me, call us, contact, email, hide add to cart, hide price
5
  Requires at least: 4.0
6
- Tested up to: 4.5
7
- Stable tag: 1.3.7
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -113,6 +113,10 @@ yith-woocommerce-catalog-mode-<WORDPRESS LOCALE >.mo
113
 
114
  == Changelog ==
115
 
 
 
 
 
116
  = Version 1.3.7 - Released: May 13, 2016 =
117
 
118
  * Added: filter "ywctm_cart_widget_classes" to hide the cart widget
@@ -230,7 +234,7 @@ yith-woocommerce-catalog-mode-<WORDPRESS LOCALE >.mo
230
 
231
  == Upgrade Notice ==
232
 
233
- Last Stable Tag 1.3.7
234
 
235
  == Suggestions ==
236
 
3
  Contributors: yithemes
4
  Tags: woocommerce catalog mode plugin, woocommerce catalog only, woocommerce, products, themes, yit, yith, yithemes, e-commerce, shop, catalog mode, catalogue mode, remove add to cart, ask for price, ask price, asking for price, asking price, button remove, call, call for price, call me, call us, contact, email, hide add to cart, hide price
5
  Requires at least: 4.0
6
+ Tested up to: 4.7
7
+ Stable tag: 1.4.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
113
 
114
  == Changelog ==
115
 
116
+ = Version 1.4.0 - Released: May 31, 2016 =
117
+
118
+ * Tested with WooCommerce 2.6.0 beta 3
119
+
120
  = Version 1.3.7 - Released: May 13, 2016 =
121
 
122
  * Added: filter "ywctm_cart_widget_classes" to hide the cart widget
234
 
235
  == Upgrade Notice ==
236
 
237
+ Last Stable Tag 1.4.0
238
 
239
  == Suggestions ==
240
 
templates/admin/premium.php CHANGED
@@ -180,6 +180,10 @@
180
  background: url(<?php echo YWCTM_ASSETS_URL?>/images/09-bg.png) no-repeat #fff; background-position: 85% 75%
181
  }
182
 
 
 
 
 
183
  @media (max-width: 768px) {
184
  .section{margin: 0}
185
  .premium-cta p{
@@ -384,6 +388,22 @@
384
  </div>
385
  </div>
386
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
387
  <div class="section section-cta section-odd">
388
  <div class="landing-container">
389
  <div class="premium-cta">
180
  background: url(<?php echo YWCTM_ASSETS_URL?>/images/09-bg.png) no-repeat #fff; background-position: 85% 75%
181
  }
182
 
183
+ .section.ten{
184
+ background: url(<?php echo YWCTM_ASSETS_URL?>/images/10-bg.png) no-repeat #fff; background-position: 15% 75%
185
+ }
186
+
187
  @media (max-width: 768px) {
188
  .section{margin: 0}
189
  .premium-cta p{
388
  </div>
389
  </div>
390
  </div>
391
+ <div class="ten section section-odd clear">
392
+ <div class="landing-container">
393
+ <div class="col-2">
394
+ <div class="section-title">
395
+ <img src="<?php echo YWCTM_ASSETS_URL?>/images/10-icon.png" alt="icon 10" />
396
+ <h2><?php _e('100% WPML Compatible','yith-woocommerce-catalog-mode');?></h2>
397
+ </div>
398
+ <p>
399
+ <?php echo sprintf( __('Thanks to its full compatibility with WPML, you could create and configure a different %1$scontact form%2$s for any language installed on your site.%3$s In this way, the emails will be sorted to different addresses basing on the %1$slanguage%2$s of the page visited by the user when the sending occurs.'),'<b>','</b>','<br>'); ?>
400
+ </p>
401
+ </div>
402
+ <div class="col-1">
403
+ <img src="<?php echo YWCTM_ASSETS_URL?>/images/10.png" alt="WPML Compatible" />
404
+ </div>
405
+ </div>
406
+ </div>
407
  <div class="section section-cta section-odd">
408
  <div class="landing-container">
409
  <div class="premium-cta">