Kadence WooCommerce Email Designer - Version 1.3.4

Version Description

  • Update: Woo Waiting Update
  • Fix: Translation String.
  • Update: Check if $email isset.
Download this release

Release Info

Developer britner
Plugin Icon 128x128 Kadence WooCommerce Email Designer
Version 1.3.4
Comparing to
See all releases

Code changes from version 1.3.3 to 1.3.4

includes/class-kadence-woomail-customizer.php CHANGED
@@ -16,27 +16,27 @@ if ( ! defined( 'ABSPATH' ) ) {
16
  */
17
  if ( ! class_exists( 'Kadence_Woomail_Customizer' ) ) {
18
 
19
- class Kadence_Woomail_Customizer {
20
- // Properties
21
- private static $panels_added = array();
22
- private static $sections_added = array();
23
- private static $css_suffixes = null;
24
- public static $customizer_url = null;
25
-
26
- /**
27
- * @var null
28
- */
29
- private static $instance = null;
30
-
31
- /**
32
- * Instance Control
33
- */
34
- public static function get_instance() {
35
- if ( is_null( self::$instance ) ) {
36
- self::$instance = new self();
 
 
37
  }
38
- return self::$instance;
39
- }
40
 
41
  /**
42
  * Class constructor
@@ -180,548 +180,568 @@ class Kadence_Woomail_Customizer {
180
  remove_action( 'wp_footer', 'et_builder_get_modules_js_data' );
181
  remove_action( 'et_customizer_footer_preview', 'et_load_social_icons' );
182
  }
183
- public function get_customizer_options_override_ready() {
184
- foreach ( Kadence_Woomail_Settings::get_email_types() as $key => $value ) {
185
- add_filter('pre_option_woocommerce_' . $key .'_settings', array( $this, 'customizer_woo_options_override' ), 99, 2 );
 
186
  }
187
- }
188
- public function customizer_woo_options_override( $value = array(), $option ) {
189
- if ( isset( $_POST['customized'] ) ) {
190
- $post_values = json_decode( stripslashes_deep( $_POST['customized'] ), true );
191
- if ( isset( $_POST['customized'] ) && ! empty( $post_values ) ) {
192
- if ( is_array( $post_values ) ) {
193
- foreach ( $post_values as $key => $current_value ) {
194
- if ( strpos( $key, $option ) !== false ) {
195
- $subkey = str_replace( $option, '', $key );
196
- $subkey = str_replace( '[', '', rtrim( $subkey, "]" ) );
197
- $value[$subkey] = $current_value;
198
  }
199
  }
200
  }
201
  }
 
202
  }
203
- return $value;
204
- }
205
 
206
- public function change_publish_button( $translation, $text ) {
207
 
208
- if ( $text == 'Publish' ) {
209
- return __('Save', 'kadence-woocommerce-email-designer');
210
- } else if ( $text == 'Published' ) {
211
- return __('Saved', 'kadence-woocommerce-email-designer');
212
- }
213
 
214
- return $translation;
215
- }
216
 
217
  /**
218
- * Add customizer capability
219
- *
220
- * @access public
221
- * @param array $capabilities
222
- * @return array
223
- */
224
  public function add_customize_capability( $capabilities ) {
225
  // Remove filter (circular reference)
226
- remove_filter('user_has_cap', array($this, 'add_customize_capability'), 99);
227
 
228
  // Add customize capability for admin user if this is own customizer request
229
  if ( Kadence_Woomail_Designer::is_admin() && Kadence_Woomail_Designer::is_own_customizer_request() ) {
230
- $capabilities['customize'] = true;
231
  }
232
 
233
  // Add filter
234
- add_filter('user_has_cap', array($this, 'add_customize_capability'), 99);
235
 
236
  // Return capabilities
237
  return $capabilities;
238
  }
239
 
240
- /**
241
- * Get Customizer URL
242
- *
243
- */
244
- public static function get_customizer_url() {
245
- if ( is_null( Kadence_Woomail_Customizer::$customizer_url ) ) {
246
- Kadence_Woomail_Customizer::$customizer_url = add_query_arg( array(
247
- 'kt-woomail-customize' => '1',
248
- 'url' => urlencode( add_query_arg( array( 'kt-woomail-preview' => '1' ), home_url( '/' ) ) ),
249
- 'return' => urlencode( Kadence_Woomail_Woo::get_email_settings_page_url() ),
250
- ), admin_url( 'customize.php' ) );
 
 
 
 
 
251
  }
252
 
253
- return Kadence_Woomail_Customizer::$customizer_url;
254
- }
 
 
 
 
 
 
 
 
255
 
256
- /**
257
- * Change site name for customizer
258
- *
259
- * @access public
260
- * @param string $name
261
- * @return string
262
- */
263
- public function change_site_name( $name ) {
264
- return __( 'WooCommerce Emails', 'kadence-woocommerce-email-designer' );
265
- }
 
266
 
267
- /**
268
- * Remove unrelated components
269
- *
270
- * @access public
271
- * @param array $components
272
- * @param object $wp_customize
273
- * @return array
274
- */
275
- public function remove_unrelated_components($components, $wp_customize) {
276
- // Iterate over components
277
- foreach ($components as $component_key => $component) {
278
-
279
- // Check if current component is own component
280
- if ( ! Kadence_Woomail_Customizer::is_own_component( $component ) ) {
281
- unset($components[$component_key]);
282
- }
283
- }
284
-
285
- // Return remaining components
286
- return $components;
287
- }
288
-
289
- /**
290
- * Remove unrelated sections
291
- *
292
- * @access public
293
- * @param bool $active
294
- * @param object $section
295
- * @return bool
296
- */
297
- public function remove_unrelated_sections( $active, $section ) {
298
- // Check if current section is own section
299
- if ( ! Kadence_Woomail_Customizer::is_own_section( $section->id ) ) {
300
- return false;
301
- }
302
-
303
- // We can override $active completely since this runs only on own Customizer requests
304
- return true;
305
- }
306
-
307
- /**
308
- * Remove unrelated controls
309
- *
310
- * @access public
311
- * @param bool $active
312
- * @param object $control
313
- * @return bool
314
- */
315
- public function remove_unrelated_controls( $active, $control ) {
316
- // Check if current control belongs to own section
317
- if ( ! Kadence_Woomail_Customizer::is_own_section( $control->section ) ) {
318
- return false;
319
  }
320
 
321
- // We can override $active completely since this runs only on own Customizer requests
322
- return $active;
323
- }
 
 
 
 
 
 
 
 
 
 
324
 
325
- /**
326
- * Check if current component is own component
327
- *
328
- * @access public
329
- * @param string $component
330
- * @return bool
331
- */
332
- public static function is_own_component( $component ) {
333
- return false;
334
- }
335
 
336
- /**
337
- * Check if current section is own section
338
- *
339
- * @access public
340
- * @param string $key
341
- * @return bool
342
- */
343
- public static function is_own_section( $key ) {
344
- // Iterate over own sections
345
- foreach ( Kadence_Woomail_Settings::get_sections() as $section_key => $section ) {
346
- if ($key === 'kt_woomail_' . $section_key) {
347
- return true;
348
  }
349
- }
350
 
351
- // Section not found
352
- return false;
353
- }
354
 
355
- /**
356
- * Enqueue Customizer scripts
357
- *
358
- * @access public
359
- * @return void
360
- */
361
- public function enqueue_customizer_scripts() {
362
- // Enqueue Customizer script
363
- wp_enqueue_style( 'kt-woomail-customizer-styles', KT_WOOMAIL_URL . '/assets/css/customizer-styles.css', KT_WOOMAIL_VERSION );
364
- wp_enqueue_script( 'kt-woomail-customizer-scripts', KT_WOOMAIL_URL . '/assets/js/customizer-scripts.js', array('jquery', 'customize-controls' ), KT_WOOMAIL_VERSION, true);
365
-
366
- // Send variables to Javascript
367
- wp_localize_script('kt-woomail-customizer-scripts', 'kt_woomail', array(
368
- 'ajax_url' => admin_url('admin-ajax.php'),
369
- 'customizer_url' => Kadence_Woomail_Customizer::get_customizer_url(),
370
- 'responsive_mode' => Kadence_Woomail_Customizer::opt( 'responsive_mode' ),
371
- 'labels' => array(
372
- 'reset' => __('Reset', 'kadence-woocommerce-email-designer'),
373
- 'customtitle' => __('Woocommerce Emails', 'kadence-woocommerce-email-designer'),
374
- 'send_confirmation' => __('Are you sure you want to send an email?', 'kadence-woocommerce-email-designer'),
375
- 'sent' => __('Email Sent!', 'kadence-woocommerce-email-designer'),
376
- 'failed' => __('Email failed, make sure you have a working email server for your site.', 'kadence-woocommerce-email-designer'),
377
- 'reset_confirmation' => __('Are you sure you want to reset all changes made to your WooCommerce emails?', 'kadence-woocommerce-email-designer'),
378
- 'description' => __('<p>Use native WordPress Customizer to make Woocommerce emails match your brand.</p>', 'kadence-woocommerce-email-designer') . '<p>' . sprintf(__('<a href="%s">Kadence Woocommerce Email Designer</a> plugin by <a href="%s">Kadence Themes</a>.', 'kadence-woocommerce-email-designer'), 'https://www.kadencethemes.com', 'https://www.kadencethemes.com') . '</p>',
379
- ),
380
- ));
381
- // Localize
382
- wp_localize_script( 'kt-woomail-customizer-scripts', 'KWMDIEl10n', array(
383
- 'emptyImport' => __( 'Please choose a file to import.', 'customizer-export-import' ),
384
- 'confrim_override' => __( 'WARNING: This will override all of your current settings. Are you sure you want to do that? We suggest geting an export of your current settings incase you want to revert back.', 'customizer-export-import' )
385
- ));
386
-
387
- // Config
388
- wp_localize_script( 'kt-woomail-customizer-scripts', 'KWMDIEConfig', array(
389
- 'customizerURL' => admin_url( 'customize.php?kt-woomail-customize=1&url='.urlencode( add_query_arg( array( 'kt-woomail-preview' => '1' ), site_url('/') ) ) ),
390
- 'exportNonce' => wp_create_nonce( 'kt-woomail-exporting' )
391
- ));
392
- }
393
-
394
- /**
395
- * Add settings
396
- *
397
- * @access public
398
- * @param object $wp_customize
399
- * @return void
400
- */
401
- public function add_settings( $wp_customize ) {
402
- // Iterate over settings
403
- foreach ( Kadence_Woomail_Settings::get_settings() as $setting_key => $setting ) {
404
-
405
- // Add setting
406
- $wp_customize->add_setting('kt_woomail[' . $setting_key . ']' , array(
407
- 'type' => 'option',
408
- 'transport' => isset( $setting['transport'] ) ? $setting['transport'] : 'postMessage',
409
- 'capability' => Kadence_Woomail_Designer::get_admin_capability(),
410
- 'default' => isset( $setting['default'] ) ? $setting['default'] : '',
411
- 'sanitize_callback' => isset( $settings['sanitize_callback'] ) ? array(
412
- 'WP_Customize_' . $setting['control_type'] . 'Control',
413
- $settings['sanitize_callback']
414
- ) : '',
415
- ));
416
- }
417
- // Iterate over settings
418
- foreach ( Kadence_Woomail_Settings::get_woo_settings() as $setting_key => $setting ) {
419
- // Add setting
420
- $wp_customize->add_setting( $setting_key, array(
421
- 'type' => 'option',
422
- 'transport' => isset( $setting['transport'] ) ? $setting['transport'] : 'postMessage',
423
- 'capability' => Kadence_Woomail_Designer::get_admin_capability(),
424
- 'default' => isset( $setting['default'] ) ? $setting['default'] : '',
425
- ));
426
- }
427
- }
428
-
429
- /**
430
- * Add controls, sections and panels
431
- *
432
- * @access public
433
- * @param object $wp_customize
434
- * @return void
435
- */
436
- public function add_controls( $wp_customize ) {
437
- // Iterate over settings
438
- foreach ( Kadence_Woomail_Settings::get_settings() as $setting_key => $setting ) {
439
-
440
- // Maybe add section
441
- Kadence_Woomail_Customizer::maybe_add_section( $wp_customize, $setting );
442
-
443
- // Maybe add panel
444
- Kadence_Woomail_Customizer::maybe_add_panel( $wp_customize, $setting );
445
-
446
- // Get control class name (none, color, upload, image)
447
- $control_class = isset( $setting['control_type'] ) ? ucfirst( $setting['control_type'] ) . '_' : '';
448
- $control_class = 'WP_Customize_' . $control_class . 'Control';
449
- // Control configuration
450
- $control_config = array(
451
- 'label' => $setting['title'],
452
- 'settings' => 'kt_woomail[' . $setting_key . ']',
453
- 'capability' => Kadence_Woomail_Designer::get_admin_capability(),
454
- 'priority' => isset($setting['priority']) ? $setting['priority'] : 10,
455
- 'active_callback' => ( isset( $setting['active_callback'] ) ) ? array(
456
- 'Kadence_Woomail_Customizer',
457
- 'active_callback'
458
- ) : '__return_true',
459
- );
460
 
461
- // Description
462
- if ( ! empty($setting['description'] ) ) {
463
- $control_config['description'] = $setting['description'];
 
 
 
 
 
 
 
 
 
 
464
  }
465
 
466
- // Add control to section
467
- if ( ! empty( $setting['section'] ) ) {
468
- $control_config['section'] = 'kt_woomail_' . $setting['section'];
469
- }
470
 
471
- // Add control to panel
472
- if ( ! empty( $setting['panel'] ) ) {
473
- $control_config['panel'] = 'kt_woomail_' . $setting['panel'];
474
- }
475
-
476
- // Add custom field type
477
- if ( ! empty( $setting['type'] ) ) {
478
- $control_config['type'] = $setting['type'];
479
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
480
 
481
- // Add select field options
482
- if ( ! empty( $setting['choices'] ) ) {
483
- $control_config['choices'] = $setting['choices'];
484
- }
485
- // Input attributese
486
- if ( ! empty( $setting['input_attrs'] ) ) {
487
- $control_config['input_attrs'] = $setting['input_attrs'];
488
- }
489
- // Add repeater controls:
490
- if ( ! empty( $setting['customizer_repeater_image_control'] ) ) {
491
- $control_config['customizer_repeater_image_control'] = $setting['customizer_repeater_image_control'];
492
- }
493
- if ( ! empty( $setting['customizer_repeater_icon_control'] ) ) {
494
- $control_config['customizer_repeater_icon_control'] = $setting['customizer_repeater_icon_control'];
495
- }
496
- if ( ! empty( $setting['customizer_repeater_icon_color'] ) ) {
497
- $control_config['customizer_repeater_icon_color'] = $setting['customizer_repeater_icon_color'];
498
- }
499
- if ( ! empty( $setting['customizer_repeater_title_control'] ) ) {
500
- $control_config['customizer_repeater_title_control'] = $setting['customizer_repeater_title_control'];
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
501
  }
502
- if ( ! empty( $setting['customizer_repeater_link_control'] ) ) {
503
- $control_config['customizer_repeater_link_control'] = $setting['customizer_repeater_link_control'];
 
 
 
 
 
 
 
 
 
 
504
  }
505
- // Add control
506
- $wp_customize->add_control(new $control_class($wp_customize, 'kt_woomail_' . $setting_key, $control_config));
507
  }
508
- // Iterate over settings
509
- foreach (Kadence_Woomail_Settings::get_woo_settings() as $setting_key => $setting) {
510
-
511
- // Maybe add section
512
- Kadence_Woomail_Customizer::maybe_add_section( $wp_customize, $setting );
513
-
514
- // Maybe add panel
515
- Kadence_Woomail_Customizer::maybe_add_panel( $wp_customize, $setting );
516
-
517
- // Get control class name (none, color, upload, image)
518
- $control_class = isset($setting['control_type']) ? ucfirst($setting['control_type']) . '_' : '';
519
- $control_class = 'WP_Customize_' . $control_class . 'Control';
520
-
521
- // Control configuration
522
- $control_config = array(
523
- 'label' => $setting['title'],
524
- 'settings' => $setting_key,
525
- 'capability' => Kadence_Woomail_Designer::get_admin_capability(),
526
- 'priority' => isset($setting['priority']) ? $setting['priority'] : 10,
527
- 'active_callback' => ( isset( $setting['active_callback'] ) ) ? array(
 
 
 
 
 
 
 
 
528
  'Kadence_Woomail_Customizer',
529
- 'active_woo_callback'
530
- ) : '__return_true',
531
- );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
532
 
533
- // Description
534
- if ( ! empty( $setting['description'] ) ) {
535
- $control_config['description'] = $setting['description'];
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
536
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
537
 
538
- // Add control to section
539
- if ( ! empty( $setting['section'] ) ) {
540
- $control_config['section'] = 'kt_woomail_' . $setting['section'];
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
541
  }
 
 
 
 
 
 
 
 
 
 
542
 
543
- // Add control to panel
544
- if ( ! empty( $setting['panel'] ) ) {
545
- $control_config['panel'] = 'kt_woomail_' . $setting['panel'];
546
  }
547
- // Add custom field type
548
- if ( ! empty( $setting['type'] ) ) {
549
- $control_config['type'] = $setting['type'];
 
 
 
 
 
 
 
 
 
 
 
 
 
550
  }
551
- // Add custom field type
552
- if ( ! empty($setting['label'] ) ) {
553
- $control_config['label'] = $setting['label'];
 
 
554
  }
 
555
 
556
- // Add select field options
557
- if ( ! empty( $setting['choices'] ) ) {
558
- $control_config['choices'] = $setting['choices'];
 
559
  }
560
- // Input attributese
561
- if ( ! empty($setting['input_attrs'] ) ) {
562
- $control_config['input_attrs'] = $setting['input_attrs'];
 
 
 
 
 
 
 
 
 
 
 
 
 
563
  }
564
- // Add control
565
- $wp_customize->add_control(new $control_class($wp_customize, $setting_key, $control_config));
566
  }
567
- }
568
- public static function active_callback( $object ) {
569
- if ( ! isset( $object->setting->id ) ) {
570
- return true;
571
- }
572
- $opt_name = explode( '[', $object->setting->id );
573
- $opt_name = $opt_name[0];
574
- $id = str_replace( $opt_name.'[', '', str_replace( ']', '', $object->setting->id ));
575
-
576
- $settings = Kadence_Woomail_Settings::get_settings();
577
-
578
- if (! isset( $settings[$id] ) ) {
579
- return true;
580
- }
581
- $field_id = $settings[$id]['active_callback']['id'];
582
- $compare = $settings[$id]['active_callback']['compare'];
583
- $value = $settings[$id]['active_callback']['value'];
584
- $field_value = Kadence_Woomail_Customizer::opt($field_id);
585
- switch ( $compare ) {
586
- case '==':
587
- case '=':
588
- case 'equals':
589
- case 'equal':
590
- $show = ( $field_value == $value ) ? true : false;
591
- break;
592
-
593
- case '!=':
594
- case 'not equal':
595
- $show = ( $field_value != $value ) ? true : false;
596
- break;
597
- }
598
- return $show;
599
- }
600
- public static function active_woo_callback( $object ) {
601
- if ( ! isset( $object->setting->id ) ) {
602
- return true;
603
- }
604
- $id = $object->setting->id;
605
 
606
- $settings = Kadence_Woomail_Settings::get_woo_settings();
 
607
 
608
- if (! isset( $settings[$id] ) ) {
609
- return true;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
610
  }
611
- $field_id = $settings[$id]['active_callback']['id'];
612
- $compare = $settings[$id]['active_callback']['compare'];
613
- $value = $settings[$id]['active_callback']['value'];
614
- $field_value = Kadence_Woomail_Customizer::opt($field_id);
615
- switch ( $compare ) {
616
- case '==':
617
- case '=':
618
- case 'equals':
619
- case 'equal':
620
- $show = ( $field_value == $value ) ? true : false;
621
- break;
622
-
623
- case '!=':
624
- case 'not equal':
625
- $show = ( $field_value != $value ) ? true : false;
626
- break;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
627
  }
628
- return $show;
629
- }
630
- /**
631
- * Maybe add section
632
- *
633
- * @access public
634
- * @param object $wp_customize
635
- * @param array $child
636
- * @return void
637
- */
638
- public static function maybe_add_section( $wp_customize, $child ) {
639
- // Get sections
640
- $sections = Kadence_Woomail_Settings::get_sections();
641
-
642
- // Check if section is set and exists
643
- if ( ! empty( $child['section'] ) && isset( $sections[$child['section']] ) ) {
644
-
645
- // Reference current section key
646
- $section_key = $child['section'];
647
-
648
- // Check if section was not added yet
649
- if ( ! in_array( $section_key, self::$sections_added, true ) ) {
650
-
651
- // Reference current section
652
- $section = $sections[$section_key];
653
-
654
- // Section config
655
- $section_config = array(
656
- 'title' => $section['title'],
657
- 'priority' => (isset($section['priority']) ? $section['priority'] : 10),
658
- );
659
-
660
- // Description
661
- if ( ! empty($section['description'] ) ) {
662
- $section_config['description'] = $section['description'];
663
- }
664
-
665
- // Maybe add panel
666
- Kadence_Woomail_Customizer::maybe_add_panel( $wp_customize, $section );
667
-
668
- // Maybe add section to panel
669
- if ( ! empty( $section['panel'] ) ) {
670
- $section_config['panel'] = 'kt_woomail_' . $section['panel'];
671
- }
672
-
673
- // Register section
674
- $wp_customize->add_section('kt_woomail_' . $section_key, $section_config);
675
-
676
- // Track which sections were added
677
- self::$sections_added[] = $section_key;
678
- }
679
- }
680
- }
681
-
682
- /**
683
- * Maybe add panel
684
- *
685
- * @access public
686
- * @param object $wp_customize
687
- * @param array $child
688
- * @return void
689
- */
690
- public static function maybe_add_panel( $wp_customize, $child ) {
691
- // Get panels
692
- $panels = Kadence_Woomail_Settings::get_panels();
693
- // Check if panel is set and exists
694
- if ( ! empty($child['panel'] ) && isset( $panels[ $child['panel'] ] ) ) {
695
-
696
- // Reference current panel key
697
- $panel_key = $child['panel'];
698
-
699
- // Check if panel was not added yet
700
- if ( ! in_array( $panel_key, self::$panels_added, true ) ) {
701
-
702
- // Reference current panel
703
- $panel = $panels[$panel_key];
704
-
705
- // Panel config
706
- $panel_config = array(
707
- 'title' => $panel['title'],
708
- 'priority' => ( isset( $panel['priority'] ) ? $panel['priority'] : 10 ),
709
- 'capability' => Kadence_Woomail_Designer::get_admin_capability(),
710
- );
711
-
712
- // Panel description
713
- if ( ! empty($panel['description'] ) ) {
714
- $panel_config['description'] = $panel['description'];
715
- }
716
-
717
- // Register panel
718
- $wp_customize->add_panel('kt_woomail_' . $panel_key, $panel_config);
719
-
720
- // Track which panels were added
721
- self::$panels_added[] = $panel_key;
722
- }
723
- }
724
- }
725
 
726
  /**
727
  * Get styles string
@@ -733,13 +753,13 @@ class Kadence_Woomail_Customizer {
733
  public static function get_styles_string( $add_custom_css = true ) {
734
  $styles_array = array();
735
  $styles = '';
736
- $responsive_check = Kadence_Woomail_Customizer::opt( 'responsive_mode' );
737
 
738
  // Iterate over settings.
739
  foreach ( Kadence_Woomail_Settings::get_settings() as $setting_key => $setting ) {
740
 
741
  // Only add CSS properties.
742
- if ( isset( $setting['live_method']) && $setting['live_method'] === 'css' ) {
743
 
744
  // Iterate over selectors.
745
  foreach ( $setting['selectors'] as $selector => $properties ) {
@@ -754,31 +774,31 @@ class Kadence_Woomail_Customizer {
754
  }
755
  }
756
  if ( 'border_width' == $setting_key ) {
757
- if ( '' === Kadence_Woomail_Customizer::get_stored_value( 'border_width_right' ) ) {
758
  $property = 'border-width';
759
- } else if ( '0' === Kadence_Woomail_Customizer::get_stored_value( 'border_width' ) ) {
760
  $property = 'border-top';
761
  }
762
  }
763
- if ( 'border_width_right' == $setting_key && '0' === Kadence_Woomail_Customizer::get_stored_value( 'border_width_right' ) ) {
764
  $property = 'border-right';
765
  }
766
- if ( 'border_width_left' == $setting_key && '0' === Kadence_Woomail_Customizer::get_stored_value( 'border_width_left' ) ) {
767
  $property = 'border-left';
768
  }
769
- if ( 'border_width_bottom' == $setting_key && '0' === Kadence_Woomail_Customizer::get_stored_value( 'border_width_bottom' ) ) {
770
  $property = 'border-bottom';
771
  }
772
-
773
  if ( 'items_table_padding' == $setting_key && ( '.order-items-normal #body_content_inner table.td th' === $selector || '.order-items-normal #body_content_inner table.td td' === $selector ) ) {
774
- if ( '' === Kadence_Woomail_Customizer::get_stored_value( 'items_table_padding_left_right' ) ) {
775
  $property = 'padding';
776
  }
777
  }
778
  if ( ! $responsive_check && 'content_inner_width' == $setting_key ) {
779
  continue;
780
  }
781
- $styles_array[ $selector ][ $property ] = Kadence_Woomail_Customizer::opt( $setting_key, $selector );
782
  }
783
  }
784
  }
@@ -802,7 +822,7 @@ class Kadence_Woomail_Customizer {
802
 
803
  // Add custom CSS
804
  if ( $add_custom_css ) {
805
- $styles .= Kadence_Woomail_Customizer::opt( 'custom_css' );
806
  }
807
 
808
  // Return styles string
@@ -819,10 +839,10 @@ class Kadence_Woomail_Customizer {
819
  */
820
  public static function opt( $key, $selector = null ) {
821
  // Get raw value
822
- $stored_value = Kadence_Woomail_Customizer::get_stored_value( $key, Kadence_Woomail_Settings::get_default_value( $key ) );
823
 
824
  // Prepare value
825
- $value = Kadence_Woomail_Customizer::prepare( $key, $stored_value, $selector );
826
 
827
  // Allow developers to override.
828
  return apply_filters( 'kt_woomail_option_value', $value, $key, $selector, $stored_value );
@@ -848,184 +868,184 @@ class Kadence_Woomail_Customizer {
848
  // Stored value not found, use default value.
849
  return $default;
850
  }
851
- /**
852
- * Prepare value for use in HTML
853
- *
854
- * @access public
855
- * @param string $key
856
- * @param string $value
857
- * @param string $selector
858
- * @return string
859
- */
860
- public static function prepare( $key, $value, $selector = null ) {
861
- // Append CSS suffix to value
862
- $value .= Kadence_Woomail_Customizer::get_css_suffix($key);
863
-
864
- // Special case for shadow
865
- if ( $key === 'shadow' ) {
866
- $value = '0 ' . ($value > 0 ? 1 : 0) . 'px ' . ($value * 4) . 'px ' . $value . 'px rgba(0,0,0,0.1) !important';
867
- }
868
-
869
- // Special case for border width 0.
870
- if ( $key === 'border_width_right' && '0px' === $value ) {
871
- $background = get_option( 'woocommerce_email_background_color' );
872
- $value = '0px solid ' . $background . ' !important';
873
- }
874
- if ( $key === 'border_width_left' && '0px' === $value ) {
875
- $background = get_option( 'woocommerce_email_background_color' );
876
- $value = '0px solid ' . $background . ' !important';
877
- }
878
- if ( $key === 'border_width_bottom' && '0px' === $value ) {
879
- $background = get_option( 'woocommerce_email_background_color' );
880
- $value = '0px solid ' . $background . ' !important';
881
- }
882
- if ( $key === 'border_width' && '0px' === $value ) {
883
- $background = get_option( 'woocommerce_email_background_color' );
884
- $value = '0px solid ' . $background . ' !important';
885
- }
886
-
887
- // Font family
888
- if ( substr( $key, -11 ) === 'font_family' ) {
889
- $value = isset( Kadence_Woomail_Settings::$font_family_mapping[$value] ) ? Kadence_Woomail_Settings::$font_family_mapping[$value] : $value;
890
- }
891
-
892
- // Return prepared value
893
- return $value;
894
- }
895
-
896
- /**
897
- * Get CSS suffix by key or all CSS suffixes
898
- *
899
- * @access public
900
- * @param string $key
901
- * @return mixed
902
- */
903
- public static function get_css_suffix( $key = null ) {
904
- // Define CSS suffixes.
905
- if ( null === self::$css_suffixes ) {
906
- self::$css_suffixes = array(
907
- 'email_padding' => 'px',
908
- 'email_padding_bottom' => 'px',
909
- 'content_padding_top' => 'px',
910
- 'content_padding_bottom' => 'px',
911
- 'content_padding' => 'px',
912
-
913
- 'content_width' => 'px',
914
- 'content_inner_width' => 'px',
915
- 'border_width' => 'px',
916
- 'border_width_right' => 'px',
917
- 'border_width_bottom' => 'px',
918
- 'border_width_left' => 'px',
919
- 'border_radius' => 'px !important',
920
-
921
- 'btn_border_width' => 'px',
922
- 'btn_size' => 'px',
923
- 'btn_left_right_padding' => 'px',
924
- 'btn_top_bottom_padding' => 'px',
925
- 'btn_border_radius' => 'px',
926
-
927
- 'header_image_maxwidth' => 'px',
928
- 'header_image_padding_top_bottom' => 'px',
929
-
930
- 'header_padding_top' => 'px',
931
- 'header_padding_bottom' => 'px',
932
- 'header_padding_left_right' => 'px',
933
- 'heading_font_size' => 'px',
934
- 'heading_line_height' => 'px',
935
- 'subtitle_font_size' => 'px',
936
- 'subtitle_line_height' => 'px',
937
-
938
- 'font_size' => 'px',
939
- 'line_height' => 'px',
940
-
941
- 'h2_font_size' => 'px',
942
- 'h2_line_height' => 'px',
943
- 'h2_separator_height' => 'px',
944
- 'h2_padding_top' => 'px',
945
- 'h2_margin_bottom' => 'px',
946
- 'h2_padding_bottom' => 'px',
947
- 'h2_margin_top' => 'px',
948
- 'h3_font_size' => 'px',
949
- 'h3_line_height' => 'px',
950
-
951
- 'addresses_border_width' => 'px',
952
- 'addresses_padding' => 'px',
953
-
954
- 'footer_top_padding' => 'px',
955
- 'footer_bottom_padding' => 'px',
956
- 'footer_left_right_padding' => 'px',
957
- 'footer_font_size' => 'px',
958
- 'footer_social_title_size' => 'px',
959
- 'footer_social_top_padding' => 'px',
960
- 'footer_social_bottom_padding' => 'px',
961
- 'footer_social_border_width' => 'px',
962
-
963
- 'footer_credit_top_padding' => 'px',
964
- 'footer_credit_bottom_padding' => 'px',
965
-
966
- 'items_table_border_width' => 'px',
967
- 'items_table_separator_width' => 'px',
968
- 'items_table_padding' => 'px',
969
- 'items_table_padding_left_right' => 'px',
970
- );
971
- }
972
-
973
- // Return single suffix
974
- if ( isset( $key ) ) {
975
- return isset(self::$css_suffixes[$key]) ? self::$css_suffixes[$key] : '';
976
- }
977
- // Return all suffixes for use in Javascript
978
- else {
979
- return self::$css_suffixes;
980
- }
981
- }
982
-
983
- /**
984
- * Reset to default values via Ajax request
985
- *
986
- * @access public
987
- * @return void
988
- */
989
- public function ajax_send_email() {
990
- // Check request
991
- if ( empty($_REQUEST['wp_customize'] ) || $_REQUEST['wp_customize'] !== 'on' || empty($_REQUEST['action']) || $_REQUEST['action'] !== 'kt_woomail_send_email' || empty( $_REQUEST['recipients'] ) ) {
992
- exit;
993
  }
994
 
995
- // Check if user is allowed to send email
996
- if ( ! Kadence_Woomail_Designer::is_admin()) {
997
- exit;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
998
  }
999
 
1000
- $recipients = wc_clean( $_REQUEST['recipients'] );
1001
- $content = Kadence_Woomail_Preview::get_preview_email( true, $recipients );
1002
- echo $content;
1003
- }
 
 
 
 
 
 
 
1004
 
 
 
 
 
1005
 
1006
- /**
1007
- * Reset to default values via Ajax request
1008
- *
1009
- * @access public
1010
- * @return void
1011
- */
1012
- public function ajax_reset() {
1013
- // Check request
1014
- if ( empty( $_REQUEST['wp_customize'] ) || $_REQUEST['wp_customize'] !== 'on' || empty($_REQUEST['action']) || $_REQUEST['action'] !== 'kt_woomail_reset' ) {
1015
- exit;
1016
  }
1017
 
1018
- // Check if user is allowed to reset values
1019
- if ( ! Kadence_Woomail_Designer::is_admin() ) {
1020
- exit;
1021
- }
1022
- global $wp_customize;
1023
 
1024
- // Reset to default values
1025
- Kadence_Woomail_Customizer::reset( $wp_customize );
 
 
 
 
 
 
 
 
 
1026
 
1027
- exit;
1028
- }
 
 
 
 
 
 
 
 
 
1029
 
1030
  /**
1031
  * Reset to default values
@@ -1039,11 +1059,15 @@ class Kadence_Woomail_Customizer {
1039
  require_once KT_WOOMAIL_PATH . 'includes/class-kadence-woomail-import-option.php';
1040
  // Run through the woocommerce settings we are overriding.
1041
  foreach ( Kadence_Woomail_Settings::get_woo_settings() as $setting_key => $setting ) {
1042
- $option = new Kadence_Woomail_Import_Option( $wp_customize, $setting_key, array(
1043
- 'default' => '',
1044
- 'type' => 'option',
1045
- 'capability' => Kadence_Woomail_Designer::get_admin_capability(),
1046
- ) );
 
 
 
 
1047
  if ( 'woocommerce_email_footer_text' == $setting_key ) {
1048
  $option->import( '{site_title}' );
1049
  } else if ( 'woocommerce_email_body_background_color' == $setting_key ) {
@@ -1070,15 +1094,15 @@ class Kadence_Woomail_Customizer {
1070
  if ( Kadence_Woomail_Designer::overwrite_options() ) {
1071
 
1072
  // Add custom styles.
1073
- $styles .= Kadence_Woomail_Customizer::get_styles_string();
1074
 
1075
  // Static styles.
1076
- $styles .= Kadence_Woomail_Customizer::get_static_styles();
1077
 
1078
  } else if ( Kadence_Woomail_Designer::is_own_preview_request() ) {
1079
  // Otherwise apply some fixes for Customizer Preview.
1080
  $styles .= 'body { background-color: ' . get_option( 'woocommerce_email_background_color' ) . '; }';
1081
- $styles .= Kadence_Woomail_Customizer::get_static_styles();
1082
  }
1083
 
1084
  // Return styles.
16
  */
17
  if ( ! class_exists( 'Kadence_Woomail_Customizer' ) ) {
18
 
19
+ class Kadence_Woomail_Customizer {
20
+ // Properties
21
+ private static $panels_added = array();
22
+ private static $sections_added = array();
23
+ private static $css_suffixes = null;
24
+ public static $customizer_url = null;
25
+
26
+ /**
27
+ * @var null
28
+ */
29
+ private static $instance = null;
30
+
31
+ /**
32
+ * Instance Control
33
+ */
34
+ public static function get_instance() {
35
+ if ( is_null( self::$instance ) ) {
36
+ self::$instance = new self();
37
+ }
38
+ return self::$instance;
39
  }
 
 
40
 
41
  /**
42
  * Class constructor
180
  remove_action( 'wp_footer', 'et_builder_get_modules_js_data' );
181
  remove_action( 'et_customizer_footer_preview', 'et_load_social_icons' );
182
  }
183
+ public function get_customizer_options_override_ready() {
184
+ foreach ( Kadence_Woomail_Settings::get_email_types() as $key => $value ) {
185
+ add_filter( 'pre_option_woocommerce_' . $key . '_settings', array( $this, 'customizer_woo_options_override' ), 99, 2 );
186
+ }
187
  }
188
+ public function customizer_woo_options_override( $value = array(), $option ) {
189
+ if ( isset( $_POST['customized'] ) ) {
190
+ $post_values = json_decode( stripslashes_deep( $_POST['customized'] ), true );
191
+ if ( isset( $_POST['customized'] ) && ! empty( $post_values ) ) {
192
+ if ( is_array( $post_values ) ) {
193
+ foreach ( $post_values as $key => $current_value ) {
194
+ if ( strpos( $key, $option ) !== false ) {
195
+ $subkey = str_replace( $option, '', $key );
196
+ $subkey = str_replace( '[', '', rtrim( $subkey, ']' ) );
197
+ $value[ $subkey ] = $current_value;
198
+ }
199
  }
200
  }
201
  }
202
  }
203
+ return $value;
204
  }
 
 
205
 
206
+ public function change_publish_button( $translation, $text ) {
207
 
208
+ if ( $text == 'Publish' ) {
209
+ return __( 'Save', 'kadence-woocommerce-email-designer' );
210
+ } else if ( $text == 'Published' ) {
211
+ return __( 'Saved', 'kadence-woocommerce-email-designer' );
212
+ }
213
 
214
+ return $translation;
215
+ }
216
 
217
  /**
218
+ * Add customizer capability
219
+ *
220
+ * @access public
221
+ * @param array $capabilities
222
+ * @return array
223
+ */
224
  public function add_customize_capability( $capabilities ) {
225
  // Remove filter (circular reference)
226
+ remove_filter( 'user_has_cap', array( $this, 'add_customize_capability' ), 99 );
227
 
228
  // Add customize capability for admin user if this is own customizer request
229
  if ( Kadence_Woomail_Designer::is_admin() && Kadence_Woomail_Designer::is_own_customizer_request() ) {
230
+ $capabilities['customize'] = true;
231
  }
232
 
233
  // Add filter
234
+ add_filter( 'user_has_cap', array( $this, 'add_customize_capability' ), 99 );
235
 
236
  // Return capabilities
237
  return $capabilities;
238
  }
239
 
240
+ /**
241
+ * Get Customizer URL
242
+ */
243
+ public static function get_customizer_url() {
244
+ if ( is_null( self::$customizer_url ) ) {
245
+ self::$customizer_url = add_query_arg(
246
+ array(
247
+ 'kt-woomail-customize' => '1',
248
+ 'url' => urlencode( add_query_arg( array( 'kt-woomail-preview' => '1' ), home_url( '/' ) ) ),
249
+ 'return' => urlencode( Kadence_Woomail_Woo::get_email_settings_page_url() ),
250
+ ),
251
+ admin_url( 'customize.php' )
252
+ );
253
+ }
254
+
255
+ return self::$customizer_url;
256
  }
257
 
258
+ /**
259
+ * Change site name for customizer
260
+ *
261
+ * @access public
262
+ * @param string $name
263
+ * @return string
264
+ */
265
+ public function change_site_name( $name ) {
266
+ return __( 'WooCommerce Emails', 'kadence-woocommerce-email-designer' );
267
+ }
268
 
269
+ /**
270
+ * Remove unrelated components
271
+ *
272
+ * @access public
273
+ * @param array $components
274
+ * @param object $wp_customize
275
+ * @return array
276
+ */
277
+ public function remove_unrelated_components( $components, $wp_customize ) {
278
+ // Iterate over components
279
+ foreach ( $components as $component_key => $component ) {
280
 
281
+ // Check if current component is own component
282
+ if ( ! self::is_own_component( $component ) ) {
283
+ unset( $components[ $component_key ] );
284
+ }
285
+ }
286
+
287
+ // Return remaining components
288
+ return $components;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
289
  }
290
 
291
+ /**
292
+ * Remove unrelated sections
293
+ *
294
+ * @access public
295
+ * @param bool $active
296
+ * @param object $section
297
+ * @return bool
298
+ */
299
+ public function remove_unrelated_sections( $active, $section ) {
300
+ // Check if current section is own section
301
+ if ( ! self::is_own_section( $section->id ) ) {
302
+ return false;
303
+ }
304
 
305
+ // We can override $active completely since this runs only on own Customizer requests
306
+ return true;
307
+ }
 
 
 
 
 
 
 
308
 
309
+ /**
310
+ * Remove unrelated controls
311
+ *
312
+ * @access public
313
+ * @param bool $active
314
+ * @param object $control
315
+ * @return bool
316
+ */
317
+ public function remove_unrelated_controls( $active, $control ) {
318
+ // Check if current control belongs to own section
319
+ if ( ! self::is_own_section( $control->section ) ) {
320
+ return false;
321
  }
 
322
 
323
+ // We can override $active completely since this runs only on own Customizer requests
324
+ return $active;
325
+ }
326
 
327
+ /**
328
+ * Check if current component is own component
329
+ *
330
+ * @access public
331
+ * @param string $component
332
+ * @return bool
333
+ */
334
+ public static function is_own_component( $component ) {
335
+ return false;
336
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
337
 
338
+ /**
339
+ * Check if current section is own section
340
+ *
341
+ * @access public
342
+ * @param string $key
343
+ * @return bool
344
+ */
345
+ public static function is_own_section( $key ) {
346
+ // Iterate over own sections
347
+ foreach ( Kadence_Woomail_Settings::get_sections() as $section_key => $section ) {
348
+ if ( $key === 'kt_woomail_' . $section_key ) {
349
+ return true;
350
+ }
351
  }
352
 
353
+ // Section not found
354
+ return false;
355
+ }
 
356
 
357
+ /**
358
+ * Enqueue Customizer scripts
359
+ *
360
+ * @access public
361
+ * @return void
362
+ */
363
+ public function enqueue_customizer_scripts() {
364
+ // Enqueue Customizer script
365
+ wp_enqueue_style( 'kt-woomail-customizer-styles', KT_WOOMAIL_URL . '/assets/css/customizer-styles.css', KT_WOOMAIL_VERSION );
366
+ wp_enqueue_script( 'kt-woomail-customizer-scripts', KT_WOOMAIL_URL . '/assets/js/customizer-scripts.js', array( 'jquery', 'customize-controls' ), KT_WOOMAIL_VERSION, true );
367
+
368
+ // Send variables to Javascript
369
+ wp_localize_script(
370
+ 'kt-woomail-customizer-scripts',
371
+ 'kt_woomail',
372
+ array(
373
+ 'ajax_url' => admin_url( 'admin-ajax.php' ),
374
+ 'customizer_url' => self::get_customizer_url(),
375
+ 'responsive_mode' => self::opt( 'responsive_mode' ),
376
+ 'labels' => array(
377
+ 'reset' => __( 'Reset', 'kadence-woocommerce-email-designer' ),
378
+ 'customtitle' => __( 'Woocommerce Emails', 'kadence-woocommerce-email-designer' ),
379
+ 'send_confirmation' => __( 'Are you sure you want to send an email?', 'kadence-woocommerce-email-designer' ),
380
+ 'sent' => __( 'Email Sent!', 'kadence-woocommerce-email-designer' ),
381
+ 'failed' => __( 'Email failed, make sure you have a working email server for your site.', 'kadence-woocommerce-email-designer' ),
382
+ 'reset_confirmation' => __( 'Are you sure you want to reset all changes made to your WooCommerce emails?', 'kadence-woocommerce-email-designer' ),
383
+ 'description' => __( '<p>Use native WordPress Customizer to make Woocommerce emails match your brand.</p>', 'kadence-woocommerce-email-designer' ) . '<p>' . sprintf( __( '<a href="%1$s">Kadence Woocommerce Email Designer</a> plugin by <a href="%2$s">Kadence Themes</a>.', 'kadence-woocommerce-email-designer' ), 'https://www.kadencethemes.com', 'https://www.kadencethemes.com' ) . '</p>',
384
+ ),
385
+ )
386
+ );
387
+ // Localize
388
+ wp_localize_script(
389
+ 'kt-woomail-customizer-scripts',
390
+ 'KWMDIEl10n',
391
+ array(
392
+ 'emptyImport' => __( 'Please choose a file to import.', 'customizer-export-import' ),
393
+ 'confrim_override' => __( 'WARNING: This will override all of your current settings. Are you sure you want to do that? We suggest geting an export of your current settings incase you want to revert back.', 'customizer-export-import' ),
394
+ )
395
+ );
396
 
397
+ // Config
398
+ wp_localize_script(
399
+ 'kt-woomail-customizer-scripts',
400
+ 'KWMDIEConfig',
401
+ array(
402
+ 'customizerURL' => admin_url( 'customize.php?kt-woomail-customize=1&url=' . urlencode( add_query_arg( array( 'kt-woomail-preview' => '1' ), site_url( '/' ) ) ) ),
403
+ 'exportNonce' => wp_create_nonce( 'kt-woomail-exporting' ),
404
+ )
405
+ );
406
+ }
407
+
408
+ /**
409
+ * Add settings
410
+ *
411
+ * @access public
412
+ * @param object $wp_customize
413
+ * @return void
414
+ */
415
+ public function add_settings( $wp_customize ) {
416
+ // Iterate over settings
417
+ foreach ( Kadence_Woomail_Settings::get_settings() as $setting_key => $setting ) {
418
+
419
+ // Add setting
420
+ $wp_customize->add_setting(
421
+ 'kt_woomail[' . $setting_key . ']',
422
+ array(
423
+ 'type' => 'option',
424
+ 'transport' => isset( $setting['transport'] ) ? $setting['transport'] : 'postMessage',
425
+ 'capability' => Kadence_Woomail_Designer::get_admin_capability(),
426
+ 'default' => isset( $setting['default'] ) ? $setting['default'] : '',
427
+ 'sanitize_callback' => isset( $settings['sanitize_callback'] ) ? array(
428
+ 'WP_Customize_' . $setting['control_type'] . 'Control',
429
+ $settings['sanitize_callback'],
430
+ ) : '',
431
+ )
432
+ );
433
  }
434
+ // Iterate over settings
435
+ foreach ( Kadence_Woomail_Settings::get_woo_settings() as $setting_key => $setting ) {
436
+ // Add setting
437
+ $wp_customize->add_setting(
438
+ $setting_key,
439
+ array(
440
+ 'type' => 'option',
441
+ 'transport' => isset( $setting['transport'] ) ? $setting['transport'] : 'postMessage',
442
+ 'capability' => Kadence_Woomail_Designer::get_admin_capability(),
443
+ 'default' => isset( $setting['default'] ) ? $setting['default'] : '',
444
+ )
445
+ );
446
  }
 
 
447
  }
448
+
449
+ /**
450
+ * Add controls, sections and panels
451
+ *
452
+ * @access public
453
+ * @param object $wp_customize
454
+ * @return void
455
+ */
456
+ public function add_controls( $wp_customize ) {
457
+ // Iterate over settings
458
+ foreach ( Kadence_Woomail_Settings::get_settings() as $setting_key => $setting ) {
459
+
460
+ // Maybe add section
461
+ self::maybe_add_section( $wp_customize, $setting );
462
+
463
+ // Maybe add panel
464
+ self::maybe_add_panel( $wp_customize, $setting );
465
+
466
+ // Get control class name (none, color, upload, image)
467
+ $control_class = isset( $setting['control_type'] ) ? ucfirst( $setting['control_type'] ) . '_' : '';
468
+ $control_class = 'WP_Customize_' . $control_class . 'Control';
469
+ // Control configuration
470
+ $control_config = array(
471
+ 'label' => $setting['title'],
472
+ 'settings' => 'kt_woomail[' . $setting_key . ']',
473
+ 'capability' => Kadence_Woomail_Designer::get_admin_capability(),
474
+ 'priority' => isset( $setting['priority'] ) ? $setting['priority'] : 10,
475
+ 'active_callback' => ( isset( $setting['active_callback'] ) ) ? array(
476
  'Kadence_Woomail_Customizer',
477
+ 'active_callback',
478
+ ) : '__return_true',
479
+ );
480
+
481
+ // Description
482
+ if ( ! empty( $setting['description'] ) ) {
483
+ $control_config['description'] = $setting['description'];
484
+ }
485
+
486
+ // Add control to section
487
+ if ( ! empty( $setting['section'] ) ) {
488
+ $control_config['section'] = 'kt_woomail_' . $setting['section'];
489
+ }
490
+
491
+ // Add control to panel
492
+ if ( ! empty( $setting['panel'] ) ) {
493
+ $control_config['panel'] = 'kt_woomail_' . $setting['panel'];
494
+ }
495
 
496
+ // Add custom field type
497
+ if ( ! empty( $setting['type'] ) ) {
498
+ $control_config['type'] = $setting['type'];
499
+ }
500
+
501
+ // Add select field options
502
+ if ( ! empty( $setting['choices'] ) ) {
503
+ $control_config['choices'] = $setting['choices'];
504
+ }
505
+ // Input attributese
506
+ if ( ! empty( $setting['input_attrs'] ) ) {
507
+ $control_config['input_attrs'] = $setting['input_attrs'];
508
+ }
509
+ // Add repeater controls:
510
+ if ( ! empty( $setting['customizer_repeater_image_control'] ) ) {
511
+ $control_config['customizer_repeater_image_control'] = $setting['customizer_repeater_image_control'];
512
+ }
513
+ if ( ! empty( $setting['customizer_repeater_icon_control'] ) ) {
514
+ $control_config['customizer_repeater_icon_control'] = $setting['customizer_repeater_icon_control'];
515
+ }
516
+ if ( ! empty( $setting['customizer_repeater_icon_color'] ) ) {
517
+ $control_config['customizer_repeater_icon_color'] = $setting['customizer_repeater_icon_color'];
518
+ }
519
+ if ( ! empty( $setting['customizer_repeater_title_control'] ) ) {
520
+ $control_config['customizer_repeater_title_control'] = $setting['customizer_repeater_title_control'];
521
+ }
522
+ if ( ! empty( $setting['customizer_repeater_link_control'] ) ) {
523
+ $control_config['customizer_repeater_link_control'] = $setting['customizer_repeater_link_control'];
524
+ }
525
+ // Add control
526
+ $wp_customize->add_control( new $control_class( $wp_customize, 'kt_woomail_' . $setting_key, $control_config ) );
527
  }
528
+ // Iterate over settings
529
+ foreach ( Kadence_Woomail_Settings::get_woo_settings() as $setting_key => $setting ) {
530
+
531
+ // Maybe add section
532
+ self::maybe_add_section( $wp_customize, $setting );
533
+
534
+ // Maybe add panel
535
+ self::maybe_add_panel( $wp_customize, $setting );
536
+
537
+ // Get control class name (none, color, upload, image)
538
+ $control_class = isset( $setting['control_type'] ) ? ucfirst( $setting['control_type'] ) . '_' : '';
539
+ $control_class = 'WP_Customize_' . $control_class . 'Control';
540
+
541
+ // Control configuration
542
+ $control_config = array(
543
+ 'label' => $setting['title'],
544
+ 'settings' => $setting_key,
545
+ 'capability' => Kadence_Woomail_Designer::get_admin_capability(),
546
+ 'priority' => isset( $setting['priority'] ) ? $setting['priority'] : 10,
547
+ 'active_callback' => ( isset( $setting['active_callback'] ) ) ? array(
548
+ 'Kadence_Woomail_Customizer',
549
+ 'active_woo_callback',
550
+ ) : '__return_true',
551
+ );
552
 
553
+ // Description
554
+ if ( ! empty( $setting['description'] ) ) {
555
+ $control_config['description'] = $setting['description'];
556
+ }
557
+
558
+ // Add control to section
559
+ if ( ! empty( $setting['section'] ) ) {
560
+ $control_config['section'] = 'kt_woomail_' . $setting['section'];
561
+ }
562
+
563
+ // Add control to panel
564
+ if ( ! empty( $setting['panel'] ) ) {
565
+ $control_config['panel'] = 'kt_woomail_' . $setting['panel'];
566
+ }
567
+ // Add custom field type
568
+ if ( ! empty( $setting['type'] ) ) {
569
+ $control_config['type'] = $setting['type'];
570
+ }
571
+ // Add custom field type
572
+ if ( ! empty( $setting['label'] ) ) {
573
+ $control_config['label'] = $setting['label'];
574
+ }
575
+
576
+ // Add select field options
577
+ if ( ! empty( $setting['choices'] ) ) {
578
+ $control_config['choices'] = $setting['choices'];
579
+ }
580
+ // Input attributese
581
+ if ( ! empty( $setting['input_attrs'] ) ) {
582
+ $control_config['input_attrs'] = $setting['input_attrs'];
583
+ }
584
+ // Add control
585
+ $wp_customize->add_control( new $control_class( $wp_customize, $setting_key, $control_config ) );
586
  }
587
+ }
588
+ public static function active_callback( $object ) {
589
+ if ( ! isset( $object->setting->id ) ) {
590
+ return true;
591
+ }
592
+ $opt_name = explode( '[', $object->setting->id );
593
+ $opt_name = $opt_name[0];
594
+ $id = str_replace( $opt_name . '[', '', str_replace( ']', '', $object->setting->id ) );
595
+
596
+ $settings = Kadence_Woomail_Settings::get_settings();
597
 
598
+ if ( ! isset( $settings[ $id ] ) ) {
599
+ return true;
 
600
  }
601
+ $field_id = $settings[ $id ]['active_callback']['id'];
602
+ $compare = $settings[ $id ]['active_callback']['compare'];
603
+ $value = $settings[ $id ]['active_callback']['value'];
604
+ $field_value = self::opt( $field_id );
605
+ switch ( $compare ) {
606
+ case '==':
607
+ case '=':
608
+ case 'equals':
609
+ case 'equal':
610
+ $show = ( $field_value == $value ) ? true : false;
611
+ break;
612
+
613
+ case '!=':
614
+ case 'not equal':
615
+ $show = ( $field_value != $value ) ? true : false;
616
+ break;
617
  }
618
+ return $show;
619
+ }
620
+ public static function active_woo_callback( $object ) {
621
+ if ( ! isset( $object->setting->id ) ) {
622
+ return true;
623
  }
624
+ $id = $object->setting->id;
625
 
626
+ $settings = Kadence_Woomail_Settings::get_woo_settings();
627
+
628
+ if ( ! isset( $settings[ $id ] ) ) {
629
+ return true;
630
  }
631
+ $field_id = $settings[ $id ]['active_callback']['id'];
632
+ $compare = $settings[ $id ]['active_callback']['compare'];
633
+ $value = $settings[ $id ]['active_callback']['value'];
634
+ $field_value = self::opt( $field_id );
635
+ switch ( $compare ) {
636
+ case '==':
637
+ case '=':
638
+ case 'equals':
639
+ case 'equal':
640
+ $show = ( $field_value == $value ) ? true : false;
641
+ break;
642
+
643
+ case '!=':
644
+ case 'not equal':
645
+ $show = ( $field_value != $value ) ? true : false;
646
+ break;
647
  }
648
+ return $show;
 
649
  }
650
+ /**
651
+ * Maybe add section
652
+ *
653
+ * @access public
654
+ * @param object $wp_customize
655
+ * @param array $child
656
+ * @return void
657
+ */
658
+ public static function maybe_add_section( $wp_customize, $child ) {
659
+ // Get sections
660
+ $sections = Kadence_Woomail_Settings::get_sections();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
661
 
662
+ // Check if section is set and exists
663
+ if ( ! empty( $child['section'] ) && isset( $sections[ $child['section'] ] ) ) {
664
 
665
+ // Reference current section key
666
+ $section_key = $child['section'];
667
+
668
+ // Check if section was not added yet
669
+ if ( ! in_array( $section_key, self::$sections_added, true ) ) {
670
+
671
+ // Reference current section
672
+ $section = $sections[ $section_key ];
673
+
674
+ // Section config
675
+ $section_config = array(
676
+ 'title' => $section['title'],
677
+ 'priority' => ( isset( $section['priority'] ) ? $section['priority'] : 10 ),
678
+ );
679
+
680
+ // Description
681
+ if ( ! empty( $section['description'] ) ) {
682
+ $section_config['description'] = $section['description'];
683
+ }
684
+
685
+ // Maybe add panel
686
+ self::maybe_add_panel( $wp_customize, $section );
687
+
688
+ // Maybe add section to panel
689
+ if ( ! empty( $section['panel'] ) ) {
690
+ $section_config['panel'] = 'kt_woomail_' . $section['panel'];
691
+ }
692
+
693
+ // Register section
694
+ $wp_customize->add_section( 'kt_woomail_' . $section_key, $section_config );
695
+
696
+ // Track which sections were added
697
+ self::$sections_added[] = $section_key;
698
+ }
699
+ }
700
  }
701
+
702
+ /**
703
+ * Maybe add panel
704
+ *
705
+ * @access public
706
+ * @param object $wp_customize
707
+ * @param array $child
708
+ * @return void
709
+ */
710
+ public static function maybe_add_panel( $wp_customize, $child ) {
711
+ // Get panels
712
+ $panels = Kadence_Woomail_Settings::get_panels();
713
+ // Check if panel is set and exists
714
+ if ( ! empty( $child['panel'] ) && isset( $panels[ $child['panel'] ] ) ) {
715
+
716
+ // Reference current panel key
717
+ $panel_key = $child['panel'];
718
+
719
+ // Check if panel was not added yet
720
+ if ( ! in_array( $panel_key, self::$panels_added, true ) ) {
721
+
722
+ // Reference current panel
723
+ $panel = $panels[ $panel_key ];
724
+
725
+ // Panel config
726
+ $panel_config = array(
727
+ 'title' => $panel['title'],
728
+ 'priority' => ( isset( $panel['priority'] ) ? $panel['priority'] : 10 ),
729
+ 'capability' => Kadence_Woomail_Designer::get_admin_capability(),
730
+ );
731
+
732
+ // Panel description
733
+ if ( ! empty( $panel['description'] ) ) {
734
+ $panel_config['description'] = $panel['description'];
735
+ }
736
+
737
+ // Register panel
738
+ $wp_customize->add_panel( 'kt_woomail_' . $panel_key, $panel_config );
739
+
740
+ // Track which panels were added
741
+ self::$panels_added[] = $panel_key;
742
+ }
743
+ }
744
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
745
 
746
  /**
747
  * Get styles string
753
  public static function get_styles_string( $add_custom_css = true ) {
754
  $styles_array = array();
755
  $styles = '';
756
+ $responsive_check = self::opt( 'responsive_mode' );
757
 
758
  // Iterate over settings.
759
  foreach ( Kadence_Woomail_Settings::get_settings() as $setting_key => $setting ) {
760
 
761
  // Only add CSS properties.
762
+ if ( isset( $setting['live_method'] ) && $setting['live_method'] === 'css' ) {
763
 
764
  // Iterate over selectors.
765
  foreach ( $setting['selectors'] as $selector => $properties ) {
774
  }
775
  }
776
  if ( 'border_width' == $setting_key ) {
777
+ if ( '' === self::get_stored_value( 'border_width_right' ) ) {
778
  $property = 'border-width';
779
+ } else if ( '0' === self::get_stored_value( 'border_width' ) ) {
780
  $property = 'border-top';
781
  }
782
  }
783
+ if ( 'border_width_right' == $setting_key && '0' === self::get_stored_value( 'border_width_right' ) ) {
784
  $property = 'border-right';
785
  }
786
+ if ( 'border_width_left' == $setting_key && '0' === self::get_stored_value( 'border_width_left' ) ) {
787
  $property = 'border-left';
788
  }
789
+ if ( 'border_width_bottom' == $setting_key && '0' === self::get_stored_value( 'border_width_bottom' ) ) {
790
  $property = 'border-bottom';
791
  }
792
+
793
  if ( 'items_table_padding' == $setting_key && ( '.order-items-normal #body_content_inner table.td th' === $selector || '.order-items-normal #body_content_inner table.td td' === $selector ) ) {
794
+ if ( '' === self::get_stored_value( 'items_table_padding_left_right' ) ) {
795
  $property = 'padding';
796
  }
797
  }
798
  if ( ! $responsive_check && 'content_inner_width' == $setting_key ) {
799
  continue;
800
  }
801
+ $styles_array[ $selector ][ $property ] = self::opt( $setting_key, $selector );
802
  }
803
  }
804
  }
822
 
823
  // Add custom CSS
824
  if ( $add_custom_css ) {
825
+ $styles .= self::opt( 'custom_css' );
826
  }
827
 
828
  // Return styles string
839
  */
840
  public static function opt( $key, $selector = null ) {
841
  // Get raw value
842
+ $stored_value = self::get_stored_value( $key, Kadence_Woomail_Settings::get_default_value( $key ) );
843
 
844
  // Prepare value
845
+ $value = self::prepare( $key, $stored_value, $selector );
846
 
847
  // Allow developers to override.
848
  return apply_filters( 'kt_woomail_option_value', $value, $key, $selector, $stored_value );
868
  // Stored value not found, use default value.
869
  return $default;
870
  }
871
+ /**
872
+ * Prepare value for use in HTML
873
+ *
874
+ * @access public
875
+ * @param string $key
876
+ * @param string $value
877
+ * @param string $selector
878
+ * @return string
879
+ */
880
+ public static function prepare( $key, $value, $selector = null ) {
881
+ // Append CSS suffix to value
882
+ $value .= self::get_css_suffix( $key );
883
+
884
+ // Special case for shadow
885
+ if ( $key === 'shadow' ) {
886
+ $value = '0 ' . ( $value > 0 ? 1 : 0 ) . 'px ' . ( $value * 4 ) . 'px ' . $value . 'px rgba(0,0,0,0.1) !important';
887
+ }
888
+
889
+ // Special case for border width 0.
890
+ if ( $key === 'border_width_right' && '0px' === $value ) {
891
+ $background = get_option( 'woocommerce_email_background_color' );
892
+ $value = '0px solid ' . $background . ' !important';
893
+ }
894
+ if ( $key === 'border_width_left' && '0px' === $value ) {
895
+ $background = get_option( 'woocommerce_email_background_color' );
896
+ $value = '0px solid ' . $background . ' !important';
897
+ }
898
+ if ( $key === 'border_width_bottom' && '0px' === $value ) {
899
+ $background = get_option( 'woocommerce_email_background_color' );
900
+ $value = '0px solid ' . $background . ' !important';
901
+ }
902
+ if ( $key === 'border_width' && '0px' === $value ) {
903
+ $background = get_option( 'woocommerce_email_background_color' );
904
+ $value = '0px solid ' . $background . ' !important';
905
+ }
906
+
907
+ // Font family
908
+ if ( substr( $key, -11 ) === 'font_family' ) {
909
+ $value = isset( Kadence_Woomail_Settings::$font_family_mapping[ $value ] ) ? Kadence_Woomail_Settings::$font_family_mapping[ $value ] : $value;
910
+ }
911
+
912
+ // Return prepared value
913
+ return $value;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
914
  }
915
 
916
+ /**
917
+ * Get CSS suffix by key or all CSS suffixes
918
+ *
919
+ * @access public
920
+ * @param string $key
921
+ * @return mixed
922
+ */
923
+ public static function get_css_suffix( $key = null ) {
924
+ // Define CSS suffixes.
925
+ if ( null === self::$css_suffixes ) {
926
+ self::$css_suffixes = array(
927
+ 'email_padding' => 'px',
928
+ 'email_padding_bottom' => 'px',
929
+ 'content_padding_top' => 'px',
930
+ 'content_padding_bottom' => 'px',
931
+ 'content_padding' => 'px',
932
+
933
+ 'content_width' => 'px',
934
+ 'content_inner_width' => 'px',
935
+ 'border_width' => 'px',
936
+ 'border_width_right' => 'px',
937
+ 'border_width_bottom' => 'px',
938
+ 'border_width_left' => 'px',
939
+ 'border_radius' => 'px !important',
940
+
941
+ 'btn_border_width' => 'px',
942
+ 'btn_size' => 'px',
943
+ 'btn_left_right_padding' => 'px',
944
+ 'btn_top_bottom_padding' => 'px',
945
+ 'btn_border_radius' => 'px',
946
+
947
+ 'header_image_maxwidth' => 'px',
948
+ 'header_image_padding_top_bottom' => 'px',
949
+
950
+ 'header_padding_top' => 'px',
951
+ 'header_padding_bottom' => 'px',
952
+ 'header_padding_left_right' => 'px',
953
+ 'heading_font_size' => 'px',
954
+ 'heading_line_height' => 'px',
955
+ 'subtitle_font_size' => 'px',
956
+ 'subtitle_line_height' => 'px',
957
+
958
+ 'font_size' => 'px',
959
+ 'line_height' => 'px',
960
+
961
+ 'h2_font_size' => 'px',
962
+ 'h2_line_height' => 'px',
963
+ 'h2_separator_height' => 'px',
964
+ 'h2_padding_top' => 'px',
965
+ 'h2_margin_bottom' => 'px',
966
+ 'h2_padding_bottom' => 'px',
967
+ 'h2_margin_top' => 'px',
968
+ 'h3_font_size' => 'px',
969
+ 'h3_line_height' => 'px',
970
+
971
+ 'addresses_border_width' => 'px',
972
+ 'addresses_padding' => 'px',
973
+
974
+ 'footer_top_padding' => 'px',
975
+ 'footer_bottom_padding' => 'px',
976
+ 'footer_left_right_padding' => 'px',
977
+ 'footer_font_size' => 'px',
978
+ 'footer_social_title_size' => 'px',
979
+ 'footer_social_top_padding' => 'px',
980
+ 'footer_social_bottom_padding' => 'px',
981
+ 'footer_social_border_width' => 'px',
982
+
983
+ 'footer_credit_top_padding' => 'px',
984
+ 'footer_credit_bottom_padding' => 'px',
985
+
986
+ 'items_table_border_width' => 'px',
987
+ 'items_table_separator_width' => 'px',
988
+ 'items_table_padding' => 'px',
989
+ 'items_table_padding_left_right' => 'px',
990
+ );
991
+ }
992
+
993
+ // Return single suffix
994
+ if ( isset( $key ) ) {
995
+ return isset( self::$css_suffixes[ $key ] ) ? self::$css_suffixes[ $key ] : '';
996
+ }
997
+ // Return all suffixes for use in Javascript
998
+ else {
999
+ return self::$css_suffixes;
1000
+ }
1001
  }
1002
 
1003
+ /**
1004
+ * Reset to default values via Ajax request
1005
+ *
1006
+ * @access public
1007
+ * @return void
1008
+ */
1009
+ public function ajax_send_email() {
1010
+ // Check request
1011
+ if ( empty( $_REQUEST['wp_customize'] ) || $_REQUEST['wp_customize'] !== 'on' || empty( $_REQUEST['action'] ) || $_REQUEST['action'] !== 'kt_woomail_send_email' || empty( $_REQUEST['recipients'] ) ) {
1012
+ exit;
1013
+ }
1014
 
1015
+ // Check if user is allowed to send email
1016
+ if ( ! Kadence_Woomail_Designer::is_admin() ) {
1017
+ exit;
1018
+ }
1019
 
1020
+ $recipients = wc_clean( $_REQUEST['recipients'] );
1021
+ $content = Kadence_Woomail_Preview::get_preview_email( true, $recipients );
1022
+ echo $content;
 
 
 
 
 
 
 
1023
  }
1024
 
 
 
 
 
 
1025
 
1026
+ /**
1027
+ * Reset to default values via Ajax request
1028
+ *
1029
+ * @access public
1030
+ * @return void
1031
+ */
1032
+ public function ajax_reset() {
1033
+ // Check request
1034
+ if ( empty( $_REQUEST['wp_customize'] ) || $_REQUEST['wp_customize'] !== 'on' || empty( $_REQUEST['action'] ) || $_REQUEST['action'] !== 'kt_woomail_reset' ) {
1035
+ exit;
1036
+ }
1037
 
1038
+ // Check if user is allowed to reset values
1039
+ if ( ! Kadence_Woomail_Designer::is_admin() ) {
1040
+ exit;
1041
+ }
1042
+ global $wp_customize;
1043
+
1044
+ // Reset to default values
1045
+ self::reset( $wp_customize );
1046
+
1047
+ exit;
1048
+ }
1049
 
1050
  /**
1051
  * Reset to default values
1059
  require_once KT_WOOMAIL_PATH . 'includes/class-kadence-woomail-import-option.php';
1060
  // Run through the woocommerce settings we are overriding.
1061
  foreach ( Kadence_Woomail_Settings::get_woo_settings() as $setting_key => $setting ) {
1062
+ $option = new Kadence_Woomail_Import_Option(
1063
+ $wp_customize,
1064
+ $setting_key,
1065
+ array(
1066
+ 'default' => '',
1067
+ 'type' => 'option',
1068
+ 'capability' => Kadence_Woomail_Designer::get_admin_capability(),
1069
+ )
1070
+ );
1071
  if ( 'woocommerce_email_footer_text' == $setting_key ) {
1072
  $option->import( '{site_title}' );
1073
  } else if ( 'woocommerce_email_body_background_color' == $setting_key ) {
1094
  if ( Kadence_Woomail_Designer::overwrite_options() ) {
1095
 
1096
  // Add custom styles.
1097
+ $styles .= self::get_styles_string();
1098
 
1099
  // Static styles.
1100
+ $styles .= self::get_static_styles();
1101
 
1102
  } else if ( Kadence_Woomail_Designer::is_own_preview_request() ) {
1103
  // Otherwise apply some fixes for Customizer Preview.
1104
  $styles .= 'body { background-color: ' . get_option( 'woocommerce_email_background_color' ) . '; }';
1105
+ $styles .= self::get_static_styles();
1106
  }
1107
 
1108
  // Return styles.
includes/class-kadence-woomail-settings.php CHANGED
@@ -948,6 +948,22 @@ if ( ! class_exists( 'Kadence_Woomail_Settings' ) ) {
948
  ),
949
  );
950
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
951
  }
952
  $main = array(
953
  /*
@@ -2956,6 +2972,7 @@ To reset your password, visit the following address:',
2956
  'customer_revocation_heading' => __( 'Your revocation', 'kadence-woocommerce-email-designer' ),
2957
  'customer_sepa_direct_debit_mandate' => __( 'SEPA Direct Debit Mandate', 'kadence-woocommerce-email-designer' ),
2958
  'customer_trusted_shops' => _x( 'Please rate your Order', 'trusted-shops', 'kadence-woocommerce-email-designer' ),
 
2959
  );
2960
  self::$default_values = apply_filters( 'kadence_woomail_email_settings_default_values', $default_values );
2961
  }
948
  ),
949
  );
950
  }
951
+ if ( 'woocommerce_waitlist_mailout' == $key ) {
952
+ $extra_email_text[ $key . '_hide_content' ] = array(
953
+ 'title' => __( 'Remove Normal Content Output', 'kadence-woocommerce-email-designer' ),
954
+ 'control_type' => 'toggleswitch',
955
+ 'section' => 'mtype',
956
+ 'transport' => 'refresh',
957
+ 'default' => self::get_default_value( $key . '_hide_content' ),
958
+ 'original' => '',
959
+ 'priority' => 3,
960
+ 'active_callback' => array(
961
+ 'id' => 'email_type',
962
+ 'compare' => '==',
963
+ 'value' => $key,
964
+ ),
965
+ );
966
+ }
967
  }
968
  $main = array(
969
  /*
2972
  'customer_revocation_heading' => __( 'Your revocation', 'kadence-woocommerce-email-designer' ),
2973
  'customer_sepa_direct_debit_mandate' => __( 'SEPA Direct Debit Mandate', 'kadence-woocommerce-email-designer' ),
2974
  'customer_trusted_shops' => _x( 'Please rate your Order', 'trusted-shops', 'kadence-woocommerce-email-designer' ),
2975
+ 'woocommerce_waitlist_mailout_hide_content' => false,
2976
  );
2977
  self::$default_values = apply_filters( 'kadence_woomail_email_settings_default_values', $default_values );
2978
  }
kadence-woocommerce-email-designer.php CHANGED
@@ -3,13 +3,13 @@
3
  * Plugin Name: Kadence WooCommerce Email Designer
4
  * Plugin URI: http://kadencethemes.com/products/woocommerce-email-designer/
5
  * Description: Customize the default woocommerce email templates design and text through the native WordPress customizer. Preview emails and send test emails.
6
- * Version: 1.3.3
7
  * Author: Kadence Themes
8
  * Author URI: http://kadencethemes.com/
9
  * License: GPLv2 or later
10
  * Text Domain: kadence-woocommerce-email-designer
11
  * WC requires at least: 3.4.0
12
- * WC tested up to: 3.7.0
13
  *
14
  * @package Kadence Woocommerce Email Designer
15
  */
@@ -291,7 +291,7 @@ class Kadence_Woomail_Designer {
291
  $body_text = str_replace( '{invoice_pay_link}', $pay_link, $body_text );
292
  }
293
  } else {
294
- $body_text = Kadence_Woomail_Customizer::opt( $key.'_body' );
295
  }
296
  $body_text = str_replace( '{site_title}', get_bloginfo( 'name', 'display' ), $body_text );
297
  if ( $order ) {
@@ -418,6 +418,7 @@ class Kadence_Woomail_Designer {
418
  $body_text = str_replace( '{customer_username}', $email->user_login, $body_text );
419
  } elseif ( is_a( $email->object, 'WC_Product' ) ) {
420
  $body_text = str_replace( '{product_title}', $email->object->get_title(), $body_text );
 
421
  }
422
 
423
  $body_text = apply_filters( 'kadence_woomail_no_order_body_text', $body_text, $email );
3
  * Plugin Name: Kadence WooCommerce Email Designer
4
  * Plugin URI: http://kadencethemes.com/products/woocommerce-email-designer/
5
  * Description: Customize the default woocommerce email templates design and text through the native WordPress customizer. Preview emails and send test emails.
6
+ * Version: 1.3.4
7
  * Author: Kadence Themes
8
  * Author URI: http://kadencethemes.com/
9
  * License: GPLv2 or later
10
  * Text Domain: kadence-woocommerce-email-designer
11
  * WC requires at least: 3.4.0
12
+ * WC tested up to: 3.7.1
13
  *
14
  * @package Kadence Woocommerce Email Designer
15
  */
291
  $body_text = str_replace( '{invoice_pay_link}', $pay_link, $body_text );
292
  }
293
  } else {
294
+ $body_text = Kadence_Woomail_Customizer::opt( $key . '_body' );
295
  }
296
  $body_text = str_replace( '{site_title}', get_bloginfo( 'name', 'display' ), $body_text );
297
  if ( $order ) {
418
  $body_text = str_replace( '{customer_username}', $email->user_login, $body_text );
419
  } elseif ( is_a( $email->object, 'WC_Product' ) ) {
420
  $body_text = str_replace( '{product_title}', $email->object->get_title(), $body_text );
421
+ $body_text = str_replace( '{product_link}', $email->object->get_permalink(), $body_text );
422
  }
423
 
424
  $body_text = apply_filters( 'kadence_woomail_no_order_body_text', $body_text, $email );
languages/kadence-woocommerce-email-designer.pot CHANGED
@@ -2,7 +2,7 @@
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: Kadence Woocommerce Email Designer\n"
5
- "POT-Creation-Date: 2019-08-26 17:26-0600\n"
6
  "PO-Revision-Date: 2015-05-08 13:15-0700\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
@@ -10,7 +10,7 @@ msgstr ""
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
- "X-Generator: Poedit 2.2.1\n"
14
  "X-Poedit-KeywordsList: __;_e;_n:1,2;esc_attr_e;esc_attr__;esc_html__;"
15
  "esc_html_e;esc_html_x:1,2c;_ex:1,2c;_x:1,2c;esc_attr_x:1,2c\n"
16
  "X-Poedit-Basepath: ..\n"
@@ -108,8 +108,8 @@ msgid "Bundled Icon"
108
  msgstr ""
109
 
110
  #: includes/class-customizer-repeater-control.php:346
111
- #: includes/class-kadence-woomail-settings.php:1763
112
- #: includes/class-kadence-woomail-settings.php:1804
113
  msgid "None"
114
  msgstr ""
115
 
@@ -137,53 +137,53 @@ msgstr ""
137
  msgid "Saved"
138
  msgstr ""
139
 
140
- #: includes/class-kadence-woomail-customizer.php:264
141
  msgid "WooCommerce Emails"
142
  msgstr ""
143
 
144
- #: includes/class-kadence-woomail-customizer.php:372
145
  msgid "Reset"
146
  msgstr ""
147
 
148
- #: includes/class-kadence-woomail-customizer.php:373
149
  msgid "Woocommerce Emails"
150
  msgstr ""
151
 
152
- #: includes/class-kadence-woomail-customizer.php:374
153
  msgid "Are you sure you want to send an email?"
154
  msgstr ""
155
 
156
- #: includes/class-kadence-woomail-customizer.php:375
157
  msgid "Email Sent!"
158
  msgstr ""
159
 
160
- #: includes/class-kadence-woomail-customizer.php:376
161
  msgid "Email failed, make sure you have a working email server for your site."
162
  msgstr ""
163
 
164
- #: includes/class-kadence-woomail-customizer.php:377
165
  msgid ""
166
  "Are you sure you want to reset all changes made to your WooCommerce emails?"
167
  msgstr ""
168
 
169
- #: includes/class-kadence-woomail-customizer.php:378
170
  msgid ""
171
  "<p>Use native WordPress Customizer to make Woocommerce emails match your "
172
  "brand.</p>"
173
  msgstr ""
174
 
175
- #: includes/class-kadence-woomail-customizer.php:378
176
  #, php-format
177
  msgid ""
178
- "<a href=\"%s\">Kadence Woocommerce Email Designer</a> plugin by <a href=\"%s"
179
- "\">Kadence Themes</a>."
180
  msgstr ""
181
 
182
- #: includes/class-kadence-woomail-customizer.php:383
183
  msgid "Please choose a file to import."
184
  msgstr ""
185
 
186
- #: includes/class-kadence-woomail-customizer.php:384
187
  msgid ""
188
  "WARNING: This will override all of your current settings. Are you sure you "
189
  "want to do that? We suggest geting an export of your current settings incase "
@@ -339,7 +339,7 @@ msgid "Custom Styles"
339
  msgstr ""
340
 
341
  #: includes/class-kadence-woomail-settings.php:364
342
- #: includes/class-kadence-woomail-settings.php:2703
343
  msgid "Import Export"
344
  msgstr ""
345
 
@@ -487,847 +487,851 @@ msgstr ""
487
  msgid "Make \"reset your password\" a button"
488
  msgstr ""
489
 
490
- #: includes/class-kadence-woomail-settings.php:957
 
 
 
 
491
  msgid "Content Width"
492
  msgstr ""
493
 
494
- #: includes/class-kadence-woomail-settings.php:976
495
  msgid "Enable Fluid Width"
496
  msgstr ""
497
 
498
- #: includes/class-kadence-woomail-settings.php:983
499
  msgid "Content Inner Max Width"
500
  msgstr ""
501
 
502
- #: includes/class-kadence-woomail-settings.php:1007
503
- #: includes/class-kadence-woomail-settings.php:2653
504
  msgid "Border radius"
505
  msgstr ""
506
 
507
- #: includes/class-kadence-woomail-settings.php:1012
508
- #: includes/class-kadence-woomail-settings.php:2658
509
  msgid "Warning: most desktop email clients do not yet support this."
510
  msgstr ""
511
 
512
- #: includes/class-kadence-woomail-settings.php:1024
513
  msgid "Border Top Width"
514
  msgstr ""
515
 
516
- #: includes/class-kadence-woomail-settings.php:1040
517
  msgid "Border Right Width"
518
  msgstr ""
519
 
520
- #: includes/class-kadence-woomail-settings.php:1056
521
  msgid "Border Bottom Width"
522
  msgstr ""
523
 
524
- #: includes/class-kadence-woomail-settings.php:1072
525
  msgid "Border Left Width"
526
  msgstr ""
527
 
528
- #: includes/class-kadence-woomail-settings.php:1088
529
  msgid "Border color"
530
  msgstr ""
531
 
532
- #: includes/class-kadence-woomail-settings.php:1099
533
  msgid "Shadow"
534
  msgstr ""
535
 
536
- #: includes/class-kadence-woomail-settings.php:1102
537
  msgid "Warning: most email clients do not yet support this."
538
  msgstr ""
539
 
540
- #: includes/class-kadence-woomail-settings.php:1116
541
  msgid "Container Top Padding"
542
  msgstr ""
543
 
544
- #: includes/class-kadence-woomail-settings.php:1132
545
  msgid "Container Botom Padding"
546
  msgstr ""
547
 
548
- #: includes/class-kadence-woomail-settings.php:1151
549
  msgid "Header Image Placement"
550
  msgstr ""
551
 
552
- #: includes/class-kadence-woomail-settings.php:1157
553
- #: includes/class-kadence-woomail-settings.php:2219
554
  msgid "Outside Body Container"
555
  msgstr ""
556
 
557
- #: includes/class-kadence-woomail-settings.php:1158
558
- #: includes/class-kadence-woomail-settings.php:2218
559
  msgid "Inside Body Container"
560
  msgstr ""
561
 
562
- #: includes/class-kadence-woomail-settings.php:1163
563
  msgid "Image Align"
564
  msgstr ""
565
 
566
- #: includes/class-kadence-woomail-settings.php:1175
567
  msgid "Image Max Width"
568
  msgstr ""
569
 
570
- #: includes/class-kadence-woomail-settings.php:1190
571
- #: includes/class-kadence-woomail-settings.php:1217
572
  msgid "Background color"
573
  msgstr ""
574
 
575
- #: includes/class-kadence-woomail-settings.php:1201
576
  msgid "Padding top/bottom"
577
  msgstr ""
578
 
579
- #: includes/class-kadence-woomail-settings.php:1228
580
  msgid "Text align"
581
  msgstr ""
582
 
583
- #: includes/class-kadence-woomail-settings.php:1242
584
- #: includes/class-kadence-woomail-settings.php:1487
585
  msgid "Padding Top"
586
  msgstr ""
587
 
588
- #: includes/class-kadence-woomail-settings.php:1258
589
- #: includes/class-kadence-woomail-settings.php:1503
590
  msgid "Padding Bottom"
591
  msgstr ""
592
 
593
- #: includes/class-kadence-woomail-settings.php:1275
594
  msgid "Padding left/right"
595
  msgstr ""
596
 
597
- #: includes/class-kadence-woomail-settings.php:1291
598
  msgid "Heading Font size"
599
  msgstr ""
600
 
601
- #: includes/class-kadence-woomail-settings.php:1307
602
  msgid "Heading Line Height"
603
  msgstr ""
604
 
605
- #: includes/class-kadence-woomail-settings.php:1323
606
  msgid "Heading Font family"
607
  msgstr ""
608
 
609
- #: includes/class-kadence-woomail-settings.php:1335
610
  msgid "Heading Font Style"
611
  msgstr ""
612
 
613
- #: includes/class-kadence-woomail-settings.php:1341
614
- #: includes/class-kadence-woomail-settings.php:1448
615
- #: includes/class-kadence-woomail-settings.php:1730
616
- #: includes/class-kadence-woomail-settings.php:1919
617
- #: includes/class-kadence-woomail-settings.php:1961
618
- #: includes/class-kadence-woomail-settings.php:2098
619
  msgid "Normal"
620
  msgstr ""
621
 
622
- #: includes/class-kadence-woomail-settings.php:1342
623
- #: includes/class-kadence-woomail-settings.php:1449
624
- #: includes/class-kadence-woomail-settings.php:1731
625
- #: includes/class-kadence-woomail-settings.php:1920
626
  msgid "Italic"
627
  msgstr ""
628
 
629
- #: includes/class-kadence-woomail-settings.php:1350
630
  msgid "Heading Font weight"
631
  msgstr ""
632
 
633
- #: includes/class-kadence-woomail-settings.php:1366
634
  msgid "Heading Text color"
635
  msgstr ""
636
 
637
- #: includes/class-kadence-woomail-settings.php:1378
638
  msgid "Subtitle Settings"
639
  msgstr ""
640
 
641
- #: includes/class-kadence-woomail-settings.php:1385
642
  msgid "Subtitle Placement"
643
  msgstr ""
644
 
645
- #: includes/class-kadence-woomail-settings.php:1391
646
  msgid "Below Heading"
647
  msgstr ""
648
 
649
- #: includes/class-kadence-woomail-settings.php:1392
650
  msgid "Above Heading"
651
  msgstr ""
652
 
653
- #: includes/class-kadence-woomail-settings.php:1398
654
  msgid "Subtitle Font Size"
655
  msgstr ""
656
 
657
- #: includes/class-kadence-woomail-settings.php:1414
658
  msgid "Subtitle Line Height"
659
  msgstr ""
660
 
661
- #: includes/class-kadence-woomail-settings.php:1430
662
  msgid "Subtitle Font Family"
663
  msgstr ""
664
 
665
- #: includes/class-kadence-woomail-settings.php:1442
666
  msgid "Subtitle Font Style"
667
  msgstr ""
668
 
669
- #: includes/class-kadence-woomail-settings.php:1458
670
  msgid "Subtitle Font weight"
671
  msgstr ""
672
 
673
- #: includes/class-kadence-woomail-settings.php:1475
674
  msgid "Subtitle Text color"
675
  msgstr ""
676
 
677
- #: includes/class-kadence-woomail-settings.php:1519
678
  msgid "Padding Left/Right"
679
  msgstr ""
680
 
681
- #: includes/class-kadence-woomail-settings.php:1537
682
- #: includes/class-kadence-woomail-settings.php:2450
683
  msgid "Font Size"
684
  msgstr ""
685
 
686
- #: includes/class-kadence-woomail-settings.php:1554
687
  msgid "Line Height"
688
  msgstr ""
689
 
690
- #: includes/class-kadence-woomail-settings.php:1571
691
- #: includes/class-kadence-woomail-settings.php:2466
692
  msgid "Font Family"
693
  msgstr ""
694
 
695
- #: includes/class-kadence-woomail-settings.php:1585
696
- #: includes/class-kadence-woomail-settings.php:2479
697
  msgid "Font weight"
698
  msgstr ""
699
 
700
- #: includes/class-kadence-woomail-settings.php:1601
701
  msgid "Link Color"
702
  msgstr ""
703
 
704
- #: includes/class-kadence-woomail-settings.php:1615
705
  msgid "H2 Font Size"
706
  msgstr ""
707
 
708
- #: includes/class-kadence-woomail-settings.php:1631
709
  msgid "H2 Line Height"
710
  msgstr ""
711
 
712
- #: includes/class-kadence-woomail-settings.php:1647
713
  msgid "H2 Padding Top"
714
  msgstr ""
715
 
716
- #: includes/class-kadence-woomail-settings.php:1663
717
  msgid "H2 Padding Bottom"
718
  msgstr ""
719
 
720
- #: includes/class-kadence-woomail-settings.php:1679
721
  msgid "H2 Margin Top"
722
  msgstr ""
723
 
724
- #: includes/class-kadence-woomail-settings.php:1695
725
  msgid "H2 Margin Bottom"
726
  msgstr ""
727
 
728
- #: includes/class-kadence-woomail-settings.php:1711
729
  msgid "H2 Font Family"
730
  msgstr ""
731
 
732
- #: includes/class-kadence-woomail-settings.php:1724
733
  msgid "H2 Font Style"
734
  msgstr ""
735
 
736
- #: includes/class-kadence-woomail-settings.php:1740
737
  msgid "H2 Font weight"
738
  msgstr ""
739
 
740
- #: includes/class-kadence-woomail-settings.php:1757
741
  msgid "H2 Text Transform"
742
  msgstr ""
743
 
744
- #: includes/class-kadence-woomail-settings.php:1764
745
  msgid "Uppercase"
746
  msgstr ""
747
 
748
- #: includes/class-kadence-woomail-settings.php:1765
749
  msgid "Lowercase"
750
  msgstr ""
751
 
752
- #: includes/class-kadence-woomail-settings.php:1766
753
  msgid "Capitalize"
754
  msgstr ""
755
 
756
- #: includes/class-kadence-woomail-settings.php:1774
757
  msgid "H2 Color"
758
  msgstr ""
759
 
760
- #: includes/class-kadence-woomail-settings.php:1786
761
  msgid "H2 Text Align"
762
  msgstr ""
763
 
764
- #: includes/class-kadence-woomail-settings.php:1798
765
  msgid "H2 Separator"
766
  msgstr ""
767
 
768
- #: includes/class-kadence-woomail-settings.php:1805
769
  msgid "Separator below"
770
  msgstr ""
771
 
772
- #: includes/class-kadence-woomail-settings.php:1806
773
  msgid "Separator above"
774
  msgstr ""
775
 
776
- #: includes/class-kadence-woomail-settings.php:1811
777
  msgid "H2 Separator height"
778
  msgstr ""
779
 
780
- #: includes/class-kadence-woomail-settings.php:1829
781
  msgid "H2 Separator Style"
782
  msgstr ""
783
 
784
- #: includes/class-kadence-woomail-settings.php:1835
785
- #: includes/class-kadence-woomail-settings.php:2077
786
- #: includes/class-kadence-woomail-settings.php:2176
787
- #: includes/class-kadence-woomail-settings.php:2424
788
  msgid "Solid"
789
  msgstr ""
790
 
791
- #: includes/class-kadence-woomail-settings.php:1836
792
- #: includes/class-kadence-woomail-settings.php:2078
793
- #: includes/class-kadence-woomail-settings.php:2177
794
- #: includes/class-kadence-woomail-settings.php:2425
795
  msgid "Double"
796
  msgstr ""
797
 
798
- #: includes/class-kadence-woomail-settings.php:1837
799
- #: includes/class-kadence-woomail-settings.php:2079
800
- #: includes/class-kadence-woomail-settings.php:2178
801
- #: includes/class-kadence-woomail-settings.php:2426
802
  msgid "Groove"
803
  msgstr ""
804
 
805
- #: includes/class-kadence-woomail-settings.php:1838
806
- #: includes/class-kadence-woomail-settings.php:2080
807
- #: includes/class-kadence-woomail-settings.php:2179
808
- #: includes/class-kadence-woomail-settings.php:2427
809
  msgid "Dotted"
810
  msgstr ""
811
 
812
- #: includes/class-kadence-woomail-settings.php:1839
813
- #: includes/class-kadence-woomail-settings.php:2081
814
- #: includes/class-kadence-woomail-settings.php:2180
815
- #: includes/class-kadence-woomail-settings.php:2428
816
  msgid "Dashed"
817
  msgstr ""
818
 
819
- #: includes/class-kadence-woomail-settings.php:1840
820
- #: includes/class-kadence-woomail-settings.php:2082
821
- #: includes/class-kadence-woomail-settings.php:2181
822
- #: includes/class-kadence-woomail-settings.php:2429
823
  msgid "Ridge"
824
  msgstr ""
825
 
826
- #: includes/class-kadence-woomail-settings.php:1849
827
  msgid "H2 Separator Color"
828
  msgstr ""
829
 
830
- #: includes/class-kadence-woomail-settings.php:1862
831
  msgid "H3 Settings"
832
  msgstr ""
833
 
834
- #: includes/class-kadence-woomail-settings.php:1869
835
  msgid "H3 Font Size"
836
  msgstr ""
837
 
838
- #: includes/class-kadence-woomail-settings.php:1885
839
  msgid "H3 Line Height"
840
  msgstr ""
841
 
842
- #: includes/class-kadence-woomail-settings.php:1901
843
  msgid "H3 Font Family"
844
  msgstr ""
845
 
846
- #: includes/class-kadence-woomail-settings.php:1913
847
  msgid "H3 Font Style"
848
  msgstr ""
849
 
850
- #: includes/class-kadence-woomail-settings.php:1928
851
  msgid "H3 Font weight"
852
  msgstr ""
853
 
854
- #: includes/class-kadence-woomail-settings.php:1944
855
  msgid "H3 Color"
856
  msgstr ""
857
 
858
- #: includes/class-kadence-woomail-settings.php:1955
859
  msgid "Order Table Style"
860
  msgstr ""
861
 
862
- #: includes/class-kadence-woomail-settings.php:1962
863
  msgid "Light"
864
  msgstr ""
865
 
866
- #: includes/class-kadence-woomail-settings.php:1967
867
  msgid "Product Image Option"
868
  msgstr ""
869
 
870
- #: includes/class-kadence-woomail-settings.php:1973
871
  msgid "Do not show"
872
  msgstr ""
873
 
874
- #: includes/class-kadence-woomail-settings.php:1974
875
  msgid "Show"
876
  msgstr ""
877
 
878
- #: includes/class-kadence-woomail-settings.php:1979
879
  msgid "Order Table Background color"
880
  msgstr ""
881
 
882
- #: includes/class-kadence-woomail-settings.php:1990
883
  msgid "Order Table Background Odd Row Color"
884
  msgstr ""
885
 
886
- #: includes/class-kadence-woomail-settings.php:2004
887
  msgid "Padding Top and Bottom"
888
  msgstr ""
889
 
890
- #: includes/class-kadence-woomail-settings.php:2023
891
  msgid "Padding Left and Right"
892
  msgstr ""
893
 
894
- #: includes/class-kadence-woomail-settings.php:2041
895
  msgid "Border Width"
896
  msgstr ""
897
 
898
- #: includes/class-kadence-woomail-settings.php:2060
899
  msgid "Border Color"
900
  msgstr ""
901
 
902
- #: includes/class-kadence-woomail-settings.php:2071
903
  msgid "Border Style"
904
  msgstr ""
905
 
906
- #: includes/class-kadence-woomail-settings.php:2092
907
  msgid "Order Table Heading Style"
908
  msgstr ""
909
 
910
- #: includes/class-kadence-woomail-settings.php:2099
911
  msgid "Split"
912
  msgstr ""
913
 
914
- #: includes/class-kadence-woomail-settings.php:2103
915
  msgid "Enable Order Notes to be moved below table."
916
  msgstr ""
917
 
918
- #: includes/class-kadence-woomail-settings.php:2116
919
  msgid "Address Box Background color"
920
  msgstr ""
921
 
922
- #: includes/class-kadence-woomail-settings.php:2127
923
  msgid "Address Box Padding"
924
  msgstr ""
925
 
926
- #: includes/class-kadence-woomail-settings.php:2143
927
  msgid "Address Box Border Width"
928
  msgstr ""
929
 
930
- #: includes/class-kadence-woomail-settings.php:2159
931
  msgid "Address Box Border Color"
932
  msgstr ""
933
 
934
- #: includes/class-kadence-woomail-settings.php:2170
935
  msgid "Address Box Border Style"
936
  msgstr ""
937
 
938
- #: includes/class-kadence-woomail-settings.php:2189
939
  msgid "Address Box Text Color"
940
  msgstr ""
941
 
942
- #: includes/class-kadence-woomail-settings.php:2200
943
  msgid "Address Box Text Align"
944
  msgstr ""
945
 
946
- #: includes/class-kadence-woomail-settings.php:2212
947
  msgid "Footer Background Placement"
948
  msgstr ""
949
 
950
- #: includes/class-kadence-woomail-settings.php:2224
951
  msgid "Footer Background Color"
952
  msgstr ""
953
 
954
- #: includes/class-kadence-woomail-settings.php:2235
955
- #: includes/class-kadence-woomail-settings.php:2359
956
- #: includes/class-kadence-woomail-settings.php:2507
957
- msgid "Top Padding"
958
- msgstr ""
959
-
960
  #: includes/class-kadence-woomail-settings.php:2251
961
  #: includes/class-kadence-woomail-settings.php:2375
962
  #: includes/class-kadence-woomail-settings.php:2523
963
- msgid "Bottom Padding"
964
  msgstr ""
965
 
966
  #: includes/class-kadence-woomail-settings.php:2267
 
 
 
 
 
 
967
  msgid "Left/Right Padding"
968
  msgstr ""
969
 
970
- #: includes/class-kadence-woomail-settings.php:2282
971
  msgid "Enable Social Section"
972
  msgstr ""
973
 
974
- #: includes/class-kadence-woomail-settings.php:2290
975
  msgid "Footer Social Options"
976
  msgstr ""
977
 
978
- #: includes/class-kadence-woomail-settings.php:2304
979
  msgid "Footer Social Title Color"
980
  msgstr ""
981
 
982
- #: includes/class-kadence-woomail-settings.php:2315
983
  msgid "Footer Social Title Font Size"
984
  msgstr ""
985
 
986
- #: includes/class-kadence-woomail-settings.php:2331
987
  msgid "Footer Social Title Font Family"
988
  msgstr ""
989
 
990
- #: includes/class-kadence-woomail-settings.php:2343
991
  msgid "Footer Social Title Font Weight"
992
  msgstr ""
993
 
994
- #: includes/class-kadence-woomail-settings.php:2391
995
  msgid "Footer Social Bottom Border Width"
996
  msgstr ""
997
 
998
- #: includes/class-kadence-woomail-settings.php:2407
999
  msgid "Footer Social Bottom Border Color"
1000
  msgstr ""
1001
 
1002
- #: includes/class-kadence-woomail-settings.php:2418
1003
  msgid "Footer Social Bottom Border Style"
1004
  msgstr ""
1005
 
1006
- #: includes/class-kadence-woomail-settings.php:2437
1007
  msgid "Text Align"
1008
  msgstr ""
1009
 
1010
- #: includes/class-kadence-woomail-settings.php:2496
1011
  msgid "Text Color"
1012
  msgstr ""
1013
 
1014
- #: includes/class-kadence-woomail-settings.php:2539
1015
  msgid "Button Text Color"
1016
  msgstr ""
1017
 
1018
- #: includes/class-kadence-woomail-settings.php:2550
1019
  msgid "Button Font Size"
1020
  msgstr ""
1021
 
1022
- #: includes/class-kadence-woomail-settings.php:2566
1023
  msgid "Button Font Family"
1024
  msgstr ""
1025
 
1026
- #: includes/class-kadence-woomail-settings.php:2578
1027
  msgid "Button Font Weight"
1028
  msgstr ""
1029
 
1030
- #: includes/class-kadence-woomail-settings.php:2594
1031
  msgid "Button Background Color"
1032
  msgstr ""
1033
 
1034
- #: includes/class-kadence-woomail-settings.php:2605
1035
  msgid "Top and Bottom Padding"
1036
  msgstr ""
1037
 
1038
- #: includes/class-kadence-woomail-settings.php:2621
1039
  msgid "Left and Right Padding"
1040
  msgstr ""
1041
 
1042
- #: includes/class-kadence-woomail-settings.php:2637
1043
  msgid "Button Border Width"
1044
  msgstr ""
1045
 
1046
- #: includes/class-kadence-woomail-settings.php:2670
1047
  msgid "Button Border Color"
1048
  msgstr ""
1049
 
1050
- #: includes/class-kadence-woomail-settings.php:2681
1051
  msgid "Button Align"
1052
  msgstr ""
1053
 
1054
- #: includes/class-kadence-woomail-settings.php:2692
1055
  msgid "Custom CSS"
1056
  msgstr ""
1057
 
1058
- #: includes/class-kadence-woomail-settings.php:2709
1059
  msgid "Preview Email Recipient"
1060
  msgstr ""
1061
 
1062
- #: includes/class-kadence-woomail-settings.php:2710
1063
  msgid "Enter recipients (comma separated) for preview emails"
1064
  msgstr ""
1065
 
1066
- #: includes/class-kadence-woomail-settings.php:2751
1067
  msgid "Hi There,"
1068
  msgstr ""
1069
 
1070
- #: includes/class-kadence-woomail-settings.php:2752
1071
  msgid "{product_title} is now back in stock at {site_title}"
1072
  msgstr ""
1073
 
1074
- #: includes/class-kadence-woomail-settings.php:2753
1075
  msgid "A product you are waiting for is back in stock"
1076
  msgstr ""
1077
 
1078
- #: includes/class-kadence-woomail-settings.php:2754
1079
- #: includes/class-kadence-woomail-settings.php:2778
1080
  msgid "New customer order"
1081
  msgstr ""
1082
 
1083
- #: includes/class-kadence-woomail-settings.php:2755
1084
- #: includes/class-kadence-woomail-settings.php:2799
1085
  msgid "[{site_title}] New customer order ({order_number}) - {order_date}"
1086
  msgstr ""
1087
 
1088
- #: includes/class-kadence-woomail-settings.php:2756
1089
  msgid ""
1090
  "You have received a subscription renewal order from {customer_full_name}. "
1091
  "Their order is as follows:"
1092
  msgstr ""
1093
 
1094
- #: includes/class-kadence-woomail-settings.php:2757
1095
- #: includes/class-kadence-woomail-settings.php:2780
1096
- #: includes/class-kadence-woomail-settings.php:2791
1097
  msgid "Thank you for your order"
1098
  msgstr ""
1099
 
1100
- #: includes/class-kadence-woomail-settings.php:2758
1101
- #: includes/class-kadence-woomail-settings.php:2801
1102
- #: includes/class-kadence-woomail-settings.php:2805
1103
  msgid "Your {site_title} order receipt from {order_date}"
1104
  msgstr ""
1105
 
1106
- #: includes/class-kadence-woomail-settings.php:2759
1107
  msgid ""
1108
  "Your subscription renewal order has been received and is now being "
1109
  "processed. Your order details are shown below for your reference:"
1110
  msgstr ""
1111
 
1112
- #: includes/class-kadence-woomail-settings.php:2760
1113
- #: includes/class-kadence-woomail-settings.php:2763
1114
- #: includes/class-kadence-woomail-settings.php:2788
1115
  msgid "Your order is complete"
1116
  msgstr ""
1117
 
1118
- #: includes/class-kadence-woomail-settings.php:2761
1119
- #: includes/class-kadence-woomail-settings.php:2764
1120
- #: includes/class-kadence-woomail-settings.php:2802
1121
  msgid "Your {site_title} order from {order_date} is complete"
1122
  msgstr ""
1123
 
1124
- #: includes/class-kadence-woomail-settings.php:2762
1125
  msgid ""
1126
  "Hi there. Your subscription renewal order with {site_title} has been "
1127
  "completed. Your order details are shown below for your reference:"
1128
  msgstr ""
1129
 
1130
- #: includes/class-kadence-woomail-settings.php:2765
1131
  msgid ""
1132
  "Hi there. You have successfully changed your subscription items on "
1133
  "{site_title}. Your new order and subscription details are shown below for "
1134
  "your reference:"
1135
  msgstr ""
1136
 
1137
- #: includes/class-kadence-woomail-settings.php:2766
1138
- #: includes/class-kadence-woomail-settings.php:2767
1139
- #: includes/class-kadence-woomail-settings.php:2792
1140
- #: includes/class-kadence-woomail-settings.php:2806
1141
  msgid "Invoice for order {order_number}"
1142
  msgstr ""
1143
 
1144
- #: includes/class-kadence-woomail-settings.php:2768
1145
  msgid ""
1146
  "An invoice has been created for you to renew your subscription with "
1147
  "{site_title}. To pay for this invoice please use the following link: "
1148
  "{invoice_pay_link}"
1149
  msgstr ""
1150
 
1151
- #: includes/class-kadence-woomail-settings.php:2770
1152
  msgid ""
1153
  "The automatic payment to renew your subscription with {site_title} has "
1154
  "failed. To reactivate the subscription, please login and pay for the renewal "
1155
  "from your account page: {invoice_pay_link}"
1156
  msgstr ""
1157
 
1158
- #: includes/class-kadence-woomail-settings.php:2771
1159
  msgid "Subscription Cancelled"
1160
  msgstr ""
1161
 
1162
- #: includes/class-kadence-woomail-settings.php:2772
1163
  msgid "[{site_title}] Subscription Cancelled"
1164
  msgstr ""
1165
 
1166
- #: includes/class-kadence-woomail-settings.php:2773
1167
  msgid ""
1168
  "A subscription belonging to {customer_full_name} has been cancelled. Their "
1169
  "subscription's details are as follows:"
1170
  msgstr ""
1171
 
1172
- #: includes/class-kadence-woomail-settings.php:2774
1173
  msgid "Automatic payment failed for order {order_number}"
1174
  msgstr ""
1175
 
1176
- #: includes/class-kadence-woomail-settings.php:2775
1177
  msgid "Automatic payment failed for {order_number}, we will retry {retry_time}"
1178
  msgstr ""
1179
 
1180
- #: includes/class-kadence-woomail-settings.php:2779
1181
  msgid "Cancelled order"
1182
  msgstr ""
1183
 
1184
- #: includes/class-kadence-woomail-settings.php:2781
1185
  msgid "Congratulations on the sale!"
1186
  msgstr ""
1187
 
1188
- #: includes/class-kadence-woomail-settings.php:2782
1189
  msgid "Thanks for using {site_address}!"
1190
  msgstr ""
1191
 
1192
- #: includes/class-kadence-woomail-settings.php:2783
1193
  msgid "Thanks for shopping with us."
1194
  msgstr ""
1195
 
1196
- #: includes/class-kadence-woomail-settings.php:2784
1197
  msgid "We hope to see you again soon."
1198
  msgstr ""
1199
 
1200
- #: includes/class-kadence-woomail-settings.php:2785
1201
  msgid "We look forward to fulfilling your order soon."
1202
  msgstr ""
1203
 
1204
- #: includes/class-kadence-woomail-settings.php:2786
1205
  msgid "We look forward to seeing you soon."
1206
  msgstr ""
1207
 
1208
- #: includes/class-kadence-woomail-settings.php:2787
1209
  msgid "Thanks for reading."
1210
  msgstr ""
1211
 
1212
- #: includes/class-kadence-woomail-settings.php:2789
1213
  msgid "Order {order_number} details"
1214
  msgstr ""
1215
 
1216
- #: includes/class-kadence-woomail-settings.php:2790
1217
  msgid "Your order has been partially refunded"
1218
  msgstr ""
1219
 
1220
- #: includes/class-kadence-woomail-settings.php:2793
1221
  msgid "Your order details"
1222
  msgstr ""
1223
 
1224
- #: includes/class-kadence-woomail-settings.php:2794
1225
  msgid "Failed order"
1226
  msgstr ""
1227
 
1228
- #: includes/class-kadence-woomail-settings.php:2795
1229
  msgid "Welcome to {site_title}"
1230
  msgstr ""
1231
 
1232
- #: includes/class-kadence-woomail-settings.php:2796
1233
  msgid "A note has been added to your order"
1234
  msgstr ""
1235
 
1236
- #: includes/class-kadence-woomail-settings.php:2797
1237
  msgid "Password reset instructions"
1238
  msgstr ""
1239
 
1240
- #: includes/class-kadence-woomail-settings.php:2800
1241
  msgid "[{site_title}] Cancelled order ({order_number})"
1242
  msgstr ""
1243
 
1244
- #: includes/class-kadence-woomail-settings.php:2803
1245
  msgid "Your {site_title} order from {order_date} has been refunded"
1246
  msgstr ""
1247
 
1248
- #: includes/class-kadence-woomail-settings.php:2804
1249
  msgid "Your {site_title} order from {order_date} has been partially refunded"
1250
  msgstr ""
1251
 
1252
- #: includes/class-kadence-woomail-settings.php:2807
1253
  msgid "Your {site_title} order from {order_date}"
1254
  msgstr ""
1255
 
1256
- #: includes/class-kadence-woomail-settings.php:2808
1257
  msgid "[{site_title}] Failed order ({order_number})"
1258
  msgstr ""
1259
 
1260
- #: includes/class-kadence-woomail-settings.php:2809
1261
  msgid "Your account on {site_title}"
1262
  msgstr ""
1263
 
1264
- #: includes/class-kadence-woomail-settings.php:2810
1265
  msgid "Note added to your {site_title} order from {order_date}"
1266
  msgstr ""
1267
 
1268
- #: includes/class-kadence-woomail-settings.php:2811
1269
  msgid "Password reset for {site_title}"
1270
  msgstr ""
1271
 
1272
- #: includes/class-kadence-woomail-settings.php:2812
1273
  msgid ""
1274
  "You have received an order from {customer_full_name}. The order is as "
1275
  "follows:"
1276
  msgstr ""
1277
 
1278
- #: includes/class-kadence-woomail-settings.php:2813
1279
  msgid ""
1280
  "The order {order_number} from {customer_full_name} has been cancelled. The "
1281
  "order was as follows:"
1282
  msgstr ""
1283
 
1284
- #: includes/class-kadence-woomail-settings.php:2814
1285
  msgid ""
1286
  "Your order has been received and is now being processed. Your order details "
1287
  "are shown below for your reference:"
1288
  msgstr ""
1289
 
1290
- #: includes/class-kadence-woomail-settings.php:2815
1291
  msgid ""
1292
  "Hi there. Your recent order on {site_title} has been completed. Your order "
1293
  "details are shown below for your reference:"
1294
  msgstr ""
1295
 
1296
- #: includes/class-kadence-woomail-settings.php:2817
1297
  msgid "Hi there. Your order on {site_title} has been refunded."
1298
  msgstr ""
1299
 
1300
- #: includes/class-kadence-woomail-settings.php:2818
1301
  msgid "Hi there. Your order on {site_title} has been partially refunded."
1302
  msgstr ""
1303
 
1304
- #: includes/class-kadence-woomail-settings.php:2819
1305
  msgid ""
1306
  "Your order is on-hold until we confirm payment has been received. Your order "
1307
  "details are shown below for your reference:"
1308
  msgstr ""
1309
 
1310
- #: includes/class-kadence-woomail-settings.php:2822
1311
  msgid "An order has been created for you on {site_title}. {invoice_pay_link}"
1312
  msgstr ""
1313
 
1314
- #: includes/class-kadence-woomail-settings.php:2824
1315
  msgid ""
1316
  "Payment for order {order_number} from {customer_full_name} has failed. The "
1317
  "order was as follows:"
1318
  msgstr ""
1319
 
1320
- #: includes/class-kadence-woomail-settings.php:2827
1321
  msgid ""
1322
  "Thanks for creating an account on {site_title}. Your username is "
1323
  "{customer_username}"
1324
  msgstr ""
1325
 
1326
- #: includes/class-kadence-woomail-settings.php:2828
1327
  msgid "Hello, a note has just been added to your order:"
1328
  msgstr ""
1329
 
1330
- #: includes/class-kadence-woomail-settings.php:2830
1331
  msgid ""
1332
  "Someone requested that the password be reset for the following account:\n"
1333
  "\n"
@@ -1338,146 +1342,146 @@ msgid ""
1338
  "To reset your password, visit the following address:"
1339
  msgstr ""
1340
 
1341
- #: includes/class-kadence-woomail-settings.php:2839
1342
  msgid "Renew your {membership_plan}"
1343
  msgstr ""
1344
 
1345
- #: includes/class-kadence-woomail-settings.php:2840
1346
  msgid "Your {site_title} membership has expired"
1347
  msgstr ""
1348
 
1349
- #: includes/class-kadence-woomail-settings.php:2841
1350
  msgid "You can now access {membership_plan}"
1351
  msgstr ""
1352
 
1353
- #: includes/class-kadence-woomail-settings.php:2842
1354
  msgid "Your {site_title} membership is now active!"
1355
  msgstr ""
1356
 
1357
- #: includes/class-kadence-woomail-settings.php:2843
1358
  msgid "An update about your {membership_plan}"
1359
  msgstr ""
1360
 
1361
- #: includes/class-kadence-woomail-settings.php:2844
1362
  msgid "Your {site_title} membership ends soon!"
1363
  msgstr ""
1364
 
1365
- #: includes/class-kadence-woomail-settings.php:2845
1366
  msgid "A note has been added about your membership"
1367
  msgstr ""
1368
 
1369
- #: includes/class-kadence-woomail-settings.php:2846
1370
  msgid "Note added to your {site_title} membership"
1371
  msgstr ""
1372
 
1373
- #: includes/class-kadence-woomail-settings.php:2847
1374
  msgid "You can renew your {membership_plan}"
1375
  msgstr ""
1376
 
1377
- #: includes/class-kadence-woomail-settings.php:2848
1378
  msgid "Renew your {site_title} membership!"
1379
  msgstr ""
1380
 
1381
- #: includes/class-kadence-woomail-settings.php:2849
1382
  msgid "Thanks for shopping with us"
1383
  msgstr ""
1384
 
1385
- #: includes/class-kadence-woomail-settings.php:2850
1386
  msgid "Your {site_title} order is now delivered"
1387
  msgstr ""
1388
 
1389
- #: includes/class-kadence-woomail-settings.php:2852
1390
  msgid ""
1391
  "Hi {customer_full_name}\n"
1392
  "\t\t\t\t\t\tYour {site_title} order has been marked delivered on our side."
1393
  msgstr ""
1394
 
1395
- #: includes/class-kadence-woomail-settings.php:2953
1396
  msgctxt "ekomi"
1397
  msgid "Please rate your Order"
1398
  msgstr ""
1399
 
1400
- #: includes/class-kadence-woomail-settings.php:2954
1401
  msgid "Account activation {site_title}"
1402
  msgstr ""
1403
 
1404
- #: includes/class-kadence-woomail-settings.php:2955
1405
  msgid "Payment received"
1406
  msgstr ""
1407
 
1408
- #: includes/class-kadence-woomail-settings.php:2956
1409
  msgid "Your revocation"
1410
  msgstr ""
1411
 
1412
- #: includes/class-kadence-woomail-settings.php:2957
1413
  msgid "SEPA Direct Debit Mandate"
1414
  msgstr ""
1415
 
1416
- #: includes/class-kadence-woomail-settings.php:2958
1417
  msgctxt "trusted-shops"
1418
  msgid "Please rate your Order"
1419
  msgstr ""
1420
 
1421
- #: includes/class-kadence-woomail-settings.php:2990
1422
  msgid "none"
1423
  msgstr ""
1424
 
1425
- #: includes/class-kadence-woomail-settings.php:2991
1426
  msgid "hidden"
1427
  msgstr ""
1428
 
1429
- #: includes/class-kadence-woomail-settings.php:2992
1430
  msgid "dotted"
1431
  msgstr ""
1432
 
1433
- #: includes/class-kadence-woomail-settings.php:2993
1434
  msgid "dashed"
1435
  msgstr ""
1436
 
1437
- #: includes/class-kadence-woomail-settings.php:2994
1438
  msgid "solid"
1439
  msgstr ""
1440
 
1441
- #: includes/class-kadence-woomail-settings.php:2995
1442
  msgid "double"
1443
  msgstr ""
1444
 
1445
- #: includes/class-kadence-woomail-settings.php:2996
1446
  msgid "groove"
1447
  msgstr ""
1448
 
1449
- #: includes/class-kadence-woomail-settings.php:2997
1450
  msgid "ridge"
1451
  msgstr ""
1452
 
1453
- #: includes/class-kadence-woomail-settings.php:2998
1454
  msgid "inset"
1455
  msgstr ""
1456
 
1457
- #: includes/class-kadence-woomail-settings.php:2999
1458
  msgid "outset"
1459
  msgstr ""
1460
 
1461
- #: includes/class-kadence-woomail-settings.php:3011
1462
- #: includes/class-kadence-woomail-settings.php:3025
1463
  msgid "Left"
1464
  msgstr ""
1465
 
1466
- #: includes/class-kadence-woomail-settings.php:3012
1467
- #: includes/class-kadence-woomail-settings.php:3026
1468
  msgid "Center"
1469
  msgstr ""
1470
 
1471
- #: includes/class-kadence-woomail-settings.php:3013
1472
- #: includes/class-kadence-woomail-settings.php:3027
1473
  msgid "Right"
1474
  msgstr ""
1475
 
1476
- #: includes/class-kadence-woomail-settings.php:3014
1477
  msgid "Justify"
1478
  msgstr ""
1479
 
1480
- #: includes/class-kadence-woomail-settings.php:3039
1481
  msgid "Mockup Order"
1482
  msgstr ""
1483
 
@@ -1523,12 +1527,12 @@ msgstr ""
1523
  msgid "Guest"
1524
  msgstr ""
1525
 
1526
- #: kadence-woocommerce-email-designer.php:486
1527
  #: kadence-woocommerce-email-designer.php:487
 
1528
  msgid "Email Customizer"
1529
  msgstr ""
1530
 
1531
- #: kadence-woocommerce-email-designer.php:501
1532
  msgid "Open Email Designer"
1533
  msgstr ""
1534
 
@@ -1667,6 +1671,10 @@ msgid ""
1667
  "renewal from your account page: %1$sPay Now &raquo;%2$s"
1668
  msgstr ""
1669
 
 
 
 
 
1670
  #: templates/woo/emails/customer-reset-password.php:44
1671
  msgid "Click here to reset your password"
1672
  msgstr ""
@@ -1782,3 +1790,23 @@ msgstr ""
1782
  msgctxt "Used as end date for an indefinite subscription"
1783
  msgid "When Cancelled"
1784
  msgstr ""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: Kadence Woocommerce Email Designer\n"
5
+ "POT-Creation-Date: 2019-10-17 16:56-0600\n"
6
  "PO-Revision-Date: 2015-05-08 13:15-0700\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
+ "X-Generator: Poedit 2.2.4\n"
14
  "X-Poedit-KeywordsList: __;_e;_n:1,2;esc_attr_e;esc_attr__;esc_html__;"
15
  "esc_html_e;esc_html_x:1,2c;_ex:1,2c;_x:1,2c;esc_attr_x:1,2c\n"
16
  "X-Poedit-Basepath: ..\n"
108
  msgstr ""
109
 
110
  #: includes/class-customizer-repeater-control.php:346
111
+ #: includes/class-kadence-woomail-settings.php:1779
112
+ #: includes/class-kadence-woomail-settings.php:1820
113
  msgid "None"
114
  msgstr ""
115
 
137
  msgid "Saved"
138
  msgstr ""
139
 
140
+ #: includes/class-kadence-woomail-customizer.php:266
141
  msgid "WooCommerce Emails"
142
  msgstr ""
143
 
144
+ #: includes/class-kadence-woomail-customizer.php:377
145
  msgid "Reset"
146
  msgstr ""
147
 
148
+ #: includes/class-kadence-woomail-customizer.php:378
149
  msgid "Woocommerce Emails"
150
  msgstr ""
151
 
152
+ #: includes/class-kadence-woomail-customizer.php:379
153
  msgid "Are you sure you want to send an email?"
154
  msgstr ""
155
 
156
+ #: includes/class-kadence-woomail-customizer.php:380
157
  msgid "Email Sent!"
158
  msgstr ""
159
 
160
+ #: includes/class-kadence-woomail-customizer.php:381
161
  msgid "Email failed, make sure you have a working email server for your site."
162
  msgstr ""
163
 
164
+ #: includes/class-kadence-woomail-customizer.php:382
165
  msgid ""
166
  "Are you sure you want to reset all changes made to your WooCommerce emails?"
167
  msgstr ""
168
 
169
+ #: includes/class-kadence-woomail-customizer.php:383
170
  msgid ""
171
  "<p>Use native WordPress Customizer to make Woocommerce emails match your "
172
  "brand.</p>"
173
  msgstr ""
174
 
175
+ #: includes/class-kadence-woomail-customizer.php:383
176
  #, php-format
177
  msgid ""
178
+ "<a href=\"%1$s\">Kadence Woocommerce Email Designer</a> plugin by <a href="
179
+ "\"%2$s\">Kadence Themes</a>."
180
  msgstr ""
181
 
182
+ #: includes/class-kadence-woomail-customizer.php:392
183
  msgid "Please choose a file to import."
184
  msgstr ""
185
 
186
+ #: includes/class-kadence-woomail-customizer.php:393
187
  msgid ""
188
  "WARNING: This will override all of your current settings. Are you sure you "
189
  "want to do that? We suggest geting an export of your current settings incase "
339
  msgstr ""
340
 
341
  #: includes/class-kadence-woomail-settings.php:364
342
+ #: includes/class-kadence-woomail-settings.php:2719
343
  msgid "Import Export"
344
  msgstr ""
345
 
487
  msgid "Make \"reset your password\" a button"
488
  msgstr ""
489
 
490
+ #: includes/class-kadence-woomail-settings.php:953
491
+ msgid "Remove Normal Content Output"
492
+ msgstr ""
493
+
494
+ #: includes/class-kadence-woomail-settings.php:973
495
  msgid "Content Width"
496
  msgstr ""
497
 
498
+ #: includes/class-kadence-woomail-settings.php:992
499
  msgid "Enable Fluid Width"
500
  msgstr ""
501
 
502
+ #: includes/class-kadence-woomail-settings.php:999
503
  msgid "Content Inner Max Width"
504
  msgstr ""
505
 
506
+ #: includes/class-kadence-woomail-settings.php:1023
507
+ #: includes/class-kadence-woomail-settings.php:2669
508
  msgid "Border radius"
509
  msgstr ""
510
 
511
+ #: includes/class-kadence-woomail-settings.php:1028
512
+ #: includes/class-kadence-woomail-settings.php:2674
513
  msgid "Warning: most desktop email clients do not yet support this."
514
  msgstr ""
515
 
516
+ #: includes/class-kadence-woomail-settings.php:1040
517
  msgid "Border Top Width"
518
  msgstr ""
519
 
520
+ #: includes/class-kadence-woomail-settings.php:1056
521
  msgid "Border Right Width"
522
  msgstr ""
523
 
524
+ #: includes/class-kadence-woomail-settings.php:1072
525
  msgid "Border Bottom Width"
526
  msgstr ""
527
 
528
+ #: includes/class-kadence-woomail-settings.php:1088
529
  msgid "Border Left Width"
530
  msgstr ""
531
 
532
+ #: includes/class-kadence-woomail-settings.php:1104
533
  msgid "Border color"
534
  msgstr ""
535
 
536
+ #: includes/class-kadence-woomail-settings.php:1115
537
  msgid "Shadow"
538
  msgstr ""
539
 
540
+ #: includes/class-kadence-woomail-settings.php:1118
541
  msgid "Warning: most email clients do not yet support this."
542
  msgstr ""
543
 
544
+ #: includes/class-kadence-woomail-settings.php:1132
545
  msgid "Container Top Padding"
546
  msgstr ""
547
 
548
+ #: includes/class-kadence-woomail-settings.php:1148
549
  msgid "Container Botom Padding"
550
  msgstr ""
551
 
552
+ #: includes/class-kadence-woomail-settings.php:1167
553
  msgid "Header Image Placement"
554
  msgstr ""
555
 
556
+ #: includes/class-kadence-woomail-settings.php:1173
557
+ #: includes/class-kadence-woomail-settings.php:2235
558
  msgid "Outside Body Container"
559
  msgstr ""
560
 
561
+ #: includes/class-kadence-woomail-settings.php:1174
562
+ #: includes/class-kadence-woomail-settings.php:2234
563
  msgid "Inside Body Container"
564
  msgstr ""
565
 
566
+ #: includes/class-kadence-woomail-settings.php:1179
567
  msgid "Image Align"
568
  msgstr ""
569
 
570
+ #: includes/class-kadence-woomail-settings.php:1191
571
  msgid "Image Max Width"
572
  msgstr ""
573
 
574
+ #: includes/class-kadence-woomail-settings.php:1206
575
+ #: includes/class-kadence-woomail-settings.php:1233
576
  msgid "Background color"
577
  msgstr ""
578
 
579
+ #: includes/class-kadence-woomail-settings.php:1217
580
  msgid "Padding top/bottom"
581
  msgstr ""
582
 
583
+ #: includes/class-kadence-woomail-settings.php:1244
584
  msgid "Text align"
585
  msgstr ""
586
 
587
+ #: includes/class-kadence-woomail-settings.php:1258
588
+ #: includes/class-kadence-woomail-settings.php:1503
589
  msgid "Padding Top"
590
  msgstr ""
591
 
592
+ #: includes/class-kadence-woomail-settings.php:1274
593
+ #: includes/class-kadence-woomail-settings.php:1519
594
  msgid "Padding Bottom"
595
  msgstr ""
596
 
597
+ #: includes/class-kadence-woomail-settings.php:1291
598
  msgid "Padding left/right"
599
  msgstr ""
600
 
601
+ #: includes/class-kadence-woomail-settings.php:1307
602
  msgid "Heading Font size"
603
  msgstr ""
604
 
605
+ #: includes/class-kadence-woomail-settings.php:1323
606
  msgid "Heading Line Height"
607
  msgstr ""
608
 
609
+ #: includes/class-kadence-woomail-settings.php:1339
610
  msgid "Heading Font family"
611
  msgstr ""
612
 
613
+ #: includes/class-kadence-woomail-settings.php:1351
614
  msgid "Heading Font Style"
615
  msgstr ""
616
 
617
+ #: includes/class-kadence-woomail-settings.php:1357
618
+ #: includes/class-kadence-woomail-settings.php:1464
619
+ #: includes/class-kadence-woomail-settings.php:1746
620
+ #: includes/class-kadence-woomail-settings.php:1935
621
+ #: includes/class-kadence-woomail-settings.php:1977
622
+ #: includes/class-kadence-woomail-settings.php:2114
623
  msgid "Normal"
624
  msgstr ""
625
 
626
+ #: includes/class-kadence-woomail-settings.php:1358
627
+ #: includes/class-kadence-woomail-settings.php:1465
628
+ #: includes/class-kadence-woomail-settings.php:1747
629
+ #: includes/class-kadence-woomail-settings.php:1936
630
  msgid "Italic"
631
  msgstr ""
632
 
633
+ #: includes/class-kadence-woomail-settings.php:1366
634
  msgid "Heading Font weight"
635
  msgstr ""
636
 
637
+ #: includes/class-kadence-woomail-settings.php:1382
638
  msgid "Heading Text color"
639
  msgstr ""
640
 
641
+ #: includes/class-kadence-woomail-settings.php:1394
642
  msgid "Subtitle Settings"
643
  msgstr ""
644
 
645
+ #: includes/class-kadence-woomail-settings.php:1401
646
  msgid "Subtitle Placement"
647
  msgstr ""
648
 
649
+ #: includes/class-kadence-woomail-settings.php:1407
650
  msgid "Below Heading"
651
  msgstr ""
652
 
653
+ #: includes/class-kadence-woomail-settings.php:1408
654
  msgid "Above Heading"
655
  msgstr ""
656
 
657
+ #: includes/class-kadence-woomail-settings.php:1414
658
  msgid "Subtitle Font Size"
659
  msgstr ""
660
 
661
+ #: includes/class-kadence-woomail-settings.php:1430
662
  msgid "Subtitle Line Height"
663
  msgstr ""
664
 
665
+ #: includes/class-kadence-woomail-settings.php:1446
666
  msgid "Subtitle Font Family"
667
  msgstr ""
668
 
669
+ #: includes/class-kadence-woomail-settings.php:1458
670
  msgid "Subtitle Font Style"
671
  msgstr ""
672
 
673
+ #: includes/class-kadence-woomail-settings.php:1474
674
  msgid "Subtitle Font weight"
675
  msgstr ""
676
 
677
+ #: includes/class-kadence-woomail-settings.php:1491
678
  msgid "Subtitle Text color"
679
  msgstr ""
680
 
681
+ #: includes/class-kadence-woomail-settings.php:1535
682
  msgid "Padding Left/Right"
683
  msgstr ""
684
 
685
+ #: includes/class-kadence-woomail-settings.php:1553
686
+ #: includes/class-kadence-woomail-settings.php:2466
687
  msgid "Font Size"
688
  msgstr ""
689
 
690
+ #: includes/class-kadence-woomail-settings.php:1570
691
  msgid "Line Height"
692
  msgstr ""
693
 
694
+ #: includes/class-kadence-woomail-settings.php:1587
695
+ #: includes/class-kadence-woomail-settings.php:2482
696
  msgid "Font Family"
697
  msgstr ""
698
 
699
+ #: includes/class-kadence-woomail-settings.php:1601
700
+ #: includes/class-kadence-woomail-settings.php:2495
701
  msgid "Font weight"
702
  msgstr ""
703
 
704
+ #: includes/class-kadence-woomail-settings.php:1617
705
  msgid "Link Color"
706
  msgstr ""
707
 
708
+ #: includes/class-kadence-woomail-settings.php:1631
709
  msgid "H2 Font Size"
710
  msgstr ""
711
 
712
+ #: includes/class-kadence-woomail-settings.php:1647
713
  msgid "H2 Line Height"
714
  msgstr ""
715
 
716
+ #: includes/class-kadence-woomail-settings.php:1663
717
  msgid "H2 Padding Top"
718
  msgstr ""
719
 
720
+ #: includes/class-kadence-woomail-settings.php:1679
721
  msgid "H2 Padding Bottom"
722
  msgstr ""
723
 
724
+ #: includes/class-kadence-woomail-settings.php:1695
725
  msgid "H2 Margin Top"
726
  msgstr ""
727
 
728
+ #: includes/class-kadence-woomail-settings.php:1711
729
  msgid "H2 Margin Bottom"
730
  msgstr ""
731
 
732
+ #: includes/class-kadence-woomail-settings.php:1727
733
  msgid "H2 Font Family"
734
  msgstr ""
735
 
736
+ #: includes/class-kadence-woomail-settings.php:1740
737
  msgid "H2 Font Style"
738
  msgstr ""
739
 
740
+ #: includes/class-kadence-woomail-settings.php:1756
741
  msgid "H2 Font weight"
742
  msgstr ""
743
 
744
+ #: includes/class-kadence-woomail-settings.php:1773
745
  msgid "H2 Text Transform"
746
  msgstr ""
747
 
748
+ #: includes/class-kadence-woomail-settings.php:1780
749
  msgid "Uppercase"
750
  msgstr ""
751
 
752
+ #: includes/class-kadence-woomail-settings.php:1781
753
  msgid "Lowercase"
754
  msgstr ""
755
 
756
+ #: includes/class-kadence-woomail-settings.php:1782
757
  msgid "Capitalize"
758
  msgstr ""
759
 
760
+ #: includes/class-kadence-woomail-settings.php:1790
761
  msgid "H2 Color"
762
  msgstr ""
763
 
764
+ #: includes/class-kadence-woomail-settings.php:1802
765
  msgid "H2 Text Align"
766
  msgstr ""
767
 
768
+ #: includes/class-kadence-woomail-settings.php:1814
769
  msgid "H2 Separator"
770
  msgstr ""
771
 
772
+ #: includes/class-kadence-woomail-settings.php:1821
773
  msgid "Separator below"
774
  msgstr ""
775
 
776
+ #: includes/class-kadence-woomail-settings.php:1822
777
  msgid "Separator above"
778
  msgstr ""
779
 
780
+ #: includes/class-kadence-woomail-settings.php:1827
781
  msgid "H2 Separator height"
782
  msgstr ""
783
 
784
+ #: includes/class-kadence-woomail-settings.php:1845
785
  msgid "H2 Separator Style"
786
  msgstr ""
787
 
788
+ #: includes/class-kadence-woomail-settings.php:1851
789
+ #: includes/class-kadence-woomail-settings.php:2093
790
+ #: includes/class-kadence-woomail-settings.php:2192
791
+ #: includes/class-kadence-woomail-settings.php:2440
792
  msgid "Solid"
793
  msgstr ""
794
 
795
+ #: includes/class-kadence-woomail-settings.php:1852
796
+ #: includes/class-kadence-woomail-settings.php:2094
797
+ #: includes/class-kadence-woomail-settings.php:2193
798
+ #: includes/class-kadence-woomail-settings.php:2441
799
  msgid "Double"
800
  msgstr ""
801
 
802
+ #: includes/class-kadence-woomail-settings.php:1853
803
+ #: includes/class-kadence-woomail-settings.php:2095
804
+ #: includes/class-kadence-woomail-settings.php:2194
805
+ #: includes/class-kadence-woomail-settings.php:2442
806
  msgid "Groove"
807
  msgstr ""
808
 
809
+ #: includes/class-kadence-woomail-settings.php:1854
810
+ #: includes/class-kadence-woomail-settings.php:2096
811
+ #: includes/class-kadence-woomail-settings.php:2195
812
+ #: includes/class-kadence-woomail-settings.php:2443
813
  msgid "Dotted"
814
  msgstr ""
815
 
816
+ #: includes/class-kadence-woomail-settings.php:1855
817
+ #: includes/class-kadence-woomail-settings.php:2097
818
+ #: includes/class-kadence-woomail-settings.php:2196
819
+ #: includes/class-kadence-woomail-settings.php:2444
820
  msgid "Dashed"
821
  msgstr ""
822
 
823
+ #: includes/class-kadence-woomail-settings.php:1856
824
+ #: includes/class-kadence-woomail-settings.php:2098
825
+ #: includes/class-kadence-woomail-settings.php:2197
826
+ #: includes/class-kadence-woomail-settings.php:2445
827
  msgid "Ridge"
828
  msgstr ""
829
 
830
+ #: includes/class-kadence-woomail-settings.php:1865
831
  msgid "H2 Separator Color"
832
  msgstr ""
833
 
834
+ #: includes/class-kadence-woomail-settings.php:1878
835
  msgid "H3 Settings"
836
  msgstr ""
837
 
838
+ #: includes/class-kadence-woomail-settings.php:1885
839
  msgid "H3 Font Size"
840
  msgstr ""
841
 
842
+ #: includes/class-kadence-woomail-settings.php:1901
843
  msgid "H3 Line Height"
844
  msgstr ""
845
 
846
+ #: includes/class-kadence-woomail-settings.php:1917
847
  msgid "H3 Font Family"
848
  msgstr ""
849
 
850
+ #: includes/class-kadence-woomail-settings.php:1929
851
  msgid "H3 Font Style"
852
  msgstr ""
853
 
854
+ #: includes/class-kadence-woomail-settings.php:1944
855
  msgid "H3 Font weight"
856
  msgstr ""
857
 
858
+ #: includes/class-kadence-woomail-settings.php:1960
859
  msgid "H3 Color"
860
  msgstr ""
861
 
862
+ #: includes/class-kadence-woomail-settings.php:1971
863
  msgid "Order Table Style"
864
  msgstr ""
865
 
866
+ #: includes/class-kadence-woomail-settings.php:1978
867
  msgid "Light"
868
  msgstr ""
869
 
870
+ #: includes/class-kadence-woomail-settings.php:1983
871
  msgid "Product Image Option"
872
  msgstr ""
873
 
874
+ #: includes/class-kadence-woomail-settings.php:1989
875
  msgid "Do not show"
876
  msgstr ""
877
 
878
+ #: includes/class-kadence-woomail-settings.php:1990
879
  msgid "Show"
880
  msgstr ""
881
 
882
+ #: includes/class-kadence-woomail-settings.php:1995
883
  msgid "Order Table Background color"
884
  msgstr ""
885
 
886
+ #: includes/class-kadence-woomail-settings.php:2006
887
  msgid "Order Table Background Odd Row Color"
888
  msgstr ""
889
 
890
+ #: includes/class-kadence-woomail-settings.php:2020
891
  msgid "Padding Top and Bottom"
892
  msgstr ""
893
 
894
+ #: includes/class-kadence-woomail-settings.php:2039
895
  msgid "Padding Left and Right"
896
  msgstr ""
897
 
898
+ #: includes/class-kadence-woomail-settings.php:2057
899
  msgid "Border Width"
900
  msgstr ""
901
 
902
+ #: includes/class-kadence-woomail-settings.php:2076
903
  msgid "Border Color"
904
  msgstr ""
905
 
906
+ #: includes/class-kadence-woomail-settings.php:2087
907
  msgid "Border Style"
908
  msgstr ""
909
 
910
+ #: includes/class-kadence-woomail-settings.php:2108
911
  msgid "Order Table Heading Style"
912
  msgstr ""
913
 
914
+ #: includes/class-kadence-woomail-settings.php:2115
915
  msgid "Split"
916
  msgstr ""
917
 
918
+ #: includes/class-kadence-woomail-settings.php:2119
919
  msgid "Enable Order Notes to be moved below table."
920
  msgstr ""
921
 
922
+ #: includes/class-kadence-woomail-settings.php:2132
923
  msgid "Address Box Background color"
924
  msgstr ""
925
 
926
+ #: includes/class-kadence-woomail-settings.php:2143
927
  msgid "Address Box Padding"
928
  msgstr ""
929
 
930
+ #: includes/class-kadence-woomail-settings.php:2159
931
  msgid "Address Box Border Width"
932
  msgstr ""
933
 
934
+ #: includes/class-kadence-woomail-settings.php:2175
935
  msgid "Address Box Border Color"
936
  msgstr ""
937
 
938
+ #: includes/class-kadence-woomail-settings.php:2186
939
  msgid "Address Box Border Style"
940
  msgstr ""
941
 
942
+ #: includes/class-kadence-woomail-settings.php:2205
943
  msgid "Address Box Text Color"
944
  msgstr ""
945
 
946
+ #: includes/class-kadence-woomail-settings.php:2216
947
  msgid "Address Box Text Align"
948
  msgstr ""
949
 
950
+ #: includes/class-kadence-woomail-settings.php:2228
951
  msgid "Footer Background Placement"
952
  msgstr ""
953
 
954
+ #: includes/class-kadence-woomail-settings.php:2240
955
  msgid "Footer Background Color"
956
  msgstr ""
957
 
 
 
 
 
 
 
958
  #: includes/class-kadence-woomail-settings.php:2251
959
  #: includes/class-kadence-woomail-settings.php:2375
960
  #: includes/class-kadence-woomail-settings.php:2523
961
+ msgid "Top Padding"
962
  msgstr ""
963
 
964
  #: includes/class-kadence-woomail-settings.php:2267
965
+ #: includes/class-kadence-woomail-settings.php:2391
966
+ #: includes/class-kadence-woomail-settings.php:2539
967
+ msgid "Bottom Padding"
968
+ msgstr ""
969
+
970
+ #: includes/class-kadence-woomail-settings.php:2283
971
  msgid "Left/Right Padding"
972
  msgstr ""
973
 
974
+ #: includes/class-kadence-woomail-settings.php:2298
975
  msgid "Enable Social Section"
976
  msgstr ""
977
 
978
+ #: includes/class-kadence-woomail-settings.php:2306
979
  msgid "Footer Social Options"
980
  msgstr ""
981
 
982
+ #: includes/class-kadence-woomail-settings.php:2320
983
  msgid "Footer Social Title Color"
984
  msgstr ""
985
 
986
+ #: includes/class-kadence-woomail-settings.php:2331
987
  msgid "Footer Social Title Font Size"
988
  msgstr ""
989
 
990
+ #: includes/class-kadence-woomail-settings.php:2347
991
  msgid "Footer Social Title Font Family"
992
  msgstr ""
993
 
994
+ #: includes/class-kadence-woomail-settings.php:2359
995
  msgid "Footer Social Title Font Weight"
996
  msgstr ""
997
 
998
+ #: includes/class-kadence-woomail-settings.php:2407
999
  msgid "Footer Social Bottom Border Width"
1000
  msgstr ""
1001
 
1002
+ #: includes/class-kadence-woomail-settings.php:2423
1003
  msgid "Footer Social Bottom Border Color"
1004
  msgstr ""
1005
 
1006
+ #: includes/class-kadence-woomail-settings.php:2434
1007
  msgid "Footer Social Bottom Border Style"
1008
  msgstr ""
1009
 
1010
+ #: includes/class-kadence-woomail-settings.php:2453
1011
  msgid "Text Align"
1012
  msgstr ""
1013
 
1014
+ #: includes/class-kadence-woomail-settings.php:2512
1015
  msgid "Text Color"
1016
  msgstr ""
1017
 
1018
+ #: includes/class-kadence-woomail-settings.php:2555
1019
  msgid "Button Text Color"
1020
  msgstr ""
1021
 
1022
+ #: includes/class-kadence-woomail-settings.php:2566
1023
  msgid "Button Font Size"
1024
  msgstr ""
1025
 
1026
+ #: includes/class-kadence-woomail-settings.php:2582
1027
  msgid "Button Font Family"
1028
  msgstr ""
1029
 
1030
+ #: includes/class-kadence-woomail-settings.php:2594
1031
  msgid "Button Font Weight"
1032
  msgstr ""
1033
 
1034
+ #: includes/class-kadence-woomail-settings.php:2610
1035
  msgid "Button Background Color"
1036
  msgstr ""
1037
 
1038
+ #: includes/class-kadence-woomail-settings.php:2621
1039
  msgid "Top and Bottom Padding"
1040
  msgstr ""
1041
 
1042
+ #: includes/class-kadence-woomail-settings.php:2637
1043
  msgid "Left and Right Padding"
1044
  msgstr ""
1045
 
1046
+ #: includes/class-kadence-woomail-settings.php:2653
1047
  msgid "Button Border Width"
1048
  msgstr ""
1049
 
1050
+ #: includes/class-kadence-woomail-settings.php:2686
1051
  msgid "Button Border Color"
1052
  msgstr ""
1053
 
1054
+ #: includes/class-kadence-woomail-settings.php:2697
1055
  msgid "Button Align"
1056
  msgstr ""
1057
 
1058
+ #: includes/class-kadence-woomail-settings.php:2708
1059
  msgid "Custom CSS"
1060
  msgstr ""
1061
 
1062
+ #: includes/class-kadence-woomail-settings.php:2725
1063
  msgid "Preview Email Recipient"
1064
  msgstr ""
1065
 
1066
+ #: includes/class-kadence-woomail-settings.php:2726
1067
  msgid "Enter recipients (comma separated) for preview emails"
1068
  msgstr ""
1069
 
1070
+ #: includes/class-kadence-woomail-settings.php:2767
1071
  msgid "Hi There,"
1072
  msgstr ""
1073
 
1074
+ #: includes/class-kadence-woomail-settings.php:2768
1075
  msgid "{product_title} is now back in stock at {site_title}"
1076
  msgstr ""
1077
 
1078
+ #: includes/class-kadence-woomail-settings.php:2769
1079
  msgid "A product you are waiting for is back in stock"
1080
  msgstr ""
1081
 
1082
+ #: includes/class-kadence-woomail-settings.php:2770
1083
+ #: includes/class-kadence-woomail-settings.php:2794
1084
  msgid "New customer order"
1085
  msgstr ""
1086
 
1087
+ #: includes/class-kadence-woomail-settings.php:2771
1088
+ #: includes/class-kadence-woomail-settings.php:2815
1089
  msgid "[{site_title}] New customer order ({order_number}) - {order_date}"
1090
  msgstr ""
1091
 
1092
+ #: includes/class-kadence-woomail-settings.php:2772
1093
  msgid ""
1094
  "You have received a subscription renewal order from {customer_full_name}. "
1095
  "Their order is as follows:"
1096
  msgstr ""
1097
 
1098
+ #: includes/class-kadence-woomail-settings.php:2773
1099
+ #: includes/class-kadence-woomail-settings.php:2796
1100
+ #: includes/class-kadence-woomail-settings.php:2807
1101
  msgid "Thank you for your order"
1102
  msgstr ""
1103
 
1104
+ #: includes/class-kadence-woomail-settings.php:2774
1105
+ #: includes/class-kadence-woomail-settings.php:2817
1106
+ #: includes/class-kadence-woomail-settings.php:2821
1107
  msgid "Your {site_title} order receipt from {order_date}"
1108
  msgstr ""
1109
 
1110
+ #: includes/class-kadence-woomail-settings.php:2775
1111
  msgid ""
1112
  "Your subscription renewal order has been received and is now being "
1113
  "processed. Your order details are shown below for your reference:"
1114
  msgstr ""
1115
 
1116
+ #: includes/class-kadence-woomail-settings.php:2776
1117
+ #: includes/class-kadence-woomail-settings.php:2779
1118
+ #: includes/class-kadence-woomail-settings.php:2804
1119
  msgid "Your order is complete"
1120
  msgstr ""
1121
 
1122
+ #: includes/class-kadence-woomail-settings.php:2777
1123
+ #: includes/class-kadence-woomail-settings.php:2780
1124
+ #: includes/class-kadence-woomail-settings.php:2818
1125
  msgid "Your {site_title} order from {order_date} is complete"
1126
  msgstr ""
1127
 
1128
+ #: includes/class-kadence-woomail-settings.php:2778
1129
  msgid ""
1130
  "Hi there. Your subscription renewal order with {site_title} has been "
1131
  "completed. Your order details are shown below for your reference:"
1132
  msgstr ""
1133
 
1134
+ #: includes/class-kadence-woomail-settings.php:2781
1135
  msgid ""
1136
  "Hi there. You have successfully changed your subscription items on "
1137
  "{site_title}. Your new order and subscription details are shown below for "
1138
  "your reference:"
1139
  msgstr ""
1140
 
1141
+ #: includes/class-kadence-woomail-settings.php:2782
1142
+ #: includes/class-kadence-woomail-settings.php:2783
1143
+ #: includes/class-kadence-woomail-settings.php:2808
1144
+ #: includes/class-kadence-woomail-settings.php:2822
1145
  msgid "Invoice for order {order_number}"
1146
  msgstr ""
1147
 
1148
+ #: includes/class-kadence-woomail-settings.php:2784
1149
  msgid ""
1150
  "An invoice has been created for you to renew your subscription with "
1151
  "{site_title}. To pay for this invoice please use the following link: "
1152
  "{invoice_pay_link}"
1153
  msgstr ""
1154
 
1155
+ #: includes/class-kadence-woomail-settings.php:2786
1156
  msgid ""
1157
  "The automatic payment to renew your subscription with {site_title} has "
1158
  "failed. To reactivate the subscription, please login and pay for the renewal "
1159
  "from your account page: {invoice_pay_link}"
1160
  msgstr ""
1161
 
1162
+ #: includes/class-kadence-woomail-settings.php:2787
1163
  msgid "Subscription Cancelled"
1164
  msgstr ""
1165
 
1166
+ #: includes/class-kadence-woomail-settings.php:2788
1167
  msgid "[{site_title}] Subscription Cancelled"
1168
  msgstr ""
1169
 
1170
+ #: includes/class-kadence-woomail-settings.php:2789
1171
  msgid ""
1172
  "A subscription belonging to {customer_full_name} has been cancelled. Their "
1173
  "subscription's details are as follows:"
1174
  msgstr ""
1175
 
1176
+ #: includes/class-kadence-woomail-settings.php:2790
1177
  msgid "Automatic payment failed for order {order_number}"
1178
  msgstr ""
1179
 
1180
+ #: includes/class-kadence-woomail-settings.php:2791
1181
  msgid "Automatic payment failed for {order_number}, we will retry {retry_time}"
1182
  msgstr ""
1183
 
1184
+ #: includes/class-kadence-woomail-settings.php:2795
1185
  msgid "Cancelled order"
1186
  msgstr ""
1187
 
1188
+ #: includes/class-kadence-woomail-settings.php:2797
1189
  msgid "Congratulations on the sale!"
1190
  msgstr ""
1191
 
1192
+ #: includes/class-kadence-woomail-settings.php:2798
1193
  msgid "Thanks for using {site_address}!"
1194
  msgstr ""
1195
 
1196
+ #: includes/class-kadence-woomail-settings.php:2799
1197
  msgid "Thanks for shopping with us."
1198
  msgstr ""
1199
 
1200
+ #: includes/class-kadence-woomail-settings.php:2800
1201
  msgid "We hope to see you again soon."
1202
  msgstr ""
1203
 
1204
+ #: includes/class-kadence-woomail-settings.php:2801
1205
  msgid "We look forward to fulfilling your order soon."
1206
  msgstr ""
1207
 
1208
+ #: includes/class-kadence-woomail-settings.php:2802
1209
  msgid "We look forward to seeing you soon."
1210
  msgstr ""
1211
 
1212
+ #: includes/class-kadence-woomail-settings.php:2803
1213
  msgid "Thanks for reading."
1214
  msgstr ""
1215
 
1216
+ #: includes/class-kadence-woomail-settings.php:2805
1217
  msgid "Order {order_number} details"
1218
  msgstr ""
1219
 
1220
+ #: includes/class-kadence-woomail-settings.php:2806
1221
  msgid "Your order has been partially refunded"
1222
  msgstr ""
1223
 
1224
+ #: includes/class-kadence-woomail-settings.php:2809
1225
  msgid "Your order details"
1226
  msgstr ""
1227
 
1228
+ #: includes/class-kadence-woomail-settings.php:2810
1229
  msgid "Failed order"
1230
  msgstr ""
1231
 
1232
+ #: includes/class-kadence-woomail-settings.php:2811
1233
  msgid "Welcome to {site_title}"
1234
  msgstr ""
1235
 
1236
+ #: includes/class-kadence-woomail-settings.php:2812
1237
  msgid "A note has been added to your order"
1238
  msgstr ""
1239
 
1240
+ #: includes/class-kadence-woomail-settings.php:2813
1241
  msgid "Password reset instructions"
1242
  msgstr ""
1243
 
1244
+ #: includes/class-kadence-woomail-settings.php:2816
1245
  msgid "[{site_title}] Cancelled order ({order_number})"
1246
  msgstr ""
1247
 
1248
+ #: includes/class-kadence-woomail-settings.php:2819
1249
  msgid "Your {site_title} order from {order_date} has been refunded"
1250
  msgstr ""
1251
 
1252
+ #: includes/class-kadence-woomail-settings.php:2820
1253
  msgid "Your {site_title} order from {order_date} has been partially refunded"
1254
  msgstr ""
1255
 
1256
+ #: includes/class-kadence-woomail-settings.php:2823
1257
  msgid "Your {site_title} order from {order_date}"
1258
  msgstr ""
1259
 
1260
+ #: includes/class-kadence-woomail-settings.php:2824
1261
  msgid "[{site_title}] Failed order ({order_number})"
1262
  msgstr ""
1263
 
1264
+ #: includes/class-kadence-woomail-settings.php:2825
1265
  msgid "Your account on {site_title}"
1266
  msgstr ""
1267
 
1268
+ #: includes/class-kadence-woomail-settings.php:2826
1269
  msgid "Note added to your {site_title} order from {order_date}"
1270
  msgstr ""
1271
 
1272
+ #: includes/class-kadence-woomail-settings.php:2827
1273
  msgid "Password reset for {site_title}"
1274
  msgstr ""
1275
 
1276
+ #: includes/class-kadence-woomail-settings.php:2828
1277
  msgid ""
1278
  "You have received an order from {customer_full_name}. The order is as "
1279
  "follows:"
1280
  msgstr ""
1281
 
1282
+ #: includes/class-kadence-woomail-settings.php:2829
1283
  msgid ""
1284
  "The order {order_number} from {customer_full_name} has been cancelled. The "
1285
  "order was as follows:"
1286
  msgstr ""
1287
 
1288
+ #: includes/class-kadence-woomail-settings.php:2830
1289
  msgid ""
1290
  "Your order has been received and is now being processed. Your order details "
1291
  "are shown below for your reference:"
1292
  msgstr ""
1293
 
1294
+ #: includes/class-kadence-woomail-settings.php:2831
1295
  msgid ""
1296
  "Hi there. Your recent order on {site_title} has been completed. Your order "
1297
  "details are shown below for your reference:"
1298
  msgstr ""
1299
 
1300
+ #: includes/class-kadence-woomail-settings.php:2833
1301
  msgid "Hi there. Your order on {site_title} has been refunded."
1302
  msgstr ""
1303
 
1304
+ #: includes/class-kadence-woomail-settings.php:2834
1305
  msgid "Hi there. Your order on {site_title} has been partially refunded."
1306
  msgstr ""
1307
 
1308
+ #: includes/class-kadence-woomail-settings.php:2835
1309
  msgid ""
1310
  "Your order is on-hold until we confirm payment has been received. Your order "
1311
  "details are shown below for your reference:"
1312
  msgstr ""
1313
 
1314
+ #: includes/class-kadence-woomail-settings.php:2838
1315
  msgid "An order has been created for you on {site_title}. {invoice_pay_link}"
1316
  msgstr ""
1317
 
1318
+ #: includes/class-kadence-woomail-settings.php:2840
1319
  msgid ""
1320
  "Payment for order {order_number} from {customer_full_name} has failed. The "
1321
  "order was as follows:"
1322
  msgstr ""
1323
 
1324
+ #: includes/class-kadence-woomail-settings.php:2843
1325
  msgid ""
1326
  "Thanks for creating an account on {site_title}. Your username is "
1327
  "{customer_username}"
1328
  msgstr ""
1329
 
1330
+ #: includes/class-kadence-woomail-settings.php:2844
1331
  msgid "Hello, a note has just been added to your order:"
1332
  msgstr ""
1333
 
1334
+ #: includes/class-kadence-woomail-settings.php:2846
1335
  msgid ""
1336
  "Someone requested that the password be reset for the following account:\n"
1337
  "\n"
1342
  "To reset your password, visit the following address:"
1343
  msgstr ""
1344
 
1345
+ #: includes/class-kadence-woomail-settings.php:2855
1346
  msgid "Renew your {membership_plan}"
1347
  msgstr ""
1348
 
1349
+ #: includes/class-kadence-woomail-settings.php:2856
1350
  msgid "Your {site_title} membership has expired"
1351
  msgstr ""
1352
 
1353
+ #: includes/class-kadence-woomail-settings.php:2857
1354
  msgid "You can now access {membership_plan}"
1355
  msgstr ""
1356
 
1357
+ #: includes/class-kadence-woomail-settings.php:2858
1358
  msgid "Your {site_title} membership is now active!"
1359
  msgstr ""
1360
 
1361
+ #: includes/class-kadence-woomail-settings.php:2859
1362
  msgid "An update about your {membership_plan}"
1363
  msgstr ""
1364
 
1365
+ #: includes/class-kadence-woomail-settings.php:2860
1366
  msgid "Your {site_title} membership ends soon!"
1367
  msgstr ""
1368
 
1369
+ #: includes/class-kadence-woomail-settings.php:2861
1370
  msgid "A note has been added about your membership"
1371
  msgstr ""
1372
 
1373
+ #: includes/class-kadence-woomail-settings.php:2862
1374
  msgid "Note added to your {site_title} membership"
1375
  msgstr ""
1376
 
1377
+ #: includes/class-kadence-woomail-settings.php:2863
1378
  msgid "You can renew your {membership_plan}"
1379
  msgstr ""
1380
 
1381
+ #: includes/class-kadence-woomail-settings.php:2864
1382
  msgid "Renew your {site_title} membership!"
1383
  msgstr ""
1384
 
1385
+ #: includes/class-kadence-woomail-settings.php:2865
1386
  msgid "Thanks for shopping with us"
1387
  msgstr ""
1388
 
1389
+ #: includes/class-kadence-woomail-settings.php:2866
1390
  msgid "Your {site_title} order is now delivered"
1391
  msgstr ""
1392
 
1393
+ #: includes/class-kadence-woomail-settings.php:2868
1394
  msgid ""
1395
  "Hi {customer_full_name}\n"
1396
  "\t\t\t\t\t\tYour {site_title} order has been marked delivered on our side."
1397
  msgstr ""
1398
 
1399
+ #: includes/class-kadence-woomail-settings.php:2969
1400
  msgctxt "ekomi"
1401
  msgid "Please rate your Order"
1402
  msgstr ""
1403
 
1404
+ #: includes/class-kadence-woomail-settings.php:2970
1405
  msgid "Account activation {site_title}"
1406
  msgstr ""
1407
 
1408
+ #: includes/class-kadence-woomail-settings.php:2971
1409
  msgid "Payment received"
1410
  msgstr ""
1411
 
1412
+ #: includes/class-kadence-woomail-settings.php:2972
1413
  msgid "Your revocation"
1414
  msgstr ""
1415
 
1416
+ #: includes/class-kadence-woomail-settings.php:2973
1417
  msgid "SEPA Direct Debit Mandate"
1418
  msgstr ""
1419
 
1420
+ #: includes/class-kadence-woomail-settings.php:2974
1421
  msgctxt "trusted-shops"
1422
  msgid "Please rate your Order"
1423
  msgstr ""
1424
 
1425
+ #: includes/class-kadence-woomail-settings.php:3007
1426
  msgid "none"
1427
  msgstr ""
1428
 
1429
+ #: includes/class-kadence-woomail-settings.php:3008
1430
  msgid "hidden"
1431
  msgstr ""
1432
 
1433
+ #: includes/class-kadence-woomail-settings.php:3009
1434
  msgid "dotted"
1435
  msgstr ""
1436
 
1437
+ #: includes/class-kadence-woomail-settings.php:3010
1438
  msgid "dashed"
1439
  msgstr ""
1440
 
1441
+ #: includes/class-kadence-woomail-settings.php:3011
1442
  msgid "solid"
1443
  msgstr ""
1444
 
1445
+ #: includes/class-kadence-woomail-settings.php:3012
1446
  msgid "double"
1447
  msgstr ""
1448
 
1449
+ #: includes/class-kadence-woomail-settings.php:3013
1450
  msgid "groove"
1451
  msgstr ""
1452
 
1453
+ #: includes/class-kadence-woomail-settings.php:3014
1454
  msgid "ridge"
1455
  msgstr ""
1456
 
1457
+ #: includes/class-kadence-woomail-settings.php:3015
1458
  msgid "inset"
1459
  msgstr ""
1460
 
1461
+ #: includes/class-kadence-woomail-settings.php:3016
1462
  msgid "outset"
1463
  msgstr ""
1464
 
1465
+ #: includes/class-kadence-woomail-settings.php:3028
1466
+ #: includes/class-kadence-woomail-settings.php:3042
1467
  msgid "Left"
1468
  msgstr ""
1469
 
1470
+ #: includes/class-kadence-woomail-settings.php:3029
1471
+ #: includes/class-kadence-woomail-settings.php:3043
1472
  msgid "Center"
1473
  msgstr ""
1474
 
1475
+ #: includes/class-kadence-woomail-settings.php:3030
1476
+ #: includes/class-kadence-woomail-settings.php:3044
1477
  msgid "Right"
1478
  msgstr ""
1479
 
1480
+ #: includes/class-kadence-woomail-settings.php:3031
1481
  msgid "Justify"
1482
  msgstr ""
1483
 
1484
+ #: includes/class-kadence-woomail-settings.php:3056
1485
  msgid "Mockup Order"
1486
  msgstr ""
1487
 
1527
  msgid "Guest"
1528
  msgstr ""
1529
 
 
1530
  #: kadence-woocommerce-email-designer.php:487
1531
+ #: kadence-woocommerce-email-designer.php:488
1532
  msgid "Email Customizer"
1533
  msgstr ""
1534
 
1535
+ #: kadence-woocommerce-email-designer.php:502
1536
  msgid "Open Email Designer"
1537
  msgstr ""
1538
 
1671
  "renewal from your account page: %1$sPay Now &raquo;%2$s"
1672
  msgstr ""
1673
 
1674
+ #: templates/woo/emails/customer-reset-password.php:39
1675
+ msgid "Reset Password"
1676
+ msgstr ""
1677
+
1678
  #: templates/woo/emails/customer-reset-password.php:44
1679
  msgid "Click here to reset your password"
1680
  msgstr ""
1790
  msgctxt "Used as end date for an indefinite subscription"
1791
  msgid "When Cancelled"
1792
  msgstr ""
1793
+
1794
+ #: templates/woo/emails/waitlist-mailout.php:26
1795
+ #, php-format
1796
+ msgid "%s is now back in stock at %s. "
1797
+ msgstr ""
1798
+
1799
+ #: templates/woo/emails/waitlist-mailout.php:27
1800
+ msgid ""
1801
+ "You have been sent this email because your email address was registered on a "
1802
+ "waitlist for this product."
1803
+ msgstr ""
1804
+
1805
+ #: templates/woo/emails/waitlist-mailout.php:30
1806
+ #, php-format
1807
+ msgid "If you would like to purchase %s please visit the following link: %s"
1808
+ msgstr ""
1809
+
1810
+ #: templates/woo/emails/waitlist-mailout.php:34
1811
+ msgid "You have been removed from the waitlist for this product"
1812
+ msgstr ""
readme.txt CHANGED
@@ -4,8 +4,8 @@ Tags: woocommerce, mail, email, email template, email templates, email design, p
4
  Donate link: https://www.kadencethemes.com/about-us/
5
  Requires PHP: 5.2.4
6
  Requires at least: 4.4
7
- Tested up to: 5.2.2
8
- Stable tag: 1.3.3
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -60,6 +60,11 @@ Install the plugin into the `/wp-content/plugins/` folder, and activate it.
60
 
61
  == Changelog ==
62
 
 
 
 
 
 
63
  = 1.3.3 =
64
  * Remove: Retry Payment Preview Generate until more testing can be done or consulting with the plugin authors. Currently will only preview with orders that are actively in the Retrying payment phase.
65
 
4
  Donate link: https://www.kadencethemes.com/about-us/
5
  Requires PHP: 5.2.4
6
  Requires at least: 4.4
7
+ Tested up to: 5.3.0
8
+ Stable tag: 1.3.4
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
60
 
61
  == Changelog ==
62
 
63
+ = 1.3.4 =
64
+ * Update: Woo Waiting Update
65
+ * Fix: Translation String.
66
+ * Update: Check if $email isset.
67
+
68
  = 1.3.3 =
69
  * Remove: Retry Payment Preview Generate until more testing can be done or consulting with the plugin authors. Currently will only preview with orders that are actively in the Retrying payment phase.
70
 
templates/woo/emails/customer-reset-password.php CHANGED
@@ -36,7 +36,7 @@ do_action( 'woocommerce_email_header', $email_heading, $email );
36
  do_action( 'kadence_woomail_designer_email_text', $email );
37
 
38
  if ( true == $button_check ) {
39
- echo '<p class="btn-container"><a href="' . esc_url( add_query_arg( array( 'key' => $reset_key, 'id' => $user_id ), wc_get_endpoint_url( 'lost-password', '', wc_get_page_permalink( 'myaccount' ) ) ) ) . '" class="btn">' . esc_html( 'Reset Password', 'kadence-woocommerce-email-designer' ) . '</a></p>';
40
  } else {
41
  ?>
42
  <p>
36
  do_action( 'kadence_woomail_designer_email_text', $email );
37
 
38
  if ( true == $button_check ) {
39
+ echo '<p class="btn-container"><a href="' . esc_url( add_query_arg( array( 'key' => $reset_key, 'id' => $user_id ), wc_get_endpoint_url( 'lost-password', '', wc_get_page_permalink( 'myaccount' ) ) ) ) . '" class="btn">' . esc_html__( 'Reset Password', 'kadence-woocommerce-email-designer' ) . '</a></p>';
40
  } else {
41
  ?>
42
  <p>
templates/woo/emails/email-header.php CHANGED
@@ -28,7 +28,7 @@ if ( ! defined( 'ABSPATH' ) ) {
28
  * Add Header image container
29
  * Add Order Style Class
30
  */
31
- if ( is_object( $email ) && isset( $email->id ) ) {
32
  $key = $email->id;
33
  } else {
34
  $key = '';
28
  * Add Header image container
29
  * Add Order Style Class
30
  */
31
+ if ( isset( $email ) && is_object( $email ) && isset( $email->id ) ) {
32
  $key = $email->id;
33
  } else {
34
  $key = '';
templates/woo/emails/email-styles.php CHANGED
@@ -139,8 +139,8 @@ body {
139
  font-size:12px;
140
  line-height:125%;
141
  text-align:center;
142
- padding-left: 10px;
143
- padding-right: 10px;
144
  }
145
 
146
  #body_content {
139
  font-size:12px;
140
  line-height:125%;
141
  text-align:center;
142
+ padding-left: 0px;
143
+ padding-right: 0px;
144
  }
145
 
146
  #body_content {
templates/woo/emails/waitlist-mailout.php CHANGED
@@ -4,14 +4,15 @@
4
  *
5
  * @author Neil Pie
6
  * @package WooCommerce_Waitlist/Templates/Emails
7
- * @version 1.7.0
8
  */
9
  if ( ! defined( 'ABSPATH' ) ) {
10
- exit; // Exit if accessed directly
11
  }
12
- $eobject = new stdClass();
13
- $eobject->id = 'woocommerce_waitlist_mailout';
14
- $eobject->object = get_product( $product_id );
 
15
  do_action( 'woocommerce_email_header', $email_heading, $eobject ); ?>
16
 
17
  <?php
@@ -20,16 +21,23 @@ do_action( 'woocommerce_email_header', $email_heading, $eobject ); ?>
20
  */
21
  do_action( 'kadence_woomail_designer_email_text', $eobject );
22
  ?>
 
 
 
 
 
 
 
 
23
 
24
- <p>
25
- <?php echo sprintf( $back_in_stock_text, $product_title, get_bloginfo( 'name' ) ) . ". ";
26
- echo $you_have_been_sent_text; ?>
27
- </p>
28
- <p>
29
- <?php echo sprintf( $purchase_text, $product_title, '<a href="' . $product_link . '">' . $product_link . '<a>' ); ?>
30
- </p>
31
-
32
- <?php if ( WooCommerce_Waitlist_Plugin::persistent_waitlists_are_disabled( $product_id ) && ! $triggered_manually ) {
33
- echo '<p>' . $remove_text . '</p>';
34
  }
35
- do_action( 'woocommerce_email_footer', $eobject ); ?>
4
  *
5
  * @author Neil Pie
6
  * @package WooCommerce_Waitlist/Templates/Emails
7
+ * @version 2.1.9
8
  */
9
  if ( ! defined( 'ABSPATH' ) ) {
10
+ exit; // Exit if accessed directly.
11
  }
12
+ $eobject = new stdClass();
13
+ $eobject->id = 'woocommerce_waitlist_mailout';
14
+ $eobject->object = get_product( $product_id );
15
+ $hide_check = Kadence_Woomail_Customizer::opt( 'woocommerce_waitlist_mailout_hide_content' );
16
  do_action( 'woocommerce_email_header', $email_heading, $eobject ); ?>
17
 
18
  <?php
21
  */
22
  do_action( 'kadence_woomail_designer_email_text', $eobject );
23
  ?>
24
+ <?php if ( ! $hide_check ) { ?>
25
+ <p>
26
+ <?php printf( __( '%s is now back in stock at %s. ', 'kadence-woocommerce-email-designer' ), $product_title, get_bloginfo( 'name' ) );
27
+ _e( 'You have been sent this email because your email address was registered on a waitlist for this product.', 'kadence-woocommerce-email-designer' ); ?>
28
+ </p>
29
+ <p>
30
+ <?php printf( __( 'If you would like to purchase %s please visit the following link: %s', 'kadence-woocommerce-email-designer' ), $product_title, '<a href="' . $product_link . '">' . $product_link . '<a>' ); ?>
31
+ </p>
32
 
33
+ <?php if ( WooCommerce_Waitlist_Plugin::persistent_waitlists_are_disabled( $product_id ) && ! $triggered_manually ) {
34
+ echo '<p>' . __( 'You have been removed from the waitlist for this product', 'kadence-woocommerce-email-designer' ) . '</p>';
35
+ }
36
+ }
37
+ /**
38
+ * Show user-defined additonal content - this is set in each email's settings.
39
+ */
40
+ if ( isset( $additional_content ) && ! empty( $additional_content ) ) {
41
+ echo wp_kses_post( wpautop( wptexturize( $additional_content ) ) );
 
42
  }
43
+ do_action( 'woocommerce_email_footer', $eobject ); ?>