Newsletter - Version 4.8.3

Version Description

  • Fixed debug notices on widgets
  • Fixed Vimeo icon on social block
  • Fixed javascript in the editor
Download this release

Release Info

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

Code changes from version 4.8.2 to 4.8.3

emails/edit.php CHANGED
@@ -310,7 +310,7 @@ if ($email['editor'] == 0) {
310
  media.attributes.url = "http:" + media.attributes.url;
311
 
312
  if (!media.attributes.mime.startsWith("image")) {
313
- if (templateEditor) {
314
  templateEditor.getDoc().replaceRange(url, templateEditor.getDoc().getCursor());
315
  } else {
316
  tinyMCE.execCommand('mceInsertLink', false, media.attributes.url);
@@ -318,7 +318,7 @@ if ($email['editor'] == 0) {
318
  } else {
319
  var display = tnp_uploader.state().display(media);
320
  var url = media.attributes.sizes[display.attributes.size].url;
321
- if (templateEditor) {
322
  templateEditor.getDoc().replaceRange('<img src="' + url + '">', templateEditor.getDoc().getCursor());
323
  } else {
324
  tinyMCE.execCommand('mceInsertContent', false, '<img src="' + url + '" />');
310
  media.attributes.url = "http:" + media.attributes.url;
311
 
312
  if (!media.attributes.mime.startsWith("image")) {
313
+ if (typeof templateEditor !== "undefined") {
314
  templateEditor.getDoc().replaceRange(url, templateEditor.getDoc().getCursor());
315
  } else {
316
  tinyMCE.execCommand('mceInsertLink', false, media.attributes.url);
318
  } else {
319
  var display = tnp_uploader.state().display(media);
320
  var url = media.attributes.sizes[display.attributes.size].url;
321
+ if (typeof templateEditor !== "undefined") {
322
  templateEditor.getDoc().replaceRange('<img src="' + url + '">', templateEditor.getDoc().getCursor());
323
  } else {
324
  tinyMCE.execCommand('mceInsertContent', false, '<img src="' + url + '" />');
emails/themes/default/social.php CHANGED
@@ -59,5 +59,10 @@ $social_icon_url = plugins_url('newsletter') . '/emails/themes/default/images';
59
  <a href="<?php echo esc_attr($theme_options['theme_instagram']) ?>"><img src="<?php echo $social_icon_url ?>/instagram.png"><br>Instagram</a>
60
  </td>
61
  <?php } ?>
 
 
 
 
 
62
  </tr>
63
  </table>
59
  <a href="<?php echo esc_attr($theme_options['theme_instagram']) ?>"><img src="<?php echo $social_icon_url ?>/instagram.png"><br>Instagram</a>
60
  </td>
61
  <?php } ?>
62
+ <?php if (!empty($theme_options['theme_vimeo'])) { ?>
63
+ <td style="text-align: center; vertical-align: top" align="center" valign="top">
64
+ <a href="<?php echo esc_attr($theme_options['theme_vimeo']) ?>"><img src="<?php echo $social_icon_url ?>/vimeo.png"><br>Vimeo</a>
65
+ </td>
66
+ <?php } ?>
67
  </tr>
68
  </table>
emails/tnp-composer/blocks/footer-03-social.block.php CHANGED
@@ -52,6 +52,11 @@
52
  <a href="<?php echo $block_options['instagram'] ?>"><img src="<?php echo $social_icon_url ?>/instagram.png" alt="Instagram"></a>
53
  </span>
54
  <?php } ?>
 
 
 
 
 
55
  <?php if (!$configured) { ?>
56
  <p>Configure your social links in the <a href="?page=newsletter_main_info">Social configuration section</a>.<br/>
57
  Then remove and add again this block.</p>
52
  <a href="<?php echo $block_options['instagram'] ?>"><img src="<?php echo $social_icon_url ?>/instagram.png" alt="Instagram"></a>
53
  </span>
54
  <?php } ?>
55
+ <?php if (!empty($block_options['vimeo_url'])) { $configured = true; ?>
56
+ <span class="tnpc-row-edit" data-type="image">
57
+ <a href="<?php echo $block_options['vimeo'] ?>"><img src="<?php echo $social_icon_url ?>/vimeo.png" alt="Vimeo"></a>
58
+ </span>
59
+ <?php } ?>
60
  <?php if (!$configured) { ?>
61
  <p>Configure your social links in the <a href="?page=newsletter_main_info">Social configuration section</a>.<br/>
62
  Then remove and add again this block.</p>
plugin.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin Name: Newsletter
5
  Plugin URI: http://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="http://www.thenewsletterplugin.com/category/release">this page</a> to know what's changed.</strong>
7
- Version: 4.8.2
8
  Author: Stefano Lissa & The Newsletter Team
9
  Author URI: http://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', '4.8.2');
18
 
19
  global $wpdb, $newsletter;
20
 
4
  Plugin Name: Newsletter
5
  Plugin URI: http://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="http://www.thenewsletterplugin.com/category/release">this page</a> to know what's changed.</strong>
7
+ Version: 4.8.3
8
  Author: Stefano Lissa & The Newsletter Team
9
  Author URI: http://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', '4.8.3');
18
 
19
  global $wpdb, $newsletter;
20
 
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.7.2
5
- Stable tag: 4.8.2
6
  Contributors: satollo,webagile,michael-travan
7
 
8
  Add a real newsletter system to your blog. For free. With unlimited newsletters and subscribers.
@@ -77,6 +77,12 @@ Thank you, The Newsletter Team
77
 
78
  == Changelog ==
79
 
 
 
 
 
 
 
80
  = 4.8.2 =
81
 
82
  * Changed few labels
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.7.2
5
+ Stable tag: 4.8.3
6
  Contributors: satollo,webagile,michael-travan
7
 
8
  Add a real newsletter system to your blog. For free. With unlimited newsletters and subscribers.
77
 
78
  == Changelog ==
79
 
80
+ = 4.8.3 =
81
+
82
+ * Fixed debug notices on widgets
83
+ * Fixed Vimeo icon on social block
84
+ * Fixed javascript in the editor
85
+
86
  = 4.8.2 =
87
 
88
  * Changed few labels
widget/minimal.php CHANGED
@@ -30,7 +30,7 @@ class NewsletterWidgetMinimal extends WP_Widget {
30
 
31
  $form = '<div class="tnp tnp-widget-minimal">';
32
  $form .= '<form action="' . esc_attr(home_url('/')) . '?na=s" method="post">';
33
- if (is_array($instance['nl'])) {
34
  foreach ($instance['nl'] as $a) {
35
  $form .= "<input type='hidden' name='nl[]' value='" . ((int) trim($a)) . "'>\n";
36
  }
@@ -56,7 +56,7 @@ class NewsletterWidgetMinimal extends WP_Widget {
56
  if (!is_array($instance)) {
57
  $instance = array();
58
  }
59
- $instance = array_merge(array('title' => '', 'text' => ''), $instance);
60
  $options_profile = get_option('newsletter_profile');
61
  if (!is_array($instance['nl'])) {
62
  $instance['nl'] = array();
30
 
31
  $form = '<div class="tnp tnp-widget-minimal">';
32
  $form .= '<form action="' . esc_attr(home_url('/')) . '?na=s" method="post">';
33
+ if (isset($instance['nl']) && is_array($instance['nl'])) {
34
  foreach ($instance['nl'] as $a) {
35
  $form .= "<input type='hidden' name='nl[]' value='" . ((int) trim($a)) . "'>\n";
36
  }
56
  if (!is_array($instance)) {
57
  $instance = array();
58
  }
59
+ $instance = array_merge(array('title' => '', 'text' => '', 'button'=>''), $instance);
60
  $options_profile = get_option('newsletter_profile');
61
  if (!is_array($instance['nl'])) {
62
  $instance['nl'] = array();
widget/standard.php CHANGED
@@ -35,7 +35,7 @@ class NewsletterWidget extends WP_Widget {
35
  // Referrer
36
  $form .= '<input type="hidden" name="nr" value="widget"/>';
37
 
38
- if (is_array($instance['nl'])) {
39
  foreach ($instance['nl'] as $a) {
40
  $form .= "<input type='hidden' name='nl[]' value='" . ((int) trim($a)) . "'>\n";
41
  }
35
  // Referrer
36
  $form .= '<input type="hidden" name="nr" value="widget"/>';
37
 
38
+ if (isset($instance['nl']) && is_array($instance['nl'])) {
39
  foreach ($instance['nl'] as $a) {
40
  $form .= "<input type='hidden' name='nl[]' value='" . ((int) trim($a)) . "'>\n";
41
  }