Version Description
- Fixed posts block (link missing)
Download this release
Release Info
Developer | satollo |
Plugin | Newsletter |
Version | 6.0.2 |
Comparing to | |
See all releases |
Code changes from version 6.0.1 to 6.0.2
- admin.css +1 -1
- emails/blocks/posts/block.php +3 -0
- emails/emails.php +9 -3
- plugin.php +2 -2
- readme.txt +6 -2
admin.css
CHANGED
@@ -2143,7 +2143,7 @@ iframe.tnp-editor-preview-desktop {
|
|
2143 |
|
2144 |
#tnp-license-control a {
|
2145 |
border-bottom: none;
|
2146 |
-
|
2147 |
}
|
2148 |
|
2149 |
|
2143 |
|
2144 |
#tnp-license-control a {
|
2145 |
border-bottom: none;
|
2146 |
+
color: #27AE60;
|
2147 |
}
|
2148 |
|
2149 |
|
emails/blocks/posts/block.php
CHANGED
@@ -143,6 +143,9 @@ $alternative_2 = plugins_url('newsletter') . '/emails/blocks/posts/images/blank-
|
|
143 |
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="responsive-table">
|
144 |
|
145 |
<?php foreach ($posts as $post) { ?>
|
|
|
|
|
|
|
146 |
|
147 |
<tr>
|
148 |
<?php if ($show_image) { ?>
|
143 |
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="responsive-table">
|
144 |
|
145 |
<?php foreach ($posts as $post) { ?>
|
146 |
+
<?php
|
147 |
+
$url = tnp_post_permalink($post);
|
148 |
+
?>
|
149 |
|
150 |
<tr>
|
151 |
<?php if ($show_image) { ?>
|
emails/emails.php
CHANGED
@@ -388,6 +388,7 @@ class NewsletterEmails extends NewsletterModule {
|
|
388 |
wp_die(); // this is required to terminate immediately and return a proper response
|
389 |
}
|
390 |
|
|
|
391 |
function get_editor_url($email_id, $editor_type) {
|
392 |
switch ($editor_type) {
|
393 |
case NewsletterEmails::EDITOR_COMPOSER: return admin_url("admin.php") . '?page=newsletter_emails_composer&id=' . $email_id;
|
@@ -396,11 +397,14 @@ class NewsletterEmails extends NewsletterModule {
|
|
396 |
}
|
397 |
}
|
398 |
|
|
|
|
|
|
|
|
|
|
|
|
|
399 |
function get_edit_button($email) {
|
400 |
|
401 |
-
$email_options = maybe_unserialize($email->options);
|
402 |
-
$composer = isset($email_options['composer']);
|
403 |
-
|
404 |
$editor_type = $this->get_editor_type($email);
|
405 |
if ($email->status == 'new') {
|
406 |
$edit_url = $this->get_editor_url($email->id, $editor_type);
|
@@ -423,6 +427,7 @@ class NewsletterEmails extends NewsletterModule {
|
|
423 |
'<i class="fa fa-' . $icon_class . '"></i> ' . __('Edit', 'newsletter') . '</a>';
|
424 |
}
|
425 |
|
|
|
426 |
function get_editor_type($email) {
|
427 |
$email = (object) $email;
|
428 |
$editor_type = $email->editor;
|
@@ -433,6 +438,7 @@ class NewsletterEmails extends NewsletterModule {
|
|
433 |
$editor_type = NewsletterEmails::EDITOR_COMPOSER;
|
434 |
}
|
435 |
// End backward compatibility
|
|
|
436 |
return $editor_type;
|
437 |
}
|
438 |
|
388 |
wp_die(); // this is required to terminate immediately and return a proper response
|
389 |
}
|
390 |
|
391 |
+
/** Returns the correct admin page to edit the newsletter with the correct editor. */
|
392 |
function get_editor_url($email_id, $editor_type) {
|
393 |
switch ($editor_type) {
|
394 |
case NewsletterEmails::EDITOR_COMPOSER: return admin_url("admin.php") . '?page=newsletter_emails_composer&id=' . $email_id;
|
397 |
}
|
398 |
}
|
399 |
|
400 |
+
/**
|
401 |
+
* Returns the button linked to the correct "edit" page for the passed newsletter. The edit page can be an editor
|
402 |
+
* or the targeting page (it depends on newsletter status).
|
403 |
+
*
|
404 |
+
* @param TNP_Email $email
|
405 |
+
*/
|
406 |
function get_edit_button($email) {
|
407 |
|
|
|
|
|
|
|
408 |
$editor_type = $this->get_editor_type($email);
|
409 |
if ($email->status == 'new') {
|
410 |
$edit_url = $this->get_editor_url($email->id, $editor_type);
|
427 |
'<i class="fa fa-' . $icon_class . '"></i> ' . __('Edit', 'newsletter') . '</a>';
|
428 |
}
|
429 |
|
430 |
+
/** Returns the correct editor type for the provided newsletter. Contains backward compatibility code. */
|
431 |
function get_editor_type($email) {
|
432 |
$email = (object) $email;
|
433 |
$editor_type = $email->editor;
|
438 |
$editor_type = NewsletterEmails::EDITOR_COMPOSER;
|
439 |
}
|
440 |
// End backward compatibility
|
441 |
+
|
442 |
return $editor_type;
|
443 |
}
|
444 |
|
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: 6.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.
|
@@ -29,7 +29,7 @@
|
|
29 |
*/
|
30 |
|
31 |
// Used as dummy parameter on css and js links
|
32 |
-
define('NEWSLETTER_VERSION', '6.0.
|
33 |
|
34 |
global $newsletter, $wpdb;
|
35 |
|
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: 6.0.2
|
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.
|
29 |
*/
|
30 |
|
31 |
// Used as dummy parameter on css and js links
|
32 |
+
define('NEWSLETTER_VERSION', '6.0.2');
|
33 |
|
34 |
global $newsletter, $wpdb;
|
35 |
|
readme.txt
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
=== Newsletter ===
|
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: 5.2
|
5 |
-
Stable tag: 6.0.
|
6 |
Contributors: satollo,webagile,michael-travan
|
7 |
|
8 |
Add a real newsletter system to your blog. For free. With unlimited newsletters and subscribers.
|
@@ -122,6 +122,10 @@ Thank you, The Newsletter Team
|
|
122 |
|
123 |
== Changelog ==
|
124 |
|
|
|
|
|
|
|
|
|
125 |
= 6.0.1 =
|
126 |
|
127 |
* Fixed new newsletter creating panel "proceed" button
|
1 |
=== Newsletter ===
|
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: 5.2.1
|
5 |
+
Stable tag: 6.0.2
|
6 |
Contributors: satollo,webagile,michael-travan
|
7 |
|
8 |
Add a real newsletter system to your blog. For free. With unlimited newsletters and subscribers.
|
122 |
|
123 |
== Changelog ==
|
124 |
|
125 |
+
= 6.0.2 =
|
126 |
+
|
127 |
+
* Fixed posts block (link missing)
|
128 |
+
|
129 |
= 6.0.1 =
|
130 |
|
131 |
* Fixed new newsletter creating panel "proceed" button
|