Version Description
- Support for first and last name from wp users integration extension
- CSS fix for few themes
Download this release
Release Info
Developer | satollo |
Plugin | Newsletter |
Version | 5.7.4 |
Comparing to | |
See all releases |
Code changes from version 5.7.3 to 5.7.4
- admin.css +22 -8
- emails/edit.php +11 -6
- main/status.php +1 -1
- plugin.php +10 -18
- readme.txt +8 -1
- style.css +12 -10
admin.css
CHANGED
@@ -159,24 +159,28 @@
|
|
159 |
.tnp-error {
|
160 |
border-left: 5px solid #dd0000;
|
161 |
background-color: #fff;
|
162 |
-
padding:
|
163 |
margin: 15px 0;
|
164 |
font-size: 1.2em;
|
|
|
165 |
}
|
166 |
|
167 |
.tnp-warning {
|
168 |
border-left: 5px solid #ffb900;
|
169 |
background-color: #fff;
|
170 |
-
padding:
|
171 |
margin: 15px 0;
|
172 |
font-size: 1.2em;
|
|
|
173 |
}
|
174 |
|
175 |
.tnp-message {
|
176 |
border-left: 5px solid #46b450;
|
177 |
background-color: #fff;
|
178 |
-
padding:
|
179 |
margin: 15px 0;
|
|
|
|
|
180 |
}
|
181 |
|
182 |
/* Default font colors for our dark background page body */
|
@@ -723,10 +727,7 @@ p.description {
|
|
723 |
#tnp-body {
|
724 |
padding: 10px;
|
725 |
background-color: #28313C;
|
726 |
-
border-color: #28313C
|
727 |
-
border-width: 10px;
|
728 |
-
border-style: solid;
|
729 |
-
/*overflow: auto;*/
|
730 |
}
|
731 |
|
732 |
.tnp-darkbg {
|
@@ -755,7 +756,7 @@ p.description {
|
|
755 |
|
756 |
#tnp-heading {
|
757 |
padding: 10px;
|
758 |
-
background-color: #28313C
|
759 |
margin-bottom: 10px;
|
760 |
border-radius: 5px;
|
761 |
}
|
@@ -788,6 +789,19 @@ p.description {
|
|
788 |
margin: 0px;
|
789 |
}
|
790 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
791 |
#tnp-heading p {
|
792 |
margin: 0px;
|
793 |
color: #ccc;
|
159 |
.tnp-error {
|
160 |
border-left: 5px solid #dd0000;
|
161 |
background-color: #fff;
|
162 |
+
padding: 15px;
|
163 |
margin: 15px 0;
|
164 |
font-size: 1.2em;
|
165 |
+
line-height: 1.5em;
|
166 |
}
|
167 |
|
168 |
.tnp-warning {
|
169 |
border-left: 5px solid #ffb900;
|
170 |
background-color: #fff;
|
171 |
+
padding: 15px;
|
172 |
margin: 15px 0;
|
173 |
font-size: 1.2em;
|
174 |
+
line-height: 1.5em;
|
175 |
}
|
176 |
|
177 |
.tnp-message {
|
178 |
border-left: 5px solid #46b450;
|
179 |
background-color: #fff;
|
180 |
+
padding: 15px;
|
181 |
margin: 15px 0;
|
182 |
+
font-size: 1.2em;
|
183 |
+
line-height: 1.5em;
|
184 |
}
|
185 |
|
186 |
/* Default font colors for our dark background page body */
|
727 |
#tnp-body {
|
728 |
padding: 10px;
|
729 |
background-color: #28313C;
|
730 |
+
/*border-color: 10px solid #28313C;*/
|
|
|
|
|
|
|
731 |
}
|
732 |
|
733 |
.tnp-darkbg {
|
756 |
|
757 |
#tnp-heading {
|
758 |
padding: 10px;
|
759 |
+
/*background-color: #28313C;*/
|
760 |
margin-bottom: 10px;
|
761 |
border-radius: 5px;
|
762 |
}
|
789 |
margin: 0px;
|
790 |
}
|
791 |
|
792 |
+
#tnp-heading h3 {
|
793 |
+
color: #27AE60;
|
794 |
+
font-family: "Montserrat", sans-serif;
|
795 |
+
letter-spacing: 0.1rem;
|
796 |
+
font-size: .8rem;
|
797 |
+
line-height: 1.8rem;
|
798 |
+
text-transform: uppercase;
|
799 |
+
vertical-align: middle;
|
800 |
+
font-weight: 700;
|
801 |
+
padding: 0;
|
802 |
+
margin: 0px;
|
803 |
+
}
|
804 |
+
|
805 |
#tnp-heading p {
|
806 |
margin: 0px;
|
807 |
color: #ccc;
|
emails/edit.php
CHANGED
@@ -234,19 +234,24 @@ if ($controls->is_action('test')) {
|
|
234 |
} else {
|
235 |
$users = NewsletterUsers::instance()->get_test_users();
|
236 |
if (count($users) == 0) {
|
237 |
-
$controls->
|
|
|
|
|
238 |
} else {
|
239 |
Newsletter::instance()->send(Newsletter::instance()->get_email($email_id), $users);
|
240 |
$controls->messages = __('Test newsletter sent to:', 'newsletter');
|
241 |
-
foreach ($users as
|
242 |
$controls->messages .= ' ' . $user->email;
|
243 |
}
|
244 |
-
$controls->messages .= '
|
|
|
|
|
|
|
245 |
}
|
246 |
|
247 |
-
$controls->messages .= '<br>';
|
248 |
-
$controls->messages .= '<a href="https://www.thenewsletterplugin.com/plugins/newsletter/subscribers-module#test" target="_blank">' .
|
249 |
-
__('Read more about test subscribers', 'newsletter') . '</a>.';
|
250 |
}
|
251 |
}
|
252 |
|
234 |
} else {
|
235 |
$users = NewsletterUsers::instance()->get_test_users();
|
236 |
if (count($users) == 0) {
|
237 |
+
$controls->errors = '' . __('There are no test subscribers to send to', 'newsletter') .
|
238 |
+
'. <a href="https://www.thenewsletterplugin.com/plugins/newsletter/subscribers-module#test" target="_blank"><strong>' .
|
239 |
+
__('Read more', 'newsletter') . '</strong></a>.';
|
240 |
} else {
|
241 |
Newsletter::instance()->send(Newsletter::instance()->get_email($email_id), $users);
|
242 |
$controls->messages = __('Test newsletter sent to:', 'newsletter');
|
243 |
+
foreach ($users as $user) {
|
244 |
$controls->messages .= ' ' . $user->email;
|
245 |
}
|
246 |
+
$controls->messages .= '.<br>';
|
247 |
+
$controls->messages .= '<a href="https://www.thenewsletterplugin.com/documentation/subscribers#test" target="_blank"><strong>' .
|
248 |
+
__('Read more about test subscribers', 'newsletter') . '</strong></a>.<br>';
|
249 |
+
$controls->messages .= '<a href="https://www.thenewsletterplugin.com/documentation/email-sending-issues" target="_blank"><strong>' . __('Read more about delivery issues', 'newsletter') . '</strong></a>.';
|
250 |
}
|
251 |
|
252 |
+
// $controls->messages .= '<br>';
|
253 |
+
// $controls->messages .= '<a href="https://www.thenewsletterplugin.com/plugins/newsletter/subscribers-module#test" target="_blank">' .
|
254 |
+
// __('Read more about test subscribers', 'newsletter') . '</a>.';
|
255 |
}
|
256 |
}
|
257 |
|
main/status.php
CHANGED
@@ -105,7 +105,7 @@ if ($controls->is_action('test')) {
|
|
105 |
$controls->messages .= '- Try to remove the return path on main settings.<br>';
|
106 |
}
|
107 |
|
108 |
-
$controls->messages .= '<a href="https://www.thenewsletterplugin.com/documentation/email-sending-issues" target="_blank">Read more</a>.';
|
109 |
|
110 |
$parts = explode('@', $module->options['sender_email']);
|
111 |
$sitename = strtolower($_SERVER['SERVER_NAME']);
|
105 |
$controls->messages .= '- Try to remove the return path on main settings.<br>';
|
106 |
}
|
107 |
|
108 |
+
$controls->messages .= '<a href="https://www.thenewsletterplugin.com/documentation/email-sending-issues" target="_blank"><strong>' . __('Read more', 'newsletter') . '</strong></a>.';
|
109 |
|
110 |
$parts = explode('@', $module->options['sender_email']);
|
111 |
$sitename = strtolower($_SERVER['SERVER_NAME']);
|
plugin.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
Plugin Name: Newsletter
|
5 |
Plugin URI: https://www.thenewsletterplugin.com/plugins/newsletter
|
6 |
Description: Newsletter is a cool plugin to create your own subscriber list, to send newsletters, to build your business. <strong>Before update give a look to <a href="https://www.thenewsletterplugin.com/category/release">this page</a> to know what's changed.</strong>
|
7 |
-
Version: 5.7.
|
8 |
Author: Stefano Lissa & The Newsletter Team
|
9 |
Author URI: https://www.thenewsletterplugin.com
|
10 |
Disclaimer: Use at your own risk. No warranty expressed or implied is provided.
|
@@ -14,7 +14,7 @@
|
|
14 |
*/
|
15 |
|
16 |
// Used as dummy parameter on css and js links
|
17 |
-
define('NEWSLETTER_VERSION', '5.7.
|
18 |
|
19 |
global $newsletter, $wpdb;
|
20 |
|
@@ -625,9 +625,11 @@ class Newsletter extends NewsletterModule {
|
|
625 |
if (!$test) {
|
626 |
$wpdb->query("update " . NEWSLETTER_EMAILS_TABLE . " set sent=sent+1, last_id=" . $user->id . " where id=" . $email->id . " limit 1");
|
627 |
}
|
|
|
|
|
628 |
|
629 |
-
$m = $this->replace($email->message, $user, $email
|
630 |
-
$mt = $this->replace($email->message_text, $user, $email
|
631 |
|
632 |
$m = apply_filters('newsletter_message_html', $m, $email, $user);
|
633 |
|
@@ -638,24 +640,14 @@ class Newsletter extends NewsletterModule {
|
|
638 |
$s = $this->replace($email->subject, $user);
|
639 |
$s = apply_filters('newsletter_message_subject', $s, $email, $user);
|
640 |
|
641 |
-
if (!empty($user->wp_user_id)) {
|
642 |
-
$this->logger->debug('send> Has wp_user_id: ' . $user->wp_user_id);
|
643 |
-
// TODO: possibly name extraction
|
644 |
-
$wp_user_email = $wpdb->get_var($wpdb->prepare("select user_email from $wpdb->users where id=%d limit 1", $user->wp_user_id));
|
645 |
-
if (!empty($wp_user_email)) {
|
646 |
-
$user->email = $wp_user_email;
|
647 |
-
$this->logger->debug('send> Email replaced with: ' . $user->email);
|
648 |
-
} else {
|
649 |
-
$this->logger->debug('send> This WP user has not an email');
|
650 |
-
}
|
651 |
-
}
|
652 |
-
|
653 |
$r = $this->mail($user->email, $s, array('html' => $m, 'text' => $mt), $headers, true);
|
654 |
|
655 |
$status = $r ? 0 : 1;
|
656 |
|
657 |
-
|
658 |
-
|
|
|
|
|
659 |
$this->email_limit--;
|
660 |
$count++;
|
661 |
}
|
4 |
Plugin Name: Newsletter
|
5 |
Plugin URI: https://www.thenewsletterplugin.com/plugins/newsletter
|
6 |
Description: Newsletter is a cool plugin to create your own subscriber list, to send newsletters, to build your business. <strong>Before update give a look to <a href="https://www.thenewsletterplugin.com/category/release">this page</a> to know what's changed.</strong>
|
7 |
+
Version: 5.7.4
|
8 |
Author: Stefano Lissa & The Newsletter Team
|
9 |
Author URI: https://www.thenewsletterplugin.com
|
10 |
Disclaimer: Use at your own risk. No warranty expressed or implied is provided.
|
14 |
*/
|
15 |
|
16 |
// Used as dummy parameter on css and js links
|
17 |
+
define('NEWSLETTER_VERSION', '5.7.4');
|
18 |
|
19 |
global $newsletter, $wpdb;
|
20 |
|
625 |
if (!$test) {
|
626 |
$wpdb->query("update " . NEWSLETTER_EMAILS_TABLE . " set sent=sent+1, last_id=" . $user->id . " where id=" . $email->id . " limit 1");
|
627 |
}
|
628 |
+
|
629 |
+
$user = apply_filters('newsletter_send_user', $user);
|
630 |
|
631 |
+
$m = $this->replace($email->message, $user, $email);
|
632 |
+
$mt = $this->replace($email->message_text, $user, $email);
|
633 |
|
634 |
$m = apply_filters('newsletter_message_html', $m, $email, $user);
|
635 |
|
640 |
$s = $this->replace($email->subject, $user);
|
641 |
$s = apply_filters('newsletter_message_subject', $s, $email, $user);
|
642 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
643 |
$r = $this->mail($user->email, $s, array('html' => $m, 'text' => $mt), $headers, true);
|
644 |
|
645 |
$status = $r ? 0 : 1;
|
646 |
|
647 |
+
if (!$test) {
|
648 |
+
$this->save_sent($user, $email);
|
649 |
+
}
|
650 |
+
|
651 |
$this->email_limit--;
|
652 |
$count++;
|
653 |
}
|
readme.txt
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
Tags: newsletter,email,subscription,mass mail,list build,email marketing,direct mailing,automation,automated,mailing list
|
3 |
Requires at least: 3.4.0
|
4 |
Tested up to: 4.9.8
|
5 |
-
Stable tag: 5.7.
|
6 |
Contributors: satollo,webagile,michael-travan
|
7 |
|
8 |
Add a real newsletter system to your blog. For free. With unlimited newsletters and subscribers.
|
@@ -78,6 +78,8 @@ our **premium, professional Extensions**! Let us introduce just two of them : )
|
|
78 |
* [WooCommerce Extension](https://www.thenewsletterplugin.com/woocommerce) - subscribe customers to a mailing list and generate product newletters.
|
79 |
* [Amazon SES and other providers integration](https://www.thenewsletterplugin.com/integrations) - seamlessly integrate Amazon SES and other email service providers with The Newsletter Plugin. Hassle-free.
|
80 |
* [Contact Form 7 Extension](https://www.thenewsletterplugin.com/documentation/contact-form-7-extension) - integrate the subscription on Contact Form 7 forms
|
|
|
|
|
81 |
* [Google Analytics Extension](https://www.thenewsletterplugin.com/google-analytics) - track newsletter links with Google UTM tracking paramaters
|
82 |
|
83 |
= Support =
|
@@ -115,6 +117,11 @@ Thank you, The Newsletter Team
|
|
115 |
|
116 |
== Changelog ==
|
117 |
|
|
|
|
|
|
|
|
|
|
|
118 |
= 5.7.3 =
|
119 |
|
120 |
* Fixed block padding warning
|
2 |
Tags: newsletter,email,subscription,mass mail,list build,email marketing,direct mailing,automation,automated,mailing list
|
3 |
Requires at least: 3.4.0
|
4 |
Tested up to: 4.9.8
|
5 |
+
Stable tag: 5.7.4
|
6 |
Contributors: satollo,webagile,michael-travan
|
7 |
|
8 |
Add a real newsletter system to your blog. For free. With unlimited newsletters and subscribers.
|
78 |
* [WooCommerce Extension](https://www.thenewsletterplugin.com/woocommerce) - subscribe customers to a mailing list and generate product newletters.
|
79 |
* [Amazon SES and other providers integration](https://www.thenewsletterplugin.com/integrations) - seamlessly integrate Amazon SES and other email service providers with The Newsletter Plugin. Hassle-free.
|
80 |
* [Contact Form 7 Extension](https://www.thenewsletterplugin.com/documentation/contact-form-7-extension) - integrate the subscription on Contact Form 7 forms
|
81 |
+
* [Ninja Forms Extension](https://www.thenewsletterplugin.com/documentation/ninjaforms-extension) - integrate the subscription on Ninja Forms
|
82 |
+
* [WP Forms Extension](https://www.thenewsletterplugin.com/documentation/wpforms-extension) - integrate the subscription on WP Forms
|
83 |
* [Google Analytics Extension](https://www.thenewsletterplugin.com/google-analytics) - track newsletter links with Google UTM tracking paramaters
|
84 |
|
85 |
= Support =
|
117 |
|
118 |
== Changelog ==
|
119 |
|
120 |
+
= 5.7.4 =
|
121 |
+
|
122 |
+
* Support for first and last name from wp users integration extension
|
123 |
+
* CSS fix for few themes
|
124 |
+
|
125 |
= 5.7.3 =
|
126 |
|
127 |
* Fixed block padding warning
|
style.css
CHANGED
@@ -55,7 +55,7 @@ CUSTOM CSS RULES.
|
|
55 |
.tnp-subscription input[type=checkbox],
|
56 |
.tnp-widget input[type=radio] {
|
57 |
max-width: 20px;
|
58 |
-
display: inline;
|
59 |
}
|
60 |
|
61 |
/* Antireset - http://www.satollo.net/css-and-select-space-between-the-options-and-the-arrow */
|
@@ -68,6 +68,7 @@ CUSTOM CSS RULES.
|
|
68 |
color: #fff;
|
69 |
width: auto;
|
70 |
height: auto;
|
|
|
71 |
}
|
72 |
|
73 |
@media all and (max-width: 480px) {
|
@@ -119,7 +120,7 @@ CUSTOM CSS RULES.
|
|
119 |
|
120 |
.tnp-profile form input[type=checkbox], .tnp-profile input[type=radio] {
|
121 |
max-width: 20px;
|
122 |
-
display: inline;
|
123 |
}
|
124 |
|
125 |
.tnp-profile form .tnp-list-label {
|
@@ -136,11 +137,13 @@ CUSTOM CSS RULES.
|
|
136 |
color: #fff;
|
137 |
width: auto;
|
138 |
height: auto;
|
|
|
139 |
}
|
140 |
|
141 |
@media all and (max-width: 480px) {
|
142 |
.tnp-profile input[type=submit] {
|
143 |
width: 100%;
|
|
|
144 |
}
|
145 |
}
|
146 |
|
@@ -182,7 +185,7 @@ CUSTOM CSS RULES.
|
|
182 |
|
183 |
.tnp-widget input[type=checkbox], .tnp-widget input[type=radio] {
|
184 |
width: auto;
|
185 |
-
display: inline;
|
186 |
}
|
187 |
|
188 |
/* Antireset - http://www.satollo.net/css-and-select-space-between-the-options-and-the-arrow */
|
@@ -195,6 +198,7 @@ CUSTOM CSS RULES.
|
|
195 |
background-image: none;
|
196 |
text-shadow: none;
|
197 |
color: #fff;
|
|
|
198 |
}
|
199 |
|
200 |
.tnp-field input[type="submit"] {
|
@@ -222,12 +226,10 @@ CUSTOM CSS RULES.
|
|
222 |
box-sizing: border-box;
|
223 |
padding: 10px;
|
224 |
display: inline-block;
|
225 |
-
border: 1px;
|
226 |
-
border-color: #ddd;
|
227 |
background-color: #f4f4f4;
|
228 |
color: #444;
|
229 |
font-size: 14px;
|
230 |
-
box-sizing: border-box;
|
231 |
}
|
232 |
|
233 |
.tnp-widget-minimal input.tnp-submit {
|
@@ -246,6 +248,7 @@ CUSTOM CSS RULES.
|
|
246 |
border-radius: 0px;
|
247 |
box-sizing: border-box;
|
248 |
height: auto;
|
|
|
249 |
}
|
250 |
|
251 |
/* The minimal form */
|
@@ -267,13 +270,11 @@ CUSTOM CSS RULES.
|
|
267 |
box-sizing: border-box;
|
268 |
padding: 10px;
|
269 |
display: inline-block;
|
270 |
-
border: 1px;
|
271 |
-
border-color: #ddd;
|
272 |
background-color: #f4f4f4;
|
273 |
color: #444;
|
274 |
font-size: 14px;
|
275 |
line-height: 20px;
|
276 |
-
box-sizing: border-box;
|
277 |
border-radius: 0px;
|
278 |
}
|
279 |
|
@@ -296,6 +297,7 @@ CUSTOM CSS RULES.
|
|
296 |
line-height: 20px;
|
297 |
box-sizing: border-box;
|
298 |
border-radius: 0px;
|
|
|
299 |
}
|
300 |
|
301 |
/* Comments Extension */
|
@@ -310,7 +312,7 @@ CUSTOM CSS RULES.
|
|
310 |
}
|
311 |
|
312 |
.tnp-comments input[type=checkbox] {
|
313 |
-
display: inline;
|
314 |
width: auto!important;
|
315 |
}
|
316 |
|
55 |
.tnp-subscription input[type=checkbox],
|
56 |
.tnp-widget input[type=radio] {
|
57 |
max-width: 20px;
|
58 |
+
display: inline-block;
|
59 |
}
|
60 |
|
61 |
/* Antireset - http://www.satollo.net/css-and-select-space-between-the-options-and-the-arrow */
|
68 |
color: #fff;
|
69 |
width: auto;
|
70 |
height: auto;
|
71 |
+
margin: 0;
|
72 |
}
|
73 |
|
74 |
@media all and (max-width: 480px) {
|
120 |
|
121 |
.tnp-profile form input[type=checkbox], .tnp-profile input[type=radio] {
|
122 |
max-width: 20px;
|
123 |
+
display: inline-block;
|
124 |
}
|
125 |
|
126 |
.tnp-profile form .tnp-list-label {
|
137 |
color: #fff;
|
138 |
width: auto;
|
139 |
height: auto;
|
140 |
+
margin: 0;
|
141 |
}
|
142 |
|
143 |
@media all and (max-width: 480px) {
|
144 |
.tnp-profile input[type=submit] {
|
145 |
width: 100%;
|
146 |
+
margin: 0;
|
147 |
}
|
148 |
}
|
149 |
|
185 |
|
186 |
.tnp-widget input[type=checkbox], .tnp-widget input[type=radio] {
|
187 |
width: auto;
|
188 |
+
display: inline-block;
|
189 |
}
|
190 |
|
191 |
/* Antireset - http://www.satollo.net/css-and-select-space-between-the-options-and-the-arrow */
|
198 |
background-image: none;
|
199 |
text-shadow: none;
|
200 |
color: #fff;
|
201 |
+
margin: 0;
|
202 |
}
|
203 |
|
204 |
.tnp-field input[type="submit"] {
|
226 |
box-sizing: border-box;
|
227 |
padding: 10px;
|
228 |
display: inline-block;
|
229 |
+
border: 1px solid #ddd;
|
|
|
230 |
background-color: #f4f4f4;
|
231 |
color: #444;
|
232 |
font-size: 14px;
|
|
|
233 |
}
|
234 |
|
235 |
.tnp-widget-minimal input.tnp-submit {
|
248 |
border-radius: 0px;
|
249 |
box-sizing: border-box;
|
250 |
height: auto;
|
251 |
+
margin: 0;
|
252 |
}
|
253 |
|
254 |
/* The minimal form */
|
270 |
box-sizing: border-box;
|
271 |
padding: 10px;
|
272 |
display: inline-block;
|
273 |
+
border: 1px solid #ddd;
|
|
|
274 |
background-color: #f4f4f4;
|
275 |
color: #444;
|
276 |
font-size: 14px;
|
277 |
line-height: 20px;
|
|
|
278 |
border-radius: 0px;
|
279 |
}
|
280 |
|
297 |
line-height: 20px;
|
298 |
box-sizing: border-box;
|
299 |
border-radius: 0px;
|
300 |
+
margin: 0;
|
301 |
}
|
302 |
|
303 |
/* Comments Extension */
|
312 |
}
|
313 |
|
314 |
.tnp-comments input[type=checkbox] {
|
315 |
+
display: inline-block;
|
316 |
width: auto!important;
|
317 |
}
|
318 |
|