Version Description
- Fix: Button Text color not changing.
- Fix: Import/Export support for special characters.
Download this release
Release Info
Developer | britner |
Plugin | Kadence WooCommerce Email Designer |
Version | 1.4.6 |
Comparing to | |
See all releases |
Code changes from version 1.4.4 to 1.4.6
- includes/class-kadence-woomail-customizer.php +4 -5
- includes/class-kadence-woomail-import-export.php +33 -8
- kadence-woocommerce-email-designer.php +4 -4
- languages/kadence-woocommerce-email-designer-pl_PL.mo +0 -0
- languages/kadence-woocommerce-email-designer-pl_PL.po +4 -14
- readme.txt +10 -2
- templates/woo/emails/email-addresses.php +2 -2
- templates/woo/emails/email-styles.php +1 -1
includes/class-kadence-woomail-customizer.php
CHANGED
@@ -1132,14 +1132,13 @@ if ( ! class_exists( 'Kadence_Woomail_Customizer' ) ) {
|
|
1132 |
text-align:center !important;
|
1133 |
}
|
1134 |
.order-items-light tr .td:first-child, .order-items-light .order-info-split-table td:first-child {
|
1135 |
-
padding-left: 0 !important;
|
1136 |
-
text-align:left !important;
|
1137 |
}
|
1138 |
.order-items-light tr .td:last-child, .order-items-light .order-info-split-table td:last-child{
|
1139 |
-
padding-right: 0 !important;
|
1140 |
-
text-align:right !important;
|
1141 |
}
|
1142 |
-
|
1143 |
.title-style-behind #template_container h2 {
|
1144 |
border-top:0 !important;
|
1145 |
border-bottom:0 !important;
|
1132 |
text-align:center !important;
|
1133 |
}
|
1134 |
.order-items-light tr .td:first-child, .order-items-light .order-info-split-table td:first-child {
|
1135 |
+
padding-' . ( is_rtl() ? 'right' : 'left' ) . ': 0 !important;
|
1136 |
+
text-align: ' . ( is_rtl() ? 'right' : 'left' ) . ' !important;
|
1137 |
}
|
1138 |
.order-items-light tr .td:last-child, .order-items-light .order-info-split-table td:last-child{
|
1139 |
+
padding-' . ( is_rtl() ? 'left' : 'right' ) . ': 0 !important;
|
1140 |
+
text-align:' . ( is_rtl() ? 'left' : 'right' ) . ' !important;
|
1141 |
}
|
|
|
1142 |
.title-style-behind #template_container h2 {
|
1143 |
border-top:0 !important;
|
1144 |
border-bottom:0 !important;
|
includes/class-kadence-woomail-import-export.php
CHANGED
@@ -167,7 +167,7 @@ To reset your password, visit the following address:";s:31:"kt_woomail[email_loa
|
|
167 |
header( 'Content-Type: application/octet-stream; charset=' . $charset );
|
168 |
|
169 |
// Serialize the export data.
|
170 |
-
echo serialize( $data );
|
171 |
|
172 |
// Start the download.
|
173 |
die();
|
@@ -195,7 +195,7 @@ To reset your password, visit the following address:";s:31:"kt_woomail[email_loa
|
|
195 |
// Setup global vars.
|
196 |
global $wp_customize;
|
197 |
global $kt_woomail_import_error;
|
198 |
-
|
199 |
// Setup internal vars.
|
200 |
$kt_woomail_import_error = false;
|
201 |
$template = 'kadence-woomail-designer';
|
@@ -211,21 +211,25 @@ To reset your password, visit the following address:";s:31:"kt_woomail[email_loa
|
|
211 |
$kt_woomail_import_error = __( 'Error importing settings! Please try again.', 'kadence-woocommerce-email-designer' );
|
212 |
return;
|
213 |
}
|
214 |
-
|
215 |
// Get the upload data.
|
216 |
$raw = file_get_contents( $file['file'] );
|
217 |
-
|
218 |
-
|
|
|
|
|
|
|
|
|
219 |
// Remove the uploaded file.
|
220 |
unlink( $file['file'] );
|
221 |
-
|
222 |
// Data checks.
|
223 |
if ( 'array' != gettype( $data ) ) {
|
224 |
-
$kt_woomail_import_error = __( 'Error importing settings! Please check that you uploaded
|
225 |
return;
|
226 |
}
|
227 |
if ( ! isset( $data['template'] ) ) {
|
228 |
-
$kt_woomail_import_error = __( 'Error importing settings! Please check that you uploaded
|
229 |
return;
|
230 |
}
|
231 |
if ( $data['template'] != $template ) {
|
@@ -259,6 +263,27 @@ To reset your password, visit the following address:";s:31:"kt_woomail[email_loa
|
|
259 |
|
260 |
exit;
|
261 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
262 |
|
263 |
/**
|
264 |
* Imports prebuilt kadence woo email settings
|
167 |
header( 'Content-Type: application/octet-stream; charset=' . $charset );
|
168 |
|
169 |
// Serialize the export data.
|
170 |
+
echo base64_encode( serialize( $data ) );
|
171 |
|
172 |
// Start the download.
|
173 |
die();
|
195 |
// Setup global vars.
|
196 |
global $wp_customize;
|
197 |
global $kt_woomail_import_error;
|
198 |
+
|
199 |
// Setup internal vars.
|
200 |
$kt_woomail_import_error = false;
|
201 |
$template = 'kadence-woomail-designer';
|
211 |
$kt_woomail_import_error = __( 'Error importing settings! Please try again.', 'kadence-woocommerce-email-designer' );
|
212 |
return;
|
213 |
}
|
214 |
+
|
215 |
// Get the upload data.
|
216 |
$raw = file_get_contents( $file['file'] );
|
217 |
+
//$data = @unserialize( $raw );
|
218 |
+
// $data = self::mb_unserialize( $raw );
|
219 |
+
$data = unserialize( base64_decode( $raw ) );
|
220 |
+
if ( 'array' != gettype( $data ) || ! isset( $data['template'] ) ) {
|
221 |
+
$data = self::mb_unserialize( $raw );
|
222 |
+
}
|
223 |
// Remove the uploaded file.
|
224 |
unlink( $file['file'] );
|
225 |
+
|
226 |
// Data checks.
|
227 |
if ( 'array' != gettype( $data ) ) {
|
228 |
+
$kt_woomail_import_error = __( 'Error importing settings! Please check that you uploaded an email customizer export file.', 'kadence-woocommerce-email-designer' );
|
229 |
return;
|
230 |
}
|
231 |
if ( ! isset( $data['template'] ) ) {
|
232 |
+
$kt_woomail_import_error = __( 'Error importing settings! Please check that you uploaded an email customizer export file.', 'kadence-woocommerce-email-designer' );
|
233 |
return;
|
234 |
}
|
235 |
if ( $data['template'] != $template ) {
|
263 |
|
264 |
exit;
|
265 |
}
|
266 |
+
/**
|
267 |
+
* Mulit-byte Unserialize
|
268 |
+
*
|
269 |
+
* UTF-8 will screw up a serialized string
|
270 |
+
*
|
271 |
+
* @access private
|
272 |
+
* @param string
|
273 |
+
* @return string
|
274 |
+
*/
|
275 |
+
static private function mb_unserialize( $string ) {
|
276 |
+
$string2 = preg_replace_callback(
|
277 |
+
'!s:(\d+):"(.*?)";!s',
|
278 |
+
function( $m ){
|
279 |
+
$len = strlen($m[2]);
|
280 |
+
$result = "s:$len:\"{$m[2]}\";";
|
281 |
+
return $result;
|
282 |
+
|
283 |
+
},
|
284 |
+
$string );
|
285 |
+
return @unserialize( $string2 );
|
286 |
+
}
|
287 |
|
288 |
/**
|
289 |
* Imports prebuilt kadence woo email settings
|
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:
|
12 |
-
* WC tested up to:
|
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' ) );
|
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.6
|
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.0.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.6' );
|
63 |
|
64 |
if ( ! kadence_woomail_is_woo_active() ) {
|
65 |
add_action( 'admin_notices', array( $this, 'admin_notice_need_woocommerce' ) );
|
languages/kadence-woocommerce-email-designer-pl_PL.mo
CHANGED
Binary file
|
languages/kadence-woocommerce-email-designer-pl_PL.po
CHANGED
@@ -5,7 +5,7 @@ msgstr ""
|
|
5 |
"Project-Id-Version: Plugins - Kadence WooCommerce Email Designer - "
|
6 |
"Development (trunk)\n"
|
7 |
"POT-Creation-Date: 2019-08-12 17:02-0600\n"
|
8 |
-
"PO-Revision-Date:
|
9 |
"Last-Translator: \n"
|
10 |
"Language-Team: \n"
|
11 |
"Language: pl\n"
|
@@ -14,7 +14,7 @@ msgstr ""
|
|
14 |
"Content-Transfer-Encoding: 8bit\n"
|
15 |
"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "
|
16 |
"|| n%100>=20) ? 1 : 2);\n"
|
17 |
-
"X-Generator: Poedit 2.
|
18 |
|
19 |
#: includes/class-customizer-kwdimportexport-control.php:16
|
20 |
#: includes/class-customizer-kwdimportexport-control.php:21
|
@@ -1491,8 +1491,6 @@ msgid "Commission"
|
|
1491 |
msgstr ""
|
1492 |
|
1493 |
#: templates/wcmp/vendor-new-order.php:67
|
1494 |
-
#, fuzzy
|
1495 |
-
#| msgid "Order Details"
|
1496 |
msgid "Customer Details"
|
1497 |
msgstr "Szczegóły zamówienia"
|
1498 |
|
@@ -1509,14 +1507,10 @@ msgid "Telephone:"
|
|
1509 |
msgstr ""
|
1510 |
|
1511 |
#: templates/wcmp/vendor-new-order.php:82
|
1512 |
-
#, fuzzy
|
1513 |
-
#| msgid "Billing address"
|
1514 |
msgid "Billing Address"
|
1515 |
msgstr "Adres rozliczeniowy"
|
1516 |
|
1517 |
#: templates/wcmp/vendor-new-order.php:95
|
1518 |
-
#, fuzzy
|
1519 |
-
#| msgid "Shipping address"
|
1520 |
msgid "Shipping Address"
|
1521 |
msgstr "Adres dostawy"
|
1522 |
|
@@ -1655,20 +1649,16 @@ msgstr "Zamówienie #%s"
|
|
1655 |
|
1656 |
#: templates/woo/emails/email-order-details.php:261
|
1657 |
#: templates/woo/emails/email-order-details.php:335
|
1658 |
-
#, fuzzy
|
1659 |
-
#| msgid "Order date:"
|
1660 |
msgid "Order Note"
|
1661 |
-
msgstr "Data zamówienia
|
1662 |
|
1663 |
#: templates/woo/emails/email-order-details.php:313
|
1664 |
msgid "Note:"
|
1665 |
msgstr ""
|
1666 |
|
1667 |
#: templates/woo/emails/email-order-items.php:86
|
1668 |
-
#, fuzzy
|
1669 |
-
#| msgid "Quantity"
|
1670 |
msgid "Quantity:"
|
1671 |
-
msgstr "
|
1672 |
|
1673 |
#: templates/woo/emails/subscription-info.php:25
|
1674 |
#: templates/woo/emails/subscription-info.php:56
|
5 |
"Project-Id-Version: Plugins - Kadence WooCommerce Email Designer - "
|
6 |
"Development (trunk)\n"
|
7 |
"POT-Creation-Date: 2019-08-12 17:02-0600\n"
|
8 |
+
"PO-Revision-Date: 2020-12-21 13:44-0700\n"
|
9 |
"Last-Translator: \n"
|
10 |
"Language-Team: \n"
|
11 |
"Language: pl\n"
|
14 |
"Content-Transfer-Encoding: 8bit\n"
|
15 |
"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "
|
16 |
"|| n%100>=20) ? 1 : 2);\n"
|
17 |
+
"X-Generator: Poedit 2.3.1\n"
|
18 |
|
19 |
#: includes/class-customizer-kwdimportexport-control.php:16
|
20 |
#: includes/class-customizer-kwdimportexport-control.php:21
|
1491 |
msgstr ""
|
1492 |
|
1493 |
#: templates/wcmp/vendor-new-order.php:67
|
|
|
|
|
1494 |
msgid "Customer Details"
|
1495 |
msgstr "Szczegóły zamówienia"
|
1496 |
|
1507 |
msgstr ""
|
1508 |
|
1509 |
#: templates/wcmp/vendor-new-order.php:82
|
|
|
|
|
1510 |
msgid "Billing Address"
|
1511 |
msgstr "Adres rozliczeniowy"
|
1512 |
|
1513 |
#: templates/wcmp/vendor-new-order.php:95
|
|
|
|
|
1514 |
msgid "Shipping Address"
|
1515 |
msgstr "Adres dostawy"
|
1516 |
|
1649 |
|
1650 |
#: templates/woo/emails/email-order-details.php:261
|
1651 |
#: templates/woo/emails/email-order-details.php:335
|
|
|
|
|
1652 |
msgid "Order Note"
|
1653 |
+
msgstr "Data zamówienia"
|
1654 |
|
1655 |
#: templates/woo/emails/email-order-details.php:313
|
1656 |
msgid "Note:"
|
1657 |
msgstr ""
|
1658 |
|
1659 |
#: templates/woo/emails/email-order-items.php:86
|
|
|
|
|
1660 |
msgid "Quantity:"
|
1661 |
+
msgstr "Ilość:"
|
1662 |
|
1663 |
#: templates/woo/emails/subscription-info.php:25
|
1664 |
#: templates/woo/emails/subscription-info.php:56
|
readme.txt
CHANGED
@@ -3,9 +3,9 @@ Contributors: britner
|
|
3 |
Tags: woocommerce, mail, email, email template, email templates, email design, preview, woocommerce emails, customize, customizer
|
4 |
Donate link: https://www.kadencewp.com/about-us/
|
5 |
Requires PHP: 5.2.4
|
6 |
-
Requires at least:
|
7 |
Tested up to: 5.6.0
|
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,14 @@ After you create your translations make sure to clear your server cache from any
|
|
81 |
|
82 |
== Changelog ==
|
83 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
84 |
= 1.4.4 =
|
85 |
* Update: Show support for WC 4.8 and WP 5.6
|
86 |
|
3 |
Tags: woocommerce, mail, email, email template, email templates, email design, preview, woocommerce emails, customize, customizer
|
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.6.0
|
8 |
+
Stable tag: 1.4.6
|
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.6 =
|
85 |
+
* Fix: Button Text color not changing.
|
86 |
+
* Fix: Import/Export support for special characters.
|
87 |
+
|
88 |
+
= 1.4.5 =
|
89 |
+
* Update: Make email address a link so it can be styled.
|
90 |
+
* Update: RTL improvement with light order table style.
|
91 |
+
|
92 |
= 1.4.4 =
|
93 |
* Update: Show support for WC 4.8 and WP 5.6
|
94 |
|
templates/woo/emails/email-addresses.php
CHANGED
@@ -51,7 +51,7 @@ if ( true == $responsive_check ) {
|
|
51 |
<br/><?php echo wc_make_phone_clickable( $order->get_billing_phone() ); ?>
|
52 |
<?php endif; ?>
|
53 |
<?php if ( $order->get_billing_email() ) : ?>
|
54 |
-
<
|
55 |
<?php
|
56 |
endif;
|
57 |
}
|
@@ -101,7 +101,7 @@ if ( true == $responsive_check ) {
|
|
101 |
<br/><?php echo wc_make_phone_clickable( $order->get_billing_phone() ); ?>
|
102 |
<?php endif; ?>
|
103 |
<?php if ( $order->get_billing_email() ) : ?>
|
104 |
-
<
|
105 |
<?php
|
106 |
endif;
|
107 |
}
|
51 |
<br/><?php echo wc_make_phone_clickable( $order->get_billing_phone() ); ?>
|
52 |
<?php endif; ?>
|
53 |
<?php if ( $order->get_billing_email() ) : ?>
|
54 |
+
<a href="mailto:<?php echo esc_attr( $order->get_billing_email() ); ?>"><?php echo esc_html( $order->get_billing_email() ); ?></a>
|
55 |
<?php
|
56 |
endif;
|
57 |
}
|
101 |
<br/><?php echo wc_make_phone_clickable( $order->get_billing_phone() ); ?>
|
102 |
<?php endif; ?>
|
103 |
<?php if ( $order->get_billing_email() ) : ?>
|
104 |
+
<a href="mailto:<?php echo esc_attr( $order->get_billing_email() ); ?>"><?php echo esc_html( $order->get_billing_email() ); ?></a>
|
105 |
<?php
|
106 |
endif;
|
107 |
}
|
templates/woo/emails/email-styles.php
CHANGED
@@ -265,7 +265,7 @@ a {
|
|
265 |
.btn {
|
266 |
padding: 10px 16px;
|
267 |
display: inline-block;
|
268 |
-
color:white
|
269 |
background-color: <?php echo esc_attr( $base ); ?>;
|
270 |
text-decoration: none;
|
271 |
font-weight: 600;
|
265 |
.btn {
|
266 |
padding: 10px 16px;
|
267 |
display: inline-block;
|
268 |
+
color:white;
|
269 |
background-color: <?php echo esc_attr( $base ); ?>;
|
270 |
text-decoration: none;
|
271 |
font-weight: 600;
|