GoDaddy Email Marketing - Version 1.4.3

Version Description

  • Fix: Remove reference to $ and use jQuery
  • Fix: Fix block icon SVG element so it renders properly in Firefox as well as Chrome.
  • Tweak: Test with and bump support for WordPress 5.4.
Download this release

Release Info

Developer Godaddy
Plugin Icon 128x128 GoDaddy Email Marketing
Version 1.4.3
Comparing to
See all releases

Code changes from version 1.4.2 to 1.4.3

Files changed (38) hide show
  1. css/blocks.css +5 -0
  2. css/blocks.min.css +1 -1
  3. godaddy-email-marketing.php +2 -2
  4. includes/blocks/blocks.js +4 -3
  5. includes/blocks/icons.js +5 -12
  6. js/blocks.js +3 -3
  7. js/blocks.min.js +1 -1
  8. languages/godaddy-email-marketing-sign-up-forms-da_DK.mo +0 -0
  9. languages/godaddy-email-marketing-sign-up-forms-de_DE.mo +0 -0
  10. languages/godaddy-email-marketing-sign-up-forms-el.mo +0 -0
  11. languages/godaddy-email-marketing-sign-up-forms-es_ES.mo +0 -0
  12. languages/godaddy-email-marketing-sign-up-forms-es_MX.mo +0 -0
  13. languages/godaddy-email-marketing-sign-up-forms-fi.mo +0 -0
  14. languages/godaddy-email-marketing-sign-up-forms-fr_FR.mo +0 -0
  15. languages/godaddy-email-marketing-sign-up-forms-hi_IN.mo +0 -0
  16. languages/godaddy-email-marketing-sign-up-forms-id_ID.mo +0 -0
  17. languages/godaddy-email-marketing-sign-up-forms-it_IT.mo +0 -0
  18. languages/godaddy-email-marketing-sign-up-forms-ja.mo +0 -0
  19. languages/godaddy-email-marketing-sign-up-forms-ko_KR.mo +0 -0
  20. languages/godaddy-email-marketing-sign-up-forms-mr.mo +0 -0
  21. languages/godaddy-email-marketing-sign-up-forms-ms_MY.mo +0 -0
  22. languages/godaddy-email-marketing-sign-up-forms-nb_NO.mo +0 -0
  23. languages/godaddy-email-marketing-sign-up-forms-nl_NL.mo +0 -0
  24. languages/godaddy-email-marketing-sign-up-forms-pl_PL.mo +0 -0
  25. languages/godaddy-email-marketing-sign-up-forms-pt_BR.mo +0 -0
  26. languages/godaddy-email-marketing-sign-up-forms-pt_PT.mo +0 -0
  27. languages/godaddy-email-marketing-sign-up-forms-ru_RU.mo +0 -0
  28. languages/godaddy-email-marketing-sign-up-forms-sv_SE.mo +0 -0
  29. languages/godaddy-email-marketing-sign-up-forms-th.mo +0 -0
  30. languages/godaddy-email-marketing-sign-up-forms-tl.mo +0 -0
  31. languages/godaddy-email-marketing-sign-up-forms-tr_TR.mo +0 -0
  32. languages/godaddy-email-marketing-sign-up-forms-uk.mo +0 -0
  33. languages/godaddy-email-marketing-sign-up-forms-vi.mo +0 -0
  34. languages/godaddy-email-marketing-sign-up-forms-zh_CN.mo +0 -0
  35. languages/godaddy-email-marketing-sign-up-forms-zh_HK.mo +0 -0
  36. languages/godaddy-email-marketing-sign-up-forms-zh_TW.mo +0 -0
  37. languages/godaddy-email-marketing-sign-up-forms.pot +87 -83
  38. readme.txt +7 -2
css/blocks.css CHANGED
@@ -5,4 +5,9 @@
5
  .wp-block-godaddy-email-marketing-sign-up-forms-gem-block .preloader {
6
  display: block;
7
  margin: 2em auto;
 
 
 
 
 
8
  }
5
  .wp-block-godaddy-email-marketing-sign-up-forms-gem-block .preloader {
6
  display: block;
7
  margin: 2em auto;
8
+ max-width: 20px;
9
+ }
10
+
11
+ .wp-block-godaddy-email-marketing-sign-up-forms-gem-block label {
12
+ margin-right: 12px;
13
  }
css/blocks.min.css CHANGED
@@ -1 +1 @@
1
- .wp-block-godaddy-email-marketing-sign-up-forms-gem-block input:not([type=submit]){width:100%}.wp-block-godaddy-email-marketing-sign-up-forms-gem-block .preloader{display:block;margin:2em auto}
1
+ .wp-block-godaddy-email-marketing-sign-up-forms-gem-block input:not([type=submit]){width:100%}.wp-block-godaddy-email-marketing-sign-up-forms-gem-block .preloader{display:block;margin:2em auto;max-width:20px}.wp-block-godaddy-email-marketing-sign-up-forms-gem-block label{margin-right:12px}
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.4.2
7
  * Author: GoDaddy
8
  * Author URI: https://gem.godaddy.com/
9
  * License: GPL-2.0
@@ -109,7 +109,7 @@ class GEM_Official {
109
 
110
  // Plugin's main directory.
111
  defined( 'GEM_VERSION' )
112
- or define( 'GEM_VERSION', '1.4.2' );
113
 
114
  // Set up the base name.
115
  self::$basename = 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.4.3
7
  * Author: GoDaddy
8
  * Author URI: https://gem.godaddy.com/
9
  * License: GPL-2.0
109
 
110
  // Plugin's main directory.
111
  defined( 'GEM_VERSION' )
112
+ or define( 'GEM_VERSION', '1.4.3' );
113
 
114
  // Set up the base name.
115
  self::$basename = isset( self::$basename ) ? self::$basename : plugin_basename( __FILE__ );
includes/blocks/blocks.js CHANGED
@@ -1,3 +1,4 @@
 
1
  // Locale
2
  import './i18n.js';
3
  import gemIcons from './icons';
@@ -110,17 +111,17 @@ function renderGemForm( formID ) {
110
  'formID': formID,
111
  };
112
 
113
- $.post( ajaxurl, data, function( response ) {
114
 
115
  if ( ! response.success ) {
116
 
117
- $( '.gem-form' ).html( gem.getFormError );
118
 
119
  return;
120
 
121
  }
122
 
123
- $( '.gem-form' ).html( response.data );
124
 
125
  } );
126
 
1
+
2
  // Locale
3
  import './i18n.js';
4
  import gemIcons from './icons';
111
  'formID': formID,
112
  };
113
 
114
+ jQuery.post( ajaxurl, data, function( response ) {
115
 
116
  if ( ! response.success ) {
117
 
118
+ jQuery( '.gem-form' ).html( gem.getFormError );
119
 
120
  return;
121
 
122
  }
123
 
124
+ jQuery( '.gem-form' ).html( response.data );
125
 
126
  } );
127
 
includes/blocks/icons.js CHANGED
@@ -1,17 +1,10 @@
1
  const gemIcons = {};
2
 
3
- gemIcons.mail = <svg
4
- xmlns="http://www.w3.org/2000/svg"
5
- width="20pt"
6
- height="22pt"
7
- viewBox="0 0 20 22"
8
- version="1.1"
9
- >
10
- <g id="surface1">
11
- <path style={{ stroke: 'none', fillRule: 'nonzero', fill: 'rgb(23.137255%,76.078431%,18.039216%)', fillOpacity: '1' }} d="M 0.0390625, 11.097656 L 1.925781, 22 L 19.960938, 18.109375, L 19.960938, 6.890625, L 11.371094, 15.828125, Z M 0.0390625, 11.097656 "/>
12
- <path style={{ stroke: 'none', fillRule: 'nonzero', fill: 'rgb(23.137255%,76.078431%,18.039216%)', fillOpacity: '1' }} d="M 9.882812, 6.632812 C 6.785156, 7.230469, 0.164062, 9.597656, 0.164062, 9.597656, L 11.171875, 14.9375, L 19.289062, 5.828125, C 19.289062, 5.816406, 13.042969, 6.011719, 9.882812, 6.632812, Z M 9.882812, 6.632812 "/>
13
- <path style={{ stroke: 'none', fillRule: 'nonzero', fill: 'rgb(23.137255%,66.27451%,16.470588%)', fillOpacity: '1' }} d="M 0.164062, 9.597656 C 0.164062, 9.597656, 6.472656, 8.304688, 9.484375, 7.71875, L 19.277344, 5.816406, L 8.628906, 0 Z M 0.164062, 9.597656 "/>
14
- </g>
15
  </svg>;
16
 
17
  export default gemIcons;
1
  const gemIcons = {};
2
 
3
+ gemIcons.mail = <svg xmlns="http://www.w3.org/2000/svg" viewBox="-187 279 236 236">
4
+ <path fill="none" d="M-187 279H49v236h-236V279z"/>
5
+ <path fill="#3BC22E" d="M-149.3 397.8l15.2 89.4 145.5-31.9v-92l-69.3 73.3-91.4-38.8z"/>
6
+ <path fill="#3BC22E" d="M-69.9 361.2c-25 4.9-78.4 24.3-78.4 24.3l88.8 43.8L6 354.6c0-.1-50.4 1.5-75.9 6.6z"/>
7
+ <path fill="#3BA92A" d="M-148.3 385.5s50.9-10.6 75.2-15.4l79-15.6-85.9-47.7-68.3 78.7z"/>
 
 
 
 
 
 
 
8
  </svg>;
9
 
10
  export default gemIcons;
js/blocks.js CHANGED
@@ -68,7 +68,7 @@
68
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
69
 
70
  "use strict";
71
- eval("Object.defineProperty(__webpack_exports__, \"__esModule\", { value: true });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__i18n_js__ = __webpack_require__(1);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__i18n_js___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__i18n_js__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__icons__ = __webpack_require__(2);\n// Locale\n\n\n\n/**\n * Internal block libraries\n */\nvar __ = wp.i18n.__;\nvar registerBlockType = wp.blocks.registerBlockType;\nvar SelectControl = wp.components.SelectControl;\n\n/**\n * Register block\n */\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (registerBlockType('godaddy-email-marketing-sign-up-forms/gem-block', {\n title: __('GoDaddy Email Marketing', 'godaddy-email-marketing-sign-up-forms'),\n description: __('Display a GoDaddy email marketing form.', 'godaddy-email-marketing-sign-up-forms'),\n category: 'widgets',\n icon: __WEBPACK_IMPORTED_MODULE_1__icons__[\"a\" /* default */].mail,\n keywords: [__('GoDaddy', 'godaddy-email-marketing-sign-up-forms'), __('Email', 'godaddy-email-marketing-sign-up-forms'), __('Form', 'godaddy-email-marketing-sign-up-forms')],\n\n attributes: {\n form: {\n type: 'string',\n sourece: 'text',\n default: gem.isConnected ? gem.forms[0].value : undefined\n }\n },\n\n edit: function edit(props) {\n var form = props.attributes.form,\n isSelected = props.isSelected,\n className = props.className,\n setAttributes = props.setAttributes;\n\n\n return [\n\n // Admin Block Markup\n wp.element.createElement(\n 'div',\n { className: className, key: className },\n wp.element.createElement(\n 'div',\n { className: 'gem-forms' },\n isSelected ? getFormSelect(form, setAttributes) : wp.element.createElement(\n 'div',\n { className: 'gem-form' },\n wp.element.createElement('img', { src: gem.preloaderUrl, className: 'preloader' }),\n renderGemForm(form)\n )\n )\n )];\n },\n\n save: function save(props) {\n var form = props.attributes.form,\n className = props.className;\n\n\n if (!gem.isConnected) {\n\n return;\n }\n\n return '[gem id=' + form + ']';\n }\n}));\n\n/**\n * Generate the GoDaddy Email Marketing form select field.\n *\n * @param {integer} form Form ID\n * @param {function} setAttributes Set attributes method.\n */\nfunction getFormSelect(form, setAttributes) {\n\n if (!gem.isConnected) {\n\n return notConnectedError();\n }\n\n return wp.element.createElement(SelectControl, {\n className: 'form',\n label: __('GoDaddy Email Marketing Form', 'godaddy-email-marketing-sign-up-forms'),\n value: form,\n options: gem.forms,\n onChange: function onChange(form) {\n setAttributes({ form: form });\n }\n });\n}\n\n/**\n * Render the GoDaddy Email Marketing form markup\n *\n * @param {integer} formID Form ID\n */\nfunction renderGemForm(formID) {\n\n if (!gem.isConnected) {\n\n return notConnectedError();\n }\n\n var data = {\n 'action': 'get_gem_form',\n 'formID': formID\n };\n\n $.post(ajaxurl, data, function (response) {\n\n if (!response.success) {\n\n $('.gem-form').html(gem.getFormError);\n\n return;\n }\n\n $('.gem-form').html(response.data);\n });\n}\n\n/**\n * Render the error message when not connected to the GoDaddy Email Marketing API\n *\n * @return {mixed} Markup for the Not connected error notice.\n */\nfunction notConnectedError() {\n\n return wp.element.createElement(\n 'div',\n null,\n __('GoDaddy Email Marketing is not connected.', 'godaddy-email-marketing-sign-up-forms'),\n ' ',\n wp.element.createElement(\n 'p',\n null,\n wp.element.createElement(\n 'a',\n { 'class': 'button button-secondary', href: gem.settingsURL },\n ' ',\n __('Connect Now', 'godaddy-email-marketing-sign-up-forms')\n )\n )\n );\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMC5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2luY2x1ZGVzL2Jsb2Nrcy9ibG9ja3MuanM/MzUxMSJdLCJzb3VyY2VzQ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FDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///0\n");
72
 
73
  /***/ }),
74
  /* 1 */
@@ -81,7 +81,7 @@ eval("/*\n * Set Locale\n */\nwp.i18n.setLocaleData({ '': {} }, 'godaddy-email-m
81
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
82
 
83
  "use strict";
84
- eval("var gemIcons = {};\n\ngemIcons.mail = wp.element.createElement(\n \"svg\",\n {\n xmlns: \"http://www.w3.org/2000/svg\",\n width: \"20pt\",\n height: \"22pt\",\n viewBox: \"0 0 20 22\",\n version: \"1.1\"\n },\n wp.element.createElement(\n \"g\",\n { id: \"surface1\" },\n wp.element.createElement(\"path\", { style: { stroke: 'none', fillRule: 'nonzero', fill: 'rgb(23.137255%,76.078431%,18.039216%)', fillOpacity: '1' }, d: \"M 0.0390625, 11.097656 L 1.925781, 22 L 19.960938, 18.109375, L 19.960938, 6.890625, L 11.371094, 15.828125, Z M 0.0390625, 11.097656 \" }),\n wp.element.createElement(\"path\", { style: { stroke: 'none', fillRule: 'nonzero', fill: 'rgb(23.137255%,76.078431%,18.039216%)', fillOpacity: '1' }, d: \"M 9.882812, 6.632812 C 6.785156, 7.230469, 0.164062, 9.597656, 0.164062, 9.597656, L 11.171875, 14.9375, L 19.289062, 5.828125, C 19.289062, 5.816406, 13.042969, 6.011719, 9.882812, 6.632812, Z M 9.882812, 6.632812 \" }),\n wp.element.createElement(\"path\", { style: { stroke: 'none', fillRule: 'nonzero', fill: 'rgb(23.137255%,66.27451%,16.470588%)', fillOpacity: '1' }, d: \"M 0.164062, 9.597656 C 0.164062, 9.597656, 6.472656, 8.304688, 9.484375, 7.71875, L 19.277344, 5.816406, L 8.628906, 0 Z M 0.164062, 9.597656 \" })\n )\n);\n\n/* harmony default export */ __webpack_exports__[\"a\"] = (gemIcons);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMi5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2luY2x1ZGVzL2Jsb2Nrcy9pY29ucy5qcz9hZjhkIl0sInNvdXJjZXNDb250ZW50IjpbInZhciBnZW1JY29ucyA9IHt9O1xuXG5nZW1JY29ucy5tYWlsID0gd3AuZWxlbWVudC5jcmVhdGVFbGVtZW50KFxuICBcInN2Z1wiLFxuICB7XG4gICAgeG1sbnM6IFwiaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmdcIixcbiAgICB3aWR0aDogXCIyMHB0XCIsXG4gICAgaGVpZ2h0OiBcIjIycHRcIixcbiAgICB2aWV3Qm94OiBcIjAgMCAyMCAyMlwiLFxuICAgIHZlcnNpb246IFwiMS4xXCJcbiAgfSxcbiAgd3AuZWxlbWVudC5jcmVhdGVFbGV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xsUnVsZTogJ25vbnplcm8nLCBmaWxsOiAncmdiKDIzLjEzNzI1NSUsNjYuMjc0NTElLDE2LjQ3MDU4OCUpJywgZmlsbE9wYWNpdHk6ICcxJyB9LCBkOiBcIk0gMC4xNjQwNjIsIDkuNTk3NjU2IEMgMC4xNjQwNjIsIDkuNTk3NjU2LCA2LjQ3MjY1NiwgOC4zMDQ2ODgsIDkuNDg0Mzc1LCA3LjcxODc1LCBMIDE5LjI3NzM0NCwgNS44MTY0MDYsIEwgOC42Mjg5MDYsIDAgWiBNIDAuMTY0MDYyLCA5LjU5NzY1NiBcIiB9KVxuICApXG4pO1xuXG5leHBvcnQgZGVmYXVsdCBnZW1JY29ucztcblxuXG4vLy8vLy8vLy8vLy8vLy8vLy9cbi8vIFdFQlBBQ0sgRk9PVEVSXG4vLyAuL2luY2x1ZGVzL2Jsb2Nrcy9pY29ucy5qc1xuLy8gbW9kdWxlIGlkID0gMlxuLy8gbW9kdWxlIGNodW5rcyA9IDAiXSwibWFwcGluZ3MiOiJBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///2\n");
85
 
86
  /***/ })
87
- /******/ ]);
68
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
69
 
70
  "use strict";
71
+ eval("Object.defineProperty(__webpack_exports__, \"__esModule\", { value: true });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__i18n_js__ = __webpack_require__(1);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__i18n_js___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__i18n_js__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__icons__ = __webpack_require__(2);\n\n// Locale\n\n\n\n/**\n * Internal block libraries\n */\nvar __ = wp.i18n.__;\nvar registerBlockType = wp.blocks.registerBlockType;\nvar SelectControl = wp.components.SelectControl;\n\n/**\n * Register block\n */\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (registerBlockType('godaddy-email-marketing-sign-up-forms/gem-block', {\n title: __('GoDaddy Email Marketing', 'godaddy-email-marketing-sign-up-forms'),\n description: __('Display a GoDaddy email marketing form.', 'godaddy-email-marketing-sign-up-forms'),\n category: 'widgets',\n icon: __WEBPACK_IMPORTED_MODULE_1__icons__[\"a\" /* default */].mail,\n keywords: [__('GoDaddy', 'godaddy-email-marketing-sign-up-forms'), __('Email', 'godaddy-email-marketing-sign-up-forms'), __('Form', 'godaddy-email-marketing-sign-up-forms')],\n\n attributes: {\n form: {\n type: 'string',\n sourece: 'text',\n default: gem.isConnected ? gem.forms[0].value : undefined\n }\n },\n\n edit: function edit(props) {\n var form = props.attributes.form,\n isSelected = props.isSelected,\n className = props.className,\n setAttributes = props.setAttributes;\n\n\n return [\n\n // Admin Block Markup\n wp.element.createElement(\n 'div',\n { className: className, key: className },\n wp.element.createElement(\n 'div',\n { className: 'gem-forms' },\n isSelected ? getFormSelect(form, setAttributes) : wp.element.createElement(\n 'div',\n { className: 'gem-form' },\n wp.element.createElement('img', { src: gem.preloaderUrl, className: 'preloader' }),\n renderGemForm(form)\n )\n )\n )];\n },\n\n save: function save(props) {\n var form = props.attributes.form,\n className = props.className;\n\n\n if (!gem.isConnected) {\n\n return;\n }\n\n return '[gem id=' + form + ']';\n }\n}));\n\n/**\n * Generate the GoDaddy Email Marketing form select field.\n *\n * @param {integer} form Form ID\n * @param {function} setAttributes Set attributes method.\n */\nfunction getFormSelect(form, setAttributes) {\n\n if (!gem.isConnected) {\n\n return notConnectedError();\n }\n\n return wp.element.createElement(SelectControl, {\n className: 'form',\n label: __('GoDaddy Email Marketing Form', 'godaddy-email-marketing-sign-up-forms'),\n value: form,\n options: gem.forms,\n onChange: function onChange(form) {\n setAttributes({ form: form });\n }\n });\n}\n\n/**\n * Render the GoDaddy Email Marketing form markup\n *\n * @param {integer} formID Form ID\n */\nfunction renderGemForm(formID) {\n\n if (!gem.isConnected) {\n\n return notConnectedError();\n }\n\n var data = {\n 'action': 'get_gem_form',\n 'formID': formID\n };\n\n jQuery.post(ajaxurl, data, function (response) {\n\n if (!response.success) {\n\n jQuery('.gem-form').html(gem.getFormError);\n\n return;\n }\n\n jQuery('.gem-form').html(response.data);\n });\n}\n\n/**\n * Render the error message when not connected to the GoDaddy Email Marketing API\n *\n * @return {mixed} Markup for the Not connected error notice.\n */\nfunction notConnectedError() {\n\n return wp.element.createElement(\n 'div',\n null,\n __('GoDaddy Email Marketing is not connected.', 'godaddy-email-marketing-sign-up-forms'),\n ' ',\n wp.element.createElement(\n 'p',\n null,\n wp.element.createElement(\n 'a',\n { 'class': 'button button-secondary', href: gem.settingsURL },\n ' ',\n __('Connect Now', 'godaddy-email-marketing-sign-up-forms')\n )\n )\n );\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMC5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2luY2x1ZGVzL2Jsb2Nrcy9ibG9ja3MuanM/MzUxMSJdLCJzb3VyY2VzQ29udGVudCI6WyJcbi8vIExvY2FsZVxuaW1wb3J0ICcuL2kxOG4uanMnO1xuaW1wb3J0IGdlbUljb25zIGZyb20gJy4vaWNvbnMnO1xuXG4vKipcbiAqIEludGVybmFsIGJsb2NrIGxpYnJhcmllc1xuICovXG52YXIgX18gPSB3cC5pMThuLl9fO1xudmFyIHJlZ2lzdGVyQmxvY2tUeXBlID0gd3AuYmxvY2tzLnJlZ2lzdGVyQmxvY2tUeXBlO1xudmFyIFNlbGVjdENvbnRyb2wgPSB3cC5jb21wb25lbnRzLlNlbGVjdENvbnRyb2w7XG5cbi8qKlxuICogUmVnaXN0ZXIgYmxvY2tcbiAqL1xuXG5leHBvcnQgZGVmY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0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///0\n");
72
 
73
  /***/ }),
74
  /* 1 */
81
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
82
 
83
  "use strict";
84
+ eval("var gemIcons = {};\n\ngemIcons.mail = wp.element.createElement(\n\t\"svg\",\n\t{ xmlns: \"http://www.w3.org/2000/svg\", viewBox: \"-187 279 236 236\" },\n\twp.element.createElement(\"path\", { fill: \"none\", d: \"M-187 279H49v236h-236V279z\" }),\n\twp.element.createElement(\"path\", { fill: \"#3BC22E\", d: \"M-149.3 397.8l15.2 89.4 145.5-31.9v-92l-69.3 73.3-91.4-38.8z\" }),\n\twp.element.createElement(\"path\", { fill: \"#3BC22E\", d: \"M-69.9 361.2c-25 4.9-78.4 24.3-78.4 24.3l88.8 43.8L6 354.6c0-.1-50.4 1.5-75.9 6.6z\" }),\n\twp.element.createElement(\"path\", { fill: \"#3BA92A\", d: \"M-148.3 385.5s50.9-10.6 75.2-15.4l79-15.6-85.9-47.7-68.3 78.7z\" })\n);\n\n/* harmony default export */ __webpack_exports__[\"a\"] = (gemIcons);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMi5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2luY2x1ZGVzL2Jsb2Nrcy9pY29ucy5qcz9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9kdWxlIGlkID0gMlxuLy8gbW9kdWxlIGNodW5rcyA9IDAiXSwibWFwcGluZ3MiOiJBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///2\n");
85
 
86
  /***/ })
87
+ /******/ ]);
js/blocks.min.js CHANGED
@@ -1 +1 @@
1
- !function(t){var c={};function g(n){if(c[n])return c[n].exports;var e=c[n]={i:n,l:!1,exports:{}};return t[n].call(e.exports,e,e.exports,g),e.l=!0,e.exports}g.m=t,g.c=c,g.d=function(n,e,t){g.o(n,e)||Object.defineProperty(n,e,{configurable:!1,enumerable:!0,get:t})},g.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return g.d(e,"a",e),e},g.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},g.p="",g(g.s=0)}([function(module,__webpack_exports__,__webpack_require__){"use strict";eval("Object.defineProperty(__webpack_exports__, \"__esModule\", { value: true });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__i18n_js__ = __webpack_require__(1);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__i18n_js___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__i18n_js__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__icons__ = __webpack_require__(2);\n// Locale\n\n\n\n/**\n * Internal block libraries\n */\nvar __ = wp.i18n.__;\nvar registerBlockType = wp.blocks.registerBlockType;\nvar SelectControl = wp.components.SelectControl;\n\n/**\n * Register block\n */\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (registerBlockType('godaddy-email-marketing-sign-up-forms/gem-block', {\n title: __('GoDaddy Email Marketing', 'godaddy-email-marketing-sign-up-forms'),\n description: __('Display a GoDaddy email marketing form.', 'godaddy-email-marketing-sign-up-forms'),\n category: 'widgets',\n icon: __WEBPACK_IMPORTED_MODULE_1__icons__[\"a\" /* default */].mail,\n keywords: [__('GoDaddy', 'godaddy-email-marketing-sign-up-forms'), __('Email', 'godaddy-email-marketing-sign-up-forms'), __('Form', 'godaddy-email-marketing-sign-up-forms')],\n\n attributes: {\n form: {\n type: 'string',\n sourece: 'text',\n default: gem.isConnected ? gem.forms[0].value : undefined\n }\n },\n\n edit: function edit(props) {\n var form = props.attributes.form,\n isSelected = props.isSelected,\n className = props.className,\n setAttributes = props.setAttributes;\n\n\n return [\n\n // Admin Block Markup\n wp.element.createElement(\n 'div',\n { className: className, key: className },\n wp.element.createElement(\n 'div',\n { className: 'gem-forms' },\n isSelected ? getFormSelect(form, setAttributes) : wp.element.createElement(\n 'div',\n { className: 'gem-form' },\n wp.element.createElement('img', { src: gem.preloaderUrl, className: 'preloader' }),\n renderGemForm(form)\n )\n )\n )];\n },\n\n save: function save(props) {\n var form = props.attributes.form,\n className = props.className;\n\n\n if (!gem.isConnected) {\n\n return;\n }\n\n return '[gem id=' + form + ']';\n }\n}));\n\n/**\n * Generate the GoDaddy Email Marketing form select field.\n *\n * @param {integer} form Form ID\n * @param {function} setAttributes Set attributes method.\n */\nfunction getFormSelect(form, setAttributes) {\n\n if (!gem.isConnected) {\n\n return notConnectedError();\n }\n\n return wp.element.createElement(SelectControl, {\n className: 'form',\n label: __('GoDaddy Email Marketing Form', 'godaddy-email-marketing-sign-up-forms'),\n value: form,\n options: gem.forms,\n onChange: function onChange(form) {\n setAttributes({ form: form });\n }\n });\n}\n\n/**\n * Render the GoDaddy Email Marketing form markup\n *\n * @param {integer} formID Form ID\n */\nfunction renderGemForm(formID) {\n\n if (!gem.isConnected) {\n\n return notConnectedError();\n }\n\n var data = {\n 'action': 'get_gem_form',\n 'formID': formID\n };\n\n $.post(ajaxurl, data, function (response) {\n\n if (!response.success) {\n\n $('.gem-form').html(gem.getFormError);\n\n return;\n }\n\n $('.gem-form').html(response.data);\n });\n}\n\n/**\n * Render the error message when not connected to the GoDaddy Email Marketing API\n *\n * @return {mixed} Markup for the Not connected error notice.\n */\nfunction notConnectedError() {\n\n return wp.element.createElement(\n 'div',\n null,\n __('GoDaddy Email Marketing is not connected.', 'godaddy-email-marketing-sign-up-forms'),\n ' ',\n wp.element.createElement(\n 'p',\n null,\n wp.element.createElement(\n 'a',\n { 'class': 'button button-secondary', href: gem.settingsURL },\n ' ',\n __('Connect Now', 'godaddy-email-marketing-sign-up-forms')\n )\n )\n );\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMC5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2luY2x1ZGVzL2Jsb2Nrcy9ibG9ja3MuanM/MzUxMSJdLCJzb3VyY2VzQ29udGVudCI6WyIvLyBMb2NhbGVcbmltcG9ydCAnLi9pMThuLmpzJztcbmltcG9ydCBnZW1JY29ucyBmcm9tICcuL2ljb25zJztcblxuLyoqXG4gKiBJbnRlcm5hbCBibG9jayBsaWJyYXJpZXNcbiAqL1xudmFyIF9fID0gd3AuaTE4bi5fXztcbnZhciByZWdpc3RlckJsb2NrVHlwZSA9IHdwLmJsb2Nrcy5yZWdpc3RlckJsb2NrVHlwZTtcbnZhciBTZWxlY3RDb250cm9sID0gd3AuY29tcG9uZW50cy5TZWxlY3RDb250cm9sO1xuXG4vKipcbiAqIFJlZ2lzdGVyIGJsb2NrXG4gKi9cblxuZXhwb3J0IGRlZmF1bHQgcmVnaXN0ZXJCbG9ja1R5cGUoJ2dvZGFkZHktZW1haWwtbWFya2V0aW5nLXNpZ24tdXAtZm9ybXMvZ2VtLWJsb2NrJywge1xuICB0aXRsZTogX18oJ0dvRGFkZHkgRW1haWwgTWFya2V0aW5nJywgJ2dvZGFkZHktZW1haWwtbWFya2V0aW5nLXNpZ24tdXAtZm9ybXMnKSxcbiAgZGVzY3JpcHRpb246IF9fKCdEaXNwbGF5IGEgR29EYWRkeSBlbWFpbCBtYXJrZXRpbmcgZm9ybS4nLCAnZ29kY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b290IjoiIn0=\n//# sourceURL=webpack-internal:///0\n")},function(module,exports){eval("/*\n * Set Locale\n */\nwp.i18n.setLocaleData({ '': {} }, 'godaddy-email-marketing-sign-up-forms');//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMS5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2luY2x1ZGVzL2Jsb2Nrcy9pMThuLmpzP2YyMDIiXSwic291cmNlc0NvbnRlbnQiOlsiLypcbiAqIFNldCBMb2NhbGVcbiAqL1xud3AuaTE4bi5zZXRMb2NhbGVEYXRhKHsgJyc6IHt9IH0sICdnb2RhZGR5LWVtYWlsLW1hcmtldGluZy1zaWduLXVwLWZvcm1zJyk7XG5cblxuLy8vLy8vLy8vLy8vLy8vLy8vXG4vLyBXRUJQQUNLIEZPT1RFUlxuLy8gLi9pbmNsdWRlcy9ibG9ja3MvaTE4bi5qc1xuLy8gbW9kdWxlIGlkID0gMVxuLy8gbW9kdWxlIGNodW5rcyA9IDAiXSwibWFwcGluZ3MiOiJBQUFBO0FBQ0E7QUFDQTtBQUNBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///1\n")},function(module,__webpack_exports__,__webpack_require__){"use strict";eval('var gemIcons = {};\n\ngemIcons.mail = wp.element.createElement(\n "svg",\n {\n xmlns: "http://www.w3.org/2000/svg",\n width: "20pt",\n height: "22pt",\n viewBox: "0 0 20 22",\n version: "1.1"\n },\n wp.element.createElement(\n "g",\n { id: "surface1" },\n wp.element.createElement("path", { style: { stroke: \'none\', fillRule: \'nonzero\', fill: \'rgb(23.137255%,76.078431%,18.039216%)\', fillOpacity: \'1\' }, d: "M 0.0390625, 11.097656 L 1.925781, 22 L 19.960938, 18.109375, L 19.960938, 6.890625, L 11.371094, 15.828125, Z M 0.0390625, 11.097656 " }),\n wp.element.createElement("path", { style: { stroke: \'none\', fillRule: \'nonzero\', fill: \'rgb(23.137255%,76.078431%,18.039216%)\', fillOpacity: \'1\' }, d: "M 9.882812, 6.632812 C 6.785156, 7.230469, 0.164062, 9.597656, 0.164062, 9.597656, L 11.171875, 14.9375, L 19.289062, 5.828125, C 19.289062, 5.816406, 13.042969, 6.011719, 9.882812, 6.632812, Z M 9.882812, 6.632812 " }),\n wp.element.createElement("path", { style: { stroke: \'none\', fillRule: \'nonzero\', fill: \'rgb(23.137255%,66.27451%,16.470588%)\', fillOpacity: \'1\' }, d: "M 0.164062, 9.597656 C 0.164062, 9.597656, 6.472656, 8.304688, 9.484375, 7.71875, L 19.277344, 5.816406, L 8.628906, 0 Z M 0.164062, 9.597656 " })\n )\n);\n\n/* harmony default export */ __webpack_exports__["a"] = (gemIcons);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMi5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2luY2x1ZGVzL2Jsb2Nrcy9pY29ucy5qcz9hZjhkIl0sInNvdXJjZXNDb250ZW50IjpbInZhciBnZW1JY29ucyA9IHt9O1xuXG5nZW1JY29ucy5tYWlsID0gd3AuZWxlbWVudC5jcmVhdGVFbGVtZW50KFxuICBcInN2Z1wiLFxuICB7XG4gICAgeG1sbnM6IFwiaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmdcIixcbiAgICB3aWR0aDogXCIyMHB0XCIsXG4gICAgaGVpZ2h0OiBcIjIycHRcIixcbiAgICB2aWV3Qm94OiBcIjAgMCAyMCAyMlwiLFxuICAgIHZlcnNpb246IFwiMS4xXCJcbiAgfSxcbiAgd3AuZWxlbWVudC5jcmVhdGVFbGVtZW50KFxuICAgIFwiZ1wiLFxuICAgIHsgaWQ6IFwic3VyZmFjZTFcIiB9LFxuICAgIHdwLmVsZW1lbnQuY3JlYXRlRWxlbWVudChcInBhdGhcIiwgeyBzdHlsZTogeyBzdHJva2U6ICdub25lJywgZmlsbFJ1bGU6ICdub256ZXJvJywgZmlsb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2LCA2LjQ3MjY1NiwgOC4zMDQ2ODgsIDkuNDg0Mzc1LCA3LjcxODc1LCBMIDE5LjI3NzM0NCwgNS44MTY0MDYsIEwgOC42Mjg5MDYsIDAgWiBNIDAuMTY0MDYyLCA5LjU5NzY1NiBcIiB9KVxuICApXG4pO1xuXG5leHBvcnQgZGVmYXVsdCBnZW1JY29ucztcblxuXG4vLy8vLy8vLy8vLy8vLy8vLy9cbi8vIFdFQlBBQ0sgRk9PVEVSXG4vLyAuL2luY2x1ZGVzL2Jsb2Nrcy9pY29ucy5qc1xuLy8gbW9kdWxlIGlkID0gMlxuLy8gbW9kdWxlIGNodW5rcyA9IDAiXSwibWFwcGluZ3MiOiJBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///2\n')}]);
1
+ !function(t){var c={};function l(n){if(c[n])return c[n].exports;var e=c[n]={i:n,l:!1,exports:{}};return t[n].call(e.exports,e,e.exports,l),e.l=!0,e.exports}l.m=t,l.c=c,l.d=function(n,e,t){l.o(n,e)||Object.defineProperty(n,e,{configurable:!1,enumerable:!0,get:t})},l.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return l.d(e,"a",e),e},l.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},l.p="",l(l.s=0)}([function(module,__webpack_exports__,__webpack_require__){"use strict";eval("Object.defineProperty(__webpack_exports__, \"__esModule\", { value: true });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__i18n_js__ = __webpack_require__(1);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__i18n_js___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__i18n_js__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__icons__ = __webpack_require__(2);\n\n// Locale\n\n\n\n/**\n * Internal block libraries\n */\nvar __ = wp.i18n.__;\nvar registerBlockType = wp.blocks.registerBlockType;\nvar SelectControl = wp.components.SelectControl;\n\n/**\n * Register block\n */\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (registerBlockType('godaddy-email-marketing-sign-up-forms/gem-block', {\n title: __('GoDaddy Email Marketing', 'godaddy-email-marketing-sign-up-forms'),\n description: __('Display a GoDaddy email marketing form.', 'godaddy-email-marketing-sign-up-forms'),\n category: 'widgets',\n icon: __WEBPACK_IMPORTED_MODULE_1__icons__[\"a\" /* default */].mail,\n keywords: [__('GoDaddy', 'godaddy-email-marketing-sign-up-forms'), __('Email', 'godaddy-email-marketing-sign-up-forms'), __('Form', 'godaddy-email-marketing-sign-up-forms')],\n\n attributes: {\n form: {\n type: 'string',\n sourece: 'text',\n default: gem.isConnected ? gem.forms[0].value : undefined\n }\n },\n\n edit: function edit(props) {\n var form = props.attributes.form,\n isSelected = props.isSelected,\n className = props.className,\n setAttributes = props.setAttributes;\n\n\n return [\n\n // Admin Block Markup\n wp.element.createElement(\n 'div',\n { className: className, key: className },\n wp.element.createElement(\n 'div',\n { className: 'gem-forms' },\n isSelected ? getFormSelect(form, setAttributes) : wp.element.createElement(\n 'div',\n { className: 'gem-form' },\n wp.element.createElement('img', { src: gem.preloaderUrl, className: 'preloader' }),\n renderGemForm(form)\n )\n )\n )];\n },\n\n save: function save(props) {\n var form = props.attributes.form,\n className = props.className;\n\n\n if (!gem.isConnected) {\n\n return;\n }\n\n return '[gem id=' + form + ']';\n }\n}));\n\n/**\n * Generate the GoDaddy Email Marketing form select field.\n *\n * @param {integer} form Form ID\n * @param {function} setAttributes Set attributes method.\n */\nfunction getFormSelect(form, setAttributes) {\n\n if (!gem.isConnected) {\n\n return notConnectedError();\n }\n\n return wp.element.createElement(SelectControl, {\n className: 'form',\n label: __('GoDaddy Email Marketing Form', 'godaddy-email-marketing-sign-up-forms'),\n value: form,\n options: gem.forms,\n onChange: function onChange(form) {\n setAttributes({ form: form });\n }\n });\n}\n\n/**\n * Render the GoDaddy Email Marketing form markup\n *\n * @param {integer} formID Form ID\n */\nfunction renderGemForm(formID) {\n\n if (!gem.isConnected) {\n\n return notConnectedError();\n }\n\n var data = {\n 'action': 'get_gem_form',\n 'formID': formID\n };\n\n jQuery.post(ajaxurl, data, function (response) {\n\n if (!response.success) {\n\n jQuery('.gem-form').html(gem.getFormError);\n\n return;\n }\n\n jQuery('.gem-form').html(response.data);\n });\n}\n\n/**\n * Render the error message when not connected to the GoDaddy Email Marketing API\n *\n * @return {mixed} Markup for the Not connected error notice.\n */\nfunction notConnectedError() {\n\n return wp.element.createElement(\n 'div',\n null,\n __('GoDaddy Email Marketing is not connected.', 'godaddy-email-marketing-sign-up-forms'),\n ' ',\n wp.element.createElement(\n 'p',\n null,\n wp.element.createElement(\n 'a',\n { 'class': 'button button-secondary', href: gem.settingsURL },\n ' ',\n __('Connect Now', 'godaddy-email-marketing-sign-up-forms')\n )\n )\n );\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMC5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2luY2x1ZGVzL2Jsb2Nrcy9ibG9ja3MuanM/MzUxMSJdLCJzb3VyY2VzQ29udGVudCI6WyJcbi8vIExvY2FsZVxuaW1wb3J0ICcuL2kxOG4uanMnO1xuaW1wb3J0IGdlbUljb25zIGZyb20gJy4vaWNvbnMnO1xuXG4vKipcbiAqIEludGVybmFsIGJsb2NrIGxpYnJhcmllc1xuICovXG52YXIgX18gPSB3cC5pMThuLl9fO1xudmFyIHJlZ2lzdGVyQmxvY2tUeXBlID0gd3AuYmxvY2tzLnJlZ2lzdGVyQmxvY2tUeXBlO1xudmFyIFNlbGVjdENvbnRyb2wgPSB3cC5jb21wb25lbnRzLlNlbGVjdENvbnRyb2w7XG5cbi8qKlxuICogUmV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0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///0\n")},function(module,exports){eval("/*\n * Set Locale\n */\nwp.i18n.setLocaleData({ '': {} }, 'godaddy-email-marketing-sign-up-forms');//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMS5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2luY2x1ZGVzL2Jsb2Nrcy9pMThuLmpzP2YyMDIiXSwic291cmNlc0NvbnRlbnQiOlsiLypcbiAqIFNldCBMb2NhbGVcbiAqL1xud3AuaTE4bi5zZXRMb2NhbGVEYXRhKHsgJyc6IHt9IH0sICdnb2RhZGR5LWVtYWlsLW1hcmtldGluZy1zaWduLXVwLWZvcm1zJyk7XG5cblxuLy8vLy8vLy8vLy8vLy8vLy8vXG4vLyBXRUJQQUNLIEZPT1RFUlxuLy8gLi9pbmNsdWRlcy9ibG9ja3MvaTE4bi5qc1xuLy8gbW9kdWxlIGlkID0gMVxuLy8gbW9kdWxlIGNodW5rcyA9IDAiXSwibWFwcGluZ3MiOiJBQUFBO0FBQ0E7QUFDQTtBQUNBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///1\n")},function(module,__webpack_exports__,__webpack_require__){"use strict";eval('var gemIcons = {};\n\ngemIcons.mail = wp.element.createElement(\n\t"svg",\n\t{ xmlns: "http://www.w3.org/2000/svg", viewBox: "-187 279 236 236" },\n\twp.element.createElement("path", { fill: "none", d: "M-187 279H49v236h-236V279z" }),\n\twp.element.createElement("path", { fill: "#3BC22E", d: "M-149.3 397.8l15.2 89.4 145.5-31.9v-92l-69.3 73.3-91.4-38.8z" }),\n\twp.element.createElement("path", { fill: "#3BC22E", d: "M-69.9 361.2c-25 4.9-78.4 24.3-78.4 24.3l88.8 43.8L6 354.6c0-.1-50.4 1.5-75.9 6.6z" }),\n\twp.element.createElement("path", { fill: "#3BA92A", d: "M-148.3 385.5s50.9-10.6 75.2-15.4l79-15.6-85.9-47.7-68.3 78.7z" })\n);\n\n/* harmony default export */ __webpack_exports__["a"] = (gemIcons);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMi5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2luY2x1ZGVzL2Jsb2Nrcy9pY29ucy5qcz9hZjhkIl0sInNvdXJjZXNDb250ZW50IjpbInZhciBnZW1JY29ucyA9IHt9O1xuXG5nZW1JY29ucy5tYWlsID0gd3AuZWxlbWVudC5jcmVhdGVFbGVtZW50KFxuXHRcInN2Z1wiLFxuXHR7IHhtbG5zOiBcImh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnXCIsIHZpZXdCb3g6IFwiLTE4NyAyNzkgMjM2IDIzNlwiIH0sXG5cdHdwLmVsZW1lbnQuY3JlYXRlRWxlbWVudChcInBhdGhcIiwgeyBmaWxsOiBcIm5vbmVcIiwgZDogXCJNLTE4NyAyNzlINDl2MjM2aC0yMzZWMjc5elwiIH0pLFxuXHR3cC5lbGVtZW50LmNyZWF0ZUVsZW1lbnQoXCJwYXRoXCIsIHsgZmlsbDogXCIjM0JDMjJFXCIsIGQ6IFwiTS0xNDkuMyAzOTcuOGwxNS4yIDg5LjQgMTQ1LjUtMzEuOXYtOTJsLTY5LjMgNzMuMy05MS40LTM4Ljh6XCIgfSksXG5cdHdwLmVsZW1lbnQuY3JlYXRlRWxlbWVudChcInBhdGhcIiwgeyBmaWxsOiBcIiMzQkMyMkVcIiwgZDogXCJNLTY5LjkgMzYxLjJjLTI1IDQuOS03OC40IDI0LjMtNzguNCAyNC4zbDg4LjggNDMuOEw2IDM1NC42YzAtLjEtNTAuNCAxLjUtNzUuOSA2LjZ6XCIgfSksXG5cdHdwLmVsZW1lbnQuY3JlYXRlRWxlbWVudChcInBhdGhcIiwgeyBmaWxsOiBcIiMzQkE5MkFcIiwgZDogXCJNLTE0OC4zIDM4NS41czUwLjktMTAuNiA3NS4yLTE1LjRsNzktMTUuNi04NS45LTQ3LjctNjguMyA3OC43elwiIH0pXG4pO1xuXG5leHBvcnQgZGVmYXVsdCBnZW1JY29ucztcblxuXG4vLy8vLy8vLy8vLy8vLy8vLy9cbi8vIFdFQlBBQ0sgRk9PVEVSXG4vLyAuL2luY2x1ZGVzL2Jsb2Nrcy9pY29ucy5qc1xuLy8gbW9kdWxlIGlkID0gMlxuLy8gbW9kdWxlIGNodW5rcyA9IDAiXSwibWFwcGluZ3MiOiJBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///2\n')}]);
languages/godaddy-email-marketing-sign-up-forms-da_DK.mo CHANGED
Binary file
languages/godaddy-email-marketing-sign-up-forms-de_DE.mo CHANGED
Binary file
languages/godaddy-email-marketing-sign-up-forms-el.mo CHANGED
Binary file
languages/godaddy-email-marketing-sign-up-forms-es_ES.mo CHANGED
Binary file
languages/godaddy-email-marketing-sign-up-forms-es_MX.mo CHANGED
Binary file
languages/godaddy-email-marketing-sign-up-forms-fi.mo CHANGED
Binary file
languages/godaddy-email-marketing-sign-up-forms-fr_FR.mo CHANGED
Binary file
languages/godaddy-email-marketing-sign-up-forms-hi_IN.mo CHANGED
Binary file
languages/godaddy-email-marketing-sign-up-forms-id_ID.mo CHANGED
Binary file
languages/godaddy-email-marketing-sign-up-forms-it_IT.mo CHANGED
Binary file
languages/godaddy-email-marketing-sign-up-forms-ja.mo CHANGED
Binary file
languages/godaddy-email-marketing-sign-up-forms-ko_KR.mo CHANGED
Binary file
languages/godaddy-email-marketing-sign-up-forms-mr.mo CHANGED
Binary file
languages/godaddy-email-marketing-sign-up-forms-ms_MY.mo CHANGED
Binary file
languages/godaddy-email-marketing-sign-up-forms-nb_NO.mo CHANGED
Binary file
languages/godaddy-email-marketing-sign-up-forms-nl_NL.mo CHANGED
Binary file
languages/godaddy-email-marketing-sign-up-forms-pl_PL.mo CHANGED
Binary file
languages/godaddy-email-marketing-sign-up-forms-pt_BR.mo CHANGED
Binary file
languages/godaddy-email-marketing-sign-up-forms-pt_PT.mo CHANGED
Binary file
languages/godaddy-email-marketing-sign-up-forms-ru_RU.mo CHANGED
Binary file
languages/godaddy-email-marketing-sign-up-forms-sv_SE.mo CHANGED
Binary file
languages/godaddy-email-marketing-sign-up-forms-th.mo CHANGED
Binary file
languages/godaddy-email-marketing-sign-up-forms-tl.mo CHANGED
Binary file
languages/godaddy-email-marketing-sign-up-forms-tr_TR.mo CHANGED
Binary file
languages/godaddy-email-marketing-sign-up-forms-uk.mo CHANGED
Binary file
languages/godaddy-email-marketing-sign-up-forms-vi.mo CHANGED
Binary file
languages/godaddy-email-marketing-sign-up-forms-zh_CN.mo CHANGED
Binary file
languages/godaddy-email-marketing-sign-up-forms-zh_HK.mo CHANGED
Binary file
languages/godaddy-email-marketing-sign-up-forms-zh_TW.mo CHANGED
Binary file
languages/godaddy-email-marketing-sign-up-forms.pot CHANGED
@@ -1,78 +1,82 @@
1
- # Copyright (c) 2018 GoDaddy Operating Company, LLC. All Rights Reserved.
2
  msgid ""
3
  msgstr ""
4
- "Project-Id-Version: GoDaddy Email Marketing 1.2.1\n"
5
  "Report-Msgid-Bugs-To: "
6
  "https://github.com/godaddy/wp-godaddy-email-marketing/issues\n"
7
- "POT-Creation-Date: 2018-06-25 22:52:37+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: 2018-MO-DA HO:MI+ZONE\n"
12
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
  "Language-Team: LANGUAGE <LL@li.org>\n"
14
  "X-Poedit-KeywordsList: "
15
  "__;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;_nx_noop:1,2,3c;esc_"
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.2\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:206
38
  #. translators: %s: Name of required field
39
  msgid "%s is a required field."
40
  msgstr ""
41
 
42
- #: godaddy-email-marketing.php:220 includes/settings.php:611
43
  msgid "Settings"
44
  msgstr ""
45
 
46
- #: godaddy-email-marketing.php:251
47
  #. translators: %1$s: Link to plugin settings page with text 'Learn More'.
48
  msgid "Your website has a superpower: Email marketing. %1$s."
49
  msgstr ""
50
 
51
- #: godaddy-email-marketing.php:252
52
  msgid "Learn More"
53
  msgstr ""
54
 
55
- #: godaddy-email-marketing.php:278
56
  msgid "GoDaddy Email Marketing is almost ready."
57
  msgstr ""
58
 
59
- #: godaddy-email-marketing.php:278
60
  msgid "You must enter your username &amp; API key for it to work."
61
  msgstr ""
62
 
63
- #: godaddy-email-marketing.php:279
64
  msgid "Let's do it!"
65
  msgstr ""
66
 
 
 
 
 
67
  #. Plugin Name of the plugin/theme
68
  msgid "GoDaddy Email Marketing"
69
  msgstr ""
70
 
71
- #: includes/class-shortcode.php:54
72
  msgid "Signup Forms"
73
  msgstr ""
74
 
75
- #: includes/class-shortcode.php:55
76
  msgid "Choose one of the available forms."
77
  msgstr ""
78
 
@@ -140,51 +144,51 @@ msgstr ""
140
  msgid "Year"
141
  msgstr ""
142
 
143
- #: includes/settings.php:61 includes/settings.php:583
144
  msgid "GoDaddy Email Marketing Signup Forms"
145
  msgstr ""
146
 
147
- #: includes/settings.php:244
148
  msgid "All data has been removed."
149
  msgstr ""
150
 
151
- #: includes/settings.php:248
152
  msgid "All transients were removed."
153
  msgstr ""
154
 
155
- #: includes/settings.php:252
156
  msgid "Forms list was successfully updated."
157
  msgstr ""
158
 
159
- #: includes/settings.php:256
160
  msgid ""
161
  "The credentials are incorrect! Please verify that you have entered them "
162
  "correctly."
163
  msgstr ""
164
 
165
- #: includes/settings.php:260
166
  msgid ""
167
  "Connection with GoDaddy Email Marketing has been established! You're all "
168
  "set!"
169
  msgstr ""
170
 
171
- #: includes/settings.php:265
172
  msgid "Settings have been updated."
173
  msgstr ""
174
 
175
- #: includes/settings.php:269
176
  msgid "Please fill in the username and the API key first."
177
  msgstr ""
178
 
179
- #: includes/settings.php:301
180
  msgid "Overview"
181
  msgstr ""
182
 
183
- #: includes/settings.php:305
184
  msgid "Instructions"
185
  msgstr ""
186
 
187
- #: includes/settings.php:308
188
  #. translators: %s: link to GoDaddy Email Marketing account page
189
  msgid ""
190
  "Once the plugin is activated, you will be able to select and insert any of "
@@ -194,21 +198,21 @@ msgid ""
194
  "display a webform on your site:"
195
  msgstr ""
196
 
197
- #: includes/settings.php:311
198
  msgid ""
199
  "<strong>Widget:</strong> Go to Appearance &rarr; widgets and find the "
200
  "widget called “GoDaddy Email Marketing Form” and drag it into the widget "
201
  "area of your choice. You can then add a title and select a form!"
202
  msgstr ""
203
 
204
- #: includes/settings.php:312
205
  msgid ""
206
  "<strong>Shortcode:</strong> You can add a form to any post or page by "
207
  "adding the shortcode (ex. <code>[gem id=80326]</code>) in the page/post "
208
  "editor."
209
  msgstr ""
210
 
211
- #: includes/settings.php:315
212
  #. translators: %1$s: &lt;?php gem_form( $form_id ); ?&gt;, %2$s: &lt;?php
213
  #. gem_form( 91 ); ?&gt;
214
  msgid ""
@@ -216,7 +220,7 @@ msgid ""
216
  "any WordPress file: <code>%1$s</code>. Ex. <code>%2$s</code>"
217
  msgstr ""
218
 
219
- #: includes/settings.php:325
220
  msgid "For more information:"
221
  msgstr ""
222
 
@@ -224,85 +228,85 @@ msgstr ""
224
  msgid "GoDaddy"
225
  msgstr ""
226
 
227
- #: includes/settings.php:327
228
  msgid "GoDaddy Help"
229
  msgstr ""
230
 
231
- #: includes/settings.php:328
232
  msgid "Contact GoDaddy"
233
  msgstr ""
234
 
235
- #: includes/settings.php:353
236
  msgid "Account Details"
237
  msgstr ""
238
 
239
- #: includes/settings.php:360
240
  msgid "Username"
241
  msgstr ""
242
 
243
- #: includes/settings.php:374
244
  msgid "API Key"
245
  msgstr ""
246
 
247
- #: includes/settings.php:388
248
  msgid "Footer Link"
249
  msgstr ""
250
 
251
- #: includes/settings.php:395
252
  msgid "Display \"Powered by GoDaddy\"?"
253
  msgstr ""
254
 
255
- #: includes/settings.php:402
256
  msgid "Debugging"
257
  msgstr ""
258
 
259
- #: includes/settings.php:409
260
  msgid "Debug Mode"
261
  msgstr ""
262
 
263
- #: includes/settings.php:416
264
  msgid "Activated"
265
  msgstr ""
266
 
267
- #: includes/settings.php:424
268
  msgid "Cache Reset"
269
  msgstr ""
270
 
271
- #: includes/settings.php:433
272
  msgid "Erase Transients"
273
  msgstr ""
274
 
275
- #: includes/settings.php:434
276
  msgid ""
277
  "Purges only the cached data associated with this plugin, and should be "
278
  "attempted before a hard reset."
279
  msgstr ""
280
 
281
- #: includes/settings.php:440
282
  msgid "Hard Reset"
283
  msgstr ""
284
 
285
- #: includes/settings.php:449
286
  msgid "Erase All Data"
287
  msgstr ""
288
 
289
- #: includes/settings.php:450
290
  msgid "Purges all saved data associated with this plugin."
291
  msgstr ""
292
 
293
- #: includes/settings.php:609
294
  msgid "Forms"
295
  msgstr ""
296
 
297
- #: includes/settings.php:612
298
  msgid "Help"
299
  msgstr ""
300
 
301
- #: includes/settings.php:619
302
  msgid "Reach Your Fans"
303
  msgstr ""
304
 
305
- #: includes/settings.php:623
306
  #. translators: %1$s: <a href="https:gem.godaddy.com">, %2$s: </a>
307
  msgid ""
308
  "Email marketing makes it easier than ever to turn casual visits into "
@@ -311,60 +315,60 @@ msgid ""
311
  "email marketing campaign%2$s."
312
  msgstr ""
313
 
314
- #: includes/settings.php:629
315
  msgid "Available Signup Forms"
316
  msgstr ""
317
 
318
- #: includes/settings.php:633 includes/settings.php:640
319
- #: includes/settings.php:648
320
  msgid "Form Name"
321
  msgstr ""
322
 
323
- #: includes/settings.php:634 includes/settings.php:641
324
- #: includes/settings.php:662
325
  msgid "Form ID"
326
  msgstr ""
327
 
328
- #: includes/settings.php:635 includes/settings.php:642
329
- #: includes/settings.php:665
330
  msgid "Shortcode"
331
  msgstr ""
332
 
333
- #: includes/settings.php:652
334
  msgid "Opens in a new window"
335
  msgstr ""
336
 
337
- #: includes/settings.php:652
338
  msgid "Edit form in GoDaddy Email Marketing"
339
  msgstr ""
340
 
341
- #: includes/settings.php:655
342
  msgid "Preview"
343
  msgstr ""
344
 
345
- #: includes/settings.php:678
346
  msgid "Not seeing your form?"
347
  msgstr ""
348
 
349
- #: includes/settings.php:742
350
  msgid "Refresh Forms"
351
  msgstr ""
352
 
353
- #: includes/settings.php:749
354
  msgid "Create a New Signup Form"
355
  msgstr ""
356
 
357
- #: includes/settings.php:756
358
  msgid "Create a New Campaign"
359
  msgstr ""
360
 
361
- #: includes/settings.php:842
362
  msgid ""
363
  "If you are experiencing issues and are unsure of the cause, you may want to "
364
  "activate debug mode, which displays additional options."
365
  msgstr ""
366
 
367
- #: includes/settings.php:853
368
  #. translators: 1. Sign in here link, 2. Sign up here link
369
  msgid ""
370
  "For this plugin to work, it needs to access your GoDaddy Email Marketing "
@@ -373,7 +377,7 @@ msgid ""
373
  "account, %2$s."
374
  msgstr ""
375
 
376
- #: includes/settings.php:853
377
  #. translators: account details link
378
  msgid "Sign in here"
379
  msgstr ""
@@ -382,24 +386,24 @@ msgstr ""
382
  msgid "GoDaddy Email Marketing Form"
383
  msgstr ""
384
 
385
- #: includes/widget.php:129
386
  msgid "Title:"
387
  msgstr ""
388
 
389
- #: includes/widget.php:135
390
  msgid "Additional Text:"
391
  msgstr ""
392
 
393
- #: includes/widget.php:144
394
  msgid "Form:"
395
  msgstr ""
396
 
397
- #: includes/widget.php:160
398
  #. translators: %s: link to settings page
399
  msgid "Please set up your GoDaddy Email Marketing account in the %s."
400
  msgstr ""
401
 
402
- #: includes/widget.php:164
403
  msgid "settings page"
404
  msgstr ""
405
 
@@ -414,17 +418,17 @@ msgid ""
414
  "lists."
415
  msgstr ""
416
 
417
- #: includes/settings.php:97
418
  msgctxt "failed copy response"
419
  msgid "Please press Ctrl/Cmd+C to copy."
420
  msgstr ""
421
 
422
- #: includes/settings.php:590
423
  msgctxt "gem header note"
424
  msgid "Enjoy the GoDaddy Email Marketing Experience."
425
  msgstr ""
426
 
427
- #: includes/settings.php:592
428
  msgctxt "header note"
429
  msgid ""
430
  "Add your GoDaddy Email Marketing signup form to your WordPress site! Easy "
@@ -432,28 +436,28 @@ msgid ""
432
  "subscribe to your email list."
433
  msgstr ""
434
 
435
- #: includes/settings.php:596
436
  msgctxt "header note"
437
  msgid "You don't have any forms yet."
438
  msgstr ""
439
 
440
- #: includes/settings.php:599
441
  #. translators: %s: Sign Up Now button
442
  msgctxt "Sign up button"
443
  msgid "New to GoDaddy? Create an account to get started today. %s"
444
  msgstr ""
445
 
446
- #: includes/settings.php:599
447
  msgctxt "header button"
448
  msgid "Sign Up Now"
449
  msgstr ""
450
 
451
- #: includes/settings.php:697
452
  msgctxt "save settings button"
453
  msgid "Save Settings"
454
  msgstr ""
455
 
456
- #: includes/settings.php:853
457
  msgctxt "account details link"
458
  msgid "sign up here"
459
  msgstr ""
1
+ # Copyright (c) 2020 GoDaddy Operating Company, LLC. All Rights Reserved.
2
  msgid ""
3
  msgstr ""
4
+ "Project-Id-Version: GoDaddy Email Marketing 1.4.2\n"
5
  "Report-Msgid-Bugs-To: "
6
  "https://github.com/godaddy/wp-godaddy-email-marketing/issues\n"
7
+ "POT-Creation-Date: 2020-04-09 20:38:10+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: 2020-MO-DA HO:MI+ZONE\n"
12
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
  "Language-Team: LANGUAGE <LL@li.org>\n"
14
  "X-Poedit-KeywordsList: "
15
  "__;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;_nx_noop:1,2,3c;esc_"
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-i18n 1.0.3\n"
18
 
19
+ #: godaddy-email-marketing.php:217
20
  msgid "Thank you for signing up!"
21
  msgstr ""
22
 
23
+ #: godaddy-email-marketing.php:218
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:219
30
  msgid "Oops! There was a problem. Please try again."
31
  msgstr ""
32
 
33
+ #: godaddy-email-marketing.php:220
34
  msgid "Please enter a valid email address."
35
  msgstr ""
36
 
37
+ #: godaddy-email-marketing.php:222
38
  #. translators: %s: Name of required field
39
  msgid "%s is a required field."
40
  msgstr ""
41
 
42
+ #: godaddy-email-marketing.php:237 includes/settings.php:628
43
  msgid "Settings"
44
  msgstr ""
45
 
46
+ #: godaddy-email-marketing.php:268
47
  #. translators: %1$s: Link to plugin settings page with text 'Learn More'.
48
  msgid "Your website has a superpower: Email marketing. %1$s."
49
  msgstr ""
50
 
51
+ #: godaddy-email-marketing.php:269
52
  msgid "Learn More"
53
  msgstr ""
54
 
55
+ #: godaddy-email-marketing.php:295
56
  msgid "GoDaddy Email Marketing is almost ready."
57
  msgstr ""
58
 
59
+ #: godaddy-email-marketing.php:295
60
  msgid "You must enter your username &amp; API key for it to work."
61
  msgstr ""
62
 
63
+ #: godaddy-email-marketing.php:296
64
  msgid "Let's do it!"
65
  msgstr ""
66
 
67
+ #: includes/class-blocks.php:50
68
+ msgid "There was an error retreiving the GEM form. Please try again."
69
+ msgstr ""
70
+
71
  #. Plugin Name of the plugin/theme
72
  msgid "GoDaddy Email Marketing"
73
  msgstr ""
74
 
75
+ #: includes/class-shortcode.php:57
76
  msgid "Signup Forms"
77
  msgstr ""
78
 
79
+ #: includes/class-shortcode.php:58
80
  msgid "Choose one of the available forms."
81
  msgstr ""
82
 
144
  msgid "Year"
145
  msgstr ""
146
 
147
+ #: includes/settings.php:61 includes/settings.php:600
148
  msgid "GoDaddy Email Marketing Signup Forms"
149
  msgstr ""
150
 
151
+ #: includes/settings.php:248
152
  msgid "All data has been removed."
153
  msgstr ""
154
 
155
+ #: includes/settings.php:252
156
  msgid "All transients were removed."
157
  msgstr ""
158
 
159
+ #: includes/settings.php:256
160
  msgid "Forms list was successfully updated."
161
  msgstr ""
162
 
163
+ #: includes/settings.php:260
164
  msgid ""
165
  "The credentials are incorrect! Please verify that you have entered them "
166
  "correctly."
167
  msgstr ""
168
 
169
+ #: includes/settings.php:264
170
  msgid ""
171
  "Connection with GoDaddy Email Marketing has been established! You're all "
172
  "set!"
173
  msgstr ""
174
 
175
+ #: includes/settings.php:269
176
  msgid "Settings have been updated."
177
  msgstr ""
178
 
179
+ #: includes/settings.php:273
180
  msgid "Please fill in the username and the API key first."
181
  msgstr ""
182
 
183
+ #: includes/settings.php:306
184
  msgid "Overview"
185
  msgstr ""
186
 
187
+ #: includes/settings.php:310
188
  msgid "Instructions"
189
  msgstr ""
190
 
191
+ #: includes/settings.php:313
192
  #. translators: %s: link to GoDaddy Email Marketing account page
193
  msgid ""
194
  "Once the plugin is activated, you will be able to select and insert any of "
198
  "display a webform on your site:"
199
  msgstr ""
200
 
201
+ #: includes/settings.php:316
202
  msgid ""
203
  "<strong>Widget:</strong> Go to Appearance &rarr; widgets and find the "
204
  "widget called “GoDaddy Email Marketing Form” and drag it into the widget "
205
  "area of your choice. You can then add a title and select a form!"
206
  msgstr ""
207
 
208
+ #: includes/settings.php:317
209
  msgid ""
210
  "<strong>Shortcode:</strong> You can add a form to any post or page by "
211
  "adding the shortcode (ex. <code>[gem id=80326]</code>) in the page/post "
212
  "editor."
213
  msgstr ""
214
 
215
+ #: includes/settings.php:320
216
  #. translators: %1$s: &lt;?php gem_form( $form_id ); ?&gt;, %2$s: &lt;?php
217
  #. gem_form( 91 ); ?&gt;
218
  msgid ""
220
  "any WordPress file: <code>%1$s</code>. Ex. <code>%2$s</code>"
221
  msgstr ""
222
 
223
+ #: includes/settings.php:331
224
  msgid "For more information:"
225
  msgstr ""
226
 
228
  msgid "GoDaddy"
229
  msgstr ""
230
 
231
+ #: includes/settings.php:333
232
  msgid "GoDaddy Help"
233
  msgstr ""
234
 
235
+ #: includes/settings.php:334
236
  msgid "Contact GoDaddy"
237
  msgstr ""
238
 
239
+ #: includes/settings.php:365
240
  msgid "Account Details"
241
  msgstr ""
242
 
243
+ #: includes/settings.php:372
244
  msgid "Username"
245
  msgstr ""
246
 
247
+ #: includes/settings.php:386
248
  msgid "API Key"
249
  msgstr ""
250
 
251
+ #: includes/settings.php:400
252
  msgid "Footer Link"
253
  msgstr ""
254
 
255
+ #: includes/settings.php:407
256
  msgid "Display \"Powered by GoDaddy\"?"
257
  msgstr ""
258
 
259
+ #: includes/settings.php:414
260
  msgid "Debugging"
261
  msgstr ""
262
 
263
+ #: includes/settings.php:421
264
  msgid "Debug Mode"
265
  msgstr ""
266
 
267
+ #: includes/settings.php:428
268
  msgid "Activated"
269
  msgstr ""
270
 
271
+ #: includes/settings.php:436
272
  msgid "Cache Reset"
273
  msgstr ""
274
 
275
+ #: includes/settings.php:447
276
  msgid "Erase Transients"
277
  msgstr ""
278
 
279
+ #: includes/settings.php:448
280
  msgid ""
281
  "Purges only the cached data associated with this plugin, and should be "
282
  "attempted before a hard reset."
283
  msgstr ""
284
 
285
+ #: includes/settings.php:454
286
  msgid "Hard Reset"
287
  msgstr ""
288
 
289
+ #: includes/settings.php:465
290
  msgid "Erase All Data"
291
  msgstr ""
292
 
293
+ #: includes/settings.php:466
294
  msgid "Purges all saved data associated with this plugin."
295
  msgstr ""
296
 
297
+ #: includes/settings.php:626
298
  msgid "Forms"
299
  msgstr ""
300
 
301
+ #: includes/settings.php:629
302
  msgid "Help"
303
  msgstr ""
304
 
305
+ #: includes/settings.php:636
306
  msgid "Reach Your Fans"
307
  msgstr ""
308
 
309
+ #: includes/settings.php:641
310
  #. translators: %1$s: <a href="https:gem.godaddy.com">, %2$s: </a>
311
  msgid ""
312
  "Email marketing makes it easier than ever to turn casual visits into "
315
  "email marketing campaign%2$s."
316
  msgstr ""
317
 
318
+ #: includes/settings.php:647
319
  msgid "Available Signup Forms"
320
  msgstr ""
321
 
322
+ #: includes/settings.php:651 includes/settings.php:658
323
+ #: includes/settings.php:666
324
  msgid "Form Name"
325
  msgstr ""
326
 
327
+ #: includes/settings.php:652 includes/settings.php:659
328
+ #: includes/settings.php:680
329
  msgid "Form ID"
330
  msgstr ""
331
 
332
+ #: includes/settings.php:653 includes/settings.php:660
333
+ #: includes/settings.php:683
334
  msgid "Shortcode"
335
  msgstr ""
336
 
337
+ #: includes/settings.php:670
338
  msgid "Opens in a new window"
339
  msgstr ""
340
 
341
+ #: includes/settings.php:670
342
  msgid "Edit form in GoDaddy Email Marketing"
343
  msgstr ""
344
 
345
+ #: includes/settings.php:673
346
  msgid "Preview"
347
  msgstr ""
348
 
349
+ #: includes/settings.php:696
350
  msgid "Not seeing your form?"
351
  msgstr ""
352
 
353
+ #: includes/settings.php:760
354
  msgid "Refresh Forms"
355
  msgstr ""
356
 
357
+ #: includes/settings.php:767
358
  msgid "Create a New Signup Form"
359
  msgstr ""
360
 
361
+ #: includes/settings.php:774
362
  msgid "Create a New Campaign"
363
  msgstr ""
364
 
365
+ #: includes/settings.php:860
366
  msgid ""
367
  "If you are experiencing issues and are unsure of the cause, you may want to "
368
  "activate debug mode, which displays additional options."
369
  msgstr ""
370
 
371
+ #: includes/settings.php:871
372
  #. translators: 1. Sign in here link, 2. Sign up here link
373
  msgid ""
374
  "For this plugin to work, it needs to access your GoDaddy Email Marketing "
377
  "account, %2$s."
378
  msgstr ""
379
 
380
+ #: includes/settings.php:871
381
  #. translators: account details link
382
  msgid "Sign in here"
383
  msgstr ""
386
  msgid "GoDaddy Email Marketing Form"
387
  msgstr ""
388
 
389
+ #: includes/widget.php:132
390
  msgid "Title:"
391
  msgstr ""
392
 
393
+ #: includes/widget.php:138
394
  msgid "Additional Text:"
395
  msgstr ""
396
 
397
+ #: includes/widget.php:147
398
  msgid "Form:"
399
  msgstr ""
400
 
401
+ #: includes/widget.php:163
402
  #. translators: %s: link to settings page
403
  msgid "Please set up your GoDaddy Email Marketing account in the %s."
404
  msgstr ""
405
 
406
+ #: includes/widget.php:167
407
  msgid "settings page"
408
  msgstr ""
409
 
418
  "lists."
419
  msgstr ""
420
 
421
+ #: includes/settings.php:100
422
  msgctxt "failed copy response"
423
  msgid "Please press Ctrl/Cmd+C to copy."
424
  msgstr ""
425
 
426
+ #: includes/settings.php:607
427
  msgctxt "gem header note"
428
  msgid "Enjoy the GoDaddy Email Marketing Experience."
429
  msgstr ""
430
 
431
+ #: includes/settings.php:609
432
  msgctxt "header note"
433
  msgid ""
434
  "Add your GoDaddy Email Marketing signup form to your WordPress site! Easy "
436
  "subscribe to your email list."
437
  msgstr ""
438
 
439
+ #: includes/settings.php:613
440
  msgctxt "header note"
441
  msgid "You don't have any forms yet."
442
  msgstr ""
443
 
444
+ #: includes/settings.php:616
445
  #. translators: %s: Sign Up Now button
446
  msgctxt "Sign up button"
447
  msgid "New to GoDaddy? Create an account to get started today. %s"
448
  msgstr ""
449
 
450
+ #: includes/settings.php:616
451
  msgctxt "header button"
452
  msgid "Sign Up Now"
453
  msgstr ""
454
 
455
+ #: includes/settings.php:715
456
  msgctxt "save settings button"
457
  msgid "Save Settings"
458
  msgstr ""
459
 
460
+ #: includes/settings.php:871
461
  msgctxt "account details link"
462
  msgid "sign up here"
463
  msgstr ""
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: godaddy, fjarrett, jonathanbardo, eherman24, susanygodaddy, madmimi
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: 5.0
6
- Stable tag: 1.4.2
7
  License: GPL-2.0
8
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -118,6 +118,11 @@ You can find your **Secret API Key** in the [Settings section](https://gem.godad
118
 
119
  == Changelog ==
120
 
 
 
 
 
 
121
  = 1.4.2 =
122
  * Fix: Update help tab iframe URL with www. @props [aaroncampbell](https://github.com/aaroncampbell)
123
 
2
  Contributors: godaddy, fjarrett, jonathanbardo, eherman24, susanygodaddy, madmimi
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: 5.4
6
+ Stable tag: 1.4.3
7
  License: GPL-2.0
8
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
9
 
118
 
119
  == Changelog ==
120
 
121
+ = 1.4.3 =
122
+ * Fix: Remove reference to `$` and use `jQuery`
123
+ * Fix: Fix block icon SVG element so it renders properly in Firefox as well as Chrome.
124
+ * Tweak: Test with and bump support for WordPress 5.4.
125
+
126
  = 1.4.2 =
127
  * Fix: Update help tab iframe URL with www. @props [aaroncampbell](https://github.com/aaroncampbell)
128