Newsletter - Version 5.5.1

Version Description

  • Fixed few debug notices
  • API unsubscription messages fix
Download this release

Release Info

Developer satollo
Plugin Icon 128x128 Newsletter
Version 5.5.1
Comparing to
See all releases

Code changes from version 5.5.0 to 5.5.1

emails/tnp-composer/blocks/content-01-hero.block.php CHANGED
@@ -1,43 +1,40 @@
1
 
2
 
3
- <table border="0" cellpadding="0" cellspacing="0" width="500" class="responsive-table" align="center">
 
 
 
 
 
 
 
 
 
 
 
4
  <tr>
5
  <td>
6
- <!-- HERO IMAGE -->
7
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
8
  <tr>
9
- <td class="padding-copy tnpc-row-edit" data-type="image">
10
- <a href="#" target="_blank">
11
- <img src="https://unsplash.it/500/300?image=885" width="500" border="0" alt="Insert alt text here" style="max-width: 100%!important; width: 500px!important; height: auto!important; display: block;" class="img-max">
12
- </a>
13
- </td>
14
  </tr>
15
  <tr>
16
- <td>
17
- <!-- COPY -->
18
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
19
- <tr>
20
- <td align="center" style="font-size: 25px; color: #333333; padding-top: 30px; font-family: Helvetica, arial, sans-serif; " class="padding-copy tnpc-row-edit" data-type="title">An Awesome Title</td>
21
- </tr>
22
- <tr>
23
- <td align="center" style="padding: 20px 0 0 0; font-size: 16px; line-height: 25px; color: #666666; font-family: Helvetica, arial, sans-serif; " class="padding-copy tnpc-row-edit" data-type="text">The judge, by the way, was the King; and as he wore his crown over the wig, (look at the frontispiece if you want to see how he did it,) he did not look at all comfortable, and it was certainly not becoming.</td>
24
- </tr>
25
- </table>
26
- </td>
27
  </tr>
 
 
 
 
 
 
 
28
  <tr>
29
- <td align="center">
30
- <!-- BULLETPROOF BUTTON -->
31
- <table width="100%" border="0" cellspacing="0" cellpadding="0" class="mobile-button-container">
32
  <tr>
33
- <td align="center" style="padding: 25px 0 0 0;" class="padding-copy">
34
- <table border="0" cellspacing="0" cellpadding="0" class="responsive-table">
35
- <tr>
36
- <td align="center">
37
- <a href="#" target="_blank" style="font-size: 16px; font-family: Helvetica, Arial, sans-serif; font-weight: normal; color: #ffffff; text-decoration: none; background-color: #256F9C; border-top: 15px solid #256F9C; border-bottom: 15px solid #256F9C; border-left: 25px solid #256F9C; border-right: 25px solid #256F9C; border-radius: 3px; -webkit-border-radius: 3px; -moz-border-radius: 3px; display: inline-block;" class="mobile-button tnpc-row-edit" data-type="button">Learn More &rarr;</a></td>
38
- </tr>
39
- </table>
40
- </td>
41
  </tr>
42
  </table>
43
  </td>
@@ -46,3 +43,6 @@
46
  </td>
47
  </tr>
48
  </table>
 
 
 
1
 
2
 
3
+ <table border="0" cellpadding="0" cellspacing="0" width="500" class="responsive-table" align="center">
4
+ <tr>
5
+ <td>
6
+ <!-- HERO IMAGE -->
7
+ <table width="100%" border="0" cellspacing="0" cellpadding="0">
8
+ <tr>
9
+ <td class="padding-copy tnpc-row-edit" data-type="image">
10
+ <a href="#" target="_blank">
11
+ <img src="https://unsplash.it/500/300?image=885" width="500" border="0" alt="Insert alt text here" style="max-width: 100%!important; width: 500px!important; height: auto!important; display: block;" class="img-max">
12
+ </a>
13
+ </td>
14
+ </tr>
15
  <tr>
16
  <td>
17
+ <!-- COPY -->
18
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
19
  <tr>
20
+ <td align="center" style="font-size: 25px; color: #333333; padding-top: 30px; font-family: Helvetica, arial, sans-serif; " class="padding-copy tnpc-row-edit" data-type="title">An Awesome Title</td>
 
 
 
 
21
  </tr>
22
  <tr>
23
+ <td align="center" style="padding: 20px 0 0 0; font-size: 16px; line-height: 25px; color: #666666; font-family: Helvetica, arial, sans-serif; " class="padding-copy tnpc-row-edit" data-type="text">The judge, by the way, was the King; and as he wore his crown over the wig, (look at the frontispiece if you want to see how he did it,) he did not look at all comfortable, and it was certainly not becoming.</td>
 
 
 
 
 
 
 
 
 
 
24
  </tr>
25
+ </table>
26
+ </td>
27
+ </tr>
28
+ <tr>
29
+ <td align="center">
30
+ <!-- BULLETPROOF BUTTON -->
31
+ <table width="100%" border="0" cellspacing="0" cellpadding="0" class="mobile-button-container">
32
  <tr>
33
+ <td align="center" style="padding: 25px 0 0 0;" class="padding-copy">
34
+ <table border="0" cellspacing="0" cellpadding="0" class="responsive-table">
 
35
  <tr>
36
+ <td align="center">
37
+ <a href="#" target="_blank" style="font-size: 16px; font-family: Helvetica, Arial, sans-serif; font-weight: normal; color: #ffffff; text-decoration: none; background-color: #256F9C; border-top: 15px solid #256F9C; border-bottom: 15px solid #256F9C; border-left: 25px solid #256F9C; border-right: 25px solid #256F9C; border-radius: 3px; -webkit-border-radius: 3px; -moz-border-radius: 3px; display: inline-block;" class="mobile-button tnpc-row-edit" data-type="button">Learn More &rarr;</a></td>
 
 
 
 
 
 
38
  </tr>
39
  </table>
40
  </td>
43
  </td>
44
  </tr>
45
  </table>
46
+ </td>
47
+ </tr>
48
+ </table>
emails/tnp-composer/blocks/footer-02-canspam.block.php CHANGED
@@ -1,16 +1,16 @@
1
 
2
 
3
- <table width="100%" style="width: 100%!important" border="0" cellspacing="0" cellpadding="0" align="center" class="responsive-table">
4
- <tr>
5
- <td align="center" style="padding: 20px 15px 20px 15px; font-size: 12px; line-height: 18px; font-family: Helvetica, Arial, sans-serif; color:#666666;">
6
- <div class="tnpc-row-edit" data-type="text" style="color:#666666;">
7
- <?php echo !empty($block_options['footer_title']) ? $block_options['footer_title'] : 'Your Company' ?>
8
- <br/>
9
- <?php echo !empty($block_options['footer_contact']) ? $block_options['footer_contact'] : 'Company Address, Phone Number' ?>
10
- <br/>
11
- <em><?php echo !empty($block_options['footer_legal']) ? $block_options['footer_legal'] : 'Copyright or Legal text' ?></em>
12
- </div>
13
- </td>
14
- </tr>
15
- </table>
16
 
1
 
2
 
3
+ <table width="100%" style="width: 100%!important" border="0" cellspacing="0" cellpadding="0" align="center" class="responsive-table">
4
+ <tr>
5
+ <td align="center" style="padding: 20px 15px 20px 15px; font-size: 12px; line-height: 18px; font-family: Helvetica, Arial, sans-serif; color:#666666;">
6
+ <div class="tnpc-row-edit" data-type="text" style="color:#666666;">
7
+ <?php echo!empty($block_options['footer_title']) ? $block_options['footer_title'] : 'Your Company' ?>
8
+ <br/>
9
+ <?php echo!empty($block_options['footer_contact']) ? $block_options['footer_contact'] : 'Company Address, Phone Number' ?>
10
+ <br/>
11
+ <em><?php echo!empty($block_options['footer_legal']) ? $block_options['footer_legal'] : 'Copyright or Legal text' ?></em>
12
+ </div>
13
+ </td>
14
+ </tr>
15
+ </table>
16
 
emails/tnp-composer/blocks/footer-03-social.block.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  $social_icon_url = plugins_url('newsletter') . '/emails/themes/default/images';
 
3
  ?>
4
- <?php echo $wrapper_open ?>
5
  <table border="0" cellpadding="0" align="center" cellspacing="0" width="100%" style="width: 100%!important; max-width: <?php echo $width ?>px!important">
6
  <tr>
7
  <td bgcolor="#ffffff" align="center" style="padding: 20px 15px 20px 15px;" class="section-padding edit-block">
@@ -69,5 +69,4 @@ $social_icon_url = plugins_url('newsletter') . '/emails/themes/default/images';
69
  </td>
70
  </tr>
71
  </table>
72
- <?php echo $wrapper_close ?>
73
 
1
  <?php
2
  $social_icon_url = plugins_url('newsletter') . '/emails/themes/default/images';
3
+ $configured = false;
4
  ?>
 
5
  <table border="0" cellpadding="0" align="center" cellspacing="0" width="100%" style="width: 100%!important; max-width: <?php echo $width ?>px!important">
6
  <tr>
7
  <td bgcolor="#ffffff" align="center" style="padding: 20px 15px 20px 15px;" class="section-padding edit-block">
69
  </td>
70
  </tr>
71
  </table>
 
72
 
includes/TNP.php CHANGED
@@ -182,7 +182,7 @@ class TNP {
182
  $user = $newsletter->set_user_status($user, 'U');
183
 
184
  if (empty(NewsletterSubscription::instance()->options['unsubscribed_disabled'])) {
185
- $newsletter->mail($user->email, $newsletter->replace($newsletter->options['unsubscribed_subject'], $user), $newsletter->replace($newsletter->options['unsubscribed_message'], $user));
186
  }
187
  NewsletterSubscription::instance()->notify_admin($user, 'Newsletter unsubscription');
188
 
182
  $user = $newsletter->set_user_status($user, 'U');
183
 
184
  if (empty(NewsletterSubscription::instance()->options['unsubscribed_disabled'])) {
185
+ $newsletter->mail($user->email, $newsletter->replace(NewsletterSubscription::instance()->options['unsubscribed_subject'], $user), $newsletter->replace(NewsletterSubscription::instance()->options['unsubscribed_message'], $user));
186
  }
187
  NewsletterSubscription::instance()->notify_admin($user, 'Newsletter unsubscription');
188
 
includes/controls.php CHANGED
@@ -955,7 +955,7 @@ class NewsletterControls {
955
  function color($name) {
956
 
957
  $value = $this->get_value($name);
958
- echo '<input id="options-', esc_attr($name), '" class="tnp-controls-color" name="options[' . $name . ']" type="text" size="' . $size . '" value="';
959
  echo esc_attr($value);
960
  echo '">';
961
  }
955
  function color($name) {
956
 
957
  $value = $this->get_value($name);
958
+ echo '<input id="options-', esc_attr($name), '" class="tnp-controls-color" name="options[' . $name . ']" type="text" value="';
959
  echo esc_attr($value);
960
  echo '">';
961
  }
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.5.0
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,9 +14,9 @@
14
  */
15
 
16
  // Used as dummy parameter on css and js links
17
- define('NEWSLETTER_VERSION', '5.5.0');
18
 
19
- global $newsletter;
20
 
21
  if (!defined('NEWSLETTER_EMAILS_TABLE'))
22
  define('NEWSLETTER_EMAILS_TABLE', $wpdb->prefix . 'newsletter_emails');
@@ -351,6 +351,7 @@ class Newsletter extends NewsletterModule {
351
  global $cache_stop, $hyper_cache_stop, $wpdb;
352
 
353
  if (isset($this->options['debug']) && $this->options['debug'] == 1) {
 
354
  ini_set('log_errors', 1);
355
  ini_set('error_log', WP_CONTENT_DIR . '/logs/newsletter/php-' . date('Y-m') . '-' . get_option('newsletter_logger_secret') . '.txt');
356
  }
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.5.1
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.5.1');
18
 
19
+ global $newsletter, $wpdb;
20
 
21
  if (!defined('NEWSLETTER_EMAILS_TABLE'))
22
  define('NEWSLETTER_EMAILS_TABLE', $wpdb->prefix . 'newsletter_emails');
351
  global $cache_stop, $hyper_cache_stop, $wpdb;
352
 
353
  if (isset($this->options['debug']) && $this->options['debug'] == 1) {
354
+ error_reporting(E_ALL | E_NOTICE);
355
  ini_set('log_errors', 1);
356
  ini_set('error_log', WP_CONTENT_DIR . '/logs/newsletter/php-' . date('Y-m') . '-' . get_option('newsletter_logger_secret') . '.txt');
357
  }
readme.txt CHANGED
@@ -2,7 +2,7 @@
2
  Tags: newsletter,email,subscription,mass mail,list build,email marketing,direct mailing,automation,automated
3
  Requires at least: 3.4.0
4
  Tested up to: 4.9.6
5
- Stable tag: 5.5.0
6
  Contributors: satollo,webagile,michael-travan
7
 
8
  Add a real newsletter system to your blog. For free. With unlimited newsletters and subscribers.
@@ -102,6 +102,11 @@ Thank you, The Newsletter Team
102
 
103
  == Changelog ==
104
 
 
 
 
 
 
105
  = 5.5.0 =
106
 
107
  * Added IP storage control
2
  Tags: newsletter,email,subscription,mass mail,list build,email marketing,direct mailing,automation,automated
3
  Requires at least: 3.4.0
4
  Tested up to: 4.9.6
5
+ Stable tag: 5.5.1
6
  Contributors: satollo,webagile,michael-travan
7
 
8
  Add a real newsletter system to your blog. For free. With unlimited newsletters and subscribers.
102
 
103
  == Changelog ==
104
 
105
+ = 5.5.1 =
106
+
107
+ * Fixed few debug notices
108
+ * API unsubscription messages fix
109
+
110
  = 5.5.0 =
111
 
112
  * Added IP storage control
users/index.php CHANGED
@@ -172,6 +172,7 @@ $controls->data['search_page'] ++;
172
  <th>&nbsp;</th>
173
  </tr>
174
  </thead>
 
175
  <?php foreach ($list as $s) { ?>
176
  <tr class="<?php echo ($i++ % 2 == 0) ? 'alternate' : ''; ?>">
177
 
172
  <th>&nbsp;</th>
173
  </tr>
174
  </thead>
175
+ <?php $i = 0; ?>
176
  <?php foreach ($list as $s) { ?>
177
  <tr class="<?php echo ($i++ % 2 == 0) ? 'alternate' : ''; ?>">
178