Version Description
- Update: Better image support for outlook email client.
- Update: Make the email selection translatable.
- Fix: issue with heading text resetting when you type in certain areas.
Download this release
Release Info
Developer | britner |
Plugin | Kadence WooCommerce Email Designer |
Version | 1.4.8 |
Comparing to | |
See all releases |
Code changes from version 1.4.7 to 1.4.8
includes/class-kadence-woomail-customizer.php
CHANGED
@@ -182,10 +182,10 @@ if ( ! class_exists( 'Kadence_Woomail_Customizer' ) ) {
|
|
182 |
}
|
183 |
public function get_customizer_options_override_ready() {
|
184 |
foreach ( Kadence_Woomail_Settings::get_email_types() as $key => $value ) {
|
185 |
-
add_filter( '
|
186 |
}
|
187 |
}
|
188 |
-
public function customizer_woo_options_override( $value = array(), $option ) {
|
189 |
if ( isset( $_POST['customized'] ) ) {
|
190 |
$post_values = json_decode( stripslashes_deep( $_POST['customized'] ), true );
|
191 |
if ( isset( $_POST['customized'] ) && ! empty( $post_values ) ) {
|
182 |
}
|
183 |
public function get_customizer_options_override_ready() {
|
184 |
foreach ( Kadence_Woomail_Settings::get_email_types() as $key => $value ) {
|
185 |
+
add_filter( 'option_woocommerce_' . $key . '_settings', array( $this, 'customizer_woo_options_override' ), 99, 2 );
|
186 |
}
|
187 |
}
|
188 |
+
public function customizer_woo_options_override( $value = array(), $option = '' ) {
|
189 |
if ( isset( $_POST['customized'] ) ) {
|
190 |
$post_values = json_decode( stripslashes_deep( $_POST['customized'] ), true );
|
191 |
if ( isset( $_POST['customized'] ) && ! empty( $post_values ) ) {
|
includes/class-kadence-woomail-settings.php
CHANGED
@@ -97,130 +97,6 @@ if ( ! class_exists( 'Kadence_Woomail_Settings' ) ) {
|
|
97 |
'georgia' => 'Georgia, serif',
|
98 |
);
|
99 |
|
100 |
-
/**
|
101 |
-
* The normal core email types.
|
102 |
-
*
|
103 |
-
* @var array
|
104 |
-
*/
|
105 |
-
public static $email_types_mapping = array(
|
106 |
-
'new_order' => 'New Order',
|
107 |
-
'cancelled_order' => 'Cancelled Order',
|
108 |
-
'customer_processing_order' => 'Customer Processing Order',
|
109 |
-
'customer_completed_order' => 'Customer Completed Order',
|
110 |
-
'customer_refunded_order' => 'Customer Refunded Order',
|
111 |
-
'customer_on_hold_order' => 'Customer On Hold Order',
|
112 |
-
'customer_invoice' => 'Customer Invoice',
|
113 |
-
'failed_order' => 'Failed Order',
|
114 |
-
'customer_new_account' => 'Customer New Account',
|
115 |
-
'customer_note' => 'Customer Note',
|
116 |
-
'customer_reset_password' => 'Customer Reset Password',
|
117 |
-
);
|
118 |
-
|
119 |
-
/**
|
120 |
-
* The woocommerce subscriptions email types.
|
121 |
-
*
|
122 |
-
* @var array
|
123 |
-
*/
|
124 |
-
public static $subscription_email_types_mapping = array(
|
125 |
-
'new_renewal_order' => 'New Renewal Order',
|
126 |
-
'customer_processing_renewal_order' => 'Customer Processing Renewal Order',
|
127 |
-
'customer_completed_renewal_order' => 'Customer Completed Renewal Order',
|
128 |
-
'customer_completed_switch_order' => 'Customer Completed Switch Order',
|
129 |
-
'customer_renewal_invoice' => 'Customer Renewal Invoice',
|
130 |
-
'cancelled_subscription' => 'Cancelled Subscription',
|
131 |
-
'customer_payment_retry' => 'Customer Payment Retry',
|
132 |
-
'admin_payment_retry' => 'Payment Retry',
|
133 |
-
);
|
134 |
-
|
135 |
-
/**
|
136 |
-
* Woocommerce Membership Email Types
|
137 |
-
*
|
138 |
-
* @var array
|
139 |
-
*/
|
140 |
-
public static $membership_email_types_mapping = array(
|
141 |
-
'WC_Memberships_User_Membership_Note_Email' => 'User Membership Note',
|
142 |
-
'WC_Memberships_User_Membership_Ending_Soon_Email' => 'User Membership Ending Soon',
|
143 |
-
'WC_Memberships_User_Membership_Ended_Email' => 'User Membership Ended',
|
144 |
-
'WC_Memberships_User_Membership_Renewal_Reminder_Email' => 'User Membership Renewal Reminder',
|
145 |
-
'WC_Memberships_User_Membership_Activated_Email' => 'User Membership Activated',
|
146 |
-
);
|
147 |
-
/**
|
148 |
-
* WC Marketplace Email Types
|
149 |
-
*
|
150 |
-
* @var array
|
151 |
-
*/
|
152 |
-
public static $marketplace_email_types_mapping = array(
|
153 |
-
'vendor_new_account' => 'New Vendor Account',
|
154 |
-
'admin_new_vendor' => 'Admin New Vendor Account',
|
155 |
-
'approved_vendor_new_account' => 'Approved Vendor Account',
|
156 |
-
'rejected_vendor_new_account' => 'Rejected Vendor Account',
|
157 |
-
'vendor_new_order' => 'Vendor New order',
|
158 |
-
'notify_shipped' => 'Notify as Shipped.',
|
159 |
-
'admin_new_vendor_product' => 'New Vendor Product',
|
160 |
-
'admin_added_new_product_to_vendor' => 'New Vendor Product By Admin',
|
161 |
-
'vendor_commissions_transaction' => 'Transactions (for Vendor)',
|
162 |
-
'vendor_direct_bank' => 'Commission Paid (for Vendor) by BAC',
|
163 |
-
'admin_widthdrawal_request' => 'Withdrawal request to Admin from Vendor by BAC',
|
164 |
-
'vendor_orders_stats_report' => 'Vendor orders stats report',
|
165 |
-
'vendor_contact_widget_email' => 'Vendor Contact Email',
|
166 |
-
);
|
167 |
-
/**
|
168 |
-
* WC German Email Types
|
169 |
-
*
|
170 |
-
* @var array
|
171 |
-
*/
|
172 |
-
public static $german_email_types_mapping = array(
|
173 |
-
'customer_ekomi' => 'eKomi Review Reminder',
|
174 |
-
'customer_new_account_activation' => 'New account activation',
|
175 |
-
'customer_paid_for_order' => 'Paid for order',
|
176 |
-
'customer_revocation' => 'Revocation',
|
177 |
-
'customer_trusted_shops' => 'Trusted Shops Review Reminder',
|
178 |
-
);
|
179 |
-
/**
|
180 |
-
* WC German Email Types
|
181 |
-
*
|
182 |
-
* @var array
|
183 |
-
*/
|
184 |
-
public static $stripe_email_types_mapping = array(
|
185 |
-
'failed_renewal_authentication' => 'Failed Subscription Renewal SCA Authentication',
|
186 |
-
'failed_preorder_sca_authentication' => 'Pre-order Payment Action Needed',
|
187 |
-
);
|
188 |
-
/**
|
189 |
-
* WC German Email Types
|
190 |
-
*
|
191 |
-
* @var array
|
192 |
-
*/
|
193 |
-
public static $stripe_email_types_subscription_mapping = array(
|
194 |
-
'failed_authentication_requested' => 'Payment Authentication Requested Email',
|
195 |
-
);
|
196 |
-
/**
|
197 |
-
* Subscriptio Email Types
|
198 |
-
*
|
199 |
-
* @var array
|
200 |
-
*
|
201 |
-
public static $subscriptio_email_types_mapping = array(
|
202 |
-
'customer_subscription_new_order' => 'Subscription new order',
|
203 |
-
'customer_subscription_processing_order' => 'Subscription processing order',
|
204 |
-
'customer_subscription_completed_order' => 'Subscription completed order',
|
205 |
-
'customer_subscription_paused' => 'Subscription paused',
|
206 |
-
'customer_subscription_resumed' => 'Subscription resumed',
|
207 |
-
'customer_subscription_suspended' => 'Subscription suspended',
|
208 |
-
'customer_subscription_payment_overdue' => 'Subscription payment overdue',
|
209 |
-
'customer_subscription_payment_reminder' => 'Subscription payment reminder',
|
210 |
-
'customer_subscription_expired' => 'Subscription expired',
|
211 |
-
'customer_subscription_cancelled' => 'Subscription cancelled',
|
212 |
-
);
|
213 |
-
*/
|
214 |
-
|
215 |
-
/**
|
216 |
-
* Woocommerce Waitlist Email Types
|
217 |
-
*
|
218 |
-
* @var array
|
219 |
-
*/
|
220 |
-
public static $waitlist_email_types_mapping = array(
|
221 |
-
'woocommerce_waitlist_mailout' => 'Waitlist Mailout',
|
222 |
-
);
|
223 |
-
|
224 |
/**
|
225 |
* Get our prebuilt tempaltes.
|
226 |
*
|
@@ -1288,7 +1164,7 @@ if ( ! class_exists( 'Kadence_Woomail_Settings' ) ) {
|
|
1288 |
'live_method' => 'css',
|
1289 |
'control_type' => 'rangevalue',
|
1290 |
'selectors' => array(
|
1291 |
-
'#template_header_image img' => array( '
|
1292 |
),
|
1293 |
'input_attrs' => array(
|
1294 |
'step' => 1,
|
@@ -3211,27 +3087,81 @@ To reset your password, visit the following address:',
|
|
3211 |
*/
|
3212 |
public static function get_email_types() {
|
3213 |
if ( is_null( self::$email_types ) ) {
|
3214 |
-
$types =
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3215 |
if ( class_exists( 'WC_Subscriptions' ) ) {
|
3216 |
-
$types = array_merge( $types,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3217 |
}
|
3218 |
if ( class_exists( 'WC_Memberships' ) ) {
|
3219 |
-
$types = array_merge( $types,
|
|
|
|
|
|
|
|
|
|
|
|
|
3220 |
}
|
3221 |
if ( class_exists( 'WCMp' ) ) {
|
3222 |
-
$types = array_merge( $types,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3223 |
}
|
3224 |
if ( class_exists( 'WooCommerce_Germanized' ) ) {
|
3225 |
-
$types = array_merge( $types,
|
|
|
|
|
|
|
|
|
|
|
|
|
3226 |
}
|
3227 |
if ( class_exists( 'WooCommerce_Waitlist_Plugin' ) ) {
|
3228 |
-
$types = array_merge( $types,
|
|
|
|
|
3229 |
}
|
3230 |
if ( class_exists( 'WC_Stripe' ) ) {
|
3231 |
-
$types = array_merge( $types,
|
|
|
|
|
|
|
3232 |
}
|
3233 |
if ( class_exists( 'WC_Stripe' ) && class_exists( 'WC_Subscriptions' ) ) {
|
3234 |
-
$types = array_merge( $types,
|
|
|
|
|
3235 |
}
|
3236 |
// if ( class_exists( 'Cartflows_Ca_Email_Templates' ) ) {
|
3237 |
// $email_tmpl = Cartflows_Ca_Email_Templates::get_instance();
|
@@ -3258,12 +3188,35 @@ To reset your password, visit the following address:',
|
|
3258 |
*/
|
3259 |
public static function get_customized_email_types() {
|
3260 |
if ( is_null( self::$customized_email_types ) ) {
|
3261 |
-
$types =
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3262 |
if ( class_exists( 'WC_Subscriptions' ) ) {
|
3263 |
-
$types = array_merge( $types,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3264 |
}
|
3265 |
if ( class_exists( 'WooCommerce_Waitlist_Plugin' ) ) {
|
3266 |
-
$types = array_merge( $types,
|
|
|
|
|
3267 |
}
|
3268 |
|
3269 |
self::$customized_email_types = apply_filters( 'kadence_woomail_customized_email_types', $types );
|
@@ -3281,7 +3234,5 @@ To reset your password, visit the following address:',
|
|
3281 |
public static function get_email_templates() {
|
3282 |
return apply_filters( 'kadence_woomail_prebuilt_email_templates_settings', self::$prebuilt_templates_mapping );
|
3283 |
}
|
3284 |
-
|
3285 |
-
|
3286 |
}
|
3287 |
}
|
97 |
'georgia' => 'Georgia, serif',
|
98 |
);
|
99 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
100 |
/**
|
101 |
* Get our prebuilt tempaltes.
|
102 |
*
|
1164 |
'live_method' => 'css',
|
1165 |
'control_type' => 'rangevalue',
|
1166 |
'selectors' => array(
|
1167 |
+
'#template_header_image img' => array( 'width' ),
|
1168 |
),
|
1169 |
'input_attrs' => array(
|
1170 |
'step' => 1,
|
3087 |
*/
|
3088 |
public static function get_email_types() {
|
3089 |
if ( is_null( self::$email_types ) ) {
|
3090 |
+
$types = array(
|
3091 |
+
'new_order' => __( 'New Order', 'kadence-woocommerce-email-designer' ),
|
3092 |
+
'cancelled_order' => __( 'Cancelled Order', 'kadence-woocommerce-email-designer' ),
|
3093 |
+
'customer_processing_order' => __( 'Customer Processing Order', 'kadence-woocommerce-email-designer' ),
|
3094 |
+
'customer_completed_order' => __( 'Customer Completed Order', 'kadence-woocommerce-email-designer' ),
|
3095 |
+
'customer_refunded_order' => __( 'Customer Refunded Order', 'kadence-woocommerce-email-designer' ),
|
3096 |
+
'customer_on_hold_order' => __( 'Customer On Hold Order', 'kadence-woocommerce-email-designer' ),
|
3097 |
+
'customer_invoice' => __( 'Customer Invoice', 'kadence-woocommerce-email-designer' ),
|
3098 |
+
'failed_order' => __( 'Failed Order', 'kadence-woocommerce-email-designer' ),
|
3099 |
+
'customer_new_account' => __( 'Customer New Account', 'kadence-woocommerce-email-designer' ),
|
3100 |
+
'customer_note' => __( 'Customer Note', 'kadence-woocommerce-email-designer' ),
|
3101 |
+
'customer_reset_password' => __( 'Customer Reset Password', 'kadence-woocommerce-email-designer' ),
|
3102 |
+
);
|
3103 |
if ( class_exists( 'WC_Subscriptions' ) ) {
|
3104 |
+
$types = array_merge( $types, array(
|
3105 |
+
'new_renewal_order' => __( 'New Renewal Order', 'kadence-woocommerce-email-designer' ),
|
3106 |
+
'customer_processing_renewal_order' => __( 'Customer Processing Renewal Order', 'kadence-woocommerce-email-designer' ),
|
3107 |
+
'customer_completed_renewal_order' => __( 'Customer Completed Renewal Order', 'kadence-woocommerce-email-designer' ),
|
3108 |
+
'customer_completed_switch_order' => __( 'Customer Completed Switch Order', 'kadence-woocommerce-email-designer' ),
|
3109 |
+
'customer_renewal_invoice' => __( 'Customer Renewal Invoice', 'kadence-woocommerce-email-designer' ),
|
3110 |
+
'cancelled_subscription' => __( 'Cancelled Subscription', 'kadence-woocommerce-email-designer' ),
|
3111 |
+
'customer_payment_retry' => __( 'Customer Payment Retry', 'kadence-woocommerce-email-designer' ),
|
3112 |
+
'admin_payment_retry' => __( 'Payment Retry', 'kadence-woocommerce-email-designer' ),
|
3113 |
+
) );
|
3114 |
}
|
3115 |
if ( class_exists( 'WC_Memberships' ) ) {
|
3116 |
+
$types = array_merge( $types, array(
|
3117 |
+
'WC_Memberships_User_Membership_Note_Email' => __( 'User Membership Note', 'kadence-woocommerce-email-designer' ),
|
3118 |
+
'WC_Memberships_User_Membership_Ending_Soon_Email' => __( 'User Membership Ending Soon', 'kadence-woocommerce-email-designer' ),
|
3119 |
+
'WC_Memberships_User_Membership_Ended_Email' => __( 'User Membership Ended', 'kadence-woocommerce-email-designer' ),
|
3120 |
+
'WC_Memberships_User_Membership_Renewal_Reminder_Email' => __( 'User Membership Renewal Reminder', 'kadence-woocommerce-email-designer' ),
|
3121 |
+
'WC_Memberships_User_Membership_Activated_Email' => __( 'User Membership Activated', 'kadence-woocommerce-email-designer' ),
|
3122 |
+
) );
|
3123 |
}
|
3124 |
if ( class_exists( 'WCMp' ) ) {
|
3125 |
+
$types = array_merge( $types, array(
|
3126 |
+
'vendor_new_account' => __( 'New Vendor Account', 'kadence-woocommerce-email-designer' ),
|
3127 |
+
'admin_new_vendor' => __( 'Admin New Vendor Account', 'kadence-woocommerce-email-designer' ),
|
3128 |
+
'approved_vendor_new_account' => __( 'Approved Vendor Account', 'kadence-woocommerce-email-designer' ),
|
3129 |
+
'rejected_vendor_new_account' => __( 'Rejected Vendor Account', 'kadence-woocommerce-email-designer' ),
|
3130 |
+
'vendor_new_order' => __( 'Vendor New order', 'kadence-woocommerce-email-designer' ),
|
3131 |
+
'notify_shipped' => __( 'Notify as Shipped.', 'kadence-woocommerce-email-designer' ),
|
3132 |
+
'admin_new_vendor_product' => __( 'New Vendor Product', 'kadence-woocommerce-email-designer' ),
|
3133 |
+
'admin_added_new_product_to_vendor' => __( 'New Vendor Product By Admin', 'kadence-woocommerce-email-designer' ),
|
3134 |
+
'vendor_commissions_transaction' => __( 'Transactions (for Vendor)', 'kadence-woocommerce-email-designer' ),
|
3135 |
+
'vendor_direct_bank' => __( 'Commission Paid (for Vendor) by BAC', 'kadence-woocommerce-email-designer' ),
|
3136 |
+
'admin_widthdrawal_request' => __( 'Withdrawal request to Admin from Vendor by BAC', 'kadence-woocommerce-email-designer' ),
|
3137 |
+
'vendor_orders_stats_report' => __( 'Vendor orders stats report', 'kadence-woocommerce-email-designer' ),
|
3138 |
+
'vendor_contact_widget_email' => __( 'Vendor Contact Email', 'kadence-woocommerce-email-designer' ),
|
3139 |
+
) );
|
3140 |
}
|
3141 |
if ( class_exists( 'WooCommerce_Germanized' ) ) {
|
3142 |
+
$types = array_merge( $types, array(
|
3143 |
+
'customer_ekomi' => __( 'eKomi Review Reminder', 'kadence-woocommerce-email-designer' ),
|
3144 |
+
'customer_new_account_activation' => __( 'New account activation', 'kadence-woocommerce-email-designer' ),
|
3145 |
+
'customer_paid_for_order' => __( 'Paid for order', 'kadence-woocommerce-email-designer' ),
|
3146 |
+
'customer_revocation' => __( 'Revocation', 'kadence-woocommerce-email-designer' ),
|
3147 |
+
'customer_trusted_shops' => __( 'Trusted Shops Review Reminder', 'kadence-woocommerce-email-designer' ),
|
3148 |
+
) );
|
3149 |
}
|
3150 |
if ( class_exists( 'WooCommerce_Waitlist_Plugin' ) ) {
|
3151 |
+
$types = array_merge( $types, array(
|
3152 |
+
'woocommerce_waitlist_mailout' => __( 'Waitlist Mailout', 'kadence-woocommerce-email-designer' ),
|
3153 |
+
) );
|
3154 |
}
|
3155 |
if ( class_exists( 'WC_Stripe' ) ) {
|
3156 |
+
$types = array_merge( $types, array(
|
3157 |
+
'failed_renewal_authentication' => __( 'Failed Subscription Renewal SCA Authentication', 'kadence-woocommerce-email-designer' ),
|
3158 |
+
'failed_preorder_sca_authentication' => __( 'Pre-order Payment Action Needed', 'kadence-woocommerce-email-designer' ),
|
3159 |
+
) );
|
3160 |
}
|
3161 |
if ( class_exists( 'WC_Stripe' ) && class_exists( 'WC_Subscriptions' ) ) {
|
3162 |
+
$types = array_merge( $types, array(
|
3163 |
+
'failed_authentication_requested' => __( 'Payment Authentication Requested Email', 'kadence-woocommerce-email-designer' ),
|
3164 |
+
) );
|
3165 |
}
|
3166 |
// if ( class_exists( 'Cartflows_Ca_Email_Templates' ) ) {
|
3167 |
// $email_tmpl = Cartflows_Ca_Email_Templates::get_instance();
|
3188 |
*/
|
3189 |
public static function get_customized_email_types() {
|
3190 |
if ( is_null( self::$customized_email_types ) ) {
|
3191 |
+
$types = array(
|
3192 |
+
'new_order' => __( 'New Order', 'kadence-woocommerce-email-designer' ),
|
3193 |
+
'cancelled_order' => __( 'Cancelled Order', 'kadence-woocommerce-email-designer' ),
|
3194 |
+
'customer_processing_order' => __( 'Customer Processing Order', 'kadence-woocommerce-email-designer' ),
|
3195 |
+
'customer_completed_order' => __( 'Customer Completed Order', 'kadence-woocommerce-email-designer' ),
|
3196 |
+
'customer_refunded_order' => __( 'Customer Refunded Order', 'kadence-woocommerce-email-designer' ),
|
3197 |
+
'customer_on_hold_order' => __( 'Customer On Hold Order', 'kadence-woocommerce-email-designer' ),
|
3198 |
+
'customer_invoice' => __( 'Customer Invoice', 'kadence-woocommerce-email-designer' ),
|
3199 |
+
'failed_order' => __( 'Failed Order', 'kadence-woocommerce-email-designer' ),
|
3200 |
+
'customer_new_account' => __( 'Customer New Account', 'kadence-woocommerce-email-designer' ),
|
3201 |
+
'customer_note' => __( 'Customer Note', 'kadence-woocommerce-email-designer' ),
|
3202 |
+
'customer_reset_password' => __( 'Customer Reset Password', 'kadence-woocommerce-email-designer' ),
|
3203 |
+
);
|
3204 |
if ( class_exists( 'WC_Subscriptions' ) ) {
|
3205 |
+
$types = array_merge( $types, array(
|
3206 |
+
'new_renewal_order' => __( 'New Renewal Order', 'kadence-woocommerce-email-designer' ),
|
3207 |
+
'customer_processing_renewal_order' => __( 'Customer Processing Renewal Order', 'kadence-woocommerce-email-designer' ),
|
3208 |
+
'customer_completed_renewal_order' => __( 'Customer Completed Renewal Order', 'kadence-woocommerce-email-designer' ),
|
3209 |
+
'customer_completed_switch_order' => __( 'Customer Completed Switch Order', 'kadence-woocommerce-email-designer' ),
|
3210 |
+
'customer_renewal_invoice' => __( 'Customer Renewal Invoice', 'kadence-woocommerce-email-designer' ),
|
3211 |
+
'cancelled_subscription' => __( 'Cancelled Subscription', 'kadence-woocommerce-email-designer' ),
|
3212 |
+
'customer_payment_retry' => __( 'Customer Payment Retry', 'kadence-woocommerce-email-designer' ),
|
3213 |
+
'admin_payment_retry' => __( 'Payment Retry', 'kadence-woocommerce-email-designer' ),
|
3214 |
+
) );
|
3215 |
}
|
3216 |
if ( class_exists( 'WooCommerce_Waitlist_Plugin' ) ) {
|
3217 |
+
$types = array_merge( $types, array(
|
3218 |
+
'woocommerce_waitlist_mailout' => __( 'Waitlist Mailout', 'kadence-woocommerce-email-designer' ),
|
3219 |
+
) );
|
3220 |
}
|
3221 |
|
3222 |
self::$customized_email_types = apply_filters( 'kadence_woomail_customized_email_types', $types );
|
3234 |
public static function get_email_templates() {
|
3235 |
return apply_filters( 'kadence_woomail_prebuilt_email_templates_settings', self::$prebuilt_templates_mapping );
|
3236 |
}
|
|
|
|
|
3237 |
}
|
3238 |
}
|
kadence-woocommerce-email-designer.php
CHANGED
@@ -3,13 +3,13 @@
|
|
3 |
* Plugin Name: Kadence WooCommerce Email Designer
|
4 |
* Plugin URI: http://kadencewp.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.4.
|
7 |
* Author: Kadence WP
|
8 |
* Author URI: http://kadencewp.com/
|
9 |
* License: GPLv2 or later
|
10 |
* Text Domain: kadence-woocommerce-email-designer
|
11 |
* WC requires at least: 4.2.0
|
12 |
-
* WC tested up to: 5.
|
13 |
*
|
14 |
* @package Kadence Woocommerce Email Designer
|
15 |
*/
|
@@ -59,7 +59,7 @@ class Kadence_Woomail_Designer {
|
|
59 |
|
60 |
define( 'KT_WOOMAIL_PATH', realpath( plugin_dir_path( __FILE__ ) ) . DIRECTORY_SEPARATOR );
|
61 |
define( 'KT_WOOMAIL_URL', plugin_dir_url( __FILE__ ) );
|
62 |
-
define( 'KT_WOOMAIL_VERSION', '1.4.
|
63 |
|
64 |
if ( ! kadence_woomail_is_woo_active() ) {
|
65 |
add_action( 'admin_notices', array( $this, 'admin_notice_need_woocommerce' ) );
|
@@ -187,6 +187,10 @@ class Kadence_Woomail_Designer {
|
|
187 |
$args['image_size'] = array( 100, 100 );
|
188 |
} else if ( '150x150' === $size ) {
|
189 |
$args['image_size'] = array( 150, 150 );
|
|
|
|
|
|
|
|
|
190 |
} else if ( 'woocommerce_thumbnail' === $size ) {
|
191 |
$args['image_size'] = 'woocommerce_thumbnail';
|
192 |
} else {
|
3 |
* Plugin Name: Kadence WooCommerce Email Designer
|
4 |
* Plugin URI: http://kadencewp.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.4.8
|
7 |
* Author: Kadence WP
|
8 |
* Author URI: http://kadencewp.com/
|
9 |
* License: GPLv2 or later
|
10 |
* Text Domain: kadence-woocommerce-email-designer
|
11 |
* WC requires at least: 4.2.0
|
12 |
+
* WC tested up to: 5.6.0
|
13 |
*
|
14 |
* @package Kadence Woocommerce Email Designer
|
15 |
*/
|
59 |
|
60 |
define( 'KT_WOOMAIL_PATH', realpath( plugin_dir_path( __FILE__ ) ) . DIRECTORY_SEPARATOR );
|
61 |
define( 'KT_WOOMAIL_URL', plugin_dir_url( __FILE__ ) );
|
62 |
+
define( 'KT_WOOMAIL_VERSION', '1.4.8' );
|
63 |
|
64 |
if ( ! kadence_woomail_is_woo_active() ) {
|
65 |
add_action( 'admin_notices', array( $this, 'admin_notice_need_woocommerce' ) );
|
187 |
$args['image_size'] = array( 100, 100 );
|
188 |
} else if ( '150x150' === $size ) {
|
189 |
$args['image_size'] = array( 150, 150 );
|
190 |
+
} else if ( '40x40' === $size ) {
|
191 |
+
$args['image_size'] = array( 40, 40 );
|
192 |
+
} else if ( '50x50' === $size ) {
|
193 |
+
$args['image_size'] = array( 50, 50 );
|
194 |
} else if ( 'woocommerce_thumbnail' === $size ) {
|
195 |
$args['image_size'] = 'woocommerce_thumbnail';
|
196 |
} else {
|
readme.txt
CHANGED
@@ -4,8 +4,8 @@ Tags: woocommerce, mail, email, email template, email templates, email design, p
|
|
4 |
Donate link: https://www.kadencewp.com/about-us/
|
5 |
Requires PHP: 5.2.4
|
6 |
Requires at least: 5.0
|
7 |
-
Tested up to: 5.
|
8 |
-
Stable tag: 1.4.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -81,6 +81,11 @@ After you create your translations make sure to clear your server cache from any
|
|
81 |
|
82 |
== Changelog ==
|
83 |
|
|
|
|
|
|
|
|
|
|
|
84 |
= 1.4.7 =
|
85 |
* Fix: Possible issue with billing address format.
|
86 |
|
4 |
Donate link: https://www.kadencewp.com/about-us/
|
5 |
Requires PHP: 5.2.4
|
6 |
Requires at least: 5.0
|
7 |
+
Tested up to: 5.8.0
|
8 |
+
Stable tag: 1.4.8
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
81 |
|
82 |
== Changelog ==
|
83 |
|
84 |
+
= 1.4.8 =
|
85 |
+
* Update: Better image support for outlook email client.
|
86 |
+
* Update: Make the email selection translatable.
|
87 |
+
* Fix: issue with heading text resetting when you type in certain areas.
|
88 |
+
|
89 |
= 1.4.7 =
|
90 |
* Fix: Possible issue with billing address format.
|
91 |
|
templates/woo/emails/email-header.php
CHANGED
@@ -67,7 +67,7 @@ if ( empty( $header_placement ) ) {
|
|
67 |
$header_placement = 'outside';
|
68 |
}
|
69 |
$header_image_link = Kadence_Woomail_Customizer::opt( 'header_image_link' );
|
70 |
-
$img = get_option( 'woocommerce_email_header_image' )
|
71 |
?>
|
72 |
<!DOCTYPE html>
|
73 |
<html <?php language_attributes(); ?>>
|
67 |
$header_placement = 'outside';
|
68 |
}
|
69 |
$header_image_link = Kadence_Woomail_Customizer::opt( 'header_image_link' );
|
70 |
+
$img = get_option( 'woocommerce_email_header_image' );
|
71 |
?>
|
72 |
<!DOCTYPE html>
|
73 |
<html <?php language_attributes(); ?>>
|
templates/woo/emails/email-styles.php
CHANGED
@@ -291,8 +291,8 @@ img {
|
|
291 |
padding-bottom:5px;
|
292 |
}
|
293 |
.ft-social-link img {
|
294 |
-
|
295 |
-
width:100%;
|
296 |
display:inline-block;
|
297 |
}
|
298 |
.ft-social-title {
|
@@ -301,6 +301,6 @@ img {
|
|
301 |
padding-left: 5px;
|
302 |
}
|
303 |
#template_header_image img {
|
304 |
-
width:100%;
|
305 |
}
|
306 |
<?php
|
291 |
padding-bottom:5px;
|
292 |
}
|
293 |
.ft-social-link img {
|
294 |
+
width:24px;
|
295 |
+
max-width:100%;
|
296 |
display:inline-block;
|
297 |
}
|
298 |
.ft-social-title {
|
301 |
padding-left: 5px;
|
302 |
}
|
303 |
#template_header_image img {
|
304 |
+
max-width:100%;
|
305 |
}
|
306 |
<?php
|