Version Description
- Update: Fix bug in Gmail mobile app causing footer to not fill the space.
Download this release
Release Info
Developer | britner |
Plugin | Kadence WooCommerce Email Designer |
Version | 1.3.7 |
Comparing to | |
See all releases |
Code changes from version 1.3.6 to 1.3.7
includes/class-kadence-woomail-customizer.php
CHANGED
@@ -769,7 +769,7 @@ if ( ! class_exists( 'Kadence_Woomail_Customizer' ) ) {
|
|
769 |
// Add value to styles array.
|
770 |
if ( $responsive_check && 'content_width' == $setting_key ) {
|
771 |
$property = 'max-width';
|
772 |
-
if ( '#template_container' !== $selector ) {
|
773 |
continue;
|
774 |
}
|
775 |
}
|
769 |
// Add value to styles array.
|
770 |
if ( $responsive_check && 'content_width' == $setting_key ) {
|
771 |
$property = 'max-width';
|
772 |
+
if ( '#template_container' !== $selector && '#template_footer' !== $selector ) {
|
773 |
continue;
|
774 |
}
|
775 |
}
|
kadence-woocommerce-email-designer.php
CHANGED
@@ -3,7 +3,7 @@
|
|
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.3.
|
7 |
* Author: Kadence WP
|
8 |
* Author URI: http://kadencewp.com/
|
9 |
* License: GPLv2 or later
|
@@ -126,9 +126,24 @@ class Kadence_Woomail_Designer {
|
|
126 |
|
127 |
add_filter( 'woocommerce_email_restore_locale', array( $this, 'restore_to_user_locale' ) );
|
128 |
|
|
|
|
|
129 |
//require_once KT_WOOMAIL_PATH . 'includes/class-kwed-cartflows-ca-email.php'; // Add CartFlows.
|
130 |
|
131 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
132 |
/**
|
133 |
* Filter callback to replace {year} in email footer
|
134 |
*
|
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.3.7
|
7 |
* Author: Kadence WP
|
8 |
* Author URI: http://kadencewp.com/
|
9 |
* License: GPLv2 or later
|
126 |
|
127 |
add_filter( 'woocommerce_email_restore_locale', array( $this, 'restore_to_user_locale' ) );
|
128 |
|
129 |
+
add_filter( 'woocommerce_mail_content', array( $this, 'add_gmail_hack' ), 50 );
|
130 |
+
|
131 |
//require_once KT_WOOMAIL_PATH . 'includes/class-kwed-cartflows-ca-email.php'; // Add CartFlows.
|
132 |
|
133 |
}
|
134 |
+
/**
|
135 |
+
* Filter callback to replace {year} in email footer
|
136 |
+
*
|
137 |
+
* @param string $string Email content.
|
138 |
+
* @return string Email footer text with any replacements done.
|
139 |
+
*/
|
140 |
+
public function add_gmail_hack( $content ) {
|
141 |
+
$responsive_check = Kadence_Woomail_Customizer::opt( 'responsive_mode' );
|
142 |
+
if ( true != $responsive_check ) {
|
143 |
+
$content = '<style type="text/css">.gm-remove-late{ display:none;}</style>' . $content;
|
144 |
+
}
|
145 |
+
return $content;
|
146 |
+
}
|
147 |
/**
|
148 |
* Filter callback to replace {year} in email footer
|
149 |
*
|
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: 4.4
|
7 |
-
Tested up to: 5.3.
|
8 |
-
Stable tag: 1.3.
|
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.3.6 =
|
64 |
* Update: Translation issue with account email.
|
65 |
* Fix: Header image styling bug.
|
4 |
Donate link: https://www.kadencewp.com/about-us/
|
5 |
Requires PHP: 5.2.4
|
6 |
Requires at least: 4.4
|
7 |
+
Tested up to: 5.3.1
|
8 |
+
Stable tag: 1.3.7
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
60 |
|
61 |
== Changelog ==
|
62 |
|
63 |
+
= 1.3.7 =
|
64 |
+
* Update: Fix bug in Gmail mobile app causing footer to not fill the space.
|
65 |
+
|
66 |
= 1.3.6 =
|
67 |
* Update: Translation issue with account email.
|
68 |
* Fix: Header image styling bug.
|
templates/woo/emails/email-footer.php
CHANGED
@@ -30,6 +30,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
30 |
exit; // Exit if accessed directly
|
31 |
}
|
32 |
$footer_placement = Kadence_Woomail_Customizer::opt( 'footer_background_placement' );
|
|
|
33 |
if ( empty( $footer_placement ) ) {
|
34 |
$footer_placement = 'inside';
|
35 |
}
|
@@ -61,5 +62,14 @@ if ( empty( $footer_placement ) ) {
|
|
61 |
</tr>
|
62 |
</table>
|
63 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
64 |
</body>
|
65 |
</html>
|
30 |
exit; // Exit if accessed directly
|
31 |
}
|
32 |
$footer_placement = Kadence_Woomail_Customizer::opt( 'footer_background_placement' );
|
33 |
+
$responsive_check = Kadence_Woomail_Customizer::opt( 'responsive_mode' );
|
34 |
if ( empty( $footer_placement ) ) {
|
35 |
$footer_placement = 'inside';
|
36 |
}
|
62 |
</tr>
|
63 |
</table>
|
64 |
</div>
|
65 |
+
<?php
|
66 |
+
if ( true != $responsive_check ) {
|
67 |
+
?>
|
68 |
+
<div class="gm-remove-late" style="white-space: nowrap; line-height: 0; color: #ffffff;">
|
69 |
+
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
70 |
+
</div>
|
71 |
+
<?php
|
72 |
+
}
|
73 |
+
?>
|
74 |
</body>
|
75 |
</html>
|