Version Description
- Fix: Switch
wp_nonce
to_wpnonce
, fixing the ability to refresh GEM forms.
Download this release
Release Info
Developer | eherman24 |
Plugin | GoDaddy Email Marketing |
Version | 1.2.1 |
Comparing to | |
See all releases |
Code changes from version 1.2.0 to 1.2.1
- css/admin.min.css +1 -1
- css/gem.min.css +1 -1
- godaddy-email-marketing.php +2 -2
- images/spinner-2x.gif +0 -0
- images/spinner.gif +0 -0
- includes/settings.php +1 -1
- js/admin.min.js +1 -1
- js/gem.min.js +1 -1
- languages/godaddy-email-marketing-da_DK.mo +0 -0
- languages/godaddy-email-marketing-de_DE.mo +0 -0
- languages/godaddy-email-marketing-el.mo +0 -0
- languages/godaddy-email-marketing-es_ES.mo +0 -0
- languages/godaddy-email-marketing-es_MX.mo +0 -0
- languages/godaddy-email-marketing-fi.mo +0 -0
- languages/godaddy-email-marketing-fr_FR.mo +0 -0
- languages/godaddy-email-marketing-hi_IN.mo +0 -0
- languages/godaddy-email-marketing-id_ID.mo +0 -0
- languages/godaddy-email-marketing-it_IT.mo +0 -0
- languages/godaddy-email-marketing-ja.mo +0 -0
- languages/godaddy-email-marketing-ko_KR.mo +0 -0
- languages/godaddy-email-marketing-mr.mo +0 -0
- languages/godaddy-email-marketing-ms_MY.mo +0 -0
- languages/godaddy-email-marketing-nb_NO.mo +0 -0
- languages/godaddy-email-marketing-nl_NL.mo +0 -0
- languages/godaddy-email-marketing-pl_PL.mo +0 -0
- languages/godaddy-email-marketing-pt_BR.mo +0 -0
- languages/godaddy-email-marketing-pt_PT.mo +0 -0
- languages/godaddy-email-marketing-ru_RU.mo +0 -0
- languages/godaddy-email-marketing-sv_SE.mo +0 -0
- languages/godaddy-email-marketing-th.mo +0 -0
- languages/godaddy-email-marketing-tl.mo +0 -0
- languages/godaddy-email-marketing-tr_TR.mo +0 -0
- languages/godaddy-email-marketing-uk.mo +0 -0
- languages/godaddy-email-marketing-vi.mo +0 -0
- languages/godaddy-email-marketing-zh_CN.mo +0 -0
- languages/godaddy-email-marketing-zh_HK.mo +0 -0
- languages/godaddy-email-marketing-zh_TW.mo +0 -0
- languages/godaddy-email-marketing.pot +48 -5
- readme.txt +6 -1
css/admin.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.
|
1 |
+
.about-wrap{margin:10px 20px 0 2px}.intro{float:left;width:100%}div.updated.updated.gem-identity{background-image:url( '../images/gem.svg' );background-repeat:no-repeat;background-position:15px 15px;background-size:80px;display:block!important;padding-left:110px!important}div.updated.gem-identity p:first-child{color:#23282d;font-size:1.1em;font-weight:700}.description .button{margin:5px}.description .button+.button{margin-left:0}.col{float:left}.col.banner{outline:1px solid #ccc}.col.banner img{margin-bottom:0}.panel{display:none;float:left;width:100%}.intro h1{margin-right:0;font-size:1.53333em;margin:0 0 15px 0;padding:9px 15px 4px 0}.intro h1 sup{background:#fff;color:#666;font-size:12px;font-weight:700;padding:5px 10px;white-space:nowrap;vertical-align:top}#help iframe{width:100%;min-height:800px;margin-top:20px}@media screen and (min-width:783px){#settings .form-table th{width:30%}#help iframe{margin-top:10px}}#setting-errors{float:left;width:100%}.notice,div.error,div.updated{display:none!important}#setting-errors>.notice,#setting-errors>div.error,#setting-errors>div.updated{clear:both;display:block!important;margin-top:1.25em}code.gem-form-id{display:inline-block;margin-top:1px;padding:6px 10px 5px}input.copied,input.copied:focus{border-color:#46b450;box-shadow:0 0 2px rgba(70,180,80,.8)}input.copied::selection{background-color:#d5f4d8}input.copied::-moz-selection{background-color:#d5f4d8}.button.copy-to-clipboard{display:inline-block;height:30px;margin-top:1px}.mobile .button.copy-to-clipboard{display:none}@media screen and (max-width:782px){.button.copy-to-clipboard{height:38px;margin:1px 1px 10px 1px;position:relative}}
|
css/gem.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
form.gem-form p{padding:0}input.gem-invalid{border:1px solid red}.gem-field{display:block}form.gem-form label{display:inline!important}.gem-spinner{display:none;background:url(../images/spinner.gif) no-repeat;background-size:20px 20px;width:20px;height:20px}.gem-submit{cursor:pointer}form.gem-form p.gem-error{background-color:#ffebe8;border:1px solid #c00;padding:.25em .5em;margin:.6em 0;border-radius:3px}@media print,(-o-min-device-pixel-ratio:5/4),(-webkit-min-device-pixel-ratio:1.25),(min-resolution:120dpi){.gem-spinner{background-image:url(../images/spinner-2x.gif)}}
|
1 |
+
form.gem-form p{padding:0}input.gem-invalid{border:1px solid red}.gem-field{display:block}form.gem-form label{display:inline!important}.gem-spinner{display:none;background:url( '../images/spinner.gif' ) no-repeat;background-size:20px 20px;width:20px;height:20px}.gem-submit{cursor:pointer}form.gem-form p.gem-error{background-color:#ffebe8;border:1px solid #c00;padding:.25em .5em;margin:.6em 0;border-radius:3px}@media print,(-o-min-device-pixel-ratio:5/4),(-webkit-min-device-pixel-ratio:1.25),(min-resolution:120dpi){.gem-spinner{background-image:url( '../images/spinner-2x.gif' )}}
|
godaddy-email-marketing.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: GoDaddy Email Marketing
|
4 |
* Plugin URI: https://gem.godaddy.com/
|
5 |
* Description: Add the GoDaddy Email Marketing signup form to your WordPress site! Easy to set up, the plugin allows your site visitors to subscribe to your email lists.
|
6 |
-
* Version: 1.2.
|
7 |
* Author: GoDaddy
|
8 |
* Author URI: https://gem.godaddy.com/
|
9 |
* License: GPL-2.0
|
@@ -108,7 +108,7 @@ class GEM_Official {
|
|
108 |
|
109 |
// Plugin's main directory.
|
110 |
defined( 'GEM_VERSION' )
|
111 |
-
or define( 'GEM_VERSION', '1.2.
|
112 |
|
113 |
// Set up the base name.
|
114 |
isset( self::$basename ) || self::$basename = plugin_basename( __FILE__ );
|
3 |
* Plugin Name: GoDaddy Email Marketing
|
4 |
* Plugin URI: https://gem.godaddy.com/
|
5 |
* Description: Add the GoDaddy Email Marketing signup form to your WordPress site! Easy to set up, the plugin allows your site visitors to subscribe to your email lists.
|
6 |
+
* Version: 1.2.1
|
7 |
* Author: GoDaddy
|
8 |
* Author URI: https://gem.godaddy.com/
|
9 |
* License: GPL-2.0
|
108 |
|
109 |
// Plugin's main directory.
|
110 |
defined( 'GEM_VERSION' )
|
111 |
+
or define( 'GEM_VERSION', '1.2.1' );
|
112 |
|
113 |
// Set up the base name.
|
114 |
isset( self::$basename ) || self::$basename = plugin_basename( __FILE__ );
|
images/spinner-2x.gif
CHANGED
Binary file
|
images/spinner.gif
CHANGED
Binary file
|
includes/settings.php
CHANGED
@@ -733,7 +733,7 @@ class GEM_Settings {
|
|
733 |
add_query_arg(
|
734 |
array(
|
735 |
'action' => 'refresh',
|
736 |
-
'
|
737 |
),
|
738 |
remove_query_arg( 'tab' )
|
739 |
)
|
733 |
add_query_arg(
|
734 |
array(
|
735 |
'action' => 'refresh',
|
736 |
+
'_wpnonce' => wp_create_nonce( 'gem_settings_refresh_nonce' ),
|
737 |
),
|
738 |
remove_query_arg( 'tab' )
|
739 |
)
|
js/admin.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e){"use strict";var t=window.GEMAdmin||{};t.init=function(){t.tabbedNav(),t.copyToClipboard()},t.tabbedNav=function(){var t=this,a=e(".about-wrap");e("div.panel",a).hide(),e(window).on("load",function(){var n=t.getParameterByName("tab"),i=window.location.hash.substr(1);e("div.updated, div.error, div.notice").not(".gem-identity").appendTo("#setting-errors"),n?e('.nav-tab-wrapper a[href="#'+n+'"]',a).click():i?e('.nav-tab-wrapper a[href="#'+i+'"]',a).click():e("div.panel:not(.hidden)",a).first().show()}),e(".nav-tab-wrapper a",a).on("click",function(){return e(".nav-tab-wrapper a",a).removeClass("nav-tab-active"),e("div.panel",a).hide(),e(this).addClass("nav-tab-active"),e("div"+e(this).attr("href"),a).show(),!1})},t.getParameterByName=function(e){var t;return e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]"),null===(t=new RegExp("[\\?&]"+e+"=([^&#]*)").exec(location.search))?"":decodeURIComponent(t[1].replace(/\+/g," "))},t.copyToClipboard=function(){e(".clipboard-value").on("click",function(){this.select()}),e(".copy-to-clipboard").on("click",function(a){var n=e(e(this).data("copytarget"));if(a.preventDefault(),n&&n.select){n.click();try{document.execCommand("copy"),n.addClass("copied"),setTimeout(function(){n.blur().removeClass("copied"),document.selection?document.selection.empty():window.getSelection&&window.getSelection().removeAllRanges()},1500)}catch(e){alert(t.copyFailed)}}})},e(document).ready(t.init)}(jQuery);
|
js/gem.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e){"use strict";var a=window.GEM||{};a.DEBUG_FLAG=!0,a.init=function(){e("form.gem-form").submit(function(i){var t,s,n,r,u,d=e(this),h=e(".gem-spinner",d),c=d.find(".gem-error, .gem-info"),o=[],l=[];i.preventDefault(),e(this).find("input[type=checkbox]").each(function(){var a=e(this).data("name");s!==a&&(s=a,n=e('input:checkbox[data-name="'+a+'"]:checked').map(function(){return this.value}).get().join(", "),e('input[name="'+a+'"]').val(n))}),e(this).find("[fingerprint=date]").each(function(){var a=e(this).data("name");r!==a&&(r=a,e('select[data-name="'+a+'"]').each(function(){var a=e(this).val();a&&l.push(a)}),3===l.length&&(u=l[0]+" "+l[1]+", "+l[2],e('input[name="'+a+'"]').val(u)))}),t=e(this).serialize(),d.find("input.gem-invalid").removeClass("gem-invalid"),e(this).find(".gem-required").each(function(){var i=e(this).val();"signup[email]"!==e(this).attr("name")||a.isEmail(i)?""===i&&e(this).is("input")?o.push(e(this)):e(this).is("label")&&void 0===e('input:radio[name="'+e(this).data("name")+'"]:checked').val()&&o.push(e(this)):o.push(e(this))}),0===o.length?(h.css("display","inline-block"),e.post(d.attr("action")+".json",t,function(e){d.fadeOut("fast",function(){var i;e.success?(i=e.result.audience_member.suppressed,e.result.has_redirect&&(window.location.href=e.result.redirect),d.html(a.addMessage(i?["suppressed","success"]:["info","success"],i?a.thankyou_suppressed:a.thankyou)).fadeIn("fast")):d.html(a.addMessage("info",a.oops)).fadeIn("fast")})},"jsonp")):(0!==c.length&&c.remove(),e(o.reverse()).each(function(){var i="";e(this).addClass("gem-invalid"),"signup[email]"===e(this).attr("name")?i=""===e(this).val()?a.required.replace("%s",e(this).data("label")):a.email:e(this).data("label")&&(i=a.required.replace("%s",e(this).data("label"))),i&&d.prepend(a.addMessage("error",i))}))})},a.addMessage=function(a,i){var t=[];return e.isArray(a)?e.each(a,function(e,a){t.push("gem-"+a)}):t.push("gem-"+a.toString()),e("<p/>",{class:t.join(" ")}).text(i)},a.isEmail=function(e){return/^([a-zA-Z0-9_\.\-\+])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/.test(e)},e(document).ready(a.init)}(jQuery);
|
languages/godaddy-email-marketing-da_DK.mo
CHANGED
Binary file
|
languages/godaddy-email-marketing-de_DE.mo
CHANGED
Binary file
|
languages/godaddy-email-marketing-el.mo
CHANGED
Binary file
|
languages/godaddy-email-marketing-es_ES.mo
CHANGED
Binary file
|
languages/godaddy-email-marketing-es_MX.mo
CHANGED
Binary file
|
languages/godaddy-email-marketing-fi.mo
CHANGED
Binary file
|
languages/godaddy-email-marketing-fr_FR.mo
CHANGED
Binary file
|
languages/godaddy-email-marketing-hi_IN.mo
CHANGED
Binary file
|
languages/godaddy-email-marketing-id_ID.mo
CHANGED
Binary file
|
languages/godaddy-email-marketing-it_IT.mo
CHANGED
Binary file
|
languages/godaddy-email-marketing-ja.mo
CHANGED
Binary file
|
languages/godaddy-email-marketing-ko_KR.mo
CHANGED
Binary file
|
languages/godaddy-email-marketing-mr.mo
CHANGED
Binary file
|
languages/godaddy-email-marketing-ms_MY.mo
CHANGED
Binary file
|
languages/godaddy-email-marketing-nb_NO.mo
CHANGED
Binary file
|
languages/godaddy-email-marketing-nl_NL.mo
CHANGED
Binary file
|
languages/godaddy-email-marketing-pl_PL.mo
CHANGED
Binary file
|
languages/godaddy-email-marketing-pt_BR.mo
CHANGED
Binary file
|
languages/godaddy-email-marketing-pt_PT.mo
CHANGED
Binary file
|
languages/godaddy-email-marketing-ru_RU.mo
CHANGED
Binary file
|
languages/godaddy-email-marketing-sv_SE.mo
CHANGED
Binary file
|
languages/godaddy-email-marketing-th.mo
CHANGED
Binary file
|
languages/godaddy-email-marketing-tl.mo
CHANGED
Binary file
|
languages/godaddy-email-marketing-tr_TR.mo
CHANGED
Binary file
|
languages/godaddy-email-marketing-uk.mo
CHANGED
Binary file
|
languages/godaddy-email-marketing-vi.mo
CHANGED
Binary file
|
languages/godaddy-email-marketing-zh_CN.mo
CHANGED
Binary file
|
languages/godaddy-email-marketing-zh_HK.mo
CHANGED
Binary file
|
languages/godaddy-email-marketing-zh_TW.mo
CHANGED
Binary file
|
languages/godaddy-email-marketing.pot
CHANGED
@@ -4,7 +4,7 @@ msgstr ""
|
|
4 |
"Project-Id-Version: GoDaddy Email Marketing 1.2.0\n"
|
5 |
"Report-Msgid-Bugs-To: "
|
6 |
"https://github.com/godaddy/wp-godaddy-email-marketing/issues\n"
|
7 |
-
"POT-Creation-Date: 2017-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -16,6 +16,48 @@ msgstr ""
|
|
16 |
"attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;esc_html_x:1,2c;\n"
|
17 |
"X-Generator: grunt-wp-i18n1.0.0\n"
|
18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
#. Plugin Name of the plugin/theme
|
20 |
msgid "GoDaddy Email Marketing"
|
21 |
msgstr ""
|
@@ -243,10 +285,6 @@ msgstr ""
|
|
243 |
msgid "Forms"
|
244 |
msgstr ""
|
245 |
|
246 |
-
#: includes/settings.php:611
|
247 |
-
msgid "Settings"
|
248 |
-
msgstr ""
|
249 |
-
|
250 |
#: includes/settings.php:612
|
251 |
msgid "Help"
|
252 |
msgstr ""
|
@@ -347,6 +385,11 @@ msgid ""
|
|
347 |
"lists."
|
348 |
msgstr ""
|
349 |
|
|
|
|
|
|
|
|
|
|
|
350 |
#: includes/settings.php:96
|
351 |
msgctxt "failed copy response"
|
352 |
msgid "Please press Ctrl/Cmd+C to copy."
|
4 |
"Project-Id-Version: GoDaddy Email Marketing 1.2.0\n"
|
5 |
"Report-Msgid-Bugs-To: "
|
6 |
"https://github.com/godaddy/wp-godaddy-email-marketing/issues\n"
|
7 |
+
"POT-Creation-Date: 2017-03-09 21:44:14+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
16 |
"attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;esc_html_x:1,2c;\n"
|
17 |
"X-Generator: grunt-wp-i18n1.0.0\n"
|
18 |
|
19 |
+
#: godaddy-email-marketing.php:201
|
20 |
+
msgid "Thank you for signing up!"
|
21 |
+
msgstr ""
|
22 |
+
|
23 |
+
#: godaddy-email-marketing.php:202
|
24 |
+
msgid ""
|
25 |
+
"Thank you for signing up! Please check your email to confirm your "
|
26 |
+
"subscription."
|
27 |
+
msgstr ""
|
28 |
+
|
29 |
+
#: godaddy-email-marketing.php:203
|
30 |
+
msgid "Oops! There was a problem. Please try again."
|
31 |
+
msgstr ""
|
32 |
+
|
33 |
+
#: godaddy-email-marketing.php:204
|
34 |
+
msgid "Please enter a valid email address."
|
35 |
+
msgstr ""
|
36 |
+
|
37 |
+
#: godaddy-email-marketing.php:219 includes/settings.php:611
|
38 |
+
msgid "Settings"
|
39 |
+
msgstr ""
|
40 |
+
|
41 |
+
#: godaddy-email-marketing.php:249
|
42 |
+
msgid "Your website has a superpower: Email marketing. %1$s."
|
43 |
+
msgstr ""
|
44 |
+
|
45 |
+
#: godaddy-email-marketing.php:250
|
46 |
+
msgid "Learn More"
|
47 |
+
msgstr ""
|
48 |
+
|
49 |
+
#: godaddy-email-marketing.php:275
|
50 |
+
msgid "GoDaddy Email Marketing is almost ready."
|
51 |
+
msgstr ""
|
52 |
+
|
53 |
+
#: godaddy-email-marketing.php:275
|
54 |
+
msgid "You must enter your username & API key for it to work."
|
55 |
+
msgstr ""
|
56 |
+
|
57 |
+
#: godaddy-email-marketing.php:276
|
58 |
+
msgid "Let's do it!"
|
59 |
+
msgstr ""
|
60 |
+
|
61 |
#. Plugin Name of the plugin/theme
|
62 |
msgid "GoDaddy Email Marketing"
|
63 |
msgstr ""
|
285 |
msgid "Forms"
|
286 |
msgstr ""
|
287 |
|
|
|
|
|
|
|
|
|
288 |
#: includes/settings.php:612
|
289 |
msgid "Help"
|
290 |
msgstr ""
|
385 |
"lists."
|
386 |
msgstr ""
|
387 |
|
388 |
+
#: godaddy-email-marketing.php:205
|
389 |
+
msgctxt "Name of required field"
|
390 |
+
msgid "%s is a required field."
|
391 |
+
msgstr ""
|
392 |
+
|
393 |
#: includes/settings.php:96
|
394 |
msgctxt "failed copy response"
|
395 |
msgid "Please press Ctrl/Cmd+C to copy."
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: godaddy, fjarrett, jonathanbardo, eherman24, susanygodaddy, madmim
|
|
3 |
Tags: email, forms, godaddy, mailing list, marketing, newsletter, opt-in, signup, subscribe, widget, contacts
|
4 |
Requires at least: 3.8
|
5 |
Tested up to: 4.9
|
6 |
-
Stable tag: 1.2.
|
7 |
License: GPL-2.0
|
8 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -15,6 +15,8 @@ The GoDaddy Email Marketing Signup Forms plugin makes it easy to start building
|
|
15 |
|
16 |
With a GoDaddy Email Marketing starter account, you can collect as many email addresses as you like for free. And you can send up to 50 total emails to try it out. To learn more about GoDaddy Email Marketing, check out an overview [here](https://www.godaddy.com/online-marketing/email-marketing).
|
17 |
|
|
|
|
|
18 |
Once the plugin is activated, you can easily add a default signup form to your site using a widget. Or you can build your own custom signup form in GoDaddy Email Marketing and add it to your site by using a widget, shortcode, or template tag.
|
19 |
|
20 |
Setup is easy; in the plugin Settings, simply enter your GoDaddy username and GoDaddy Email Marketing API key. Don’t have one? The plugin makes it easy to sign up.
|
@@ -113,6 +115,9 @@ You can find your **Secret API Key** in the [Settings section](https://gem.godad
|
|
113 |
|
114 |
== Changelog ==
|
115 |
|
|
|
|
|
|
|
116 |
= 1.2.0 =
|
117 |
* New: Help tab on the Settings screen
|
118 |
* New: Dismissable admin notice after on-boarding
|
3 |
Tags: email, forms, godaddy, mailing list, marketing, newsletter, opt-in, signup, subscribe, widget, contacts
|
4 |
Requires at least: 3.8
|
5 |
Tested up to: 4.9
|
6 |
+
Stable tag: 1.2.1
|
7 |
License: GPL-2.0
|
8 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
15 |
|
16 |
With a GoDaddy Email Marketing starter account, you can collect as many email addresses as you like for free. And you can send up to 50 total emails to try it out. To learn more about GoDaddy Email Marketing, check out an overview [here](https://www.godaddy.com/online-marketing/email-marketing).
|
17 |
|
18 |
+
[youtube https://youtu.be/0dNbib686ss]
|
19 |
+
|
20 |
Once the plugin is activated, you can easily add a default signup form to your site using a widget. Or you can build your own custom signup form in GoDaddy Email Marketing and add it to your site by using a widget, shortcode, or template tag.
|
21 |
|
22 |
Setup is easy; in the plugin Settings, simply enter your GoDaddy username and GoDaddy Email Marketing API key. Don’t have one? The plugin makes it easy to sign up.
|
115 |
|
116 |
== Changelog ==
|
117 |
|
118 |
+
= 1.2.1 =
|
119 |
+
* Fix: Switch `wp_nonce` to `_wpnonce`, fixing the ability to refresh GEM forms.
|
120 |
+
|
121 |
= 1.2.0 =
|
122 |
* New: Help tab on the Settings screen
|
123 |
* New: Dismissable admin notice after on-boarding
|