Kadence WooCommerce Email Designer - Version 1.1.8

Version Description

  • Update: WC Membership Support.
Download this release

Release Info

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

Code changes from version 1.1.7 to 1.1.8

includes/class-kadence-woomail-preview.php CHANGED
@@ -1,4 +1,9 @@
1
  <?php
 
 
 
 
 
2
 
3
  // Exit if accessed directly.
4
  if ( ! defined( 'ABSPATH' ) ) {
@@ -10,12 +15,15 @@ if ( ! defined( 'ABSPATH' ) ) {
10
  * Heavily borrowed from rightpress Decorator
11
  */
12
  if ( ! class_exists( 'Kadence_Woomail_Preview' ) ) {
13
-
 
 
14
  class Kadence_Woomail_Preview {
15
- // WooCommerce email classes
16
  public static $current_order = null;
17
  public static $current_product_title = null;
18
  public static $current_recipients = null;
 
19
  public static $email_types_class_names = array(
20
  'new_order' => 'WC_Email_New_Order',
21
  'cancelled_order' => 'WC_Email_Cancelled_Order',
@@ -28,7 +36,7 @@ if ( ! class_exists( 'Kadence_Woomail_Preview' ) ) {
28
  'customer_new_account' => 'WC_Email_Customer_New_Account',
29
  'customer_note' => 'WC_Email_Customer_Note',
30
  'customer_reset_password' => 'WC_Email_Customer_Reset_Password',
31
- // WooCommerce Subscriptions Plugin
32
  'new_renewal_order' => 'WCS_Email_New_Renewal_Order',
33
  'customer_processing_renewal_order' => 'WCS_Email_Processing_Renewal_Order',
34
  'customer_completed_renewal_order' => 'WCS_Email_Completed_Renewal_Order',
@@ -36,7 +44,29 @@ if ( ! class_exists( 'Kadence_Woomail_Preview' ) ) {
36
  'customer_renewal_invoice' => 'WCS_Email_Customer_Renewal_Invoice',
37
  'customer_payment_retry' => 'WCS_Email_Customer_Payment_Retry',
38
  'cancelled_subscription' => 'WCS_Email_Cancelled_Subscription',
39
- // // Subscriptio Email Types
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40
  // 'customer_subscription_new_order' => 'Subscriptio_Email_Customer_Subscription_New_Order',
41
  // 'customer_subscription_processing_order' => 'Subscriptio_Email_Customer_Subscription_Processing_Order',
42
  // 'customer_subscription_completed_order' => 'Subscriptio_Email_Customer_Subscription_Completed_Order',
@@ -47,8 +77,6 @@ if ( ! class_exists( 'Kadence_Woomail_Preview' ) ) {
47
  // 'customer_subscription_payment_reminder' => 'Subscriptio_Email_Customer_Subscription_Payment_Reminder',
48
  // 'customer_subscription_expired' => 'Subscriptio_Email_Customer_Subscription_Expired',
49
  // 'customer_subscription_cancelled' => 'Subscriptio_Email_Customer_Subscription_Cancelled',
50
- // Waitlist Plugin
51
- 'woocommerce_waitlist_mailout' => 'Pie_WCWL_Waitlist_Mailout',
52
  );
53
  public static $email_types_order_status = array(
54
  'new_order' => 'processing',
@@ -70,7 +98,29 @@ if ( ! class_exists( 'Kadence_Woomail_Preview' ) ) {
70
  'customer_renewal_invoice' => 'failed',
71
  'customer_payment_retry' => 'on-hold',
72
  'cancelled_subscription' => 'cancelled',
73
- // // Subscriptio Email Types
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
74
  // 'customer_subscription_new_order' => 'processing',
75
  // 'customer_subscription_processing_order' => 'processing',
76
  // 'customer_subscription_completed_order' => 'completed',
@@ -81,12 +131,10 @@ if ( ! class_exists( 'Kadence_Woomail_Preview' ) ) {
81
  // 'customer_subscription_payment_reminder' => 'completed',
82
  // 'customer_subscription_expired' => 'failed',
83
  // 'customer_subscription_cancelled' => 'cancelled',
84
- // Waitlist Plugin
85
- 'woocommerce_waitlist_mailout' => null,
86
  );
87
  /**
88
- * @var null
89
- */
90
  private static $instance = null;
91
 
92
  /**
@@ -131,9 +179,10 @@ if ( ! class_exists( 'Kadence_Woomail_Preview' ) ) {
131
  /**
132
  * Get the email order status
133
  *
 
134
  */
135
  public static function get_email_order_status( $email_template ) {
136
- $order_status = apply_filters( 'kadence_woomail_email_type_order_status_array', Kadence_Woomail_Preview::$email_types_order_status );
137
  if ( isset( $order_status[ $email_template ] ) ) {
138
  return $order_status[ $email_template ];
139
  } else {
@@ -145,7 +194,7 @@ if ( ! class_exists( 'Kadence_Woomail_Preview' ) ) {
145
  *
146
  */
147
  public static function get_email_class_name( $email_template ) {
148
- $class_names = apply_filters( 'kadence_woomail_email_type_class_name_array', Kadence_Woomail_Preview::$email_types_class_names );
149
  if ( isset( $class_names[ $email_template ] ) ) {
150
  return $class_names[ $email_template ];
151
  } else {
@@ -162,13 +211,13 @@ if ( ! class_exists( 'Kadence_Woomail_Preview' ) ) {
162
  $emails = $wc_emails->get_emails();
163
  $email_template = Kadence_Woomail_Customizer::opt( 'email_type' );
164
  $preview_id = Kadence_Woomail_Customizer::opt( 'preview_order_id' );
165
- $email_type = Kadence_Woomail_Preview::get_email_class_name( $email_template );
166
  if ( false === $email_type ) {
167
  return false;
168
  }
169
- $order_status = Kadence_Woomail_Preview::get_email_order_status( $email_template );
170
 
171
- //$order_status = Kadence_Woomail_Preview::$email_types_order_status[$email_template];
172
 
173
  if ( 'customer_invoice' == $email_template ) {
174
  $invoice_paid = Kadence_Woomail_Customizer::opt( 'customer_invoice_switch' );
@@ -190,7 +239,7 @@ if ( ! class_exists( 'Kadence_Woomail_Preview' ) ) {
190
  };
191
 
192
  // Get an order
193
- $order = Kadence_Woomail_Preview::get_wc_order_for_preview( $order_status, $preview_id );
194
  self::$current_order = $order;
195
 
196
  if ( is_object( $order ) ) {
@@ -337,6 +386,114 @@ if ( ! class_exists( 'Kadence_Woomail_Preview' ) ) {
337
  $email->object = 'subscription';
338
  }
339
  break;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
340
  // /**
341
  // * Subscriptio
342
  // */
@@ -394,6 +551,29 @@ if ( ! class_exists( 'Kadence_Woomail_Preview' ) ) {
394
  $content = '<div style="padding: 35px 40px; background-color: white;">' . __( 'This email type can not be previewed please try a differnet order or email type.', 'kadence-woocommerce-email-designer' ) . '</div>';
395
  } else if ( 'subscription' == $email->object ) {
396
  $content = '<div style="padding: 35px 40px; background-color: white;">' . __( 'This email type requires that an order containing a subscription be selected as the preview order.', 'kadence-woocommerce-email-designer' ) . '</div>';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
397
  } else {
398
  // Get email content and apply styles.
399
  $content = $email->get_content();
@@ -436,7 +616,7 @@ if ( ! class_exists( 'Kadence_Woomail_Preview' ) ) {
436
  */
437
  public static function print_preview_email() {
438
 
439
- $content = Kadence_Woomail_Preview::get_preview_email();
440
  if ( false == $content ) {
441
  echo __( 'An error occurred trying to load this email type. Make sure this email type is enabled or please try another type.', 'kadence-woocommerce-email-designer' );
442
  } elseif ( ! empty( $content ) ) {
@@ -448,13 +628,13 @@ if ( ! class_exists( 'Kadence_Woomail_Preview' ) ) {
448
  }
449
 
450
  /**
451
- * send preview email
452
  *
453
  * @access public
454
  * @return void
455
  */
456
  public static function send_preview_email() {
457
- $content = Kadence_Woomail_Preview::get_preview_email();
458
  if ( ! empty( $content ) ) {
459
  // Print email content
460
  echo $content;
@@ -462,17 +642,17 @@ if ( ! class_exists( 'Kadence_Woomail_Preview' ) ) {
462
  }
463
 
464
  /**
465
- * Get WooCommerce order for preview
466
- *
467
- * @access public
468
- * @param string $order_status
469
- * @return object
470
- */
471
  public static function get_wc_order_for_preview( $order_status = null, $order_id = null ) {
472
  if ( ! empty( $order_id ) && 'mockup' != $order_id ) {
473
  return wc_get_order( $order_id );
474
  } else {
475
- // Use mockup order (WC 2.7+)
476
 
477
  // Instantiate order object
478
  $order = new WC_Order();
@@ -545,6 +725,7 @@ if ( ! class_exists( 'Kadence_Woomail_Preview' ) ) {
545
  }
546
  $scripts .= 'var pl_customer_username = "' . Kadence_Woomail_Designer::get_username_from_id( $user_id ) . '";';
547
  }
 
548
  $scripts .= 'var pl_product_title = "' . self::$current_product_title . '";';
549
  // Function to handle special cases.
550
  $scripts .= "function prepare(value, key, selector) {
@@ -582,7 +763,10 @@ if ( ! class_exists( 'Kadence_Woomail_Preview' ) ) {
582
  value = value.replace('{product_title}', pl_product_title);
583
  } else if (value && value.includes('{year}') ) {
584
  value = value.replace('{year}', pl_year);
 
 
585
  }
 
586
  return value;
587
  }";
588
  // Get CSS suffixes
1
  <?php
2
+ /**
3
+ * Customizer Setup for preview.
4
+ *
5
+ * @package Kadence WooCommerce Email Designer
6
+ */
7
 
8
  // Exit if accessed directly.
9
  if ( ! defined( 'ABSPATH' ) ) {
15
  * Heavily borrowed from rightpress Decorator
16
  */
17
  if ( ! class_exists( 'Kadence_Woomail_Preview' ) ) {
18
+ /**
19
+ * Customizer Preview Setup
20
+ */
21
  class Kadence_Woomail_Preview {
22
+ // WooCommerce email classes.
23
  public static $current_order = null;
24
  public static $current_product_title = null;
25
  public static $current_recipients = null;
26
+ public static $current_member = null;
27
  public static $email_types_class_names = array(
28
  'new_order' => 'WC_Email_New_Order',
29
  'cancelled_order' => 'WC_Email_Cancelled_Order',
36
  'customer_new_account' => 'WC_Email_Customer_New_Account',
37
  'customer_note' => 'WC_Email_Customer_Note',
38
  'customer_reset_password' => 'WC_Email_Customer_Reset_Password',
39
+ // WooCommerce Subscriptions Plugin.
40
  'new_renewal_order' => 'WCS_Email_New_Renewal_Order',
41
  'customer_processing_renewal_order' => 'WCS_Email_Processing_Renewal_Order',
42
  'customer_completed_renewal_order' => 'WCS_Email_Completed_Renewal_Order',
44
  'customer_renewal_invoice' => 'WCS_Email_Customer_Renewal_Invoice',
45
  'customer_payment_retry' => 'WCS_Email_Customer_Payment_Retry',
46
  'cancelled_subscription' => 'WCS_Email_Cancelled_Subscription',
47
+ // Woocommerce Memberships.
48
+ 'WC_Memberships_User_Membership_Note_Email' => 'WC_Memberships_User_Membership_Note_Email',
49
+ 'WC_Memberships_User_Membership_Ending_Soon_Email' => 'WC_Memberships_User_Membership_Ending_Soon_Email',
50
+ 'WC_Memberships_User_Membership_Ended_Email' => 'WC_Memberships_User_Membership_Ended_Email',
51
+ 'WC_Memberships_User_Membership_Renewal_Reminder_Email' => 'WC_Memberships_User_Membership_Renewal_Reminder_Email',
52
+ 'WC_Memberships_User_Membership_Activated_Email' => 'WC_Memberships_User_Membership_Activated_Email',
53
+ // Waitlist Plugin.
54
+ 'woocommerce_waitlist_mailout' => 'Pie_WCWL_Waitlist_Mailout',
55
+ // WC Marketplace
56
+ 'vendor_new_account' => 'WC_Email_Vendor_New_Account',
57
+ 'admin_new_vendor' => 'WC_Email_Admin_New_Vendor_Account',
58
+ 'approved_vendor_new_account' => 'WC_Email_Approved_New_Vendor_Account',
59
+ 'rejected_vendor_new_account' => 'WC_Email_Rejected_New_Vendor_Account',
60
+ 'vendor_new_order' => 'WC_Email_Vendor_New_Order',
61
+ 'notify_shipped' => 'WC_Email_Notify_Shipped',
62
+ 'admin_new_vendor_product' => 'WC_Email_Vendor_New_Product_Added',
63
+ 'admin_added_new_product_to_vendor' => 'WC_Email_Admin_Added_New_Product_to_Vendor',
64
+ 'vendor_commissions_transaction' => 'WC_Email_Vendor_Commission_Transactions',
65
+ 'vendor_direct_bank' => 'WC_Email_Vendor_Direct_Bank',
66
+ 'admin_widthdrawal_request' => 'WC_Email_Admin_Widthdrawal_Request',
67
+ 'vendor_orders_stats_report' => 'WC_Email_Vendor_Orders_Stats_Report',
68
+ 'vendor_contact_widget_email' => 'WC_Email_Vendor_Contact_Widget',
69
+ // Subscriptio Email Types.
70
  // 'customer_subscription_new_order' => 'Subscriptio_Email_Customer_Subscription_New_Order',
71
  // 'customer_subscription_processing_order' => 'Subscriptio_Email_Customer_Subscription_Processing_Order',
72
  // 'customer_subscription_completed_order' => 'Subscriptio_Email_Customer_Subscription_Completed_Order',
77
  // 'customer_subscription_payment_reminder' => 'Subscriptio_Email_Customer_Subscription_Payment_Reminder',
78
  // 'customer_subscription_expired' => 'Subscriptio_Email_Customer_Subscription_Expired',
79
  // 'customer_subscription_cancelled' => 'Subscriptio_Email_Customer_Subscription_Cancelled',
 
 
80
  );
81
  public static $email_types_order_status = array(
82
  'new_order' => 'processing',
98
  'customer_renewal_invoice' => 'failed',
99
  'customer_payment_retry' => 'on-hold',
100
  'cancelled_subscription' => 'cancelled',
101
+ // Woocommerce Memberships.
102
+ 'WC_Memberships_User_Membership_Note_Email' => 'completed',
103
+ 'WC_Memberships_User_Membership_Ending_Soon_Email' => 'completed',
104
+ 'WC_Memberships_User_Membership_Ended_Email' => 'on-hold',
105
+ 'WC_Memberships_User_Membership_Renewal_Reminder_Email' => 'completed',
106
+ 'WC_Memberships_User_Membership_Activated_Email' => 'completed',
107
+ // Waitlist Plugin
108
+ 'woocommerce_waitlist_mailout' => null,
109
+ // WC Marketplace
110
+ 'vendor_new_account' => null,
111
+ 'admin_new_vendor' => null,
112
+ 'approved_vendor_new_account' => null,
113
+ 'rejected_vendor_new_account' => null,
114
+ 'vendor_new_order' => 'processing',
115
+ 'notify_shipped' => 'completed',
116
+ 'admin_new_vendor_product' => null,
117
+ 'admin_added_new_product_to_vendor' => null,
118
+ 'vendor_commissions_transaction' => null,
119
+ 'vendor_direct_bank' => null,
120
+ 'admin_widthdrawal_request' => null,
121
+ 'vendor_orders_stats_report' => null,
122
+ 'vendor_contact_widget_email' => null,
123
+ // Subscriptio Email Types
124
  // 'customer_subscription_new_order' => 'processing',
125
  // 'customer_subscription_processing_order' => 'processing',
126
  // 'customer_subscription_completed_order' => 'completed',
131
  // 'customer_subscription_payment_reminder' => 'completed',
132
  // 'customer_subscription_expired' => 'failed',
133
  // 'customer_subscription_cancelled' => 'cancelled',
 
 
134
  );
135
  /**
136
+ * @var null
137
+ */
138
  private static $instance = null;
139
 
140
  /**
179
  /**
180
  * Get the email order status
181
  *
182
+ * @param string $email_template the template string name.
183
  */
184
  public static function get_email_order_status( $email_template ) {
185
+ $order_status = apply_filters( 'kadence_woomail_email_type_order_status_array', self::$email_types_order_status );
186
  if ( isset( $order_status[ $email_template ] ) ) {
187
  return $order_status[ $email_template ];
188
  } else {
194
  *
195
  */
196
  public static function get_email_class_name( $email_template ) {
197
+ $class_names = apply_filters( 'kadence_woomail_email_type_class_name_array', self::$email_types_class_names );
198
  if ( isset( $class_names[ $email_template ] ) ) {
199
  return $class_names[ $email_template ];
200
  } else {
211
  $emails = $wc_emails->get_emails();
212
  $email_template = Kadence_Woomail_Customizer::opt( 'email_type' );
213
  $preview_id = Kadence_Woomail_Customizer::opt( 'preview_order_id' );
214
+ $email_type = self::get_email_class_name( $email_template );
215
  if ( false === $email_type ) {
216
  return false;
217
  }
218
+ $order_status = self::get_email_order_status( $email_template );
219
 
220
+ //$order_status = self::$email_types_order_status[$email_template];
221
 
222
  if ( 'customer_invoice' == $email_template ) {
223
  $invoice_paid = Kadence_Woomail_Customizer::opt( 'customer_invoice_switch' );
239
  };
240
 
241
  // Get an order
242
+ $order = self::get_wc_order_for_preview( $order_status, $preview_id );
243
  self::$current_order = $order;
244
 
245
  if ( is_object( $order ) ) {
386
  $email->object = 'subscription';
387
  }
388
  break;
389
+ /**
390
+ * WooCommerce Membership.
391
+ */
392
+ case 'WC_Memberships_User_Membership_Note_Email':
393
+ case 'WC_Memberships_User_Membership_Ending_Soon_Email':
394
+ case 'WC_Memberships_User_Membership_Ended_Email':
395
+ case 'WC_Memberships_User_Membership_Renewal_Reminder_Email':
396
+ case 'WC_Memberships_User_Membership_Activated_Email':
397
+ if ( function_exists( 'wc_memberships_get_user_membership' ) ) {
398
+ $memberships = wc_memberships_get_user_active_memberships( $user_id );
399
+
400
+ if ( ! empty( $memberships ) ) {
401
+ $user_membership = $memberships[0];
402
+ self::$current_member = $user_membership;
403
+ $email->object = $user_membership;
404
+ $email_id = strtolower( $email_template );
405
+ $email_body = $email->object->get_plan()->get_email_content( $email_template );
406
+ $member_body = (string) apply_filters( "{$email_id}_email_body", $email->format_string( $email_body ), $email->object );
407
+
408
+ if ( empty( $member_body ) || ! is_string( $member_body ) || '' === trim( $member_body ) ) {
409
+ $member_body = $email->get_default_body();
410
+ }
411
+
412
+ // convert relative URLs to absolute for links href and images src attributes
413
+ $domain = get_home_url();
414
+ $replace = array();
415
+ $replace['/href="(?!https?:\/\/)(?!data:)(?!#)/'] = 'href="' . $domain;
416
+ $replace['/src="(?!https?:\/\/)(?!data:)(?!#)/'] = 'src="' . $domain;
417
+
418
+ $member_body = preg_replace( array_keys( $replace ), array_values( $replace ), $member_body );
419
+
420
+ $membership_plan = $user_membership->get_plan();
421
+
422
+ // get member data
423
+ $member = get_user_by( 'id', $user_membership->get_user_id() );
424
+ $member_name = ! empty( $member->display_name ) ? $member->display_name : '';
425
+ $member_first_name = ! empty( $member->first_name ) ? $member->first_name : $member_name;
426
+ $member_last_name = ! empty( $member->last_name ) ? $member->last_name : '';
427
+ $member_full_name = $member_first_name && $member_last_name ? $member_first_name . ' ' . $member->last_name : $member_name;
428
+
429
+ // membership expiry date
430
+ $expiration_date_timestamp = $user_membership->get_local_end_date( 'timestamp' );
431
+
432
+ // placeholders
433
+ $email_merge_tags = array(
434
+ 'member_name' => $member_name,
435
+ 'member_first_name' => $member_first_name,
436
+ 'member_last_name' => $member_last_name,
437
+ 'member_full_name' => $member_full_name,
438
+ 'membership_plan' => $membership_plan ? $membership_plan->get_name() : '',
439
+ 'membership_expiration_date' => date_i18n( wc_date_format(), $expiration_date_timestamp ),
440
+ 'membership_expiry_time_diff' => human_time_diff( current_time( 'timestamp', true ), $expiration_date_timestamp ),
441
+ 'membership_view_url' => esc_url( $user_membership->get_view_membership_url() ),
442
+ 'membership_renewal_url' => esc_url( $user_membership->get_renew_membership_url() ),
443
+ );
444
+ foreach ( $email_merge_tags as $find => $replace ) {
445
+ $email->find[$find] = '{' . $find . '}';
446
+ $email->replace[$find] = $replace;
447
+ $member_body = str_replace( '{' . $find . '}', $replace, $member_body );
448
+ }
449
+ } else {
450
+ $email->object = 'member';
451
+ }
452
+ } else {
453
+ $email->object = false;
454
+ }
455
+ break;
456
+ /**
457
+ * WC MarketPlace
458
+ */
459
+ case 'vendor_new_order':
460
+ if ( is_object( $order ) ) {
461
+ $order_id = $order->get_id();
462
+ if ( function_exists( 'get_vendor_from_an_order' ) ) {
463
+ if ( 1 === $order_id ) {
464
+ $email->object = 'vendor';
465
+ } else {
466
+ $vendors = get_vendor_from_an_order( $order_id );
467
+
468
+ if ( $vendors ) {
469
+ $vendor = $vendors[0];
470
+
471
+ $vendor_obj = get_wcmp_vendor_by_term( $vendor );
472
+ $vendor_email = $vendor_obj->user_data->user_email;
473
+ $vendor_id = $vendor_obj->id;
474
+
475
+ if ( $order_id && $vendor_email ) {
476
+ $email->object = $email->order = $order;
477
+ $email->find[] = '{order_date}';
478
+ $email->replace[] = wc_format_datetime( $email->object->get_date_created() );
479
+
480
+ $email->find[] = '{order_number}';
481
+ $email->replace[] = $email->object->get_order_number();
482
+ $email->vendor_email = $vendor_email;
483
+ $email->vendor_id = $vendor_id;
484
+ $email->recipient = $vendor_email;
485
+ }
486
+ } else {
487
+ $email->object = 'vendor';
488
+ }
489
+ }
490
+ } else {
491
+ $email->object = false;
492
+ }
493
+ } else {
494
+ $email->object = false;
495
+ }
496
+ break;
497
  // /**
498
  // * Subscriptio
499
  // */
551
  $content = '<div style="padding: 35px 40px; background-color: white;">' . __( 'This email type can not be previewed please try a differnet order or email type.', 'kadence-woocommerce-email-designer' ) . '</div>';
552
  } else if ( 'subscription' == $email->object ) {
553
  $content = '<div style="padding: 35px 40px; background-color: white;">' . __( 'This email type requires that an order containing a subscription be selected as the preview order.', 'kadence-woocommerce-email-designer' ) . '</div>';
554
+ } else if ( 'vendor' == $email->object ) {
555
+ $content = '<div style="padding: 35px 40px; background-color: white;">' . __( 'This email type requires that an order containing a vender purchase be selected as the preview order.', 'kadence-woocommerce-email-designer' ) . '</div>';
556
+ } else if ( 'member' == $email->object ) {
557
+ $content = '<div style="padding: 35px 40px; background-color: white;">' . __( 'This email type requires that an order containing a user who has an active membership be selected as the preview order.', 'kadence-woocommerce-email-designer' ) . '</div>';
558
+ } else if ( 'WC_Memberships_User_Membership_Ending_Soon_Email' === $email_template || 'WC_Memberships_User_Membership_Renewal_Reminder_Email' === $email_template || 'WC_Memberships_User_Membership_Activated_Email' === $email_template || 'WC_Memberships_User_Membership_Ended_Email' === $email_template ) {
559
+ $args = array(
560
+ 'user_membership' => $email->object,
561
+ 'email' => $email,
562
+ 'email_heading' => $email->get_heading(),
563
+ 'email_body' => $member_body,
564
+ 'sent_to_admin' => false,
565
+ );
566
+ ob_start();
567
+
568
+ wc_get_template( $email->template_html, $args );
569
+
570
+ $content = ob_get_clean();
571
+ $content = $email->style_inline( $content );
572
+ $content = apply_filters( 'woocommerce_mail_content', $content );
573
+
574
+ if ( 'plain' === $email->email_type ) {
575
+ $content = '<div style="padding: 35px 40px; background-color: white;">' . str_replace( "\n", '<br/>', $content ) . '</div>';
576
+ }
577
  } else {
578
  // Get email content and apply styles.
579
  $content = $email->get_content();
616
  */
617
  public static function print_preview_email() {
618
 
619
+ $content = self::get_preview_email();
620
  if ( false == $content ) {
621
  echo __( 'An error occurred trying to load this email type. Make sure this email type is enabled or please try another type.', 'kadence-woocommerce-email-designer' );
622
  } elseif ( ! empty( $content ) ) {
628
  }
629
 
630
  /**
631
+ * Send preview email
632
  *
633
  * @access public
634
  * @return void
635
  */
636
  public static function send_preview_email() {
637
+ $content = self::get_preview_email();
638
  if ( ! empty( $content ) ) {
639
  // Print email content
640
  echo $content;
642
  }
643
 
644
  /**
645
+ * Get WooCommerce order for preview
646
+ *
647
+ * @access public
648
+ * @param string $order_status
649
+ * @return object
650
+ */
651
  public static function get_wc_order_for_preview( $order_status = null, $order_id = null ) {
652
  if ( ! empty( $order_id ) && 'mockup' != $order_id ) {
653
  return wc_get_order( $order_id );
654
  } else {
655
+ // Use mockup order
656
 
657
  // Instantiate order object
658
  $order = new WC_Order();
725
  }
726
  $scripts .= 'var pl_customer_username = "' . Kadence_Woomail_Designer::get_username_from_id( $user_id ) . '";';
727
  }
728
+ $scripts .= 'var pl_member_plan = "' . ( is_object( self::$current_member ) ? self::$current_member->get_plan()->get_name() : 'Membership Plan Name' ) . '";';
729
  $scripts .= 'var pl_product_title = "' . self::$current_product_title . '";';
730
  // Function to handle special cases.
731
  $scripts .= "function prepare(value, key, selector) {
763
  value = value.replace('{product_title}', pl_product_title);
764
  } else if (value && value.includes('{year}') ) {
765
  value = value.replace('{year}', pl_year);
766
+ } else if (value && value.includes('{membership_plan}') ) {
767
+ value = value.replace('{membership_plan}', pl_member_plan);
768
  }
769
+
770
  return value;
771
  }";
772
  // Get CSS suffixes
includes/class-kadence-woomail-settings.php CHANGED
@@ -1,15 +1,20 @@
1
  <?php
2
- // Exit if accessed directly.
 
 
 
 
 
 
3
  if ( ! defined( 'ABSPATH' ) ) {
4
  exit;
5
  }
6
 
7
- /**
8
- * Customizer Settings
9
- *
10
- */
11
- if ( ! class_exists( 'Kadence_Woomail_Settings' ) ) {
12
 
 
 
 
 
13
  class Kadence_Woomail_Settings {
14
  /**
15
  * @var null
@@ -19,9 +24,10 @@ if ( ! class_exists( 'Kadence_Woomail_Settings' ) ) {
19
  private static $settings = null;
20
  private static $woo_copy_settings = null;
21
  private static $woo_settings = null;
22
- private static $default_values = null;
23
- private static $order_ids = null;
24
- private static $email_types = null;
 
25
 
26
  // Font family.
27
  public static $font_family_mapping = array(
@@ -34,7 +40,7 @@ if ( ! class_exists( 'Kadence_Woomail_Settings' ) ) {
34
  'palatino' => '"Palatino Linotype", "Book Antiqua", Palatino, serif',
35
  'georgia' => 'Georgia, serif',
36
  );
37
- // Normal Woocommerce Email Types
38
  public static $email_types_mapping = array(
39
  'new_order' => 'New Order',
40
  'cancelled_order' => 'Cancelled Order',
@@ -57,7 +63,31 @@ if ( ! class_exists( 'Kadence_Woomail_Settings' ) ) {
57
  'customer_renewal_invoice' => 'Customer Renewal Invoice',
58
  'cancelled_subscription' => 'Cancelled Subscription',
59
  );
60
- // // Subscriptio Email Types
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
61
  // public static $subscriptio_email_types_mapping = array(
62
  // 'customer_subscription_new_order' => 'Subscription new order',
63
  // 'customer_subscription_processing_order' => 'Subscription processing order',
@@ -87,31 +117,31 @@ if ( ! class_exists( 'Kadence_Woomail_Settings' ) ) {
87
  * @return array
88
  */
89
  public static function get_panels() {
90
- // Define panels
91
  if ( is_null( self::$panels ) ) {
92
  self::$panels = array(
93
- // Header
94
  'header' => array(
95
- 'title' => __('Header', 'kadence-woocommerce-email-designer'),
96
- 'priority' => 20,
97
  ),
98
 
99
- // Content
100
  'content' => array(
101
- 'title' => __('Content', 'kadence-woocommerce-email-designer'),
102
- 'priority' => 30,
103
  ),
104
 
105
- // Footer
106
  'footer' => array(
107
- 'title' => __('Footer', 'kadence-woocommerce-email-designer'),
108
- 'priority' => 40,
109
  ),
110
 
111
  );
112
  }
113
 
114
- // Return panels
115
  return self::$panels;
116
  }
117
 
@@ -126,16 +156,16 @@ if ( ! class_exists( 'Kadence_Woomail_Settings' ) ) {
126
  if ( is_null( self::$sections ) ) {
127
  self::$sections = array(
128
  'template' => array(
129
- 'title' => __('Prebuilt Templates', 'kadence-woocommerce-email-designer'),
130
  'priority' => 8,
131
  ),
132
  'mtype' => array(
133
- 'title' => __('Email Type and Text', 'kadence-woocommerce-email-designer'),
134
  'priority' => 10,
135
  ),
136
  // Container
137
  'container' => array(
138
- 'title' => __('Container', 'kadence-woocommerce-email-designer'),
139
  'priority' => 15,
140
  ),
141
 
@@ -168,264 +198,178 @@ if ( ! class_exists( 'Kadence_Woomail_Settings' ) ) {
168
  ),
169
  // Footer social
170
  'footer_social' => array(
171
- 'title' => __('Footer Social', 'kadence-woocommerce-email-designer'),
172
- 'panel' => 'footer',
173
- 'priority' => 50,
174
  ),
175
  // Footer Content
176
  'footer_content' => array(
177
- 'title' => __('Footer Credit Content', 'kadence-woocommerce-email-designer'),
178
- 'panel' => 'footer',
179
- 'priority' => 60,
180
  ),
181
 
182
  // Content Container
183
  'content_container' => array(
184
- 'title' => __('Content Container', 'kadence-woocommerce-email-designer'),
185
- 'panel' => 'content',
186
- 'priority' => 5,
187
  ),
188
  'headings_style' => array(
189
- 'title' => __('Content Headings Style', 'kadence-woocommerce-email-designer'),
190
- 'panel' => 'content',
191
- 'priority' => 8,
192
  ),
193
- // Text Style
194
  'text_style' => array(
195
- 'title' => __('Content Text Style', 'kadence-woocommerce-email-designer'),
196
- 'panel' => 'content',
197
- 'priority' => 10,
198
  ),
199
- // Items Table
200
  'items_table' => array(
201
- 'title' => __('Order Items', 'kadence-woocommerce-email-designer'),
202
- 'panel' => 'content',
203
- 'priority' => 10,
204
  ),
205
- // Items Table
206
  'addresses' => array(
207
- 'title' => __('Addresses', 'kadence-woocommerce-email-designer'),
208
- 'panel' => 'content',
209
- 'priority' => 10,
210
  ),
211
- // Text input
212
  'text_input' => array(
213
- 'title' => __('Text Copy', 'kadence-woocommerce-email-designer'),
214
- 'panel' => 'content',
215
- 'priority' => 5,
216
  ),
217
-
218
- // Custom Styles
219
  'custom_styles' => array(
220
- 'title' => __('Custom Styles', 'kadence-woocommerce-email-designer'),
221
- 'priority' => 80,
222
  ),
223
- // Import_export
224
  'import_export' => array(
225
- 'title' => __('Import Export', 'kadence-woocommerce-email-designer'),
226
- 'priority' => 90,
227
  ),
228
- // Send Email
229
  'send_email' => array(
230
- 'title' => __('Send Preview Email', 'kadence-woocommerce-email-designer'),
231
- 'priority' => 100,
232
  ),
233
  );
234
  }
235
- // Return sections.
236
- return self::$sections;
237
- }
238
 
239
- /**
240
- * Get woocommerce settings that the plugin will allow editing of
241
- *
242
- * @access public
243
- * @return array
244
- */
245
- public static function get_woo_settings() {
246
-
247
- if ( is_null( self::$woo_settings ) ) {
248
- $base_options = array();
249
-
250
- // Email header image.
251
- $base_options[ 'woocommerce_email_header_image' ] = array(
252
- 'title' => __('Header Image', 'kadence-woocommerce-email-designer'),
253
- 'control_type' => 'image',
254
- 'section' => 'header_image',
255
- 'default' => self::get_default_value( 'header_image' ),
256
- 'original' => '',
257
- 'priority' => 5,
258
- 'transport' => 'refresh',
259
- 'selectors' => array(
260
- '#template_header_image img'
261
- ),
262
- );
263
- // Email background color
264
- $base_options['woocommerce_email_background_color'] = array(
265
- 'title' => __('Container Background color', 'kadence-woocommerce-email-designer'),
266
- 'section' => 'container',
267
- 'control_type' => 'color',
268
- 'priority' => 5,
269
- 'default' => self::get_default_value('body_background_color'),
270
- 'live_method' => 'css',
271
- 'selectors' => array(
272
- 'body' => array('background-color'),
273
- '#wrapper' => array('background-color'),
274
- ),
275
- );
276
- // Email text color
277
- $base_options['woocommerce_email_text_color'] = array(
278
- 'title' => __('Content Text color', 'kadence-woocommerce-email-designer'),
279
- 'section' => 'text_style',
280
- 'control_type' => 'color',
281
- 'default' => self::get_default_value('text_color'),
282
- 'live_method' => 'css',
283
- 'selectors' => array(
284
- '#body_content_inner' => array('color'),
285
- '.td' => array('color'),
286
- '.text' => array('color'),
287
- 'address' => array('color'),
288
- ),
289
- );
290
- // Email body background color
291
- $base_options['woocommerce_email_body_background_color'] = array(
292
- 'title' => __('Content Background color', 'kadence-woocommerce-email-designer'),
293
- 'section' => 'content_container',
294
- 'control_type' => 'color',
295
- 'priority' => 5,
296
- 'default' => self::get_default_value('background_color'),
297
- 'live_method' => 'css',
298
- 'selectors' => array(
299
- '#body_content' => array('background-color'),
300
- '#template_container' => array('background-color'),
301
- 'h2 .separator-bubble' => array('background-color')
302
- ),
303
- );
304
- // Footer Content Footer text
305
- $base_options['woocommerce_email_footer_text'] = array(
306
- 'title' => __('Footer text', 'kadence-woocommerce-email-designer'),
307
- 'type' => 'textarea',
308
- 'section' => 'footer_content',
309
- 'default' => self::get_default_value( 'footer_content_text' ),
310
- 'original' => '',
311
- 'live_method' => 'replace',
312
- 'selectors' => array(
313
- '#template_footer #credit'
314
- ),
315
- );
316
- $email_text = array();
317
- foreach ( self::get_email_types() as $key => $value ) {
318
- // Email recipients Text
319
- if ( 'cancelled_order' == $key || 'new_order' == $key || 'failed_order' == $key ) {
320
- $email_text['woocommerce_'.$key.'_settings[recipient]'] = array(
321
- 'title' => __('Recipient(s)', 'kadence-woocommerce-email-designer'),
322
- 'type' => 'text',
323
- 'section' => 'mtype',
324
- 'priority' => 5,
325
- 'default' => '',
326
- 'description' => sprintf( __( 'Enter recipients (comma separated) for this email. Defaults to %s.', 'kadence-woocommerce-email-designer' ), '<code>' . esc_attr( get_option( 'admin_email' ) ) . '</code>' ),
327
- 'active_callback' => array(
328
- 'id' => 'email_type',
329
- 'compare' => '==',
330
- 'value' => $key,
331
- ),
332
- );
333
- }
334
- if ( 'customer_refunded_order' == $key ) {
335
- // Email Subject
336
- $email_text['woocommerce_'.$key.'_settings[subject_full]'] = array(
337
- 'title' => __('Full refund subject', 'kadence-woocommerce-email-designer'),
338
- 'type' => 'text',
339
- 'section' => 'mtype',
340
- 'priority' => 5,
341
- 'default' => '',
342
- 'input_attrs' => array(
343
- 'placeholder' => self::get_default_value( $key.'_subject_full' ),
344
- ),
345
- 'active_callback' => array(
346
- 'id' => 'email_type',
347
- 'compare' => '==',
348
- 'value' => $key,
349
- ),
350
- );
351
- // Email Subject
352
- $email_text['woocommerce_'.$key.'_settings[subject_partial]'] = array(
353
- 'title' => __('Partial refund subject', 'kadence-woocommerce-email-designer'),
354
- 'type' => 'text',
355
- 'section' => 'mtype',
356
- 'priority' => 5,
357
- 'default' => '',
358
- 'input_attrs' => array(
359
- 'placeholder' => self::get_default_value( $key.'_subject_partial' ),
360
- ),
361
- 'active_callback' => array(
362
- 'id' => 'email_type',
363
- 'compare' => '==',
364
- 'value' => $key,
365
- ),
366
- );
367
- // Email Header Text
368
- $email_text['woocommerce_'.$key.'_settings[heading_full]'] = array(
369
- 'title' => __('Full refund Heading Text', 'kadence-woocommerce-email-designer'),
370
- 'type' => 'text',
371
- 'section' => 'mtype',
372
- 'priority' => 5,
373
- 'default' => '',
374
- 'input_attrs' => array(
375
- 'placeholder' => self::get_default_value( $key.'_heading_full' ),
376
- ),
377
- 'live_method' => 'replace',
378
- 'selectors' => array(
379
- '#header_wrapper h1'
380
- ),
381
- 'active_callback' => array(
382
- 'id' => 'email_type',
383
- 'compare' => '==',
384
- 'value' => $key,
385
- ),
386
- );
387
- // Email Header Text
388
- $email_text['woocommerce_'.$key.'_settings[heading_partial]'] = array(
389
- 'title' => __('Partial refund Heading Text', 'kadence-woocommerce-email-designer'),
390
- 'type' => 'text',
391
- 'section' => 'mtype',
392
- 'priority' => 5,
393
- 'default' => '',
394
- 'input_attrs' => array(
395
- 'placeholder' => self::get_default_value( $key.'_heading_partial' ),
396
- ),
397
- 'active_callback' => array(
398
- 'id' => 'email_type',
399
- 'compare' => '==',
400
- 'value' => $key,
401
- ),
402
- );
403
- } else {
404
- // Email Subject
405
- $email_text['woocommerce_'.$key.'_settings[subject]'] = array(
406
- 'title' => __('Subject Text', 'kadence-woocommerce-email-designer'),
407
- 'type' => 'text',
408
- 'section' => 'mtype',
409
- 'priority' => 5,
410
- 'default' => '',
411
- 'input_attrs' => array(
412
- 'placeholder' => self::get_default_value( $key.'_subject' ),
413
- ),
414
- 'active_callback' => array(
415
- 'id' => 'email_type',
416
- 'compare' => '==',
417
- 'value' => $key,
418
- ),
419
- );
420
- if ( 'customer_invoice' == $key ) {
421
- $email_text['woocommerce_'.$key.'_settings[subject_paid]'] = array(
422
- 'title' => __('Subject (paid) Text', 'kadence-woocommerce-email-designer'),
423
  'type' => 'text',
424
  'section' => 'mtype',
425
  'priority' => 5,
426
  'default' => '',
427
  'input_attrs' => array(
428
- 'placeholder' => self::get_default_value( $key.'_subject_paid' ),
429
  ),
430
  'active_callback' => array(
431
  'id' => 'email_type',
@@ -433,36 +377,105 @@ if ( ! class_exists( 'Kadence_Woomail_Settings' ) ) {
433
  'value' => $key,
434
  ),
435
  );
436
- }
437
- // Email Header Text
438
- $email_text['woocommerce_'.$key.'_settings[heading]'] = array(
439
- 'title' => __('Heading Text', 'kadence-woocommerce-email-designer'),
440
- 'type' => 'text',
441
- 'section' => 'mtype',
442
- 'priority' => 5,
443
- 'default' => '',
444
- 'input_attrs' => array(
445
- 'placeholder' => self::get_default_value( $key.'_heading' ),
446
- ),
447
- 'live_method' => 'replace',
448
- 'selectors' => array(
449
- '#header_wrapper h1'
450
- ),
451
- 'active_callback' => array(
452
- 'id' => 'email_type',
453
- 'compare' => '==',
454
- 'value' => $key,
455
- ),
456
- );
457
- if ( 'customer_invoice' == $key ) {
458
- $email_text['woocommerce_'.$key.'_settings[heading_paid]'] = array(
459
- 'title' => __('Heading (paid) Text', 'kadence-woocommerce-email-designer'),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
460
  'type' => 'text',
461
  'section' => 'mtype',
462
  'priority' => 5,
463
  'default' => '',
464
  'input_attrs' => array(
465
- 'placeholder' => self::get_default_value( $key.'_heading_paid' ),
 
 
 
 
466
  ),
467
  'active_callback' => array(
468
  'id' => 'email_type',
@@ -470,218 +483,235 @@ if ( ! class_exists( 'Kadence_Woomail_Settings' ) ) {
470
  'value' => $key,
471
  ),
472
  );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
473
  }
474
  }
 
475
  }
476
- self::$woo_settings = array_merge($base_options, $email_text);
477
  }
478
- return self::$woo_settings;
479
- }
480
 
481
- /**
482
- * Get our extra settings
483
- *
484
- * @access public
485
- * @return array
486
- */
487
- public static function get_settings() {
488
- // Define settings
489
- if ( is_null( self::$settings ) ) {
490
- // Main Base options.
491
- $mainoptions = array(
492
- //Email template
493
- 'email_load_template' => array(
494
- 'title' => __('Template_load', 'kadence-woocommerce-email-designer'),
495
- 'section' => 'template',
496
- 'control_type' => 'kwdtemplateload',
497
- 'choices' => self::get_email_templates(),
498
- 'default' => 'kt_full',
499
- 'transport' => 'refresh',
500
- ),
501
- //Preview Order Id
502
- 'preview_order_id' => array(
503
- 'title' => __('Preview Order', 'kadence-woocommerce-email-designer'),
504
- 'section' => 'mtype',
505
- 'type' => 'select',
506
- 'priority' => 1,
507
- 'choices' => self::get_order_ids(),
508
- 'default' => self::get_default_value('preview_order_id'),
509
- 'transport' => 'refresh',
510
- ),
511
- //Email Type
512
- 'email_type' => array(
513
- 'title' => __('Email Type', 'kadence-woocommerce-email-designer'),
514
- 'section' => 'mtype',
515
- 'type' => 'select',
516
- 'priority' => 2,
517
- 'choices' => self::get_email_types(),
518
- 'default' => self::get_default_value('email_type'),
519
- 'transport' => 'refresh',
520
- ),
521
- //Placeholder Info
522
- 'email_text_info' => array(
523
- 'title' => __('Available placeholders', 'kadence-woocommerce-email-designer'),
524
- 'section' => 'mtype',
525
- 'control_type' => 'kwdinfoblock',
526
- 'priority' => 50,
527
- 'description' => '<code>{site_title}, {order_date}, {order_number}, {customer_first_name}, {customer_last_name}, {customer_full_name}, {customer_username}</code>',
528
- ),
529
- );
530
- $extra_email_text = array();
531
- // Get the Extra Text area settings.
532
- foreach (self::get_customized_email_types() as $key => $value) {
533
- // Email Subtitle Text
534
- $extra_email_text[$key.'_subtitle'] = array(
535
- 'title' => __('Subtitle Text', 'kadence-woocommerce-email-designer'),
536
- 'type' => 'text',
537
- 'section' => 'mtype',
538
- 'default' => '',
539
- 'original' => '',
540
- 'live_method' => 'replace',
541
- 'selectors' => array(
542
- '#header_wrapper .subtitle'
543
- ),
544
- 'active_callback' => array(
545
- 'id' => 'email_type',
546
- 'compare' => '==',
547
- 'value' => $key,
548
- ),
549
- );
550
- if ( 'customer_refunded_order' == $key ) {
551
- // Email preview switch
552
- $extra_email_text[$key.'_switch'] = array(
553
- 'title' => __('Switch off for Partial Refund Preview', 'kadence-woocommerce-email-designer'),
554
- 'control_type' => 'toggleswitch',
555
- 'section' => 'mtype',
556
- 'transport' => 'refresh',
557
- 'default' => self::get_default_value( $key.'_switch' ),
558
- 'original' => '',
559
- 'priority' => 3,
560
- 'active_callback' => array(
561
- 'id' => 'email_type',
562
- 'compare' => '==',
563
- 'value' => $key,
564
- ),
565
- );
566
- // Email Body Text
567
- $extra_email_text[$key.'_body_full'] = array(
568
- 'title' => __('Body Full Refund Text', 'kadence-woocommerce-email-designer'),
569
- 'type' => 'textarea',
570
- 'section' => 'mtype',
571
- 'default' => self::get_default_value( $key.'_body_full' ),
572
- 'original' => '',
573
- 'transport' => 'refresh',
574
- 'active_callback' => array(
575
- 'id' => 'email_type',
576
- 'compare' => '==',
577
- 'value' => $key,
578
- ),
579
- );
580
- // Email Body Text
581
- $extra_email_text[$key.'_body_partial'] = array(
582
- 'title' => __('Body Partial Refund Text', 'kadence-woocommerce-email-designer'),
583
- 'type' => 'textarea',
584
- 'section' => 'mtype',
585
- 'default' => self::get_default_value( $key.'_body_partial' ),
586
- 'original' => '',
587
  'transport' => 'refresh',
588
- 'active_callback' => array(
589
- 'id' => 'email_type',
590
- 'compare' => '==',
591
- 'value' => $key,
592
- ),
593
- );
594
- } else if ( 'customer_invoice' == $key ) {
595
- // Email preview switch
596
- $extra_email_text[$key.'_switch'] = array(
597
- 'title' => __('Switch off for unpaid preview', 'kadence-woocommerce-email-designer'),
598
- 'control_type' => 'toggleswitch',
599
  'section' => 'mtype',
 
 
 
 
600
  'transport' => 'refresh',
601
- 'default' => self::get_default_value( $key.'_switch' ),
602
- 'original' => '',
603
- 'priority' => 3,
604
- 'active_callback' => array(
605
- 'id' => 'email_type',
606
- 'compare' => '==',
607
- 'value' => $key,
608
- ),
609
- );
610
- // Email Body Text
611
- $extra_email_text[$key.'_body_paid'] = array(
612
- 'title' => __('Body Invoice Paid Text', 'kadence-woocommerce-email-designer'),
613
- 'type' => 'textarea',
614
  'section' => 'mtype',
615
- 'default' => self::get_default_value( $key.'_body_paid' ),
616
- 'original' => '',
 
 
617
  'transport' => 'refresh',
618
- 'active_callback' => array(
619
- 'id' => 'email_type',
620
- 'compare' => '==',
621
- 'value' => $key,
622
- ),
623
- );
624
- // Email Body Text
625
- $extra_email_text[$key.'_body'] = array(
626
- 'title' => __('Body Invoice Pending Payment Text', 'kadence-woocommerce-email-designer'),
627
- 'type' => 'textarea',
628
- 'section' => 'mtype',
629
- 'default' => self::get_default_value( $key.'_body' ),
630
- 'original' => '',
631
- 'active_callback' => array(
632
- 'id' => 'email_type',
633
- 'compare' => '==',
634
- 'value' => $key,
635
- ),
636
- );
637
- }else if ( 'customer_renewal_invoice' == $key ) {
638
- // Email Body Text
639
- $extra_email_text[$key.'_body_failed'] = array(
640
- 'title' => __('Body Invoice Failed Text', 'kadence-woocommerce-email-designer'),
641
- 'type' => 'textarea',
642
  'section' => 'mtype',
643
- 'default' => self::get_default_value( $key.'_body_failed' ),
644
- 'original' => '',
645
- 'transport' => 'refresh',
646
- 'active_callback' => array(
647
- 'id' => 'email_type',
648
- 'compare' => '==',
649
- 'value' => $key,
650
- ),
651
- );
652
- // Email Body Text
653
- $extra_email_text[$key.'_body'] = array(
654
- 'title' => __('Body Invoice Pending Payment Text', 'kadence-woocommerce-email-designer'),
655
- 'type' => 'textarea',
656
  'section' => 'mtype',
657
- 'default' => self::get_default_value( $key.'_body' ),
658
  'original' => '',
659
- 'active_callback' => array(
660
- 'id' => 'email_type',
661
- 'compare' => '==',
662
- 'value' => $key,
663
  ),
664
- );
665
- } else {
666
- // Email Body Text
667
- $extra_email_text[$key.'_body'] = array(
668
- 'title' => __('Body Text', 'kadence-woocommerce-email-designer'),
669
- 'type' => 'textarea',
670
- 'section' => 'mtype',
671
- 'default' => self::get_default_value( $key.'_body' ),
672
- 'original' => '',
673
- 'transport' => 'refresh',
674
  'active_callback' => array(
675
  'id' => 'email_type',
676
  'compare' => '==',
677
  'value' => $key,
678
  ),
679
  );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
680
  }
681
- }
682
- $main = array(
683
  /* CONTAINER STUFF */
684
- // Email width
685
  'content_width' => array(
686
  'title' => __('Content Width', 'kadence-woocommerce-email-designer'),
687
  'control_type' => 'rangevalue',
@@ -2252,7 +2282,16 @@ Username: {customer_username}
2252
  If this was a mistake, just ignore this email and nothing will happen.
2253
 
2254
  To reset your password, visit the following address:', 'kadence-woocommerce-email-designer' ),
2255
-
 
 
 
 
 
 
 
 
 
2256
 
2257
  'header_background_color' => get_option( 'woocommerce_email_base_color' ),
2258
  'header_text_align' => 'left',
@@ -2360,12 +2399,12 @@ To reset your password, visit the following address:', 'kadence-woocommerce-emai
2360
  }
2361
 
2362
  /**
2363
- * Get default values
2364
- *
2365
- * @access public
2366
- * @param string $key
2367
- * @return string
2368
- */
2369
  public static function get_default_value( $key ) {
2370
  // Get default values
2371
  $default_values = self::get_default_values();
@@ -2403,40 +2442,47 @@ To reset your password, visit the following address:', 'kadence-woocommerce-emai
2403
  */
2404
  public static function get_text_aligns() {
2405
  return array(
2406
- 'left' => __('Left', 'kadence-woocommerce-email-designer'),
2407
- 'center' => __('Center', 'kadence-woocommerce-email-designer'),
2408
- 'right' => __('Right', 'kadence-woocommerce-email-designer'),
2409
- 'justify' => __('Justify', 'kadence-woocommerce-email-designer'),
2410
  );
2411
  }
 
 
 
 
 
 
2412
  public static function get_image_aligns() {
2413
  return array(
2414
- 'left' => __('Left', 'kadence-woocommerce-email-designer'),
2415
- 'center' => __('Center', 'kadence-woocommerce-email-designer'),
2416
- 'right' => __('Right', 'kadence-woocommerce-email-designer'),
2417
  );
2418
  }
2419
  /**
2420
- * Get Order Ids
2421
- *
2422
- * @access public
2423
- * @return array
2424
- */
2425
  public static function get_order_ids() {
2426
  if ( is_null( self::$order_ids ) ) {
2427
- //self::$order_ids
2428
  $order_array = array();
2429
- $order_array['mockup'] = __('Mockup Order', 'kadence-woocommerce-email-designer');
2430
- $orders = new WP_Query( array(
2431
- 'post_type' => 'shop_order',
2432
- 'post_status' => array_keys( wc_get_order_statuses() ),
2433
- 'posts_per_page' => 20,
2434
- ));
 
 
2435
  if ( $orders->posts ) {
2436
  foreach ( $orders->posts as $order ) {
2437
  // Get order object.
2438
  $order_object = new WC_Order( $order->ID );
2439
- $order_array[ $order_object->get_id() ] = $order_object->get_id().' - '.$order_object->get_billing_first_name().' '.$order_object->get_billing_last_name();
2440
  }
2441
  }
2442
  self::$order_ids = $order_array;
@@ -2444,11 +2490,11 @@ To reset your password, visit the following address:', 'kadence-woocommerce-emai
2444
  return self::$order_ids;
2445
  }
2446
  /**
2447
- * Get font families
2448
- *
2449
- * @access public
2450
- * @return array
2451
- */
2452
  public static function get_font_families() {
2453
  return apply_filters( 'kadence_woomail_email_font_families', self::$font_family_mapping );
2454
  }
@@ -2463,10 +2509,16 @@ To reset your password, visit the following address:', 'kadence-woocommerce-emai
2463
  if ( is_null( self::$email_types ) ) {
2464
  $types = self::$email_types_mapping;
2465
  if ( class_exists( 'WC_Subscriptions' ) ) {
2466
- $types = array_merge($types, self::$subscription_email_types_mapping );
2467
  }
 
 
 
 
 
 
2468
  if ( class_exists( 'WooCommerce_Waitlist_Plugin' ) ) {
2469
- $types = array_merge($types, self::$waitlist_email_types_mapping );
2470
  }
2471
 
2472
  self::$email_types = apply_filters( 'kadence_woomail_email_types', $types );
@@ -2482,19 +2534,19 @@ To reset your password, visit the following address:', 'kadence-woocommerce-emai
2482
  * @return array
2483
  */
2484
  public static function get_customized_email_types() {
2485
- if ( is_null( self::$email_types ) ) {
2486
  $types = self::$email_types_mapping;
2487
  if ( class_exists( 'WC_Subscriptions' ) ) {
2488
- $types = array_merge($types, self::$subscription_email_types_mapping );
2489
  }
2490
  if ( class_exists( 'WooCommerce_Waitlist_Plugin' ) ) {
2491
- $types = array_merge($types, self::$waitlist_email_types_mapping );
2492
  }
2493
 
2494
- self::$email_types = apply_filters( 'kadence_woomail_customized_email_types', $types );
2495
  }
2496
 
2497
- return self::$email_types;
2498
  }
2499
 
2500
  /**
1
  <?php
2
+ /**
3
+ * Customizer Mail Settings
4
+ */
5
+
6
+ /**
7
+ * Exit if accessed directly.
8
+ */
9
  if ( ! defined( 'ABSPATH' ) ) {
10
  exit;
11
  }
12
 
 
 
 
 
 
13
 
14
+ if ( ! class_exists( 'Kadence_Woomail_Settings' ) ) {
15
+ /**
16
+ * Customizer Settings
17
+ */
18
  class Kadence_Woomail_Settings {
19
  /**
20
  * @var null
24
  private static $settings = null;
25
  private static $woo_copy_settings = null;
26
  private static $woo_settings = null;
27
+ private static $default_values = null;
28
+ private static $order_ids = null;
29
+ private static $email_types = null;
30
+ private static $customized_email_types = null;
31
 
32
  // Font family.
33
  public static $font_family_mapping = array(
40
  'palatino' => '"Palatino Linotype", "Book Antiqua", Palatino, serif',
41
  'georgia' => 'Georgia, serif',
42
  );
43
+ // Normal Woocommerce Email Types.
44
  public static $email_types_mapping = array(
45
  'new_order' => 'New Order',
46
  'cancelled_order' => 'Cancelled Order',
63
  'customer_renewal_invoice' => 'Customer Renewal Invoice',
64
  'cancelled_subscription' => 'Cancelled Subscription',
65
  );
66
+ // Woocommerce Membership Email Types
67
+ public static $membership_email_types_mapping = array(
68
+ 'WC_Memberships_User_Membership_Note_Email' => 'User Membership Note',
69
+ 'WC_Memberships_User_Membership_Ending_Soon_Email' => 'User Membership Ending Soon',
70
+ 'WC_Memberships_User_Membership_Ended_Email' => 'User Membership Ended',
71
+ 'WC_Memberships_User_Membership_Renewal_Reminder_Email' => 'User Membership Renewal Reminder',
72
+ 'WC_Memberships_User_Membership_Activated_Email' => 'User Membership Activated',
73
+ );
74
+ // WC Marketplace
75
+ public static $marketplace_email_types_mapping = array(
76
+ 'vendor_new_account' => 'New Vendor Account',
77
+ 'admin_new_vendor' => 'Admin New Vendor Account',
78
+ 'approved_vendor_new_account' => 'Approved Vendor Account',
79
+ 'rejected_vendor_new_account' => 'Rejected Vendor Account',
80
+ 'vendor_new_order' => 'Vendor New order',
81
+ 'notify_shipped' => 'Notify as Shipped.',
82
+ 'admin_new_vendor_product' => 'New Vendor Product',
83
+ 'admin_added_new_product_to_vendor' => 'New Vendor Product By Admin',
84
+ 'vendor_commissions_transaction' => 'Transactions (for Vendor)',
85
+ 'vendor_direct_bank' => 'Commission Paid (for Vendor) by BAC',
86
+ 'admin_widthdrawal_request' => 'Withdrawal request to Admin from Vendor by BAC',
87
+ 'vendor_orders_stats_report' => 'Vendor orders stats report',
88
+ 'vendor_contact_widget_email' => 'Vendor Contact Email',
89
+ );
90
+ // Subscriptio Email Types
91
  // public static $subscriptio_email_types_mapping = array(
92
  // 'customer_subscription_new_order' => 'Subscription new order',
93
  // 'customer_subscription_processing_order' => 'Subscription processing order',
117
  * @return array
118
  */
119
  public static function get_panels() {
120
+ // Define panels.
121
  if ( is_null( self::$panels ) ) {
122
  self::$panels = array(
123
+ // Header.
124
  'header' => array(
125
+ 'title' => __( 'Header', 'kadence-woocommerce-email-designer' ),
126
+ 'priority' => 20,
127
  ),
128
 
129
+ // Content.
130
  'content' => array(
131
+ 'title' => __( 'Content', 'kadence-woocommerce-email-designer' ),
132
+ 'priority' => 30,
133
  ),
134
 
135
+ // Footer.
136
  'footer' => array(
137
+ 'title' => __( 'Footer', 'kadence-woocommerce-email-designer' ),
138
+ 'priority' => 40,
139
  ),
140
 
141
  );
142
  }
143
 
144
+ // Return panels.
145
  return self::$panels;
146
  }
147
 
156
  if ( is_null( self::$sections ) ) {
157
  self::$sections = array(
158
  'template' => array(
159
+ 'title' => __( 'Prebuilt Templates', 'kadence-woocommerce-email-designer' ),
160
  'priority' => 8,
161
  ),
162
  'mtype' => array(
163
+ 'title' => __('Email Type and Text', 'kadence-woocommerce-email-designer' ),
164
  'priority' => 10,
165
  ),
166
  // Container
167
  'container' => array(
168
+ 'title' => __( 'Container', 'kadence-woocommerce-email-designer' ),
169
  'priority' => 15,
170
  ),
171
 
198
  ),
199
  // Footer social
200
  'footer_social' => array(
201
+ 'title' => __( 'Footer Social', 'kadence-woocommerce-email-designer' ),
202
+ 'panel' => 'footer',
203
+ 'priority' => 50,
204
  ),
205
  // Footer Content
206
  'footer_content' => array(
207
+ 'title' => __( 'Footer Credit Content', 'kadence-woocommerce-email-designer' ),
208
+ 'panel' => 'footer',
209
+ 'priority' => 60,
210
  ),
211
 
212
  // Content Container
213
  'content_container' => array(
214
+ 'title' => __( 'Content Container', 'kadence-woocommerce-email-designer' ),
215
+ 'panel' => 'content',
216
+ 'priority' => 5,
217
  ),
218
  'headings_style' => array(
219
+ 'title' => __( 'Content Headings Style', 'kadence-woocommerce-email-designer' ),
220
+ 'panel' => 'content',
221
+ 'priority' => 8,
222
  ),
223
+ // Text Style.
224
  'text_style' => array(
225
+ 'title' => __( 'Content Text Style', 'kadence-woocommerce-email-designer' ),
226
+ 'panel' => 'content',
227
+ 'priority' => 10,
228
  ),
229
+ // Items Table.
230
  'items_table' => array(
231
+ 'title' => __( 'Order Items', 'kadence-woocommerce-email-designer' ),
232
+ 'panel' => 'content',
233
+ 'priority' => 10,
234
  ),
235
+ // Items Table.
236
  'addresses' => array(
237
+ 'title' => __( 'Addresses', 'kadence-woocommerce-email-designer' ),
238
+ 'panel' => 'content',
239
+ 'priority' => 10,
240
  ),
241
+ // Text input.
242
  'text_input' => array(
243
+ 'title' => __( 'Text Copy', 'kadence-woocommerce-email-designer' ),
244
+ 'panel' => 'content',
245
+ 'priority' => 5,
246
  ),
247
+ // Custom Styles.
 
248
  'custom_styles' => array(
249
+ 'title' => __( 'Custom Styles', 'kadence-woocommerce-email-designer' ),
250
+ 'priority' => 80,
251
  ),
252
+ // Import_export.
253
  'import_export' => array(
254
+ 'title' => __( 'Import Export', 'kadence-woocommerce-email-designer' ),
255
+ 'priority' => 90,
256
  ),
257
+ // Send Email.
258
  'send_email' => array(
259
+ 'title' => __( 'Send Preview Email', 'kadence-woocommerce-email-designer' ),
260
+ 'priority' => 100,
261
  ),
262
  );
263
  }
264
+ // Return sections.
265
+ return self::$sections;
266
+ }
267
 
268
+ /**
269
+ * Get woocommerce settings that the plugin will allow editing of
270
+ *
271
+ * @access public
272
+ * @return array
273
+ */
274
+ public static function get_woo_settings() {
275
+
276
+ if ( is_null( self::$woo_settings ) ) {
277
+ $base_options = array();
278
+
279
+ // Email header image.
280
+ $base_options[ 'woocommerce_email_header_image' ] = array(
281
+ 'title' => __('Header Image', 'kadence-woocommerce-email-designer'),
282
+ 'control_type' => 'image',
283
+ 'section' => 'header_image',
284
+ 'default' => self::get_default_value( 'header_image' ),
285
+ 'original' => '',
286
+ 'priority' => 5,
287
+ 'transport' => 'refresh',
288
+ 'selectors' => array(
289
+ '#template_header_image img'
290
+ ),
291
+ );
292
+ // Email background color
293
+ $base_options['woocommerce_email_background_color'] = array(
294
+ 'title' => __('Container Background color', 'kadence-woocommerce-email-designer'),
295
+ 'section' => 'container',
296
+ 'control_type' => 'color',
297
+ 'priority' => 5,
298
+ 'default' => self::get_default_value('body_background_color'),
299
+ 'live_method' => 'css',
300
+ 'selectors' => array(
301
+ 'body' => array('background-color'),
302
+ '#wrapper' => array('background-color'),
303
+ ),
304
+ );
305
+ // Email text color
306
+ $base_options['woocommerce_email_text_color'] = array(
307
+ 'title' => __('Content Text color', 'kadence-woocommerce-email-designer'),
308
+ 'section' => 'text_style',
309
+ 'control_type' => 'color',
310
+ 'default' => self::get_default_value('text_color'),
311
+ 'live_method' => 'css',
312
+ 'selectors' => array(
313
+ '#body_content_inner' => array('color'),
314
+ '.td' => array('color'),
315
+ '.text' => array('color'),
316
+ 'address' => array('color'),
317
+ ),
318
+ );
319
+ // Email body background color
320
+ $base_options['woocommerce_email_body_background_color'] = array(
321
+ 'title' => __('Content Background color', 'kadence-woocommerce-email-designer'),
322
+ 'section' => 'content_container',
323
+ 'control_type' => 'color',
324
+ 'priority' => 5,
325
+ 'default' => self::get_default_value('background_color'),
326
+ 'live_method' => 'css',
327
+ 'selectors' => array(
328
+ '#body_content' => array('background-color'),
329
+ '#template_container' => array('background-color'),
330
+ 'h2 .separator-bubble' => array('background-color')
331
+ ),
332
+ );
333
+ // Footer Content Footer text
334
+ $base_options['woocommerce_email_footer_text'] = array(
335
+ 'title' => __('Footer text', 'kadence-woocommerce-email-designer'),
336
+ 'type' => 'textarea',
337
+ 'section' => 'footer_content',
338
+ 'default' => self::get_default_value( 'footer_content_text' ),
339
+ 'original' => '',
340
+ 'live_method' => 'replace',
341
+ 'selectors' => array(
342
+ '#template_footer #credit'
343
+ ),
344
+ );
345
+ $email_text = array();
346
+ foreach ( self::get_email_types() as $key => $value ) {
347
+ // Email recipients Text
348
+ if ( 'cancelled_order' == $key || 'new_order' == $key || 'failed_order' == $key ) {
349
+ $email_text['woocommerce_'.$key.'_settings[recipient]'] = array(
350
+ 'title' => __('Recipient(s)', 'kadence-woocommerce-email-designer'),
351
+ 'type' => 'text',
352
+ 'section' => 'mtype',
353
+ 'priority' => 5,
354
+ 'default' => '',
355
+ 'description' => sprintf( __( 'Enter recipients (comma separated) for this email. Defaults to %s.', 'kadence-woocommerce-email-designer' ), '<code>' . esc_attr( get_option( 'admin_email' ) ) . '</code>' ),
356
+ 'active_callback' => array(
357
+ 'id' => 'email_type',
358
+ 'compare' => '==',
359
+ 'value' => $key,
360
+ ),
361
+ );
362
+ }
363
+ if ( 'customer_refunded_order' == $key ) {
364
+ // Email Subject
365
+ $email_text['woocommerce_'.$key.'_settings[subject_full]'] = array(
366
+ 'title' => __('Full refund subject', 'kadence-woocommerce-email-designer'),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
367
  'type' => 'text',
368
  'section' => 'mtype',
369
  'priority' => 5,
370
  'default' => '',
371
  'input_attrs' => array(
372
+ 'placeholder' => self::get_default_value( $key.'_subject_full' ),
373
  ),
374
  'active_callback' => array(
375
  'id' => 'email_type',
377
  'value' => $key,
378
  ),
379
  );
380
+ // Email Subject
381
+ $email_text['woocommerce_'.$key.'_settings[subject_partial]'] = array(
382
+ 'title' => __('Partial refund subject', 'kadence-woocommerce-email-designer'),
383
+ 'type' => 'text',
384
+ 'section' => 'mtype',
385
+ 'priority' => 5,
386
+ 'default' => '',
387
+ 'input_attrs' => array(
388
+ 'placeholder' => self::get_default_value( $key.'_subject_partial' ),
389
+ ),
390
+ 'active_callback' => array(
391
+ 'id' => 'email_type',
392
+ 'compare' => '==',
393
+ 'value' => $key,
394
+ ),
395
+ );
396
+ // Email Header Text
397
+ $email_text['woocommerce_'.$key.'_settings[heading_full]'] = array(
398
+ 'title' => __('Full refund Heading Text', 'kadence-woocommerce-email-designer'),
399
+ 'type' => 'text',
400
+ 'section' => 'mtype',
401
+ 'priority' => 5,
402
+ 'default' => '',
403
+ 'input_attrs' => array(
404
+ 'placeholder' => self::get_default_value( $key.'_heading_full' ),
405
+ ),
406
+ 'live_method' => 'replace',
407
+ 'selectors' => array(
408
+ '#header_wrapper h1'
409
+ ),
410
+ 'active_callback' => array(
411
+ 'id' => 'email_type',
412
+ 'compare' => '==',
413
+ 'value' => $key,
414
+ ),
415
+ );
416
+ // Email Header Text
417
+ $email_text['woocommerce_'.$key.'_settings[heading_partial]'] = array(
418
+ 'title' => __('Partial refund Heading Text', 'kadence-woocommerce-email-designer'),
419
+ 'type' => 'text',
420
+ 'section' => 'mtype',
421
+ 'priority' => 5,
422
+ 'default' => '',
423
+ 'input_attrs' => array(
424
+ 'placeholder' => self::get_default_value( $key.'_heading_partial' ),
425
+ ),
426
+ 'active_callback' => array(
427
+ 'id' => 'email_type',
428
+ 'compare' => '==',
429
+ 'value' => $key,
430
+ ),
431
+ );
432
+ } else {
433
+ // Email Subject
434
+ $email_text['woocommerce_'.$key.'_settings[subject]'] = array(
435
+ 'title' => __('Subject Text', 'kadence-woocommerce-email-designer'),
436
+ 'type' => 'text',
437
+ 'section' => 'mtype',
438
+ 'priority' => 5,
439
+ 'default' => '',
440
+ 'input_attrs' => array(
441
+ 'placeholder' => self::get_default_value( $key.'_subject' ),
442
+ ),
443
+ 'active_callback' => array(
444
+ 'id' => 'email_type',
445
+ 'compare' => '==',
446
+ 'value' => $key,
447
+ ),
448
+ );
449
+ if ( 'customer_invoice' == $key ) {
450
+ $email_text['woocommerce_'.$key.'_settings[subject_paid]'] = array(
451
+ 'title' => __('Subject (paid) Text', 'kadence-woocommerce-email-designer'),
452
+ 'type' => 'text',
453
+ 'section' => 'mtype',
454
+ 'priority' => 5,
455
+ 'default' => '',
456
+ 'input_attrs' => array(
457
+ 'placeholder' => self::get_default_value( $key.'_subject_paid' ),
458
+ ),
459
+ 'active_callback' => array(
460
+ 'id' => 'email_type',
461
+ 'compare' => '==',
462
+ 'value' => $key,
463
+ ),
464
+ );
465
+ }
466
+ // Email Header Text
467
+ $email_text['woocommerce_'.$key.'_settings[heading]'] = array(
468
+ 'title' => __('Heading Text', 'kadence-woocommerce-email-designer'),
469
  'type' => 'text',
470
  'section' => 'mtype',
471
  'priority' => 5,
472
  'default' => '',
473
  'input_attrs' => array(
474
+ 'placeholder' => self::get_default_value( $key.'_heading' ),
475
+ ),
476
+ 'live_method' => 'replace',
477
+ 'selectors' => array(
478
+ '#header_wrapper h1'
479
  ),
480
  'active_callback' => array(
481
  'id' => 'email_type',
483
  'value' => $key,
484
  ),
485
  );
486
+ if ( 'customer_invoice' == $key ) {
487
+ $email_text['woocommerce_'.$key.'_settings[heading_paid]'] = array(
488
+ 'title' => __('Heading (paid) Text', 'kadence-woocommerce-email-designer'),
489
+ 'type' => 'text',
490
+ 'section' => 'mtype',
491
+ 'priority' => 5,
492
+ 'default' => '',
493
+ 'input_attrs' => array(
494
+ 'placeholder' => self::get_default_value( $key.'_heading_paid' ),
495
+ ),
496
+ 'active_callback' => array(
497
+ 'id' => 'email_type',
498
+ 'compare' => '==',
499
+ 'value' => $key,
500
+ ),
501
+ );
502
+ }
503
  }
504
  }
505
+ self::$woo_settings = array_merge($base_options, $email_text);
506
  }
507
+ return self::$woo_settings;
508
  }
 
 
509
 
510
+ /**
511
+ * Get our extra settings
512
+ *
513
+ * @access public
514
+ * @return array
515
+ */
516
+ public static function get_settings() {
517
+ // Define settings
518
+ if ( is_null( self::$settings ) ) {
519
+ // Main Base options.
520
+ $mainoptions = array(
521
+ //Email template
522
+ 'email_load_template' => array(
523
+ 'title' => __( 'Template_load', 'kadence-woocommerce-email-designer' ),
524
+ 'section' => 'template',
525
+ 'control_type' => 'kwdtemplateload',
526
+ 'choices' => self::get_email_templates(),
527
+ 'default' => 'kt_full',
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
528
  'transport' => 'refresh',
529
+ ),
530
+ // Preview Order Id.
531
+ 'preview_order_id' => array(
532
+ 'title' => __( 'Preview Order', 'kadence-woocommerce-email-designer' ),
 
 
 
 
 
 
 
533
  'section' => 'mtype',
534
+ 'type' => 'select',
535
+ 'priority' => 1,
536
+ 'choices' => self::get_order_ids(),
537
+ 'default' => self::get_default_value('preview_order_id'),
538
  'transport' => 'refresh',
539
+ ),
540
+ // Email Type.
541
+ 'email_type' => array(
542
+ 'title' => __( 'Email Type', 'kadence-woocommerce-email-designer' ),
 
 
 
 
 
 
 
 
 
543
  'section' => 'mtype',
544
+ 'type' => 'select',
545
+ 'priority' => 2,
546
+ 'choices' => self::get_email_types(),
547
+ 'default' => self::get_default_value( 'email_type' ),
548
  'transport' => 'refresh',
549
+ ),
550
+ // Placeholder Info.
551
+ 'email_text_info' => array(
552
+ 'title' => __( 'Available placeholders', 'kadence-woocommerce-email-designer' ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
553
  'section' => 'mtype',
554
+ 'control_type' => 'kwdinfoblock',
555
+ 'priority' => 50,
556
+ 'description' => '<code>{site_title}, {order_date}, {order_number}, {customer_first_name}, {customer_last_name}, {customer_full_name}, {customer_username}</code>',
557
+ ),
558
+ );
559
+ $extra_email_text = array();
560
+
561
+ // Get the Extra Text area settings.
562
+ foreach ( self::get_customized_email_types() as $key => $value ) {
563
+ // Email Subtitle Text
564
+ $extra_email_text[$key.'_subtitle'] = array(
565
+ 'title' => __('Subtitle Text', 'kadence-woocommerce-email-designer'),
566
+ 'type' => 'text',
567
  'section' => 'mtype',
568
+ 'default' => '',
569
  'original' => '',
570
+ 'live_method' => 'replace',
571
+ 'selectors' => array(
572
+ '#header_wrapper .subtitle'
 
573
  ),
 
 
 
 
 
 
 
 
 
 
574
  'active_callback' => array(
575
  'id' => 'email_type',
576
  'compare' => '==',
577
  'value' => $key,
578
  ),
579
  );
580
+ if ( 'customer_refunded_order' == $key ) {
581
+ // Email preview switch
582
+ $extra_email_text[$key.'_switch'] = array(
583
+ 'title' => __('Switch off for Partial Refund Preview', 'kadence-woocommerce-email-designer'),
584
+ 'control_type' => 'toggleswitch',
585
+ 'section' => 'mtype',
586
+ 'transport' => 'refresh',
587
+ 'default' => self::get_default_value( $key.'_switch' ),
588
+ 'original' => '',
589
+ 'priority' => 3,
590
+ 'active_callback' => array(
591
+ 'id' => 'email_type',
592
+ 'compare' => '==',
593
+ 'value' => $key,
594
+ ),
595
+ );
596
+ // Email Body Text
597
+ $extra_email_text[$key.'_body_full'] = array(
598
+ 'title' => __('Body Full Refund Text', 'kadence-woocommerce-email-designer'),
599
+ 'type' => 'textarea',
600
+ 'section' => 'mtype',
601
+ 'default' => self::get_default_value( $key.'_body_full' ),
602
+ 'original' => '',
603
+ 'transport' => 'refresh',
604
+ 'active_callback' => array(
605
+ 'id' => 'email_type',
606
+ 'compare' => '==',
607
+ 'value' => $key,
608
+ ),
609
+ );
610
+ // Email Body Text
611
+ $extra_email_text[$key.'_body_partial'] = array(
612
+ 'title' => __('Body Partial Refund Text', 'kadence-woocommerce-email-designer'),
613
+ 'type' => 'textarea',
614
+ 'section' => 'mtype',
615
+ 'default' => self::get_default_value( $key.'_body_partial' ),
616
+ 'original' => '',
617
+ 'transport' => 'refresh',
618
+ 'active_callback' => array(
619
+ 'id' => 'email_type',
620
+ 'compare' => '==',
621
+ 'value' => $key,
622
+ ),
623
+ );
624
+ } else if ( 'customer_invoice' == $key ) {
625
+ // Email preview switch
626
+ $extra_email_text[$key.'_switch'] = array(
627
+ 'title' => __('Switch off for unpaid preview', 'kadence-woocommerce-email-designer'),
628
+ 'control_type' => 'toggleswitch',
629
+ 'section' => 'mtype',
630
+ 'transport' => 'refresh',
631
+ 'default' => self::get_default_value( $key.'_switch' ),
632
+ 'original' => '',
633
+ 'priority' => 3,
634
+ 'active_callback' => array(
635
+ 'id' => 'email_type',
636
+ 'compare' => '==',
637
+ 'value' => $key,
638
+ ),
639
+ );
640
+ // Email Body Text
641
+ $extra_email_text[$key.'_body_paid'] = array(
642
+ 'title' => __('Body Invoice Paid Text', 'kadence-woocommerce-email-designer'),
643
+ 'type' => 'textarea',
644
+ 'section' => 'mtype',
645
+ 'default' => self::get_default_value( $key.'_body_paid' ),
646
+ 'original' => '',
647
+ 'transport' => 'refresh',
648
+ 'active_callback' => array(
649
+ 'id' => 'email_type',
650
+ 'compare' => '==',
651
+ 'value' => $key,
652
+ ),
653
+ );
654
+ // Email Body Text
655
+ $extra_email_text[$key.'_body'] = array(
656
+ 'title' => __('Body Invoice Pending Payment Text', 'kadence-woocommerce-email-designer'),
657
+ 'type' => 'textarea',
658
+ 'section' => 'mtype',
659
+ 'default' => self::get_default_value( $key.'_body' ),
660
+ 'original' => '',
661
+ 'active_callback' => array(
662
+ 'id' => 'email_type',
663
+ 'compare' => '==',
664
+ 'value' => $key,
665
+ ),
666
+ );
667
+ }else if ( 'customer_renewal_invoice' == $key ) {
668
+ // Email Body Text
669
+ $extra_email_text[$key.'_body_failed'] = array(
670
+ 'title' => __('Body Invoice Failed Text', 'kadence-woocommerce-email-designer'),
671
+ 'type' => 'textarea',
672
+ 'section' => 'mtype',
673
+ 'default' => self::get_default_value( $key.'_body_failed' ),
674
+ 'original' => '',
675
+ 'transport' => 'refresh',
676
+ 'active_callback' => array(
677
+ 'id' => 'email_type',
678
+ 'compare' => '==',
679
+ 'value' => $key,
680
+ ),
681
+ );
682
+ // Email Body Text
683
+ $extra_email_text[$key.'_body'] = array(
684
+ 'title' => __('Body Invoice Pending Payment Text', 'kadence-woocommerce-email-designer'),
685
+ 'type' => 'textarea',
686
+ 'section' => 'mtype',
687
+ 'default' => self::get_default_value( $key.'_body' ),
688
+ 'original' => '',
689
+ 'active_callback' => array(
690
+ 'id' => 'email_type',
691
+ 'compare' => '==',
692
+ 'value' => $key,
693
+ ),
694
+ );
695
+ } else {
696
+ // Email Body Text.
697
+ $extra_email_text[$key . '_body'] = array(
698
+ 'title' => __( 'Body Text', 'kadence-woocommerce-email-designer' ),
699
+ 'type' => 'textarea',
700
+ 'section' => 'mtype',
701
+ 'default' => self::get_default_value( $key.'_body' ),
702
+ 'original' => '',
703
+ 'transport' => 'refresh',
704
+ 'active_callback' => array(
705
+ 'id' => 'email_type',
706
+ 'compare' => '==',
707
+ 'value' => $key,
708
+ ),
709
+ );
710
+ }
711
  }
712
+ $main = array(
 
713
  /* CONTAINER STUFF */
714
+ // Email width.
715
  'content_width' => array(
716
  'title' => __('Content Width', 'kadence-woocommerce-email-designer'),
717
  'control_type' => 'rangevalue',
2282
  If this was a mistake, just ignore this email and nothing will happen.
2283
 
2284
  To reset your password, visit the following address:', 'kadence-woocommerce-email-designer' ),
2285
+ 'WC_Memberships_User_Membership_Ended_Email_heading' => __( 'Renew your {membership_plan}', 'kadence-woocommerce-email-designer' ),
2286
+ 'WC_Memberships_User_Membership_Ended_Email_subject' => __( 'Your {site_title} membership has expired', 'kadence-woocommerce-email-designer' ),
2287
+ 'WC_Memberships_User_Membership_Activated_Email_heading' => __( 'You can now access {membership_plan}', 'kadence-woocommerce-email-designer' ),
2288
+ 'WC_Memberships_User_Membership_Activated_Email_subject' => __( 'Your {site_title} membership is now active!', 'kadence-woocommerce-email-designer' ),
2289
+ 'WC_Memberships_User_Membership_Ending_Soon_Email_heading' => __( 'An update about your {membership_plan}', 'kadence-woocommerce-email-designer' ),
2290
+ 'WC_Memberships_User_Membership_Ending_Soon_Email_subject' => __( 'Your {site_title} membership ends soon!', 'kadence-woocommerce-email-designer' ),
2291
+ 'WC_Memberships_User_Membership_Note_Email_heading' => __( 'A note has been added about your membership', 'kadence-woocommerce-email-designer' ),
2292
+ 'WC_Memberships_User_Membership_Note_Email_subject' => __( 'Note added to your {site_title} membership', 'kadence-woocommerce-email-designer' ),
2293
+ 'WC_Memberships_User_Membership_Renewal_Reminder_Email_heading' => __( 'You can renew your {membership_plan}', 'kadence-woocommerce-email-designer' ),
2294
+ 'WC_Memberships_User_Membership_Renewal_Reminder_Email_subject' => __( 'Renew your {site_title} membership!', 'kadence-woocommerce-email-designer' ),
2295
 
2296
  'header_background_color' => get_option( 'woocommerce_email_base_color' ),
2297
  'header_text_align' => 'left',
2399
  }
2400
 
2401
  /**
2402
+ * Get default values
2403
+ *
2404
+ * @access public
2405
+ * @param string $key
2406
+ * @return string
2407
+ */
2408
  public static function get_default_value( $key ) {
2409
  // Get default values
2410
  $default_values = self::get_default_values();
2442
  */
2443
  public static function get_text_aligns() {
2444
  return array(
2445
+ 'left' => __( 'Left', 'kadence-woocommerce-email-designer' ),
2446
+ 'center' => __( 'Center', 'kadence-woocommerce-email-designer' ),
2447
+ 'right' => __( 'Right', 'kadence-woocommerce-email-designer' ),
2448
+ 'justify' => __( 'Justify', 'kadence-woocommerce-email-designer' ),
2449
  );
2450
  }
2451
+ /**
2452
+ * Get image align options
2453
+ *
2454
+ * @access public
2455
+ * @return array
2456
+ */
2457
  public static function get_image_aligns() {
2458
  return array(
2459
+ 'left' => __( 'Left', 'kadence-woocommerce-email-designer' ),
2460
+ 'center' => __( 'Center', 'kadence-woocommerce-email-designer' ),
2461
+ 'right' => __( 'Right', 'kadence-woocommerce-email-designer' ),
2462
  );
2463
  }
2464
  /**
2465
+ * Get Order Ids
2466
+ *
2467
+ * @access public
2468
+ * @return array
2469
+ */
2470
  public static function get_order_ids() {
2471
  if ( is_null( self::$order_ids ) ) {
 
2472
  $order_array = array();
2473
+ $order_array['mockup'] = __( 'Mockup Order', 'kadence-woocommerce-email-designer' );
2474
+ $orders = new WP_Query(
2475
+ array(
2476
+ 'post_type' => 'shop_order',
2477
+ 'post_status' => array_keys( wc_get_order_statuses() ),
2478
+ 'posts_per_page' => 20,
2479
+ )
2480
+ );
2481
  if ( $orders->posts ) {
2482
  foreach ( $orders->posts as $order ) {
2483
  // Get order object.
2484
  $order_object = new WC_Order( $order->ID );
2485
+ $order_array[ $order_object->get_id() ] = $order_object->get_id() . ' - ' . $order_object->get_billing_first_name() . ' ' . $order_object->get_billing_last_name();
2486
  }
2487
  }
2488
  self::$order_ids = $order_array;
2490
  return self::$order_ids;
2491
  }
2492
  /**
2493
+ * Get font families
2494
+ *
2495
+ * @access public
2496
+ * @return array
2497
+ */
2498
  public static function get_font_families() {
2499
  return apply_filters( 'kadence_woomail_email_font_families', self::$font_family_mapping );
2500
  }
2509
  if ( is_null( self::$email_types ) ) {
2510
  $types = self::$email_types_mapping;
2511
  if ( class_exists( 'WC_Subscriptions' ) ) {
2512
+ $types = array_merge( $types, self::$subscription_email_types_mapping );
2513
  }
2514
+ if ( class_exists( 'WC_Memberships' ) ) {
2515
+ $types = array_merge( $types, self::$membership_email_types_mapping );
2516
+ }
2517
+ // if ( class_exists( 'WCMp' ) ) {
2518
+ // $types = array_merge( $types, self::$marketplace_email_types_mapping );
2519
+ // }
2520
  if ( class_exists( 'WooCommerce_Waitlist_Plugin' ) ) {
2521
+ $types = array_merge( $types, self::$waitlist_email_types_mapping );
2522
  }
2523
 
2524
  self::$email_types = apply_filters( 'kadence_woomail_email_types', $types );
2534
  * @return array
2535
  */
2536
  public static function get_customized_email_types() {
2537
+ if ( is_null( self::$customized_email_types ) ) {
2538
  $types = self::$email_types_mapping;
2539
  if ( class_exists( 'WC_Subscriptions' ) ) {
2540
+ $types = array_merge( $types, self::$subscription_email_types_mapping );
2541
  }
2542
  if ( class_exists( 'WooCommerce_Waitlist_Plugin' ) ) {
2543
+ $types = array_merge( $types, self::$waitlist_email_types_mapping );
2544
  }
2545
 
2546
+ self::$customized_email_types = apply_filters( 'kadence_woomail_customized_email_types', $types );
2547
  }
2548
 
2549
+ return self::$customized_email_types;
2550
  }
2551
 
2552
  /**
kadence-woocommerce-email-designer.php CHANGED
@@ -3,7 +3,7 @@
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.1.7
7
  * Author: Kadence Themes
8
  * Author URI: http://kadencethemes.com/
9
  * License: GPLv2 or later
@@ -79,6 +79,7 @@ class Kadence_Woomail_Designer {
79
  load_plugin_textdomain( 'kadence-woocommerce-email-designer', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
80
  // Add link for plugin page.
81
  add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), array( $this, 'plugins_page_links' ) );
 
82
  }
83
 
84
  /**
@@ -281,7 +282,8 @@ class Kadence_Woomail_Designer {
281
  $body_text = str_replace( '{customer_first_name}', $order->get_billing_first_name(), $body_text );
282
  $body_text = str_replace( '{customer_last_name}', $order->get_billing_last_name(), $body_text );
283
  $body_text = str_replace( '{customer_full_name}', $order->get_formatted_billing_full_name(), $body_text );
284
- $body_text = str_replace( '{customer_username}', Kadence_Woomail_Designer::get_username_from_id( $user_id ), $body_text );
 
285
  }
286
 
287
  $body_text = apply_filters( 'kadence_woomail_order_body_text', $body_text, $order, $sent_to_admin, $plain_text, $email );
@@ -345,7 +347,8 @@ class Kadence_Woomail_Designer {
345
  $subtitle = str_replace( '{customer_first_name}', $email->object->get_billing_first_name(), $subtitle );
346
  $subtitle = str_replace( '{customer_last_name}', $email->object->get_billing_last_name(), $subtitle );
347
  $subtitle = str_replace( '{customer_full_name}', $email->object->get_formatted_billing_full_name(), $subtitle );
348
- $subtitle = str_replace( '{customer_username}', Kadence_Woomail_Designer::get_username_from_id( $user_id ), $subtitle );
 
349
  } elseif ( is_a( $email->object, 'WC_Product' ) ) {
350
  $subtitle = str_replace( '{product_title}', $email->object->get_title(), $subtitle );
351
  }
@@ -442,7 +445,8 @@ class Kadence_Woomail_Designer {
442
  $string = str_replace( '{customer_first_name}', $email->object->get_billing_first_name(), $string );
443
  $string = str_replace( '{customer_last_name}', $email->object->get_billing_last_name(), $string );
444
  $string = str_replace( '{customer_full_name}', $email->object->get_formatted_billing_full_name(), $string );
445
- $string = str_replace( '{customer_username}', Kadence_Woomail_Designer::get_username_from_id( $user_id ), $string );
 
446
  }
447
 
448
  return $string;
@@ -505,23 +509,23 @@ class Kadence_Woomail_Designer {
505
  * @return string
506
  */
507
  public static function get_admin_capability() {
508
- // Get capability
509
  if ( is_null( self::$admin_capability ) ) {
510
  self::$admin_capability = apply_filters( 'kt_woomail_capability', 'manage_woocommerce' );
511
  }
512
 
513
- // Return capability
514
  return self::$admin_capability;
515
- }
516
 
517
  /**
518
- * check if user is authorized to use the email customizer
519
  *
520
  * @access public
521
  * @return bool
522
  */
523
  public static function is_admin() {
524
- return current_user_can( Kadence_Woomail_Designer::get_admin_capability() );
525
  }
526
 
527
  /**
@@ -541,14 +545,14 @@ class Kadence_Woomail_Designer {
541
  * @return string
542
  */
543
  public function filter_locate_template( $template, $template_name, $template_path ) {
544
- // Make sure we are working with an email template
545
  if ( ! in_array( 'emails', explode( '/', $template_name ) ) ) {
546
  return $template;
547
  }
548
- // clone template
549
  $_template = $template;
550
 
551
- // Get the woocommerce template path if empty
552
  if ( ! $template_path ) {
553
  global $woocommerce;
554
  $template_path = $woocommerce->template_url;
@@ -557,20 +561,20 @@ class Kadence_Woomail_Designer {
557
  // Get our template path
558
  $plugin_path = KT_WOOMAIL_PATH . 'templates/woo/';
559
 
560
- // Look within passed path within the theme - this is priority
561
  $template = locate_template( array( $template_path . $template_name, $template_name ) );
562
 
563
- // If theme isn't trying to override get the template from this plugin, if it exists
564
  if ( ! $template && file_exists( $plugin_path . $template_name ) ) {
565
  $template = $plugin_path . $template_name;
566
  }
567
 
568
- // else if we still don't have a template use default
569
  if ( ! $template ) {
570
  $template = $_template;
571
  }
572
 
573
- // Return template
574
  return $template;
575
 
576
  }
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.1.8
7
  * Author: Kadence Themes
8
  * Author URI: http://kadencethemes.com/
9
  * License: GPLv2 or later
79
  load_plugin_textdomain( 'kadence-woocommerce-email-designer', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
80
  // Add link for plugin page.
81
  add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), array( $this, 'plugins_page_links' ) );
82
+
83
  }
84
 
85
  /**
282
  $body_text = str_replace( '{customer_first_name}', $order->get_billing_first_name(), $body_text );
283
  $body_text = str_replace( '{customer_last_name}', $order->get_billing_last_name(), $body_text );
284
  $body_text = str_replace( '{customer_full_name}', $order->get_formatted_billing_full_name(), $body_text );
285
+ $body_text = str_replace( '{customer_company}', $order->get_billing_company(), $body_text );
286
+ $body_text = str_replace( '{customer_username}', self::get_username_from_id( $user_id ), $body_text );
287
  }
288
 
289
  $body_text = apply_filters( 'kadence_woomail_order_body_text', $body_text, $order, $sent_to_admin, $plain_text, $email );
347
  $subtitle = str_replace( '{customer_first_name}', $email->object->get_billing_first_name(), $subtitle );
348
  $subtitle = str_replace( '{customer_last_name}', $email->object->get_billing_last_name(), $subtitle );
349
  $subtitle = str_replace( '{customer_full_name}', $email->object->get_formatted_billing_full_name(), $subtitle );
350
+ $subtitle = str_replace( '{customer_company}', $email->object->get_billing_company(), $subtitle );
351
+ $subtitle = str_replace( '{customer_username}', self::get_username_from_id( $user_id ), $subtitle );
352
  } elseif ( is_a( $email->object, 'WC_Product' ) ) {
353
  $subtitle = str_replace( '{product_title}', $email->object->get_title(), $subtitle );
354
  }
445
  $string = str_replace( '{customer_first_name}', $email->object->get_billing_first_name(), $string );
446
  $string = str_replace( '{customer_last_name}', $email->object->get_billing_last_name(), $string );
447
  $string = str_replace( '{customer_full_name}', $email->object->get_formatted_billing_full_name(), $string );
448
+ $string = str_replace( '{customer_company}', $email->object->get_billing_company(), $string );
449
+ $string = str_replace( '{customer_username}', self::get_username_from_id( $user_id ), $string );
450
  }
451
 
452
  return $string;
509
  * @return string
510
  */
511
  public static function get_admin_capability() {
512
+ // Get capability.
513
  if ( is_null( self::$admin_capability ) ) {
514
  self::$admin_capability = apply_filters( 'kt_woomail_capability', 'manage_woocommerce' );
515
  }
516
 
517
+ // Return capability.
518
  return self::$admin_capability;
519
+ }
520
 
521
  /**
522
+ * Check if user is authorized to use the email customizer
523
  *
524
  * @access public
525
  * @return bool
526
  */
527
  public static function is_admin() {
528
+ return current_user_can( self::get_admin_capability() );
529
  }
530
 
531
  /**
545
  * @return string
546
  */
547
  public function filter_locate_template( $template, $template_name, $template_path ) {
548
+ // Make sure we are working with an email template.
549
  if ( ! in_array( 'emails', explode( '/', $template_name ) ) ) {
550
  return $template;
551
  }
552
+ // clone template.
553
  $_template = $template;
554
 
555
+ // Get the woocommerce template path if empty.
556
  if ( ! $template_path ) {
557
  global $woocommerce;
558
  $template_path = $woocommerce->template_url;
561
  // Get our template path
562
  $plugin_path = KT_WOOMAIL_PATH . 'templates/woo/';
563
 
564
+ // Look within passed path within the theme - this is priority.
565
  $template = locate_template( array( $template_path . $template_name, $template_name ) );
566
 
567
+ // If theme isn't trying to override get the template from this plugin, if it exists.
568
  if ( ! $template && file_exists( $plugin_path . $template_name ) ) {
569
  $template = $plugin_path . $template_name;
570
  }
571
 
572
+ // else if we still don't have a template use default.
573
  if ( ! $template ) {
574
  $template = $_template;
575
  }
576
 
577
+ // Return template.
578
  return $template;
579
 
580
  }
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-03-19 18:05-0600\n"
6
  "PO-Revision-Date: 2015-05-08 13:15-0700\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \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:1386
112
- #: includes/class-kadence-woomail-settings.php:1427
113
  msgid "None"
114
  msgstr ""
115
 
@@ -129,61 +129,61 @@ msgstr ""
129
  msgid "Gray"
130
  msgstr ""
131
 
132
- #: includes/class-kadence-woomail-customizer.php:133
133
  msgid "Save"
134
  msgstr ""
135
 
136
- #: includes/class-kadence-woomail-customizer.php:135
137
  msgid "Saved"
138
  msgstr ""
139
 
140
- #: includes/class-kadence-woomail-customizer.php:188
141
  msgid "WooCommerce Emails"
142
  msgstr ""
143
 
144
- #: includes/class-kadence-woomail-customizer.php:295
145
  msgid "Reset"
146
  msgstr ""
147
 
148
- #: includes/class-kadence-woomail-customizer.php:296
149
  msgid "Woocommerce Emails"
150
  msgstr ""
151
 
152
- #: includes/class-kadence-woomail-customizer.php:297
153
  msgid "Are you sure you want to send an email?"
154
  msgstr ""
155
 
156
- #: includes/class-kadence-woomail-customizer.php:298
157
  msgid "Email Sent!"
158
  msgstr ""
159
 
160
- #: includes/class-kadence-woomail-customizer.php:299
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:300
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:301
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:301
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:306
183
  msgid "Please choose a file to import."
184
  msgstr ""
185
 
186
- #: includes/class-kadence-woomail-customizer.php:307
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 "
@@ -216,942 +216,954 @@ msgstr ""
216
  msgid "Error importing settings! The template you selected is not valid."
217
  msgstr ""
218
 
219
- #: includes/class-kadence-woomail-preview.php:263
220
  msgid "Hello! This is an example note"
221
  msgstr ""
222
 
223
- #: includes/class-kadence-woomail-preview.php:351
224
  msgid ""
225
  "This email type can not be previewed please try a differnet order or email "
226
  "type."
227
  msgstr ""
228
 
229
- #: includes/class-kadence-woomail-preview.php:353
230
  msgid ""
231
  "This email type requires that an order containing a subscription be selected "
232
  "as the preview order."
233
  msgstr ""
234
 
235
- #: includes/class-kadence-woomail-preview.php:398
 
 
 
 
 
 
 
 
 
 
 
 
236
  msgid ""
237
  "An error occurred trying to load this email type. Make sure this email type "
238
  "is enabled or please try another type."
239
  msgstr ""
240
 
241
- #: includes/class-kadence-woomail-settings.php:82
242
  msgid "Header"
243
  msgstr ""
244
 
245
- #: includes/class-kadence-woomail-settings.php:88
246
  msgid "Content"
247
  msgstr ""
248
 
249
- #: includes/class-kadence-woomail-settings.php:94
250
  msgid "Footer"
251
  msgstr ""
252
 
253
- #: includes/class-kadence-woomail-settings.php:116
254
  msgid "Prebuilt Templates"
255
  msgstr ""
256
 
257
- #: includes/class-kadence-woomail-settings.php:120
258
  msgid "Email Type and Text"
259
  msgstr ""
260
 
261
- #: includes/class-kadence-woomail-settings.php:125
262
  msgid "Container"
263
  msgstr ""
264
 
265
- #: includes/class-kadence-woomail-settings.php:131
266
  msgid "Header Style"
267
  msgstr ""
268
 
269
- #: includes/class-kadence-woomail-settings.php:138
270
- #: includes/class-kadence-woomail-settings.php:239
271
  msgid "Header Image"
272
  msgstr ""
273
 
274
- #: includes/class-kadence-woomail-settings.php:145
275
  msgid "Heading"
276
  msgstr ""
277
 
278
- #: includes/class-kadence-woomail-settings.php:152
279
  msgid "Footer Style"
280
  msgstr ""
281
 
282
- #: includes/class-kadence-woomail-settings.php:158
283
  msgid "Footer Social"
284
  msgstr ""
285
 
286
- #: includes/class-kadence-woomail-settings.php:164
287
  msgid "Footer Credit Content"
288
  msgstr ""
289
 
290
- #: includes/class-kadence-woomail-settings.php:171
291
  msgid "Content Container"
292
  msgstr ""
293
 
294
- #: includes/class-kadence-woomail-settings.php:176
295
  msgid "Content Headings Style"
296
  msgstr ""
297
 
298
- #: includes/class-kadence-woomail-settings.php:182
299
  msgid "Content Text Style"
300
  msgstr ""
301
 
302
- #: includes/class-kadence-woomail-settings.php:188
303
  msgid "Order Items"
304
  msgstr ""
305
 
306
- #: includes/class-kadence-woomail-settings.php:194
307
  msgid "Addresses"
308
  msgstr ""
309
 
310
- #: includes/class-kadence-woomail-settings.php:200
311
  msgid "Text Copy"
312
  msgstr ""
313
 
314
- #: includes/class-kadence-woomail-settings.php:207
315
  msgid "Custom Styles"
316
  msgstr ""
317
 
318
- #: includes/class-kadence-woomail-settings.php:212
319
- #: includes/class-kadence-woomail-settings.php:2107
320
  msgid "Import Export"
321
  msgstr ""
322
 
323
- #: includes/class-kadence-woomail-settings.php:217
324
  msgid "Send Preview Email"
325
  msgstr ""
326
 
327
- #: includes/class-kadence-woomail-settings.php:252
328
  msgid "Container Background color"
329
  msgstr ""
330
 
331
- #: includes/class-kadence-woomail-settings.php:265
332
  msgid "Content Text color"
333
  msgstr ""
334
 
335
- #: includes/class-kadence-woomail-settings.php:279
336
  msgid "Content Background color"
337
  msgstr ""
338
 
339
- #: includes/class-kadence-woomail-settings.php:293
340
  msgid "Footer text"
341
  msgstr ""
342
 
343
- #: includes/class-kadence-woomail-settings.php:308
344
  msgid "Recipient(s)"
345
  msgstr ""
346
 
347
- #: includes/class-kadence-woomail-settings.php:313
348
  #, php-format
349
  msgid "Enter recipients (comma separated) for this email. Defaults to %s."
350
  msgstr ""
351
 
352
- #: includes/class-kadence-woomail-settings.php:324
353
  msgid "Full refund subject"
354
  msgstr ""
355
 
356
- #: includes/class-kadence-woomail-settings.php:340
357
  msgid "Partial refund subject"
358
  msgstr ""
359
 
360
- #: includes/class-kadence-woomail-settings.php:356
361
  msgid "Full refund Heading Text"
362
  msgstr ""
363
 
364
- #: includes/class-kadence-woomail-settings.php:376
365
  msgid "Partial refund Heading Text"
366
  msgstr ""
367
 
368
- #: includes/class-kadence-woomail-settings.php:393
369
  msgid "Subject Text"
370
  msgstr ""
371
 
372
- #: includes/class-kadence-woomail-settings.php:409
373
  msgid "Subject (paid) Text"
374
  msgstr ""
375
 
376
- #: includes/class-kadence-woomail-settings.php:426
377
  msgid "Heading Text"
378
  msgstr ""
379
 
380
- #: includes/class-kadence-woomail-settings.php:446
381
  msgid "Heading (paid) Text"
382
  msgstr ""
383
 
384
- #: includes/class-kadence-woomail-settings.php:481
385
  msgid "Template_load"
386
  msgstr ""
387
 
388
- #: includes/class-kadence-woomail-settings.php:490
389
  msgid "Preview Order"
390
  msgstr ""
391
 
392
- #: includes/class-kadence-woomail-settings.php:500
393
  msgid "Email Type"
394
  msgstr ""
395
 
396
- #: includes/class-kadence-woomail-settings.php:510
397
  msgid "Available placeholders"
398
  msgstr ""
399
 
400
- #: includes/class-kadence-woomail-settings.php:522
401
  msgid "Subtitle Text"
402
  msgstr ""
403
 
404
- #: includes/class-kadence-woomail-settings.php:540
405
  msgid "Switch off for Partial Refund Preview"
406
  msgstr ""
407
 
408
- #: includes/class-kadence-woomail-settings.php:555
409
  msgid "Body Full Refund Text"
410
  msgstr ""
411
 
412
- #: includes/class-kadence-woomail-settings.php:569
413
  msgid "Body Partial Refund Text"
414
  msgstr ""
415
 
416
- #: includes/class-kadence-woomail-settings.php:584
417
  msgid "Switch off for unpaid preview"
418
  msgstr ""
419
 
420
- #: includes/class-kadence-woomail-settings.php:599
421
  msgid "Body Invoice Paid Text"
422
  msgstr ""
423
 
424
- #: includes/class-kadence-woomail-settings.php:613
425
- #: includes/class-kadence-woomail-settings.php:641
426
  msgid "Body Invoice Pending Payment Text"
427
  msgstr ""
428
 
429
- #: includes/class-kadence-woomail-settings.php:627
430
  msgid "Body Invoice Failed Text"
431
  msgstr ""
432
 
433
- #: includes/class-kadence-woomail-settings.php:655
434
  msgid "Body Text"
435
  msgstr ""
436
 
437
- #: includes/class-kadence-woomail-settings.php:673
438
  msgid "Content Width"
439
  msgstr ""
440
 
441
- #: includes/class-kadence-woomail-settings.php:693
442
  msgid "Border radius"
443
  msgstr ""
444
 
445
- #: includes/class-kadence-woomail-settings.php:709
446
- #: includes/class-kadence-woomail-settings.php:1634
447
  msgid "Border Width"
448
  msgstr ""
449
 
450
- #: includes/class-kadence-woomail-settings.php:725
451
  msgid "Border color"
452
  msgstr ""
453
 
454
- #: includes/class-kadence-woomail-settings.php:736
455
  msgid "Shadow"
456
  msgstr ""
457
 
458
- #: includes/class-kadence-woomail-settings.php:739
459
  msgid "Warning: most email clients do not yet support this"
460
  msgstr ""
461
 
462
- #: includes/class-kadence-woomail-settings.php:753
463
  msgid "Container Top Padding"
464
  msgstr ""
465
 
466
- #: includes/class-kadence-woomail-settings.php:769
467
  msgid "Container Botom Padding"
468
  msgstr ""
469
 
470
- #: includes/class-kadence-woomail-settings.php:786
471
  msgid "Image Align"
472
  msgstr ""
473
 
474
- #: includes/class-kadence-woomail-settings.php:798
475
  msgid "Image Max Width"
476
  msgstr ""
477
 
478
- #: includes/class-kadence-woomail-settings.php:813
479
- #: includes/class-kadence-woomail-settings.php:840
480
  msgid "Background color"
481
  msgstr ""
482
 
483
- #: includes/class-kadence-woomail-settings.php:824
484
  msgid "Padding top/bottom"
485
  msgstr ""
486
 
487
- #: includes/class-kadence-woomail-settings.php:851
488
  msgid "Text align"
489
  msgstr ""
490
 
491
- #: includes/class-kadence-woomail-settings.php:865
492
- #: includes/class-kadence-woomail-settings.php:1110
493
  msgid "Padding Top"
494
  msgstr ""
495
 
496
- #: includes/class-kadence-woomail-settings.php:881
497
- #: includes/class-kadence-woomail-settings.php:1126
498
  msgid "Padding Bottom"
499
  msgstr ""
500
 
501
- #: includes/class-kadence-woomail-settings.php:898
502
  msgid "Padding left/right"
503
  msgstr ""
504
 
505
- #: includes/class-kadence-woomail-settings.php:914
506
  msgid "Heading Font size"
507
  msgstr ""
508
 
509
- #: includes/class-kadence-woomail-settings.php:930
510
  msgid "Heading Line Height"
511
  msgstr ""
512
 
513
- #: includes/class-kadence-woomail-settings.php:946
514
  msgid "Heading Font family"
515
  msgstr ""
516
 
517
- #: includes/class-kadence-woomail-settings.php:958
518
  msgid "Heading Font Style"
519
  msgstr ""
520
 
521
- #: includes/class-kadence-woomail-settings.php:964
522
- #: includes/class-kadence-woomail-settings.php:1071
523
- #: includes/class-kadence-woomail-settings.php:1353
524
- #: includes/class-kadence-woomail-settings.php:1542
525
- #: includes/class-kadence-woomail-settings.php:1584
526
- #: includes/class-kadence-woomail-settings.php:1691
527
  msgid "Normal"
528
  msgstr ""
529
 
530
- #: includes/class-kadence-woomail-settings.php:965
531
- #: includes/class-kadence-woomail-settings.php:1072
532
- #: includes/class-kadence-woomail-settings.php:1354
533
- #: includes/class-kadence-woomail-settings.php:1543
534
  msgid "Italic"
535
  msgstr ""
536
 
537
- #: includes/class-kadence-woomail-settings.php:973
538
  msgid "Heading Font weight"
539
  msgstr ""
540
 
541
- #: includes/class-kadence-woomail-settings.php:989
542
  msgid "Heading Text color"
543
  msgstr ""
544
 
545
- #: includes/class-kadence-woomail-settings.php:1001
546
  msgid "Subtitle Settings"
547
  msgstr ""
548
 
549
- #: includes/class-kadence-woomail-settings.php:1008
550
  msgid "Subtitle Placement"
551
  msgstr ""
552
 
553
- #: includes/class-kadence-woomail-settings.php:1014
554
  msgid "Below Heading"
555
  msgstr ""
556
 
557
- #: includes/class-kadence-woomail-settings.php:1015
558
  msgid "Above Heading"
559
  msgstr ""
560
 
561
- #: includes/class-kadence-woomail-settings.php:1021
562
  msgid "Subtitle Font Size"
563
  msgstr ""
564
 
565
- #: includes/class-kadence-woomail-settings.php:1037
566
  msgid "Subtitle Line Height"
567
  msgstr ""
568
 
569
- #: includes/class-kadence-woomail-settings.php:1053
570
  msgid "Subtitle Font Family"
571
  msgstr ""
572
 
573
- #: includes/class-kadence-woomail-settings.php:1065
574
  msgid "Subtitle Font Style"
575
  msgstr ""
576
 
577
- #: includes/class-kadence-woomail-settings.php:1081
578
  msgid "Subtitle Font weight"
579
  msgstr ""
580
 
581
- #: includes/class-kadence-woomail-settings.php:1098
582
  msgid "Subtitle Text color"
583
  msgstr ""
584
 
585
- #: includes/class-kadence-woomail-settings.php:1142
586
  msgid "Padding Left/Right"
587
  msgstr ""
588
 
589
- #: includes/class-kadence-woomail-settings.php:1160
590
- #: includes/class-kadence-woomail-settings.php:2008
591
  msgid "Font Size"
592
  msgstr ""
593
 
594
- #: includes/class-kadence-woomail-settings.php:1177
595
  msgid "Line Height"
596
  msgstr ""
597
 
598
- #: includes/class-kadence-woomail-settings.php:1194
599
- #: includes/class-kadence-woomail-settings.php:2024
600
  msgid "Font Family"
601
  msgstr ""
602
 
603
- #: includes/class-kadence-woomail-settings.php:1208
604
- #: includes/class-kadence-woomail-settings.php:2037
605
  msgid "Font weight"
606
  msgstr ""
607
 
608
- #: includes/class-kadence-woomail-settings.php:1224
609
  msgid "Link Color"
610
  msgstr ""
611
 
612
- #: includes/class-kadence-woomail-settings.php:1238
613
  msgid "H2 Font Size"
614
  msgstr ""
615
 
616
- #: includes/class-kadence-woomail-settings.php:1254
617
  msgid "H2 Line Height"
618
  msgstr ""
619
 
620
- #: includes/class-kadence-woomail-settings.php:1270
621
  msgid "H2 Padding Top"
622
  msgstr ""
623
 
624
- #: includes/class-kadence-woomail-settings.php:1286
625
  msgid "H2 Padding Bottom"
626
  msgstr ""
627
 
628
- #: includes/class-kadence-woomail-settings.php:1302
629
  msgid "H2 Margin Top"
630
  msgstr ""
631
 
632
- #: includes/class-kadence-woomail-settings.php:1318
633
  msgid "H2 Margin Bottom"
634
  msgstr ""
635
 
636
- #: includes/class-kadence-woomail-settings.php:1334
637
  msgid "H2 Font Family"
638
  msgstr ""
639
 
640
- #: includes/class-kadence-woomail-settings.php:1347
641
  msgid "H2 Font Style"
642
  msgstr ""
643
 
644
- #: includes/class-kadence-woomail-settings.php:1363
645
  msgid "H2 Font weight"
646
  msgstr ""
647
 
648
- #: includes/class-kadence-woomail-settings.php:1380
649
  msgid "H2 Text Transform"
650
  msgstr ""
651
 
652
- #: includes/class-kadence-woomail-settings.php:1387
653
  msgid "Uppercase"
654
  msgstr ""
655
 
656
- #: includes/class-kadence-woomail-settings.php:1388
657
  msgid "Lowercase"
658
  msgstr ""
659
 
660
- #: includes/class-kadence-woomail-settings.php:1389
661
  msgid "Capitalize"
662
  msgstr ""
663
 
664
- #: includes/class-kadence-woomail-settings.php:1397
665
  msgid "H2 Color"
666
  msgstr ""
667
 
668
- #: includes/class-kadence-woomail-settings.php:1409
669
  msgid "H2 Text Align"
670
  msgstr ""
671
 
672
- #: includes/class-kadence-woomail-settings.php:1421
673
  msgid "H2 Separator"
674
  msgstr ""
675
 
676
- #: includes/class-kadence-woomail-settings.php:1428
677
  msgid "Separator below"
678
  msgstr ""
679
 
680
- #: includes/class-kadence-woomail-settings.php:1429
681
  msgid "Separator above"
682
  msgstr ""
683
 
684
- #: includes/class-kadence-woomail-settings.php:1434
685
  msgid "H2 Separator height"
686
  msgstr ""
687
 
688
- #: includes/class-kadence-woomail-settings.php:1452
689
  msgid "H2 Separator Style"
690
  msgstr ""
691
 
692
- #: includes/class-kadence-woomail-settings.php:1458
693
- #: includes/class-kadence-woomail-settings.php:1670
694
- #: includes/class-kadence-woomail-settings.php:1741
695
- #: includes/class-kadence-woomail-settings.php:1982
696
  msgid "Solid"
697
  msgstr ""
698
 
699
- #: includes/class-kadence-woomail-settings.php:1459
700
- #: includes/class-kadence-woomail-settings.php:1671
701
- #: includes/class-kadence-woomail-settings.php:1742
702
- #: includes/class-kadence-woomail-settings.php:1983
703
  msgid "Double"
704
  msgstr ""
705
 
706
- #: includes/class-kadence-woomail-settings.php:1460
707
- #: includes/class-kadence-woomail-settings.php:1672
708
- #: includes/class-kadence-woomail-settings.php:1743
709
- #: includes/class-kadence-woomail-settings.php:1984
710
  msgid "Groove"
711
  msgstr ""
712
 
713
- #: includes/class-kadence-woomail-settings.php:1461
714
- #: includes/class-kadence-woomail-settings.php:1673
715
- #: includes/class-kadence-woomail-settings.php:1744
716
- #: includes/class-kadence-woomail-settings.php:1985
717
  msgid "Dotted"
718
  msgstr ""
719
 
720
- #: includes/class-kadence-woomail-settings.php:1462
721
- #: includes/class-kadence-woomail-settings.php:1674
722
- #: includes/class-kadence-woomail-settings.php:1745
723
- #: includes/class-kadence-woomail-settings.php:1986
724
  msgid "Dashed"
725
  msgstr ""
726
 
727
- #: includes/class-kadence-woomail-settings.php:1463
728
- #: includes/class-kadence-woomail-settings.php:1675
729
- #: includes/class-kadence-woomail-settings.php:1746
730
- #: includes/class-kadence-woomail-settings.php:1987
731
  msgid "Ridge"
732
  msgstr ""
733
 
734
- #: includes/class-kadence-woomail-settings.php:1472
735
  msgid "H2 Separator Color"
736
  msgstr ""
737
 
738
- #: includes/class-kadence-woomail-settings.php:1485
739
  msgid "H3 Settings"
740
  msgstr ""
741
 
742
- #: includes/class-kadence-woomail-settings.php:1492
743
  msgid "H3 Font Size"
744
  msgstr ""
745
 
746
- #: includes/class-kadence-woomail-settings.php:1508
747
  msgid "H3 Line Height"
748
  msgstr ""
749
 
750
- #: includes/class-kadence-woomail-settings.php:1524
751
  msgid "H3 Font Family"
752
  msgstr ""
753
 
754
- #: includes/class-kadence-woomail-settings.php:1536
755
  msgid "H3 Font Style"
756
  msgstr ""
757
 
758
- #: includes/class-kadence-woomail-settings.php:1551
759
  msgid "H3 Font weight"
760
  msgstr ""
761
 
762
- #: includes/class-kadence-woomail-settings.php:1567
763
  msgid "H3 Color"
764
  msgstr ""
765
 
766
- #: includes/class-kadence-woomail-settings.php:1578
767
  msgid "Order Table Style"
768
  msgstr ""
769
 
770
- #: includes/class-kadence-woomail-settings.php:1585
771
  msgid "Light"
772
  msgstr ""
773
 
774
- #: includes/class-kadence-woomail-settings.php:1590
775
  msgid "Product Image Option"
776
  msgstr ""
777
 
778
- #: includes/class-kadence-woomail-settings.php:1596
779
  msgid "Do not show"
780
  msgstr ""
781
 
782
- #: includes/class-kadence-woomail-settings.php:1597
783
  msgid "Show"
784
  msgstr ""
785
 
786
- #: includes/class-kadence-woomail-settings.php:1602
787
  msgid "Order Table Background color"
788
  msgstr ""
789
 
790
- #: includes/class-kadence-woomail-settings.php:1614
791
  msgid "Padding"
792
  msgstr ""
793
 
794
- #: includes/class-kadence-woomail-settings.php:1653
795
  msgid "Border Color"
796
  msgstr ""
797
 
798
- #: includes/class-kadence-woomail-settings.php:1664
799
  msgid "Border Style"
800
  msgstr ""
801
 
802
- #: includes/class-kadence-woomail-settings.php:1685
803
  msgid "Order Table Heading Style"
804
  msgstr ""
805
 
806
- #: includes/class-kadence-woomail-settings.php:1692
807
  msgid "Split"
808
  msgstr ""
809
 
810
- #: includes/class-kadence-woomail-settings.php:1697
811
  msgid "Address Box Background color"
812
  msgstr ""
813
 
814
- #: includes/class-kadence-woomail-settings.php:1708
815
  msgid "Address Box Border Width"
816
  msgstr ""
817
 
818
- #: includes/class-kadence-woomail-settings.php:1724
819
  msgid "Address Box Border Color"
820
  msgstr ""
821
 
822
- #: includes/class-kadence-woomail-settings.php:1735
823
  msgid "Address Box Border Style"
824
  msgstr ""
825
 
826
- #: includes/class-kadence-woomail-settings.php:1754
827
  msgid "Address Box Text Color"
828
  msgstr ""
829
 
830
- #: includes/class-kadence-woomail-settings.php:1765
831
  msgid "Address Box Text Align"
832
  msgstr ""
833
 
834
- #: includes/class-kadence-woomail-settings.php:1777
835
  msgid "Footer Background Placement"
836
  msgstr ""
837
 
838
- #: includes/class-kadence-woomail-settings.php:1783
839
  msgid "Inside Body Container"
840
  msgstr ""
841
 
842
- #: includes/class-kadence-woomail-settings.php:1784
843
  msgid "Outside Body Container"
844
  msgstr ""
845
 
846
- #: includes/class-kadence-woomail-settings.php:1789
847
  msgid "Footer Background Color"
848
  msgstr ""
849
 
850
- #: includes/class-kadence-woomail-settings.php:1800
851
- #: includes/class-kadence-woomail-settings.php:1917
852
- #: includes/class-kadence-woomail-settings.php:2065
853
  msgid "Top Padding"
854
  msgstr ""
855
 
856
- #: includes/class-kadence-woomail-settings.php:1816
857
- #: includes/class-kadence-woomail-settings.php:1933
858
- #: includes/class-kadence-woomail-settings.php:2081
859
  msgid "Bottom Padding"
860
  msgstr ""
861
 
862
- #: includes/class-kadence-woomail-settings.php:1832
863
  msgid "Left/Right Padding"
864
  msgstr ""
865
 
866
- #: includes/class-kadence-woomail-settings.php:1848
867
  msgid "Footer Social Options"
868
  msgstr ""
869
 
870
- #: includes/class-kadence-woomail-settings.php:1862
871
  msgid "Footer Social Title Color"
872
  msgstr ""
873
 
874
- #: includes/class-kadence-woomail-settings.php:1873
875
  msgid "Footer Social Title Font Size"
876
  msgstr ""
877
 
878
- #: includes/class-kadence-woomail-settings.php:1889
879
  msgid "Footer Social Title Font Family"
880
  msgstr ""
881
 
882
- #: includes/class-kadence-woomail-settings.php:1901
883
  msgid "Footer Social Title Font Weight"
884
  msgstr ""
885
 
886
- #: includes/class-kadence-woomail-settings.php:1949
887
  msgid "Footer Social Bottom Border Width"
888
  msgstr ""
889
 
890
- #: includes/class-kadence-woomail-settings.php:1965
891
  msgid "Footer Social Bottom Border Color"
892
  msgstr ""
893
 
894
- #: includes/class-kadence-woomail-settings.php:1976
895
  msgid "Footer Social Bottom Border Style"
896
  msgstr ""
897
 
898
- #: includes/class-kadence-woomail-settings.php:1995
899
  msgid "Text Align"
900
  msgstr ""
901
 
902
- #: includes/class-kadence-woomail-settings.php:2054
903
  msgid "Text Color"
904
  msgstr ""
905
 
906
- #: includes/class-kadence-woomail-settings.php:2096
907
  msgid "Custom CSS"
908
  msgstr ""
909
 
910
- #: includes/class-kadence-woomail-settings.php:2113
911
  msgid "Preview Email Recipient"
912
  msgstr ""
913
 
914
- #: includes/class-kadence-woomail-settings.php:2114
915
  msgid "Enter recipients (comma separated) for preview emails"
916
  msgstr ""
917
 
918
- #: includes/class-kadence-woomail-settings.php:2156
919
  msgid "Hi There,"
920
  msgstr ""
921
 
922
- #: includes/class-kadence-woomail-settings.php:2157
923
  msgid "{product_title} is now back in stock at {site_title}"
924
  msgstr ""
925
 
926
- #: includes/class-kadence-woomail-settings.php:2158
927
  msgid "A product you are waiting for is back in stock"
928
  msgstr ""
929
 
930
- #: includes/class-kadence-woomail-settings.php:2160
931
- #: includes/class-kadence-woomail-settings.php:2187
932
  msgid "New customer order"
933
  msgstr ""
934
 
935
- #: includes/class-kadence-woomail-settings.php:2161
936
- #: includes/class-kadence-woomail-settings.php:2202
937
  msgid "[{site_title}] New customer order ({order_number}) - {order_date}"
938
  msgstr ""
939
 
940
- #: includes/class-kadence-woomail-settings.php:2162
941
  msgid ""
942
  "You have received a subscription renewal order from {customer_full_name}. "
943
  "Their order is as follows:"
944
  msgstr ""
945
 
946
- #: includes/class-kadence-woomail-settings.php:2163
947
- #: includes/class-kadence-woomail-settings.php:2189
948
- #: includes/class-kadence-woomail-settings.php:2194
949
  msgid "Thank you for your order"
950
  msgstr ""
951
 
952
- #: includes/class-kadence-woomail-settings.php:2164
953
- #: includes/class-kadence-woomail-settings.php:2204
954
- #: includes/class-kadence-woomail-settings.php:2210
955
  msgid "Your {site_title} order receipt from {order_date}"
956
  msgstr ""
957
 
958
- #: includes/class-kadence-woomail-settings.php:2165
959
  msgid ""
960
  "Your subscription renewal order has been received and is now being "
961
  "processed. Your order details are shown below for your reference:"
962
  msgstr ""
963
 
964
- #: includes/class-kadence-woomail-settings.php:2166
965
- #: includes/class-kadence-woomail-settings.php:2169
966
- #: includes/class-kadence-woomail-settings.php:2190
967
  msgid "Your order is complete"
968
  msgstr ""
969
 
970
- #: includes/class-kadence-woomail-settings.php:2167
971
- #: includes/class-kadence-woomail-settings.php:2170
972
- #: includes/class-kadence-woomail-settings.php:2205
973
  msgid "Your {site_title} order from {order_date} is complete"
974
  msgstr ""
975
 
976
- #: includes/class-kadence-woomail-settings.php:2168
977
  msgid ""
978
  "Hi there. Your subscription renewal order with {site_title} has been "
979
  "completed. Your order details are shown below for your reference:"
980
  msgstr ""
981
 
982
- #: includes/class-kadence-woomail-settings.php:2171
983
  msgid ""
984
  "Hi there. You have successfully changed your subscription items on "
985
  "{site_title}. Your new order and subscription details are shown below for "
986
  "your reference:"
987
  msgstr ""
988
 
989
- #: includes/class-kadence-woomail-settings.php:2173
990
- #: includes/class-kadence-woomail-settings.php:2174
991
- #: includes/class-kadence-woomail-settings.php:2195
992
- #: includes/class-kadence-woomail-settings.php:2212
993
  msgid "Invoice for order {order_number}"
994
  msgstr ""
995
 
996
- #: includes/class-kadence-woomail-settings.php:2175
997
  msgid ""
998
  "An invoice has been created for you to renew your subscription with "
999
  "{site_title}. To pay for this invoice please use the following link: "
1000
  "{invoice_pay_link}"
1001
  msgstr ""
1002
 
1003
- #: includes/class-kadence-woomail-settings.php:2176
1004
  msgid ""
1005
  "The automatic payment to renew your subscription with {site_title} has "
1006
  "failed. To reactivate the subscription, please login and pay for the renewal "
1007
  "from your account page: {invoice_pay_link}"
1008
  msgstr ""
1009
 
1010
- #: includes/class-kadence-woomail-settings.php:2179
1011
  msgid "Subscription Cancelled"
1012
  msgstr ""
1013
 
1014
- #: includes/class-kadence-woomail-settings.php:2180
1015
  msgid "[{site_title}] Subscription Cancelled"
1016
  msgstr ""
1017
 
1018
- #: includes/class-kadence-woomail-settings.php:2181
1019
  msgid ""
1020
  "A subscription belonging to {customer_full_name} has been cancelled. Their "
1021
  "subscription's details are as follows:"
1022
  msgstr ""
1023
 
1024
- #: includes/class-kadence-woomail-settings.php:2184
1025
  msgid "Automatic payment failed for order {order_number}"
1026
  msgstr ""
1027
 
1028
- #: includes/class-kadence-woomail-settings.php:2185
1029
  msgid "Automatic payment failed for {order_number}, we will retry {retry_time}"
1030
  msgstr ""
1031
 
1032
- #: includes/class-kadence-woomail-settings.php:2188
1033
  msgid "Cancelled order"
1034
  msgstr ""
1035
 
1036
- #: includes/class-kadence-woomail-settings.php:2191
1037
  msgid "Order {order_number} details"
1038
  msgstr ""
1039
 
1040
- #: includes/class-kadence-woomail-settings.php:2192
1041
  msgid "Your order has been partially refunded"
1042
  msgstr ""
1043
 
1044
- #: includes/class-kadence-woomail-settings.php:2196
1045
  msgid "Your order details"
1046
  msgstr ""
1047
 
1048
- #: includes/class-kadence-woomail-settings.php:2197
1049
  msgid "Failed order"
1050
  msgstr ""
1051
 
1052
- #: includes/class-kadence-woomail-settings.php:2198
1053
  msgid "Welcome to {site_title}"
1054
  msgstr ""
1055
 
1056
- #: includes/class-kadence-woomail-settings.php:2199
1057
  msgid "A note has been added to your order"
1058
  msgstr ""
1059
 
1060
- #: includes/class-kadence-woomail-settings.php:2200
1061
  msgid "Password reset instructions"
1062
  msgstr ""
1063
 
1064
- #: includes/class-kadence-woomail-settings.php:2203
1065
  msgid "[{site_title}] Cancelled order ({order_number})"
1066
  msgstr ""
1067
 
1068
- #: includes/class-kadence-woomail-settings.php:2207
1069
  msgid "Your {site_title} order from {order_date} has been refunded"
1070
  msgstr ""
1071
 
1072
- #: includes/class-kadence-woomail-settings.php:2208
1073
  msgid "Your {site_title} order from {order_date} has been partially refunded"
1074
  msgstr ""
1075
 
1076
- #: includes/class-kadence-woomail-settings.php:2213
1077
  msgid "Your {site_title} order from {order_date}"
1078
  msgstr ""
1079
 
1080
- #: includes/class-kadence-woomail-settings.php:2215
1081
  msgid "[{site_title}] Failed order ({order_number})"
1082
  msgstr ""
1083
 
1084
- #: includes/class-kadence-woomail-settings.php:2216
1085
  msgid "Your account on {site_title}"
1086
  msgstr ""
1087
 
1088
- #: includes/class-kadence-woomail-settings.php:2217
1089
  msgid "Note added to your {site_title} order from {order_date}"
1090
  msgstr ""
1091
 
1092
- #: includes/class-kadence-woomail-settings.php:2218
1093
  msgid "Password reset for {site_title}"
1094
  msgstr ""
1095
 
1096
- #: includes/class-kadence-woomail-settings.php:2220
1097
  msgid ""
1098
  "You have received an order from {customer_full_name}. The order is as "
1099
  "follows:"
1100
  msgstr ""
1101
 
1102
- #: includes/class-kadence-woomail-settings.php:2221
1103
  msgid ""
1104
  "The order {order_number} from {customer_full_name} has been cancelled. The "
1105
  "order was as follows:"
1106
  msgstr ""
1107
 
1108
- #: includes/class-kadence-woomail-settings.php:2222
1109
  msgid ""
1110
  "Your order has been received and is now being processed. Your order details "
1111
  "are shown below for your reference:"
1112
  msgstr ""
1113
 
1114
- #: includes/class-kadence-woomail-settings.php:2223
1115
  msgid ""
1116
  "Hi there. Your recent order on {site_title} has been completed. Your order "
1117
  "details are shown below for your reference:"
1118
  msgstr ""
1119
 
1120
- #: includes/class-kadence-woomail-settings.php:2225
1121
  msgid "Hi there. Your order on {site_title} has been refunded."
1122
  msgstr ""
1123
 
1124
- #: includes/class-kadence-woomail-settings.php:2226
1125
  msgid "Hi there. Your order on {site_title} has been partially refunded."
1126
  msgstr ""
1127
 
1128
- #: includes/class-kadence-woomail-settings.php:2228
1129
  msgid ""
1130
  "Your order is on-hold until we confirm payment has been received. Your order "
1131
  "details are shown below for your reference:"
1132
  msgstr ""
1133
 
1134
- #: includes/class-kadence-woomail-settings.php:2230
1135
  msgid "An order has been created for you on {site_title}. {invoice_pay_link}"
1136
  msgstr ""
1137
 
1138
- #: includes/class-kadence-woomail-settings.php:2232
1139
  msgid ""
1140
  "Payment for order {order_number} from {customer_full_name} has failed. The "
1141
  "order was as follows:"
1142
  msgstr ""
1143
 
1144
- #: includes/class-kadence-woomail-settings.php:2233
1145
  msgid ""
1146
  "Thanks for creating an account on {site_title}. Your username is "
1147
  "{customer_username}"
1148
  msgstr ""
1149
 
1150
- #: includes/class-kadence-woomail-settings.php:2234
1151
  msgid "Hello, a note has just been added to your order:"
1152
  msgstr ""
1153
 
1154
- #: includes/class-kadence-woomail-settings.php:2235
1155
  msgid ""
1156
  "Someone requested that the password be reset for the following account:\n"
1157
  "\n"
@@ -1162,66 +1174,106 @@ msgid ""
1162
  "To reset your password, visit the following address:"
1163
  msgstr ""
1164
 
1165
- #: includes/class-kadence-woomail-settings.php:2372
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1166
  msgid "none"
1167
  msgstr ""
1168
 
1169
- #: includes/class-kadence-woomail-settings.php:2373
1170
  msgid "hidden"
1171
  msgstr ""
1172
 
1173
- #: includes/class-kadence-woomail-settings.php:2374
1174
  msgid "dotted"
1175
  msgstr ""
1176
 
1177
- #: includes/class-kadence-woomail-settings.php:2375
1178
  msgid "dashed"
1179
  msgstr ""
1180
 
1181
- #: includes/class-kadence-woomail-settings.php:2376
1182
  msgid "solid"
1183
  msgstr ""
1184
 
1185
- #: includes/class-kadence-woomail-settings.php:2377
1186
  msgid "double"
1187
  msgstr ""
1188
 
1189
- #: includes/class-kadence-woomail-settings.php:2378
1190
  msgid "groove"
1191
  msgstr ""
1192
 
1193
- #: includes/class-kadence-woomail-settings.php:2379
1194
  msgid "ridge"
1195
  msgstr ""
1196
 
1197
- #: includes/class-kadence-woomail-settings.php:2380
1198
  msgid "inset"
1199
  msgstr ""
1200
 
1201
- #: includes/class-kadence-woomail-settings.php:2381
1202
  msgid "outset"
1203
  msgstr ""
1204
 
1205
- #: includes/class-kadence-woomail-settings.php:2393
1206
- #: includes/class-kadence-woomail-settings.php:2401
1207
  msgid "Left"
1208
  msgstr ""
1209
 
1210
- #: includes/class-kadence-woomail-settings.php:2394
1211
- #: includes/class-kadence-woomail-settings.php:2402
1212
  msgid "Center"
1213
  msgstr ""
1214
 
1215
- #: includes/class-kadence-woomail-settings.php:2395
1216
- #: includes/class-kadence-woomail-settings.php:2403
1217
  msgid "Right"
1218
  msgstr ""
1219
 
1220
- #: includes/class-kadence-woomail-settings.php:2396
1221
  msgid "Justify"
1222
  msgstr ""
1223
 
1224
- #: includes/class-kadence-woomail-settings.php:2416
1225
  msgid "Mockup Order"
1226
  msgstr ""
1227
 
@@ -1245,26 +1297,31 @@ msgid ""
1245
  "Email Designer</a> plugin by <a href=\"%s\">Kadence Themes</a>."
1246
  msgstr ""
1247
 
1248
- #: kadence-woocommerce-email-designer.php:146
1249
  msgid ""
1250
  "Kadence Woocommerce Email Designer requires WooCommerce to be active to work"
1251
  msgstr ""
1252
 
1253
- #: kadence-woocommerce-email-designer.php:255
1254
  msgid "Pay for this order"
1255
  msgstr ""
1256
 
1257
- #: kadence-woocommerce-email-designer.php:263
1258
- #: kadence-woocommerce-email-designer.php:267
1259
  msgid "Pay Now &raquo;"
1260
  msgstr ""
1261
 
1262
- #: kadence-woocommerce-email-designer.php:437
1263
- #: kadence-woocommerce-email-designer.php:438
 
 
 
 
 
1264
  msgid "Email Customizer"
1265
  msgstr ""
1266
 
1267
- #: kadence-woocommerce-email-designer.php:452
1268
  msgid "Open Email Designer"
1269
  msgstr ""
1270
 
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: Kadence Woocommerce Email Designer\n"
5
+ "POT-Creation-Date: 2019-04-12 14:01-0600\n"
6
  "PO-Revision-Date: 2015-05-08 13:15-0700\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
108
  msgstr ""
109
 
110
  #: includes/class-customizer-repeater-control.php:346
111
+ #: includes/class-kadence-woomail-settings.php:1429
112
+ #: includes/class-kadence-woomail-settings.php:1470
113
  msgid "None"
114
  msgstr ""
115
 
129
  msgid "Gray"
130
  msgstr ""
131
 
132
+ #: includes/class-kadence-woomail-customizer.php:144
133
  msgid "Save"
134
  msgstr ""
135
 
136
+ #: includes/class-kadence-woomail-customizer.php:146
137
  msgid "Saved"
138
  msgstr ""
139
 
140
+ #: includes/class-kadence-woomail-customizer.php:199
141
  msgid "WooCommerce Emails"
142
  msgstr ""
143
 
144
+ #: includes/class-kadence-woomail-customizer.php:306
145
  msgid "Reset"
146
  msgstr ""
147
 
148
+ #: includes/class-kadence-woomail-customizer.php:307
149
  msgid "Woocommerce Emails"
150
  msgstr ""
151
 
152
+ #: includes/class-kadence-woomail-customizer.php:308
153
  msgid "Are you sure you want to send an email?"
154
  msgstr ""
155
 
156
+ #: includes/class-kadence-woomail-customizer.php:309
157
  msgid "Email Sent!"
158
  msgstr ""
159
 
160
+ #: includes/class-kadence-woomail-customizer.php:310
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:311
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:312
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:312
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:317
183
  msgid "Please choose a file to import."
184
  msgstr ""
185
 
186
+ #: includes/class-kadence-woomail-customizer.php:318
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 "
216
  msgid "Error importing settings! The template you selected is not valid."
217
  msgstr ""
218
 
219
+ #: includes/class-kadence-woomail-preview.php:334
220
  msgid "Hello! This is an example note"
221
  msgstr ""
222
 
223
+ #: includes/class-kadence-woomail-preview.php:551
224
  msgid ""
225
  "This email type can not be previewed please try a differnet order or email "
226
  "type."
227
  msgstr ""
228
 
229
+ #: includes/class-kadence-woomail-preview.php:553
230
  msgid ""
231
  "This email type requires that an order containing a subscription be selected "
232
  "as the preview order."
233
  msgstr ""
234
 
235
+ #: includes/class-kadence-woomail-preview.php:555
236
+ msgid ""
237
+ "This email type requires that an order containing a vender purchase be "
238
+ "selected as the preview order."
239
+ msgstr ""
240
+
241
+ #: includes/class-kadence-woomail-preview.php:557
242
+ msgid ""
243
+ "This email type requires that an order containing a user who has an active "
244
+ "membership be selected as the preview order."
245
+ msgstr ""
246
+
247
+ #: includes/class-kadence-woomail-preview.php:621
248
  msgid ""
249
  "An error occurred trying to load this email type. Make sure this email type "
250
  "is enabled or please try another type."
251
  msgstr ""
252
 
253
+ #: includes/class-kadence-woomail-settings.php:125
254
  msgid "Header"
255
  msgstr ""
256
 
257
+ #: includes/class-kadence-woomail-settings.php:131
258
  msgid "Content"
259
  msgstr ""
260
 
261
+ #: includes/class-kadence-woomail-settings.php:137
262
  msgid "Footer"
263
  msgstr ""
264
 
265
+ #: includes/class-kadence-woomail-settings.php:159
266
  msgid "Prebuilt Templates"
267
  msgstr ""
268
 
269
+ #: includes/class-kadence-woomail-settings.php:163
270
  msgid "Email Type and Text"
271
  msgstr ""
272
 
273
+ #: includes/class-kadence-woomail-settings.php:168
274
  msgid "Container"
275
  msgstr ""
276
 
277
+ #: includes/class-kadence-woomail-settings.php:174
278
  msgid "Header Style"
279
  msgstr ""
280
 
281
+ #: includes/class-kadence-woomail-settings.php:181
282
+ #: includes/class-kadence-woomail-settings.php:281
283
  msgid "Header Image"
284
  msgstr ""
285
 
286
+ #: includes/class-kadence-woomail-settings.php:188
287
  msgid "Heading"
288
  msgstr ""
289
 
290
+ #: includes/class-kadence-woomail-settings.php:195
291
  msgid "Footer Style"
292
  msgstr ""
293
 
294
+ #: includes/class-kadence-woomail-settings.php:201
295
  msgid "Footer Social"
296
  msgstr ""
297
 
298
+ #: includes/class-kadence-woomail-settings.php:207
299
  msgid "Footer Credit Content"
300
  msgstr ""
301
 
302
+ #: includes/class-kadence-woomail-settings.php:214
303
  msgid "Content Container"
304
  msgstr ""
305
 
306
+ #: includes/class-kadence-woomail-settings.php:219
307
  msgid "Content Headings Style"
308
  msgstr ""
309
 
310
+ #: includes/class-kadence-woomail-settings.php:225
311
  msgid "Content Text Style"
312
  msgstr ""
313
 
314
+ #: includes/class-kadence-woomail-settings.php:231
315
  msgid "Order Items"
316
  msgstr ""
317
 
318
+ #: includes/class-kadence-woomail-settings.php:237
319
  msgid "Addresses"
320
  msgstr ""
321
 
322
+ #: includes/class-kadence-woomail-settings.php:243
323
  msgid "Text Copy"
324
  msgstr ""
325
 
326
+ #: includes/class-kadence-woomail-settings.php:249
327
  msgid "Custom Styles"
328
  msgstr ""
329
 
330
+ #: includes/class-kadence-woomail-settings.php:254
331
+ #: includes/class-kadence-woomail-settings.php:2150
332
  msgid "Import Export"
333
  msgstr ""
334
 
335
+ #: includes/class-kadence-woomail-settings.php:259
336
  msgid "Send Preview Email"
337
  msgstr ""
338
 
339
+ #: includes/class-kadence-woomail-settings.php:294
340
  msgid "Container Background color"
341
  msgstr ""
342
 
343
+ #: includes/class-kadence-woomail-settings.php:307
344
  msgid "Content Text color"
345
  msgstr ""
346
 
347
+ #: includes/class-kadence-woomail-settings.php:321
348
  msgid "Content Background color"
349
  msgstr ""
350
 
351
+ #: includes/class-kadence-woomail-settings.php:335
352
  msgid "Footer text"
353
  msgstr ""
354
 
355
+ #: includes/class-kadence-woomail-settings.php:350
356
  msgid "Recipient(s)"
357
  msgstr ""
358
 
359
+ #: includes/class-kadence-woomail-settings.php:355
360
  #, php-format
361
  msgid "Enter recipients (comma separated) for this email. Defaults to %s."
362
  msgstr ""
363
 
364
+ #: includes/class-kadence-woomail-settings.php:366
365
  msgid "Full refund subject"
366
  msgstr ""
367
 
368
+ #: includes/class-kadence-woomail-settings.php:382
369
  msgid "Partial refund subject"
370
  msgstr ""
371
 
372
+ #: includes/class-kadence-woomail-settings.php:398
373
  msgid "Full refund Heading Text"
374
  msgstr ""
375
 
376
+ #: includes/class-kadence-woomail-settings.php:418
377
  msgid "Partial refund Heading Text"
378
  msgstr ""
379
 
380
+ #: includes/class-kadence-woomail-settings.php:435
381
  msgid "Subject Text"
382
  msgstr ""
383
 
384
+ #: includes/class-kadence-woomail-settings.php:451
385
  msgid "Subject (paid) Text"
386
  msgstr ""
387
 
388
+ #: includes/class-kadence-woomail-settings.php:468
389
  msgid "Heading Text"
390
  msgstr ""
391
 
392
+ #: includes/class-kadence-woomail-settings.php:488
393
  msgid "Heading (paid) Text"
394
  msgstr ""
395
 
396
+ #: includes/class-kadence-woomail-settings.php:523
397
  msgid "Template_load"
398
  msgstr ""
399
 
400
+ #: includes/class-kadence-woomail-settings.php:532
401
  msgid "Preview Order"
402
  msgstr ""
403
 
404
+ #: includes/class-kadence-woomail-settings.php:542
405
  msgid "Email Type"
406
  msgstr ""
407
 
408
+ #: includes/class-kadence-woomail-settings.php:552
409
  msgid "Available placeholders"
410
  msgstr ""
411
 
412
+ #: includes/class-kadence-woomail-settings.php:565
413
  msgid "Subtitle Text"
414
  msgstr ""
415
 
416
+ #: includes/class-kadence-woomail-settings.php:583
417
  msgid "Switch off for Partial Refund Preview"
418
  msgstr ""
419
 
420
+ #: includes/class-kadence-woomail-settings.php:598
421
  msgid "Body Full Refund Text"
422
  msgstr ""
423
 
424
+ #: includes/class-kadence-woomail-settings.php:612
425
  msgid "Body Partial Refund Text"
426
  msgstr ""
427
 
428
+ #: includes/class-kadence-woomail-settings.php:627
429
  msgid "Switch off for unpaid preview"
430
  msgstr ""
431
 
432
+ #: includes/class-kadence-woomail-settings.php:642
433
  msgid "Body Invoice Paid Text"
434
  msgstr ""
435
 
436
+ #: includes/class-kadence-woomail-settings.php:656
437
+ #: includes/class-kadence-woomail-settings.php:684
438
  msgid "Body Invoice Pending Payment Text"
439
  msgstr ""
440
 
441
+ #: includes/class-kadence-woomail-settings.php:670
442
  msgid "Body Invoice Failed Text"
443
  msgstr ""
444
 
445
+ #: includes/class-kadence-woomail-settings.php:698
446
  msgid "Body Text"
447
  msgstr ""
448
 
449
+ #: includes/class-kadence-woomail-settings.php:716
450
  msgid "Content Width"
451
  msgstr ""
452
 
453
+ #: includes/class-kadence-woomail-settings.php:736
454
  msgid "Border radius"
455
  msgstr ""
456
 
457
+ #: includes/class-kadence-woomail-settings.php:752
458
+ #: includes/class-kadence-woomail-settings.php:1677
459
  msgid "Border Width"
460
  msgstr ""
461
 
462
+ #: includes/class-kadence-woomail-settings.php:768
463
  msgid "Border color"
464
  msgstr ""
465
 
466
+ #: includes/class-kadence-woomail-settings.php:779
467
  msgid "Shadow"
468
  msgstr ""
469
 
470
+ #: includes/class-kadence-woomail-settings.php:782
471
  msgid "Warning: most email clients do not yet support this"
472
  msgstr ""
473
 
474
+ #: includes/class-kadence-woomail-settings.php:796
475
  msgid "Container Top Padding"
476
  msgstr ""
477
 
478
+ #: includes/class-kadence-woomail-settings.php:812
479
  msgid "Container Botom Padding"
480
  msgstr ""
481
 
482
+ #: includes/class-kadence-woomail-settings.php:829
483
  msgid "Image Align"
484
  msgstr ""
485
 
486
+ #: includes/class-kadence-woomail-settings.php:841
487
  msgid "Image Max Width"
488
  msgstr ""
489
 
490
+ #: includes/class-kadence-woomail-settings.php:856
491
+ #: includes/class-kadence-woomail-settings.php:883
492
  msgid "Background color"
493
  msgstr ""
494
 
495
+ #: includes/class-kadence-woomail-settings.php:867
496
  msgid "Padding top/bottom"
497
  msgstr ""
498
 
499
+ #: includes/class-kadence-woomail-settings.php:894
500
  msgid "Text align"
501
  msgstr ""
502
 
503
+ #: includes/class-kadence-woomail-settings.php:908
504
+ #: includes/class-kadence-woomail-settings.php:1153
505
  msgid "Padding Top"
506
  msgstr ""
507
 
508
+ #: includes/class-kadence-woomail-settings.php:924
509
+ #: includes/class-kadence-woomail-settings.php:1169
510
  msgid "Padding Bottom"
511
  msgstr ""
512
 
513
+ #: includes/class-kadence-woomail-settings.php:941
514
  msgid "Padding left/right"
515
  msgstr ""
516
 
517
+ #: includes/class-kadence-woomail-settings.php:957
518
  msgid "Heading Font size"
519
  msgstr ""
520
 
521
+ #: includes/class-kadence-woomail-settings.php:973
522
  msgid "Heading Line Height"
523
  msgstr ""
524
 
525
+ #: includes/class-kadence-woomail-settings.php:989
526
  msgid "Heading Font family"
527
  msgstr ""
528
 
529
+ #: includes/class-kadence-woomail-settings.php:1001
530
  msgid "Heading Font Style"
531
  msgstr ""
532
 
533
+ #: includes/class-kadence-woomail-settings.php:1007
534
+ #: includes/class-kadence-woomail-settings.php:1114
535
+ #: includes/class-kadence-woomail-settings.php:1396
536
+ #: includes/class-kadence-woomail-settings.php:1585
537
+ #: includes/class-kadence-woomail-settings.php:1627
538
+ #: includes/class-kadence-woomail-settings.php:1734
539
  msgid "Normal"
540
  msgstr ""
541
 
542
+ #: includes/class-kadence-woomail-settings.php:1008
543
+ #: includes/class-kadence-woomail-settings.php:1115
544
+ #: includes/class-kadence-woomail-settings.php:1397
545
+ #: includes/class-kadence-woomail-settings.php:1586
546
  msgid "Italic"
547
  msgstr ""
548
 
549
+ #: includes/class-kadence-woomail-settings.php:1016
550
  msgid "Heading Font weight"
551
  msgstr ""
552
 
553
+ #: includes/class-kadence-woomail-settings.php:1032
554
  msgid "Heading Text color"
555
  msgstr ""
556
 
557
+ #: includes/class-kadence-woomail-settings.php:1044
558
  msgid "Subtitle Settings"
559
  msgstr ""
560
 
561
+ #: includes/class-kadence-woomail-settings.php:1051
562
  msgid "Subtitle Placement"
563
  msgstr ""
564
 
565
+ #: includes/class-kadence-woomail-settings.php:1057
566
  msgid "Below Heading"
567
  msgstr ""
568
 
569
+ #: includes/class-kadence-woomail-settings.php:1058
570
  msgid "Above Heading"
571
  msgstr ""
572
 
573
+ #: includes/class-kadence-woomail-settings.php:1064
574
  msgid "Subtitle Font Size"
575
  msgstr ""
576
 
577
+ #: includes/class-kadence-woomail-settings.php:1080
578
  msgid "Subtitle Line Height"
579
  msgstr ""
580
 
581
+ #: includes/class-kadence-woomail-settings.php:1096
582
  msgid "Subtitle Font Family"
583
  msgstr ""
584
 
585
+ #: includes/class-kadence-woomail-settings.php:1108
586
  msgid "Subtitle Font Style"
587
  msgstr ""
588
 
589
+ #: includes/class-kadence-woomail-settings.php:1124
590
  msgid "Subtitle Font weight"
591
  msgstr ""
592
 
593
+ #: includes/class-kadence-woomail-settings.php:1141
594
  msgid "Subtitle Text color"
595
  msgstr ""
596
 
597
+ #: includes/class-kadence-woomail-settings.php:1185
598
  msgid "Padding Left/Right"
599
  msgstr ""
600
 
601
+ #: includes/class-kadence-woomail-settings.php:1203
602
+ #: includes/class-kadence-woomail-settings.php:2051
603
  msgid "Font Size"
604
  msgstr ""
605
 
606
+ #: includes/class-kadence-woomail-settings.php:1220
607
  msgid "Line Height"
608
  msgstr ""
609
 
610
+ #: includes/class-kadence-woomail-settings.php:1237
611
+ #: includes/class-kadence-woomail-settings.php:2067
612
  msgid "Font Family"
613
  msgstr ""
614
 
615
+ #: includes/class-kadence-woomail-settings.php:1251
616
+ #: includes/class-kadence-woomail-settings.php:2080
617
  msgid "Font weight"
618
  msgstr ""
619
 
620
+ #: includes/class-kadence-woomail-settings.php:1267
621
  msgid "Link Color"
622
  msgstr ""
623
 
624
+ #: includes/class-kadence-woomail-settings.php:1281
625
  msgid "H2 Font Size"
626
  msgstr ""
627
 
628
+ #: includes/class-kadence-woomail-settings.php:1297
629
  msgid "H2 Line Height"
630
  msgstr ""
631
 
632
+ #: includes/class-kadence-woomail-settings.php:1313
633
  msgid "H2 Padding Top"
634
  msgstr ""
635
 
636
+ #: includes/class-kadence-woomail-settings.php:1329
637
  msgid "H2 Padding Bottom"
638
  msgstr ""
639
 
640
+ #: includes/class-kadence-woomail-settings.php:1345
641
  msgid "H2 Margin Top"
642
  msgstr ""
643
 
644
+ #: includes/class-kadence-woomail-settings.php:1361
645
  msgid "H2 Margin Bottom"
646
  msgstr ""
647
 
648
+ #: includes/class-kadence-woomail-settings.php:1377
649
  msgid "H2 Font Family"
650
  msgstr ""
651
 
652
+ #: includes/class-kadence-woomail-settings.php:1390
653
  msgid "H2 Font Style"
654
  msgstr ""
655
 
656
+ #: includes/class-kadence-woomail-settings.php:1406
657
  msgid "H2 Font weight"
658
  msgstr ""
659
 
660
+ #: includes/class-kadence-woomail-settings.php:1423
661
  msgid "H2 Text Transform"
662
  msgstr ""
663
 
664
+ #: includes/class-kadence-woomail-settings.php:1430
665
  msgid "Uppercase"
666
  msgstr ""
667
 
668
+ #: includes/class-kadence-woomail-settings.php:1431
669
  msgid "Lowercase"
670
  msgstr ""
671
 
672
+ #: includes/class-kadence-woomail-settings.php:1432
673
  msgid "Capitalize"
674
  msgstr ""
675
 
676
+ #: includes/class-kadence-woomail-settings.php:1440
677
  msgid "H2 Color"
678
  msgstr ""
679
 
680
+ #: includes/class-kadence-woomail-settings.php:1452
681
  msgid "H2 Text Align"
682
  msgstr ""
683
 
684
+ #: includes/class-kadence-woomail-settings.php:1464
685
  msgid "H2 Separator"
686
  msgstr ""
687
 
688
+ #: includes/class-kadence-woomail-settings.php:1471
689
  msgid "Separator below"
690
  msgstr ""
691
 
692
+ #: includes/class-kadence-woomail-settings.php:1472
693
  msgid "Separator above"
694
  msgstr ""
695
 
696
+ #: includes/class-kadence-woomail-settings.php:1477
697
  msgid "H2 Separator height"
698
  msgstr ""
699
 
700
+ #: includes/class-kadence-woomail-settings.php:1495
701
  msgid "H2 Separator Style"
702
  msgstr ""
703
 
704
+ #: includes/class-kadence-woomail-settings.php:1501
705
+ #: includes/class-kadence-woomail-settings.php:1713
706
+ #: includes/class-kadence-woomail-settings.php:1784
707
+ #: includes/class-kadence-woomail-settings.php:2025
708
  msgid "Solid"
709
  msgstr ""
710
 
711
+ #: includes/class-kadence-woomail-settings.php:1502
712
+ #: includes/class-kadence-woomail-settings.php:1714
713
+ #: includes/class-kadence-woomail-settings.php:1785
714
+ #: includes/class-kadence-woomail-settings.php:2026
715
  msgid "Double"
716
  msgstr ""
717
 
718
+ #: includes/class-kadence-woomail-settings.php:1503
719
+ #: includes/class-kadence-woomail-settings.php:1715
720
+ #: includes/class-kadence-woomail-settings.php:1786
721
+ #: includes/class-kadence-woomail-settings.php:2027
722
  msgid "Groove"
723
  msgstr ""
724
 
725
+ #: includes/class-kadence-woomail-settings.php:1504
726
+ #: includes/class-kadence-woomail-settings.php:1716
727
+ #: includes/class-kadence-woomail-settings.php:1787
728
+ #: includes/class-kadence-woomail-settings.php:2028
729
  msgid "Dotted"
730
  msgstr ""
731
 
732
+ #: includes/class-kadence-woomail-settings.php:1505
733
+ #: includes/class-kadence-woomail-settings.php:1717
734
+ #: includes/class-kadence-woomail-settings.php:1788
735
+ #: includes/class-kadence-woomail-settings.php:2029
736
  msgid "Dashed"
737
  msgstr ""
738
 
739
+ #: includes/class-kadence-woomail-settings.php:1506
740
+ #: includes/class-kadence-woomail-settings.php:1718
741
+ #: includes/class-kadence-woomail-settings.php:1789
742
+ #: includes/class-kadence-woomail-settings.php:2030
743
  msgid "Ridge"
744
  msgstr ""
745
 
746
+ #: includes/class-kadence-woomail-settings.php:1515
747
  msgid "H2 Separator Color"
748
  msgstr ""
749
 
750
+ #: includes/class-kadence-woomail-settings.php:1528
751
  msgid "H3 Settings"
752
  msgstr ""
753
 
754
+ #: includes/class-kadence-woomail-settings.php:1535
755
  msgid "H3 Font Size"
756
  msgstr ""
757
 
758
+ #: includes/class-kadence-woomail-settings.php:1551
759
  msgid "H3 Line Height"
760
  msgstr ""
761
 
762
+ #: includes/class-kadence-woomail-settings.php:1567
763
  msgid "H3 Font Family"
764
  msgstr ""
765
 
766
+ #: includes/class-kadence-woomail-settings.php:1579
767
  msgid "H3 Font Style"
768
  msgstr ""
769
 
770
+ #: includes/class-kadence-woomail-settings.php:1594
771
  msgid "H3 Font weight"
772
  msgstr ""
773
 
774
+ #: includes/class-kadence-woomail-settings.php:1610
775
  msgid "H3 Color"
776
  msgstr ""
777
 
778
+ #: includes/class-kadence-woomail-settings.php:1621
779
  msgid "Order Table Style"
780
  msgstr ""
781
 
782
+ #: includes/class-kadence-woomail-settings.php:1628
783
  msgid "Light"
784
  msgstr ""
785
 
786
+ #: includes/class-kadence-woomail-settings.php:1633
787
  msgid "Product Image Option"
788
  msgstr ""
789
 
790
+ #: includes/class-kadence-woomail-settings.php:1639
791
  msgid "Do not show"
792
  msgstr ""
793
 
794
+ #: includes/class-kadence-woomail-settings.php:1640
795
  msgid "Show"
796
  msgstr ""
797
 
798
+ #: includes/class-kadence-woomail-settings.php:1645
799
  msgid "Order Table Background color"
800
  msgstr ""
801
 
802
+ #: includes/class-kadence-woomail-settings.php:1657
803
  msgid "Padding"
804
  msgstr ""
805
 
806
+ #: includes/class-kadence-woomail-settings.php:1696
807
  msgid "Border Color"
808
  msgstr ""
809
 
810
+ #: includes/class-kadence-woomail-settings.php:1707
811
  msgid "Border Style"
812
  msgstr ""
813
 
814
+ #: includes/class-kadence-woomail-settings.php:1728
815
  msgid "Order Table Heading Style"
816
  msgstr ""
817
 
818
+ #: includes/class-kadence-woomail-settings.php:1735
819
  msgid "Split"
820
  msgstr ""
821
 
822
+ #: includes/class-kadence-woomail-settings.php:1740
823
  msgid "Address Box Background color"
824
  msgstr ""
825
 
826
+ #: includes/class-kadence-woomail-settings.php:1751
827
  msgid "Address Box Border Width"
828
  msgstr ""
829
 
830
+ #: includes/class-kadence-woomail-settings.php:1767
831
  msgid "Address Box Border Color"
832
  msgstr ""
833
 
834
+ #: includes/class-kadence-woomail-settings.php:1778
835
  msgid "Address Box Border Style"
836
  msgstr ""
837
 
838
+ #: includes/class-kadence-woomail-settings.php:1797
839
  msgid "Address Box Text Color"
840
  msgstr ""
841
 
842
+ #: includes/class-kadence-woomail-settings.php:1808
843
  msgid "Address Box Text Align"
844
  msgstr ""
845
 
846
+ #: includes/class-kadence-woomail-settings.php:1820
847
  msgid "Footer Background Placement"
848
  msgstr ""
849
 
850
+ #: includes/class-kadence-woomail-settings.php:1826
851
  msgid "Inside Body Container"
852
  msgstr ""
853
 
854
+ #: includes/class-kadence-woomail-settings.php:1827
855
  msgid "Outside Body Container"
856
  msgstr ""
857
 
858
+ #: includes/class-kadence-woomail-settings.php:1832
859
  msgid "Footer Background Color"
860
  msgstr ""
861
 
862
+ #: includes/class-kadence-woomail-settings.php:1843
863
+ #: includes/class-kadence-woomail-settings.php:1960
864
+ #: includes/class-kadence-woomail-settings.php:2108
865
  msgid "Top Padding"
866
  msgstr ""
867
 
868
+ #: includes/class-kadence-woomail-settings.php:1859
869
+ #: includes/class-kadence-woomail-settings.php:1976
870
+ #: includes/class-kadence-woomail-settings.php:2124
871
  msgid "Bottom Padding"
872
  msgstr ""
873
 
874
+ #: includes/class-kadence-woomail-settings.php:1875
875
  msgid "Left/Right Padding"
876
  msgstr ""
877
 
878
+ #: includes/class-kadence-woomail-settings.php:1891
879
  msgid "Footer Social Options"
880
  msgstr ""
881
 
882
+ #: includes/class-kadence-woomail-settings.php:1905
883
  msgid "Footer Social Title Color"
884
  msgstr ""
885
 
886
+ #: includes/class-kadence-woomail-settings.php:1916
887
  msgid "Footer Social Title Font Size"
888
  msgstr ""
889
 
890
+ #: includes/class-kadence-woomail-settings.php:1932
891
  msgid "Footer Social Title Font Family"
892
  msgstr ""
893
 
894
+ #: includes/class-kadence-woomail-settings.php:1944
895
  msgid "Footer Social Title Font Weight"
896
  msgstr ""
897
 
898
+ #: includes/class-kadence-woomail-settings.php:1992
899
  msgid "Footer Social Bottom Border Width"
900
  msgstr ""
901
 
902
+ #: includes/class-kadence-woomail-settings.php:2008
903
  msgid "Footer Social Bottom Border Color"
904
  msgstr ""
905
 
906
+ #: includes/class-kadence-woomail-settings.php:2019
907
  msgid "Footer Social Bottom Border Style"
908
  msgstr ""
909
 
910
+ #: includes/class-kadence-woomail-settings.php:2038
911
  msgid "Text Align"
912
  msgstr ""
913
 
914
+ #: includes/class-kadence-woomail-settings.php:2097
915
  msgid "Text Color"
916
  msgstr ""
917
 
918
+ #: includes/class-kadence-woomail-settings.php:2139
919
  msgid "Custom CSS"
920
  msgstr ""
921
 
922
+ #: includes/class-kadence-woomail-settings.php:2156
923
  msgid "Preview Email Recipient"
924
  msgstr ""
925
 
926
+ #: includes/class-kadence-woomail-settings.php:2157
927
  msgid "Enter recipients (comma separated) for preview emails"
928
  msgstr ""
929
 
930
+ #: includes/class-kadence-woomail-settings.php:2199
931
  msgid "Hi There,"
932
  msgstr ""
933
 
934
+ #: includes/class-kadence-woomail-settings.php:2200
935
  msgid "{product_title} is now back in stock at {site_title}"
936
  msgstr ""
937
 
938
+ #: includes/class-kadence-woomail-settings.php:2201
939
  msgid "A product you are waiting for is back in stock"
940
  msgstr ""
941
 
942
+ #: includes/class-kadence-woomail-settings.php:2203
943
+ #: includes/class-kadence-woomail-settings.php:2230
944
  msgid "New customer order"
945
  msgstr ""
946
 
947
+ #: includes/class-kadence-woomail-settings.php:2204
948
+ #: includes/class-kadence-woomail-settings.php:2245
949
  msgid "[{site_title}] New customer order ({order_number}) - {order_date}"
950
  msgstr ""
951
 
952
+ #: includes/class-kadence-woomail-settings.php:2205
953
  msgid ""
954
  "You have received a subscription renewal order from {customer_full_name}. "
955
  "Their order is as follows:"
956
  msgstr ""
957
 
958
+ #: includes/class-kadence-woomail-settings.php:2206
959
+ #: includes/class-kadence-woomail-settings.php:2232
960
+ #: includes/class-kadence-woomail-settings.php:2237
961
  msgid "Thank you for your order"
962
  msgstr ""
963
 
964
+ #: includes/class-kadence-woomail-settings.php:2207
965
+ #: includes/class-kadence-woomail-settings.php:2247
966
+ #: includes/class-kadence-woomail-settings.php:2253
967
  msgid "Your {site_title} order receipt from {order_date}"
968
  msgstr ""
969
 
970
+ #: includes/class-kadence-woomail-settings.php:2208
971
  msgid ""
972
  "Your subscription renewal order has been received and is now being "
973
  "processed. Your order details are shown below for your reference:"
974
  msgstr ""
975
 
976
+ #: includes/class-kadence-woomail-settings.php:2209
977
+ #: includes/class-kadence-woomail-settings.php:2212
978
+ #: includes/class-kadence-woomail-settings.php:2233
979
  msgid "Your order is complete"
980
  msgstr ""
981
 
982
+ #: includes/class-kadence-woomail-settings.php:2210
983
+ #: includes/class-kadence-woomail-settings.php:2213
984
+ #: includes/class-kadence-woomail-settings.php:2248
985
  msgid "Your {site_title} order from {order_date} is complete"
986
  msgstr ""
987
 
988
+ #: includes/class-kadence-woomail-settings.php:2211
989
  msgid ""
990
  "Hi there. Your subscription renewal order with {site_title} has been "
991
  "completed. Your order details are shown below for your reference:"
992
  msgstr ""
993
 
994
+ #: includes/class-kadence-woomail-settings.php:2214
995
  msgid ""
996
  "Hi there. You have successfully changed your subscription items on "
997
  "{site_title}. Your new order and subscription details are shown below for "
998
  "your reference:"
999
  msgstr ""
1000
 
1001
+ #: includes/class-kadence-woomail-settings.php:2216
1002
+ #: includes/class-kadence-woomail-settings.php:2217
1003
+ #: includes/class-kadence-woomail-settings.php:2238
1004
+ #: includes/class-kadence-woomail-settings.php:2255
1005
  msgid "Invoice for order {order_number}"
1006
  msgstr ""
1007
 
1008
+ #: includes/class-kadence-woomail-settings.php:2218
1009
  msgid ""
1010
  "An invoice has been created for you to renew your subscription with "
1011
  "{site_title}. To pay for this invoice please use the following link: "
1012
  "{invoice_pay_link}"
1013
  msgstr ""
1014
 
1015
+ #: includes/class-kadence-woomail-settings.php:2219
1016
  msgid ""
1017
  "The automatic payment to renew your subscription with {site_title} has "
1018
  "failed. To reactivate the subscription, please login and pay for the renewal "
1019
  "from your account page: {invoice_pay_link}"
1020
  msgstr ""
1021
 
1022
+ #: includes/class-kadence-woomail-settings.php:2222
1023
  msgid "Subscription Cancelled"
1024
  msgstr ""
1025
 
1026
+ #: includes/class-kadence-woomail-settings.php:2223
1027
  msgid "[{site_title}] Subscription Cancelled"
1028
  msgstr ""
1029
 
1030
+ #: includes/class-kadence-woomail-settings.php:2224
1031
  msgid ""
1032
  "A subscription belonging to {customer_full_name} has been cancelled. Their "
1033
  "subscription's details are as follows:"
1034
  msgstr ""
1035
 
1036
+ #: includes/class-kadence-woomail-settings.php:2227
1037
  msgid "Automatic payment failed for order {order_number}"
1038
  msgstr ""
1039
 
1040
+ #: includes/class-kadence-woomail-settings.php:2228
1041
  msgid "Automatic payment failed for {order_number}, we will retry {retry_time}"
1042
  msgstr ""
1043
 
1044
+ #: includes/class-kadence-woomail-settings.php:2231
1045
  msgid "Cancelled order"
1046
  msgstr ""
1047
 
1048
+ #: includes/class-kadence-woomail-settings.php:2234
1049
  msgid "Order {order_number} details"
1050
  msgstr ""
1051
 
1052
+ #: includes/class-kadence-woomail-settings.php:2235
1053
  msgid "Your order has been partially refunded"
1054
  msgstr ""
1055
 
1056
+ #: includes/class-kadence-woomail-settings.php:2239
1057
  msgid "Your order details"
1058
  msgstr ""
1059
 
1060
+ #: includes/class-kadence-woomail-settings.php:2240
1061
  msgid "Failed order"
1062
  msgstr ""
1063
 
1064
+ #: includes/class-kadence-woomail-settings.php:2241
1065
  msgid "Welcome to {site_title}"
1066
  msgstr ""
1067
 
1068
+ #: includes/class-kadence-woomail-settings.php:2242
1069
  msgid "A note has been added to your order"
1070
  msgstr ""
1071
 
1072
+ #: includes/class-kadence-woomail-settings.php:2243
1073
  msgid "Password reset instructions"
1074
  msgstr ""
1075
 
1076
+ #: includes/class-kadence-woomail-settings.php:2246
1077
  msgid "[{site_title}] Cancelled order ({order_number})"
1078
  msgstr ""
1079
 
1080
+ #: includes/class-kadence-woomail-settings.php:2250
1081
  msgid "Your {site_title} order from {order_date} has been refunded"
1082
  msgstr ""
1083
 
1084
+ #: includes/class-kadence-woomail-settings.php:2251
1085
  msgid "Your {site_title} order from {order_date} has been partially refunded"
1086
  msgstr ""
1087
 
1088
+ #: includes/class-kadence-woomail-settings.php:2256
1089
  msgid "Your {site_title} order from {order_date}"
1090
  msgstr ""
1091
 
1092
+ #: includes/class-kadence-woomail-settings.php:2258
1093
  msgid "[{site_title}] Failed order ({order_number})"
1094
  msgstr ""
1095
 
1096
+ #: includes/class-kadence-woomail-settings.php:2259
1097
  msgid "Your account on {site_title}"
1098
  msgstr ""
1099
 
1100
+ #: includes/class-kadence-woomail-settings.php:2260
1101
  msgid "Note added to your {site_title} order from {order_date}"
1102
  msgstr ""
1103
 
1104
+ #: includes/class-kadence-woomail-settings.php:2261
1105
  msgid "Password reset for {site_title}"
1106
  msgstr ""
1107
 
1108
+ #: includes/class-kadence-woomail-settings.php:2263
1109
  msgid ""
1110
  "You have received an order from {customer_full_name}. The order is as "
1111
  "follows:"
1112
  msgstr ""
1113
 
1114
+ #: includes/class-kadence-woomail-settings.php:2264
1115
  msgid ""
1116
  "The order {order_number} from {customer_full_name} has been cancelled. The "
1117
  "order was as follows:"
1118
  msgstr ""
1119
 
1120
+ #: includes/class-kadence-woomail-settings.php:2265
1121
  msgid ""
1122
  "Your order has been received and is now being processed. Your order details "
1123
  "are shown below for your reference:"
1124
  msgstr ""
1125
 
1126
+ #: includes/class-kadence-woomail-settings.php:2266
1127
  msgid ""
1128
  "Hi there. Your recent order on {site_title} has been completed. Your order "
1129
  "details are shown below for your reference:"
1130
  msgstr ""
1131
 
1132
+ #: includes/class-kadence-woomail-settings.php:2268
1133
  msgid "Hi there. Your order on {site_title} has been refunded."
1134
  msgstr ""
1135
 
1136
+ #: includes/class-kadence-woomail-settings.php:2269
1137
  msgid "Hi there. Your order on {site_title} has been partially refunded."
1138
  msgstr ""
1139
 
1140
+ #: includes/class-kadence-woomail-settings.php:2271
1141
  msgid ""
1142
  "Your order is on-hold until we confirm payment has been received. Your order "
1143
  "details are shown below for your reference:"
1144
  msgstr ""
1145
 
1146
+ #: includes/class-kadence-woomail-settings.php:2273
1147
  msgid "An order has been created for you on {site_title}. {invoice_pay_link}"
1148
  msgstr ""
1149
 
1150
+ #: includes/class-kadence-woomail-settings.php:2275
1151
  msgid ""
1152
  "Payment for order {order_number} from {customer_full_name} has failed. The "
1153
  "order was as follows:"
1154
  msgstr ""
1155
 
1156
+ #: includes/class-kadence-woomail-settings.php:2276
1157
  msgid ""
1158
  "Thanks for creating an account on {site_title}. Your username is "
1159
  "{customer_username}"
1160
  msgstr ""
1161
 
1162
+ #: includes/class-kadence-woomail-settings.php:2277
1163
  msgid "Hello, a note has just been added to your order:"
1164
  msgstr ""
1165
 
1166
+ #: includes/class-kadence-woomail-settings.php:2278
1167
  msgid ""
1168
  "Someone requested that the password be reset for the following account:\n"
1169
  "\n"
1174
  "To reset your password, visit the following address:"
1175
  msgstr ""
1176
 
1177
+ #: includes/class-kadence-woomail-settings.php:2285
1178
+ msgid "Renew your {membership_plan}"
1179
+ msgstr ""
1180
+
1181
+ #: includes/class-kadence-woomail-settings.php:2286
1182
+ msgid "Your {site_title} membership has expired"
1183
+ msgstr ""
1184
+
1185
+ #: includes/class-kadence-woomail-settings.php:2287
1186
+ msgid "You can now access {membership_plan}"
1187
+ msgstr ""
1188
+
1189
+ #: includes/class-kadence-woomail-settings.php:2288
1190
+ msgid "Your {site_title} membership is now active!"
1191
+ msgstr ""
1192
+
1193
+ #: includes/class-kadence-woomail-settings.php:2289
1194
+ msgid "An update about your {membership_plan}"
1195
+ msgstr ""
1196
+
1197
+ #: includes/class-kadence-woomail-settings.php:2290
1198
+ msgid "Your {site_title} membership ends soon!"
1199
+ msgstr ""
1200
+
1201
+ #: includes/class-kadence-woomail-settings.php:2291
1202
+ msgid "A note has been added about your membership"
1203
+ msgstr ""
1204
+
1205
+ #: includes/class-kadence-woomail-settings.php:2292
1206
+ msgid "Note added to your {site_title} membership"
1207
+ msgstr ""
1208
+
1209
+ #: includes/class-kadence-woomail-settings.php:2293
1210
+ msgid "You can renew your {membership_plan}"
1211
+ msgstr ""
1212
+
1213
+ #: includes/class-kadence-woomail-settings.php:2294
1214
+ msgid "Renew your {site_title} membership!"
1215
+ msgstr ""
1216
+
1217
+ #: includes/class-kadence-woomail-settings.php:2424
1218
  msgid "none"
1219
  msgstr ""
1220
 
1221
+ #: includes/class-kadence-woomail-settings.php:2425
1222
  msgid "hidden"
1223
  msgstr ""
1224
 
1225
+ #: includes/class-kadence-woomail-settings.php:2426
1226
  msgid "dotted"
1227
  msgstr ""
1228
 
1229
+ #: includes/class-kadence-woomail-settings.php:2427
1230
  msgid "dashed"
1231
  msgstr ""
1232
 
1233
+ #: includes/class-kadence-woomail-settings.php:2428
1234
  msgid "solid"
1235
  msgstr ""
1236
 
1237
+ #: includes/class-kadence-woomail-settings.php:2429
1238
  msgid "double"
1239
  msgstr ""
1240
 
1241
+ #: includes/class-kadence-woomail-settings.php:2430
1242
  msgid "groove"
1243
  msgstr ""
1244
 
1245
+ #: includes/class-kadence-woomail-settings.php:2431
1246
  msgid "ridge"
1247
  msgstr ""
1248
 
1249
+ #: includes/class-kadence-woomail-settings.php:2432
1250
  msgid "inset"
1251
  msgstr ""
1252
 
1253
+ #: includes/class-kadence-woomail-settings.php:2433
1254
  msgid "outset"
1255
  msgstr ""
1256
 
1257
+ #: includes/class-kadence-woomail-settings.php:2445
1258
+ #: includes/class-kadence-woomail-settings.php:2459
1259
  msgid "Left"
1260
  msgstr ""
1261
 
1262
+ #: includes/class-kadence-woomail-settings.php:2446
1263
+ #: includes/class-kadence-woomail-settings.php:2460
1264
  msgid "Center"
1265
  msgstr ""
1266
 
1267
+ #: includes/class-kadence-woomail-settings.php:2447
1268
+ #: includes/class-kadence-woomail-settings.php:2461
1269
  msgid "Right"
1270
  msgstr ""
1271
 
1272
+ #: includes/class-kadence-woomail-settings.php:2448
1273
  msgid "Justify"
1274
  msgstr ""
1275
 
1276
+ #: includes/class-kadence-woomail-settings.php:2473
1277
  msgid "Mockup Order"
1278
  msgstr ""
1279
 
1297
  "Email Designer</a> plugin by <a href=\"%s\">Kadence Themes</a>."
1298
  msgstr ""
1299
 
1300
+ #: kadence-woocommerce-email-designer.php:147
1301
  msgid ""
1302
  "Kadence Woocommerce Email Designer requires WooCommerce to be active to work"
1303
  msgstr ""
1304
 
1305
+ #: kadence-woocommerce-email-designer.php:256
1306
  msgid "Pay for this order"
1307
  msgstr ""
1308
 
1309
+ #: kadence-woocommerce-email-designer.php:264
1310
+ #: kadence-woocommerce-email-designer.php:268
1311
  msgid "Pay Now &raquo;"
1312
  msgstr ""
1313
 
1314
+ #: kadence-woocommerce-email-designer.php:299
1315
+ #: kadence-woocommerce-email-designer.php:305
1316
+ msgid "Guest"
1317
+ msgstr ""
1318
+
1319
+ #: kadence-woocommerce-email-designer.php:464
1320
+ #: kadence-woocommerce-email-designer.php:465
1321
  msgid "Email Customizer"
1322
  msgstr ""
1323
 
1324
+ #: kadence-woocommerce-email-designer.php:479
1325
  msgid "Open Email Designer"
1326
  msgstr ""
1327
 
readme.txt CHANGED
@@ -5,7 +5,7 @@ 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.1.1
8
- Stable tag: 1.1.7
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -60,6 +60,9 @@ Install the plugin into the `/wp-content/plugins/` folder, and activate it.
60
 
61
  == Changelog ==
62
 
 
 
 
63
  = 1.1.7 =
64
  * Fix: PHP error.
65
 
5
  Requires PHP: 5.2.4
6
  Requires at least: 4.4
7
  Tested up to: 5.1.1
8
+ Stable tag: 1.1.8
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
60
 
61
  == Changelog ==
62
 
63
+ = 1.1.8 =
64
+ * Update: WC Membership Support.
65
+
66
  = 1.1.7 =
67
  * Fix: PHP error.
68