Newsletter - Version 5.0.1

Version Description

Download this release

Release Info

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

Code changes from version 5.0.0 to 5.0.1

emails/tnp-composer/_scripts/newsletter-builder.js CHANGED
@@ -81,6 +81,10 @@ jQuery.fn.hover_edit = function () {
81
  // },
82
  });
83
  jQuery("#tnpc-edit-title .color").wpColorPicker().iris('color', target.css("color"));
 
 
 
 
84
  jQuery("#tnpc-edit-title").fadeIn(500);
85
  jQuery("#tnpc-edit-title .tnpc-edit-box").slideDown(500);
86
  jQuery("#tnpc-edit-title .tnpc-edit-box-buttons-save").click(function () {
@@ -88,6 +92,10 @@ jQuery.fn.hover_edit = function () {
88
  jQuery(this).parent().parent().slideUp(500)
89
  target.text(jQuery("#tnpc-edit-title .title").val());
90
  target.css("color", jQuery("#tnpc-edit-title .color").val());
 
 
 
 
91
  tnp_mobile_preview();
92
  });
93
  }
81
  // },
82
  });
83
  jQuery("#tnpc-edit-title .color").wpColorPicker().iris('color', target.css("color"));
84
+
85
+ jQuery("#tnpc-edit-title-font-size").val(parseInt(target.css("fontSize")));
86
+ jQuery("#tnpc-edit-title-text-align").val(target.css("textAlign"));
87
+
88
  jQuery("#tnpc-edit-title").fadeIn(500);
89
  jQuery("#tnpc-edit-title .tnpc-edit-box").slideDown(500);
90
  jQuery("#tnpc-edit-title .tnpc-edit-box-buttons-save").click(function () {
92
  jQuery(this).parent().parent().slideUp(500)
93
  target.text(jQuery("#tnpc-edit-title .title").val());
94
  target.css("color", jQuery("#tnpc-edit-title .color").val());
95
+
96
+ target.css("fontSize", jQuery("#tnpc-edit-title-font-size").val() + "px");
97
+ target.css("textAlign", jQuery("#tnpc-edit-title-text-align").val());
98
+
99
  tnp_mobile_preview();
100
  });
101
  }
emails/tnp-composer/blocks/content-02-heading.block.php CHANGED
@@ -2,11 +2,15 @@
2
  <table border="0" cellpadding="0" cellspacing="0" width="100%" class="tnpc-row" data-id="content-02">
3
  <tr>
4
  <td bgcolor="#ffffff" align="center" style="padding: 15px; font-family: Helvetica, Arial, sans-serif;" class="section-padding edit-block">
 
5
  <table border="0" cellpadding="0" cellspacing="0" width="500" class="responsive-table" style="max-width: 100%!important">
6
  <tr>
7
- <td align="center" style="font-size: 25px; color: #333333;" class="padding-copy tnpc-row-edit" data-type="title">An Awesome Title</td>
 
 
8
  </tr>
9
  </table>
 
10
  </td>
11
  </tr>
12
  </table>
2
  <table border="0" cellpadding="0" cellspacing="0" width="100%" class="tnpc-row" data-id="content-02">
3
  <tr>
4
  <td bgcolor="#ffffff" align="center" style="padding: 15px; font-family: Helvetica, Arial, sans-serif;" class="section-padding edit-block">
5
+
6
  <table border="0" cellpadding="0" cellspacing="0" width="500" class="responsive-table" style="max-width: 100%!important">
7
  <tr>
8
+ <td>
9
+ <div style="line-height: normal; font-size: 25px; color: #333333; text-align: center; border: 0; width: 100%!important; display: block; background-color: transparent" class="tnpc-row-edit" data-type="title">An Awesome Title</div>
10
+ </td>
11
  </tr>
12
  </table>
13
+
14
  </td>
15
  </tr>
16
  </table>
emails/tnp-composer/blocks/content-03-text.block.php CHANGED
@@ -2,9 +2,9 @@
2
  <table border="0" cellpadding="0" cellspacing="0" width="100%" class="tnpc-row" data-id="content-03">
3
  <tr>
4
  <td bgcolor="#ffffff" align="center" style="padding: 20px 15px 20px 15px; font-family: Helvetica, Arial, sans-serif;" class="section-padding edit-block">
5
- <table border="0" cellpadding="0" cellspacing="0" class="responsive-table" style="width: 100%!important">
6
  <tr>
7
- <td align="center" width="500" style="padding: 0 0 0 0; font-size: 16px; line-height: 25px; color: #666666;" 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>
8
  </tr>
9
  </table>
10
  </td>
2
  <table border="0" cellpadding="0" cellspacing="0" width="100%" class="tnpc-row" data-id="content-03">
3
  <tr>
4
  <td bgcolor="#ffffff" align="center" style="padding: 20px 15px 20px 15px; font-family: Helvetica, Arial, sans-serif;" class="section-padding edit-block">
5
+ <table border="0" cellpadding="0" cellspacing="0" class="responsive-table" width="500">
6
  <tr>
7
+ <td align="center" style="padding: 0 0 0 0; font-size: 16px; line-height: 25px; color: #666666;" 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>
8
  </tr>
9
  </table>
10
  </td>
emails/tnp-composer/blocks/content-04-cta.block.php CHANGED
@@ -2,18 +2,23 @@
2
  <table border="0" cellpadding="0" cellspacing="0" width="100%" class="tnpc-row" data-id="content-04">
3
  <tr>
4
  <td bgcolor="#ffffff" align="center" style="padding: 20px 15px 20px 15px; font-family: Helvetica, Arial, sans-serif;" class="section-padding edit-block">
 
5
  <table border="0" cellpadding="0" cellspacing="0" width="500" class="responsive-table">
6
  <tr>
7
  <td align="center" style="padding: 0 0 0 0;" class="padding-copy">
 
8
  <table border="0" cellspacing="0" cellpadding="0" class="responsive-table">
9
  <tr>
10
  <td align="center">
11
- <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="link">Learn More &rarr;</a></td>
 
12
  </tr>
13
  </table>
 
14
  </td>
15
  </tr>
16
  </table>
 
17
  </td>
18
  </tr>
19
  </table>
2
  <table border="0" cellpadding="0" cellspacing="0" width="100%" class="tnpc-row" data-id="content-04">
3
  <tr>
4
  <td bgcolor="#ffffff" align="center" style="padding: 20px 15px 20px 15px; font-family: Helvetica, Arial, sans-serif;" class="section-padding edit-block">
5
+
6
  <table border="0" cellpadding="0" cellspacing="0" width="500" class="responsive-table">
7
  <tr>
8
  <td align="center" style="padding: 0 0 0 0;" class="padding-copy">
9
+
10
  <table border="0" cellspacing="0" cellpadding="0" class="responsive-table">
11
  <tr>
12
  <td align="center">
13
+ <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="link">Learn More &rarr;</a>
14
+ </td>
15
  </tr>
16
  </table>
17
+
18
  </td>
19
  </tr>
20
  </table>
21
+
22
  </td>
23
  </tr>
24
  </table>
emails/tnp-composer/blocks/content-05-image.block.php CHANGED
@@ -2,11 +2,13 @@
2
  <table border="0" cellpadding="0" cellspacing="0" width="100%" class="tnpc-row" data-id="content-05">
3
  <tr>
4
  <td bgcolor="#ffffff" align="center" style="padding: 0; font-family: Helvetica, Arial, sans-serif;" class="section-padding edit-block">
 
5
  <div class="tnpc-row-edit" data-type="image">
6
  <a href="#" target="_blank">
7
- <img src="https://unsplash.it/800/300?image=998" width="800" border="0" alt="Insert alt text here" style="max-width: 100%!important; width: 800px!important; height: auto!important;display: block; color: #666666; font-family: Helvetica, arial, sans-serif; font-size: 16px;" class="img-max">
8
  </a>
9
  </div>
 
10
  </td>
11
  </tr>
12
  </table>
2
  <table border="0" cellpadding="0" cellspacing="0" width="100%" class="tnpc-row" data-id="content-05">
3
  <tr>
4
  <td bgcolor="#ffffff" align="center" style="padding: 0; font-family: Helvetica, Arial, sans-serif;" class="section-padding edit-block">
5
+
6
  <div class="tnpc-row-edit" data-type="image">
7
  <a href="#" target="_blank">
8
+ <img src="https://unsplash.it/800/300?image=998" border="0" alt="Insert alt text here" style="max-width: 100%!important; height: auto!important;display: block; color: #666666;" class="img-max">
9
  </a>
10
  </div>
11
+
12
  </td>
13
  </tr>
14
  </table>
emails/tnp-composer/blocks/content-06-posts.block.php CHANGED
@@ -19,6 +19,7 @@ $bgcolor = isset($_POST['bgcolor']) ? $_POST['bgcolor'] : '#E6E9ED';
19
  <table border="0" cellpadding="0" cellspacing="0" width="100%" class="tnpc-row tnpc-row-posts" data-id="content-06" data-block="content-06-posts">
20
  <tr>
21
  <td bgcolor="<?php echo $bgcolor ?>" align="center" style="padding: 70px 15px 70px 15px;" class="section-padding edit-block">
 
22
  <table border="0" cellpadding="0" cellspacing="0" width="500" style="padding:0 0 20px 0;" class="responsive-table">
23
  <!-- TITLE -->
24
  <tr>
19
  <table border="0" cellpadding="0" cellspacing="0" width="100%" class="tnpc-row tnpc-row-posts" data-id="content-06" data-block="content-06-posts">
20
  <tr>
21
  <td bgcolor="<?php echo $bgcolor ?>" align="center" style="padding: 70px 15px 70px 15px;" class="section-padding edit-block">
22
+
23
  <table border="0" cellpadding="0" cellspacing="0" width="500" style="padding:0 0 20px 0;" class="responsive-table">
24
  <!-- TITLE -->
25
  <tr>
emails/tnp-composer/blocks/footer-01-footer.block.php CHANGED
@@ -1,18 +1,23 @@
1
  <!-- FOOTER -->
2
- <table border="0" cellpadding="0" cellspacing="0" width="100%" class="tnpc-row" data-id="footer-01">
3
  <tr>
4
  <td bgcolor="#ffffff" align="center" style="padding: 20px 0px;" class="edit-block">
5
- <!-- UNSUBSCRIBE COPY -->
6
  <table width="500" border="0" cellspacing="0" cellpadding="0" align="center" class="responsive-table">
7
  <tr>
8
  <td align="center" style="font-size: 12px; line-height: 18px; font-family: Helvetica, Arial, sans-serif; color:#666666;">
9
- <div class="tnpc-row-edit" data-type="text" style="color:#666666;"><?php echo isset($block_options['footer_title']) ? $block_options['footer_title'] : 'Your Company' ?><br/>
10
- <?php echo isset($block_options['footer_contact']) ? $block_options['footer_contact'] : 'Company Address, Phone Number' ?><br/>
11
- <em><?php echo isset($block_options['footer_legal']) ? $block_options['footer_legal'] : 'Copyright or Legal text' ?></em>
12
- </div>
 
 
 
13
  </td>
14
  </tr>
15
  </table>
 
16
  </td>
17
  </tr>
18
  </table>
 
1
  <!-- FOOTER -->
2
+ <table border="0" cellpadding="0" cellspacing="0" width="100%" class="tnpc-row" data-id="footer-02">
3
  <tr>
4
  <td bgcolor="#ffffff" align="center" style="padding: 20px 0px;" class="edit-block">
5
+
6
  <table width="500" border="0" cellspacing="0" cellpadding="0" align="center" class="responsive-table">
7
  <tr>
8
  <td align="center" style="font-size: 12px; line-height: 18px; font-family: Helvetica, Arial, sans-serif; color:#666666;">
9
+
10
+ <a class="original-only tnpc-row-edit" data-type="link" style="color: #666666; text-decoration: none;" href="{profile_url}"><?php _e('Change your subscription', 'newsletter') ?></a>
11
+
12
+ <span class="original-only" style="font-family: Arial, sans-serif; font-size: 12px; color: #444444;">&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;</span>
13
+
14
+ <a style="color: #666666; text-decoration: none;" href="{email_url}" class="tnpc-row-edit" data-type="link"><?php _e('View online', 'newsletter') ?></a>
15
+
16
  </td>
17
  </tr>
18
  </table>
19
+
20
  </td>
21
  </tr>
22
  </table>
23
+ <!-- /FOOTER -->
emails/tnp-composer/blocks/footer-02-canspam.block.php CHANGED
@@ -1,17 +1,23 @@
1
- <!-- FOOTER -->
2
- <table border="0" cellpadding="0" cellspacing="0" width="100%" class="tnpc-row" data-id="footer-02">
3
  <tr>
4
  <td bgcolor="#ffffff" align="center" style="padding: 20px 0px;" class="edit-block">
5
- <!-- UNSUBSCRIBE COPY -->
6
  <table width="500" border="0" cellspacing="0" cellpadding="0" align="center" class="responsive-table">
7
  <tr>
8
  <td align="center" style="font-size: 12px; line-height: 18px; font-family: Helvetica, Arial, sans-serif; color:#666666;">
9
- <a class="original-only tnpc-row-edit" data-type="link" style="color: #666666; text-decoration: none;" href="{unsubscription_url}">Unsubscribe</a>
10
- <span class="original-only" style="font-family: Arial, sans-serif; font-size: 12px; color: #444444;">&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;</span>
11
- <a style="color: #666666; text-decoration: none;" href="{email_url}" class="tnpc-row-edit" data-type="link">View this email in your browser</a>
 
 
 
 
12
  </td>
13
  </tr>
14
  </table>
 
15
  </td>
16
  </tr>
17
  </table>
 
1
+ <!-- CANSPAM -->
2
+ <table border="0" cellpadding="0" cellspacing="0" width="100%" class="tnpc-row" data-id="footer-01">
3
  <tr>
4
  <td bgcolor="#ffffff" align="center" style="padding: 20px 0px;" class="edit-block">
5
+
6
  <table width="500" border="0" cellspacing="0" cellpadding="0" align="center" class="responsive-table">
7
  <tr>
8
  <td align="center" style="font-size: 12px; line-height: 18px; font-family: Helvetica, Arial, sans-serif; color:#666666;">
9
+ <div class="tnpc-row-edit" data-type="text" style="color:#666666;">
10
+ <?php echo !empty($block_options['footer_title']) ? $block_options['footer_title'] : 'Your Company' ?>
11
+ <br/>
12
+ <?php echo !empty($block_options['footer_contact']) ? $block_options['footer_contact'] : 'Company Address, Phone Number' ?>
13
+ <br/>
14
+ <em><?php echo !empty($block_options['footer_legal']) ? $block_options['footer_legal'] : 'Copyright or Legal text' ?></em>
15
+ </div>
16
  </td>
17
  </tr>
18
  </table>
19
+
20
  </td>
21
  </tr>
22
  </table>
23
+ <!-- /CANSPAM -->
emails/tnp-composer/blocks/footer-03-social.block.php CHANGED
@@ -1,9 +1,11 @@
1
- <?php $social_icon_url = plugins_url('newsletter') . '/emails/themes/default/images'; ?>
 
 
2
  <!-- SOCIAL -->
3
  <table border="0" cellpadding="0" cellspacing="0" width="100%" class="tnpc-row" data-id="footer-03">
4
  <tr>
5
  <td bgcolor="#ffffff" align="center" style="padding: 20px 0px;" class="edit-block">
6
- <!-- UNSUBSCRIBE COPY -->
7
  <table width="500" border="0" cellspacing="0" cellpadding="0" align="center" class="responsive-table">
8
  <tr>
9
  <td align="center" style="font-size: 12px; line-height: 18px; font-family: Helvetica, Arial, sans-serif; color:#666666;">
@@ -66,4 +68,5 @@
66
  </table>
67
  </tr>
68
  </table>
 
69
 
1
+ <?php
2
+ $social_icon_url = plugins_url('newsletter') . '/emails/themes/default/images';
3
+ ?>
4
  <!-- SOCIAL -->
5
  <table border="0" cellpadding="0" cellspacing="0" width="100%" class="tnpc-row" data-id="footer-03">
6
  <tr>
7
  <td bgcolor="#ffffff" align="center" style="padding: 20px 0px;" class="edit-block">
8
+
9
  <table width="500" border="0" cellspacing="0" cellpadding="0" align="center" class="responsive-table">
10
  <tr>
11
  <td align="center" style="font-size: 12px; line-height: 18px; font-family: Helvetica, Arial, sans-serif; color:#666666;">
68
  </table>
69
  </tr>
70
  </table>
71
+ <!-- /SOCIAL -->
72
 
emails/tnp-composer/edit.php CHANGED
@@ -102,6 +102,21 @@ if (!defined('ABSPATH')) exit;
102
  <div class="tnpc-edit-box-content-field"><input type="text" class="tnpc-edit-box-content-field-input title"/></div>
103
  <div class="tnpc-edit-box-content-text"><?php _e("Text Color", "newsletter") ?></div>
104
  <div class="tnpc-edit-box-content-field"><input type="text" class="tnpc-edit-box-content-field-input color"/></div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
105
  </div>
106
  <div class="tnpc-edit-box-buttons">
107
  <div class="tnpc-edit-box-buttons-save"><?php _e("Save", "newsletter") ?></div>
102
  <div class="tnpc-edit-box-content-field"><input type="text" class="tnpc-edit-box-content-field-input title"/></div>
103
  <div class="tnpc-edit-box-content-text"><?php _e("Text Color", "newsletter") ?></div>
104
  <div class="tnpc-edit-box-content-field"><input type="text" class="tnpc-edit-box-content-field-input color"/></div>
105
+
106
+ <div class="tnpc-edit-box-content-text"><?php _e("Font size", "newsletter") ?></div>
107
+ <div class="tnpc-edit-box-content-field">
108
+ <select id="tnpc-edit-title-font-size">
109
+ <?php for ($i=10; $i<50; $i++) echo '<option>', $i, '</option>'?>
110
+ </select>
111
+ </div>
112
+
113
+ <div class="tnpc-edit-box-content-text"><?php _e("Text align", "newsletter") ?></div>
114
+ <div class="tnpc-edit-box-content-field">
115
+ <select id="tnpc-edit-title-text-align">
116
+ <option value="center">Center</option>
117
+ <option value="left">Left</option>
118
+ </select>
119
+ </div>
120
  </div>
121
  <div class="tnpc-edit-box-buttons">
122
  <div class="tnpc-edit-box-buttons-save"><?php _e("Save", "newsletter") ?></div>
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.0.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,7 +14,7 @@
14
  */
15
 
16
  // Used as dummy parameter on css and js links
17
- define('NEWSLETTER_VERSION', '5.0.0');
18
 
19
  global $wpdb, $newsletter;
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.0.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.0.1');
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.8
5
- Stable tag: 5.0.0
6
  Contributors: satollo,webagile,michael-travan
7
 
8
  Add a real newsletter system to your blog. For free. With unlimited newsletters and subscribers.
@@ -85,6 +85,12 @@ Thank you, The Newsletter Team
85
 
86
  == Changelog ==
87
 
 
 
 
 
 
 
88
  == 5.0.0 ==
89
 
90
  * Added wp user identifier on subscriber details panel
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.8
5
+ Stable tag: 5.0.1
6
  Contributors: satollo,webagile,michael-travan
7
 
8
  Add a real newsletter system to your blog. For free. With unlimited newsletters and subscribers.
85
 
86
  == Changelog ==
87
 
88
+ == NEXT ==
89
+
90
+ * Fixed and improved the heading block
91
+ * Fixed the can spam block (not showing default texts is not configured)
92
+ * Fixed the footer block changed the unsubscribe url to the profile url
93
+
94
  == 5.0.0 ==
95
 
96
  * Added wp user identifier on subscriber details panel