WordPress Email Marketing Plugin – WP Email Capture - Version 2.3

Version Description

(09/5/12) = * Added support to multiple widgets. * Added language support for the Dutch language.

Download this release

Release Info

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

Code changes from version 2.2.3 to 2.3

inc/widget.php CHANGED
@@ -1,5 +1,71 @@
1
  <?php
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  function wp_email_capture_widget_init() {
4
 
5
 
@@ -148,6 +214,6 @@ function wp_email_capture_widget_init() {
148
 
149
  add_action('plugins_loaded', 'wp_email_capture_widget_init');
150
 
151
-
152
 
153
  ?>
1
  <?php
2
 
3
+ class wp_email_capture_widget_class extends WP_Widget {
4
+
5
+ function wp_email_capture_widget_class() {
6
+ parent::WP_Widget('wp_email_capture_widget_class', __('WP Email Capture','WPEC'), array('description' =>__('Widget for WP Email Capture','WPEC')));
7
+ }
8
+
9
+
10
+ function widget($args, $instance) {
11
+
12
+
13
+
14
+ // $args is an array of strings which help your widget
15
+ // conform to the active theme: before_widget, before_title,
16
+ // after_widget, and after_title are the array keys.
17
+
18
+ extract($args);
19
+ extract($args, EXTR_SKIP);
20
+
21
+ $title = empty($instance['widget_title']) ? __('Subscribe!','WPEC') : apply_filters('widget_title', $instance['widget_title']);
22
+ $text = empty($instance['widget_text']) ? __('Subscribe to my blog for updates','WPEC') : $instance['widget_text'];
23
+
24
+ echo $before_widget;
25
+
26
+ echo $before_title . $title . $after_title;
27
+
28
+ echo $text;
29
+
30
+ wp_email_capture_form();
31
+
32
+ echo $after_widget;
33
+
34
+
35
+ }
36
+
37
+ function update($new_instance, $old_instance) {
38
+ $instance = $old_instance;
39
+ $instance['widget_title'] = strip_tags($new_instance['widget_title']);
40
+ $instance['widget_text'] = strip_tags($new_instance['widget_text']);
41
+ return $instance;
42
+ }
43
+
44
+ /**
45
+ * admin control form
46
+ */
47
+ function form($instance) {
48
+ $default = array( 'title' => __('Subscribe!','WPEC'), 'text' => __('Subscribe to my blog for updates','WPEC') );
49
+ $instance = wp_parse_args( (array) $instance, $default );
50
+
51
+ $title_id = $this->get_field_id('widget_title');
52
+ $title_name = $this->get_field_name('widget_title');
53
+ $text_id = $this->get_field_id('widget_text');
54
+ $text_name = $this->get_field_name('widget_text');
55
+ echo "\r\n".'<p><label for="'.$title_id.'">'.__('Widget title:','WPEC').': <input type="text" class="widefat" id="'.$title_id.'" name="'.$title_name.'" value="'.attribute_escape( $instance['widget_title'] ).'" /><label></p>';
56
+ echo "\r\n".'<p><label for="'.$text_id.'">'.__('Widget text:','WPEC').': <input type="text" class="widefat" id="'.$text_id.'" name="'.$text_name .'" value="'.attribute_escape( $instance['widget_text'] ).'" /><label></p>';
57
+
58
+ }
59
+
60
+ }
61
+
62
+ add_action('widgets_init', wp_email_capture_widget_init);
63
+
64
+ function wp_email_capture_widget_init(){
65
+ // curl need to be installed
66
+ register_widget('wp_email_capture_widget_class');
67
+ }
68
+ /*
69
  function wp_email_capture_widget_init() {
70
 
71
 
214
 
215
  add_action('plugins_loaded', 'wp_email_capture_widget_init');
216
 
217
+ */
218
 
219
  ?>
languages/WPEC-nl_NL.mo ADDED
Binary file
languages/WPEC-nl_NL.po ADDED
@@ -0,0 +1,213 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2012 WP Email Capture
2
+ # This file is distributed under the same license as the WP Email Capture package.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: WP Email Capture 2.1.1\n"
6
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/wp-email-capture\n"
7
+ "POT-Creation-Date: 2012-04-06 12:31:13+00:00\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2012-04-28 14:46+0100\n"
12
+ "Last-Translator: Sander de Jong <sander@zanderz.net>\n"
13
+ "Language-Team: \n"
14
+ "X-Poedit-Language: Dutch\n"
15
+ "X-Poedit-Country: NETHERLANDS\n"
16
+
17
+ #: inc/dashboard.php:13
18
+ #: inc/options.php:151
19
+ msgid "Export"
20
+ msgstr "Exporteren"
21
+
22
+ #: inc/dashboard.php:15
23
+ msgid "Use the button below to export your list as a CSV to use in software such as"
24
+ msgstr "Gebruik onderstaande knop om je lijst als CSV te exporteren voor gebruik in programma's als"
25
+
26
+ #: inc/dashboard.php:22
27
+ #: inc/options.php:165
28
+ msgid "Temporary e-mails"
29
+ msgstr "Tijdelijke e-mails"
30
+
31
+ #: inc/dashboard.php:24
32
+ #: inc/options.php:169
33
+ msgid "There are"
34
+ msgstr "Er zijn"
35
+
36
+ #: inc/dashboard.php:24
37
+ #: inc/options.php:169
38
+ msgid "e-mail addresses that have been unconfirmed. Delete them to save space below."
39
+ msgstr "onbevestigde e-mailadressen. Om ruimte te besparen kun je ze hier verwijderen."
40
+
41
+ #: inc/dashboard.php:40
42
+ msgid "WP Email Capture - At A Glance"
43
+ msgstr "WP Email Capture - In Een Oogopslag"
44
+
45
+ #: inc/display.php:22
46
+ msgid "Name:"
47
+ msgstr "Naam:"
48
+
49
+ #: inc/display.php:24
50
+ msgid "Email:"
51
+ msgstr "E-mail:"
52
+
53
+ #: inc/display.php:36
54
+ #: inc/display.php:71
55
+ msgid "Powered by"
56
+ msgstr "Mogelijk gemaakt door"
57
+
58
+ #: inc/options.php:5
59
+ #: inc/options.php:15
60
+ msgid "WP Email Capture Options"
61
+ msgstr "WP Email Capture-opties"
62
+
63
+ #: inc/options.php:19
64
+ msgid "Recommendations"
65
+ msgstr "Aanbevelingen"
66
+
67
+ #: inc/options.php:21
68
+ msgid "We recommend"
69
+ msgstr "We bevelen"
70
+
71
+ #: inc/options.php:21
72
+ msgid "to run your email campaigns. We have tested this plugin with it."
73
+ msgstr "aan voor je e-mailcampagnes. We hebben deze plugin ermee getest."
74
+
75
+ #: inc/options.php:46
76
+ msgid "Options"
77
+ msgstr "Opties"
78
+
79
+ #: inc/options.php:66
80
+ msgid "Page to redirect to on sign up (full web address ie: http://www.domain.com/this-page/)"
81
+ msgstr "Pagina waar men naar doorgestuurd wordt na registratie (volledig adres, bijv. http://www.domein.nl/deze-pagina/)"
82
+
83
+ #: inc/options.php:74
84
+ msgid "Page to redirect to on confirmation of email address (full web address ie: http://www.domain.com/this-other-page/)"
85
+ msgstr "Pagina waar men naar doorgestuurd wordt na e-mailbevestiging (volledig adres, bijv. http://www.domein.nl/deze-andere-pagina/)"
86
+
87
+ #: inc/options.php:82
88
+ msgid "From Which Email Address"
89
+ msgstr "Van welk e-mailadres"
90
+
91
+ #: inc/options.php:90
92
+ msgid "From Which Name"
93
+ msgstr "Van welke naam"
94
+
95
+ #: inc/options.php:98
96
+ msgid "Subject of Email"
97
+ msgstr "Onderwep van e-mail"
98
+
99
+ #: inc/options.php:106
100
+ msgid "Body of Email"
101
+ msgstr "Inhoud van e-mail"
102
+
103
+ #: inc/options.php:107
104
+ msgid "(use %NAME% to use the form's &quot;Name&quot; field in their welcome email)"
105
+ msgstr "(gebruik %NAAM% om het Naam-veld uit het formulier te gebruiken in de welkoms-mail)"
106
+
107
+ #: inc/options.php:115
108
+ msgid "Link to us (optional, but appreciated)"
109
+ msgstr "Link naar ons (optioneel, maar wordt op prijs gesteld)"
110
+
111
+ #: inc/options.php:139
112
+ msgid "Save Changes"
113
+ msgstr "Veranderingen opslaan"
114
+
115
+ #: inc/options.php:155
116
+ msgid "Use the button below to export your list as a CSV to use in 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>"
117
+ msgstr "Gebruik onderstaande knop om je lijst te exporteren als CSV, voor gebruik in programma's als <a href=\"http://wpemailcapture.com/recommends/aweber\" title=\"Email Marketing\">Aweber</a> of <a href=\"http://wpemailcapture.com/recommends/mailchimp\">Mailchimp</a>"
118
+
119
+ #: inc/options.php:177
120
+ msgid "Delete Current List"
121
+ msgstr "Verwijder huidige lijst"
122
+
123
+ #: inc/options.php:181
124
+ msgid "Want to delete the entire list? Click the link below. <strong>WARNING: </strong> this will delete all confirmed emails, so make sure you have a backup."
125
+ msgstr "Hele lijst verwijderen? Klik op onderstaande link. <strong>WAARSCHUWING: </strong> dit verwijdert alle bevestigde e-mails, dus zorg dat je een reservekopie hebt."
126
+
127
+ #: inc/options.php:191
128
+ msgid "Donations"
129
+ msgstr "Donaties"
130
+
131
+ #: inc/options.php:193
132
+ msgid "If you like this plugin, please consider a small donation to help with future versions &amp; plugins. Donators are thanked on each specific plugin page!"
133
+ msgstr "Als je deze plugin leuk vindt, overweeg dan om een kleine donatie te doen voor toekomstige versies &amp; plugins. Donateurs worden bedankt op iedere pluginpagina!"
134
+
135
+ #: inc/pagedresults.php:141
136
+ msgid "Prev"
137
+ msgstr "Vorige"
138
+
139
+ #: inc/pagedresults.php:169
140
+ msgid "Next"
141
+ msgstr "Volgende"
142
+
143
+ #: inc/process.php:158
144
+ msgid "This is an automated message that is generated because somebody with the IP address of"
145
+ msgstr "Dit is een automatisch bericht omdat iemand met het IP-adres"
146
+
147
+ #: inc/process.php:158
148
+ msgid "(possibly you) on"
149
+ msgstr "(mogelijk jij) op"
150
+
151
+ #: inc/process.php:158
152
+ msgid "filled out the form on the following page"
153
+ msgstr "het formulier invulde op de volgende pagina"
154
+
155
+ #: inc/process.php:159
156
+ msgid "If you are sure this isn't you, please ignore this message, you will not be sent another message."
157
+ msgstr "Als je zeker bent dat jij dit niet bent kun je dit bericht negeren, je ontvangt niet nog een bericht."
158
+
159
+ #: inc/process.php:176
160
+ msgid "Not found your email in our database"
161
+ msgstr "Je e-mailadres is niet gevonden in de database"
162
+
163
+ #: inc/tabledata.php:27
164
+ msgid "Members"
165
+ msgstr "Leden"
166
+
167
+ #: inc/tabledata.php:37
168
+ msgid "Name"
169
+ msgstr "Naam"
170
+
171
+ #: inc/tabledata.php:37
172
+ msgid "Email"
173
+ msgstr "E-mail"
174
+
175
+ #: inc/widget.php:35
176
+ msgid "Subscribe!"
177
+ msgstr "Abonneren!"
178
+
179
+ #: inc/widget.php:37
180
+ msgid "Subscribe to my blog for updates"
181
+ msgstr "Abonneer je op mijn blog voor nieuwe versies"
182
+
183
+ #: inc/widget.php:117
184
+ msgid "Widget title:"
185
+ msgstr "Widget-titel"
186
+
187
+ #: inc/widget.php:119
188
+ msgid "Widget text:"
189
+ msgstr "Widget-tekst"
190
+
191
+ #. #-#-#-#-# plugin.pot (WP Email Capture 2.1.1) #-#-#-#-#
192
+ #. Plugin Name of the plugin/theme
193
+ #: inc/widget.php:135
194
+ #: inc/widget.php:141
195
+ msgid "WP Email Capture"
196
+ msgstr ""
197
+
198
+ #. Plugin URI of the plugin/theme
199
+ msgid "http://www.wpemailcapture.com"
200
+ msgstr ""
201
+
202
+ #. Description of the plugin/theme
203
+ msgid "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>"
204
+ msgstr "Vangt e-mailadressen af om te gebruiken in programma's als <a href=\"http://wpemailcapture.com/recommends/aweber\" title=\"Email Marketing\">Aweber</a> of <a href=\"http://wpemailcapture.com/recommends/mailchimp/\">Mailchimp</a>"
205
+
206
+ #. Author of the plugin/theme
207
+ msgid "Rhys Wynne"
208
+ msgstr ""
209
+
210
+ #. Author URI of the plugin/theme
211
+ msgid "http://www.rhyswynne.co.uk/"
212
+ msgstr ""
213
+
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.2.3
6
- Stable tag: 2.2.2
7
  Contributors: rhyswynne
8
  Donate link: http://www.wpemailcapture.com/donations/
9
 
@@ -36,6 +36,7 @@ Translations have been done by the following parties. Thank you!
36
  * French: Olivier - http://www.ticket-system.net/
37
  * German: Stephan - http://www.computersniffer.com/
38
  * Brazilian Portugese: Nick Lima (@nick_linux) - http://cotidianolinux.com.br
 
39
 
40
  == Installation ==
41
  Upload the plugin (unzipped) into `/wp-content/plugins/`.
@@ -54,7 +55,7 @@ The form can be inserted into the site at any location. However, to put the form
54
 
55
  `<?php if (function_exists('wp_email_capture_form')) { wp_email_capture_form(); } ?>`
56
 
57
- If you want to insert the form within a page, insert into any page the string `[wp_email_capture_form]`. It will be replaced with a simple form.
58
 
59
  == Stylings ==
60
  To style your form, you need to add to your CSS file the following ID declarations. `wp_email_capture` is for sidebar & template widgets, `wp_email_capture_2` is for on page forms.
@@ -106,6 +107,8 @@ To style your form, you need to add to your CSS file the following ID declaratio
106
  3. It's appearance within the template
107
 
108
  == Frequently Asked Questions ==
 
 
109
 
110
  = Can I see/export/autoconfirm �Unverified� Email Addresses? =
111
  No.
@@ -132,6 +135,10 @@ Please report any bugs, support and suggestions to the [WP Email Capture Support
132
  To donate to this plugin, please visit the [WP Email Capture Donations Page](http://www.wpemailcapture.com/donations/)
133
 
134
  == Change Log ==
 
 
 
 
135
  = 2.2 (17/4/12) =
136
  * The [Jemjabella](http://www.jemjabella.co.uk) update, after the individual who supplied most of the bug fixes, cheers!
137
  * Added language support for Brazilian Portugese & German.
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
6
+ Stable tag: 2.3
7
  Contributors: rhyswynne
8
  Donate link: http://www.wpemailcapture.com/donations/
9
 
36
  * French: Olivier - http://www.ticket-system.net/
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/`.
55
 
56
  `<?php if (function_exists('wp_email_capture_form')) { wp_email_capture_form(); } ?>`
57
 
58
+ If you want to insert the form within a page, insert into any post or page the string `[wp_email_capture_form]`. It will be replaced with a simple form.
59
 
60
  == Stylings ==
61
  To style your form, you need to add to your CSS file the following ID declarations. `wp_email_capture` is for sidebar & template widgets, `wp_email_capture_2` is for on page forms.
107
  3. It's appearance within the template
108
 
109
  == Frequently Asked Questions ==
110
+ = I am Upgrading to WP Email Capture 2.3+, why has my WP Email Capture Sidebar Widget disappeared? =
111
+ The WP Email Capture version 2.3 saw the introduction of multiple sidebar widgets. This was coded differently to the pre 2.3 WP Email Capture sidebar widget. As such you will have to recreate the sidebar widget. It's easy to do, but apologies for this - I am working on a fix!
112
 
113
  = Can I see/export/autoconfirm �Unverified� Email Addresses? =
114
  No.
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 (09/5/12) =
139
+ * Added support to multiple widgets.
140
+ * Added language support for the Dutch language.
141
+
142
  = 2.2 (17/4/12) =
143
  * The [Jemjabella](http://www.jemjabella.co.uk) update, after the individual who supplied most of the bug fixes, cheers!
144
  * Added language support for Brazilian Portugese & German.
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.2.3
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
12
 
13
  Author: Rhys Wynne
14