Version Description
- February 14, 2019 =
Maintenance & updated compatibility test with WordPress 5.0.
Download this release
Release Info
Developer | DvanKooten |
Plugin | Newsletter Sign-Up |
Version | 2.0.8 |
Comparing to | |
See all releases |
Code changes from version 2.0.7 to 2.0.8
- includes/NSU_Admin.php +4 -4
- includes/NewsletterSignUpWidget.php +2 -4
- includes/views/checkbox_settings.php +5 -2
- includes/views/form_settings.php +4 -3
- includes/views/parts/sidebar.php +3 -6
- newsletter-sign-up.php +3 -3
- readme.txt +13 -4
includes/NSU_Admin.php
CHANGED
@@ -22,7 +22,7 @@ if (!class_exists('NSU_Admin')) {
|
|
22 |
add_action('bp_include', array($this, 'set_bp_active'));
|
23 |
|
24 |
if(isset($_GET['nsu-hide-mc4wp-notice'])) {
|
25 |
-
add_option("nsu_hide_mc4wp_notice", true);
|
26 |
} elseif($this->options['mailinglist']['provider'] == 'mailchimp' && get_option('nsu_hide_mc4wp_notice') == false) {
|
27 |
add_action( 'admin_notices', array($this, 'notice_mailchimp_for_wp'));
|
28 |
}
|
@@ -58,8 +58,7 @@ if (!class_exists('NSU_Admin')) {
|
|
58 |
if(!stripos($hook, $this->hook)) { return false; }
|
59 |
|
60 |
wp_enqueue_style($this->hook, plugins_url('newsletter-sign-up/assets/css/admin.css'));
|
61 |
-
wp_enqueue_script(array('jquery'));
|
62 |
-
wp_enqueue_script($this->hook, plugins_url('newsletter-sign-up/assets/js/admin.js'));
|
63 |
}
|
64 |
|
65 |
/**
|
@@ -265,7 +264,8 @@ if (!class_exists('NSU_Admin')) {
|
|
265 |
* @return array The new array containing all the settings links
|
266 |
*/
|
267 |
public function add_settings_link($links) {
|
268 |
-
$
|
|
|
269 |
array_unshift($links, $settings_link);
|
270 |
return $links;
|
271 |
}
|
22 |
add_action('bp_include', array($this, 'set_bp_active'));
|
23 |
|
24 |
if(isset($_GET['nsu-hide-mc4wp-notice'])) {
|
25 |
+
add_option("nsu_hide_mc4wp_notice", true, false);
|
26 |
} elseif($this->options['mailinglist']['provider'] == 'mailchimp' && get_option('nsu_hide_mc4wp_notice') == false) {
|
27 |
add_action( 'admin_notices', array($this, 'notice_mailchimp_for_wp'));
|
28 |
}
|
58 |
if(!stripos($hook, $this->hook)) { return false; }
|
59 |
|
60 |
wp_enqueue_style($this->hook, plugins_url('newsletter-sign-up/assets/css/admin.css'));
|
61 |
+
wp_enqueue_script($this->hook, plugins_url('newsletter-sign-up/assets/js/admin.js'), array('jquery'));
|
|
|
62 |
}
|
63 |
|
64 |
/**
|
264 |
* @return array The new array containing all the settings links
|
265 |
*/
|
266 |
public function add_settings_link($links) {
|
267 |
+
$url = admin_url( 'admin.php?page='.$this->hook);
|
268 |
+
$settings_link = '<a href="'. $url . '">Settings</a>';
|
269 |
array_unshift($links, $settings_link);
|
270 |
return $links;
|
271 |
}
|
includes/NewsletterSignUpWidget.php
CHANGED
@@ -82,11 +82,9 @@ if(!class_exists('NewsletterSignUpWidget')) {
|
|
82 |
<p><input id="<?php echo $this->get_field_id('filter'); ?>" name="<?php echo $this->get_field_name('filter'); ?>" type="checkbox" <?php checked(isset($instance['filter']) ? $instance['filter'] : 0); ?> /> <label for="<?php echo $this->get_field_id('filter'); ?>"><?php _e('Automatically add paragraphs'); ?></label></p>
|
83 |
|
84 |
<p>
|
85 |
-
Configure the sign-up form at the <a href="admin.php?page=newsletter-sign-up-form-settings">Newsletter Sign-Up configuration page</a>.
|
86 |
</p>
|
87 |
-
|
88 |
-
<p style="background:#222; color:#eee; padding:10px;">If you like this plugin, consider <a href="https://dannyvankooten.com/donate/">donating $10, $20 or $50</a> as a token of your appreciation.</p>
|
89 |
-
<?php
|
90 |
}
|
91 |
|
92 |
}
|
82 |
<p><input id="<?php echo $this->get_field_id('filter'); ?>" name="<?php echo $this->get_field_name('filter'); ?>" type="checkbox" <?php checked(isset($instance['filter']) ? $instance['filter'] : 0); ?> /> <label for="<?php echo $this->get_field_id('filter'); ?>"><?php _e('Automatically add paragraphs'); ?></label></p>
|
83 |
|
84 |
<p>
|
85 |
+
Configure the sign-up form at the <a href="<?php admin_url( 'admin.php?page=newsletter-sign-up-form-settings'); ?>">Newsletter Sign-Up configuration page</a>.
|
86 |
</p>
|
87 |
+
<?php
|
|
|
|
|
88 |
}
|
89 |
|
90 |
}
|
includes/views/checkbox_settings.php
CHANGED
@@ -30,9 +30,12 @@
|
|
30 |
<td><input type="checkbox" id="ns_precheck_checkbox" name="nsu_checkbox[precheck]" value="1" <?php checked($opts['precheck'], 1); ?> /></td>
|
31 |
</tr>
|
32 |
<tr valign="top">
|
33 |
-
<th scope="row"><label for="do_css_reset">Do a CSS 'reset' on the checkbox.</label>
|
34 |
<td>
|
35 |
-
<
|
|
|
|
|
|
|
36 |
</td>
|
37 |
</tr>
|
38 |
<tr valign="top"><th scope="row">Where to show the sign-up checkbox?</th>
|
30 |
<td><input type="checkbox" id="ns_precheck_checkbox" name="nsu_checkbox[precheck]" value="1" <?php checked($opts['precheck'], 1); ?> /></td>
|
31 |
</tr>
|
32 |
<tr valign="top">
|
33 |
+
<th scope="row"><label for="do_css_reset">Do a CSS 'reset' on the checkbox.</label> </th>
|
34 |
<td>
|
35 |
+
<label>
|
36 |
+
<input type="checkbox" id="do_css_reset" name="nsu_checkbox[css_reset]" value="1" <?php checked($opts['css_reset'], 1); ?> />
|
37 |
+
<small>(check this if checkbox appears in a weird place)</small>
|
38 |
+
</label>
|
39 |
</td>
|
40 |
</tr>
|
41 |
<tr valign="top"><th scope="row">Where to show the sign-up checkbox?</th>
|
includes/views/form_settings.php
CHANGED
@@ -54,9 +54,10 @@
|
|
54 |
<?php } ?>
|
55 |
|
56 |
<tr valign="top">
|
57 |
-
<th scope="row"><label for="ns_load_form_styles">Load
|
58 |
-
<td
|
59 |
-
|
|
|
60 |
</tr>
|
61 |
</table>
|
62 |
|
54 |
<?php } ?>
|
55 |
|
56 |
<tr valign="top">
|
57 |
+
<th scope="row"><label for="ns_load_form_styles">Load CSS</label></th>
|
58 |
+
<td>
|
59 |
+
<label><input type="checkbox" id="ns_load_form_styles" name="nsu_form[load_form_css]" value="1" <?php if($opts['load_form_css'] == 1) echo 'checked'; ?> />
|
60 |
+
Check this to load some default form styles.</label></td>
|
61 |
</tr>
|
62 |
</table>
|
63 |
|
includes/views/parts/sidebar.php
CHANGED
@@ -2,14 +2,10 @@
|
|
2 |
|
3 |
<div id="nsu-donate-box">
|
4 |
<h3>Help us, help you</h3>
|
5 |
-
<p>If you like Newsletter Sign-Up, consider showing a token of your appreciation
|
6 |
-
|
7 |
-
<p>Alternatively, you can: </p>
|
8 |
-
<ul class="ul-square">
|
9 |
<li><a href="https://wordpress.org/support/view/plugin-reviews/newsletter-sign-up?rate=5#postform" target="_blank">Give a ★★★★★ rating on WordPress.org</a></li>
|
10 |
-
<li><a href="https://twitter.com/?status=I%27m%20using%20the%20Newsletter%20Sign-Up%20%23WordPress%20plugin%20by%20%40DannyvanKooten%20on%20my%20website.%20Love%20it!%20http%3A%2F%2Fwordpress.org%2Fplugins%2Fnewsletter-sign-up%2F" target="_blank">Tweet about Newsletter Sign-Up</a></li>
|
11 |
<li><a href="https://wordpress.org/plugins/newsletter-sign-up/#compatibility">Vote "works" on the Wordpress.org plugin page</a>
|
12 |
-
<li class="has-icon dvk-twitter">Follow <a href="https://twitter.com/dannyvankooten">@Dannyvankooten</a> on Twitter</li>
|
13 |
</ul>
|
14 |
</div>
|
15 |
|
@@ -18,6 +14,7 @@
|
|
18 |
<ul class="ul-square">
|
19 |
<li class="has-icon mc4wp"><a href="https://wordpress.org/plugins/mailchimp-for-wp/">MailChimp for WordPress</a></li>
|
20 |
<li><a href="https://wordpress.org/plugins/boxzilla/">Boxzilla (pop-ups)</a></li>
|
|
|
21 |
<li><a href="https://wordpress.org/plugins/dvk-social-sharing/">Social Sharing</a></li>
|
22 |
<li class="has-icon rfb"><a href="https://wordpress.org/plugins/recent-facebook-posts/">Recent Facebook Posts</a></li>
|
23 |
|
2 |
|
3 |
<div id="nsu-donate-box">
|
4 |
<h3>Help us, help you</h3>
|
5 |
+
<p>If you like Newsletter Sign-Up, consider showing a token of your appreciation:</p>
|
6 |
+
<ul class="ul-square">
|
|
|
|
|
7 |
<li><a href="https://wordpress.org/support/view/plugin-reviews/newsletter-sign-up?rate=5#postform" target="_blank">Give a ★★★★★ rating on WordPress.org</a></li>
|
|
|
8 |
<li><a href="https://wordpress.org/plugins/newsletter-sign-up/#compatibility">Vote "works" on the Wordpress.org plugin page</a>
|
|
|
9 |
</ul>
|
10 |
</div>
|
11 |
|
14 |
<ul class="ul-square">
|
15 |
<li class="has-icon mc4wp"><a href="https://wordpress.org/plugins/mailchimp-for-wp/">MailChimp for WordPress</a></li>
|
16 |
<li><a href="https://wordpress.org/plugins/boxzilla/">Boxzilla (pop-ups)</a></li>
|
17 |
+
<li><a href="https://wordpress.org/plugins/html-forms/">HTML Forms</a></li>
|
18 |
<li><a href="https://wordpress.org/plugins/dvk-social-sharing/">Social Sharing</a></li>
|
19 |
<li class="has-icon rfb"><a href="https://wordpress.org/plugins/recent-facebook-posts/">Recent Facebook Posts</a></li>
|
20 |
|
newsletter-sign-up.php
CHANGED
@@ -3,13 +3,13 @@
|
|
3 |
Plugin Name: Newsletter Sign-Up
|
4 |
Plugin URI: https://dannyvankooten.com/wordpress-plugins/newsletter-sign-up/
|
5 |
Description: Adds various ways for your visitors to sign-up to your mailing list (checkbox, widget, form)
|
6 |
-
Version: 2.0.
|
7 |
Author: Danny van Kooten
|
8 |
Author URI: https://dannyvankooten.com
|
9 |
License: GPL2
|
10 |
*/
|
11 |
|
12 |
-
/* Copyright 2010-
|
13 |
|
14 |
This program is free software; you can redistribute it and/or modify
|
15 |
it under the terms of the GNU General Public License, version 2, as
|
@@ -29,7 +29,7 @@ if( ! defined( 'ABSPATH' ) ) {
|
|
29 |
exit;
|
30 |
}
|
31 |
|
32 |
-
define('NSU_VERSION_NUMBER',
|
33 |
define("NSU_PLUGIN_DIR", dirname( __FILE__ ) );
|
34 |
|
35 |
require_once NSU_PLUGIN_DIR . '/includes/NSU.php';
|
3 |
Plugin Name: Newsletter Sign-Up
|
4 |
Plugin URI: https://dannyvankooten.com/wordpress-plugins/newsletter-sign-up/
|
5 |
Description: Adds various ways for your visitors to sign-up to your mailing list (checkbox, widget, form)
|
6 |
+
Version: 2.0.8
|
7 |
Author: Danny van Kooten
|
8 |
Author URI: https://dannyvankooten.com
|
9 |
License: GPL2
|
10 |
*/
|
11 |
|
12 |
+
/* Copyright 2010-2019 Danny van Kooten (email: hi@dannyvankooten.com)
|
13 |
|
14 |
This program is free software; you can redistribute it and/or modify
|
15 |
it under the terms of the GNU General Public License, version 2, as
|
29 |
exit;
|
30 |
}
|
31 |
|
32 |
+
define('NSU_VERSION_NUMBER', '2.0.8');
|
33 |
define("NSU_PLUGIN_DIR", dirname( __FILE__ ) );
|
34 |
|
35 |
require_once NSU_PLUGIN_DIR . '/includes/NSU.php';
|
readme.txt
CHANGED
@@ -1,11 +1,12 @@
|
|
1 |
=== Newsletter Sign-Up ===
|
2 |
-
Contributors: DvanKooten
|
3 |
Donate link: https://dannyvankooten.com/donate/
|
4 |
Tags: newsletter, sign-up, mailchimp, aweber, ymlp, phplist, icontact, newsletter widget, subscribe widget
|
5 |
Requires at least: 4.1
|
6 |
-
Tested up to:
|
7 |
-
Stable tag: 2.0.7
|
8 |
License: GPL2
|
|
|
9 |
|
10 |
Integrate your WordPress site with 3rd-party newsletter services like Aweber and YMLP. Adds various sign-up methods to your site.
|
11 |
|
@@ -83,7 +84,10 @@ Yes, use the following code snippet in your theme files to display a sign-up for
|
|
83 |
|
84 |
`if(function_exists('nsu_form')) nsu_form();`
|
85 |
|
86 |
-
|
|
|
|
|
|
|
87 |
|
88 |
== Screenshots ==
|
89 |
|
@@ -93,6 +97,11 @@ For more questions and answers go have a look at the [Newsletter Sign-Up](https:
|
|
93 |
|
94 |
== Changelog ==
|
95 |
|
|
|
|
|
|
|
|
|
|
|
96 |
= 2.0.7 - August 30, 2016 =
|
97 |
|
98 |
**Fixes**
|
1 |
=== Newsletter Sign-Up ===
|
2 |
+
Contributors: DvanKooten, Ibericode
|
3 |
Donate link: https://dannyvankooten.com/donate/
|
4 |
Tags: newsletter, sign-up, mailchimp, aweber, ymlp, phplist, icontact, newsletter widget, subscribe widget
|
5 |
Requires at least: 4.1
|
6 |
+
Tested up to: 5.0
|
7 |
+
Stable tag: 2.0.7
|
8 |
License: GPL2
|
9 |
+
Requires PHP: 5.3
|
10 |
|
11 |
Integrate your WordPress site with 3rd-party newsletter services like Aweber and YMLP. Adds various sign-up methods to your site.
|
12 |
|
84 |
|
85 |
`if(function_exists('nsu_form')) nsu_form();`
|
86 |
|
87 |
+
= Can I use this with MailChimp? =
|
88 |
+
|
89 |
+
You can, but we recommend using [MailChimp for WordPress](https://wordpress.org/plugins/mailchimp-for-wp/) instead.
|
90 |
+
|
91 |
|
92 |
== Screenshots ==
|
93 |
|
97 |
|
98 |
== Changelog ==
|
99 |
|
100 |
+
= 2.0.8 - February 14, 2019 =
|
101 |
+
|
102 |
+
Maintenance & updated compatibility test with WordPress 5.0.
|
103 |
+
|
104 |
+
|
105 |
= 2.0.7 - August 30, 2016 =
|
106 |
|
107 |
**Fixes**
|