Genesis eNews Extended - Version 0.1.4

Version Description

  • Adds l18n support for other languages (thanks David Decker!)
  • Adds German translation (thanks David Decker!)
Download this release

Release Info

Developer kraftbj
Plugin Icon wp plugin Genesis eNews Extended
Version 0.1.4
Comparing to
See all releases

Code changes from version 0.1.3 to 0.1.4

languages/default.po ADDED
@@ -0,0 +1,129 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # This Language File: Copyright (C) 2012 by David Decker of deckerweb.de & genesisthemes.de
2
+ # This file is distributed under the same license as the Genesis eNews Extended Plugin package.
3
+ #
4
+ msgid ""
5
+ msgstr ""
6
+ "Project-Id-Version: Genesis eNews Extended v0.1.3\n"
7
+ "Report-Msgid-Bugs-To: https://github.com/kraftbj/Genesis-eNews-Extended/issues\n"
8
+ "POT-Creation-Date: 2012-10-17 15:31:12+0100\n"
9
+ "PO-Revision-Date: 2012-10-17 15:31:12+0000\n"
10
+ "Last-Translator: David Decker <deckerweb.mobil@googlemail.com>\n"
11
+ "Language-Team: DECKERWEB <deckerweb.mobil@googlemail.com>\n"
12
+ "MIME-Version: 1.0\n"
13
+ "Content-Type: text/plain; charset=UTF-8\n"
14
+ "Content-Transfer-Encoding: 8bit\n"
15
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
16
+ "X-Poedit-Language: German\n"
17
+ "X-Poedit-Country: GERMANY\n"
18
+ "X-Poedit-SourceCharset: utf-8\n"
19
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
20
+ "X-Poedit-Basepath: \n"
21
+ "X-Poedit-Bookmarks: \n"
22
+ "X-Poedit-SearchPath-0: .\n"
23
+ "X-Textdomain-Support: yes"
24
+
25
+ #. translators: plugin header field 'Name'
26
+ #: plugin.php:0
27
+ #@ genesis-enews-extended
28
+ msgid "Genesis eNews Extended"
29
+ msgstr ""
30
+
31
+ #. translators: plugin header field 'PluginURI'
32
+ #: plugin.php:0
33
+ #@ genesis-enews-extended
34
+ msgid "http://www.brandonkraft.com/contrib/plugins/genesis-enews-extended/"
35
+ msgstr ""
36
+
37
+ #. translators: plugin header field 'Description'
38
+ #: plugin.php:0
39
+ #@ genesis-enews-extended
40
+ msgid "Replaces the Genesis eNews Widget to allow easier use of additional mailing services."
41
+ msgstr ""
42
+
43
+ #. translators: plugin header field 'Author'
44
+ #: plugin.php:0
45
+ #@ genesis-enews-extended
46
+ msgid "Brandon Kraft"
47
+ msgstr ""
48
+
49
+ #. translators: plugin header field 'AuthorURI'
50
+ #: plugin.php:0
51
+ #@ genesis-enews-extended
52
+ msgid "http://www.brandonkraft.com"
53
+ msgstr ""
54
+
55
+ #. translators: plugin header field 'Version'
56
+ #: plugin.php:0
57
+ #@ genesis-enews-extended
58
+ msgid "0.1.4"
59
+ msgstr ""
60
+
61
+ #: plugin.php:54
62
+ #@ genesis-enews-extended
63
+ msgid "Displays subscribe form"
64
+ msgstr ""
65
+
66
+ #: plugin.php:57
67
+ #@ genesis-enews-extended
68
+ msgid "Genesis - eNews Extended"
69
+ msgstr ""
70
+
71
+ #: plugin.php:145
72
+ #@ genesis-enews-extended
73
+ msgid "Title"
74
+ msgstr ""
75
+
76
+ #: plugin.php:150
77
+ #@ genesis-enews-extended
78
+ msgid "Text To Show"
79
+ msgstr ""
80
+
81
+ #: plugin.php:155
82
+ #@ genesis-enews-extended
83
+ msgid "Google/Feedburner ID"
84
+ msgstr ""
85
+
86
+ #: plugin.php:157
87
+ #@ genesis-enews-extended
88
+ msgid "Entering your Feedburner ID here will deactivate the custom options below."
89
+ msgstr ""
90
+
91
+ #: plugin.php:161
92
+ #@ genesis-enews-extended
93
+ msgid "Form Action"
94
+ msgstr ""
95
+
96
+ #: plugin.php:166
97
+ #@ genesis-enews-extended
98
+ msgid "E-Mail Field"
99
+ msgstr ""
100
+
101
+ #: plugin.php:171
102
+ #@ genesis-enews-extended
103
+ msgid "Hidden Fields"
104
+ msgstr ""
105
+
106
+ #: plugin.php:173
107
+ #@ genesis-enews-extended
108
+ msgid "Not all services use hidden fields."
109
+ msgstr ""
110
+
111
+ #: plugin.php:177
112
+ #@ genesis-enews-extended
113
+ msgid "Enter your email address..."
114
+ msgstr ""
115
+
116
+ #: plugin.php:178
117
+ #@ genesis-enews-extended
118
+ msgid "Input Text"
119
+ msgstr ""
120
+
121
+ #: plugin.php:183
122
+ #@ genesis-enews-extended
123
+ msgid "Go"
124
+ msgstr ""
125
+
126
+ #: plugin.php:184
127
+ #@ genesis-enews-extended
128
+ msgid "Button Text"
129
+ msgstr ""
languages/default.pot ADDED
@@ -0,0 +1,130 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # This Language File: Copyright (C) 2012 by David Decker of deckerweb.de & genesisthemes.de
2
+ # This file is distributed under the same license as the Genesis eNews Extended Plugin package.
3
+ #
4
+ msgid ""
5
+ msgstr ""
6
+ "Project-Id-Version: Genesis eNews Extended v0.1.3\n"
7
+ "Report-Msgid-Bugs-To: https://github.com/kraftbj/Genesis-eNews-Extended/issues\n"
8
+ "POT-Creation-Date: 2012-10-17 15:31:12+0100\n"
9
+ "PO-Revision-Date: 2012-10-17 15:31:12+0000\n"
10
+ "Last-Translator: David Decker <deckerweb.mobil@googlemail.com>\n"
11
+ "Language-Team: DECKERWEB <deckerweb.mobil@googlemail.com>\n"
12
+ "MIME-Version: 1.0\n"
13
+ "Content-Type: text/plain; charset=UTF-8\n"
14
+ "Content-Transfer-Encoding: 8bit\n"
15
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
16
+ "X-Poedit-Language: German\n"
17
+ "X-Poedit-Country: GERMANY\n"
18
+ "X-Poedit-SourceCharset: utf-8\n"
19
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
20
+ "X-Poedit-Basepath: \n"
21
+ "X-Poedit-Bookmarks: \n"
22
+ "X-Poedit-SearchPath-0: .\n"
23
+ "X-Textdomain-Support: yes"
24
+
25
+ #. translators: plugin header field 'Name'
26
+ #: plugin.php:0
27
+ #@ genesis-enews-extended
28
+ msgid "Genesis eNews Extended"
29
+ msgstr ""
30
+
31
+ #. translators: plugin header field 'PluginURI'
32
+ #: plugin.php:0
33
+ #@ genesis-enews-extended
34
+ msgid "http://www.brandonkraft.com/contrib/plugins/genesis-enews-extended/"
35
+ msgstr ""
36
+
37
+ #. translators: plugin header field 'Description'
38
+ #: plugin.php:0
39
+ #@ genesis-enews-extended
40
+ msgid "Replaces the Genesis eNews Widget to allow easier use of additional mailing services."
41
+ msgstr ""
42
+
43
+ #. translators: plugin header field 'Author'
44
+ #: plugin.php:0
45
+ #@ genesis-enews-extended
46
+ msgid "Brandon Kraft"
47
+ msgstr ""
48
+
49
+ #. translators: plugin header field 'AuthorURI'
50
+ #: plugin.php:0
51
+ #@ genesis-enews-extended
52
+ msgid "http://www.brandonkraft.com"
53
+ msgstr ""
54
+
55
+ #. translators: plugin header field 'Version'
56
+ #: plugin.php:0
57
+ #@ genesis-enews-extended
58
+ msgid "0.1.4"
59
+ msgstr ""
60
+
61
+ #: plugin.php:54
62
+ #@ genesis-enews-extended
63
+ msgid "Displays subscribe form"
64
+ msgstr ""
65
+
66
+ #: plugin.php:57
67
+ #@ genesis-enews-extended
68
+ msgid "Genesis - eNews Extended"
69
+ msgstr ""
70
+
71
+ #: plugin.php:145
72
+ #@ genesis-enews-extended
73
+ msgid "Title"
74
+ msgstr ""
75
+
76
+ #: plugin.php:150
77
+ #@ genesis-enews-extended
78
+ msgid "Text To Show"
79
+ msgstr ""
80
+
81
+ #: plugin.php:155
82
+ #@ genesis-enews-extended
83
+ msgid "Google/Feedburner ID"
84
+ msgstr ""
85
+
86
+ #: plugin.php:157
87
+ #@ genesis-enews-extended
88
+ msgid "Entering your Feedburner ID here will deactivate the custom options below."
89
+ msgstr ""
90
+
91
+ #: plugin.php:161
92
+ #@ genesis-enews-extended
93
+ msgid "Form Action"
94
+ msgstr ""
95
+
96
+ #: plugin.php:166
97
+ #@ genesis-enews-extended
98
+ msgid "E-Mail Field"
99
+ msgstr ""
100
+
101
+ #: plugin.php:171
102
+ #@ genesis-enews-extended
103
+ msgid "Hidden Fields"
104
+ msgstr ""
105
+
106
+ #: plugin.php:173
107
+ #@ genesis-enews-extended
108
+ msgid "Not all services use hidden fields."
109
+ msgstr ""
110
+
111
+ #: plugin.php:177
112
+ #@ genesis-enews-extended
113
+ msgid "Enter your email address..."
114
+ msgstr ""
115
+
116
+ #: plugin.php:178
117
+ #@ genesis-enews-extended
118
+ msgid "Input Text"
119
+ msgstr ""
120
+
121
+ #: plugin.php:183
122
+ #@ genesis-enews-extended
123
+ msgid "Go"
124
+ msgstr ""
125
+
126
+ #: plugin.php:184
127
+ #@ genesis-enews-extended
128
+ msgid "Button Text"
129
+ msgstr ""
130
+
languages/genesis-enews-extended-de_DE.mo ADDED
Binary file
languages/genesis-enews-extended-de_DE.po ADDED
@@ -0,0 +1,131 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # This German Language File: Copyright (C) 2012 by David Decker of deckerweb.de & genesisthemes.de
2
+ # This file is distributed under the same license as the Genesis eNews Extended Plugin package.
3
+ #
4
+ # Weitere deutsche Sprachdateien fuer Genesis Framework, Genesis Child Themes und Genesis Plugins
5
+ # sowie WordPress Plugins und Themes sind hier zu finden:
6
+ # --> http://deckerweb.de/sprachdateien/
7
+ #
8
+ msgid ""
9
+ msgstr ""
10
+ "Project-Id-Version: Genesis eNews Extended v0.1.3\n"
11
+ "Report-Msgid-Bugs-To: https://github.com/kraftbj/Genesis-eNews-Extended/issues\n"
12
+ "POT-Creation-Date: 2012-10-17 15:31:12+0100\n"
13
+ "PO-Revision-Date: 2012-10-17 17:35+0100\n"
14
+ "Last-Translator: David Decker <deckerweb.mobil@googlemail.com>\n"
15
+ "Language-Team: DECKERWEB <deckerweb.mobil@googlemail.com>\n"
16
+ "MIME-Version: 1.0\n"
17
+ "Content-Type: text/plain; charset=UTF-8\n"
18
+ "Content-Transfer-Encoding: 8bit\n"
19
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
20
+ "X-Poedit-Language: German\n"
21
+ "X-Poedit-Country: GERMANY\n"
22
+ "X-Poedit-SourceCharset: utf-8\n"
23
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
24
+ "X-Textdomain-Support: yes\n"
25
+ "X-Poedit-SearchPath-0: .\n"
26
+
27
+ #@ genesis-enews-extended
28
+ #. translators: plugin header field 'Name'
29
+ #: plugin.php:0
30
+ msgid "Genesis eNews Extended"
31
+ msgstr "Genesis eNews Erweitert"
32
+
33
+ #@ genesis-enews-extended
34
+ #. translators: plugin header field 'PluginURI'
35
+ #: plugin.php:0
36
+ msgid "http://www.brandonkraft.com/contrib/plugins/genesis-enews-extended/"
37
+ msgstr "http://www.brandonkraft.com/contrib/plugins/genesis-enews-extended/"
38
+
39
+ #@ genesis-enews-extended
40
+ #. translators: plugin header field 'Description'
41
+ #: plugin.php:0
42
+ msgid "Replaces the Genesis eNews Widget to allow easier use of additional mailing services."
43
+ msgstr "Ersetzt das Genesis eNews &amp; Updates Widget, um auf einfachere Weise verschiedene Mailingdienst-Anbieter zu unterst�tzen."
44
+
45
+ #@ genesis-enews-extended
46
+ #. translators: plugin header field 'Author'
47
+ #: plugin.php:0
48
+ msgid "Brandon Kraft"
49
+ msgstr "Brandon Kraft"
50
+
51
+ #@ genesis-enews-extended
52
+ #. translators: plugin header field 'AuthorURI'
53
+ #: plugin.php:0
54
+ msgid "http://www.brandonkraft.com"
55
+ msgstr "http://www.brandonkraft.com/"
56
+
57
+ #@ genesis-enews-extended
58
+ #. translators: plugin header field 'Version'
59
+ #: plugin.php:0
60
+ msgid "0.1.4"
61
+ msgstr "0.1.4"
62
+
63
+ #@ genesis-enews-extended
64
+ #: plugin.php:54
65
+ msgid "Displays subscribe form"
66
+ msgstr "Zeigt das E-Mail-Formular zum Abonnieren f�r Feedburner bzw. andere Mailing-Dienste an."
67
+
68
+ #@ genesis-enews-extended
69
+ #: plugin.php:57
70
+ msgid "Genesis - eNews Extended"
71
+ msgstr "Genesis - eNews Erweitert"
72
+
73
+ #@ genesis-enews-extended
74
+ #: plugin.php:145
75
+ msgid "Title"
76
+ msgstr "Titel"
77
+
78
+ #@ genesis-enews-extended
79
+ #: plugin.php:150
80
+ msgid "Text To Show"
81
+ msgstr "Anzuzeigender Text"
82
+
83
+ #@ genesis-enews-extended
84
+ #: plugin.php:155
85
+ msgid "Google/Feedburner ID"
86
+ msgstr "Google/ Feedburner ID"
87
+
88
+ #@ genesis-enews-extended
89
+ #: plugin.php:157
90
+ msgid "Entering your Feedburner ID here will deactivate the custom options below."
91
+ msgstr "Wird hier eine Feedburner-ID eingetragen, werden die Optionen f�r benutzerdefinierte Dienste/ Formulare unten wirkungslos!"
92
+
93
+ #@ genesis-enews-extended
94
+ #: plugin.php:161
95
+ msgid "Form Action"
96
+ msgstr "Formular-Aktion (Form Action)"
97
+
98
+ #@ genesis-enews-extended
99
+ #: plugin.php:166
100
+ msgid "E-Mail Field"
101
+ msgstr "E-Mail-Feld"
102
+
103
+ #@ genesis-enews-extended
104
+ #: plugin.php:171
105
+ msgid "Hidden Fields"
106
+ msgstr "Verborgene Felder (Hidden Fields)"
107
+
108
+ #@ genesis-enews-extended
109
+ #: plugin.php:173
110
+ msgid "Not all services use hidden fields."
111
+ msgstr "Nicht alle Dienste verwenden verborgene Felder (Hidden Fields)."
112
+
113
+ #@ genesis-enews-extended
114
+ #: plugin.php:177
115
+ msgid "Enter your email address..."
116
+ msgstr "E-Mail eingeben ..."
117
+
118
+ #@ genesis-enews-extended
119
+ #: plugin.php:178
120
+ msgid "Input Text"
121
+ msgstr "Eingabe"
122
+
123
+ #@ genesis-enews-extended
124
+ #: plugin.php:183
125
+ msgid "Go"
126
+ msgstr "Start"
127
+
128
+ #@ genesis-enews-extended
129
+ #: plugin.php:184
130
+ msgid "Button Text"
131
+ msgstr "Text der Schaltfl�che"
plugin.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Genesis eNews Extended
4
  * Plugin URI: http://www.brandonkraft.com/contrib/plugins/genesis-enews-extended/
5
  * Description: Replaces the Genesis eNews Widget to allow easier use of additional mailing services.
6
- * Version: 0.1.3
7
  * Author: Brandon Kraft
8
  * Author URI: http://www.brandonkraft.com
9
  *
@@ -17,14 +17,26 @@
17
  * Code based on original eNews Widget in the Genesis Framework by StudioPress - http://www.studiopress.com
18
  *
19
  * @package BJGK_Genesis_enews_extended
20
- * @version 0.1.3
21
  * @author Brandon Kraft <bk@kraft.im>
22
  * @copyright Copyright (c) 2012, Brandon Kraft
23
  * @link http://www.brandonkraft.com
24
  * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
25
  */
26
 
27
- class BJGK_Genesis_eNews_Extended extends WP_Widget {
 
 
 
 
 
 
 
 
 
 
 
 
28
 
29
  /**
30
  * Holds widget settings defaults, populated in constructor.
@@ -49,10 +61,10 @@ class BJGK_Genesis_eNews_Extended extends WP_Widget {
49
 
50
  $widget_ops = array(
51
  'classname' => 'enews-widget',
52
- 'description' => __( 'Displays subscribe form', 'genesis' ),
53
  );
54
 
55
- $this->WP_Widget( 'enews-ext', __( 'Genesis - eNews Extended', 'genesis' ), $widget_ops );
56
 
57
  }
58
 
@@ -127,46 +139,46 @@ class BJGK_Genesis_eNews_Extended extends WP_Widget {
127
 
128
  ?>
129
  <p>
130
- <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title', 'enews-ext' ); ?>:</label><br />
131
  <input type="text" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo esc_attr( $instance['title'] ); ?>" class="widefat" />
132
  </p>
133
 
134
  <p>
135
- <label for="<?php echo $this->get_field_id( 'text' ); ?>"><?php _e( 'Text To Show', 'enews-ext' ); ?>:</label><br />
136
  <textarea id="<?php echo $this->get_field_id( 'text' ); ?>" name="<?php echo $this->get_field_name( 'text' ); ?>" class="widefat" rows="6" cols="4"><?php echo htmlspecialchars( $instance['text'] ); ?></textarea>
137
  </p>
138
  <hr style="background: #ccc; border: 0; height: 1px; margin: 20px 0;">
139
  <p>
140
- <label for="<?php echo $this->get_field_id( 'id' ); ?>"><?php _e( 'Google/Feedburner ID', 'enews-ext' ); ?>:</label>
141
  <input type="text" id="<?php echo $this->get_field_id( 'id' ); ?>" name="<?php echo $this->get_field_name( 'id' ); ?>" value="<?php echo esc_attr( $instance['id'] ); ?>" class="widefat" /><br />
142
- <small><?php _e( 'Entering your Feedburner ID here will deactivate the custom options below.', 'enews-ext' ); ?></small>
143
  </p>
144
  <hr style="background: #ccc; border: 0; height: 1px; margin: 20px 0;">
145
  <p>
146
- <label for="<?php echo $this->get_field_id( 'action' ); ?>"><?php _e( 'Form Action', 'enews-ext' ); ?>:</label>
147
  <input type="text" id="<?php echo $this->get_field_id( 'action' ); ?>" name="<?php echo $this->get_field_name( 'action' ); ?>" value="<?php echo esc_attr( $instance['action'] ); ?>" class="widefat" />
148
  </p>
149
 
150
  <p>
151
- <label for="<?php echo $this->get_field_id( 'email-field' ); ?>"><?php _e( 'E-Mail Field', 'enews-ext' ); ?>:</label>
152
  <input type="text" id="<?php echo $this->get_field_id( 'email-field' ); ?>" name="<?php echo $this->get_field_name( 'email-field' ); ?>" value="<?php echo esc_attr( $instance['email-field'] ); ?>" class="widefat" />
153
  </p>
154
 
155
  <p>
156
- <label for="<?php echo $this->get_field_id( 'hidden_fields' ); ?>"><?php _e( 'Hidden Fields', 'enews-ext' ); ?>:</label>
157
  <textarea id="<?php echo $this->get_field_id( 'hidden_fields' ); ?>" name="<?php echo $this->get_field_name( 'hidden_fields' ); ?>" class="widefat"><?php echo esc_attr( $instance['hidden_fields'] ); ?></textarea>
158
- <br><small><?php _e( 'Not all services use hidden fields.', 'enews-ext'); ?></small>
159
  </p>
160
  <hr style="background: #ccc; border: 0; height: 1px; margin: 20px 0;">
161
  <p>
162
- <?php $input_text = empty( $instance['input_text'] ) ? __( 'Enter your email address...', 'enews-ext' ) : $instance['input_text']; ?>
163
- <label for="<?php echo $this->get_field_id( 'id' ); ?>"><?php _e( 'Input Text', 'enews-ext' ); ?>:</label>
164
  <input type="text" id="<?php echo $this->get_field_id( 'input_text' ); ?>" name="<?php echo $this->get_field_name( 'input_text' ); ?>" value="<?php echo esc_attr( $input_text ); ?>" class="widefat" />
165
  </p>
166
 
167
  <p>
168
- <?php $button_text = empty( $instance['button_text'] ) ? __( 'Go', 'enews-ext' ) : $instance['button_text']; ?>
169
- <label for="<?php echo $this->get_field_id( 'button_text' ); ?>"><?php _e( 'Button Text', 'enews-ext' ); ?>:</label>
170
  <input type="text" id="<?php echo $this->get_field_id( 'button_text' ); ?>" name="<?php echo $this->get_field_name( 'button_text' ); ?>" value="<?php echo esc_attr( $button_text ); ?>" class="widefat" />
171
  </p>
172
 
3
  * Plugin Name: Genesis eNews Extended
4
  * Plugin URI: http://www.brandonkraft.com/contrib/plugins/genesis-enews-extended/
5
  * Description: Replaces the Genesis eNews Widget to allow easier use of additional mailing services.
6
+ * Version: 0.1.4
7
  * Author: Brandon Kraft
8
  * Author URI: http://www.brandonkraft.com
9
  *
17
  * Code based on original eNews Widget in the Genesis Framework by StudioPress - http://www.studiopress.com
18
  *
19
  * @package BJGK_Genesis_enews_extended
20
+ * @version 0.1.4
21
  * @author Brandon Kraft <bk@kraft.im>
22
  * @copyright Copyright (c) 2012, Brandon Kraft
23
  * @link http://www.brandonkraft.com
24
  * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
25
  */
26
 
27
+ add_action( 'init', 'bjgk_genesis_enews_load_translations', 1 );
28
+ /**
29
+ * Load the textdomain/ translations for the plugin.
30
+ *
31
+ * @uses load_plugin_textdomain()
32
+ */
33
+ function bjgk_genesis_enews_load_translations() {
34
+
35
+ load_plugin_textdomain( 'genesis-enews-extended', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
36
+
37
+ }
38
+
39
+ class BJGK_Genesis_eNews_Extended extends WP_Widget {
40
 
41
  /**
42
  * Holds widget settings defaults, populated in constructor.
61
 
62
  $widget_ops = array(
63
  'classname' => 'enews-widget',
64
+ 'description' => __( 'Displays subscribe form', 'genesis-enews-extended' ),
65
  );
66
 
67
+ $this->WP_Widget( 'enews-ext', __( 'Genesis - eNews Extended', 'genesis-enews-extended' ), $widget_ops );
68
 
69
  }
70
 
139
 
140
  ?>
141
  <p>
142
+ <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title', 'genesis-enews-extended' ); ?>:</label><br />
143
  <input type="text" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo esc_attr( $instance['title'] ); ?>" class="widefat" />
144
  </p>
145
 
146
  <p>
147
+ <label for="<?php echo $this->get_field_id( 'text' ); ?>"><?php _e( 'Text To Show', 'genesis-enews-extended' ); ?>:</label><br />
148
  <textarea id="<?php echo $this->get_field_id( 'text' ); ?>" name="<?php echo $this->get_field_name( 'text' ); ?>" class="widefat" rows="6" cols="4"><?php echo htmlspecialchars( $instance['text'] ); ?></textarea>
149
  </p>
150
  <hr style="background: #ccc; border: 0; height: 1px; margin: 20px 0;">
151
  <p>
152
+ <label for="<?php echo $this->get_field_id( 'id' ); ?>"><?php _e( 'Google/Feedburner ID', 'genesis-enews-extended' ); ?>:</label>
153
  <input type="text" id="<?php echo $this->get_field_id( 'id' ); ?>" name="<?php echo $this->get_field_name( 'id' ); ?>" value="<?php echo esc_attr( $instance['id'] ); ?>" class="widefat" /><br />
154
+ <small><?php _e( 'Entering your Feedburner ID here will deactivate the custom options below.', 'genesis-enews-extended' ); ?></small>
155
  </p>
156
  <hr style="background: #ccc; border: 0; height: 1px; margin: 20px 0;">
157
  <p>
158
+ <label for="<?php echo $this->get_field_id( 'action' ); ?>"><?php _e( 'Form Action', 'genesis-enews-extended' ); ?>:</label>
159
  <input type="text" id="<?php echo $this->get_field_id( 'action' ); ?>" name="<?php echo $this->get_field_name( 'action' ); ?>" value="<?php echo esc_attr( $instance['action'] ); ?>" class="widefat" />
160
  </p>
161
 
162
  <p>
163
+ <label for="<?php echo $this->get_field_id( 'email-field' ); ?>"><?php _e( 'E-Mail Field', 'genesis-enews-extended' ); ?>:</label>
164
  <input type="text" id="<?php echo $this->get_field_id( 'email-field' ); ?>" name="<?php echo $this->get_field_name( 'email-field' ); ?>" value="<?php echo esc_attr( $instance['email-field'] ); ?>" class="widefat" />
165
  </p>
166
 
167
  <p>
168
+ <label for="<?php echo $this->get_field_id( 'hidden_fields' ); ?>"><?php _e( 'Hidden Fields', 'genesis-enews-extended' ); ?>:</label>
169
  <textarea id="<?php echo $this->get_field_id( 'hidden_fields' ); ?>" name="<?php echo $this->get_field_name( 'hidden_fields' ); ?>" class="widefat"><?php echo esc_attr( $instance['hidden_fields'] ); ?></textarea>
170
+ <br><small><?php _e( 'Not all services use hidden fields.', 'genesis-enews-extended'); ?></small>
171
  </p>
172
  <hr style="background: #ccc; border: 0; height: 1px; margin: 20px 0;">
173
  <p>
174
+ <?php $input_text = empty( $instance['input_text'] ) ? __( 'Enter your email address...', 'genesis-enews-extended' ) : $instance['input_text']; ?>
175
+ <label for="<?php echo $this->get_field_id( 'id' ); ?>"><?php _e( 'Input Text', 'genesis-enews-extended' ); ?>:</label>
176
  <input type="text" id="<?php echo $this->get_field_id( 'input_text' ); ?>" name="<?php echo $this->get_field_name( 'input_text' ); ?>" value="<?php echo esc_attr( $input_text ); ?>" class="widefat" />
177
  </p>
178
 
179
  <p>
180
+ <?php $button_text = empty( $instance['button_text'] ) ? __( 'Go', 'genesis-enews-extended' ) : $instance['button_text']; ?>
181
+ <label for="<?php echo $this->get_field_id( 'button_text' ); ?>"><?php _e( 'Button Text', 'genesis-enews-extended' ); ?>:</label>
182
  <input type="text" id="<?php echo $this->get_field_id( 'button_text' ); ?>" name="<?php echo $this->get_field_name( 'button_text' ); ?>" value="<?php echo esc_attr( $button_text ); ?>" class="widefat" />
183
  </p>
184
 
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: kraftbj
3
  Tags: genesis
4
  Requires at least: 3.0
5
- Tested up to: 3.5-beta1
6
- Stable tag: 0.1.3
7
 
8
  Creates a new widget to easily add mailing lists integration to a Genesis website. Works with FeedBurner, MailChimp, AWeber, FeedBlitz and more.
9
 
@@ -37,6 +37,10 @@ Questions can be asked at the [WordPress.org Support Forum](http://wordpress.org
37
 
38
  == Changelog ==
39
 
 
 
 
 
40
  = 0.1.3 =
41
  * Adds Feedburner support in anticipation of Genesis 1.9
42
  * Security and translation updates
@@ -62,4 +66,7 @@ Adds "Hidden Fields" widget setting to make widget compatible with more mailing
62
  Expands widget's usefulness to more StudioPress themes (Balance, etc).
63
 
64
  = 0.1.3 =
65
- Security update and adds Feedburner support natively.
 
 
 
2
  Contributors: kraftbj
3
  Tags: genesis
4
  Requires at least: 3.0
5
+ Tested up to: 3.5-beta2
6
+ Stable tag: 0.1.4
7
 
8
  Creates a new widget to easily add mailing lists integration to a Genesis website. Works with FeedBurner, MailChimp, AWeber, FeedBlitz and more.
9
 
37
 
38
  == Changelog ==
39
 
40
+ = 0.1.4 =
41
+ * Adds l18n support for other languages (thanks David Decker!)
42
+ * Adds German translation (thanks David Decker!)
43
+
44
  = 0.1.3 =
45
  * Adds Feedburner support in anticipation of Genesis 1.9
46
  * Security and translation updates
66
  Expands widget's usefulness to more StudioPress themes (Balance, etc).
67
 
68
  = 0.1.3 =
69
+ Security update and adds Feedburner support natively.
70
+
71
+ = 0.1.4 =
72
+ Adds translation support and adds German translation.