WordPress Email Marketing Plugin – WP Email Capture - Version 2.3.5

Version Description

(01/06/12) = * Added a "textwidget" class to the Widget Text Area so you can style it the same as all other text. * More things you are able to translate, including buttons and more! * Added Hungarian Translation.

Download this release

Release Info

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

Code changes from version 2.3.1 to 2.3.5

inc/dashboard.php CHANGED
@@ -6,7 +6,7 @@ function wp_email_capture_dashboard_widget() {
6
 
7
 
8
  // Display whatever it is you want to show
9
- wp_email_capture_writetable(3, "<strong>Last Three Members To Join</strong><br/><br/>");
10
 
11
  $tempemails = wp_email_capture_count_temp();
12
 
@@ -14,7 +14,7 @@ function wp_email_capture_dashboard_widget() {
14
  echo '<form name="wp_email_capture_export" action="'. esc_url($_SERVER['REQUEST_URI']) . '#list" method="post">';
15
  echo '<label>'.__('Use the button below to export your list as a CSV to use in software such as','WPEC').' <a href="http://www.gospelrhys.co.uk/go/aweber.php" title="Email Marketing">Aweber</a>.</label>';
16
  echo '<input type="hidden" name="wp_email_capture_export" />';
17
- echo '<div class="submit"><input type="submit" value="Export List" /></div>';
18
  echo "</form><br/><br/>";
19
 
20
  $tempemails = wp_email_capture_count_temp();
@@ -24,7 +24,7 @@ function wp_email_capture_dashboard_widget() {
24
  echo '<label>'.__('There are','WPEC').' '. $tempemails . ' '.__('e-mail addresses that have been unconfirmed. Delete them to save space below.','WPEC').'</label>';
25
 
26
  echo '<input type="hidden" name="wp_email_capture_truncate"/>';
27
- echo '<div class="submit"><input type="submit" value="Delete Unconfirmed e-mail Addresses" /></div>';
28
  echo "</form>";
29
 
30
 
6
 
7
 
8
  // Display whatever it is you want to show
9
+ wp_email_capture_writetable(3, "<strong>".__('Last Three Members To Join','WPEC')."</strong><br/><br/>");
10
 
11
  $tempemails = wp_email_capture_count_temp();
12
 
14
  echo '<form name="wp_email_capture_export" action="'. esc_url($_SERVER['REQUEST_URI']) . '#list" method="post">';
15
  echo '<label>'.__('Use the button below to export your list as a CSV to use in software such as','WPEC').' <a href="http://www.gospelrhys.co.uk/go/aweber.php" title="Email Marketing">Aweber</a>.</label>';
16
  echo '<input type="hidden" name="wp_email_capture_export" />';
17
+ echo '<div class="submit"><input type="submit" value="'.__('Export List','WPEC').'" /></div>';
18
  echo "</form><br/><br/>";
19
 
20
  $tempemails = wp_email_capture_count_temp();
24
  echo '<label>'.__('There are','WPEC').' '. $tempemails . ' '.__('e-mail addresses that have been unconfirmed. Delete them to save space below.','WPEC').'</label>';
25
 
26
  echo '<input type="hidden" name="wp_email_capture_truncate"/>';
27
+ echo '<div class="submit"><input type="submit" value="'.__('Delete Unconfirmed e-mail Addresses','WPEC').'" /></div>';
28
  echo "</form>";
29
 
30
 
inc/display.php CHANGED
@@ -15,7 +15,7 @@ $url = addLastCharacter($url);
15
 
16
  $error = sanitize($_GET['wp_email_capture_error']);
17
 
18
- echo "<div style='width:80%;background-color: #FFCCCC; margin: 5px;font-weight'>Error: ". $error ."</div>";
19
 
20
  } ?>
21
 
@@ -25,7 +25,7 @@ $url = addLastCharacter($url);
25
 
26
  <input type="hidden" name="wp_capture_action" value="1" />
27
 
28
- <input name="Submit" type="submit" value="Submit" class="wp-email-capture-submit" />
29
 
30
  </form>
31
 
@@ -58,13 +58,13 @@ $url = addLastCharacter($url);
58
 
59
  }
60
 
61
- $display .= "<label class='wp-email-capture-name' for='wp-email-capture-name'>Name:</label> <input name='wp-email-capture-name' type='text' class='wp-email-capture-name' /><br/>\n";
62
 
63
- $display .= "<label class='wp-email-capture-email' for='wp-email-capture-email'>Email:</label> <input name='wp-email-capture-email' type='text' class='wp-email-capture-email' /><br/>\n";
64
 
65
  $display .= "<input type='hidden' name='wp_capture_action' value='1' />\n";
66
 
67
- $display .= "<input name='Submit' type='submit' value='Submit' class='wp-email-capture-submit' /></form></div>\n";
68
 
69
  if (get_option("wp_email_capture_link") == 1) {
70
 
15
 
16
  $error = sanitize($_GET['wp_email_capture_error']);
17
 
18
+ echo "<div style='width:80%;background-color: #FFCCCC; margin: 5px;font-weight'>".__('Error:','WPEC'). $error ."</div>";
19
 
20
  } ?>
21
 
25
 
26
  <input type="hidden" name="wp_capture_action" value="1" />
27
 
28
+ <input name="Submit" type="submit" value="<?php _e('Submit','WPEC'); ?>" class="wp-email-capture-submit" />
29
 
30
  </form>
31
 
58
 
59
  }
60
 
61
+ $display .= "<label class='wp-email-capture-name' for='wp-email-capture-name'>".__('Name:','WPEC')."</label> <input name='wp-email-capture-name' type='text' class='wp-email-capture-name' /><br/>\n";
62
 
63
+ $display .= "<label class='wp-email-capture-email' for='wp-email-capture-email'>".__('Email:','WPEC')."</label> <input name='wp-email-capture-email' type='text' class='wp-email-capture-email' /><br/>\n";
64
 
65
  $display .= "<input type='hidden' name='wp_capture_action' value='1' />\n";
66
 
67
+ $display .= "<input name='Submit' type='submit' value='".__('Submit','WPEC')."' class='wp-email-capture-submit' /></form></div>\n";
68
 
69
  if (get_option("wp_email_capture_link") == 1) {
70
 
inc/exportcsv.php CHANGED
@@ -1,27 +1,53 @@
1
- <?php
2
-
3
-
4
- function wp_email_capture_export()
5
- {
6
- global $wpdb;
7
-
8
- $csv_output .= "Name,Email";
9
- $csv_output .= "\n";
10
-
11
-
12
- $table_name = $wpdb->prefix . "wp_email_capture_registered_members";
13
- $sql = "SELECT name, email FROM " . $table_name;
14
- $results = $wpdb->get_results($wpdb->prepare($sql));
15
- foreach ($results as $result) {
16
- $csv_output .= $result->name ."," . $result->email ."\n";
17
- }
18
-
19
- $filename = $file."_".date("Y-m-d_H-i",time());
20
- header("Content-type: application/vnd.ms-excel");
21
- header("Content-disposition: csv" . date("Y-m-d") . ".csv");
22
- header( "Content-disposition: filename=".$filename.".csv");
23
- print $csv_output;
24
- exit;
25
- }
26
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
27
  ?>
1
+ <?php
2
+
3
+
4
+
5
+
6
+
7
+ function wp_email_capture_export()
8
+
9
+ {
10
+
11
+ global $wpdb;
12
+
13
+
14
+
15
+ $csv_output .= __('Name','WPEC').",".__('Email','WPEC');
16
+
17
+ $csv_output .= "\n";
18
+
19
+
20
+
21
+
22
+
23
+ $table_name = $wpdb->prefix . "wp_email_capture_registered_members";
24
+
25
+ $sql = "SELECT name, email FROM " . $table_name;
26
+
27
+ $results = $wpdb->get_results($wpdb->prepare($sql));
28
+
29
+ foreach ($results as $result) {
30
+
31
+ $csv_output .= $result->name ."," . $result->email ."\n";
32
+
33
+ }
34
+
35
+
36
+
37
+ $filename = $file."_".date("Y-m-d_H-i",time());
38
+
39
+ header("Content-type: application/vnd.ms-excel");
40
+
41
+ header("Content-disposition: csv" . date("Y-m-d") . ".csv");
42
+
43
+ header( "Content-disposition: filename=".$filename.".csv");
44
+
45
+ print $csv_output;
46
+
47
+ exit;
48
+
49
+ }
50
+
51
+
52
+
53
  ?>
inc/options.php CHANGED
@@ -156,7 +156,7 @@ if (get_option('wp_email_capture_link') == 1) { echo "checked"; } ?>
156
 
157
  echo '<input type="hidden" name="wp_email_capture_export" />';
158
 
159
- echo '<div class="submit"><input type="submit" value="Export List" /></div>';
160
 
161
  echo "</form>";
162
 
@@ -170,7 +170,7 @@ if (get_option('wp_email_capture_link') == 1) { echo "checked"; } ?>
170
 
171
  echo '<input type="hidden" name="wp_email_capture_truncate"/>';
172
 
173
- echo '<div class="submit"><input type="submit" value="Delete Unconfirmed e-mail Addresses" /></div>';
174
 
175
  echo "</form>";
176
 
@@ -182,7 +182,7 @@ echo "<a name='emptyallemails'></a><h3>".__('Delete Current List','WPEC')."</h3>
182
 
183
  echo '<input type="hidden" name="wp_email_capture_delete"/>';
184
 
185
- echo '<div class="submit"><input type="submit" value="Delete Confirmed e-mail Addresses" /></div>';
186
 
187
  echo "</form>";
188
 
156
 
157
  echo '<input type="hidden" name="wp_email_capture_export" />';
158
 
159
+ echo '<div class="submit"><input type="submit" value="'.__('Export List','WPEC').'" /></div>';
160
 
161
  echo "</form>";
162
 
170
 
171
  echo '<input type="hidden" name="wp_email_capture_truncate"/>';
172
 
173
+ echo '<div class="submit"><input type="submit" value="'.__('Delete Unconfirmed e-mail Addresses','WPEC').'" /></div>';
174
 
175
  echo "</form>";
176
 
182
 
183
  echo '<input type="hidden" name="wp_email_capture_delete"/>';
184
 
185
+ echo '<div class="submit"><input type="submit" value="'.__('Delete Confirmed e-mail Addresses','WPEC').'" /></div>';
186
 
187
  echo "</form>";
188
 
inc/tabledata.php CHANGED
@@ -60,7 +60,7 @@ function wp_email_capture_formdelete($id, $email)
60
  {
61
  return "<form action='" . esc_url($_SERVER['REQUEST_URI']) . "#list' method='post'>
62
  <input type='hidden' name='wp_email_capture_deleteid' value='". $id."' />
63
- <input type='submit' value='Delete ". $email ."' style='width: 300px;' />
64
  </form>";
65
  }
66
 
60
  {
61
  return "<form action='" . esc_url($_SERVER['REQUEST_URI']) . "#list' method='post'>
62
  <input type='hidden' name='wp_email_capture_deleteid' value='". $id."' />
63
+ <input type='submit' value='".__('Delete','WPEC'). $email ."' style='width: 300px;' />
64
  </form>";
65
  }
66
 
inc/widget.php CHANGED
@@ -25,7 +25,7 @@ class wp_email_capture_widget_class extends WP_Widget {
25
 
26
  echo $before_title . $title . $after_title;
27
 
28
- echo $text;
29
 
30
  wp_email_capture_form();
31
 
25
 
26
  echo $before_title . $title . $after_title;
27
 
28
+ echo '<div class="textwidget">'.$text.'</div>';
29
 
30
  wp_email_capture_form();
31
 
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Tags: email, marketing, capture, form, affiliates, mailing lists, email marketing, widget ready
3
  Requires at least: 3.0
4
  Tested up to: 3.3.1
5
- Version: 2.3.1
6
- Stable tag: 2.3.1
7
  Contributors: rhyswynne
8
  Donate link: http://www.wpemailcapture.com/donations/
9
 
@@ -28,6 +28,7 @@ Keep in Contact:-
28
 
29
  * [WP Email Capture on Facebook](http://www.facebook.com/wpemailcapture)
30
  * [@WPEmailCapture](http://www.twitter.com/wpemailcapture) on Twitter
 
31
 
32
  Translation Credits:-
33
 
@@ -37,6 +38,7 @@ Translations have been done by the following parties. Thank you!
37
  * German: Stephan - http://www.computersniffer.com/
38
  * Brazilian Portugese: Nick Lima (@nick_linux) - http://cotidianolinux.com.br
39
  * Dutch Translation: Sander - http://www.zanderz.net/
 
40
 
41
  == Installation ==
42
  Upload the plugin (unzipped) into `/wp-content/plugins/`.
@@ -135,6 +137,11 @@ Please report any bugs, support and suggestions to the [WP Email Capture Support
135
  To donate to this plugin, please visit the [WP Email Capture Donations Page](http://www.wpemailcapture.com/donations/)
136
 
137
  == Change Log ==
 
 
 
 
 
138
  = 2.3.1 (22/5/12) =
139
  * Bug fixes so notices shouldn't appear in debug mode.
140
  * Added a for attribute to the form for accessibility.
2
  Tags: email, marketing, capture, form, affiliates, mailing lists, email marketing, widget ready
3
  Requires at least: 3.0
4
  Tested up to: 3.3.1
5
+ Version: 2.3.5
6
+ Stable tag: 2.3.5
7
  Contributors: rhyswynne
8
  Donate link: http://www.wpemailcapture.com/donations/
9
 
28
 
29
  * [WP Email Capture on Facebook](http://www.facebook.com/wpemailcapture)
30
  * [@WPEmailCapture](http://www.twitter.com/wpemailcapture) on Twitter
31
+ * For support requests please visit the [FAQ's](http://wpemailcapture.com/free-plugin/frequently-asked-questions/) or [contact me](http://wpemailcapture.com/support/). Please note I rarely check the WordPress Forums so therefore any question asked there may go unanswered by me.
32
 
33
  Translation Credits:-
34
 
38
  * German: Stephan - http://www.computersniffer.com/
39
  * Brazilian Portugese: Nick Lima (@nick_linux) - http://cotidianolinux.com.br
40
  * Dutch Translation: Sander - http://www.zanderz.net/
41
+ * Hungarian Translation: Surbma - http://surbma.hu/
42
 
43
  == Installation ==
44
  Upload the plugin (unzipped) into `/wp-content/plugins/`.
137
  To donate to this plugin, please visit the [WP Email Capture Donations Page](http://www.wpemailcapture.com/donations/)
138
 
139
  == Change Log ==
140
+ = 2.3.5 (01/06/12) =
141
+ * Added a "textwidget" class to the Widget Text Area so you can style it the same as all other text.
142
+ * More things you are able to translate, including buttons and more!
143
+ * Added Hungarian Translation.
144
+
145
  = 2.3.1 (22/5/12) =
146
  * Bug fixes so notices shouldn't appear in debug mode.
147
  * Added a for attribute to the form for accessibility.
wp-email-capture.php CHANGED
@@ -8,7 +8,7 @@ Plugin URI: http://www.wpemailcapture.com
8
 
9
  Description: Captures email addresses for insertion into software such as <a href="http://wpemailcapture.com/recommends/aweber" title="Email Marketing">Aweber</a> or <a href="http://wpemailcapture.com/recommends/mailchimp/">Mailchimp</a>
10
 
11
- Version: 2.3.1
12
 
13
  Author: Rhys Wynne
14
 
8
 
9
  Description: Captures email addresses for insertion into software such as <a href="http://wpemailcapture.com/recommends/aweber" title="Email Marketing">Aweber</a> or <a href="http://wpemailcapture.com/recommends/mailchimp/">Mailchimp</a>
10
 
11
+ Version: 2.3.5
12
 
13
  Author: Rhys Wynne
14