Genesis eNews Extended - Version 0.2.0

Version Description

  • Various code enhancements to improve performance and adhere better to WP standards (props to Gary Jones)
  • Adds Spanish translation (props to Ryan Sullivan)
  • Adds Italian translation (props to Marco Galasso)
  • Adds Slovak translation (props to Branco Radenovich)
Download this release

Release Info

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

Code changes from version 0.1.6 to 0.2.0

languages/default.po CHANGED
@@ -1,101 +1,85 @@
 
 
1
  msgid ""
2
  msgstr ""
3
- "Project-Id-Version: Genesis eNews Extended v0.1.5\n"
4
- "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2012-11-17 22:47-0600\n"
6
- "PO-Revision-Date: 2012-11-18 14:57-0600\n"
7
- "Last-Translator: Brandon Kraft <public@brandonkraft.com>\n"
8
- "Language-Team: Brandon Kraft <public@brandonkraft.com>\n"
9
- "Language: en_US\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
- "X-Poedit-KeywordsList: __;_e\n"
14
- "X-Poedit-Basepath: .\n"
15
- "X-Poedit-SourceCharset: utf-8\n"
16
  "X-Generator: Poedit 1.5.4\n"
17
- "X-Poedit-SearchPath-0: ..\n"
 
18
 
19
- # @ genesis-enews-extended
20
- #: ../plugin.php:67
21
  msgid "Displays subscribe form"
22
- msgstr "Displays subscribe form"
23
 
24
- # @ genesis-enews-extended
25
- #: ../plugin.php:70
26
  msgid "Genesis - eNews Extended"
27
- msgstr "Genesis - eNews Extended"
28
 
29
- # @ genesis-enews-extended
30
- #: ../plugin.php:147
31
  msgid "Title"
32
- msgstr "Title"
33
 
34
- # @ genesis-enews-extended
35
- #: ../plugin.php:152
36
  msgid "Text To Show"
37
- msgstr "Text To Show"
38
 
39
- # @ genesis-enews-extended
40
- #: ../plugin.php:157
41
  msgid "Google/Feedburner ID"
42
- msgstr "Google/Feedburner ID"
43
 
44
- # @ genesis-enews-extended
45
- #: ../plugin.php:159
46
  msgid ""
47
  "Entering your Feedburner ID here will deactivate the custom options below."
48
  msgstr ""
49
- "Entering your Feedburner ID here will deactivate the custom options below."
50
 
51
- # @ genesis-enews-extended
52
- #: ../plugin.php:163
53
  msgid "Form Action"
54
- msgstr "Form Action"
55
 
56
- # @ genesis-enews-extended
57
- #: ../plugin.php:168
58
  msgid "E-Mail Field"
59
- msgstr "E-Mail Field"
60
 
61
- #: ../plugin.php:173
62
  msgid "First Name Field"
63
- msgstr "First Name Field"
64
 
65
- #: ../plugin.php:178
66
  msgid "Last Name Field"
67
- msgstr "Last Name Field"
68
 
69
- # @ genesis-enews-extended
70
- #: ../plugin.php:183
71
  msgid "Hidden Fields"
72
- msgstr "Hidden Fields"
73
 
74
- # @ genesis-enews-extended
75
- #: ../plugin.php:185
76
  msgid "Not all services use hidden fields."
77
- msgstr "Not all services use hidden fields."
78
 
79
- #: ../plugin.php:190
80
  msgid "Open confirmation page in same window?"
81
- msgstr "Open confirmation page in same window?"
82
 
83
- # @ genesis-enews-extended
84
- #: ../plugin.php:194
85
  msgid "Enter your email address..."
86
- msgstr "Enter your email address..."
87
 
88
- # @ genesis-enews-extended
89
- #: ../plugin.php:195
90
  msgid "Input Text"
91
- msgstr "Input Text"
92
 
93
- # @ genesis-enews-extended
94
- #: ../plugin.php:200
95
  msgid "Go"
96
- msgstr "Go"
97
 
98
- # @ genesis-enews-extended
99
- #: ../plugin.php:201
100
  msgid "Button Text"
101
- msgstr "Button Text"
1
+ # Copyright (C) 2013
2
+ # This file is distributed under the same license as the package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Genesis eNews Extended 0.2.0\n"
6
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/genesis-enews-extended\n"
7
+ "POT-Creation-Date: 2013-01-10 22:42:34+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: 2013-01-21 21:42-0600\n"
12
+ "Last-Translator: Brandon Kraft <public@brandonkraft.com>\n"
13
+ "Language-Team: Brandon Kraft <public@brandonkraft.com>\n"
14
  "X-Generator: Poedit 1.5.4\n"
15
+ "Language: English\n"
16
+ "X-Poedit-Basepath: ..\n"
17
 
18
+ #: plugin.php:67
 
19
  msgid "Displays subscribe form"
20
+ msgstr ""
21
 
22
+ #: plugin.php:70
 
23
  msgid "Genesis - eNews Extended"
24
+ msgstr ""
25
 
26
+ #: plugin.php:147
 
27
  msgid "Title"
28
+ msgstr ""
29
 
30
+ #: plugin.php:152
 
31
  msgid "Text To Show"
32
+ msgstr ""
33
 
34
+ #: plugin.php:157
 
35
  msgid "Google/Feedburner ID"
36
+ msgstr ""
37
 
38
+ #: plugin.php:159
 
39
  msgid ""
40
  "Entering your Feedburner ID here will deactivate the custom options below."
41
  msgstr ""
 
42
 
43
+ #: plugin.php:163
 
44
  msgid "Form Action"
45
+ msgstr ""
46
 
47
+ #: plugin.php:168
 
48
  msgid "E-Mail Field"
49
+ msgstr ""
50
 
51
+ #: plugin.php:173
52
  msgid "First Name Field"
53
+ msgstr ""
54
 
55
+ #: plugin.php:178
56
  msgid "Last Name Field"
57
+ msgstr ""
58
 
59
+ #: plugin.php:183
 
60
  msgid "Hidden Fields"
61
+ msgstr ""
62
 
63
+ #: plugin.php:185
 
64
  msgid "Not all services use hidden fields."
65
+ msgstr ""
66
 
67
+ #: plugin.php:190
68
  msgid "Open confirmation page in same window?"
69
+ msgstr ""
70
 
71
+ #: plugin.php:194
 
72
  msgid "Enter your email address..."
73
+ msgstr ""
74
 
75
+ #: plugin.php:195
 
76
  msgid "Input Text"
77
+ msgstr ""
78
 
79
+ #: plugin.php:200
 
80
  msgid "Go"
81
+ msgstr ""
82
 
83
+ #: plugin.php:201
 
84
  msgid "Button Text"
85
+ msgstr ""
languages/default.pot CHANGED
@@ -1,101 +1,82 @@
 
 
1
  msgid ""
2
  msgstr ""
3
- "Project-Id-Version: Genesis eNews Extended v0.1.5\n"
4
- "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2012-11-17 22:47-0600\n"
6
- "PO-Revision-Date: 2012-11-17 22:53-0600\n"
7
- "Last-Translator: Brandon Kraft <public@brandonkraft.com>\n"
8
- "Language-Team: Brandon Kraft <public@brandonkraft.com>\n"
9
- "Language: \n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
- "X-Poedit-KeywordsList: __;_e\n"
14
- "X-Poedit-Basepath: .\n"
15
- "X-Poedit-Language: English\n"
16
- "X-Poedit-Country: UNITED STATES\n"
17
- "X-Poedit-SourceCharset: utf-8\n"
18
- "X-Poedit-SearchPath-0: ..\n"
19
-
20
- # @ genesis-enews-extended
21
- #: ../plugin.php:67
22
  msgid "Displays subscribe form"
23
  msgstr ""
24
 
25
- # @ genesis-enews-extended
26
- #: ../plugin.php:70
27
  msgid "Genesis - eNews Extended"
28
  msgstr ""
29
 
30
- # @ genesis-enews-extended
31
- #: ../plugin.php:147
32
  msgid "Title"
33
  msgstr ""
34
 
35
- # @ genesis-enews-extended
36
- #: ../plugin.php:152
37
  msgid "Text To Show"
38
  msgstr ""
39
 
40
- # @ genesis-enews-extended
41
- #: ../plugin.php:157
42
  msgid "Google/Feedburner ID"
43
  msgstr ""
44
 
45
- # @ genesis-enews-extended
46
- #: ../plugin.php:159
47
- msgid "Entering your Feedburner ID here will deactivate the custom options below."
48
  msgstr ""
49
 
50
- # @ genesis-enews-extended
51
- #: ../plugin.php:163
52
  msgid "Form Action"
53
  msgstr ""
54
 
55
- # @ genesis-enews-extended
56
- #: ../plugin.php:168
57
  msgid "E-Mail Field"
58
  msgstr ""
59
 
60
- #: ../plugin.php:173
61
  msgid "First Name Field"
62
  msgstr ""
63
 
64
- #: ../plugin.php:178
65
  msgid "Last Name Field"
66
  msgstr ""
67
 
68
- # @ genesis-enews-extended
69
- #: ../plugin.php:183
70
  msgid "Hidden Fields"
71
  msgstr ""
72
 
73
- # @ genesis-enews-extended
74
- #: ../plugin.php:185
75
  msgid "Not all services use hidden fields."
76
  msgstr ""
77
 
78
- #: ../plugin.php:190
79
  msgid "Open confirmation page in same window?"
80
  msgstr ""
81
 
82
- # @ genesis-enews-extended
83
- #: ../plugin.php:194
84
  msgid "Enter your email address..."
85
  msgstr ""
86
 
87
- # @ genesis-enews-extended
88
- #: ../plugin.php:195
89
  msgid "Input Text"
90
  msgstr ""
91
 
92
- # @ genesis-enews-extended
93
- #: ../plugin.php:200
94
  msgid "Go"
95
  msgstr ""
96
 
97
- # @ genesis-enews-extended
98
- #: ../plugin.php:201
99
  msgid "Button Text"
100
  msgstr ""
101
-
1
+ # Copyright (C) 2013
2
+ # This file is distributed under the same license as the package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: \n"
6
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/genesis-enews-extended\n"
7
+ "POT-Creation-Date: 2013-01-10 22:42:34+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: 2013-MO-DA HO:MI+ZONE\n"
12
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
+ "Language-Team: LANGUAGE <LL@li.org>\n"
14
+
15
+ #: plugin.php:67
 
 
 
 
16
  msgid "Displays subscribe form"
17
  msgstr ""
18
 
19
+ #: plugin.php:70
 
20
  msgid "Genesis - eNews Extended"
21
  msgstr ""
22
 
23
+ #: plugin.php:147
 
24
  msgid "Title"
25
  msgstr ""
26
 
27
+ #: plugin.php:152
 
28
  msgid "Text To Show"
29
  msgstr ""
30
 
31
+ #: plugin.php:157
 
32
  msgid "Google/Feedburner ID"
33
  msgstr ""
34
 
35
+ #: plugin.php:159
36
+ msgid ""
37
+ "Entering your Feedburner ID here will deactivate the custom options below."
38
  msgstr ""
39
 
40
+ #: plugin.php:163
 
41
  msgid "Form Action"
42
  msgstr ""
43
 
44
+ #: plugin.php:168
 
45
  msgid "E-Mail Field"
46
  msgstr ""
47
 
48
+ #: plugin.php:173
49
  msgid "First Name Field"
50
  msgstr ""
51
 
52
+ #: plugin.php:178
53
  msgid "Last Name Field"
54
  msgstr ""
55
 
56
+ #: plugin.php:183
 
57
  msgid "Hidden Fields"
58
  msgstr ""
59
 
60
+ #: plugin.php:185
 
61
  msgid "Not all services use hidden fields."
62
  msgstr ""
63
 
64
+ #: plugin.php:190
65
  msgid "Open confirmation page in same window?"
66
  msgstr ""
67
 
68
+ #: plugin.php:194
 
69
  msgid "Enter your email address..."
70
  msgstr ""
71
 
72
+ #: plugin.php:195
 
73
  msgid "Input Text"
74
  msgstr ""
75
 
76
+ #: plugin.php:200
 
77
  msgid "Go"
78
  msgstr ""
79
 
80
+ #: plugin.php:201
 
81
  msgid "Button Text"
82
  msgstr ""
 
languages/genesis-enews-extended-de_DE.mo CHANGED
Binary file
languages/genesis-enews-extended-de_DE.po CHANGED
@@ -1,102 +1,86 @@
 
 
1
  msgid ""
2
  msgstr ""
3
- "Project-Id-Version: Genesis eNews Extended v0.1.5\n"
4
- "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2012-11-17 22:47-0600\n"
6
- "PO-Revision-Date: 2012-11-18 15:02-0600\n"
7
- "Last-Translator: Brandon Kraft <public@brandonkraft.com>\n"
8
- "Language-Team: Brandon Kraft <public@brandonkraft.com>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "X-Poedit-KeywordsList: __;_e\n"
13
- "X-Poedit-Basepath: .\n"
14
- "X-Poedit-SourceCharset: UTF-8\n"
15
  "X-Generator: Poedit 1.5.4\n"
16
  "Language: German\n"
17
- "X-Poedit-SearchPath-0: ..\n"
18
 
19
- # @ genesis-enews-extended
20
- #: ../plugin.php:67
21
  msgid "Displays subscribe form"
22
  msgstr "Anzeige abonnieren Form"
23
 
24
- # @ genesis-enews-extended
25
- #: ../plugin.php:70
26
  msgid "Genesis - eNews Extended"
27
  msgstr "Genesis - eNews Extended"
28
 
29
- # @ genesis-enews-extended
30
- #: ../plugin.php:147
31
  msgid "Title"
32
  msgstr "Titel"
33
 
34
- # @ genesis-enews-extended
35
- #: ../plugin.php:152
36
  msgid "Text To Show"
37
  msgstr "Anzuzeigender Text"
38
 
39
- # @ genesis-enews-extended
40
- #: ../plugin.php:157
41
  msgid "Google/Feedburner ID"
42
  msgstr "Google/ Feedburner ID"
43
 
44
- # @ genesis-enews-extended
45
- #: ../plugin.php:159
46
  msgid ""
47
  "Entering your Feedburner ID here will deactivate the custom options below."
48
  msgstr ""
49
  "Wird hier eine Feedburner-ID eingetragen, werden die Optionen für "
50
  "benutzerdefinierte Dienste/ Formulare unten wirkungslos!"
51
 
52
- # @ genesis-enews-extended
53
- #: ../plugin.php:163
54
  msgid "Form Action"
55
  msgstr "Formular-Aktion (Form Action)"
56
 
57
- # @ genesis-enews-extended
58
- #: ../plugin.php:168
59
  msgid "E-Mail Field"
60
  msgstr "E-Mail-Feld"
61
 
62
- #: ../plugin.php:173
63
  msgid "First Name Field"
64
  msgstr "Vorname Feld"
65
 
66
- #: ../plugin.php:178
67
  msgid "Last Name Field"
68
  msgstr "Nachname Feld"
69
 
70
- # @ genesis-enews-extended
71
- #: ../plugin.php:183
72
  msgid "Hidden Fields"
73
  msgstr "Verborgene Felder (Hidden Fields)"
74
 
75
- # @ genesis-enews-extended
76
- #: ../plugin.php:185
77
  msgid "Not all services use hidden fields."
78
  msgstr "Nicht alle Dienste verwenden verborgene Felder (Hidden Fields)."
79
 
80
- #: ../plugin.php:190
81
  msgid "Open confirmation page in same window?"
82
- msgstr "Öffnen Sie Bestätigungs-Seite im gleichen Fenster?"
83
 
84
- # @ genesis-enews-extended
85
- #: ../plugin.php:194
86
  msgid "Enter your email address..."
87
  msgstr "E-Mail eingeben ..."
88
 
89
- # @ genesis-enews-extended
90
- #: ../plugin.php:195
91
  msgid "Input Text"
92
  msgstr "Eingabe"
93
 
94
- # @ genesis-enews-extended
95
- #: ../plugin.php:200
96
  msgid "Go"
97
  msgstr "Start"
98
 
99
- # @ genesis-enews-extended
100
- #: ../plugin.php:201
101
  msgid "Button Text"
102
  msgstr "Text der Schaltfläche"
1
+ # Copyright (C) 2013
2
+ # This file is distributed under the same license as the package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Genesis eNews Extended 0.2.0\n"
6
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/genesis-enews-extended\n"
7
+ "POT-Creation-Date: 2013-01-10 22:42:34+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: 2013-01-21 21:48-0600\n"
12
+ "Last-Translator: Brandon Kraft <public@brandonkraft.com>\n"
13
+ "Language-Team: Brandon Kraft <public@brandonkraft.com>\n"
14
  "X-Generator: Poedit 1.5.4\n"
15
  "Language: German\n"
 
16
 
17
+ #: plugin.php:67
 
18
  msgid "Displays subscribe form"
19
  msgstr "Anzeige abonnieren Form"
20
 
21
+ #: plugin.php:70
 
22
  msgid "Genesis - eNews Extended"
23
  msgstr "Genesis - eNews Extended"
24
 
25
+ #: plugin.php:147
 
26
  msgid "Title"
27
  msgstr "Titel"
28
 
29
+ #: plugin.php:152
 
30
  msgid "Text To Show"
31
  msgstr "Anzuzeigender Text"
32
 
33
+ #: plugin.php:157
 
34
  msgid "Google/Feedburner ID"
35
  msgstr "Google/ Feedburner ID"
36
 
37
+ #: plugin.php:159
 
38
  msgid ""
39
  "Entering your Feedburner ID here will deactivate the custom options below."
40
  msgstr ""
41
  "Wird hier eine Feedburner-ID eingetragen, werden die Optionen für "
42
  "benutzerdefinierte Dienste/ Formulare unten wirkungslos!"
43
 
44
+ #: plugin.php:163
 
45
  msgid "Form Action"
46
  msgstr "Formular-Aktion (Form Action)"
47
 
48
+ #: plugin.php:168
 
49
  msgid "E-Mail Field"
50
  msgstr "E-Mail-Feld"
51
 
52
+ #: plugin.php:173
53
  msgid "First Name Field"
54
  msgstr "Vorname Feld"
55
 
56
+ #: plugin.php:178
57
  msgid "Last Name Field"
58
  msgstr "Nachname Feld"
59
 
60
+ #: plugin.php:183
 
61
  msgid "Hidden Fields"
62
  msgstr "Verborgene Felder (Hidden Fields)"
63
 
64
+ #: plugin.php:185
 
65
  msgid "Not all services use hidden fields."
66
  msgstr "Nicht alle Dienste verwenden verborgene Felder (Hidden Fields)."
67
 
68
+ #: plugin.php:190
69
  msgid "Open confirmation page in same window?"
70
+ msgstr "Öffnen Sie Bestätigungs-Seite im gleichen Fenster?"
71
 
72
+ #: plugin.php:194
 
73
  msgid "Enter your email address..."
74
  msgstr "E-Mail eingeben ..."
75
 
76
+ #: plugin.php:195
 
77
  msgid "Input Text"
78
  msgstr "Eingabe"
79
 
80
+ #: plugin.php:200
 
81
  msgid "Go"
82
  msgstr "Start"
83
 
84
+ #: plugin.php:201
 
85
  msgid "Button Text"
86
  msgstr "Text der Schaltfläche"
languages/genesis-enews-extended-es_ES.mo ADDED
Binary file
languages/genesis-enews-extended-es_ES.po ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Genesis eNews Extended v0.1.5\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2013-01-11 10:50-0700\n"
6
+ "PO-Revision-Date: 2013-01-11 10:55-0700\n"
7
+ "Last-Translator: Ryan Sullivan <ryandonsullivan@gmail.com>\n"
8
+ "Language-Team: Brandon Kraft <public@brandonkraft.com>\n"
9
+ "Language: en_US\n"
10
+ "MIME-Version: 1.0\n"
11
+ "Content-Type: text/plain; charset=UTF-8\n"
12
+ "Content-Transfer-Encoding: 8bit\n"
13
+ "X-Poedit-KeywordsList: __;_e\n"
14
+ "X-Poedit-Basepath: .\n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Generator: Poedit 1.5.4\n"
17
+ "X-Poedit-SearchPath-0: ..\n"
18
+
19
+ # @ genesis-enews-extended
20
+ #: ../plugin.php:67
21
+ msgid "Displays subscribe form"
22
+ msgstr "Muestra formulario de suscripci&#243;n"
23
+
24
+ # @ genesis-enews-extended
25
+ #: ../plugin.php:70
26
+ msgid "Genesis - eNews Extended"
27
+ msgstr "Genesis - eNews Extended"
28
+
29
+ # @ genesis-enews-extended
30
+ #: ../plugin.php:147
31
+ msgid "Title"
32
+ msgstr "T&#237;tulo"
33
+
34
+ # @ genesis-enews-extended
35
+ #: ../plugin.php:152
36
+ msgid "Text To Show"
37
+ msgstr "Texto para mostrar"
38
+
39
+ # @ genesis-enews-extended
40
+ #: ../plugin.php:157
41
+ msgid "Google/Feedburner ID"
42
+ msgstr "Google/Feedburner ID"
43
+
44
+ # @ genesis-enews-extended
45
+ #: ../plugin.php:159
46
+ msgid ""
47
+ "Entering your Feedburner ID here will deactivate the custom options below."
48
+ msgstr ""
49
+ "Al entrar de su Feedburner ID aqu&#237; se desactivar&#224; las opciones "
50
+ "debajo."
51
+
52
+ # @ genesis-enews-extended
53
+ #: ../plugin.php:163
54
+ msgid "Form Action"
55
+ msgstr "Acci&#243;n de formulario (Form Action)"
56
+
57
+ # @ genesis-enews-extended
58
+ #: ../plugin.php:168
59
+ msgid "E-Mail Field"
60
+ msgstr "Campo de Email"
61
+
62
+ #: ../plugin.php:173
63
+ msgid "First Name Field"
64
+ msgstr "Campo de Nombre"
65
+
66
+ #: ../plugin.php:178
67
+ msgid "Last Name Field"
68
+ msgstr "Campo de Apellido"
69
+
70
+ # @ genesis-enews-extended
71
+ #: ../plugin.php:183
72
+ msgid "Hidden Fields"
73
+ msgstr "Campos escondidos"
74
+
75
+ # @ genesis-enews-extended
76
+ #: ../plugin.php:185
77
+ msgid "Not all services use hidden fields."
78
+ msgstr "Todos los servicios no usan campos escondidos."
79
+
80
+ #: ../plugin.php:190
81
+ msgid "Open confirmation page in same window?"
82
+ msgstr "&#191;Abrir la p&#225;gina de confirmaci&#243;n en la misma ventana?"
83
+
84
+ # @ genesis-enews-extended
85
+ #: ../plugin.php:194
86
+ msgid "Enter your email address..."
87
+ msgstr "Entra su email"
88
+
89
+ # @ genesis-enews-extended
90
+ #: ../plugin.php:195
91
+ msgid "Input Text"
92
+ msgstr "Entra su texto"
93
+
94
+ # @ genesis-enews-extended
95
+ #: ../plugin.php:200
96
+ msgid "Go"
97
+ msgstr "Ir"
98
+
99
+ # @ genesis-enews-extended
100
+ #: ../plugin.php:201
101
+ msgid "Button Text"
102
+ msgstr "Texto de bot&#243;n"
languages/genesis-enews-extended-it_IT.mo ADDED
Binary file
languages/genesis-enews-extended-it_IT.po ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2013
2
+ # This file is distributed under the same license as the package.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: \n"
6
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/genesis-enews-extended\n"
7
+ "POT-Creation-Date: 2013-01-10 22:42:34+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: 2013-01-16 12:19+0100\n"
12
+ "Last-Translator: Marco <marco@neatandplain.com>\n"
13
+ "Language-Team: \n"
14
+ "X-Generator: Poedit 1.5.4\n"
15
+ "Language: Italiano\n"
16
+
17
+ #: plugin.php:67
18
+ msgid "Displays subscribe form"
19
+ msgstr "Mostra il modulo d'iscrizione"
20
+
21
+ #: plugin.php:70
22
+ msgid "Genesis - eNews Extended"
23
+ msgstr "Genesis - eNews Extended"
24
+
25
+ #: plugin.php:147
26
+ msgid "Title"
27
+ msgstr "Titolo"
28
+
29
+ #: plugin.php:152
30
+ msgid "Text To Show"
31
+ msgstr "Testo da mostrare"
32
+
33
+ #: plugin.php:157
34
+ msgid "Google/Feedburner ID"
35
+ msgstr "Google/Feedburner ID"
36
+
37
+ #: plugin.php:159
38
+ msgid ""
39
+ "Entering your Feedburner ID here will deactivate the custom options below."
40
+ msgstr "Linserimento del Feedburner ID disattiverà le opzioni non necessarie."
41
+
42
+ #: plugin.php:163
43
+ msgid "Form Action"
44
+ msgstr "Azione del modulo"
45
+
46
+ #: plugin.php:168
47
+ msgid "E-Mail Field"
48
+ msgstr "Campo E-Mail"
49
+
50
+ #: plugin.php:173
51
+ msgid "First Name Field"
52
+ msgstr "Campo Nome"
53
+
54
+ #: plugin.php:178
55
+ msgid "Last Name Field"
56
+ msgstr "Campo Cognome"
57
+
58
+ #: plugin.php:183
59
+ msgid "Hidden Fields"
60
+ msgstr "Campi nascosti"
61
+
62
+ #: plugin.php:185
63
+ msgid "Not all services use hidden fields."
64
+ msgstr "Non tutti i servizi utilizzano i campi nascosti."
65
+
66
+ #: plugin.php:190
67
+ msgid "Open confirmation page in same window?"
68
+ msgstr "Apri la pagina di conferma nella stessa finestra?"
69
+
70
+ #: plugin.php:194
71
+ msgid "Enter your email address..."
72
+ msgstr "Inserisci il tuo indirizzo email…"
73
+
74
+ #: plugin.php:195
75
+ msgid "Input Text"
76
+ msgstr "Testo per l'input"
77
+
78
+ #: plugin.php:200
79
+ msgid "Go"
80
+ msgstr "Vai"
81
+
82
+ #: plugin.php:201
83
+ msgid "Button Text"
84
+ msgstr "Testo del bottone"
languages/genesis-enews-extended_sk_SK.mo ADDED
Binary file
languages/genesis-enews-extended_sk_SK.po ADDED
@@ -0,0 +1,101 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Genesis eNews Extended v0.1.7\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2012-11-17 22:47-0600\n"
6
+ "PO-Revision-Date: 2013-01-21 20:20-0600\n"
7
+ "Last-Translator: Brandon Kraft <public@brandonkraft.com>\n"
8
+ "Language-Team: Brandon Kraft <public@brandonkraft.com>\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Poedit-KeywordsList: __;_e\n"
13
+ "X-Poedit-Basepath: .\n"
14
+ "X-Poedit-SourceCharset: UTF-8\n"
15
+ "X-Generator: Poedit 1.5.4\n"
16
+ "Language: Slovak\n"
17
+ "X-Poedit-SearchPath-0: ..\n"
18
+
19
+ # @ genesis-enews-extended
20
+ #: ../plugin.php:67
21
+ msgid "Displays subscribe form"
22
+ msgstr "Zobrazí sa prihlásiť formulár"
23
+
24
+ # @ genesis-enews-extended
25
+ #: ../plugin.php:70
26
+ msgid "Genesis - eNews Extended"
27
+ msgstr "Genesis - eNews Extended"
28
+
29
+ # @ genesis-enews-extended
30
+ #: ../plugin.php:147
31
+ msgid "Title"
32
+ msgstr "Názov"
33
+
34
+ # @ genesis-enews-extended
35
+ #: ../plugin.php:152
36
+ msgid "Text To Show"
37
+ msgstr "Text, ktorý chcete zobraziť"
38
+
39
+ # @ genesis-enews-extended
40
+ #: ../plugin.php:157
41
+ msgid "Google/Feedburner ID"
42
+ msgstr "Google/Feedburner ID"
43
+
44
+ # @ genesis-enews-extended
45
+ #: ../plugin.php:159
46
+ msgid ""
47
+ "Entering your Feedburner ID here will deactivate the custom options below."
48
+ msgstr ""
49
+ "Zadanie vaše Feedburner ID tu bude deaktivovať vlastné možnosti nižšie."
50
+
51
+ # @ genesis-enews-extended
52
+ #: ../plugin.php:163
53
+ msgid "Form Action"
54
+ msgstr "Akcia formulára"
55
+
56
+ # @ genesis-enews-extended
57
+ #: ../plugin.php:168
58
+ msgid "E-Mail Field"
59
+ msgstr "Pole e-Mail"
60
+
61
+ #: ../plugin.php:173
62
+ msgid "First Name Field"
63
+ msgstr "Krstné meno pole"
64
+
65
+ #: ../plugin.php:178
66
+ msgid "Last Name Field"
67
+ msgstr "Poľa pre priezvisko"
68
+
69
+ # @ genesis-enews-extended
70
+ #: ../plugin.php:183
71
+ msgid "Hidden Fields"
72
+ msgstr "Skryté polia"
73
+
74
+ # @ genesis-enews-extended
75
+ #: ../plugin.php:185
76
+ msgid "Not all services use hidden fields."
77
+ msgstr "Nie všetky služby zneužiť skryté polia."
78
+
79
+ #: ../plugin.php:190
80
+ msgid "Open confirmation page in same window?"
81
+ msgstr "Otvorené potvrdzovací stránku v rovnakom okne?"
82
+
83
+ # @ genesis-enews-extended
84
+ #: ../plugin.php:194
85
+ msgid "Enter your email address..."
86
+ msgstr "Zadajte vašu emailovú adresu..."
87
+
88
+ # @ genesis-enews-extended
89
+ #: ../plugin.php:195
90
+ msgid "Input Text"
91
+ msgstr "Vstupné textové"
92
+
93
+ # @ genesis-enews-extended
94
+ #: ../plugin.php:200
95
+ msgid "Go"
96
+ msgstr "Ísť"
97
+
98
+ # @ genesis-enews-extended
99
+ #: ../plugin.php:201
100
+ msgid "Button Text"
101
+ msgstr "Tlačidlo Text"
plugin.php CHANGED
@@ -1,215 +1,235 @@
1
- <?php
2
- /**
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.6
7
- * Author: Brandon Kraft
8
- * Author URI: http://www.brandonkraft.com
9
- *
10
- * This program is free software; you can redistribute it and/or modify it under the terms of the GNU
11
- * General Public License version 2, as published by the Free Software Foundation. You may NOT assume
12
- * that you can use any other version of the GPL.
13
- *
14
- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
15
- * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16
- *
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.6
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.
43
- *
44
- * @var array
45
- */
46
- protected $defaults;
47
-
48
- /**
49
- * Constructor. Set the default widget options and create widget.
50
- */
51
- function __construct() {
52
-
53
- $this->defaults = array(
54
- 'title' => '',
55
- 'text' => '',
56
- 'hidden_fields' => '',
57
- 'open_same_window' => 0,
58
- 'fname-field' => '',
59
- 'lname-field' => '',
60
- 'input_text' => '',
61
- 'button_text' => '',
62
- 'action' => '',
63
- );
64
-
65
- $widget_ops = array(
66
- 'classname' => 'enews-widget',
67
- 'description' => __( 'Displays subscribe form', 'genesis-enews-extended' ),
68
- );
69
-
70
- $this->WP_Widget( 'enews-ext', __( 'Genesis - eNews Extended', 'genesis-enews-extended' ), $widget_ops );
71
-
72
- }
73
-
74
- /**
75
- * Echo the widget content.
76
- *
77
- * @param array $args Display arguments including before_title, after_title, before_widget, and after_widget.
78
- * @param array $instance The settings for the particular instance of the widget
79
- */
80
- function widget( $args, $instance ) {
81
-
82
- extract( $args );
83
-
84
- /** Merge with defaults */
85
- $instance = wp_parse_args( (array) $instance, $this->defaults );
86
-
87
- echo $before_widget . '<div class="enews">';
88
-
89
- if ( ! empty( $instance['title'] ) )
90
- echo $before_title . apply_filters( 'widget_title', $instance['title'], $instance, $this->id_base ) . $after_title;
91
-
92
- echo wpautop( $instance['text'] ); // We run KSES on update
93
-
94
- if ( ! empty( $instance['id'] ) ) : ?>
95
- <form id="subscribe" action="http://feedburner.google.com/fb/a/mailverify" method="post" target="popupwindow" onsubmit="window.open( 'http://feedburner.google.com/fb/a/mailverify?uri=<?php echo esc_js( $instance['id'] ); ?>', 'popupwindow', 'scrollbars=yes,width=550,height=520');return true">
96
- <input type="text" value="<?php echo esc_attr( $instance['input_text'] ); ?>" id="subbox" onfocus="if ( this.value == '<?php echo esc_js( $instance['input_text'] ); ?>') { this.value = ''; }" onblur="if ( this.value == '' ) { this.value = '<?php echo esc_js( $instance['input_text'] ); ?>'; }" name="email" />
97
- <input type="hidden" name="uri" value="<?php echo esc_attr( $instance['id'] ); ?>" />
98
- <input type="hidden" name="loc" value="<?php echo esc_attr( get_locale() ); ?>" />
99
- <input type="submit" value="<?php echo esc_attr( $instance['button_text'] ); ?>" id="subbutton" />
100
- </form>
101
- <?php elseif ( ! empty( $instance['action'] ) ) : ?>
102
- <form id="subscribe" action="<?php echo esc_js( $instance['action'] ); ?>" method="post" <?php if ($instance['open_same_window'] == 0 ) : ?> target="_blank"<?php endif; ?>>
103
- <?php if ( ! empty($instance['fname-field'] ) ) : ?><input type="text" id="subbox1" class="enews-subbox" value="First Name" onfocus="if ( this.value == 'First Name') { this.value = ''; }" onblur="if ( this.value == '' ) { this.value = 'First Name'; }" name="<?php echo esc_js( $instance['fname-field'] ); ?>" /><?php endif ?>
104
- <?php if ( ! empty($instance['lname-field'] ) ) : ?><input type="text" id="subbox2" class="enews-subbox" value="Last Name" onfocus="if ( this.value == 'Last Name') { this.value = ''; }" onblur="if ( this.value == '' ) { this.value = 'Last Name'; }" name="<?php echo esc_js( $instance['lname-field'] ); ?>" /><?php endif ?>
105
- <input type="text" value="<?php echo esc_attr( $instance['input_text'] ); ?>" id="subbox" onfocus="if ( this.value == '<?php echo esc_js( $instance['input_text'] ); ?>') { this.value = ''; }" onblur="if ( this.value == '' ) { this.value = '<?php echo esc_js( $instance['input_text'] ); ?>'; }" name="<?php echo esc_js( $instance['email-field'] ); ?>" />
106
- <?php echo $instance['hidden_fields']; ?>
107
- <input type="submit" value="<?php echo esc_attr( $instance['button_text'] ); ?>" id="subbutton" />
108
- </form>
109
- <?php endif;
110
-
111
- echo '</div>' . $after_widget;
112
-
113
- }
114
-
115
- /**
116
- * Update a particular instance.
117
- *
118
- * This function should check that $new_instance is set correctly.
119
- * The newly calculated value of $instance should be returned.
120
- * If "false" is returned, the instance won't be saved/updated.
121
- *
122
- * @param array $new_instance New settings for this instance as input by the user via form()
123
- * @param array $old_instance Old settings for this instance
124
- * @return array Settings to save or bool false to cancel saving
125
- */
126
- function update( $new_instance, $old_instance ) {
127
-
128
- $new_instance['title'] = strip_tags( $new_instance['title'] );
129
- $new_instance['text'] = wp_kses( $new_instance['text'], genesis_formatting_allowedtags() );
130
- $new_instance['hidden_fields'] = strip_tags( $new_instance['hidden_fields'], "<input>" );
131
- return $new_instance;
132
-
133
- }
134
-
135
- /**
136
- * Echo the settings update form.
137
- *
138
- * @param array $instance Current settings
139
- */
140
- function form( $instance ) {
141
-
142
- /** Merge with defaults */
143
- $instance = wp_parse_args( (array) $instance, $this->defaults );
144
-
145
- ?>
146
- <p>
147
- <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title', 'genesis-enews-extended' ); ?>:</label><br />
148
- <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" />
149
- </p>
150
-
151
- <p>
152
- <label for="<?php echo $this->get_field_id( 'text' ); ?>"><?php _e( 'Text To Show', 'genesis-enews-extended' ); ?>:</label><br />
153
- <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>
154
- </p>
155
- <hr style="background: #ccc; border: 0; height: 1px; margin: 20px 0;">
156
- <p>
157
- <label for="<?php echo $this->get_field_id( 'id' ); ?>"><?php _e( 'Google/Feedburner ID', 'genesis-enews-extended' ); ?>:</label>
158
- <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 />
159
- <small><?php _e( 'Entering your Feedburner ID here will deactivate the custom options below.', 'genesis-enews-extended' ); ?></small>
160
- </p>
161
- <hr style="background: #ccc; border: 0; height: 1px; margin: 20px 0;">
162
- <p>
163
- <label for="<?php echo $this->get_field_id( 'action' ); ?>"><?php _e( 'Form Action', 'genesis-enews-extended' ); ?>:</label>
164
- <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" />
165
- </p>
166
-
167
- <p>
168
- <label for="<?php echo $this->get_field_id( 'email-field' ); ?>"><?php _e( 'E-Mail Field', 'genesis-enews-extended' ); ?>:</label>
169
- <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" />
170
- </p>
171
-
172
- <p>
173
- <label for="<?php echo $this->get_field_id( 'fname-field' ); ?>"><?php _e( 'First Name Field', 'genesis-enews-extended' ); ?>:</label>
174
- <input type="text" id="<?php echo $this->get_field_id( 'fname-field' ); ?>" name="<?php echo $this->get_field_name( 'fname-field' ); ?>" value="<?php echo esc_attr( $instance['fname-field'] ); ?>" class="widefat" />
175
- </p>
176
-
177
- <p>
178
- <label for="<?php echo $this->get_field_id( 'lname-field' ); ?>"><?php _e( 'Last Name Field', 'genesis-enews-extended' ); ?>:</label>
179
- <input type="text" id="<?php echo $this->get_field_id( 'lname-field' ); ?>" name="<?php echo $this->get_field_name( 'lname-field' ); ?>" value="<?php echo esc_attr( $instance['lname-field'] ); ?>" class="widefat" />
180
- </p>
181
-
182
- <p>
183
- <label for="<?php echo $this->get_field_id( 'hidden_fields' ); ?>"><?php _e( 'Hidden Fields', 'genesis-enews-extended' ); ?>:</label>
184
- <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>
185
- <br><small><?php _e( 'Not all services use hidden fields.', 'genesis-enews-extended'); ?></small>
186
- </p>
187
-
188
- <p>
189
- <input id="<?php echo $this->get_field_id( 'open_same_window' ); ?>" type="checkbox" name="<?php echo $this->get_field_name( 'open_same_window' ); ?>" value="1" <?php checked( $instance['open_same_window'] ); ?>/>
190
- <label for="<?php echo $this->get_field_id( 'open_same_window' ); ?>"><?php _e( 'Open confirmation page in same window?', 'genesis-enews-extended' ); ?></label>
191
- </p>
192
- <hr style="background: #ccc; border: 0; height: 1px; margin: 20px 0;">
193
- <p>
194
- <?php $input_text = empty( $instance['input_text'] ) ? __( 'Enter your email address...', 'genesis-enews-extended' ) : $instance['input_text']; ?>
195
- <label for="<?php echo $this->get_field_id( 'id' ); ?>"><?php _e( 'Input Text', 'genesis-enews-extended' ); ?>:</label>
196
- <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" />
197
- </p>
198
-
199
- <p>
200
- <?php $button_text = empty( $instance['button_text'] ) ? __( 'Go', 'genesis-enews-extended' ) : $instance['button_text']; ?>
201
- <label for="<?php echo $this->get_field_id( 'button_text' ); ?>"><?php _e( 'Button Text', 'genesis-enews-extended' ); ?>:</label>
202
- <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" />
203
- </p>
204
-
205
- <?php
206
- }
207
-
208
- }
209
- add_action( 'widgets_init', 'bjgk_genesis_enews_load_widgets' );
210
-
211
- function bjgk_genesis_enews_load_widgets() {
212
-
213
- register_widget( 'BJGK_Genesis_eNews_Extended' );
214
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
215
  }
1
+ <?php
2
+ /**
3
+ * Genesis eNews Extended
4
+ *
5
+ * @package BJGK\Genesis_enews_extended
6
+ * @version 0.2.0
7
+ * @author Brandon Kraft <public@brandonkraft.com>
8
+ * @copyright Copyright (c) 2012, Brandon Kraft
9
+ * @link http://www.brandonkraft.com/
10
+ * @license GPL-2.0+
11
+ *
12
+ * @wordpress-plugin
13
+ * Plugin Name: Genesis eNews Extended
14
+ * Plugin URI: http://www.brandonkraft.com/contrib/plugins/genesis-enews-extended/
15
+ * Description: Replaces the Genesis eNews Widget to allow easier use of additional mailing services.
16
+ * Version: 0.2.0
17
+ * Author: Brandon Kraft
18
+ * Author URI: http://www.brandonkraft.com
19
+ * License: GPL-2.0+
20
+ * License URI: http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
21
+ * Text Domain: genesis-enews-extended
22
+ * Domain Path: /languages/
23
+ */
24
+ /*
25
+ * This program is free software; you can redistribute it and/or modify it under the terms of the GNU
26
+ * General Public License version 2, as published by the Free Software Foundation. You may NOT assume
27
+ * that you can use any other version of the GPL.
28
+ *
29
+ * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
30
+ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
31
+ *
32
+ * Code based on original eNews Widget in the Genesis Framework by StudioPress - http://www.studiopress.com
33
+ */
34
+
35
+ add_action( 'init', 'bjgk_genesis_enews_load_translations' );
36
+ /**
37
+ * Load the textdomain / translations for the plugin.
38
+ *
39
+ * @since 0.1.4
40
+ */
41
+ function bjgk_genesis_enews_load_translations() {
42
+ $domain = 'genesis-enews-extended';
43
+ // The "plugin_locale" filter is also used in load_plugin_textdomain()
44
+ $locale = apply_filters( 'plugin_locale', get_locale(), $domain );
45
+ load_textdomain( 'genesis-enews-extended', WP_LANG_DIR . '/genesis-enews-extended/' . $domain . '-' . $locale . '.mo' );
46
+ load_plugin_textdomain( 'genesis-enews-extended', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
47
+ }
48
+
49
+ /**
50
+ * Main plugin class.
51
+ *
52
+ * @package BJGK\Genesis_enews_extended
53
+ * @author Brandon Kraft <public@brandonkraft.com>
54
+ */
55
+ class BJGK_Genesis_eNews_Extended extends WP_Widget {
56
+
57
+ /**
58
+ * Holds widget settings defaults, populated in constructor.
59
+ *
60
+ * @var array
61
+ */
62
+ protected $defaults;
63
+
64
+ /**
65
+ * Constructor. Set the default widget options and create widget.
66
+ *
67
+ * @since 0.1.0
68
+ */
69
+ function __construct() {
70
+ $this->defaults = array(
71
+ 'title' => '',
72
+ 'text' => '',
73
+ 'hidden_fields' => '',
74
+ 'open_same_window' => 0,
75
+ 'fname-field' => '',
76
+ 'lname-field' => '',
77
+ 'input_text' => '',
78
+ 'button_text' => '',
79
+ 'action' => '',
80
+ );
81
+
82
+ $widget_ops = array(
83
+ 'classname' => 'enews-widget',
84
+ 'description' => __( 'Displays subscribe form', 'genesis-enews-extended' ),
85
+ );
86
+
87
+ parent::__construct( 'enews-ext', __( 'Genesis - eNews Extended', 'genesis-enews-extended' ), $widget_ops );
88
+ }
89
+
90
+ /**
91
+ * Echo the widget content.
92
+ *
93
+ * @since 0.1.0
94
+ *
95
+ * @param array $args Display arguments including before_title, after_title, before_widget, and after_widget.
96
+ * @param array $instance The settings for the particular instance of the widget.
97
+ */
98
+ function widget( $args, $instance ) {
99
+ extract( $args );
100
+
101
+ // Merge with defaults
102
+ $instance = wp_parse_args( (array) $instance, $this->defaults );
103
+
104
+ echo $before_widget . '<div class="enews">';
105
+
106
+ if ( ! empty( $instance['title'] ) )
107
+ echo $before_title . apply_filters( 'widget_title', $instance['title'], $instance, $this->id_base ) . $after_title;
108
+
109
+ echo wpautop( $instance['text'] ); // We run KSES on update
110
+
111
+ if ( ! empty( $instance['id'] ) ) : ?>
112
+ <form id="subscribe" action="http://feedburner.google.com/fb/a/mailverify" method="post" target="popupwindow" onsubmit="window.open( 'http://feedburner.google.com/fb/a/mailverify?uri=<?php echo esc_js( $instance['id'] ); ?>', 'popupwindow', 'scrollbars=yes,width=550,height=520');return true">
113
+ <input type="text" value="<?php echo esc_attr( $instance['input_text'] ); ?>" id="subbox" onfocus="if ( this.value == '<?php echo esc_js( $instance['input_text'] ); ?>') { this.value = ''; }" onblur="if ( this.value == '' ) { this.value = '<?php echo esc_js( $instance['input_text'] ); ?>'; }" name="email" />
114
+ <input type="hidden" name="uri" value="<?php echo esc_attr( $instance['id'] ); ?>" />
115
+ <input type="hidden" name="loc" value="<?php echo esc_attr( get_locale() ); ?>" />
116
+ <input type="submit" value="<?php echo esc_attr( $instance['button_text'] ); ?>" id="subbutton" />
117
+ </form>
118
+ <?php elseif ( ! empty( $instance['action'] ) ) : ?>
119
+ <form id="subscribe" action="<?php echo esc_js( $instance['action'] ); ?>" method="post" <?php if ($instance['open_same_window'] == 0 ) : ?> target="_blank"<?php endif; ?>>
120
+ <?php if ( ! empty($instance['fname-field'] ) ) : ?><input type="text" id="subbox1" class="enews-subbox" value="First Name" onfocus="if ( this.value == 'First Name') { this.value = ''; }" onblur="if ( this.value == '' ) { this.value = 'First Name'; }" name="<?php echo esc_js( $instance['fname-field'] ); ?>" /><?php endif ?>
121
+ <?php if ( ! empty($instance['lname-field'] ) ) : ?><input type="text" id="subbox2" class="enews-subbox" value="Last Name" onfocus="if ( this.value == 'Last Name') { this.value = ''; }" onblur="if ( this.value == '' ) { this.value = 'Last Name'; }" name="<?php echo esc_js( $instance['lname-field'] ); ?>" /><?php endif ?>
122
+ <input type="text" value="<?php echo esc_attr( $instance['input_text'] ); ?>" id="subbox" onfocus="if ( this.value == '<?php echo esc_js( $instance['input_text'] ); ?>') { this.value = ''; }" onblur="if ( this.value == '' ) { this.value = '<?php echo esc_js( $instance['input_text'] ); ?>'; }" name="<?php echo esc_js( $instance['email-field'] ); ?>" />
123
+ <?php echo $instance['hidden_fields']; ?>
124
+ <input type="submit" value="<?php echo esc_attr( $instance['button_text'] ); ?>" id="subbutton" />
125
+ </form>
126
+ <?php endif;
127
+
128
+ echo '</div>' . $after_widget;
129
+ }
130
+
131
+ /**
132
+ * Update a particular instance.
133
+ *
134
+ * This function should check that $new_instance is set correctly.
135
+ * The newly calculated value of $instance should be returned.
136
+ * If false is returned, the instance won't be saved / updated.
137
+ *
138
+ * @since 0.1.0
139
+ *
140
+ * @param array $new_instance New settings for this instance as input by the user via form().
141
+ * @param array $old_instance Old settings for this instance.
142
+ *
143
+ * @return array Settings to save or bool false to cancel saving
144
+ */
145
+ function update( $new_instance, $old_instance ) {
146
+ $new_instance['title'] = strip_tags( $new_instance['title'] );
147
+ $new_instance['text'] = wp_kses( $new_instance['text'], genesis_formatting_allowedtags() );
148
+ $new_instance['hidden_fields'] = strip_tags( $new_instance['hidden_fields'], "<input>" );
149
+ return $new_instance;
150
+ }
151
+
152
+ /**
153
+ * Echo the settings update form.
154
+ *
155
+ * @since 0.1.0
156
+ *
157
+ * @param array $instance Current settings.
158
+ */
159
+ function form( $instance ) {
160
+ // Merge with defaults
161
+ $instance = wp_parse_args( (array) $instance, $this->defaults );
162
+ ?>
163
+ <p>
164
+ <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title', 'genesis-enews-extended' ); ?>:</label><br />
165
+ <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" />
166
+ </p>
167
+
168
+ <p>
169
+ <label for="<?php echo $this->get_field_id( 'text' ); ?>"><?php _e( 'Text To Show', 'genesis-enews-extended' ); ?>:</label><br />
170
+ <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>
171
+ </p>
172
+ <hr style="background: #ccc; border: 0; height: 1px; margin: 20px 0;">
173
+ <p>
174
+ <label for="<?php echo $this->get_field_id( 'id' ); ?>"><?php _e( 'Google/Feedburner ID', 'genesis-enews-extended' ); ?>:</label>
175
+ <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 />
176
+ <small><?php _e( 'Entering your Feedburner ID here will deactivate the custom options below.', 'genesis-enews-extended' ); ?></small>
177
+ </p>
178
+ <hr style="background: #ccc; border: 0; height: 1px; margin: 20px 0;">
179
+ <p>
180
+ <label for="<?php echo $this->get_field_id( 'action' ); ?>"><?php _e( 'Form Action', 'genesis-enews-extended' ); ?>:</label>
181
+ <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" />
182
+ </p>
183
+
184
+ <p>
185
+ <label for="<?php echo $this->get_field_id( 'email-field' ); ?>"><?php _e( 'E-Mail Field', 'genesis-enews-extended' ); ?>:</label>
186
+ <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" />
187
+ </p>
188
+
189
+ <p>
190
+ <label for="<?php echo $this->get_field_id( 'fname-field' ); ?>"><?php _e( 'First Name Field', 'genesis-enews-extended' ); ?>:</label>
191
+ <input type="text" id="<?php echo $this->get_field_id( 'fname-field' ); ?>" name="<?php echo $this->get_field_name( 'fname-field' ); ?>" value="<?php echo esc_attr( $instance['fname-field'] ); ?>" class="widefat" />
192
+ </p>
193
+
194
+ <p>
195
+ <label for="<?php echo $this->get_field_id( 'lname-field' ); ?>"><?php _e( 'Last Name Field', 'genesis-enews-extended' ); ?>:</label>
196
+ <input type="text" id="<?php echo $this->get_field_id( 'lname-field' ); ?>" name="<?php echo $this->get_field_name( 'lname-field' ); ?>" value="<?php echo esc_attr( $instance['lname-field'] ); ?>" class="widefat" />
197
+ </p>
198
+
199
+ <p>
200
+ <label for="<?php echo $this->get_field_id( 'hidden_fields' ); ?>"><?php _e( 'Hidden Fields', 'genesis-enews-extended' ); ?>:</label>
201
+ <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>
202
+ <br><small><?php _e( 'Not all services use hidden fields.', 'genesis-enews-extended'); ?></small>
203
+ </p>
204
+
205
+ <p>
206
+ <input id="<?php echo $this->get_field_id( 'open_same_window' ); ?>" type="checkbox" name="<?php echo $this->get_field_name( 'open_same_window' ); ?>" value="1" <?php checked( $instance['open_same_window'] ); ?>/>
207
+ <label for="<?php echo $this->get_field_id( 'open_same_window' ); ?>"><?php _e( 'Open confirmation page in same window?', 'genesis-enews-extended' ); ?></label>
208
+ </p>
209
+ <hr style="background: #ccc; border: 0; height: 1px; margin: 20px 0;">
210
+ <p>
211
+ <?php $input_text = empty( $instance['input_text'] ) ? __( 'Enter your email address...', 'genesis-enews-extended' ) : $instance['input_text']; ?>
212
+ <label for="<?php echo $this->get_field_id( 'id' ); ?>"><?php _e( 'Input Text', 'genesis-enews-extended' ); ?>:</label>
213
+ <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" />
214
+ </p>
215
+
216
+ <p>
217
+ <?php $button_text = empty( $instance['button_text'] ) ? __( 'Go', 'genesis-enews-extended' ) : $instance['button_text']; ?>
218
+ <label for="<?php echo $this->get_field_id( 'button_text' ); ?>"><?php _e( 'Button Text', 'genesis-enews-extended' ); ?>:</label>
219
+ <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" />
220
+ </p>
221
+
222
+ <?php
223
+ }
224
+
225
+ }
226
+
227
+ add_action( 'widgets_init', 'bjgk_genesis_enews_load_widgets' );
228
+ /**
229
+ * Register widget.
230
+ *
231
+ * @since 0.1.0
232
+ */
233
+ function bjgk_genesis_enews_load_widgets() {
234
+ register_widget( 'BJGK_Genesis_eNews_Extended' );
235
  }
readme.txt CHANGED
@@ -1,98 +1,107 @@
1
- === Genesis eNews Extended ===
2
- Contributors: kraftbj, coffeaweb
3
- Donate link: http://www.brandonkraft.com/donate/
4
- Tags: genesis
5
- Requires at least: 3.0
6
- Tested up to: 3.5
7
- Stable tag: 0.1.6
8
-
9
- Creates a new widget to easily add mailing lists integration to a Genesis website. Works with FeedBurner, MailChimp, AWeber, FeedBlitz and more.
10
-
11
- == Description ==
12
-
13
- Creates a new widget to easily add mailing lists to a Genesis website. Recommended plugin to replace the Genesis eNews Widget being depreciated in Genesis 1.9. The widget allows the site administrator to set the either the Feedburner ID or form action, e-mail form field and hidden fields to mimic the subscribe form of other mailing list services.
14
-
15
- == Installation ==
16
-
17
- 1. Upload contents of the directory to /wp-content/plugins/ (or use the automatic installer)
18
- 1. Activate the plugin through the 'Plugins' menu in WordPress
19
- 1. In Appearance->Widgerts, add Genesis eNews Extended widget to any sidebar.
20
- 1. Using the mailing list contact form code provided by your vendor, add the form action URL, the form field ID for the e-mail field and any hidden fields (not all services use them) into the widget options.
21
- 1. If using name fields, read the [plugin's tutorial website](http://www.brandonkraft.com/contrib/plugins/genesis-enews-extended/tutorials).
22
- 1. Verify it works!
23
-
24
- == Frequently Asked Questions ==
25
-
26
- = What services work with this plugin? =
27
-
28
- Feedburner, MailChimp, Aweber, FeedBlitz and Constant Contact are confirmed to work, but it should work with almost all services. If you have tested this with other services, please [contact me](http://brandonkraft.com/contact/)
29
-
30
- = The "Opens in Same Tab" option doesn't work with FeedBurner. What's wrong? =
31
-
32
- That is intentional. You don't want to knock people off your site and leave them on FeedBurner's.
33
-
34
- = I'm using Minimum 2.0. Where's the submit button? =
35
-
36
- That is a feature of the theme. If you want the button back, remove ".enews #subbutton," on line 1236 of style.css.
37
-
38
- = The first and last name fields look funky. =
39
-
40
- Read more on the [plugin's tutorial website](http://www.brandonkraft.com/contrib/plugins/genesis-enews-extended/tutorials).
41
-
42
- = I need help! Where I can get it? =
43
-
44
- "Official" tutorials will be maintained on the [plugin's website](http://www.brandonkraft.com/contrib/plugins/genesis-enews-extended/).
45
-
46
- Questions can be asked at the [WordPress.org Support Forum](http://wordpress.org/support/plugin/genesis-enews-extended) for this plugin.
47
-
48
- == Screenshots ==
49
- 1. Example of the plugin in use on a site running Streamline 2.0.
50
- 2. Widget setting screen.
51
-
52
- == Changelog ==
53
-
54
- = 0.1.6 =
55
- * Makes available first and last name fields.
56
-
57
- = 0.1.5 =
58
- * Adds option to open confirmation window in same tab.
59
-
60
- = 0.1.4 =
61
- * Adds l18n support for other languages (thanks David Decker!)
62
- * Adds German translation (thanks David Decker!)
63
-
64
- = 0.1.3 =
65
- * Adds Feedburner support in anticipation of Genesis 1.9
66
- * Security and translation updates
67
-
68
- = 0.1.2 =
69
- * Modifies class name to work with more StudioPress themes.
70
-
71
- = 0.1.1 =
72
- * Adds "Hidden Fields" widget setting to make widget compatible with more mailing services.
73
-
74
- = 0.1 =
75
- * Inital release.
76
-
77
- == Upgrade Notice ==
78
-
79
- = 0.1 =
80
- Initial stable release. Please update from alpha now.
81
-
82
- = 0.1.1 =
83
- Adds "Hidden Fields" widget setting to make widget compatible with more mailing services. Upgrade if you want to use AWeber or other services that require one or more hidden fields.
84
-
85
- = 0.1.2 =
86
- Expands widget's usefulness to more StudioPress themes (Balance, etc).
87
-
88
- = 0.1.3 =
89
- Security update and adds Feedburner support natively.
90
-
91
- = 0.1.4 =
92
- Adds translation support and adds German translation.
93
-
94
- = 0.1.5 =
95
- Adds option to open confirmation screen in same tab.
96
-
97
- = 0.1.6 =
98
- Adds first and last name fields. Check instructions before usage.
 
 
 
 
 
 
 
 
 
1
+ === Genesis eNews Extended ===
2
+ Contributors: kraftbj, coffeaweb
3
+ Donate link: http://www.brandonkraft.com/donate/
4
+ Tags: genesis
5
+ Requires at least: 3.0
6
+ Tested up to: 3.5
7
+ Stable tag: 0.2.0
8
+
9
+ Creates a new widget to easily add mailing lists integration to a Genesis website. Works with FeedBurner, MailChimp, AWeber, FeedBlitz and more.
10
+
11
+ == Description ==
12
+
13
+ Creates a new widget to easily add mailing lists to a Genesis website. Recommended plugin to replace the Genesis eNews Widget being depreciated in Genesis 1.9. The widget allows the site administrator to set the either the Feedburner ID or form action, e-mail form field and hidden fields to mimic the subscribe form of other mailing list services.
14
+
15
+ == Installation ==
16
+
17
+ 1. Upload contents of the directory to /wp-content/plugins/ (or use the automatic installer)
18
+ 1. Activate the plugin through the 'Plugins' menu in WordPress
19
+ 1. In Appearance->Widgets, add Genesis eNews Extended widget to any sidebar.
20
+ 1. Using the mailing list contact form code provided by your vendor, add the form action URL, the form field ID for the e-mail field and any hidden fields (not all services use them) into the widget options.
21
+ 1. If using name fields, read the [plugin's tutorial website](http://www.brandonkraft.com/contrib/plugins/genesis-enews-extended/tutorials).
22
+ 1. Verify it works!
23
+
24
+ == Frequently Asked Questions ==
25
+
26
+ = What services work with this plugin? =
27
+
28
+ Feedburner, MailChimp, Aweber, FeedBlitz and Constant Contact are confirmed to work, but it should work with almost all services. If you have tested this with other services, please [contact me](http://brandonkraft.com/contact/)
29
+
30
+ = The "Opens in Same Tab" option doesn't work with FeedBurner. What's wrong? =
31
+
32
+ That is intentional. You don't want to knock people off your site and leave them on FeedBurner's.
33
+
34
+ = I'm using Minimum 2.0. Where's the submit button? =
35
+
36
+ That is a feature of the theme. If you want the button back, remove ".enews #subbutton," on line 1236 of style.css.
37
+
38
+ = The first and last name fields look funky. =
39
+
40
+ Read more on the [plugin's tutorial website](http://www.brandonkraft.com/contrib/plugins/genesis-enews-extended/tutorials).
41
+
42
+ = I need help! Where I can get it? =
43
+
44
+ "Official" tutorials will be maintained on the [plugin's website](http://www.brandonkraft.com/contrib/plugins/genesis-enews-extended/).
45
+
46
+ Questions can be asked at the [WordPress.org Support Forum](http://wordpress.org/support/plugin/genesis-enews-extended) for this plugin.
47
+
48
+ == Screenshots ==
49
+ 1. Example of the plugin in use on a site running Streamline 2.0.
50
+ 2. Widget setting screen.
51
+
52
+ == Changelog ==
53
+
54
+ = 0.2.0 =
55
+ * Various code enhancements to improve performance and adhere better to WP standards (props to [Gary Jones](http://garyjones.co.uk/))
56
+ * Adds Spanish translation (props to [Ryan Sullivan](http://www.wpsitecare.com/))
57
+ * Adds Italian translation (props to [Marco Galasso](http://neatandplain.com/))
58
+ * Adds Slovak translation (props to [Branco Radenovich](http://webhostinggeeks.com/user-reviews/))
59
+
60
+ = 0.1.6 =
61
+ * Makes available first and last name fields.
62
+
63
+ = 0.1.5 =
64
+ * Adds option to open confirmation window in same tab.
65
+
66
+ = 0.1.4 =
67
+ * Adds l18n support for other languages (thanks David Decker!)
68
+ * Adds German translation (thanks David Decker!)
69
+
70
+ = 0.1.3 =
71
+ * Adds Feedburner support in anticipation of Genesis 1.9
72
+ * Security and translation updates
73
+
74
+ = 0.1.2 =
75
+ * Modifies class name to work with more StudioPress themes.
76
+
77
+ = 0.1.1 =
78
+ * Adds "Hidden Fields" widget setting to make widget compatible with more mailing services.
79
+
80
+ = 0.1 =
81
+ * Inital release.
82
+
83
+ == Upgrade Notice ==
84
+
85
+ = 0.1 =
86
+ Initial stable release. Please update from alpha now.
87
+
88
+ = 0.1.1 =
89
+ Adds "Hidden Fields" widget setting to make widget compatible with more mailing services. Upgrade if you want to use AWeber or other services that require one or more hidden fields.
90
+
91
+ = 0.1.2 =
92
+ Expands widget's usefulness to more StudioPress themes (Balance, etc).
93
+
94
+ = 0.1.3 =
95
+ Security update and adds Feedburner support natively.
96
+
97
+ = 0.1.4 =
98
+ Adds translation support and adds German translation.
99
+
100
+ = 0.1.5 =
101
+ Adds option to open confirmation screen in same tab.
102
+
103
+ = 0.1.6 =
104
+ Adds first and last name fields. Check instructions before usage.
105
+
106
+ = 0.2.0 =
107
+ Code enhancements and adds Spanish, Italian, and Slovak translations.