Newsletter - Version 5.6.9

Version Description

  • Improved separator block for Outlook compatibility
  • Fixed "read more" button on posts block
  • Fixed lists on notification email
Download this release

Release Info

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

Code changes from version 5.6.8 to 5.6.9

emails/blocks/posts/block.php CHANGED
@@ -220,7 +220,9 @@ $alternative = plugins_url('newsletter') . '/emails/blocks/posts/images/blank.pn
220
  <td align="center" inline-class="posts-post-excerpt" class="tnpc-row-edit" data-type="text"><?php echo tnp_post_excerpt($row[0]) ?></td>
221
  </tr>
222
  <tr>
223
- <td align="center" style="padding: 5px 0 0 0; font-family: Arial, sans-serif; color: #666666; font-size: 14px; line-height: 20px;"><a href="<?php echo tnp_post_permalink($row[0]) ?>" style="color: #256F9C; text-decoration: none;" class="tnpc-row-edit" data-type="link"><?php echo $options['read_more'] ?></a></td>
 
 
224
  </tr>
225
  </table>
226
  </td>
@@ -247,7 +249,10 @@ $alternative = plugins_url('newsletter') . '/emails/blocks/posts/images/blank.pn
247
  <td align="center" inline-class="posts-post-excerpt" class="tnpc-row-edit" data-type="text"><?php echo tnp_post_excerpt($row[1]) ?></td>
248
  </tr>
249
  <tr>
250
- <td align="center" style="padding: 5px 0 0 0; font-family: Arial, sans-serif; color: #666666; font-size: 14px; line-height: 20px;"><a href="<?php echo tnp_post_permalink($row[1]) ?>" style="color: #256F9C; text-decoration: none;" class="tnpc-row-edit" data-type="link"><?php echo $options['read_more'] ?></a></td>
 
 
 
251
  </tr>
252
  </table>
253
  </td>
220
  <td align="center" inline-class="posts-post-excerpt" class="tnpc-row-edit" data-type="text"><?php echo tnp_post_excerpt($row[0]) ?></td>
221
  </tr>
222
  <tr>
223
+ <td align="center" style="padding: 5px 0 0 0; font-family: Arial, sans-serif; color: #666666; font-size: 14px; line-height: 20px;">
224
+ <a href="<?php echo tnp_post_permalink($row[0]) ?>" target="_blank" style="font-size: 15px; font-family: Helvetica, Arial, sans-serif; font-weight: normal; color: #ffffff; text-decoration: none; background-color: <?php echo $button_color?>; border-top: 10px solid <?php echo $button_color?>; border-bottom: 10px solid <?php echo $button_color?>; border-left: 20px solid <?php echo $button_color?>; border-right: 20px solid <?php echo $button_color?>; border-radius: 3px; -webkit-border-radius: 3px; -moz-border-radius: 3px; display: inline-block;" class="mobile-button tnpc-row-edit" data-type="link"><?php echo $options['read_more'] ?></a>
225
+ </td>
226
  </tr>
227
  </table>
228
  </td>
249
  <td align="center" inline-class="posts-post-excerpt" class="tnpc-row-edit" data-type="text"><?php echo tnp_post_excerpt($row[1]) ?></td>
250
  </tr>
251
  <tr>
252
+
253
+ <td align="center" style="padding: 5px 0 0 0; font-family: Arial, sans-serif; color: #666666; font-size: 14px; line-height: 20px;">
254
+ <a href="<?php echo tnp_post_permalink($row[1]) ?>" target="_blank" style="font-size: 15px; font-family: Helvetica, Arial, sans-serif; font-weight: normal; color: #ffffff; text-decoration: none; background-color: <?php echo $button_color?>; border-top: 10px solid <?php echo $button_color?>; border-bottom: 10px solid <?php echo $button_color?>; border-left: 20px solid <?php echo $button_color?>; border-right: 20px solid <?php echo $button_color?>; border-radius: 3px; -webkit-border-radius: 3px; -moz-border-radius: 3px; display: inline-block;" class="mobile-button tnpc-row-edit" data-type="link"><?php echo $options['read_more'] ?></a>
255
+ </td>
256
  </tr>
257
  </table>
258
  </td>
includes/controls.php CHANGED
@@ -1457,7 +1457,7 @@ class NewsletterControls {
1457
 
1458
  function language($name = 'language') {
1459
  if (!class_exists('SitePress')) {
1460
- echo __('Install WPML for multilangue support', 'newsletter');
1461
  return;
1462
  }
1463
 
@@ -1483,14 +1483,14 @@ class NewsletterControls {
1483
  */
1484
  function languages($name = 'languages') {
1485
  if (!$this->is_multilanguage()) {
1486
- echo __('Install WPML or Polylang for multilangue support', 'newsletter');
1487
  return;
1488
  }
1489
 
1490
  $language_options = Newsletter::instance()->get_languages();
1491
 
1492
  if (empty($language_options)) {
1493
- echo __('Your multilangiage plugin is not supported or there are no languages defined', 'newsletter');
1494
  return;
1495
  }
1496
 
1457
 
1458
  function language($name = 'language') {
1459
  if (!class_exists('SitePress')) {
1460
+ echo __('Install WPML or Polylang for multilanguage support', 'newsletter');
1461
  return;
1462
  }
1463
 
1483
  */
1484
  function languages($name = 'languages') {
1485
  if (!$this->is_multilanguage()) {
1486
+ echo __('Install WPML or Polylang for multilanguage support', 'newsletter');
1487
  return;
1488
  }
1489
 
1490
  $language_options = Newsletter::instance()->get_languages();
1491
 
1492
  if (empty($language_options)) {
1493
+ echo __('Your multilanguage plugin is not supported or there are no languages defined', 'newsletter');
1494
  return;
1495
  }
1496
 
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.6.8
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.6.8');
18
 
19
  global $newsletter, $wpdb;
20
 
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.6.9
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.6.9');
18
 
19
  global $newsletter, $wpdb;
20
 
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.6.8
6
  Contributors: satollo,webagile,michael-travan
7
 
8
  Add a real newsletter system to your blog. For free. With unlimited newsletters and subscribers.
@@ -108,7 +108,13 @@ Thank you, The Newsletter Team
108
 
109
  == Changelog ==
110
 
111
- = next =
 
 
 
 
 
 
112
 
113
  * Removed debug notices
114
 
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.6.9
6
  Contributors: satollo,webagile,michael-travan
7
 
8
  Add a real newsletter system to your blog. For free. With unlimited newsletters and subscribers.
108
 
109
  == Changelog ==
110
 
111
+ = 5.6.9 =
112
+
113
+ * Improved separator block for Outlook compatibility
114
+ * Fixed "read more" button on posts block
115
+ * Fixed lists on notification email
116
+
117
+ = 5.6.8 =
118
 
119
  * Removed debug notices
120
 
subscription/profile.php CHANGED
@@ -157,7 +157,7 @@ $rules = array(0 => __('Optional', 'newsletter'), 1 => __('Required', 'newslette
157
  <tr><th>Label</th><td><?php $controls->text('privacy', 50); ?></td></tr>
158
  <tr><th>Privacy URL</th><td>
159
  <?php if (function_exists('get_privacy_policy_url') && get_privacy_policy_url()) { ?>
160
- <?php $controls->checkbox('privacy_use_wp_url', __('User WordPress privacy URL', 'newsletter')); ?>
161
  (<a href="<?php echo esc_attr(get_privacy_policy_url()) ?>"><?php echo esc_html(get_privacy_policy_url()) ?></a>)
162
  <br>OR<br>
163
  <?php } ?>
157
  <tr><th>Label</th><td><?php $controls->text('privacy', 50); ?></td></tr>
158
  <tr><th>Privacy URL</th><td>
159
  <?php if (function_exists('get_privacy_policy_url') && get_privacy_policy_url()) { ?>
160
+ <?php $controls->checkbox('privacy_use_wp_url', __('Use WordPress privacy URL', 'newsletter')); ?>
161
  (<a href="<?php echo esc_attr(get_privacy_policy_url()) ?>"><?php echo esc_html(get_privacy_policy_url()) ?></a>)
162
  <br>OR<br>
163
  <?php } ?>
subscription/subscription.php CHANGED
@@ -1587,13 +1587,11 @@ class NewsletterSubscription extends NewsletterModule {
1587
  "first name: " . $user->name . "\n" .
1588
  "last name: " . $user->surname . "\n" .
1589
  "gender: " . $user->sex . "\n";
1590
-
1591
- for ($i = 0; $i < NEWSLETTER_LIST_MAX; $i++) {
1592
- if (empty($this->options_profile['list_' . $i])) {
1593
- continue;
1594
- }
1595
- $field = 'list_' . $i;
1596
- $message .= $this->options_profile['list_' . $i] . ': ' . (empty($user->$field) ? "NO" : "YES") . "\n";
1597
  }
1598
 
1599
  for ($i = 0; $i < NEWSLETTER_PROFILE_MAX; $i++) {
@@ -1604,8 +1602,6 @@ class NewsletterSubscription extends NewsletterModule {
1604
  $message .= $this->options_profile['profile_' . $i] . ': ' . $user->$field . "\n";
1605
  }
1606
 
1607
-
1608
-
1609
  $message .= "token: " . $user->token . "\n" .
1610
  "status: " . $user->status . "\n";
1611
  $email = trim($this->options['notify_email']);
1587
  "first name: " . $user->name . "\n" .
1588
  "last name: " . $user->surname . "\n" .
1589
  "gender: " . $user->sex . "\n";
1590
+
1591
+ $lists = $this->get_lists();
1592
+ foreach ($lists as $list) {
1593
+ $field = 'list_' . $list->id;
1594
+ $message .= $list->name . ': ' . (empty($user->$field) ? "NO" : "YES") . "\n";
 
 
1595
  }
1596
 
1597
  for ($i = 0; $i < NEWSLETTER_PROFILE_MAX; $i++) {
1602
  $message .= $this->options_profile['profile_' . $i] . ': ' . $user->$field . "\n";
1603
  }
1604
 
 
 
1605
  $message .= "token: " . $user->token . "\n" .
1606
  "status: " . $user->status . "\n";
1607
  $email = trim($this->options['notify_email']);