WordPress Email Marketing Plugin – WP Email Capture - Version 3.6.3

Version Description

  • Some files didn't manage to upload. I've now pushed them live.
Download this release

Release Info

Developer rhyswynne
Plugin Icon 128x128 WordPress Email Marketing Plugin – WP Email Capture
Version 3.6.3
Comparing to
See all releases

Code changes from version 3.6 to 3.6.3

inc/css/wp-email-capture-default-styles.css ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .wp-email-capture {
2
+ border: 1px solid #999;
3
+ background-color: #CCC;
4
+ padding: 10px;
5
+ margin: 0 auto;
6
+ }
7
+
8
+ .wp-email-capture input[type="text"], .wp-email-capture input[type="email"] {
9
+ width: 75%;
10
+ display: inline-block;
11
+ margin-top: 5px;
12
+ margin-bottom: 5px;
13
+ }
14
+
15
+ .wp-email-capture br {
16
+ clear: both;
17
+ }
18
+
19
+ .wp-email-capture label {
20
+ width: 25%;
21
+ display: inline-block;
22
+ padding-top: 5px;
23
+ padding-bottom: 5px;
24
+ float: left;
25
+ margin-top: 5px;
26
+ margin-bottom: 5px;
27
+ }
28
+
29
+ .wp-email-capture input.wp-email-capture-submit {
30
+ width: 100%;
31
+ clear: both;
32
+ margin-top: 5px;
33
+ margin-bottom: 5px;
34
+ padding-top: 10px;
35
+ padding-bottom: 10px;
36
+ max-width: 100%;
37
+ }
inc/css/wp-email-capture-gutenberg-styles.css ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ .wp-email-capture {
2
+ border: 1px solid #999;
3
+ background-color: #CCC;
4
+ padding: 10px;
5
+ margin: 10px auto;
6
+ }
7
+
8
+ h3.wp-email-capture-admin-form {
9
+ text-align:center;
10
+ }
inc/gutenberg.php CHANGED
@@ -8,7 +8,7 @@ function wp_email_capture_enqueue_block_editor_assets() {
8
  wp_enqueue_script(
9
  'wp-email-capture-gutenberg',
10
  WP_EMAIL_CAPTURE_URL . '/inc/js/block.js',
11
- array( 'wp-blocks', 'wp-i18n', 'wp-element', 'underscore' ),
12
  filemtime( plugin_dir_path( __FILE__ ) . '/js/block.js' )
13
  );
14
  }
@@ -20,6 +20,6 @@ function wp_email_capture_enqueue_block_editor_css() {
20
  'wp-email-capture-gutenberg-css-styles',
21
  WP_EMAIL_CAPTURE_URL . '/inc/css/wp-email-capture-gutenberg-styles.css',
22
  array( 'wp-blocks' ),
23
- filemtime( plugin_dir_path( __FILE__ ) . 'css/wp-email-capture-gutenberg-styles.css' )
24
  );
25
  }
8
  wp_enqueue_script(
9
  'wp-email-capture-gutenberg',
10
  WP_EMAIL_CAPTURE_URL . '/inc/js/block.js',
11
+ array( 'wp-blocks', 'wp-i18n', 'wp-element', 'underscore', 'wp-editor' ),
12
  filemtime( plugin_dir_path( __FILE__ ) . '/js/block.js' )
13
  );
14
  }
20
  'wp-email-capture-gutenberg-css-styles',
21
  WP_EMAIL_CAPTURE_URL . '/inc/css/wp-email-capture-gutenberg-styles.css',
22
  array( 'wp-blocks' ),
23
+ filemtime( plugin_dir_path( __FILE__ ) . '/css/wp-email-capture-gutenberg-styles.css' )
24
  );
25
  }
inc/help.php CHANGED
@@ -47,7 +47,7 @@ function wp_email_capture_setup_help() {
47
  */
48
  $settingspageurl = apply_filters( 'wp_email_capture_change_settings_url', admin_url( 'admin.php?page=wpemailcapturefreesettings' ) );
49
 
50
- $furtherhelpurl = "https://www.wpemailcapture.com/2012/10/how-to-set-up-wp-email-capture-free/?utm_source=plugin&utm_medium=help&utm_campaign=free-setup";
51
 
52
  ?>
53
  <div class="wp_email_capture_help_box">
@@ -92,9 +92,7 @@ function wp_email_capture_options_help() {
92
  <tbody>
93
  <tr valign="top">
94
  <td>
95
-
96
- <p><?php printf( __( 'On the <a href="%s">WP Email Capture Settings Page</a>, as well as being able to structure your email, you can also add the following options.', 'wp-email-capture' ), $settingspageurl ); ?></p>
97
-
98
  <p><?php printf( __( '<strong>Link to us (optional, but appreciated):</strong> This option, when ticked, adds a small, unobtrusive text link beneath the widget. Totally optional, but very appreciated as it helps support the plugin.', 'wp-email-capture' ) ); ?></p>
99
  <p><?php printf( __( '<strong>Make The "Name" field a required field?</strong> If ticked, the user will have to fill in both their name & email address. This means you get better data, but can affect conversion rates.', 'wp-email-capture' ) ); ?></p>
100
  <p><?php printf( __( '<strong>Delimeter (leave blank for a comma)</strong> This will allow you to set the delimiter used in the CSV export. Should commas be used in names, for example, you may want to change this to something like a semi-colon.', 'wp-email-capture' ) ); ?></p>
@@ -151,18 +149,17 @@ function wp_email_capture_display_help() {
151
  function wp_email_capture_list_help() {
152
 
153
  $settingspageurl = apply_filters( 'wp_email_capture_change_settings_url', admin_url( 'admin.php?page=wpemailcapturefreesettings' ) );
154
- $purchasepageurl = apply_filters( 'wp_email_capture_change_purchase_url', "https://www.wpemailcapture.com/premium/?utm_source=help-page&utm_medium=plugin&utm_campaign=wpemailcapture" );
155
- ?>
 
156
  <div class="wp_email_capture_help_box">
157
  <h3 class="header"><?php echo __( 'List Operations', 'wp-email-capture' ); ?></h3>
158
-
159
  <table class="form-table">
160
  <tbody>
161
  <tr valign="top">
162
  <td>
163
-
164
  <p><?php printf( __( 'After a while, your list should have a few subscribers. You can see the list on the <a href="%s">WP Email Capture Settings Page</a>, as well as do a few tasks as well.', 'wp-email-capture' ), $settingspageurl ); ?></p>
165
-
166
  <p><?php printf( __( '<strong>Delete [email-address]:</strong> Next to every email address is a delete button. Use this to delete any email from your list.', 'wp-email-capture' ) ); ?></p>
167
  <p><?php printf( __( '<strong>Export List:</strong> Use this to export your list to a CSV, ready for importing elsewhere.', 'wp-email-capture' ) ); ?></p>
168
  <p><?php printf( __( '<strong>Delete Unconfirmed Email Addresses:</strong> Unconfirmed email addresses are hidden in the database. Use this to delete them to reduce the space taken up by them.', 'wp-email-capture' ) ); ?></p>
@@ -214,4 +211,37 @@ function wp_email_capture_gdpr_help() {
214
  </table>
215
  </div>
216
  <?php
217
- } add_action( 'wp_email_capture_help_boxes', 'wp_email_capture_gdpr_help', 50 );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
47
  */
48
  $settingspageurl = apply_filters( 'wp_email_capture_change_settings_url', admin_url( 'admin.php?page=wpemailcapturefreesettings' ) );
49
 
50
+ $furtherhelpurl = "https://www.wpemailcapture.com/2012/10/how-to-set-up-wp-email-capture-free/?utm_source=plugin&utm_medium=help&utm_campaign=wpemailcapture";
51
 
52
  ?>
53
  <div class="wp_email_capture_help_box">
92
  <tbody>
93
  <tr valign="top">
94
  <td>
95
+ <p><?php printf( __( 'On the <a href="%s">WP Email Capture Settings Page</a>, as well as being able to structure your email, you can also add the following options.', 'wp-email-capture' ), $settingspageurl ); ?></p>
 
 
96
  <p><?php printf( __( '<strong>Link to us (optional, but appreciated):</strong> This option, when ticked, adds a small, unobtrusive text link beneath the widget. Totally optional, but very appreciated as it helps support the plugin.', 'wp-email-capture' ) ); ?></p>
97
  <p><?php printf( __( '<strong>Make The "Name" field a required field?</strong> If ticked, the user will have to fill in both their name & email address. This means you get better data, but can affect conversion rates.', 'wp-email-capture' ) ); ?></p>
98
  <p><?php printf( __( '<strong>Delimeter (leave blank for a comma)</strong> This will allow you to set the delimiter used in the CSV export. Should commas be used in names, for example, you may want to change this to something like a semi-colon.', 'wp-email-capture' ) ); ?></p>
149
  function wp_email_capture_list_help() {
150
 
151
  $settingspageurl = apply_filters( 'wp_email_capture_change_settings_url', admin_url( 'admin.php?page=wpemailcapturefreesettings' ) );
152
+ $purchasepageurl = apply_filters( 'wp_email_capture_change_purchase_url', 'https://www.wpemailcapture.com/premium/?utm_source=help-page&utm_medium=plugin&utm_campaign=wpemailcapture' );
153
+
154
+ ?>
155
  <div class="wp_email_capture_help_box">
156
  <h3 class="header"><?php echo __( 'List Operations', 'wp-email-capture' ); ?></h3>
 
157
  <table class="form-table">
158
  <tbody>
159
  <tr valign="top">
160
  <td>
161
+
162
  <p><?php printf( __( 'After a while, your list should have a few subscribers. You can see the list on the <a href="%s">WP Email Capture Settings Page</a>, as well as do a few tasks as well.', 'wp-email-capture' ), $settingspageurl ); ?></p>
 
163
  <p><?php printf( __( '<strong>Delete [email-address]:</strong> Next to every email address is a delete button. Use this to delete any email from your list.', 'wp-email-capture' ) ); ?></p>
164
  <p><?php printf( __( '<strong>Export List:</strong> Use this to export your list to a CSV, ready for importing elsewhere.', 'wp-email-capture' ) ); ?></p>
165
  <p><?php printf( __( '<strong>Delete Unconfirmed Email Addresses:</strong> Unconfirmed email addresses are hidden in the database. Use this to delete them to reduce the space taken up by them.', 'wp-email-capture' ) ); ?></p>
211
  </table>
212
  </div>
213
  <?php
214
+ }
215
+
216
+
217
+
218
+ /**
219
+ * Displays the help for the "Gutenberg" section of the help documentation.
220
+ *
221
+ * @return void
222
+ */
223
+ function wp_email_capture_gutenberg_help() {
224
+ ?>
225
+ <div class="wp_email_capture_help_box">
226
+ <h3 class="header"><?php echo __( 'New WordPress Editor (Codenamed Gutenberg)', 'wp-email-capture' ); ?></h3>
227
+
228
+ <table class="form-table">
229
+ <tbody>
230
+ <tr valign="top">
231
+ <td>
232
+
233
+ <p><?php printf( __( 'If you are using the new WordPress editor (codenamed Gutenberg), you can add a WP Email Capture Gutenberg content block.' , 'wp-email-capture' ) ); ?></p>
234
+
235
+ <p><?php printf( __( 'Search for "WP Email Capture Form" to add it to your site. It is also located under "Widgets"', 'wp-email-capture' ) ); ?></p>
236
+
237
+ <p><?php printf( __( 'This widget works similar to the WP Email Capture widget, in that you can define an intro text and a title to help introduce your box.', 'wp-email-capture' ) ); ?>
238
+
239
+ <p><?php printf( __( 'There is a placeholder for where the form goes as well, this will show the form on the front end, but not on the back end.', 'wp-email-capture' ) ); ?>
240
+
241
+ </td>
242
+ </tr>
243
+ </tbody>
244
+ </table>
245
+ </div>
246
+ <?php
247
+ }
inc/js/block.js ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ( function( blocks, i18n, element, _ ) {
2
+ var el = element.createElement;
3
+ var Fragment = wp.element.Fragment;
4
+ var RichText = wp.editor.RichText;
5
+
6
+ blocks.registerBlockType( 'wp-email-capture/wp-email-capture-form', {
7
+ title: i18n.__( 'WP Email Capture Form' ),
8
+ icon: 'email-alt',
9
+ category: 'widgets',
10
+ attributes: {
11
+ title: {
12
+ type: 'array',
13
+ source: 'children',
14
+ selector: 'h2',
15
+ },
16
+ subscriptiondetails: {
17
+ type: 'array',
18
+ source: 'children',
19
+ selector: '.steps',
20
+ },
21
+ },
22
+ edit: function( props ) {
23
+ var focusedEditable = props.focus ? props.focus.editable || 'title' : null;
24
+ var attributes = props.attributes;
25
+
26
+ return (
27
+ el(
28
+ Fragment,
29
+ null,
30
+ el( 'div', { className: props.className },
31
+ el( RichText, {
32
+ tagName: 'h2',
33
+ inline: true,
34
+ placeholder: i18n.__( 'WP Email Capture title…' ),
35
+ value: attributes.title,
36
+ onChange: function( value ) {
37
+ props.setAttributes( { title: value } );
38
+ },
39
+ focus: focusedEditable === 'title' ? focus : null,
40
+ onFocus: function( focus ) {
41
+ props.setFocus( _.extend( {}, focus, { editable: 'title' } ) );
42
+ },
43
+ } ),
44
+ el( RichText, {
45
+ tagName: 'p',
46
+ inline: false,
47
+ placeholder: i18n.__( 'Write your signup paragraph here…' ),
48
+ value: attributes.subscriptiondetails,
49
+ onChange: function( value ) {
50
+ props.setAttributes( { subscriptiondetails: value } );
51
+ },
52
+ focus: focusedEditable === 'subscriptiondetails' ? focus : null,
53
+ onFocus: function( focus ) {
54
+ props.setFocus( _.extend( {}, focus, { editable: 'subscriptiondetails' } ) );
55
+ },
56
+ } ),
57
+ el ('div', { className: 'wp-email-capture wp-email-capture-display' },
58
+ el( 'h3', { className: 'wp-email-capture-admin-form' }, i18n.__( 'The WP Email Capture Form Will Be Here' ) )
59
+ )
60
+ )
61
+ )
62
+ );
63
+ },
64
+ save: function( props ) {
65
+ var attributes = props.attributes;
66
+
67
+ return (
68
+ el( 'div', { className: props.className },
69
+ el( 'h2', {}, attributes.title ),
70
+ el( 'div', { className: 'steps' }, attributes.subscriptiondetails ),
71
+ el( 'div', {}, '[wp_email_capture_form]')
72
+ )
73
+ );
74
+ },
75
+ } );
76
+
77
+ } )(
78
+ window.wp.blocks,
79
+ window.wp.i18n,
80
+ window.wp.element,
81
+ window._,
82
+ );
inc/options.php CHANGED
@@ -665,6 +665,29 @@ function wp_email_capture_check_number_is_a_number( $input ) {
665
  function wp_email_capture_get_changelog_array() {
666
 
667
  $changelog = array();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
668
 
669
  $changelog[] = array(
670
  'version' => __( '3.5.3', 'wp-email-capture' ),
665
  function wp_email_capture_get_changelog_array() {
666
 
667
  $changelog = array();
668
+
669
+ $changelog[] = array(
670
+ 'version' => __( '3.6.1', 'wp-email-capture' ),
671
+ 'list' => array(
672
+ __( 'Added Gutenberg information to the help section.', 'wp-email-capture' ),
673
+ __( 'Removed a spelling mistake in one of the URL\'s on the setup form.', 'wp-email-capture' ),
674
+ ),
675
+ );
676
+
677
+ $changelog[] = array(
678
+ 'version' => __( '3.6', 'wp-email-capture' ),
679
+ 'list' => array(
680
+ __( 'Fix Gutenberg compatability bug. If you use Gutenberg, you may have to recreate your blocks, hence the version major bump. Otherwise you should be fine.', 'wp-email-capture' ),
681
+ ),
682
+ );
683
+
684
+
685
+ $changelog[] = array(
686
+ 'version' => __( '3.5.4', 'wp-email-capture' ),
687
+ 'list' => array(
688
+ __( 'Added a note should a version of MySQL earlier than 5.6 is shared.', 'wp-email-capture' ),
689
+ ),
690
+ );
691
 
692
  $changelog[] = array(
693
  'version' => __( '3.5.3', 'wp-email-capture' ),
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
  === WordPress Email Marketing Plugin - WP Email Capture ===
2
  Tags: email marketing, email, mailing list, widget ready, gutenberg ready, gdpr
3
- Requires at least: 4.9.6
4
- Tested up to: 4.9.6
5
- Version: 3.6
6
- Stable tag: 3.6
7
  Contributors: rhyswynne
8
  Donate link: https://www.wpemailcapture.com/premium/?utm_source=donatelink&utm_medium=wordpressorgreadme&utm_campaign=wpemailcapture
9
 
@@ -157,6 +157,17 @@ This plugin does use widgets, so probably yes :)
157
  Wherever you put in %NAME% (spelt exactly like that, uppercase as well), it will be replaced with the name given by the user.
158
 
159
  == Change Log ==
 
 
 
 
 
 
 
 
 
 
 
160
  = 3.6 =
161
  * Fix Gutenberg compatability bug. If you use Gutenberg, you may have to recreate your blocks, hence the version major bump. Otherwise you should be fine.
162
 
1
  === WordPress Email Marketing Plugin - WP Email Capture ===
2
  Tags: email marketing, email, mailing list, widget ready, gutenberg ready, gdpr
3
+ Requires at least: 5.0
4
+ Tested up to: 5.0
5
+ Version: 3.6.3
6
+ Stable tag: 3.6.3
7
  Contributors: rhyswynne
8
  Donate link: https://www.wpemailcapture.com/premium/?utm_source=donatelink&utm_medium=wordpressorgreadme&utm_campaign=wpemailcapture
9
 
157
  Wherever you put in %NAME% (spelt exactly like that, uppercase as well), it will be replaced with the name given by the user.
158
 
159
  == Change Log ==
160
+ = 3.6.3 =
161
+ * Some files didn't manage to upload. I've now pushed them live.
162
+
163
+ = 3.6.2 =
164
+ * Fixed a bug in Gutenberg.
165
+ * Checking for "register_block_type" rather than "the_gutenberg_project" in prep for 5.0
166
+
167
+ = 3.6.1 =
168
+ * Added Gutenberg information to the help section.
169
+ * Removed a spelling mistake in one of the URL's on the setup form.
170
+
171
  = 3.6 =
172
  * Fix Gutenberg compatability bug. If you use Gutenberg, you may have to recreate your blocks, hence the version major bump. Otherwise you should be fine.
173
 
wp-email-capture.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin Name: WP Email Capture
5
  Plugin URI: https://www.wpemailcapture.com/?utm_source=plugin-link&utm_medium=plugin&utm_campaign=wpemailcapture
6
  Description: Captures email addresses for insertion into software such as <a href="https://www.wpemailcapture.com/recommends/aweber" title="Email Marketing">Aweber</a> or <a href="https://www.wpemailcapture.com/recommends/mailchimp/">Mailchimp</a>
7
- Version: 3.6
8
  Author: Winwar Media
9
  Author URI: https://www.winwar.co.uk/?utm_source=author-link&utm_medium=plugin&utm_campaign=wpemailcapture
10
  */
@@ -19,7 +19,7 @@ define( 'WP_EMAIL_CAPTURE_PATH', dirname( __FILE__ ) );
19
  define( 'WP_EMAIL_CAPTURE_URL', plugins_url( '', __FILE__ ) );
20
  define( 'WP_EMAIL_CAPTURE_TEMP_MEMBERS_TABLE', $wpdb->prefix . 'wp_email_capture_temp_members' );
21
  define( 'WP_EMAIL_CAPTURE_REGISTERED_MEMBERS_TABLE', $wpdb->prefix . 'wp_email_capture_registered_members' );
22
- define( 'WP_EMAIL_CAPTURE_VERSION', '3.6' );
23
  define( 'WP_EMAIL_MIN_MYSQL_VERSION', '5.6' );
24
 
25
  require_once WP_EMAIL_CAPTURE_PATH . '/inc/core.php';
@@ -66,9 +66,10 @@ function wp_email_capture_plugins_loaded() {
66
  add_shortcode( 'wp_email_capture_form', 'wp_email_capture_form_process_atts' );
67
 
68
  // Gutenberg Support
69
- if ( function_exists( 'the_gutenberg_project' ) ) {
70
  add_action( 'enqueue_block_editor_assets', 'wp_email_capture_enqueue_block_editor_assets', 10 );
71
  add_action( 'enqueue_block_assets', 'wp_email_capture_enqueue_block_editor_css', 10 );
 
72
  }
73
 
74
  // GDPR
@@ -84,6 +85,7 @@ function wp_email_capture_plugins_loaded() {
84
  add_filter( 'wp_privacy_personal_data_exporters', 'wp_email_capture_register_plugin_exporter', 10 );
85
  add_filter( 'wp_privacy_personal_data_erasers', 'wp_email_capture_register_plugin_eraser', 10 );
86
  //}
 
87
  }
88
  }
89
 
4
  Plugin Name: WP Email Capture
5
  Plugin URI: https://www.wpemailcapture.com/?utm_source=plugin-link&utm_medium=plugin&utm_campaign=wpemailcapture
6
  Description: Captures email addresses for insertion into software such as <a href="https://www.wpemailcapture.com/recommends/aweber" title="Email Marketing">Aweber</a> or <a href="https://www.wpemailcapture.com/recommends/mailchimp/">Mailchimp</a>
7
+ Version: 3.6.3
8
  Author: Winwar Media
9
  Author URI: https://www.winwar.co.uk/?utm_source=author-link&utm_medium=plugin&utm_campaign=wpemailcapture
10
  */
19
  define( 'WP_EMAIL_CAPTURE_URL', plugins_url( '', __FILE__ ) );
20
  define( 'WP_EMAIL_CAPTURE_TEMP_MEMBERS_TABLE', $wpdb->prefix . 'wp_email_capture_temp_members' );
21
  define( 'WP_EMAIL_CAPTURE_REGISTERED_MEMBERS_TABLE', $wpdb->prefix . 'wp_email_capture_registered_members' );
22
+ define( 'WP_EMAIL_CAPTURE_VERSION', '3.6.3' );
23
  define( 'WP_EMAIL_MIN_MYSQL_VERSION', '5.6' );
24
 
25
  require_once WP_EMAIL_CAPTURE_PATH . '/inc/core.php';
66
  add_shortcode( 'wp_email_capture_form', 'wp_email_capture_form_process_atts' );
67
 
68
  // Gutenberg Support
69
+ if ( function_exists( 'register_block_type' ) ) {
70
  add_action( 'enqueue_block_editor_assets', 'wp_email_capture_enqueue_block_editor_assets', 10 );
71
  add_action( 'enqueue_block_assets', 'wp_email_capture_enqueue_block_editor_css', 10 );
72
+ add_action( 'wp_email_capture_help_boxes', 'wp_email_capture_gutenberg_help', 70 );
73
  }
74
 
75
  // GDPR
85
  add_filter( 'wp_privacy_personal_data_exporters', 'wp_email_capture_register_plugin_exporter', 10 );
86
  add_filter( 'wp_privacy_personal_data_erasers', 'wp_email_capture_register_plugin_eraser', 10 );
87
  //}
88
+ add_action( 'wp_email_capture_help_boxes', 'wp_email_capture_gdpr_help', 50 );
89
  }
90
  }
91