MailPoet Newsletters (New) - Version 3.0.0-beta.36.2.0

Version Description

  • 2017-07-04 =
  • Added: 13 new default templates to choose from;
  • Added: a new help page in the menu to help us help you better;
  • Added: link to list of form plugins that work with MailPoet in our Forms page;
  • Improved: display infinite number of posts in Posts widget, instead of just 10. Kudos Keith!
  • Fixed: DB connection exceptions are now safely handled. Thanks FxB!
Download this release

Release Info

Developer wysija
Plugin Icon 128x128 MailPoet Newsletters (New)
Version 3.0.0-beta.36.2.0
Comparing to
See all releases

Code changes from version 3.0.0-beta.36.0.1 to 3.0.0-beta.36.2.0

Files changed (94) hide show
  1. assets/css/manifest.json +1 -1
  2. assets/css/{newsletter_editor.8470e527.css → newsletter_editor.f6da21d2.css} +10 -1
  3. assets/img/sample_templates/coffee/coffee-grain.jpg +0 -0
  4. assets/img/sample_templates/coffee/header-v2.jpg +0 -0
  5. assets/img/sample_templates/coffee/index.php +0 -0
  6. assets/img/sample_templates/coffee/map-v2.jpg +0 -0
  7. assets/img/sample_templates/coffee/sandwich.jpg +0 -0
  8. assets/img/sample_templates/discount/bicycle-header2.png +0 -0
  9. assets/img/sample_templates/discount/bicycle-header3.png +0 -0
  10. assets/img/sample_templates/discount/index.php +0 -0
  11. assets/img/sample_templates/discount/orange-bicycle.jpg +0 -0
  12. assets/img/sample_templates/discount/red-icycle.jpg +0 -0
  13. assets/img/sample_templates/index.php +0 -0
  14. assets/img/sample_templates/restaurant/boyga-1329911-639x852.jpg +0 -0
  15. assets/img/sample_templates/restaurant/burger.jpg +0 -0
  16. assets/img/sample_templates/restaurant/header.jpg +0 -0
  17. assets/img/sample_templates/restaurant/index.php +0 -0
  18. assets/img/sample_templates/restaurant/macaroni-w-salad-1323787.jpg +0 -0
  19. assets/img/sample_templates/travel/gallery1.jpg +0 -0
  20. assets/img/sample_templates/travel/gallery2.jpg +0 -0
  21. assets/img/sample_templates/travel/gallery3.jpg +0 -0
  22. assets/img/sample_templates/travel/gallery4.jpg +0 -0
  23. assets/img/sample_templates/travel/glow-worms.jpg +0 -0
  24. assets/img/sample_templates/travel/header.png +0 -0
  25. assets/img/sample_templates/travel/holiday-park.jpg +0 -0
  26. assets/img/sample_templates/travel/index.php +0 -0
  27. assets/img/sample_templates/travel/luge.jpg +0 -0
  28. assets/js/{admin.5cdc4c05.js → admin.080e0640.js} +319 -12
  29. assets/js/{admin_vendor.d75e484a.js → admin_vendor.ad6d7a22.js} +0 -0
  30. assets/js/{form_editor.1f90e137.js → form_editor.4902de9a.js} +23 -20
  31. assets/js/{mailpoet.8f856096.js → mailpoet.684f3a3c.js} +103 -88
  32. assets/js/manifest.json +8 -8
  33. assets/js/{mp2migrator.f2f36174.js → mp2migrator.3f76aefe.js} +1 -1
  34. assets/js/{newsletter_editor.ae63e604.js → newsletter_editor.e810c798.js} +279 -219
  35. assets/js/{public.84aece05.js → public.2ca16875.js} +128 -88
  36. assets/js/{vendor.6d57818a.js → vendor.25e2ce6a.js} +6 -6
  37. lang/index.php +3 -0
  38. lang/mailpoet-es_ES.mo +0 -0
  39. lang/mailpoet-fa_IR.mo +0 -0
  40. lang/mailpoet-fr_FR.mo +0 -0
  41. lang/mailpoet.pot +328 -441
  42. lib/Config/Database.php +12 -8
  43. lib/Config/Initializer.php +21 -4
  44. lib/Config/MP2Migrator.php +235 -13
  45. lib/Config/Menu.php +45 -0
  46. lib/Config/Populator.php +17 -4
  47. lib/Config/PopulatorData/Templates/AppWelcome.php +415 -0
  48. lib/Config/PopulatorData/Templates/BurgerJoint.php +497 -0
  49. lib/Config/PopulatorData/Templates/ChocolateStore.php +846 -0
  50. lib/Config/PopulatorData/Templates/CoffeeShop.php +425 -0
  51. lib/Config/PopulatorData/Templates/Discount.php +467 -0
  52. lib/Config/PopulatorData/Templates/Faith.php +488 -0
  53. lib/Config/PopulatorData/Templates/FestivalEvent.php +524 -0
  54. lib/Config/PopulatorData/Templates/FoodBox.php +757 -0
  55. lib/Config/PopulatorData/Templates/FranksRoastHouseTemplate.php +0 -351
  56. lib/Config/PopulatorData/Templates/KickOff.php +721 -0
  57. lib/Config/PopulatorData/Templates/NewsDay.php +555 -0
  58. lib/Config/PopulatorData/Templates/PieceOfCake.php +444 -0
  59. lib/Config/PopulatorData/Templates/Restaurant.php +0 -413
  60. lib/Config/PopulatorData/Templates/ScienceWeekly.php +677 -0
  61. lib/Config/PopulatorData/Templates/Shoes.php +579 -0
  62. lib/Config/PopulatorData/Templates/StoreDiscount.php +0 -406
  63. lib/Config/PopulatorData/Templates/TakeAHike.php +769 -0
  64. lib/Config/PopulatorData/Templates/TravelEmail.php +0 -527
  65. lib/Config/PopulatorData/Templates/TravelNomads.php +603 -0
  66. lib/Config/PopulatorData/Templates/WorldCup.php +785 -0
  67. lib/Config/PopulatorData/Templates/YogaStudio.php +793 -0
  68. lib/Config/Widget.php +7 -0
  69. lib/Models/Model.php +11 -0
  70. lib/Newsletter/AutomatedLatestContent.php +4 -0
  71. lib/Newsletter/Scheduler/Scheduler.php +3 -2
  72. lib/Subscription/Form.php +10 -8
  73. lib/Twig/Filters.php +29 -0
  74. mailpoet.php +2 -2
  75. readme.txt +12 -1
  76. vendor/autoload.php +1 -1
  77. vendor/composer/ClassLoader.php +5 -31
  78. vendor/composer/autoload_classmap.php +17 -4
  79. vendor/composer/autoload_real.php +8 -8
  80. vendor/composer/autoload_static.php +22 -9
  81. vendor/composer/installed.json +13 -13
  82. views/forms.html +9 -0
  83. views/help.html +28 -0
  84. views/layout.html +3 -0
  85. views/mp2migration.html +1 -1
  86. views/newsletter/editor.html +1 -1
  87. views/newsletter/templates/blocks/posts/settingsSelection.hbs +3 -0
  88. views/premium.html +3 -12
  89. views/settings/advanced.html +1 -4
  90. views/settings/basics.html +4 -0
  91. views/settings/mta.html +2 -5
  92. views/settings/premium.html +3 -9
  93. views/subscribers/importExport/import/step1.html +3 -6
  94. views/subscribers/importExport/import/step2.html +1 -4
assets/css/manifest.json CHANGED
@@ -1,7 +1,7 @@
1
  {
2
  "admin.css": "admin.c73ddfe6.css",
3
  "importExport.css": "importExport.b3745466.css",
4
- "newsletter_editor.css": "newsletter_editor.8470e527.css",
5
  "public.css": "public.cae357df.css",
6
  "rtl.css": "rtl.d41d8cd9.css"
7
  }
1
  {
2
  "admin.css": "admin.c73ddfe6.css",
3
  "importExport.css": "importExport.b3745466.css",
4
+ "newsletter_editor.css": "newsletter_editor.f6da21d2.css",
5
  "public.css": "public.cae357df.css",
6
  "rtl.css": "rtl.d41d8cd9.css"
7
  }
assets/css/{newsletter_editor.8470e527.css → newsletter_editor.f6da21d2.css} RENAMED
@@ -2097,6 +2097,7 @@ input.mailpoet_option_offset_left_small {
2097
  max-height: 2000px;
2098
  opacity: 1;
2099
  overflow-y: hidden;
 
2100
  }
2101
  .mailpoet_settings_posts_display_options.mailpoet_closed,
2102
  .mailpoet_settings_posts_selection.mailpoet_closed {
@@ -2110,7 +2111,12 @@ input.mailpoet_option_offset_left_small {
2110
  }
2111
  .mailpoet_post_selection_container {
2112
  margin-top: 20px;
2113
- margin-bottom: 20px;
 
 
 
 
 
2114
  }
2115
  .mailpoet_settings_posts_single_post {
2116
  -webkit-border-radius: 1px;
@@ -2132,6 +2138,9 @@ input.mailpoet_option_offset_left_small {
2132
  margin-left: 10px;
2133
  margin-right: 8px;
2134
  }
 
 
 
2135
  .mailpoet_button_block {
2136
  overflow: hidden;
2137
  }
2097
  max-height: 2000px;
2098
  opacity: 1;
2099
  overflow-y: hidden;
2100
+ overflow-x: hidden;
2101
  }
2102
  .mailpoet_settings_posts_display_options.mailpoet_closed,
2103
  .mailpoet_settings_posts_selection.mailpoet_closed {
2111
  }
2112
  .mailpoet_post_selection_container {
2113
  margin-top: 20px;
2114
+ margin-bottom: 0;
2115
+ }
2116
+ .mailpoet_post_scroll_container {
2117
+ overflow-y: scroll;
2118
+ overflow-x: hidden;
2119
+ max-height: 400px;
2120
  }
2121
  .mailpoet_settings_posts_single_post {
2122
  -webkit-border-radius: 1px;
2138
  margin-left: 10px;
2139
  margin-right: 8px;
2140
  }
2141
+ .mailpoet_post_selection_loading {
2142
+ color: #999;
2143
+ }
2144
  .mailpoet_button_block {
2145
  overflow: hidden;
2146
  }
assets/img/sample_templates/coffee/coffee-grain.jpg DELETED
Binary file
assets/img/sample_templates/coffee/header-v2.jpg DELETED
Binary file
assets/img/sample_templates/coffee/index.php DELETED
File without changes
assets/img/sample_templates/coffee/map-v2.jpg DELETED
Binary file
assets/img/sample_templates/coffee/sandwich.jpg DELETED
Binary file
assets/img/sample_templates/discount/bicycle-header2.png DELETED
Binary file
assets/img/sample_templates/discount/bicycle-header3.png DELETED
Binary file
assets/img/sample_templates/discount/index.php DELETED
File without changes
assets/img/sample_templates/discount/orange-bicycle.jpg DELETED
Binary file
assets/img/sample_templates/discount/red-icycle.jpg DELETED
Binary file
assets/img/sample_templates/index.php DELETED
File without changes
assets/img/sample_templates/restaurant/boyga-1329911-639x852.jpg DELETED
Binary file
assets/img/sample_templates/restaurant/burger.jpg DELETED
Binary file
assets/img/sample_templates/restaurant/header.jpg DELETED
Binary file
assets/img/sample_templates/restaurant/index.php DELETED
File without changes
assets/img/sample_templates/restaurant/macaroni-w-salad-1323787.jpg DELETED
Binary file
assets/img/sample_templates/travel/gallery1.jpg DELETED
Binary file
assets/img/sample_templates/travel/gallery2.jpg DELETED
Binary file
assets/img/sample_templates/travel/gallery3.jpg DELETED
Binary file
assets/img/sample_templates/travel/gallery4.jpg DELETED
Binary file
assets/img/sample_templates/travel/glow-worms.jpg DELETED
Binary file
assets/img/sample_templates/travel/header.png DELETED
Binary file
assets/img/sample_templates/travel/holiday-park.jpg DELETED
Binary file
assets/img/sample_templates/travel/index.php DELETED
File without changes
assets/img/sample_templates/travel/luge.jpg DELETED
Binary file
assets/js/{admin.5cdc4c05.js → admin.080e0640.js} RENAMED
@@ -8,9 +8,10 @@ webpackJsonp([0],[
8
  __webpack_require__(463);
9
  __webpack_require__(465);
10
  __webpack_require__(468);
11
- __webpack_require__(469);
12
  __webpack_require__(473);
13
- module.exports = __webpack_require__(474);
 
14
 
15
 
16
  /***/ },
@@ -31979,6 +31980,312 @@ webpackJsonp([0],[
31979
 
31980
  /***/ },
31981
  /* 468 */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
31982
  /***/ function(module, exports, __webpack_require__) {
31983
 
31984
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [
@@ -32024,7 +32331,7 @@ webpackJsonp([0],[
32024
  }.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
32025
 
32026
  /***/ },
32027
- /* 469 */
32028
  /***/ function(module, exports, __webpack_require__) {
32029
 
32030
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [
@@ -32032,9 +32339,9 @@ webpackJsonp([0],[
32032
  __webpack_require__(278),
32033
  __webpack_require__(273),
32034
  __webpack_require__(274),
32035
- __webpack_require__(470),
32036
- __webpack_require__(471),
32037
- __webpack_require__(472),
32038
  __webpack_require__(297),
32039
  __webpack_require__(287)
32040
  ], __WEBPACK_AMD_DEFINE_RESULT__ = function (
@@ -33142,8 +33449,8 @@ webpackJsonp([0],[
33142
  }.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
33143
 
33144
  /***/ },
33145
- /* 470 */,
33146
- /* 471 */
33147
  /***/ function(module, exports) {
33148
 
33149
  /*!
@@ -33154,7 +33461,7 @@ webpackJsonp([0],[
33154
  !function(e){"use strict";function t(t,r){if(r=r||{},r.worker&&w.WORKERS_SUPPORTED){var n=h();return n.userStep=r.step,n.userChunk=r.chunk,n.userComplete=r.complete,n.userError=r.error,r.step=m(r.step),r.chunk=m(r.chunk),r.complete=m(r.complete),r.error=m(r.error),delete r.worker,void n.postMessage({input:t,config:r,workerId:n.id})}var o=null;return"string"==typeof t?o=r.download?new i(r):new a(r):(e.File&&t instanceof File||t instanceof Object)&&(o=new s(r)),o.stream(t)}function r(e,t){function r(){"object"==typeof t&&("string"==typeof t.delimiter&&1==t.delimiter.length&&-1==w.BAD_DELIMITERS.indexOf(t.delimiter)&&(u=t.delimiter),("boolean"==typeof t.quotes||t.quotes instanceof Array)&&(o=t.quotes),"string"==typeof t.newline&&(f=t.newline))}function n(e){if("object"!=typeof e)return[];var t=[];for(var r in e)t.push(r);return t}function i(e,t){var r="";"string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t));var n=e instanceof Array&&e.length>0,i=!(t[0]instanceof Array);if(n){for(var a=0;a<e.length;a++)a>0&&(r+=u),r+=s(e[a],a);t.length>0&&(r+=f)}for(var o=0;o<t.length;o++){for(var h=n?e.length:t[o].length,d=0;h>d;d++){d>0&&(r+=u);var c=n&&i?e[d]:d;r+=s(t[o][c],d)}o<t.length-1&&(r+=f)}return r}function s(e,t){if("undefined"==typeof e||null===e)return"";e=e.toString().replace(/"/g,'""');var r="boolean"==typeof o&&o||o instanceof Array&&o[t]||a(e,w.BAD_DELIMITERS)||e.indexOf(u)>-1||" "==e.charAt(0)||" "==e.charAt(e.length-1);return r?'"'+e+'"':e}function a(e,t){for(var r=0;r<t.length;r++)if(e.indexOf(t[r])>-1)return!0;return!1}var o=!1,u=",",f="\r\n";if(r(),"string"==typeof e&&(e=JSON.parse(e)),e instanceof Array){if(!e.length||e[0]instanceof Array)return i(null,e);if("object"==typeof e[0])return i(n(e[0]),e)}else if("object"==typeof e)return"string"==typeof e.data&&(e.data=JSON.parse(e.data)),e.data instanceof Array&&(e.fields||(e.fields=e.data[0]instanceof Array?e.fields:n(e.data[0])),e.data[0]instanceof Array||"object"==typeof e.data[0]||(e.data=[e.data])),i(e.fields||[],e.data||[]);throw"exception: Unable to serialize unrecognized input"}function n(t){function r(e){var t=_(e);t.chunkSize=parseInt(t.chunkSize),this._handle=new o(t),this._handle.streamer=this,this._config=t}this._handle=null,this._paused=!1,this._finished=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this._completeResults={data:[],errors:[],meta:{}},r.call(this,t),this.parseChunk=function(t){var r=this._partialLine+t;this._partialLine="";var n=this._handle.parse(r,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var i=n.meta.cursor;this._finished||(this._partialLine=r.substring(i-this._baseIndex),this._baseIndex=i),n&&n.data&&(this._rowCount+=n.data.length);var s=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(k)e.postMessage({results:n,workerId:w.WORKER_ID,finished:s});else if(m(this._config.chunk)){if(this._config.chunk(n,this._handle),this._paused)return;n=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(n.data),this._completeResults.errors=this._completeResults.errors.concat(n.errors),this._completeResults.meta=n.meta),!s||!m(this._config.complete)||n&&n.meta.aborted||this._config.complete(this._completeResults),s||n&&n.meta.paused||this._nextChunk(),n}},this._sendError=function(t){m(this._config.error)?this._config.error(t):k&&this._config.error&&e.postMessage({workerId:w.WORKER_ID,error:t,finished:!1})}}function i(e){function t(e){var t=e.getResponseHeader("Content-Range");return parseInt(t.substr(t.lastIndexOf("/")+1))}e=e||{},e.chunkSize||(e.chunkSize=w.RemoteChunkSize),n.call(this,e);var r;this._nextChunk=k?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)return void this._chunkLoaded();if(r=new XMLHttpRequest,k||(r.onload=g(this._chunkLoaded,this),r.onerror=g(this._chunkError,this)),r.open("GET",this._input,!k),this._config.chunkSize){var e=this._start+this._config.chunkSize-1;r.setRequestHeader("Range","bytes="+this._start+"-"+e),r.setRequestHeader("If-None-Match","webkit-no-cache")}try{r.send()}catch(t){this._chunkError(t.message)}k&&0==r.status?this._chunkError():this._start+=this._config.chunkSize},this._chunkLoaded=function(){if(4==r.readyState){if(r.status<200||r.status>=400)return void this._chunkError();this._finished=!this._config.chunkSize||this._start>t(r),this.parseChunk(r.responseText)}},this._chunkError=function(e){var t=r.statusText||e;this._sendError(t)}}function s(e){e=e||{},e.chunkSize||(e.chunkSize=w.LocalChunkSize),n.call(this,e);var t,r,i="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,r=e.slice||e.webkitSlice||e.mozSlice,i?(t=new FileReader,t.onload=g(this._chunkLoaded,this),t.onerror=g(this._chunkError,this)):t=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var e=this._input;if(this._config.chunkSize){var n=Math.min(this._start+this._config.chunkSize,this._input.size);e=r.call(e,this._start,n)}var s=t.readAsText(e,this._config.encoding);i||this._chunkLoaded({target:{result:s}})},this._chunkLoaded=function(e){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(t.error)}}function a(e){e=e||{},n.call(this,e);var t,r;this.stream=function(e){return t=e,r=e,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var e=this._config.chunkSize,t=e?r.substr(0,e):r;return r=e?r.substr(e):"",this._finished=!r,this.parseChunk(t)}}}function o(e){function t(){if(b&&c&&(f("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+w.DefaultDelimiter+"'"),c=!1),e.skipEmptyLines)for(var t=0;t<b.data.length;t++)1==b.data[t].length&&""==b.data[t][0]&&b.data.splice(t--,1);return r()&&n(),i()}function r(){return e.header&&0==y.length}function n(){if(b){for(var e=0;r()&&e<b.data.length;e++)for(var t=0;t<b.data[e].length;t++)y.push(b.data[e][t]);b.data.splice(0,1)}}function i(){if(!b||!e.header&&!e.dynamicTyping)return b;for(var t=0;t<b.data.length;t++){for(var r={},n=0;n<b.data[t].length;n++){if(e.dynamicTyping){var i=b.data[t][n];b.data[t][n]="true"==i||"TRUE"==i?!0:"false"==i||"FALSE"==i?!1:o(i)}e.header&&(n>=y.length?(r.__parsed_extra||(r.__parsed_extra=[]),r.__parsed_extra.push(b.data[t][n])):r[y[n]]=b.data[t][n])}e.header&&(b.data[t]=r,n>y.length?f("FieldMismatch","TooManyFields","Too many fields: expected "+y.length+" fields but parsed "+n,t):n<y.length&&f("FieldMismatch","TooFewFields","Too few fields: expected "+y.length+" fields but parsed "+n,t))}return e.header&&b.meta&&(b.meta.fields=y),b}function s(t){for(var r,n,i,s=[","," ","|",";",w.RECORD_SEP,w.UNIT_SEP],a=0;a<s.length;a++){var o=s[a],f=0,h=0;i=void 0;for(var d=new u({delimiter:o,preview:10}).parse(t),c=0;c<d.data.length;c++){var l=d.data[c].length;h+=l,"undefined"!=typeof i?l>1&&(f+=Math.abs(l-i),i=l):i=l}h/=d.data.length,("undefined"==typeof n||n>f)&&h>1.99&&(n=f,r=o)}return e.delimiter=r,{successful:!!r,bestDelimiter:r}}function a(e){e=e.substr(0,1048576);var t=e.split("\r");if(1==t.length)return"\n";for(var r=0,n=0;n<t.length;n++)"\n"==t[n][0]&&r++;return r>=t.length/2?"\r\n":"\r"}function o(e){var t=l.test(e);return t?parseFloat(e):e}function f(e,t,r,n){b.errors.push({type:e,code:t,message:r,row:n})}var h,d,c,l=/^\s*-?(\d*\.?\d+|\d+\.?\d*)(e[-+]?\d+)?\s*$/i,p=this,g=0,v=!1,k=!1,y=[],b={data:[],errors:[],meta:{}};if(m(e.step)){var R=e.step;e.step=function(n){if(b=n,r())t();else{if(t(),0==b.data.length)return;g+=n.data.length,e.preview&&g>e.preview?d.abort():R(b,p)}}}this.parse=function(r,n,i){if(e.newline||(e.newline=a(r)),c=!1,!e.delimiter){var o=s(r);o.successful?e.delimiter=o.bestDelimiter:(c=!0,e.delimiter=w.DefaultDelimiter),b.meta.delimiter=e.delimiter}var f=_(e);return e.preview&&e.header&&f.preview++,h=r,d=new u(f),b=d.parse(h,n,i),t(),v?{meta:{paused:!0}}:b||{meta:{paused:!1}}},this.paused=function(){return v},this.pause=function(){v=!0,d.abort(),h=h.substr(d.getCharIndex())},this.resume=function(){v=!1,p.streamer.parseChunk(h)},this.aborted=function(){return k},this.abort=function(){k=!0,d.abort(),b.meta.aborted=!0,m(e.complete)&&e.complete(b),h=""}}function u(e){e=e||{};var t=e.delimiter,r=e.newline,n=e.comments,i=e.step,s=e.preview,a=e.fastMode;if(("string"!=typeof t||w.BAD_DELIMITERS.indexOf(t)>-1)&&(t=","),n===t)throw"Comment character same as delimiter";n===!0?n="#":("string"!=typeof n||w.BAD_DELIMITERS.indexOf(n)>-1)&&(n=!1),"\n"!=r&&"\r"!=r&&"\r\n"!=r&&(r="\n");var o=0,u=!1;this.parse=function(e,f,h){function d(e){b.push(e),S=o}function c(t){return h?p():(t||(t=e.substr(o)),w.push(t),o=g,d(w),y&&_(),p())}function l(t){o=t,d(w),w=[],O=e.indexOf(r,o)}function p(e){return{data:b,errors:R,meta:{delimiter:t,linebreak:r,aborted:u,truncated:!!e,cursor:S+(f||0)}}}function _(){i(p()),b=[],R=[]}if("string"!=typeof e)throw"Input must be a string";var g=e.length,m=t.length,v=r.length,k=n.length,y="function"==typeof i;o=0;var b=[],R=[],w=[],S=0;if(!e)return p();if(a||a!==!1&&-1===e.indexOf('"')){for(var E=e.split(r),C=0;C<E.length;C++){var w=E[C];if(o+=w.length,C!==E.length-1)o+=r.length;else if(h)return p();if(!n||w.substr(0,k)!=n){if(y){if(b=[],d(w.split(t)),_(),u)return p()}else d(w.split(t));if(s&&C>=s)return b=b.slice(0,s),p(!0)}}return p()}for(var x=e.indexOf(t,o),O=e.indexOf(r,o);;)if('"'!=e[o])if(n&&0===w.length&&e.substr(o,k)===n){if(-1==O)return p();o=O+v,O=e.indexOf(r,o),x=e.indexOf(t,o)}else if(-1!==x&&(O>x||-1===O))w.push(e.substring(o,x)),o=x+m,x=e.indexOf(t,o);else{if(-1===O)break;if(w.push(e.substring(o,O)),l(O+v),y&&(_(),u))return p();if(s&&b.length>=s)return p(!0)}else{var I=o;for(o++;;){var I=e.indexOf('"',I+1);if(-1===I)return h||R.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:b.length,index:o}),c();if(I===g-1){var D=e.substring(o,I).replace(/""/g,'"');return c(D)}if('"'!=e[I+1]){if(e[I+1]==t){w.push(e.substring(o,I).replace(/""/g,'"')),o=I+1+m,x=e.indexOf(t,o),O=e.indexOf(r,o);break}if(e.substr(I+1,v)===r){if(w.push(e.substring(o,I).replace(/""/g,'"')),l(I+1+v),x=e.indexOf(t,o),y&&(_(),u))return p();if(s&&b.length>=s)return p(!0);break}}else I++}}return c()},this.abort=function(){u=!0},this.getCharIndex=function(){return o}}function f(){var e=document.getElementsByTagName("script");return e.length?e[e.length-1].src:""}function h(){if(!w.WORKERS_SUPPORTED)return!1;if(!y&&null===w.SCRIPT_PATH)throw new Error("Script path cannot be determined automatically when Papa Parse is loaded asynchronously. You need to set Papa.SCRIPT_PATH manually.");var t=new e.Worker(w.SCRIPT_PATH||v);return t.onmessage=d,t.id=R++,b[t.id]=t,t}function d(e){var t=e.data,r=b[t.workerId],n=!1;if(t.error)r.userError(t.error,t.file);else if(t.results&&t.results.data){var i=function(){n=!0,c(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},s={abort:i,pause:l,resume:l};if(m(r.userStep)){for(var a=0;a<t.results.data.length&&(r.userStep({data:[t.results.data[a]],errors:t.results.errors,meta:t.results.meta},s),!n);a++);delete t.results}else m(r.userChunk)&&(r.userChunk(t.results,s,t.file),delete t.results)}t.finished&&!n&&c(t.workerId,t.results)}function c(e,t){var r=b[e];m(r.userComplete)&&r.userComplete(t),r.terminate(),delete b[e]}function l(){throw"Not implemented."}function p(t){var r=t.data;if("undefined"==typeof w.WORKER_ID&&r&&(w.WORKER_ID=r.workerId),"string"==typeof r.input)e.postMessage({workerId:w.WORKER_ID,results:w.parse(r.input,r.config),finished:!0});else if(e.File&&r.input instanceof File||r.input instanceof Object){var n=w.parse(r.input,r.config);n&&e.postMessage({workerId:w.WORKER_ID,results:n,finished:!0})}}function _(e){if("object"!=typeof e)return e;var t=e instanceof Array?[]:{};for(var r in e)t[r]=_(e[r]);return t}function g(e,t){return function(){e.apply(t,arguments)}}function m(e){return"function"==typeof e}var v,k=!e.document&&!!e.postMessage,y=!1,b={},R=0,w={};if(w.parse=t,w.unparse=r,w.RECORD_SEP=String.fromCharCode(30),w.UNIT_SEP=String.fromCharCode(31),w.BYTE_ORDER_MARK="",w.BAD_DELIMITERS=["\r","\n",'"',w.BYTE_ORDER_MARK],w.WORKERS_SUPPORTED=!!e.Worker,w.SCRIPT_PATH=null,w.LocalChunkSize=10485760,w.RemoteChunkSize=5242880,w.DefaultDelimiter=",",w.Parser=u,w.ParserHandle=o,w.NetworkStreamer=i,w.FileStreamer=s,w.StringStreamer=a,"undefined"!=typeof module&&module.exports?module.exports=w:m(e.define)&&e.define.amd?e.define(function(){return w}):e.Papa=w,e.jQuery){var S=e.jQuery;S.fn.parse=function(t){function r(){if(0==a.length)return void(m(t.complete)&&t.complete());var e=a[0];if(m(t.before)){var r=t.before(e.file,e.inputElem);if("object"==typeof r){if("abort"==r.action)return void n("AbortError",e.file,e.inputElem,r.reason);if("skip"==r.action)return void i();"object"==typeof r.config&&(e.instanceConfig=S.extend(e.instanceConfig,r.config))}else if("skip"==r)return void i()}var s=e.instanceConfig.complete;e.instanceConfig.complete=function(t){m(s)&&s(t,e.file,e.inputElem),i()},w.parse(e.file,e.instanceConfig)}function n(e,r,n,i){m(t.error)&&t.error({name:e},r,n,i)}function i(){a.splice(0,1),r()}var s=t.config||{},a=[];return this.each(function(){var t="INPUT"==S(this).prop("tagName").toUpperCase()&&"file"==S(this).attr("type").toLowerCase()&&e.FileReader;if(!t||!this.files||0==this.files.length)return!0;for(var r=0;r<this.files.length;r++)a.push({file:this.files[r],inputElem:this,instanceConfig:S.extend({},s)})}),r(),this}}k?e.onmessage=p:w.WORKERS_SUPPORTED&&(v=f(),document.body?document.addEventListener("DOMContentLoaded",function(){y=!0},!0):y=!0),i.prototype=Object.create(n.prototype),i.prototype.constructor=i,s.prototype=Object.create(n.prototype),s.prototype.constructor=s,a.prototype=Object.create(a.prototype),a.prototype.constructor=a}("undefined"!=typeof window?window:this);
33155
 
33156
  /***/ },
33157
- /* 472 */
33158
  /***/ function(module, exports) {
33159
 
33160
  /*
@@ -33239,14 +33546,14 @@ webpackJsonp([0],[
33239
 
33240
 
33241
  /***/ },
33242
- /* 473 */
33243
  /***/ function(module, exports, __webpack_require__) {
33244
 
33245
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [
33246
  __webpack_require__(278),
33247
  __webpack_require__(273),
33248
  __webpack_require__(274),
33249
- __webpack_require__(470),
33250
  __webpack_require__(287)
33251
  ], __WEBPACK_AMD_DEFINE_RESULT__ = function (
33252
  _,
@@ -33413,7 +33720,7 @@ webpackJsonp([0],[
33413
 
33414
 
33415
  /***/ },
33416
- /* 474 */
33417
  /***/ function(module, exports, __webpack_require__) {
33418
 
33419
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = function() {
8
  __webpack_require__(463);
9
  __webpack_require__(465);
10
  __webpack_require__(468);
11
+ __webpack_require__(472);
12
  __webpack_require__(473);
13
+ __webpack_require__(477);
14
+ module.exports = __webpack_require__(478);
15
 
16
 
17
  /***/ },
31980
 
31981
  /***/ },
31982
  /* 468 */
31983
+ /***/ function(module, exports, __webpack_require__) {
31984
+
31985
+ 'use strict';
31986
+
31987
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
31988
+
31989
+ var _react = __webpack_require__(2);
31990
+
31991
+ var _react2 = _interopRequireDefault(_react);
31992
+
31993
+ var _reactDom = __webpack_require__(34);
31994
+
31995
+ var _reactDom2 = _interopRequireDefault(_reactDom);
31996
+
31997
+ var _reactRouter = __webpack_require__(180);
31998
+
31999
+ var _history = __webpack_require__(243);
32000
+
32001
+ var _helpKnowledge_baseJsx = __webpack_require__(469);
32002
+
32003
+ var _helpKnowledge_baseJsx2 = _interopRequireDefault(_helpKnowledge_baseJsx);
32004
+
32005
+ var _helpSystem_infoJsx = __webpack_require__(471);
32006
+
32007
+ var _helpSystem_infoJsx2 = _interopRequireDefault(_helpSystem_infoJsx);
32008
+
32009
+ var history = (0, _reactRouter.useRouterHistory)(_history.createHashHistory)({ queryKey: false });
32010
+
32011
+ var App = _react2['default'].createClass({
32012
+ displayName: 'App',
32013
+
32014
+ render: function render() {
32015
+ return this.props.children;
32016
+ }
32017
+ });
32018
+
32019
+ var container = document.getElementById('help_container');
32020
+
32021
+ if (container) {
32022
+
32023
+ _reactDom2['default'].render(_react2['default'].createElement(
32024
+ _reactRouter.Router,
32025
+ { history: history },
32026
+ _react2['default'].createElement(
32027
+ _reactRouter.Route,
32028
+ { path: '/', component: App },
32029
+ _react2['default'].createElement(_reactRouter.IndexRedirect, { to: 'knowledgeBase' }),
32030
+ _react2['default'].createElement(_reactRouter.Route, { path: 'knowledgeBase(/)**', params: { tab: 'knowledgeBase' }, component: _helpKnowledge_baseJsx2['default'] }),
32031
+ _react2['default'].createElement(_reactRouter.Route, { path: 'systemInfo(/)**', params: { tab: 'systemInfo' }, component: _helpSystem_infoJsx2['default'] })
32032
+ )
32033
+ ), container);
32034
+ }
32035
+ /* Pages */
32036
+
32037
+ /***/ },
32038
+ /* 469 */
32039
+ /***/ function(module, exports, __webpack_require__) {
32040
+
32041
+ 'use strict';
32042
+
32043
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
32044
+
32045
+ var _react = __webpack_require__(2);
32046
+
32047
+ var _react2 = _interopRequireDefault(_react);
32048
+
32049
+ var _mailpoet = __webpack_require__(274);
32050
+
32051
+ var _mailpoet2 = _interopRequireDefault(_mailpoet);
32052
+
32053
+ var _tabsJsx = __webpack_require__(470);
32054
+
32055
+ var _tabsJsx2 = _interopRequireDefault(_tabsJsx);
32056
+
32057
+ function KnowledgeBase() {
32058
+
32059
+ return _react2['default'].createElement(
32060
+ 'div',
32061
+ null,
32062
+ _react2['default'].createElement(_tabsJsx2['default'], { tab: 'knowledgeBase' }),
32063
+ _react2['default'].createElement(
32064
+ 'p',
32065
+ null,
32066
+ _mailpoet2['default'].I18n.t('knowledgeBaseIntro')
32067
+ ),
32068
+ _react2['default'].createElement(
32069
+ 'ul',
32070
+ null,
32071
+ _react2['default'].createElement(
32072
+ 'li',
32073
+ null,
32074
+ _react2['default'].createElement(
32075
+ 'a',
32076
+ { target: '_blank', href: 'http://beta.docs.mailpoet.com/category/116-common-problems' },
32077
+ 'Common Problems'
32078
+ )
32079
+ ),
32080
+ _react2['default'].createElement(
32081
+ 'li',
32082
+ null,
32083
+ _react2['default'].createElement(
32084
+ 'a',
32085
+ { target: '_blank', href: 'http://beta.docs.mailpoet.com/category/165-newsletters' },
32086
+ 'Newsletters'
32087
+ )
32088
+ ),
32089
+ _react2['default'].createElement(
32090
+ 'li',
32091
+ null,
32092
+ _react2['default'].createElement(
32093
+ 'a',
32094
+ { target: '_blank', href: 'http://beta.docs.mailpoet.com/category/156-migration-questions' },
32095
+ 'Migration Questions'
32096
+ )
32097
+ ),
32098
+ _react2['default'].createElement(
32099
+ 'li',
32100
+ null,
32101
+ _react2['default'].createElement(
32102
+ 'a',
32103
+ { target: '_blank', href: 'http://beta.docs.mailpoet.com/category/149-sending-methods' },
32104
+ 'Sending Methods'
32105
+ )
32106
+ ),
32107
+ _react2['default'].createElement(
32108
+ 'li',
32109
+ null,
32110
+ _react2['default'].createElement(
32111
+ 'a',
32112
+ { target: '_blank', href: 'http://beta.docs.mailpoet.com/category/139-subscription-forms' },
32113
+ 'Subscription Forms'
32114
+ )
32115
+ ),
32116
+ _react2['default'].createElement(
32117
+ 'li',
32118
+ null,
32119
+ _react2['default'].createElement(
32120
+ 'a',
32121
+ { target: '_blank', href: 'http://beta.docs.mailpoet.com/category/114-getting-started' },
32122
+ 'Getting Started'
32123
+ )
32124
+ ),
32125
+ _react2['default'].createElement(
32126
+ 'li',
32127
+ null,
32128
+ _react2['default'].createElement(
32129
+ 'a',
32130
+ { target: '_blank', href: 'http://beta.docs.mailpoet.com/category/123-newsletter-designer' },
32131
+ 'Newsletter Designer'
32132
+ )
32133
+ ),
32134
+ _react2['default'].createElement(
32135
+ 'li',
32136
+ null,
32137
+ _react2['default'].createElement(
32138
+ 'a',
32139
+ { target: '_blank', href: 'http://beta.docs.mailpoet.com/category/121-subscribers-and-lists' },
32140
+ 'Subscribers and Lists'
32141
+ )
32142
+ )
32143
+ ),
32144
+ _react2['default'].createElement(
32145
+ 'a',
32146
+ { target: '_blank', href: 'http://beta.docs.mailpoet.com/', className: 'button button-primary' },
32147
+ _mailpoet2['default'].I18n.t('knowledgeBaseButton')
32148
+ )
32149
+ );
32150
+ };
32151
+
32152
+ module.exports = KnowledgeBase;
32153
+
32154
+ /***/ },
32155
+ /* 470 */
32156
+ /***/ function(module, exports, __webpack_require__) {
32157
+
32158
+ 'use strict';
32159
+
32160
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
32161
+
32162
+ var _react = __webpack_require__(2);
32163
+
32164
+ var _react2 = _interopRequireDefault(_react);
32165
+
32166
+ var _reactRouter = __webpack_require__(180);
32167
+
32168
+ var _classnames = __webpack_require__(275);
32169
+
32170
+ var _classnames2 = _interopRequireDefault(_classnames);
32171
+
32172
+ var _mailpoet = __webpack_require__(274);
32173
+
32174
+ var _mailpoet2 = _interopRequireDefault(_mailpoet);
32175
+
32176
+ var tabs = [{
32177
+ name: 'knowledgeBase',
32178
+ label: _mailpoet2['default'].I18n.t('tabKnowledgeBaseTitle'),
32179
+ link: '/knowledgeBase'
32180
+ }, {
32181
+ name: 'systemInfo',
32182
+ label: _mailpoet2['default'].I18n.t('tabSystemInfoTitle'),
32183
+ link: '/systemInfo'
32184
+ }];
32185
+
32186
+ function Tabs(props) {
32187
+
32188
+ var tabLinks = tabs.map(function (tab, index) {
32189
+ var tabClasses = (0, _classnames2['default'])('nav-tab', { 'nav-tab-active': props.tab === tab.name });
32190
+
32191
+ return _react2['default'].createElement(
32192
+ _reactRouter.Link,
32193
+ {
32194
+ key: 'tab-' + index,
32195
+ className: tabClasses,
32196
+ to: tab.link
32197
+ },
32198
+ tab.label
32199
+ );
32200
+ });
32201
+
32202
+ return _react2['default'].createElement(
32203
+ 'h2',
32204
+ { className: 'nav-tab-wrapper' },
32205
+ tabLinks
32206
+ );
32207
+ };
32208
+
32209
+ Tabs.propTypes = { tab: _react2['default'].PropTypes.string };
32210
+ Tabs.defaultProps = { tab: "knowledgeBase" };
32211
+
32212
+ module.exports = Tabs;
32213
+
32214
+ /***/ },
32215
+ /* 471 */
32216
+ /***/ function(module, exports, __webpack_require__) {
32217
+
32218
+ 'use strict';
32219
+
32220
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
32221
+
32222
+ var _react = __webpack_require__(2);
32223
+
32224
+ var _react2 = _interopRequireDefault(_react);
32225
+
32226
+ var _mailpoet = __webpack_require__(274);
32227
+
32228
+ var _mailpoet2 = _interopRequireDefault(_mailpoet);
32229
+
32230
+ var _underscore = __webpack_require__(278);
32231
+
32232
+ var _underscore2 = _interopRequireDefault(_underscore);
32233
+
32234
+ var _tabsJsx = __webpack_require__(470);
32235
+
32236
+ var _tabsJsx2 = _interopRequireDefault(_tabsJsx);
32237
+
32238
+ function handleFocus(event) {
32239
+ event.target.select();
32240
+ }
32241
+
32242
+ function printData(data) {
32243
+ if (_underscore2['default'].isObject(data)) {
32244
+ var printableData = Object.keys(data).map(function (key) {
32245
+ return key + ': ' + data[key];
32246
+ });
32247
+
32248
+ return _react2['default'].createElement('textarea', {
32249
+ readOnly: true,
32250
+ onFocus: handleFocus,
32251
+ value: printableData.join("\n"),
32252
+ style: {
32253
+ width: "100%",
32254
+ height: "400px"
32255
+ }
32256
+ });
32257
+ } else {
32258
+ return _react2['default'].createElement(
32259
+ 'p',
32260
+ null,
32261
+ _mailpoet2['default'].I18n.t('systemInfoDataError')
32262
+ );
32263
+ }
32264
+ }
32265
+
32266
+ function KnowledgeBase() {
32267
+ var data = window.help_scout_data;
32268
+ return _react2['default'].createElement(
32269
+ 'div',
32270
+ null,
32271
+ _react2['default'].createElement(_tabsJsx2['default'], { tab: 'systemInfo' }),
32272
+ _react2['default'].createElement(
32273
+ 'div',
32274
+ { className: 'mailpoet_notice notice inline notice-success', style: { marginTop: "1em" } },
32275
+ _react2['default'].createElement(
32276
+ 'p',
32277
+ null,
32278
+ _mailpoet2['default'].I18n.t('systemInfoIntro')
32279
+ )
32280
+ ),
32281
+ printData(data)
32282
+ );
32283
+ };
32284
+
32285
+ module.exports = KnowledgeBase;
32286
+
32287
+ /***/ },
32288
+ /* 472 */
32289
  /***/ function(module, exports, __webpack_require__) {
32290
 
32291
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [
32331
  }.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
32332
 
32333
  /***/ },
32334
+ /* 473 */
32335
  /***/ function(module, exports, __webpack_require__) {
32336
 
32337
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [
32339
  __webpack_require__(278),
32340
  __webpack_require__(273),
32341
  __webpack_require__(274),
32342
+ __webpack_require__(474),
32343
+ __webpack_require__(475),
32344
+ __webpack_require__(476),
32345
  __webpack_require__(297),
32346
  __webpack_require__(287)
32347
  ], __WEBPACK_AMD_DEFINE_RESULT__ = function (
33449
  }.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
33450
 
33451
  /***/ },
33452
+ /* 474 */,
33453
+ /* 475 */
33454
  /***/ function(module, exports) {
33455
 
33456
  /*!
33461
  !function(e){"use strict";function t(t,r){if(r=r||{},r.worker&&w.WORKERS_SUPPORTED){var n=h();return n.userStep=r.step,n.userChunk=r.chunk,n.userComplete=r.complete,n.userError=r.error,r.step=m(r.step),r.chunk=m(r.chunk),r.complete=m(r.complete),r.error=m(r.error),delete r.worker,void n.postMessage({input:t,config:r,workerId:n.id})}var o=null;return"string"==typeof t?o=r.download?new i(r):new a(r):(e.File&&t instanceof File||t instanceof Object)&&(o=new s(r)),o.stream(t)}function r(e,t){function r(){"object"==typeof t&&("string"==typeof t.delimiter&&1==t.delimiter.length&&-1==w.BAD_DELIMITERS.indexOf(t.delimiter)&&(u=t.delimiter),("boolean"==typeof t.quotes||t.quotes instanceof Array)&&(o=t.quotes),"string"==typeof t.newline&&(f=t.newline))}function n(e){if("object"!=typeof e)return[];var t=[];for(var r in e)t.push(r);return t}function i(e,t){var r="";"string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t));var n=e instanceof Array&&e.length>0,i=!(t[0]instanceof Array);if(n){for(var a=0;a<e.length;a++)a>0&&(r+=u),r+=s(e[a],a);t.length>0&&(r+=f)}for(var o=0;o<t.length;o++){for(var h=n?e.length:t[o].length,d=0;h>d;d++){d>0&&(r+=u);var c=n&&i?e[d]:d;r+=s(t[o][c],d)}o<t.length-1&&(r+=f)}return r}function s(e,t){if("undefined"==typeof e||null===e)return"";e=e.toString().replace(/"/g,'""');var r="boolean"==typeof o&&o||o instanceof Array&&o[t]||a(e,w.BAD_DELIMITERS)||e.indexOf(u)>-1||" "==e.charAt(0)||" "==e.charAt(e.length-1);return r?'"'+e+'"':e}function a(e,t){for(var r=0;r<t.length;r++)if(e.indexOf(t[r])>-1)return!0;return!1}var o=!1,u=",",f="\r\n";if(r(),"string"==typeof e&&(e=JSON.parse(e)),e instanceof Array){if(!e.length||e[0]instanceof Array)return i(null,e);if("object"==typeof e[0])return i(n(e[0]),e)}else if("object"==typeof e)return"string"==typeof e.data&&(e.data=JSON.parse(e.data)),e.data instanceof Array&&(e.fields||(e.fields=e.data[0]instanceof Array?e.fields:n(e.data[0])),e.data[0]instanceof Array||"object"==typeof e.data[0]||(e.data=[e.data])),i(e.fields||[],e.data||[]);throw"exception: Unable to serialize unrecognized input"}function n(t){function r(e){var t=_(e);t.chunkSize=parseInt(t.chunkSize),this._handle=new o(t),this._handle.streamer=this,this._config=t}this._handle=null,this._paused=!1,this._finished=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this._completeResults={data:[],errors:[],meta:{}},r.call(this,t),this.parseChunk=function(t){var r=this._partialLine+t;this._partialLine="";var n=this._handle.parse(r,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var i=n.meta.cursor;this._finished||(this._partialLine=r.substring(i-this._baseIndex),this._baseIndex=i),n&&n.data&&(this._rowCount+=n.data.length);var s=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(k)e.postMessage({results:n,workerId:w.WORKER_ID,finished:s});else if(m(this._config.chunk)){if(this._config.chunk(n,this._handle),this._paused)return;n=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(n.data),this._completeResults.errors=this._completeResults.errors.concat(n.errors),this._completeResults.meta=n.meta),!s||!m(this._config.complete)||n&&n.meta.aborted||this._config.complete(this._completeResults),s||n&&n.meta.paused||this._nextChunk(),n}},this._sendError=function(t){m(this._config.error)?this._config.error(t):k&&this._config.error&&e.postMessage({workerId:w.WORKER_ID,error:t,finished:!1})}}function i(e){function t(e){var t=e.getResponseHeader("Content-Range");return parseInt(t.substr(t.lastIndexOf("/")+1))}e=e||{},e.chunkSize||(e.chunkSize=w.RemoteChunkSize),n.call(this,e);var r;this._nextChunk=k?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)return void this._chunkLoaded();if(r=new XMLHttpRequest,k||(r.onload=g(this._chunkLoaded,this),r.onerror=g(this._chunkError,this)),r.open("GET",this._input,!k),this._config.chunkSize){var e=this._start+this._config.chunkSize-1;r.setRequestHeader("Range","bytes="+this._start+"-"+e),r.setRequestHeader("If-None-Match","webkit-no-cache")}try{r.send()}catch(t){this._chunkError(t.message)}k&&0==r.status?this._chunkError():this._start+=this._config.chunkSize},this._chunkLoaded=function(){if(4==r.readyState){if(r.status<200||r.status>=400)return void this._chunkError();this._finished=!this._config.chunkSize||this._start>t(r),this.parseChunk(r.responseText)}},this._chunkError=function(e){var t=r.statusText||e;this._sendError(t)}}function s(e){e=e||{},e.chunkSize||(e.chunkSize=w.LocalChunkSize),n.call(this,e);var t,r,i="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,r=e.slice||e.webkitSlice||e.mozSlice,i?(t=new FileReader,t.onload=g(this._chunkLoaded,this),t.onerror=g(this._chunkError,this)):t=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var e=this._input;if(this._config.chunkSize){var n=Math.min(this._start+this._config.chunkSize,this._input.size);e=r.call(e,this._start,n)}var s=t.readAsText(e,this._config.encoding);i||this._chunkLoaded({target:{result:s}})},this._chunkLoaded=function(e){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(t.error)}}function a(e){e=e||{},n.call(this,e);var t,r;this.stream=function(e){return t=e,r=e,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var e=this._config.chunkSize,t=e?r.substr(0,e):r;return r=e?r.substr(e):"",this._finished=!r,this.parseChunk(t)}}}function o(e){function t(){if(b&&c&&(f("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+w.DefaultDelimiter+"'"),c=!1),e.skipEmptyLines)for(var t=0;t<b.data.length;t++)1==b.data[t].length&&""==b.data[t][0]&&b.data.splice(t--,1);return r()&&n(),i()}function r(){return e.header&&0==y.length}function n(){if(b){for(var e=0;r()&&e<b.data.length;e++)for(var t=0;t<b.data[e].length;t++)y.push(b.data[e][t]);b.data.splice(0,1)}}function i(){if(!b||!e.header&&!e.dynamicTyping)return b;for(var t=0;t<b.data.length;t++){for(var r={},n=0;n<b.data[t].length;n++){if(e.dynamicTyping){var i=b.data[t][n];b.data[t][n]="true"==i||"TRUE"==i?!0:"false"==i||"FALSE"==i?!1:o(i)}e.header&&(n>=y.length?(r.__parsed_extra||(r.__parsed_extra=[]),r.__parsed_extra.push(b.data[t][n])):r[y[n]]=b.data[t][n])}e.header&&(b.data[t]=r,n>y.length?f("FieldMismatch","TooManyFields","Too many fields: expected "+y.length+" fields but parsed "+n,t):n<y.length&&f("FieldMismatch","TooFewFields","Too few fields: expected "+y.length+" fields but parsed "+n,t))}return e.header&&b.meta&&(b.meta.fields=y),b}function s(t){for(var r,n,i,s=[","," ","|",";",w.RECORD_SEP,w.UNIT_SEP],a=0;a<s.length;a++){var o=s[a],f=0,h=0;i=void 0;for(var d=new u({delimiter:o,preview:10}).parse(t),c=0;c<d.data.length;c++){var l=d.data[c].length;h+=l,"undefined"!=typeof i?l>1&&(f+=Math.abs(l-i),i=l):i=l}h/=d.data.length,("undefined"==typeof n||n>f)&&h>1.99&&(n=f,r=o)}return e.delimiter=r,{successful:!!r,bestDelimiter:r}}function a(e){e=e.substr(0,1048576);var t=e.split("\r");if(1==t.length)return"\n";for(var r=0,n=0;n<t.length;n++)"\n"==t[n][0]&&r++;return r>=t.length/2?"\r\n":"\r"}function o(e){var t=l.test(e);return t?parseFloat(e):e}function f(e,t,r,n){b.errors.push({type:e,code:t,message:r,row:n})}var h,d,c,l=/^\s*-?(\d*\.?\d+|\d+\.?\d*)(e[-+]?\d+)?\s*$/i,p=this,g=0,v=!1,k=!1,y=[],b={data:[],errors:[],meta:{}};if(m(e.step)){var R=e.step;e.step=function(n){if(b=n,r())t();else{if(t(),0==b.data.length)return;g+=n.data.length,e.preview&&g>e.preview?d.abort():R(b,p)}}}this.parse=function(r,n,i){if(e.newline||(e.newline=a(r)),c=!1,!e.delimiter){var o=s(r);o.successful?e.delimiter=o.bestDelimiter:(c=!0,e.delimiter=w.DefaultDelimiter),b.meta.delimiter=e.delimiter}var f=_(e);return e.preview&&e.header&&f.preview++,h=r,d=new u(f),b=d.parse(h,n,i),t(),v?{meta:{paused:!0}}:b||{meta:{paused:!1}}},this.paused=function(){return v},this.pause=function(){v=!0,d.abort(),h=h.substr(d.getCharIndex())},this.resume=function(){v=!1,p.streamer.parseChunk(h)},this.aborted=function(){return k},this.abort=function(){k=!0,d.abort(),b.meta.aborted=!0,m(e.complete)&&e.complete(b),h=""}}function u(e){e=e||{};var t=e.delimiter,r=e.newline,n=e.comments,i=e.step,s=e.preview,a=e.fastMode;if(("string"!=typeof t||w.BAD_DELIMITERS.indexOf(t)>-1)&&(t=","),n===t)throw"Comment character same as delimiter";n===!0?n="#":("string"!=typeof n||w.BAD_DELIMITERS.indexOf(n)>-1)&&(n=!1),"\n"!=r&&"\r"!=r&&"\r\n"!=r&&(r="\n");var o=0,u=!1;this.parse=function(e,f,h){function d(e){b.push(e),S=o}function c(t){return h?p():(t||(t=e.substr(o)),w.push(t),o=g,d(w),y&&_(),p())}function l(t){o=t,d(w),w=[],O=e.indexOf(r,o)}function p(e){return{data:b,errors:R,meta:{delimiter:t,linebreak:r,aborted:u,truncated:!!e,cursor:S+(f||0)}}}function _(){i(p()),b=[],R=[]}if("string"!=typeof e)throw"Input must be a string";var g=e.length,m=t.length,v=r.length,k=n.length,y="function"==typeof i;o=0;var b=[],R=[],w=[],S=0;if(!e)return p();if(a||a!==!1&&-1===e.indexOf('"')){for(var E=e.split(r),C=0;C<E.length;C++){var w=E[C];if(o+=w.length,C!==E.length-1)o+=r.length;else if(h)return p();if(!n||w.substr(0,k)!=n){if(y){if(b=[],d(w.split(t)),_(),u)return p()}else d(w.split(t));if(s&&C>=s)return b=b.slice(0,s),p(!0)}}return p()}for(var x=e.indexOf(t,o),O=e.indexOf(r,o);;)if('"'!=e[o])if(n&&0===w.length&&e.substr(o,k)===n){if(-1==O)return p();o=O+v,O=e.indexOf(r,o),x=e.indexOf(t,o)}else if(-1!==x&&(O>x||-1===O))w.push(e.substring(o,x)),o=x+m,x=e.indexOf(t,o);else{if(-1===O)break;if(w.push(e.substring(o,O)),l(O+v),y&&(_(),u))return p();if(s&&b.length>=s)return p(!0)}else{var I=o;for(o++;;){var I=e.indexOf('"',I+1);if(-1===I)return h||R.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:b.length,index:o}),c();if(I===g-1){var D=e.substring(o,I).replace(/""/g,'"');return c(D)}if('"'!=e[I+1]){if(e[I+1]==t){w.push(e.substring(o,I).replace(/""/g,'"')),o=I+1+m,x=e.indexOf(t,o),O=e.indexOf(r,o);break}if(e.substr(I+1,v)===r){if(w.push(e.substring(o,I).replace(/""/g,'"')),l(I+1+v),x=e.indexOf(t,o),y&&(_(),u))return p();if(s&&b.length>=s)return p(!0);break}}else I++}}return c()},this.abort=function(){u=!0},this.getCharIndex=function(){return o}}function f(){var e=document.getElementsByTagName("script");return e.length?e[e.length-1].src:""}function h(){if(!w.WORKERS_SUPPORTED)return!1;if(!y&&null===w.SCRIPT_PATH)throw new Error("Script path cannot be determined automatically when Papa Parse is loaded asynchronously. You need to set Papa.SCRIPT_PATH manually.");var t=new e.Worker(w.SCRIPT_PATH||v);return t.onmessage=d,t.id=R++,b[t.id]=t,t}function d(e){var t=e.data,r=b[t.workerId],n=!1;if(t.error)r.userError(t.error,t.file);else if(t.results&&t.results.data){var i=function(){n=!0,c(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},s={abort:i,pause:l,resume:l};if(m(r.userStep)){for(var a=0;a<t.results.data.length&&(r.userStep({data:[t.results.data[a]],errors:t.results.errors,meta:t.results.meta},s),!n);a++);delete t.results}else m(r.userChunk)&&(r.userChunk(t.results,s,t.file),delete t.results)}t.finished&&!n&&c(t.workerId,t.results)}function c(e,t){var r=b[e];m(r.userComplete)&&r.userComplete(t),r.terminate(),delete b[e]}function l(){throw"Not implemented."}function p(t){var r=t.data;if("undefined"==typeof w.WORKER_ID&&r&&(w.WORKER_ID=r.workerId),"string"==typeof r.input)e.postMessage({workerId:w.WORKER_ID,results:w.parse(r.input,r.config),finished:!0});else if(e.File&&r.input instanceof File||r.input instanceof Object){var n=w.parse(r.input,r.config);n&&e.postMessage({workerId:w.WORKER_ID,results:n,finished:!0})}}function _(e){if("object"!=typeof e)return e;var t=e instanceof Array?[]:{};for(var r in e)t[r]=_(e[r]);return t}function g(e,t){return function(){e.apply(t,arguments)}}function m(e){return"function"==typeof e}var v,k=!e.document&&!!e.postMessage,y=!1,b={},R=0,w={};if(w.parse=t,w.unparse=r,w.RECORD_SEP=String.fromCharCode(30),w.UNIT_SEP=String.fromCharCode(31),w.BYTE_ORDER_MARK="",w.BAD_DELIMITERS=["\r","\n",'"',w.BYTE_ORDER_MARK],w.WORKERS_SUPPORTED=!!e.Worker,w.SCRIPT_PATH=null,w.LocalChunkSize=10485760,w.RemoteChunkSize=5242880,w.DefaultDelimiter=",",w.Parser=u,w.ParserHandle=o,w.NetworkStreamer=i,w.FileStreamer=s,w.StringStreamer=a,"undefined"!=typeof module&&module.exports?module.exports=w:m(e.define)&&e.define.amd?e.define(function(){return w}):e.Papa=w,e.jQuery){var S=e.jQuery;S.fn.parse=function(t){function r(){if(0==a.length)return void(m(t.complete)&&t.complete());var e=a[0];if(m(t.before)){var r=t.before(e.file,e.inputElem);if("object"==typeof r){if("abort"==r.action)return void n("AbortError",e.file,e.inputElem,r.reason);if("skip"==r.action)return void i();"object"==typeof r.config&&(e.instanceConfig=S.extend(e.instanceConfig,r.config))}else if("skip"==r)return void i()}var s=e.instanceConfig.complete;e.instanceConfig.complete=function(t){m(s)&&s(t,e.file,e.inputElem),i()},w.parse(e.file,e.instanceConfig)}function n(e,r,n,i){m(t.error)&&t.error({name:e},r,n,i)}function i(){a.splice(0,1),r()}var s=t.config||{},a=[];return this.each(function(){var t="INPUT"==S(this).prop("tagName").toUpperCase()&&"file"==S(this).attr("type").toLowerCase()&&e.FileReader;if(!t||!this.files||0==this.files.length)return!0;for(var r=0;r<this.files.length;r++)a.push({file:this.files[r],inputElem:this,instanceConfig:S.extend({},s)})}),r(),this}}k?e.onmessage=p:w.WORKERS_SUPPORTED&&(v=f(),document.body?document.addEventListener("DOMContentLoaded",function(){y=!0},!0):y=!0),i.prototype=Object.create(n.prototype),i.prototype.constructor=i,s.prototype=Object.create(n.prototype),s.prototype.constructor=s,a.prototype=Object.create(a.prototype),a.prototype.constructor=a}("undefined"!=typeof window?window:this);
33462
 
33463
  /***/ },
33464
+ /* 476 */
33465
  /***/ function(module, exports) {
33466
 
33467
  /*
33546
 
33547
 
33548
  /***/ },
33549
+ /* 477 */
33550
  /***/ function(module, exports, __webpack_require__) {
33551
 
33552
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [
33553
  __webpack_require__(278),
33554
  __webpack_require__(273),
33555
  __webpack_require__(274),
33556
+ __webpack_require__(474),
33557
  __webpack_require__(287)
33558
  ], __WEBPACK_AMD_DEFINE_RESULT__ = function (
33559
  _,
33720
 
33721
 
33722
  /***/ },
33723
+ /* 478 */
33724
  /***/ function(module, exports, __webpack_require__) {
33725
 
33726
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = function() {
assets/js/{admin_vendor.d75e484a.js → admin_vendor.ad6d7a22.js} RENAMED
File without changes
assets/js/{form_editor.1f90e137.js → form_editor.4902de9a.js} RENAMED
@@ -3,22 +3,22 @@ webpackJsonp([2],{
3
  /***/ 0:
4
  /***/ function(module, exports, __webpack_require__) {
5
 
6
- __webpack_require__(475);
7
- __webpack_require__(477);
8
- module.exports = __webpack_require__(479);
9
 
10
 
11
  /***/ },
12
 
13
- /***/ 475:
14
  /***/ function(module, exports, __webpack_require__) {
15
 
16
- /* WEBPACK VAR INJECTION */(function(global) {module.exports = global["WysijaForm"] = __webpack_require__(476);
17
  /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))
18
 
19
  /***/ },
20
 
21
- /***/ 476:
22
  /***/ function(module, exports) {
23
 
24
  /*
@@ -1089,15 +1089,15 @@ webpackJsonp([2],{
1089
 
1090
  /***/ },
1091
 
1092
- /***/ 477:
1093
  /***/ function(module, exports, __webpack_require__) {
1094
 
1095
- /* WEBPACK VAR INJECTION */(function(global) {module.exports = global["CodeMirror"] = __webpack_require__(478);
1096
  /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))
1097
 
1098
  /***/ },
1099
 
1100
- /***/ 478:
1101
  /***/ function(module, exports, __webpack_require__) {
1102
 
1103
  // CodeMirror, copyright (c) by Marijn Haverbeke and others
@@ -2700,7 +2700,7 @@ webpackJsonp([2],{
2700
 
2701
  Context.fromSaved = function (doc, saved, line) {
2702
  if (saved instanceof SavedContext)
2703
- { return new Context(doc, copyState(doc.mode, saved.saved), line, saved.lookAhead) }
2704
  else
2705
  { return new Context(doc, copyState(doc.mode, saved), line) }
2706
  };
@@ -4344,7 +4344,7 @@ webpackJsonp([2],{
4344
  }
4345
  var diff = cur.line.height - height;
4346
  if (height < 2) { height = textHeight(display); }
4347
- if (diff > .001 || diff < -.001) {
4348
  updateLineHeight(cur.line, height);
4349
  updateWidgetHeight(cur.line);
4350
  if (cur.rest) { for (var j = 0; j < cur.rest.length; j++)
@@ -4451,6 +4451,13 @@ webpackJsonp([2],{
4451
  function scrollPosIntoView(cm, pos, end, margin) {
4452
  if (margin == null) { margin = 0; }
4453
  var rect;
 
 
 
 
 
 
 
4454
  for (var limit = 0; limit < 5; limit++) {
4455
  var changed = false;
4456
  var coords = cursorCoords(cm, pos);
@@ -4525,12 +4532,8 @@ webpackJsonp([2],{
4525
  // shown.
4526
  function ensureCursorVisible(cm) {
4527
  resolveScrollToPos(cm);
4528
- var cur = cm.getCursor(), from = cur, to = cur;
4529
- if (!cm.options.lineWrapping) {
4530
- from = cur.ch ? Pos(cur.line, cur.ch - 1) : cur;
4531
- to = Pos(cur.line, cur.ch + 1);
4532
- }
4533
- cm.curOp.scrollToPos = {from: from, to: to, margin: cm.options.cursorScrollMargin};
4534
  }
4535
 
4536
  function scrollToCoords(cm, x, y) {
@@ -10594,7 +10597,7 @@ webpackJsonp([2],{
10594
 
10595
  addLegacyProps(CodeMirror$1);
10596
 
10597
- CodeMirror$1.version = "5.27.2";
10598
 
10599
  return CodeMirror$1;
10600
 
@@ -10603,7 +10606,7 @@ webpackJsonp([2],{
10603
 
10604
  /***/ },
10605
 
10606
- /***/ 479:
10607
  /***/ function(module, exports, __webpack_require__) {
10608
 
10609
  // CodeMirror, copyright (c) by Marijn Haverbeke and others
@@ -10611,7 +10614,7 @@ webpackJsonp([2],{
10611
 
10612
  (function(mod) {
10613
  if (true) // CommonJS
10614
- mod(__webpack_require__(477));
10615
  else if (typeof define == "function" && define.amd) // AMD
10616
  define(["../../lib/codemirror"], mod);
10617
  else // Plain browser env
3
  /***/ 0:
4
  /***/ function(module, exports, __webpack_require__) {
5
 
6
+ __webpack_require__(479);
7
+ __webpack_require__(481);
8
+ module.exports = __webpack_require__(483);
9
 
10
 
11
  /***/ },
12
 
13
+ /***/ 479:
14
  /***/ function(module, exports, __webpack_require__) {
15
 
16
+ /* WEBPACK VAR INJECTION */(function(global) {module.exports = global["WysijaForm"] = __webpack_require__(480);
17
  /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))
18
 
19
  /***/ },
20
 
21
+ /***/ 480:
22
  /***/ function(module, exports) {
23
 
24
  /*
1089
 
1090
  /***/ },
1091
 
1092
+ /***/ 481:
1093
  /***/ function(module, exports, __webpack_require__) {
1094
 
1095
+ /* WEBPACK VAR INJECTION */(function(global) {module.exports = global["CodeMirror"] = __webpack_require__(482);
1096
  /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))
1097
 
1098
  /***/ },
1099
 
1100
+ /***/ 482:
1101
  /***/ function(module, exports, __webpack_require__) {
1102
 
1103
  // CodeMirror, copyright (c) by Marijn Haverbeke and others
2700
 
2701
  Context.fromSaved = function (doc, saved, line) {
2702
  if (saved instanceof SavedContext)
2703
+ { return new Context(doc, copyState(doc.mode, saved.state), line, saved.lookAhead) }
2704
  else
2705
  { return new Context(doc, copyState(doc.mode, saved), line) }
2706
  };
4344
  }
4345
  var diff = cur.line.height - height;
4346
  if (height < 2) { height = textHeight(display); }
4347
+ if (diff > .005 || diff < -.005) {
4348
  updateLineHeight(cur.line, height);
4349
  updateWidgetHeight(cur.line);
4350
  if (cur.rest) { for (var j = 0; j < cur.rest.length; j++)
4451
  function scrollPosIntoView(cm, pos, end, margin) {
4452
  if (margin == null) { margin = 0; }
4453
  var rect;
4454
+ if (!cm.options.lineWrapping && pos == end) {
4455
+ // Set pos and end to the cursor positions around the character pos sticks to
4456
+ // If pos.sticky == "before", that is around pos.ch - 1, otherwise around pos.ch
4457
+ // If pos == Pos(_, 0, "before"), pos and end are unchanged
4458
+ pos = pos.ch ? Pos(pos.line, pos.sticky == "before" ? pos.ch - 1 : pos.ch, "after") : pos;
4459
+ end = pos.sticky == "before" ? Pos(pos.line, pos.ch + 1, "before") : pos;
4460
+ }
4461
  for (var limit = 0; limit < 5; limit++) {
4462
  var changed = false;
4463
  var coords = cursorCoords(cm, pos);
4532
  // shown.
4533
  function ensureCursorVisible(cm) {
4534
  resolveScrollToPos(cm);
4535
+ var cur = cm.getCursor();
4536
+ cm.curOp.scrollToPos = {from: cur, to: cur, margin: cm.options.cursorScrollMargin};
 
 
 
 
4537
  }
4538
 
4539
  function scrollToCoords(cm, x, y) {
10597
 
10598
  addLegacyProps(CodeMirror$1);
10599
 
10600
+ CodeMirror$1.version = "5.27.4";
10601
 
10602
  return CodeMirror$1;
10603
 
10606
 
10607
  /***/ },
10608
 
10609
+ /***/ 483:
10610
  /***/ function(module, exports, __webpack_require__) {
10611
 
10612
  // CodeMirror, copyright (c) by Marijn Haverbeke and others
10614
 
10615
  (function(mod) {
10616
  if (true) // CommonJS
10617
+ mod(__webpack_require__(481));
10618
  else if (typeof define == "function" && define.amd) // AMD
10619
  define(["../../lib/codemirror"], mod);
10620
  else // Plain browser env
assets/js/{mailpoet.8f856096.js → mailpoet.684f3a3c.js} RENAMED
@@ -3,15 +3,15 @@ webpackJsonp([3],[
3
  /***/ function(module, exports, __webpack_require__) {
4
 
5
  __webpack_require__(274);
6
- __webpack_require__(480);
7
- __webpack_require__(481);
8
- __webpack_require__(482);
9
- __webpack_require__(483);
10
  __webpack_require__(484);
11
  __webpack_require__(485);
12
  __webpack_require__(486);
13
  __webpack_require__(487);
14
- module.exports = __webpack_require__(488);
 
 
 
 
15
 
16
 
17
  /***/ },
@@ -17770,87 +17770,102 @@ webpackJsonp([3],[
17770
  /* 477 */,
17771
  /* 478 */,
17772
  /* 479 */,
17773
- /* 480 */
 
 
 
 
17774
  /***/ function(module, exports, __webpack_require__) {
17775
 
17776
- var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(274), __webpack_require__(273), __webpack_require__(278)], __WEBPACK_AMD_DEFINE_RESULT__ = function(MailPoet, jQuery, _) {
17777
- 'use strict';
17778
- MailPoet.Ajax = {
17779
- version: 0.5,
17780
- options: {},
17781
- defaults: {
17782
- url: null,
17783
- api_version: null,
17784
- endpoint: null,
17785
- action: null,
17786
- token: null,
17787
- data: {}
17788
- },
17789
- post: function(options) {
17790
- return this.request('post', options);
17791
- },
17792
- init: function(options) {
17793
- // merge options
17794
- this.options = jQuery.extend({}, this.defaults, options);
17795
-
17796
- // set default url
17797
- if(this.options.url === null) {
17798
- this.options.url = ajaxurl;
17799
- }
17800
-
17801
- // set default token
17802
- if(this.options.token === null) {
17803
- this.options.token = window.mailpoet_token;
17804
- }
17805
- },
17806
- getParams: function() {
17807
- return {
17808
- action: 'mailpoet',
17809
- api_version: this.options.api_version,
17810
- token: this.options.token,
17811
- endpoint: this.options.endpoint,
17812
- method: this.options.action,
17813
- data: this.options.data || {}
17814
- }
17815
- },
17816
- request: function(method, options) {
17817
- // set options
17818
- this.init(options);
17819
-
17820
- // set request params
17821
- var params = this.getParams();
17822
- var deferred = jQuery.Deferred();
17823
-
17824
- // remove null values from the data object
17825
- if (_.isObject(params.data)) {
17826
- params.data = _.pick(params.data, function(value) {
17827
- return (value !== null)
17828
- })
17829
- }
17830
-
17831
- // ajax request
17832
- deferred = jQuery.post(
17833
- this.options.url,
17834
- params,
17835
- null,
17836
- 'json'
17837
- ).then(function(data) {
17838
- return data;
17839
- }, function(xhr) {
17840
- return xhr.responseJSON;
17841
- });
17842
-
17843
- // clear options
17844
- this.options = {};
17845
-
17846
- return deferred;
17847
- }
17848
- };
17849
- }.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
 
 
 
 
 
 
 
 
 
 
 
17850
 
17851
 
17852
  /***/ },
17853
- /* 481 */
17854
  /***/ function(module, exports, __webpack_require__) {
17855
 
17856
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [
@@ -18021,7 +18036,7 @@ webpackJsonp([3],[
18021
 
18022
 
18023
  /***/ },
18024
- /* 482 */
18025
  /***/ function(module, exports, __webpack_require__) {
18026
 
18027
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [
@@ -18049,7 +18064,7 @@ webpackJsonp([3],[
18049
 
18050
 
18051
  /***/ },
18052
- /* 483 */
18053
  /***/ function(module, exports, __webpack_require__) {
18054
 
18055
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(274), __webpack_require__(273)], __WEBPACK_AMD_DEFINE_RESULT__ = function(MailPoet, jQuery) {
@@ -18696,7 +18711,7 @@ webpackJsonp([3],[
18696
 
18697
 
18698
  /***/ },
18699
- /* 484 */
18700
  /***/ function(module, exports, __webpack_require__) {
18701
 
18702
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(274), __webpack_require__(273)], __WEBPACK_AMD_DEFINE_RESULT__ = function(MailPoet, jQuery) {
@@ -18917,7 +18932,7 @@ webpackJsonp([3],[
18917
 
18918
 
18919
  /***/ },
18920
- /* 485 */
18921
  /***/ function(module, exports, __webpack_require__) {
18922
 
18923
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [
@@ -18943,7 +18958,7 @@ webpackJsonp([3],[
18943
 
18944
 
18945
  /***/ },
18946
- /* 486 */
18947
  /***/ function(module, exports, __webpack_require__) {
18948
 
18949
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [
@@ -19052,7 +19067,7 @@ webpackJsonp([3],[
19052
  }.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
19053
 
19054
  /***/ },
19055
- /* 487 */
19056
  /***/ function(module, exports, __webpack_require__) {
19057
 
19058
  /* WEBPACK VAR INJECTION */(function(global) {/*!
@@ -21521,7 +21536,7 @@ webpackJsonp([3],[
21521
  /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))
21522
 
21523
  /***/ },
21524
- /* 488 */
21525
  /***/ function(module, exports, __webpack_require__) {
21526
 
21527
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*
3
  /***/ function(module, exports, __webpack_require__) {
4
 
5
  __webpack_require__(274);
 
 
 
 
6
  __webpack_require__(484);
7
  __webpack_require__(485);
8
  __webpack_require__(486);
9
  __webpack_require__(487);
10
+ __webpack_require__(488);
11
+ __webpack_require__(489);
12
+ __webpack_require__(490);
13
+ __webpack_require__(491);
14
+ module.exports = __webpack_require__(492);
15
 
16
 
17
  /***/ },
17770
  /* 477 */,
17771
  /* 478 */,
17772
  /* 479 */,
17773
+ /* 480 */,
17774
+ /* 481 */,
17775
+ /* 482 */,
17776
+ /* 483 */,
17777
+ /* 484 */
17778
  /***/ function(module, exports, __webpack_require__) {
17779
 
17780
+ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;function requestFailed(errorMessage, xhr) {
17781
+ if (xhr.responseJSON) {
17782
+ return xhr.responseJSON;
17783
+ }
17784
+ var message = errorMessage.replace("%d", xhr.status);
17785
+ return {
17786
+ errors: [
17787
+ {
17788
+ message: message
17789
+ }
17790
+ ]
17791
+ }
17792
+ }
17793
+
17794
+ !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(274), __webpack_require__(273), __webpack_require__(278)], __WEBPACK_AMD_DEFINE_RESULT__ = function(MailPoet, jQuery, _) {
17795
+
17796
+ MailPoet.Ajax = {
17797
+ version: 0.5,
17798
+ options: {},
17799
+ defaults: {
17800
+ url: null,
17801
+ api_version: null,
17802
+ endpoint: null,
17803
+ action: null,
17804
+ token: null,
17805
+ data: {}
17806
+ },
17807
+ post: function(options) {
17808
+ return this.request('post', options);
17809
+ },
17810
+ init: function(options) {
17811
+ // merge options
17812
+ this.options = jQuery.extend({}, this.defaults, options);
17813
+
17814
+ // set default url
17815
+ if(this.options.url === null) {
17816
+ this.options.url = ajaxurl;
17817
+ }
17818
+
17819
+ // set default token
17820
+ if(this.options.token === null) {
17821
+ this.options.token = window.mailpoet_token;
17822
+ }
17823
+ },
17824
+ getParams: function() {
17825
+ return {
17826
+ action: 'mailpoet',
17827
+ api_version: this.options.api_version,
17828
+ token: this.options.token,
17829
+ endpoint: this.options.endpoint,
17830
+ method: this.options.action,
17831
+ data: this.options.data || {}
17832
+ }
17833
+ },
17834
+ request: function(method, options) {
17835
+ // set options
17836
+ this.init(options);
17837
+
17838
+ // set request params
17839
+ var params = this.getParams();
17840
+
17841
+ // remove null values from the data object
17842
+ if (_.isObject(params.data)) {
17843
+ params.data = _.pick(params.data, function(value) {
17844
+ return (value !== null)
17845
+ })
17846
+ }
17847
+
17848
+ // ajax request
17849
+ var deferred = jQuery.post(
17850
+ this.options.url,
17851
+ params,
17852
+ null,
17853
+ 'json'
17854
+ ).then(function(data) {
17855
+ return data;
17856
+ }, _.partial(requestFailed, MailPoet.I18n.t('ajaxFailedErrorMessage')));
17857
+
17858
+ // clear options
17859
+ this.options = {};
17860
+
17861
+ return deferred;
17862
+ }
17863
+ };
17864
+ }.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
17865
 
17866
 
17867
  /***/ },
17868
+ /* 485 */
17869
  /***/ function(module, exports, __webpack_require__) {
17870
 
17871
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [
18036
 
18037
 
18038
  /***/ },
18039
+ /* 486 */
18040
  /***/ function(module, exports, __webpack_require__) {
18041
 
18042
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [
18064
 
18065
 
18066
  /***/ },
18067
+ /* 487 */
18068
  /***/ function(module, exports, __webpack_require__) {
18069
 
18070
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(274), __webpack_require__(273)], __WEBPACK_AMD_DEFINE_RESULT__ = function(MailPoet, jQuery) {
18711
 
18712
 
18713
  /***/ },
18714
+ /* 488 */
18715
  /***/ function(module, exports, __webpack_require__) {
18716
 
18717
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(274), __webpack_require__(273)], __WEBPACK_AMD_DEFINE_RESULT__ = function(MailPoet, jQuery) {
18932
 
18933
 
18934
  /***/ },
18935
+ /* 489 */
18936
  /***/ function(module, exports, __webpack_require__) {
18937
 
18938
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [
18958
 
18959
 
18960
  /***/ },
18961
+ /* 490 */
18962
  /***/ function(module, exports, __webpack_require__) {
18963
 
18964
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [
19067
  }.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
19068
 
19069
  /***/ },
19070
+ /* 491 */
19071
  /***/ function(module, exports, __webpack_require__) {
19072
 
19073
  /* WEBPACK VAR INJECTION */(function(global) {/*!
21536
  /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))
21537
 
21538
  /***/ },
21539
+ /* 492 */
21540
  /***/ function(module, exports, __webpack_require__) {
21541
 
21542
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*
assets/js/manifest.json CHANGED
@@ -1,10 +1,10 @@
1
  {
2
- "mp2migrator.js": "mp2migrator.f2f36174.js",
3
- "public.js": "public.84aece05.js",
4
- "admin.js": "admin.5cdc4c05.js",
5
- "admin_vendor.js": "admin_vendor.d75e484a.js",
6
- "form_editor.js": "form_editor.1f90e137.js",
7
- "mailpoet.js": "mailpoet.8f856096.js",
8
- "newsletter_editor.js": "newsletter_editor.ae63e604.js",
9
- "vendor.js": "vendor.6d57818a.js"
10
  }
1
  {
2
+ "mp2migrator.js": "mp2migrator.3f76aefe.js",
3
+ "public.js": "public.2ca16875.js",
4
+ "admin.js": "admin.080e0640.js",
5
+ "admin_vendor.js": "admin_vendor.ad6d7a22.js",
6
+ "form_editor.js": "form_editor.4902de9a.js",
7
+ "mailpoet.js": "mailpoet.684f3a3c.js",
8
+ "newsletter_editor.js": "newsletter_editor.e810c798.js",
9
+ "vendor.js": "vendor.25e2ce6a.js"
10
  }
assets/js/{mp2migrator.f2f36174.js → mp2migrator.3f76aefe.js} RENAMED
@@ -114,7 +114,7 @@
114
  }
115
  jQuery('#progressbar').progressbar('option', 'value', progress);
116
  jQuery('#progresslabel').html(progress + '%');
117
- if(Number(result.current !== 0)) {
118
  jQuery('#skip-import').hide();
119
  }
120
  if(MailPoet.MP2Migrator.is_logging) {
114
  }
115
  jQuery('#progressbar').progressbar('option', 'value', progress);
116
  jQuery('#progresslabel').html(progress + '%');
117
+ if(Number(result.current) !== 0) {
118
  jQuery('#skip-import').hide();
119
  }
120
  if(MailPoet.MP2Migrator.is_logging) {
assets/js/{newsletter_editor.ae63e604.js → newsletter_editor.e810c798.js} RENAMED
@@ -1,13 +1,13 @@
1
  webpackJsonp([4],{
2
 
3
- /***/ 506:
4
  /***/ function(module, exports, __webpack_require__) {
5
 
6
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [
7
- __webpack_require__(501),
8
  __webpack_require__(278),
9
  __webpack_require__(274),
10
- __webpack_require__(480)
11
  ], __WEBPACK_AMD_DEFINE_RESULT__ = function(App, _, MailPoet) {
12
 
13
  var Module = {};
@@ -119,29 +119,25 @@ webpackJsonp([4],{
119
 
120
  __webpack_require__(278);
121
  __webpack_require__(466);
122
- __webpack_require__(489);
123
- __webpack_require__(491);
124
- __webpack_require__(492);
125
- __webpack_require__(490);
126
- __webpack_require__(287);
127
  __webpack_require__(493);
128
- __webpack_require__(494);
129
  __webpack_require__(495);
130
  __webpack_require__(496);
 
 
 
 
131
  __webpack_require__(499);
132
  __webpack_require__(500);
133
- __webpack_require__(501);
134
  __webpack_require__(503);
135
  __webpack_require__(504);
136
  __webpack_require__(505);
137
  __webpack_require__(507);
138
  __webpack_require__(508);
139
  __webpack_require__(509);
140
- __webpack_require__(506);
141
  __webpack_require__(512);
142
  __webpack_require__(513);
143
- __webpack_require__(514);
144
- __webpack_require__(515);
145
  __webpack_require__(516);
146
  __webpack_require__(517);
147
  __webpack_require__(518);
@@ -158,7 +154,11 @@ webpackJsonp([4],{
158
  __webpack_require__(529);
159
  __webpack_require__(530);
160
  __webpack_require__(531);
161
- module.exports = __webpack_require__(532);
 
 
 
 
162
 
163
 
164
  /***/ },
@@ -9410,88 +9410,99 @@ webpackJsonp([4],{
9410
 
9411
  /***/ },
9412
 
9413
- /***/ 480:
9414
  /***/ function(module, exports, __webpack_require__) {
9415
 
9416
- var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(274), __webpack_require__(273), __webpack_require__(278)], __WEBPACK_AMD_DEFINE_RESULT__ = function(MailPoet, jQuery, _) {
9417
- 'use strict';
9418
- MailPoet.Ajax = {
9419
- version: 0.5,
9420
- options: {},
9421
- defaults: {
9422
- url: null,
9423
- api_version: null,
9424
- endpoint: null,
9425
- action: null,
9426
- token: null,
9427
- data: {}
9428
- },
9429
- post: function(options) {
9430
- return this.request('post', options);
9431
- },
9432
- init: function(options) {
9433
- // merge options
9434
- this.options = jQuery.extend({}, this.defaults, options);
9435
-
9436
- // set default url
9437
- if(this.options.url === null) {
9438
- this.options.url = ajaxurl;
9439
- }
9440
-
9441
- // set default token
9442
- if(this.options.token === null) {
9443
- this.options.token = window.mailpoet_token;
9444
- }
9445
- },
9446
- getParams: function() {
9447
- return {
9448
- action: 'mailpoet',
9449
- api_version: this.options.api_version,
9450
- token: this.options.token,
9451
- endpoint: this.options.endpoint,
9452
- method: this.options.action,
9453
- data: this.options.data || {}
9454
- }
9455
- },
9456
- request: function(method, options) {
9457
- // set options
9458
- this.init(options);
9459
-
9460
- // set request params
9461
- var params = this.getParams();
9462
- var deferred = jQuery.Deferred();
9463
-
9464
- // remove null values from the data object
9465
- if (_.isObject(params.data)) {
9466
- params.data = _.pick(params.data, function(value) {
9467
- return (value !== null)
9468
- })
9469
- }
9470
-
9471
- // ajax request
9472
- deferred = jQuery.post(
9473
- this.options.url,
9474
- params,
9475
- null,
9476
- 'json'
9477
- ).then(function(data) {
9478
- return data;
9479
- }, function(xhr) {
9480
- return xhr.responseJSON;
9481
- });
9482
-
9483
- // clear options
9484
- this.options = {};
9485
-
9486
- return deferred;
9487
- }
9488
- };
9489
- }.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
 
 
 
 
 
 
 
 
 
 
 
9490
 
9491
 
9492
  /***/ },
9493
 
9494
- /***/ 483:
9495
  /***/ function(module, exports, __webpack_require__) {
9496
 
9497
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(274), __webpack_require__(273)], __WEBPACK_AMD_DEFINE_RESULT__ = function(MailPoet, jQuery) {
@@ -10139,7 +10150,7 @@ webpackJsonp([4],{
10139
 
10140
  /***/ },
10141
 
10142
- /***/ 484:
10143
  /***/ function(module, exports, __webpack_require__) {
10144
 
10145
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(274), __webpack_require__(273)], __WEBPACK_AMD_DEFINE_RESULT__ = function(MailPoet, jQuery) {
@@ -10361,7 +10372,7 @@ webpackJsonp([4],{
10361
 
10362
  /***/ },
10363
 
10364
- /***/ 489:
10365
  /***/ function(module, exports, __webpack_require__) {
10366
 
10367
  // MarionetteJS (Backbone.Marionette)
@@ -10375,7 +10386,7 @@ webpackJsonp([4],{
10375
 
10376
 
10377
  (function (global, factory) {
10378
- true ? module.exports = factory(__webpack_require__(466), __webpack_require__(278), __webpack_require__(490)) :
10379
  typeof define === 'function' && define.amd ? define(['backbone', 'underscore', 'backbone.radio'], factory) :
10380
  (global.Marionette = global['Mn'] = factory(global.Backbone,global._,global.Backbone.Radio));
10381
  }(this, (function (Backbone,_,Radio) { 'use strict';
@@ -13856,7 +13867,7 @@ webpackJsonp([4],{
13856
 
13857
  /***/ },
13858
 
13859
- /***/ 490:
13860
  /***/ function(module, exports, __webpack_require__) {
13861
 
13862
  // Backbone.Radio v2.0.0
@@ -14212,7 +14223,7 @@ webpackJsonp([4],{
14212
 
14213
  /***/ },
14214
 
14215
- /***/ 491:
14216
  /***/ function(module, exports) {
14217
 
14218
  Backbone.SuperModel = (function(_, Backbone){
@@ -14635,7 +14646,7 @@ webpackJsonp([4],{
14635
 
14636
  /***/ },
14637
 
14638
- /***/ 492:
14639
  /***/ function(module, exports, __webpack_require__) {
14640
 
14641
  /**
@@ -20619,7 +20630,7 @@ webpackJsonp([4],{
20619
 
20620
  /***/ },
20621
 
20622
- /***/ 493:
20623
  /***/ function(module, exports, __webpack_require__) {
20624
 
20625
  var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// Spectrum Colorpicker v1.8.0
@@ -22949,7 +22960,7 @@ webpackJsonp([4],{
22949
 
22950
  /***/ },
22951
 
22952
- /***/ 494:
22953
  /***/ function(module, exports) {
22954
 
22955
  // Generated by CoffeeScript 1.9.2
@@ -23220,7 +23231,7 @@ webpackJsonp([4],{
23220
 
23221
  /***/ },
23222
 
23223
- /***/ 495:
23224
  /***/ function(module, exports) {
23225
 
23226
  /* Blob.js
@@ -23441,7 +23452,7 @@ webpackJsonp([4],{
23441
 
23442
  /***/ },
23443
 
23444
- /***/ 496:
23445
  /***/ function(module, exports, __webpack_require__) {
23446
 
23447
  var __WEBPACK_AMD_DEFINE_RESULT__;/* FileSaver.js
@@ -23627,7 +23638,7 @@ webpackJsonp([4],{
23627
 
23628
  if (typeof module !== "undefined" && module.exports) {
23629
  module.exports.saveAs = saveAs;
23630
- } else if (("function" !== "undefined" && __webpack_require__(497) !== null) && (__webpack_require__(498) !== null)) {
23631
  !(__WEBPACK_AMD_DEFINE_RESULT__ = function() {
23632
  return saveAs;
23633
  }.call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
@@ -23636,7 +23647,7 @@ webpackJsonp([4],{
23636
 
23637
  /***/ },
23638
 
23639
- /***/ 497:
23640
  /***/ function(module, exports) {
23641
 
23642
  module.exports = function() { throw new Error("define cannot be used indirect"); };
@@ -23644,7 +23655,7 @@ webpackJsonp([4],{
23644
 
23645
  /***/ },
23646
 
23647
- /***/ 498:
23648
  /***/ function(module, exports) {
23649
 
23650
  /* WEBPACK VAR INJECTION */(function(__webpack_amd_options__) {module.exports = __webpack_amd_options__;
@@ -23653,7 +23664,7 @@ webpackJsonp([4],{
23653
 
23654
  /***/ },
23655
 
23656
- /***/ 499:
23657
  /***/ function(module, exports, __webpack_require__) {
23658
 
23659
  var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;/*** IMPORTS FROM imports-loader ***/
@@ -27549,7 +27560,7 @@ webpackJsonp([4],{
27549
 
27550
  /***/ },
27551
 
27552
- /***/ 500:
27553
  /***/ function(module, exports, __webpack_require__) {
27554
 
27555
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**
@@ -27562,7 +27573,7 @@ webpackJsonp([4],{
27562
 
27563
  (function(root, factory) {
27564
  if (true) {
27565
- !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(489), __webpack_require__(490), __webpack_require__(278)], __WEBPACK_AMD_DEFINE_RESULT__ = function(Marionette, Radio, _) {
27566
  return factory(Marionette, Radio, _);
27567
  }.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
27568
  }
@@ -27587,17 +27598,17 @@ webpackJsonp([4],{
27587
 
27588
  /***/ },
27589
 
27590
- /***/ 501:
27591
  /***/ function(module, exports, __webpack_require__) {
27592
 
27593
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [
27594
  __webpack_require__(466),
27595
- __webpack_require__(489),
27596
- __webpack_require__(490),
27597
  __webpack_require__(273),
27598
  __webpack_require__(278),
27599
- __webpack_require__(470),
27600
- __webpack_require__(502)
27601
  ], __WEBPACK_AMD_DEFINE_RESULT__ = function(Backbone, Marionette, Radio, jQuery, _, Handlebars) {
27602
 
27603
  var AppView = Marionette.View.extend({
@@ -27635,12 +27646,12 @@ webpackJsonp([4],{
27635
 
27636
  /***/ },
27637
 
27638
- /***/ 503:
27639
  /***/ function(module, exports, __webpack_require__) {
27640
 
27641
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [
27642
- __webpack_require__(501),
27643
- __webpack_require__(491)
27644
  ], __WEBPACK_AMD_DEFINE_RESULT__ = function(App, SuperModel) {
27645
 
27646
  var Module = {};
@@ -27678,13 +27689,13 @@ webpackJsonp([4],{
27678
 
27679
  /***/ },
27680
 
27681
- /***/ 504:
27682
  /***/ function(module, exports, __webpack_require__) {
27683
 
27684
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [
27685
- __webpack_require__(501),
27686
- __webpack_require__(489),
27687
- __webpack_require__(491)
27688
  ], __WEBPACK_AMD_DEFINE_RESULT__ = function(App, Marionette, SuperModel) {
27689
 
27690
  "use strict";
@@ -27773,19 +27784,19 @@ webpackJsonp([4],{
27773
 
27774
  /***/ },
27775
 
27776
- /***/ 505:
27777
  /***/ function(module, exports, __webpack_require__) {
27778
 
27779
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [
27780
- __webpack_require__(501),
27781
- __webpack_require__(506),
27782
  __webpack_require__(274),
27783
  __webpack_require__(466),
27784
- __webpack_require__(489),
27785
- __webpack_require__(491),
27786
  __webpack_require__(278),
27787
  __webpack_require__(273),
27788
- __webpack_require__(494)
27789
  ], __WEBPACK_AMD_DEFINE_RESULT__ = function(
27790
  App,
27791
  CommunicationComponent,
@@ -28157,12 +28168,12 @@ webpackJsonp([4],{
28157
 
28158
  /***/ },
28159
 
28160
- /***/ 507:
28161
  /***/ function(module, exports, __webpack_require__) {
28162
 
28163
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [
28164
- __webpack_require__(501),
28165
- __webpack_require__(491),
28166
  __webpack_require__(278),
28167
  __webpack_require__(274)
28168
  ], __WEBPACK_AMD_DEFINE_RESULT__ = function(App, SuperModel, _, MailPoet) {
@@ -28269,13 +28280,13 @@ webpackJsonp([4],{
28269
 
28270
  /***/ },
28271
 
28272
- /***/ 508:
28273
  /***/ function(module, exports, __webpack_require__) {
28274
 
28275
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [
28276
- __webpack_require__(501),
28277
  __webpack_require__(466),
28278
- __webpack_require__(489),
28279
  __webpack_require__(278),
28280
  __webpack_require__(273)
28281
  ], __WEBPACK_AMD_DEFINE_RESULT__ = function(App, Backbone, Marionette, _, jQuery) {
@@ -28312,20 +28323,20 @@ webpackJsonp([4],{
28312
 
28313
  /***/ },
28314
 
28315
- /***/ 509:
28316
  /***/ function(module, exports, __webpack_require__) {
28317
 
28318
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [
28319
- __webpack_require__(501),
28320
- __webpack_require__(506),
28321
  __webpack_require__(274),
28322
- __webpack_require__(484),
28323
  __webpack_require__(466),
28324
- __webpack_require__(489),
28325
  __webpack_require__(273),
28326
- __webpack_require__(495),
28327
- __webpack_require__(496),
28328
- __webpack_require__(510)
28329
  ], __WEBPACK_AMD_DEFINE_RESULT__ = function(
28330
  App,
28331
  CommunicationComponent,
@@ -28678,15 +28689,15 @@ webpackJsonp([4],{
28678
 
28679
  /***/ },
28680
 
28681
- /***/ 510:
28682
  /***/ function(module, exports, __webpack_require__) {
28683
 
28684
- /* WEBPACK VAR INJECTION */(function(global) {module.exports = global["html2canvas"] = __webpack_require__(511);
28685
  /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))
28686
 
28687
  /***/ },
28688
 
28689
- /***/ 511:
28690
  /***/ function(module, exports, __webpack_require__) {
28691
 
28692
  var require;var require;/* WEBPACK VAR INJECTION */(function(global) {/*
@@ -33227,7 +33238,7 @@ webpackJsonp([4],{
33227
 
33228
  /***/ },
33229
 
33230
- /***/ 512:
33231
  /***/ function(module, exports, __webpack_require__) {
33232
 
33233
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**
@@ -33237,7 +33248,7 @@ webpackJsonp([4],{
33237
  * For more check: http://marionettejs.com/docs/marionette.behaviors.html#behaviorslookup
33238
  */
33239
  !(__WEBPACK_AMD_DEFINE_ARRAY__ = [
33240
- __webpack_require__(489)
33241
  ], __WEBPACK_AMD_DEFINE_RESULT__ = function(Marionette) {
33242
 
33243
  var BehaviorsLookup = {};
@@ -33253,7 +33264,7 @@ webpackJsonp([4],{
33253
 
33254
  /***/ },
33255
 
33256
- /***/ 513:
33257
  /***/ function(module, exports, __webpack_require__) {
33258
 
33259
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**
@@ -33262,10 +33273,10 @@ webpackJsonp([4],{
33262
  * Adds a color picker integration with the view
33263
  */
33264
  !(__WEBPACK_AMD_DEFINE_ARRAY__ = [
33265
- __webpack_require__(489),
33266
- __webpack_require__(512),
33267
  __webpack_require__(274),
33268
- __webpack_require__(493)
33269
  ], __WEBPACK_AMD_DEFINE_RESULT__ = function(Marionette, BehaviorsLookup, MailPoet, Spectrum) {
33270
 
33271
  BehaviorsLookup.ColorPickerBehavior = Marionette.Behavior.extend({
@@ -33286,7 +33297,7 @@ webpackJsonp([4],{
33286
 
33287
  /***/ },
33288
 
33289
- /***/ 514:
33290
  /***/ function(module, exports, __webpack_require__) {
33291
 
33292
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**
@@ -33297,11 +33308,11 @@ webpackJsonp([4],{
33297
  * accept droppables
33298
  */
33299
  !(__WEBPACK_AMD_DEFINE_ARRAY__ = [
33300
- __webpack_require__(489),
33301
  __webpack_require__(278),
33302
  __webpack_require__(273),
33303
- __webpack_require__(512),
33304
- __webpack_require__(492)
33305
  ], __WEBPACK_AMD_DEFINE_RESULT__ = function(Marionette, _, jQuery, BehaviorsLookup, interact) {
33306
 
33307
  BehaviorsLookup.ContainerDropZoneBehavior = Marionette.Behavior.extend({
@@ -33732,7 +33743,7 @@ webpackJsonp([4],{
33732
 
33733
  /***/ },
33734
 
33735
- /***/ 515:
33736
  /***/ function(module, exports, __webpack_require__) {
33737
 
33738
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**
@@ -33742,11 +33753,11 @@ webpackJsonp([4],{
33742
  * Part of the drag&drop behavior.
33743
  */
33744
  !(__WEBPACK_AMD_DEFINE_ARRAY__ = [
33745
- __webpack_require__(489),
33746
  __webpack_require__(278),
33747
  __webpack_require__(273),
33748
- __webpack_require__(512),
33749
- __webpack_require__(492)
33750
  ], __WEBPACK_AMD_DEFINE_RESULT__ = function(Marionette, _, jQuery, BehaviorsLookup, interact) {
33751
 
33752
  BehaviorsLookup.DraggableBehavior = Marionette.Behavior.extend({
@@ -33880,7 +33891,7 @@ webpackJsonp([4],{
33880
 
33881
  /***/ },
33882
 
33883
- /***/ 516:
33884
  /***/ function(module, exports, __webpack_require__) {
33885
 
33886
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**
@@ -33889,8 +33900,8 @@ webpackJsonp([4],{
33889
  * Highlights a block that is being edited
33890
  */
33891
  !(__WEBPACK_AMD_DEFINE_ARRAY__ = [
33892
- __webpack_require__(489),
33893
- __webpack_require__(512),
33894
  ], __WEBPACK_AMD_DEFINE_RESULT__ = function(Marionette, BehaviorsLookup) {
33895
 
33896
  BehaviorsLookup.HighlightEditingBehavior = Marionette.Behavior.extend({
@@ -33910,7 +33921,7 @@ webpackJsonp([4],{
33910
 
33911
  /***/ },
33912
 
33913
- /***/ 517:
33914
  /***/ function(module, exports, __webpack_require__) {
33915
 
33916
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**
@@ -33919,9 +33930,9 @@ webpackJsonp([4],{
33919
  * Allows resizing elements within a block
33920
  */
33921
  !(__WEBPACK_AMD_DEFINE_ARRAY__ = [
33922
- __webpack_require__(489),
33923
- __webpack_require__(512),
33924
- __webpack_require__(492)
33925
  ], __WEBPACK_AMD_DEFINE_RESULT__ = function(Marionette, BehaviorsLookup, interact) {
33926
 
33927
  BehaviorsLookup.ResizableBehavior = Marionette.Behavior.extend({
@@ -33985,7 +33996,7 @@ webpackJsonp([4],{
33985
 
33986
  /***/ },
33987
 
33988
- /***/ 518:
33989
  /***/ function(module, exports, __webpack_require__) {
33990
 
33991
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**
@@ -33994,9 +34005,9 @@ webpackJsonp([4],{
33994
  * Allows sorting elements within a collection
33995
  */
33996
  !(__WEBPACK_AMD_DEFINE_ARRAY__ = [
33997
- __webpack_require__(489),
33998
  __webpack_require__(278),
33999
- __webpack_require__(512)
34000
  ], __WEBPACK_AMD_DEFINE_RESULT__ = function(Marionette, _, BehaviorsLookup) {
34001
 
34002
  BehaviorsLookup.SortableBehavior = Marionette.Behavior.extend({
@@ -34032,7 +34043,7 @@ webpackJsonp([4],{
34032
 
34033
  /***/ },
34034
 
34035
- /***/ 519:
34036
  /***/ function(module, exports, __webpack_require__) {
34037
 
34038
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**
@@ -34041,9 +34052,9 @@ webpackJsonp([4],{
34041
  * Opens up settings of a BlockView if contents are clicked upon
34042
  */
34043
  !(__WEBPACK_AMD_DEFINE_ARRAY__ = [
34044
- __webpack_require__(489),
34045
  __webpack_require__(273),
34046
- __webpack_require__(512),
34047
  ], __WEBPACK_AMD_DEFINE_RESULT__ = function(Marionette, jQuery, BehaviorsLookup) {
34048
 
34049
  BehaviorsLookup.ShowSettingsBehavior = Marionette.Behavior.extend({
@@ -34070,7 +34081,7 @@ webpackJsonp([4],{
34070
 
34071
  /***/ },
34072
 
34073
- /***/ 520:
34074
  /***/ function(module, exports, __webpack_require__) {
34075
 
34076
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**
@@ -34079,9 +34090,9 @@ webpackJsonp([4],{
34079
  * Adds TinyMCE text editing capabilities to a view
34080
  */
34081
  !(__WEBPACK_AMD_DEFINE_ARRAY__ = [
34082
- __webpack_require__(489),
34083
  __webpack_require__(278),
34084
- __webpack_require__(512)
34085
  ], __WEBPACK_AMD_DEFINE_RESULT__ = function(Marionette, _, BehaviorsLookup) {
34086
 
34087
  BehaviorsLookup.TextEditorBehavior = Marionette.Behavior.extend({
@@ -34160,7 +34171,7 @@ webpackJsonp([4],{
34160
 
34161
  /***/ },
34162
 
34163
- /***/ 521:
34164
  /***/ function(module, exports, __webpack_require__) {
34165
 
34166
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**
@@ -34170,13 +34181,13 @@ webpackJsonp([4],{
34170
  * BlockToolsView, BlockSettingsView and BlockWidgetView are optional.
34171
  */
34172
  !(__WEBPACK_AMD_DEFINE_ARRAY__ = [
34173
- __webpack_require__(501),
34174
- __webpack_require__(489),
34175
- __webpack_require__(491),
34176
  __webpack_require__(278),
34177
  __webpack_require__(273),
34178
  __webpack_require__(274),
34179
- __webpack_require__(483)
34180
  ], __WEBPACK_AMD_DEFINE_RESULT__ = function(App, Marionette, SuperModel, _, jQuery, MailPoet, Modal) {
34181
 
34182
  "use strict";
@@ -34464,7 +34475,7 @@ webpackJsonp([4],{
34464
 
34465
  /***/ },
34466
 
34467
- /***/ 522:
34468
  /***/ function(module, exports, __webpack_require__) {
34469
 
34470
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**
@@ -34474,11 +34485,11 @@ webpackJsonp([4],{
34474
  */
34475
  !(__WEBPACK_AMD_DEFINE_ARRAY__ = [
34476
  __webpack_require__(466),
34477
- __webpack_require__(489),
34478
  __webpack_require__(278),
34479
  __webpack_require__(273),
34480
- __webpack_require__(501),
34481
- __webpack_require__(521)
34482
  ], __WEBPACK_AMD_DEFINE_RESULT__ = function(Backbone, Marionette, _, jQuery, App, BaseBlock) {
34483
 
34484
  "use strict";
@@ -34834,15 +34845,15 @@ webpackJsonp([4],{
34834
 
34835
  /***/ },
34836
 
34837
- /***/ 523:
34838
  /***/ function(module, exports, __webpack_require__) {
34839
 
34840
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**
34841
  * Button content block
34842
  */
34843
  !(__WEBPACK_AMD_DEFINE_ARRAY__ = [
34844
- __webpack_require__(501),
34845
- __webpack_require__(521),
34846
  __webpack_require__(274),
34847
  __webpack_require__(278),
34848
  __webpack_require__(273)
@@ -34990,15 +35001,15 @@ webpackJsonp([4],{
34990
 
34991
  /***/ },
34992
 
34993
- /***/ 524:
34994
  /***/ function(module, exports, __webpack_require__) {
34995
 
34996
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**
34997
  * Image content block
34998
  */
34999
  !(__WEBPACK_AMD_DEFINE_ARRAY__ = [
35000
- __webpack_require__(501),
35001
- __webpack_require__(521),
35002
  __webpack_require__(278)
35003
  ], __WEBPACK_AMD_DEFINE_RESULT__ = function(App, BaseBlock, _) {
35004
 
@@ -35379,15 +35390,15 @@ webpackJsonp([4],{
35379
 
35380
  /***/ },
35381
 
35382
- /***/ 525:
35383
  /***/ function(module, exports, __webpack_require__) {
35384
 
35385
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**
35386
  * Divider content block
35387
  */
35388
  !(__WEBPACK_AMD_DEFINE_ARRAY__ = [
35389
- __webpack_require__(501),
35390
- __webpack_require__(521),
35391
  __webpack_require__(278),
35392
  __webpack_require__(273),
35393
  __webpack_require__(274)
@@ -35542,15 +35553,15 @@ webpackJsonp([4],{
35542
 
35543
  /***/ },
35544
 
35545
- /***/ 526:
35546
  /***/ function(module, exports, __webpack_require__) {
35547
 
35548
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**
35549
  * Text content block
35550
  */
35551
  !(__WEBPACK_AMD_DEFINE_ARRAY__ = [
35552
- __webpack_require__(501),
35553
- __webpack_require__(521),
35554
  __webpack_require__(278)
35555
  ], __WEBPACK_AMD_DEFINE_RESULT__ = function(App, BaseBlock, _) {
35556
 
@@ -35660,15 +35671,15 @@ webpackJsonp([4],{
35660
 
35661
  /***/ },
35662
 
35663
- /***/ 527:
35664
  /***/ function(module, exports, __webpack_require__) {
35665
 
35666
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**
35667
  * Spacer content block
35668
  */
35669
  !(__WEBPACK_AMD_DEFINE_ARRAY__ = [
35670
- __webpack_require__(501),
35671
- __webpack_require__(521),
35672
  __webpack_require__(278)
35673
  ], __WEBPACK_AMD_DEFINE_RESULT__ = function(App, BaseBlock, _) {
35674
 
@@ -35771,15 +35782,15 @@ webpackJsonp([4],{
35771
 
35772
  /***/ },
35773
 
35774
- /***/ 528:
35775
  /***/ function(module, exports, __webpack_require__) {
35776
 
35777
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**
35778
  * Footer content block
35779
  */
35780
  !(__WEBPACK_AMD_DEFINE_ARRAY__ = [
35781
- __webpack_require__(501),
35782
- __webpack_require__(521),
35783
  __webpack_require__(278)
35784
  ], __WEBPACK_AMD_DEFINE_RESULT__ = function(App, BaseBlock, _) {
35785
 
@@ -35904,15 +35915,15 @@ webpackJsonp([4],{
35904
 
35905
  /***/ },
35906
 
35907
- /***/ 529:
35908
  /***/ function(module, exports, __webpack_require__) {
35909
 
35910
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**
35911
  * Header content block
35912
  */
35913
  !(__WEBPACK_AMD_DEFINE_ARRAY__ = [
35914
- __webpack_require__(501),
35915
- __webpack_require__(521),
35916
  __webpack_require__(278)
35917
  ], __WEBPACK_AMD_DEFINE_RESULT__ = function(App, BaseBlock, _) {
35918
 
@@ -36037,7 +36048,7 @@ webpackJsonp([4],{
36037
 
36038
  /***/ },
36039
 
36040
- /***/ 530:
36041
  /***/ function(module, exports, __webpack_require__) {
36042
 
36043
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**
@@ -36049,13 +36060,13 @@ webpackJsonp([4],{
36049
  * block settings view.
36050
  */
36051
  !(__WEBPACK_AMD_DEFINE_ARRAY__ = [
36052
- __webpack_require__(501),
36053
- __webpack_require__(521),
36054
- __webpack_require__(523),
36055
  __webpack_require__(525),
36056
- __webpack_require__(506),
 
 
36057
  __webpack_require__(274),
36058
- __webpack_require__(491),
36059
  __webpack_require__(278),
36060
  __webpack_require__(273)
36061
  ], __WEBPACK_AMD_DEFINE_RESULT__ = function(
@@ -36444,7 +36455,7 @@ webpackJsonp([4],{
36444
 
36445
  /***/ },
36446
 
36447
- /***/ 531:
36448
  /***/ function(module, exports, __webpack_require__) {
36449
 
36450
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**
@@ -36461,16 +36472,16 @@ webpackJsonp([4],{
36461
  */
36462
  !(__WEBPACK_AMD_DEFINE_ARRAY__ = [
36463
  __webpack_require__(466),
36464
- __webpack_require__(489),
36465
- __webpack_require__(490),
36466
  __webpack_require__(278),
36467
  __webpack_require__(273),
36468
  __webpack_require__(274),
36469
- __webpack_require__(501),
36470
- __webpack_require__(506),
36471
- __webpack_require__(521),
36472
- __webpack_require__(523),
36473
  __webpack_require__(525),
 
 
36474
  __webpack_require__(287)
36475
  ], __WEBPACK_AMD_DEFINE_RESULT__ = function(
36476
  Backbone,
@@ -36497,6 +36508,7 @@ webpackJsonp([4],{
36497
  return this._getDefaults({
36498
  type: 'posts',
36499
  amount: '10',
 
36500
  contentType: 'post', // 'post'|'page'|'mailpoet_page'
36501
  postStatus: 'publish', // 'draft'|'pending'|'private'|'publish'|'future'
36502
  terms: [], // List of category and tag objects
@@ -36547,6 +36559,7 @@ webpackJsonp([4],{
36547
 
36548
  this.fetchAvailablePosts();
36549
  this.on('change:amount change:contentType change:terms change:inclusionType change:postStatus change:search change:sortBy', refreshAvailablePosts);
 
36550
 
36551
  this.listenTo(this.get('_selectedPosts'), 'add remove reset', refreshTransformedPosts);
36552
  this.on('change:displayType change:titleFormat change:featuredImagePosition change:titleAlignment change:titleIsLink change:imageFullWidth change:showAuthor change:authorPrecededBy change:showCategories change:categoriesPrecededBy change:readMoreType change:readMoreText change:showDivider', refreshTransformedPosts);
@@ -36557,6 +36570,7 @@ webpackJsonp([4],{
36557
  },
36558
  fetchAvailablePosts: function() {
36559
  var that = this;
 
36560
  CommunicationComponent.getPosts(this.toJSON()).done(function(posts) {
36561
  that.get('_availablePosts').reset(posts);
36562
  that.get('_selectedPosts').reset(); // Empty out the collection
@@ -36565,6 +36579,27 @@ webpackJsonp([4],{
36565
  MailPoet.Notice.error(MailPoet.I18n.t('failedToFetchAvailablePosts'));
36566
  });
36567
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
36568
  _refreshTransformedPosts: function() {
36569
  var that = this,
36570
  data = this.toJSON();
@@ -36709,6 +36744,7 @@ webpackJsonp([4],{
36709
  });
36710
 
36711
  var PostsSelectionCollectionView = Marionette.CollectionView.extend({
 
36712
  childView: function() { return SinglePostSelectionSettingsView; },
36713
  emptyView: function() { return EmptyPostSelectionSettingsView; },
36714
  childViewOptions: function() {
@@ -36719,6 +36755,16 @@ webpackJsonp([4],{
36719
  initialize: function(options) {
36720
  this.blockModel = options.blockModel;
36721
  },
 
 
 
 
 
 
 
 
 
 
36722
  });
36723
 
36724
  var PostSelectionSettingsView = Marionette.View.extend({
@@ -36733,6 +36779,20 @@ webpackJsonp([4],{
36733
  'input .mailpoet_posts_search_term': _.partial(this.changeField, 'search'),
36734
  };
36735
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
36736
  onRender: function() {
36737
  // Dynamically update available post types
36738
  CommunicationComponent.getPostTypes().done(_.bind(this._updateContentTypes, this));
@@ -36994,18 +37054,18 @@ webpackJsonp([4],{
36994
 
36995
  /***/ },
36996
 
36997
- /***/ 532:
36998
  /***/ function(module, exports, __webpack_require__) {
36999
 
37000
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**
37001
  * Social icons content block
37002
  */
37003
  !(__WEBPACK_AMD_DEFINE_ARRAY__ = [
37004
- __webpack_require__(501),
37005
- __webpack_require__(521),
37006
  __webpack_require__(466),
37007
- __webpack_require__(489),
37008
- __webpack_require__(491),
37009
  __webpack_require__(278),
37010
  __webpack_require__(273)
37011
  ], __WEBPACK_AMD_DEFINE_RESULT__ = function(App, BaseBlock, Backbone, Marionette, SuperModel, _, jQuery) {
1
  webpackJsonp([4],{
2
 
3
+ /***/ 510:
4
  /***/ function(module, exports, __webpack_require__) {
5
 
6
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [
7
+ __webpack_require__(505),
8
  __webpack_require__(278),
9
  __webpack_require__(274),
10
+ __webpack_require__(484)
11
  ], __WEBPACK_AMD_DEFINE_RESULT__ = function(App, _, MailPoet) {
12
 
13
  var Module = {};
119
 
120
  __webpack_require__(278);
121
  __webpack_require__(466);
 
 
 
 
 
122
  __webpack_require__(493);
 
123
  __webpack_require__(495);
124
  __webpack_require__(496);
125
+ __webpack_require__(494);
126
+ __webpack_require__(287);
127
+ __webpack_require__(497);
128
+ __webpack_require__(498);
129
  __webpack_require__(499);
130
  __webpack_require__(500);
 
131
  __webpack_require__(503);
132
  __webpack_require__(504);
133
  __webpack_require__(505);
134
  __webpack_require__(507);
135
  __webpack_require__(508);
136
  __webpack_require__(509);
137
+ __webpack_require__(511);
138
  __webpack_require__(512);
139
  __webpack_require__(513);
140
+ __webpack_require__(510);
 
141
  __webpack_require__(516);
142
  __webpack_require__(517);
143
  __webpack_require__(518);
154
  __webpack_require__(529);
155
  __webpack_require__(530);
156
  __webpack_require__(531);
157
+ __webpack_require__(532);
158
+ __webpack_require__(533);
159
+ __webpack_require__(534);
160
+ __webpack_require__(535);
161
+ module.exports = __webpack_require__(536);
162
 
163
 
164
  /***/ },
9410
 
9411
  /***/ },
9412
 
9413
+ /***/ 484:
9414
  /***/ function(module, exports, __webpack_require__) {
9415
 
9416
+ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;function requestFailed(errorMessage, xhr) {
9417
+ if (xhr.responseJSON) {
9418
+ return xhr.responseJSON;
9419
+ }
9420
+ var message = errorMessage.replace("%d", xhr.status);
9421
+ return {
9422
+ errors: [
9423
+ {
9424
+ message: message
9425
+ }
9426
+ ]
9427
+ }
9428
+ }
9429
+
9430
+ !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(274), __webpack_require__(273), __webpack_require__(278)], __WEBPACK_AMD_DEFINE_RESULT__ = function(MailPoet, jQuery, _) {
9431
+
9432
+ MailPoet.Ajax = {
9433
+ version: 0.5,
9434
+ options: {},
9435
+ defaults: {
9436
+ url: null,
9437
+ api_version: null,
9438
+ endpoint: null,
9439
+ action: null,
9440
+ token: null,
9441
+ data: {}
9442
+ },
9443
+ post: function(options) {
9444
+ return this.request('post', options);
9445
+ },
9446
+ init: function(options) {
9447
+ // merge options
9448
+ this.options = jQuery.extend({}, this.defaults, options);
9449
+
9450
+ // set default url
9451
+ if(this.options.url === null) {
9452
+ this.options.url = ajaxurl;
9453
+ }
9454
+
9455
+ // set default token
9456
+ if(this.options.token === null) {
9457
+ this.options.token = window.mailpoet_token;
9458
+ }
9459
+ },
9460
+ getParams: function() {
9461
+ return {
9462
+ action: 'mailpoet',
9463
+ api_version: this.options.api_version,
9464
+ token: this.options.token,
9465
+ endpoint: this.options.endpoint,
9466
+ method: this.options.action,
9467
+ data: this.options.data || {}
9468
+ }
9469
+ },
9470
+ request: function(method, options) {
9471
+ // set options
9472
+ this.init(options);
9473
+
9474
+ // set request params
9475
+ var params = this.getParams();
9476
+
9477
+ // remove null values from the data object
9478
+ if (_.isObject(params.data)) {
9479
+ params.data = _.pick(params.data, function(value) {
9480
+ return (value !== null)
9481
+ })
9482
+ }
9483
+
9484
+ // ajax request
9485
+ var deferred = jQuery.post(
9486
+ this.options.url,
9487
+ params,
9488
+ null,
9489
+ 'json'
9490
+ ).then(function(data) {
9491
+ return data;
9492
+ }, _.partial(requestFailed, MailPoet.I18n.t('ajaxFailedErrorMessage')));
9493
+
9494
+ // clear options
9495
+ this.options = {};
9496
+
9497
+ return deferred;
9498
+ }
9499
+ };
9500
+ }.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
9501
 
9502
 
9503
  /***/ },
9504
 
9505
+ /***/ 487:
9506
  /***/ function(module, exports, __webpack_require__) {
9507
 
9508
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(274), __webpack_require__(273)], __WEBPACK_AMD_DEFINE_RESULT__ = function(MailPoet, jQuery) {
10150
 
10151
  /***/ },
10152
 
10153
+ /***/ 488:
10154
  /***/ function(module, exports, __webpack_require__) {
10155
 
10156
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(274), __webpack_require__(273)], __WEBPACK_AMD_DEFINE_RESULT__ = function(MailPoet, jQuery) {
10372
 
10373
  /***/ },
10374
 
10375
+ /***/ 493:
10376
  /***/ function(module, exports, __webpack_require__) {
10377
 
10378
  // MarionetteJS (Backbone.Marionette)
10386
 
10387
 
10388
  (function (global, factory) {
10389
+ true ? module.exports = factory(__webpack_require__(466), __webpack_require__(278), __webpack_require__(494)) :
10390
  typeof define === 'function' && define.amd ? define(['backbone', 'underscore', 'backbone.radio'], factory) :
10391
  (global.Marionette = global['Mn'] = factory(global.Backbone,global._,global.Backbone.Radio));
10392
  }(this, (function (Backbone,_,Radio) { 'use strict';
13867
 
13868
  /***/ },
13869
 
13870
+ /***/ 494:
13871
  /***/ function(module, exports, __webpack_require__) {
13872
 
13873
  // Backbone.Radio v2.0.0
14223
 
14224
  /***/ },
14225
 
14226
+ /***/ 495:
14227
  /***/ function(module, exports) {
14228
 
14229
  Backbone.SuperModel = (function(_, Backbone){
14646
 
14647
  /***/ },
14648
 
14649
+ /***/ 496:
14650
  /***/ function(module, exports, __webpack_require__) {
14651
 
14652
  /**
20630
 
20631
  /***/ },
20632
 
20633
+ /***/ 497:
20634
  /***/ function(module, exports, __webpack_require__) {
20635
 
20636
  var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// Spectrum Colorpicker v1.8.0
22960
 
22961
  /***/ },
22962
 
22963
+ /***/ 498:
22964
  /***/ function(module, exports) {
22965
 
22966
  // Generated by CoffeeScript 1.9.2
23231
 
23232
  /***/ },
23233
 
23234
+ /***/ 499:
23235
  /***/ function(module, exports) {
23236
 
23237
  /* Blob.js
23452
 
23453
  /***/ },
23454
 
23455
+ /***/ 500:
23456
  /***/ function(module, exports, __webpack_require__) {
23457
 
23458
  var __WEBPACK_AMD_DEFINE_RESULT__;/* FileSaver.js
23638
 
23639
  if (typeof module !== "undefined" && module.exports) {
23640
  module.exports.saveAs = saveAs;
23641
+ } else if (("function" !== "undefined" && __webpack_require__(501) !== null) && (__webpack_require__(502) !== null)) {
23642
  !(__WEBPACK_AMD_DEFINE_RESULT__ = function() {
23643
  return saveAs;
23644
  }.call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
23647
 
23648
  /***/ },
23649
 
23650
+ /***/ 501:
23651
  /***/ function(module, exports) {
23652
 
23653
  module.exports = function() { throw new Error("define cannot be used indirect"); };
23655
 
23656
  /***/ },
23657
 
23658
+ /***/ 502:
23659
  /***/ function(module, exports) {
23660
 
23661
  /* WEBPACK VAR INJECTION */(function(__webpack_amd_options__) {module.exports = __webpack_amd_options__;
23664
 
23665
  /***/ },
23666
 
23667
+ /***/ 503:
23668
  /***/ function(module, exports, __webpack_require__) {
23669
 
23670
  var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;/*** IMPORTS FROM imports-loader ***/
27560
 
27561
  /***/ },
27562
 
27563
+ /***/ 504:
27564
  /***/ function(module, exports, __webpack_require__) {
27565
 
27566
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**
27573
 
27574
  (function(root, factory) {
27575
  if (true) {
27576
+ !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(493), __webpack_require__(494), __webpack_require__(278)], __WEBPACK_AMD_DEFINE_RESULT__ = function(Marionette, Radio, _) {
27577
  return factory(Marionette, Radio, _);
27578
  }.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
27579
  }
27598
 
27599
  /***/ },
27600
 
27601
+ /***/ 505:
27602
  /***/ function(module, exports, __webpack_require__) {
27603
 
27604
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [
27605
  __webpack_require__(466),
27606
+ __webpack_require__(493),
27607
+ __webpack_require__(494),
27608
  __webpack_require__(273),
27609
  __webpack_require__(278),
27610
+ __webpack_require__(474),
27611
+ __webpack_require__(506)
27612
  ], __WEBPACK_AMD_DEFINE_RESULT__ = function(Backbone, Marionette, Radio, jQuery, _, Handlebars) {
27613
 
27614
  var AppView = Marionette.View.extend({
27646
 
27647
  /***/ },
27648
 
27649
+ /***/ 507:
27650
  /***/ function(module, exports, __webpack_require__) {
27651
 
27652
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [
27653
+ __webpack_require__(505),
27654
+ __webpack_require__(495)
27655
  ], __WEBPACK_AMD_DEFINE_RESULT__ = function(App, SuperModel) {
27656
 
27657
  var Module = {};
27689
 
27690
  /***/ },
27691
 
27692
+ /***/ 508:
27693
  /***/ function(module, exports, __webpack_require__) {
27694
 
27695
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [
27696
+ __webpack_require__(505),
27697
+ __webpack_require__(493),
27698
+ __webpack_require__(495)
27699
  ], __WEBPACK_AMD_DEFINE_RESULT__ = function(App, Marionette, SuperModel) {
27700
 
27701
  "use strict";
27784
 
27785
  /***/ },
27786
 
27787
+ /***/ 509:
27788
  /***/ function(module, exports, __webpack_require__) {
27789
 
27790
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [
27791
+ __webpack_require__(505),
27792
+ __webpack_require__(510),
27793
  __webpack_require__(274),
27794
  __webpack_require__(466),
27795
+ __webpack_require__(493),
27796
+ __webpack_require__(495),
27797
  __webpack_require__(278),
27798
  __webpack_require__(273),
27799
+ __webpack_require__(498)
27800
  ], __WEBPACK_AMD_DEFINE_RESULT__ = function(
27801
  App,
27802
  CommunicationComponent,
28168
 
28169
  /***/ },
28170
 
28171
+ /***/ 511:
28172
  /***/ function(module, exports, __webpack_require__) {
28173
 
28174
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [
28175
+ __webpack_require__(505),
28176
+ __webpack_require__(495),
28177
  __webpack_require__(278),
28178
  __webpack_require__(274)
28179
  ], __WEBPACK_AMD_DEFINE_RESULT__ = function(App, SuperModel, _, MailPoet) {
28280
 
28281
  /***/ },
28282
 
28283
+ /***/ 512:
28284
  /***/ function(module, exports, __webpack_require__) {
28285
 
28286
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [
28287
+ __webpack_require__(505),
28288
  __webpack_require__(466),
28289
+ __webpack_require__(493),
28290
  __webpack_require__(278),
28291
  __webpack_require__(273)
28292
  ], __WEBPACK_AMD_DEFINE_RESULT__ = function(App, Backbone, Marionette, _, jQuery) {
28323
 
28324
  /***/ },
28325
 
28326
+ /***/ 513:
28327
  /***/ function(module, exports, __webpack_require__) {
28328
 
28329
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [
28330
+ __webpack_require__(505),
28331
+ __webpack_require__(510),
28332
  __webpack_require__(274),
28333
+ __webpack_require__(488),
28334
  __webpack_require__(466),
28335
+ __webpack_require__(493),
28336
  __webpack_require__(273),
28337
+ __webpack_require__(499),
28338
+ __webpack_require__(500),
28339
+ __webpack_require__(514)
28340
  ], __WEBPACK_AMD_DEFINE_RESULT__ = function(
28341
  App,
28342
  CommunicationComponent,
28689
 
28690
  /***/ },
28691
 
28692
+ /***/ 514:
28693
  /***/ function(module, exports, __webpack_require__) {
28694
 
28695
+ /* WEBPACK VAR INJECTION */(function(global) {module.exports = global["html2canvas"] = __webpack_require__(515);
28696
  /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))
28697
 
28698
  /***/ },
28699
 
28700
+ /***/ 515:
28701
  /***/ function(module, exports, __webpack_require__) {
28702
 
28703
  var require;var require;/* WEBPACK VAR INJECTION */(function(global) {/*
33238
 
33239
  /***/ },
33240
 
33241
+ /***/ 516:
33242
  /***/ function(module, exports, __webpack_require__) {
33243
 
33244
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**
33248
  * For more check: http://marionettejs.com/docs/marionette.behaviors.html#behaviorslookup
33249
  */
33250
  !(__WEBPACK_AMD_DEFINE_ARRAY__ = [
33251
+ __webpack_require__(493)
33252
  ], __WEBPACK_AMD_DEFINE_RESULT__ = function(Marionette) {
33253
 
33254
  var BehaviorsLookup = {};
33264
 
33265
  /***/ },
33266
 
33267
+ /***/ 517:
33268
  /***/ function(module, exports, __webpack_require__) {
33269
 
33270
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**
33273
  * Adds a color picker integration with the view
33274
  */
33275
  !(__WEBPACK_AMD_DEFINE_ARRAY__ = [
33276
+ __webpack_require__(493),
33277
+ __webpack_require__(516),
33278
  __webpack_require__(274),
33279
+ __webpack_require__(497)
33280
  ], __WEBPACK_AMD_DEFINE_RESULT__ = function(Marionette, BehaviorsLookup, MailPoet, Spectrum) {
33281
 
33282
  BehaviorsLookup.ColorPickerBehavior = Marionette.Behavior.extend({
33297
 
33298
  /***/ },
33299
 
33300
+ /***/ 518:
33301
  /***/ function(module, exports, __webpack_require__) {
33302
 
33303
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**
33308
  * accept droppables
33309
  */
33310
  !(__WEBPACK_AMD_DEFINE_ARRAY__ = [
33311
+ __webpack_require__(493),
33312
  __webpack_require__(278),
33313
  __webpack_require__(273),
33314
+ __webpack_require__(516),
33315
+ __webpack_require__(496)
33316
  ], __WEBPACK_AMD_DEFINE_RESULT__ = function(Marionette, _, jQuery, BehaviorsLookup, interact) {
33317
 
33318
  BehaviorsLookup.ContainerDropZoneBehavior = Marionette.Behavior.extend({
33743
 
33744
  /***/ },
33745
 
33746
+ /***/ 519:
33747
  /***/ function(module, exports, __webpack_require__) {
33748
 
33749
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**
33753
  * Part of the drag&drop behavior.
33754
  */
33755
  !(__WEBPACK_AMD_DEFINE_ARRAY__ = [
33756
+ __webpack_require__(493),
33757
  __webpack_require__(278),
33758
  __webpack_require__(273),
33759
+ __webpack_require__(516),
33760
+ __webpack_require__(496)
33761
  ], __WEBPACK_AMD_DEFINE_RESULT__ = function(Marionette, _, jQuery, BehaviorsLookup, interact) {
33762
 
33763
  BehaviorsLookup.DraggableBehavior = Marionette.Behavior.extend({
33891
 
33892
  /***/ },
33893
 
33894
+ /***/ 520:
33895
  /***/ function(module, exports, __webpack_require__) {
33896
 
33897
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**
33900
  * Highlights a block that is being edited
33901
  */
33902
  !(__WEBPACK_AMD_DEFINE_ARRAY__ = [
33903
+ __webpack_require__(493),
33904
+ __webpack_require__(516),
33905
  ], __WEBPACK_AMD_DEFINE_RESULT__ = function(Marionette, BehaviorsLookup) {
33906
 
33907
  BehaviorsLookup.HighlightEditingBehavior = Marionette.Behavior.extend({
33921
 
33922
  /***/ },
33923
 
33924
+ /***/ 521:
33925
  /***/ function(module, exports, __webpack_require__) {
33926
 
33927
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**
33930
  * Allows resizing elements within a block
33931
  */
33932
  !(__WEBPACK_AMD_DEFINE_ARRAY__ = [
33933
+ __webpack_require__(493),
33934
+ __webpack_require__(516),
33935
+ __webpack_require__(496)
33936
  ], __WEBPACK_AMD_DEFINE_RESULT__ = function(Marionette, BehaviorsLookup, interact) {
33937
 
33938
  BehaviorsLookup.ResizableBehavior = Marionette.Behavior.extend({
33996
 
33997
  /***/ },
33998
 
33999
+ /***/ 522:
34000
  /***/ function(module, exports, __webpack_require__) {
34001
 
34002
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**
34005
  * Allows sorting elements within a collection
34006
  */
34007
  !(__WEBPACK_AMD_DEFINE_ARRAY__ = [
34008
+ __webpack_require__(493),
34009
  __webpack_require__(278),
34010
+ __webpack_require__(516)
34011
  ], __WEBPACK_AMD_DEFINE_RESULT__ = function(Marionette, _, BehaviorsLookup) {
34012
 
34013
  BehaviorsLookup.SortableBehavior = Marionette.Behavior.extend({
34043
 
34044
  /***/ },
34045
 
34046
+ /***/ 523:
34047
  /***/ function(module, exports, __webpack_require__) {
34048
 
34049
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**
34052
  * Opens up settings of a BlockView if contents are clicked upon
34053
  */
34054
  !(__WEBPACK_AMD_DEFINE_ARRAY__ = [
34055
+ __webpack_require__(493),
34056
  __webpack_require__(273),
34057
+ __webpack_require__(516),
34058
  ], __WEBPACK_AMD_DEFINE_RESULT__ = function(Marionette, jQuery, BehaviorsLookup) {
34059
 
34060
  BehaviorsLookup.ShowSettingsBehavior = Marionette.Behavior.extend({
34081
 
34082
  /***/ },
34083
 
34084
+ /***/ 524:
34085
  /***/ function(module, exports, __webpack_require__) {
34086
 
34087
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**
34090
  * Adds TinyMCE text editing capabilities to a view
34091
  */
34092
  !(__WEBPACK_AMD_DEFINE_ARRAY__ = [
34093
+ __webpack_require__(493),
34094
  __webpack_require__(278),
34095
+ __webpack_require__(516)
34096
  ], __WEBPACK_AMD_DEFINE_RESULT__ = function(Marionette, _, BehaviorsLookup) {
34097
 
34098
  BehaviorsLookup.TextEditorBehavior = Marionette.Behavior.extend({
34171
 
34172
  /***/ },
34173
 
34174
+ /***/ 525:
34175
  /***/ function(module, exports, __webpack_require__) {
34176
 
34177
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**
34181
  * BlockToolsView, BlockSettingsView and BlockWidgetView are optional.
34182
  */
34183
  !(__WEBPACK_AMD_DEFINE_ARRAY__ = [
34184
+ __webpack_require__(505),
34185
+ __webpack_require__(493),
34186
+ __webpack_require__(495),
34187
  __webpack_require__(278),
34188
  __webpack_require__(273),
34189
  __webpack_require__(274),
34190
+ __webpack_require__(487)
34191
  ], __WEBPACK_AMD_DEFINE_RESULT__ = function(App, Marionette, SuperModel, _, jQuery, MailPoet, Modal) {
34192
 
34193
  "use strict";
34475
 
34476
  /***/ },
34477
 
34478
+ /***/ 526:
34479
  /***/ function(module, exports, __webpack_require__) {
34480
 
34481
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**
34485
  */
34486
  !(__WEBPACK_AMD_DEFINE_ARRAY__ = [
34487
  __webpack_require__(466),
34488
+ __webpack_require__(493),
34489
  __webpack_require__(278),
34490
  __webpack_require__(273),
34491
+ __webpack_require__(505),
34492
+ __webpack_require__(525)
34493
  ], __WEBPACK_AMD_DEFINE_RESULT__ = function(Backbone, Marionette, _, jQuery, App, BaseBlock) {
34494
 
34495
  "use strict";
34845
 
34846
  /***/ },
34847
 
34848
+ /***/ 527:
34849
  /***/ function(module, exports, __webpack_require__) {
34850
 
34851
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**
34852
  * Button content block
34853
  */
34854
  !(__WEBPACK_AMD_DEFINE_ARRAY__ = [
34855
+ __webpack_require__(505),
34856
+ __webpack_require__(525),
34857
  __webpack_require__(274),
34858
  __webpack_require__(278),
34859
  __webpack_require__(273)
35001
 
35002
  /***/ },
35003
 
35004
+ /***/ 528:
35005
  /***/ function(module, exports, __webpack_require__) {
35006
 
35007
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**
35008
  * Image content block
35009
  */
35010
  !(__WEBPACK_AMD_DEFINE_ARRAY__ = [
35011
+ __webpack_require__(505),
35012
+ __webpack_require__(525),
35013
  __webpack_require__(278)
35014
  ], __WEBPACK_AMD_DEFINE_RESULT__ = function(App, BaseBlock, _) {
35015
 
35390
 
35391
  /***/ },
35392
 
35393
+ /***/ 529:
35394
  /***/ function(module, exports, __webpack_require__) {
35395
 
35396
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**
35397
  * Divider content block
35398
  */
35399
  !(__WEBPACK_AMD_DEFINE_ARRAY__ = [
35400
+ __webpack_require__(505),
35401
+ __webpack_require__(525),
35402
  __webpack_require__(278),
35403
  __webpack_require__(273),
35404
  __webpack_require__(274)
35553
 
35554
  /***/ },
35555
 
35556
+ /***/ 530:
35557
  /***/ function(module, exports, __webpack_require__) {
35558
 
35559
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**
35560
  * Text content block
35561
  */
35562
  !(__WEBPACK_AMD_DEFINE_ARRAY__ = [
35563
+ __webpack_require__(505),
35564
+ __webpack_require__(525),
35565
  __webpack_require__(278)
35566
  ], __WEBPACK_AMD_DEFINE_RESULT__ = function(App, BaseBlock, _) {
35567
 
35671
 
35672
  /***/ },
35673
 
35674
+ /***/ 531:
35675
  /***/ function(module, exports, __webpack_require__) {
35676
 
35677
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**
35678
  * Spacer content block
35679
  */
35680
  !(__WEBPACK_AMD_DEFINE_ARRAY__ = [
35681
+ __webpack_require__(505),
35682
+ __webpack_require__(525),
35683
  __webpack_require__(278)
35684
  ], __WEBPACK_AMD_DEFINE_RESULT__ = function(App, BaseBlock, _) {
35685
 
35782
 
35783
  /***/ },
35784
 
35785
+ /***/ 532:
35786
  /***/ function(module, exports, __webpack_require__) {
35787
 
35788
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**
35789
  * Footer content block
35790
  */
35791
  !(__WEBPACK_AMD_DEFINE_ARRAY__ = [
35792
+ __webpack_require__(505),
35793
+ __webpack_require__(525),
35794
  __webpack_require__(278)
35795
  ], __WEBPACK_AMD_DEFINE_RESULT__ = function(App, BaseBlock, _) {
35796
 
35915
 
35916
  /***/ },
35917
 
35918
+ /***/ 533:
35919
  /***/ function(module, exports, __webpack_require__) {
35920
 
35921
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**
35922
  * Header content block
35923
  */
35924
  !(__WEBPACK_AMD_DEFINE_ARRAY__ = [
35925
+ __webpack_require__(505),
35926
+ __webpack_require__(525),
35927
  __webpack_require__(278)
35928
  ], __WEBPACK_AMD_DEFINE_RESULT__ = function(App, BaseBlock, _) {
35929
 
36048
 
36049
  /***/ },
36050
 
36051
+ /***/ 534:
36052
  /***/ function(module, exports, __webpack_require__) {
36053
 
36054
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**
36060
  * block settings view.
36061
  */
36062
  !(__WEBPACK_AMD_DEFINE_ARRAY__ = [
36063
+ __webpack_require__(505),
 
 
36064
  __webpack_require__(525),
36065
+ __webpack_require__(527),
36066
+ __webpack_require__(529),
36067
+ __webpack_require__(510),
36068
  __webpack_require__(274),
36069
+ __webpack_require__(495),
36070
  __webpack_require__(278),
36071
  __webpack_require__(273)
36072
  ], __WEBPACK_AMD_DEFINE_RESULT__ = function(
36455
 
36456
  /***/ },
36457
 
36458
+ /***/ 535:
36459
  /***/ function(module, exports, __webpack_require__) {
36460
 
36461
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**
36472
  */
36473
  !(__WEBPACK_AMD_DEFINE_ARRAY__ = [
36474
  __webpack_require__(466),
36475
+ __webpack_require__(493),
36476
+ __webpack_require__(494),
36477
  __webpack_require__(278),
36478
  __webpack_require__(273),
36479
  __webpack_require__(274),
36480
+ __webpack_require__(505),
36481
+ __webpack_require__(510),
 
 
36482
  __webpack_require__(525),
36483
+ __webpack_require__(527),
36484
+ __webpack_require__(529),
36485
  __webpack_require__(287)
36486
  ], __WEBPACK_AMD_DEFINE_RESULT__ = function(
36487
  Backbone,
36508
  return this._getDefaults({
36509
  type: 'posts',
36510
  amount: '10',
36511
+ offset: 0,
36512
  contentType: 'post', // 'post'|'page'|'mailpoet_page'
36513
  postStatus: 'publish', // 'draft'|'pending'|'private'|'publish'|'future'
36514
  terms: [], // List of category and tag objects
36559
 
36560
  this.fetchAvailablePosts();
36561
  this.on('change:amount change:contentType change:terms change:inclusionType change:postStatus change:search change:sortBy', refreshAvailablePosts);
36562
+ this.on('loadMorePosts', this._loadMorePosts, this);
36563
 
36564
  this.listenTo(this.get('_selectedPosts'), 'add remove reset', refreshTransformedPosts);
36565
  this.on('change:displayType change:titleFormat change:featuredImagePosition change:titleAlignment change:titleIsLink change:imageFullWidth change:showAuthor change:authorPrecededBy change:showCategories change:categoriesPrecededBy change:readMoreType change:readMoreText change:showDivider', refreshTransformedPosts);
36570
  },
36571
  fetchAvailablePosts: function() {
36572
  var that = this;
36573
+ this.set('offset', 0);
36574
  CommunicationComponent.getPosts(this.toJSON()).done(function(posts) {
36575
  that.get('_availablePosts').reset(posts);
36576
  that.get('_selectedPosts').reset(); // Empty out the collection
36579
  MailPoet.Notice.error(MailPoet.I18n.t('failedToFetchAvailablePosts'));
36580
  });
36581
  },
36582
+ _loadMorePosts: function() {
36583
+ var that = this,
36584
+ postCount = this.get('_availablePosts').length,
36585
+ nextOffset = this.get('offset') + Number(this.get('amount'));
36586
+
36587
+ if(postCount === 0 || postCount < nextOffset) {
36588
+ // No more posts to load
36589
+ return false;
36590
+ }
36591
+ this.set('offset', nextOffset);
36592
+ this.trigger('loadingMorePosts');
36593
+
36594
+ CommunicationComponent.getPosts(this.toJSON()).done(function(posts) {
36595
+ that.get('_availablePosts').add(posts);
36596
+ that.trigger('change:_availablePosts');
36597
+ }).fail(function() {
36598
+ MailPoet.Notice.error(MailPoet.I18n.t('failedToFetchAvailablePosts'));
36599
+ }).always(function() {
36600
+ that.trigger('morePostsLoaded');
36601
+ });
36602
+ },
36603
  _refreshTransformedPosts: function() {
36604
  var that = this,
36605
  data = this.toJSON();
36744
  });
36745
 
36746
  var PostsSelectionCollectionView = Marionette.CollectionView.extend({
36747
+ className: 'mailpoet_post_scroll_container',
36748
  childView: function() { return SinglePostSelectionSettingsView; },
36749
  emptyView: function() { return EmptyPostSelectionSettingsView; },
36750
  childViewOptions: function() {
36755
  initialize: function(options) {
36756
  this.blockModel = options.blockModel;
36757
  },
36758
+ events: {
36759
+ 'scroll': 'onPostsScroll',
36760
+ },
36761
+ onPostsScroll: function(event) {
36762
+ var $postsBox = jQuery(event.target);
36763
+ if($postsBox.scrollTop() + $postsBox.innerHeight() >= $postsBox[0].scrollHeight){
36764
+ // Load more posts if scrolled to bottom
36765
+ this.blockModel.trigger('loadMorePosts');
36766
+ }
36767
+ },
36768
  });
36769
 
36770
  var PostSelectionSettingsView = Marionette.View.extend({
36779
  'input .mailpoet_posts_search_term': _.partial(this.changeField, 'search'),
36780
  };
36781
  },
36782
+ modelEvents: {
36783
+ 'change:offset': function(model, value) {
36784
+ // Scroll posts view to top if settings are changed
36785
+ if (value === 0) {
36786
+ this.$('.mailpoet_post_scroll_container').scrollTop(0);
36787
+ }
36788
+ },
36789
+ 'loadingMorePosts': function() {
36790
+ this.$('.mailpoet_post_selection_loading').css('visibility', 'visible');
36791
+ },
36792
+ 'morePostsLoaded': function() {
36793
+ this.$('.mailpoet_post_selection_loading').css('visibility', 'hidden');
36794
+ }
36795
+ },
36796
  onRender: function() {
36797
  // Dynamically update available post types
36798
  CommunicationComponent.getPostTypes().done(_.bind(this._updateContentTypes, this));
37054
 
37055
  /***/ },
37056
 
37057
+ /***/ 536:
37058
  /***/ function(module, exports, __webpack_require__) {
37059
 
37060
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**
37061
  * Social icons content block
37062
  */
37063
  !(__WEBPACK_AMD_DEFINE_ARRAY__ = [
37064
+ __webpack_require__(505),
37065
+ __webpack_require__(525),
37066
  __webpack_require__(466),
37067
+ __webpack_require__(493),
37068
+ __webpack_require__(495),
37069
  __webpack_require__(278),
37070
  __webpack_require__(273)
37071
  ], __WEBPACK_AMD_DEFINE_RESULT__ = function(App, BaseBlock, Backbone, Marionette, SuperModel, _, jQuery) {
assets/js/{public.84aece05.js → public.2ca16875.js} RENAMED
@@ -46,9 +46,10 @@
46
 
47
  __webpack_require__(1);
48
  __webpack_require__(2);
49
- __webpack_require__(6);
50
  __webpack_require__(7);
51
- module.exports = __webpack_require__(8);
 
52
 
53
 
54
  /***/ },
@@ -70,97 +71,136 @@
70
  /* 2 */
71
  /***/ function(module, exports, __webpack_require__) {
72
 
73
- var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(1), __webpack_require__(3), __webpack_require__(4)], __WEBPACK_AMD_DEFINE_RESULT__ = function(MailPoet, jQuery, _) {
74
- 'use strict';
75
- MailPoet.Ajax = {
76
- version: 0.5,
77
- options: {},
78
- defaults: {
79
- url: null,
80
- api_version: null,
81
- endpoint: null,
82
- action: null,
83
- token: null,
84
- data: {}
85
- },
86
- post: function(options) {
87
- return this.request('post', options);
88
- },
89
- init: function(options) {
90
- // merge options
91
- this.options = jQuery.extend({}, this.defaults, options);
92
-
93
- // set default url
94
- if(this.options.url === null) {
95
- this.options.url = ajaxurl;
96
- }
97
-
98
- // set default token
99
- if(this.options.token === null) {
100
- this.options.token = window.mailpoet_token;
101
- }
102
- },
103
- getParams: function() {
104
- return {
105
- action: 'mailpoet',
106
- api_version: this.options.api_version,
107
- token: this.options.token,
108
- endpoint: this.options.endpoint,
109
- method: this.options.action,
110
- data: this.options.data || {}
111
- }
112
- },
113
- request: function(method, options) {
114
- // set options
115
- this.init(options);
116
-
117
- // set request params
118
- var params = this.getParams();
119
- var deferred = jQuery.Deferred();
120
-
121
- // remove null values from the data object
122
- if (_.isObject(params.data)) {
123
- params.data = _.pick(params.data, function(value) {
124
- return (value !== null)
125
- })
126
- }
127
-
128
- // ajax request
129
- deferred = jQuery.post(
130
- this.options.url,
131
- params,
132
- null,
133
- 'json'
134
- ).then(function(data) {
135
- return data;
136
- }, function(xhr) {
137
- return xhr.responseJSON;
138
- });
139
-
140
- // clear options
141
- this.options = {};
142
-
143
- return deferred;
144
- }
145
- };
146
- }.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
147
 
148
 
149
  /***/ },
150
  /* 3 */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
151
  /***/ function(module, exports) {
152
 
153
  module.exports = jQuery;
154
 
155
  /***/ },
156
- /* 4 */
157
  /***/ function(module, exports, __webpack_require__) {
158
 
159
- /* WEBPACK VAR INJECTION */(function(global) {module.exports = global["_"] = __webpack_require__(5);
160
  /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))
161
 
162
  /***/ },
163
- /* 5 */
164
  /***/ function(module, exports, __webpack_require__) {
165
 
166
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// Underscore.js 1.8.3
@@ -1714,10 +1754,10 @@
1714
 
1715
 
1716
  /***/ },
1717
- /* 6 */
1718
  /***/ function(module, exports, __webpack_require__) {
1719
 
1720
- var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(1), __webpack_require__(3)], __WEBPACK_AMD_DEFINE_RESULT__ = function(MailPoet, jQuery) {
1721
  'use strict';
1722
  MailPoet.Iframe = {
1723
  marginY: 20,
@@ -1743,11 +1783,11 @@
1743
 
1744
 
1745
  /***/ },
1746
- /* 7 */
1747
  /***/ function(module, exports, __webpack_require__) {
1748
 
1749
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [
1750
- __webpack_require__(3)
1751
  ], __WEBPACK_AMD_DEFINE_RESULT__ = function(
1752
  $
1753
  ) {
@@ -1852,13 +1892,13 @@
1852
  }.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
1853
 
1854
  /***/ },
1855
- /* 8 */
1856
  /***/ function(module, exports, __webpack_require__) {
1857
 
1858
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [
1859
  __webpack_require__(1),
1860
- __webpack_require__(3),
1861
- __webpack_require__(9)
1862
  ], __WEBPACK_AMD_DEFINE_RESULT__ = function(
1863
  MailPoet,
1864
  jQuery,
@@ -1943,7 +1983,7 @@
1943
  }.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
1944
 
1945
  /***/ },
1946
- /* 9 */
1947
  /***/ function(module, exports, __webpack_require__) {
1948
 
1949
  /* WEBPACK VAR INJECTION */(function(global) {/*!
@@ -1967,7 +2007,7 @@
1967
  function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; return arr2; } else { return Array.from(arr); } }
1968
 
1969
  (function (global, factory) {
1970
- true ? module.exports = factory(__webpack_require__(3)) : typeof define === 'function' && define.amd ? define(['jquery'], factory) : global.parsley = factory(global.jQuery);
1971
  })(this, function ($) {
1972
  'use strict';
1973
 
46
 
47
  __webpack_require__(1);
48
  __webpack_require__(2);
49
+ __webpack_require__(3);
50
  __webpack_require__(7);
51
+ __webpack_require__(8);
52
+ module.exports = __webpack_require__(9);
53
 
54
 
55
  /***/ },
71
  /* 2 */
72
  /***/ function(module, exports, __webpack_require__) {
73
 
74
+ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [
75
+ __webpack_require__(1)
76
+ ], __WEBPACK_AMD_DEFINE_RESULT__ = function(
77
+ MailPoet
78
+ ) {
79
+ 'use strict';
80
+
81
+ var translations = {};
82
+
83
+ MailPoet.I18n = {
84
+ add: function(key, value) {
85
+ translations[key] = value;
86
+ },
87
+ t: function(key) {
88
+ return translations[key] || 'TRANSLATION "%$1s" NOT FOUND'.replace("%$1s", key);
89
+ },
90
+ all: function() {
91
+ return translations;
92
+ }
93
+ };
94
+
95
+ }.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
96
 
97
 
98
  /***/ },
99
  /* 3 */
100
+ /***/ function(module, exports, __webpack_require__) {
101
+
102
+ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;function requestFailed(errorMessage, xhr) {
103
+ if (xhr.responseJSON) {
104
+ return xhr.responseJSON;
105
+ }
106
+ var message = errorMessage.replace("%d", xhr.status);
107
+ return {
108
+ errors: [
109
+ {
110
+ message: message
111
+ }
112
+ ]
113
+ }
114
+ }
115
+
116
+ !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(1), __webpack_require__(4), __webpack_require__(5)], __WEBPACK_AMD_DEFINE_RESULT__ = function(MailPoet, jQuery, _) {
117
+
118
+ MailPoet.Ajax = {
119
+ version: 0.5,
120
+ options: {},
121
+ defaults: {
122
+ url: null,
123
+ api_version: null,
124
+ endpoint: null,
125
+ action: null,
126
+ token: null,
127
+ data: {}
128
+ },
129
+ post: function(options) {
130
+ return this.request('post', options);
131
+ },
132
+ init: function(options) {
133
+ // merge options
134
+ this.options = jQuery.extend({}, this.defaults, options);
135
+
136
+ // set default url
137
+ if(this.options.url === null) {
138
+ this.options.url = ajaxurl;
139
+ }
140
+
141
+ // set default token
142
+ if(this.options.token === null) {
143
+ this.options.token = window.mailpoet_token;
144
+ }
145
+ },
146
+ getParams: function() {
147
+ return {
148
+ action: 'mailpoet',
149
+ api_version: this.options.api_version,
150
+ token: this.options.token,
151
+ endpoint: this.options.endpoint,
152
+ method: this.options.action,
153
+ data: this.options.data || {}
154
+ }
155
+ },
156
+ request: function(method, options) {
157
+ // set options
158
+ this.init(options);
159
+
160
+ // set request params
161
+ var params = this.getParams();
162
+
163
+ // remove null values from the data object
164
+ if (_.isObject(params.data)) {
165
+ params.data = _.pick(params.data, function(value) {
166
+ return (value !== null)
167
+ })
168
+ }
169
+
170
+ // ajax request
171
+ var deferred = jQuery.post(
172
+ this.options.url,
173
+ params,
174
+ null,
175
+ 'json'
176
+ ).then(function(data) {
177
+ return data;
178
+ }, _.partial(requestFailed, MailPoet.I18n.t('ajaxFailedErrorMessage')));
179
+
180
+ // clear options
181
+ this.options = {};
182
+
183
+ return deferred;
184
+ }
185
+ };
186
+ }.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
187
+
188
+
189
+ /***/ },
190
+ /* 4 */
191
  /***/ function(module, exports) {
192
 
193
  module.exports = jQuery;
194
 
195
  /***/ },
196
+ /* 5 */
197
  /***/ function(module, exports, __webpack_require__) {
198
 
199
+ /* WEBPACK VAR INJECTION */(function(global) {module.exports = global["_"] = __webpack_require__(6);
200
  /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))
201
 
202
  /***/ },
203
+ /* 6 */
204
  /***/ function(module, exports, __webpack_require__) {
205
 
206
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// Underscore.js 1.8.3
1754
 
1755
 
1756
  /***/ },
1757
+ /* 7 */
1758
  /***/ function(module, exports, __webpack_require__) {
1759
 
1760
+ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(1), __webpack_require__(4)], __WEBPACK_AMD_DEFINE_RESULT__ = function(MailPoet, jQuery) {
1761
  'use strict';
1762
  MailPoet.Iframe = {
1763
  marginY: 20,
1783
 
1784
 
1785
  /***/ },
1786
+ /* 8 */
1787
  /***/ function(module, exports, __webpack_require__) {
1788
 
1789
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [
1790
+ __webpack_require__(4)
1791
  ], __WEBPACK_AMD_DEFINE_RESULT__ = function(
1792
  $
1793
  ) {
1892
  }.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
1893
 
1894
  /***/ },
1895
+ /* 9 */
1896
  /***/ function(module, exports, __webpack_require__) {
1897
 
1898
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [
1899
  __webpack_require__(1),
1900
+ __webpack_require__(4),
1901
+ __webpack_require__(10)
1902
  ], __WEBPACK_AMD_DEFINE_RESULT__ = function(
1903
  MailPoet,
1904
  jQuery,
1983
  }.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
1984
 
1985
  /***/ },
1986
+ /* 10 */
1987
  /***/ function(module, exports, __webpack_require__) {
1988
 
1989
  /* WEBPACK VAR INJECTION */(function(global) {/*!
2007
  function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; return arr2; } else { return Array.from(arr); } }
2008
 
2009
  (function (global, factory) {
2010
+ true ? module.exports = factory(__webpack_require__(4)) : typeof define === 'function' && define.amd ? define(['jquery'], factory) : global.parsley = factory(global.jQuery);
2011
  })(this, function ($) {
2012
  'use strict';
2013
 
assets/js/{vendor.6d57818a.js → vendor.25e2ce6a.js} RENAMED
@@ -76,7 +76,7 @@
76
  /******/ script.charset = 'utf-8';
77
  /******/ script.async = true;
78
 
79
- /******/ script.src = __webpack_require__.p + "" + ({"0":"admin","1":"admin_vendor","2":"form_editor","3":"mailpoet","4":"newsletter_editor"}[chunkId]||chunkId) + "." + {"0":"5cdc4c05","1":"d75e484a","2":"1f90e137","3":"8f856096","4":"ae63e604"}[chunkId] + ".chunk.js";
80
  /******/ head.appendChild(script);
81
  /******/ }
82
  /******/ };
@@ -99,17 +99,17 @@
99
  /***/ 0:
100
  /***/ function(module, exports, __webpack_require__) {
101
 
102
- __webpack_require__(470);
103
- __webpack_require__(502);
104
  module.exports = __webpack_require__(422);
105
 
106
 
107
  /***/ },
108
 
109
- /***/ 502:
110
  /***/ function(module, exports, __webpack_require__) {
111
 
112
- var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(470)], __WEBPACK_AMD_DEFINE_RESULT__ = function(Handlebars) {
113
  // Handlebars helpers
114
  Handlebars.registerHelper('concat', function() {
115
  var size = (arguments.length - 1),
@@ -539,7 +539,7 @@
539
 
540
  /***/ },
541
 
542
- /***/ 470:
543
  /***/ function(module, exports, __webpack_require__) {
544
 
545
  /*!
76
  /******/ script.charset = 'utf-8';
77
  /******/ script.async = true;
78
 
79
+ /******/ script.src = __webpack_require__.p + "" + ({"0":"admin","1":"admin_vendor","2":"form_editor","3":"mailpoet","4":"newsletter_editor"}[chunkId]||chunkId) + "." + {"0":"080e0640","1":"ad6d7a22","2":"4902de9a","3":"684f3a3c","4":"e810c798"}[chunkId] + ".chunk.js";
80
  /******/ head.appendChild(script);
81
  /******/ }
82
  /******/ };
99
  /***/ 0:
100
  /***/ function(module, exports, __webpack_require__) {
101
 
102
+ __webpack_require__(474);
103
+ __webpack_require__(506);
104
  module.exports = __webpack_require__(422);
105
 
106
 
107
  /***/ },
108
 
109
+ /***/ 506:
110
  /***/ function(module, exports, __webpack_require__) {
111
 
112
+ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(474)], __WEBPACK_AMD_DEFINE_RESULT__ = function(Handlebars) {
113
  // Handlebars helpers
114
  Handlebars.registerHelper('concat', function() {
115
  var size = (arguments.length - 1),
539
 
540
  /***/ },
541
 
542
+ /***/ 474:
543
  /***/ function(module, exports, __webpack_require__) {
544
 
545
  /*!
lang/index.php CHANGED
@@ -0,0 +1,3 @@
 
 
 
1
+ <?php
2
+
3
+ // Silence is golden
lang/mailpoet-es_ES.mo CHANGED
Binary file
lang/mailpoet-fa_IR.mo CHANGED
Binary file
lang/mailpoet-fr_FR.mo CHANGED
Binary file
lang/mailpoet.pot CHANGED
@@ -4,7 +4,7 @@ msgid ""
4
  msgstr ""
5
  "Project-Id-Version: \n"
6
  "Report-Msgid-Bugs-To: http://support.mailpoet.com/\n"
7
- "POT-Creation-Date: 2017-06-23 12:43:54+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -226,146 +226,166 @@ msgstr ""
226
  msgid "MailPoet Newsletter"
227
  msgstr ""
228
 
229
- #: lib/Config/MP2Migrator.php:150
230
  msgid "START IMPORT"
231
  msgstr ""
232
 
233
- #: lib/Config/MP2Migrator.php:165 views/mp2migration.html:63
234
  msgid "IMPORT COMPLETE"
235
  msgstr ""
236
 
237
- #: lib/Config/MP2Migrator.php:168
238
  msgid "END IMPORT"
239
  msgstr ""
240
 
241
- #: lib/Config/MP2Migrator.php:192
242
  msgid "MailPoet data erased"
243
  msgstr ""
244
 
245
- #: lib/Config/MP2Migrator.php:221 views/mp2migration.html:65
246
  msgid "IMPORT STOPPED BY USER"
247
  msgstr ""
248
 
249
- #: lib/Config/MP2Migrator.php:253
250
  msgid "MailPoet 2 data found:"
251
  msgstr ""
252
 
253
- #: lib/Config/MP2Migrator.php:258
254
  msgid "%d subscribers list"
255
  msgid_plural "%d subscribers lists"
256
  msgstr[0] ""
257
  msgstr[1] ""
258
 
259
- #: lib/Config/MP2Migrator.php:263
260
  msgid "%d subscriber"
261
  msgid_plural "%d subscribers"
262
  msgstr[0] ""
263
  msgstr[1] ""
264
 
265
- #: lib/Config/MP2Migrator.php:293
 
 
 
 
 
 
266
  msgid "Importing segments..."
267
  msgstr ""
268
 
269
- #: lib/Config/MP2Migrator.php:314
270
  msgid "%d segment imported"
271
  msgid_plural "%d segments imported"
272
  msgstr[0] ""
273
  msgstr[1] ""
274
 
275
- #: lib/Config/MP2Migrator.php:383
276
  msgid "Importing custom fields..."
277
  msgstr ""
278
 
279
- #: lib/Config/MP2Migrator.php:393
280
  msgid "%d custom field imported"
281
  msgid_plural "%d custom fields imported"
282
  msgstr[0] ""
283
  msgstr[1] ""
284
 
285
- #: lib/Config/MP2Migrator.php:503
286
  msgid "Importing subscribers..."
287
  msgstr ""
288
 
289
- #: lib/Config/MP2Migrator.php:525
290
  msgid "%d subscriber imported"
291
  msgid_plural "%d subscribers imported"
292
  msgstr[0] ""
293
  msgstr[1] ""
294
 
295
- #: lib/Config/Menu.php:66 lib/Config/Menu.php:67 views/newsletters.html:23
 
 
 
 
 
 
 
 
 
 
296
  msgid "Emails"
297
  msgstr ""
298
 
299
- #: lib/Config/Menu.php:90 lib/Config/Menu.php:91 views/forms.html:16
300
- #: views/mp2migration.html:14
301
  msgid "Forms"
302
  msgstr ""
303
 
304
- #: lib/Config/Menu.php:113 lib/Config/Menu.php:114
305
  #: views/subscribers/subscribers.html:18
306
  msgid "Subscribers"
307
  msgstr ""
308
 
309
- #: lib/Config/Menu.php:136 lib/Config/Menu.php:137 views/forms.html:44
310
  #: views/newsletters.html:64 views/newsletters.html:164 views/segments.html:13
311
  #: views/subscribers/subscribers.html:66
312
  msgid "Lists"
313
  msgstr ""
314
 
315
- #: lib/Config/Menu.php:160 lib/Config/Menu.php:161 views/form/editor.html:37
316
- #: views/mp2migration.html:13 views/newsletters.html:65 views/settings.html:6
317
  msgid "Settings"
318
  msgstr ""
319
 
320
- #: lib/Config/Menu.php:173 lib/Config/Menu.php:174 views/settings.html:22
 
 
 
 
321
  msgid "Premium"
322
  msgstr ""
323
 
324
- #: lib/Config/Menu.php:185 lib/Config/Menu.php:186
325
  #: views/subscribers/importExport/import.html:7
326
  #: views/subscribers/subscribers.html:94
327
  msgid "Import"
328
  msgstr ""
329
 
330
- #: lib/Config/Menu.php:197 lib/Config/Menu.php:198
331
  #: views/subscribers/importExport/export.html:6
332
  #: views/subscribers/importExport/export.html:96
333
  #: views/subscribers/subscribers.html:95
334
  msgid "Export"
335
  msgstr ""
336
 
337
- #: lib/Config/Menu.php:209 lib/Config/Menu.php:210 views/update.html:20
338
  #: views/welcome.html:29
339
  msgid "Welcome"
340
  msgstr ""
341
 
342
- #: lib/Config/Menu.php:221
343
  msgid "Migration"
344
  msgstr ""
345
 
346
- #: lib/Config/Menu.php:233 lib/Config/Menu.php:234 views/segments.html:43
347
  msgid "Update"
348
  msgstr ""
349
 
350
- #: lib/Config/Menu.php:245 lib/Config/Menu.php:246
351
  msgid "Form Editor"
352
  msgstr ""
353
 
354
- #: lib/Config/Menu.php:257 lib/Newsletter/Shortcodes/ShortcodesHelper.php:32
355
  #: views/newsletter/templates/components/sidebar/styles.hbs:74
356
  #: views/newsletters.html:119
357
  msgid "Newsletter"
358
  msgstr ""
359
 
360
- #: lib/Config/Menu.php:258 views/newsletter/editor.html:228
361
  msgid "Newsletter Editor"
362
  msgstr ""
363
 
364
- #: lib/Config/Menu.php:467
365
  msgid "In any WordPress role"
366
  msgstr ""
367
 
368
- #: lib/Config/Menu.php:543 views/premium.html:39
369
  msgid "MailPoet"
370
  msgstr ""
371
 
@@ -375,122 +395,92 @@ msgid ""
375
  "might work within a MultiSite environment, we don’t support it."
376
  msgstr ""
377
 
378
- #: lib/Config/Populator.php:139
379
  msgid "My First List"
380
  msgstr ""
381
 
382
- #: lib/Config/Populator.php:141
383
  msgid "This list is automatically created when you install MailPoet."
384
  msgstr ""
385
 
386
- #: lib/Config/PopulatorData/Templates/FranksRoastHouseTemplate.php:16
387
- msgid "Frank's Roast House"
388
  msgstr ""
389
 
390
- #: lib/Config/PopulatorData/Templates/FranksRoastHouseTemplate.php:17
391
- msgid ""
392
- "Think of this as your sandbox. Play around with this example newsletter to "
393
- "see what MailPoet can do for you."
394
  msgstr ""
395
 
396
- #: lib/Config/PopulatorData/Templates/FranksRoastHouseTemplate.php:49
397
- msgid ""
398
- "<a href=\"[link:newsletter_view_in_browser_url]\">Open this email in your "
399
- "web browser.</a>"
400
  msgstr ""
401
 
402
- #: lib/Config/PopulatorData/Templates/FranksRoastHouseTemplate.php:70
403
- msgid "Frank's Café"
404
  msgstr ""
405
 
406
- #: lib/Config/PopulatorData/Templates/FranksRoastHouseTemplate.php:91
407
- msgid ""
408
- "<p>Hi there [subscriber:firstname | default:coffee drinker]</p>\n"
409
- "<p></p>\n"
410
- "<p>Sit back and enjoy your favorite roast as you read this week's "
411
- "newsletter. </p>"
412
  msgstr ""
413
 
414
- #: lib/Config/PopulatorData/Templates/FranksRoastHouseTemplate.php:97
415
- msgid "Coffee grain"
416
  msgstr ""
417
 
418
- #: lib/Config/PopulatorData/Templates/FranksRoastHouseTemplate.php:109
419
- msgid ""
420
- "<h1 style=\"text-align: center;\">--- Guest Coffee Roaster: <em>Brew Bros. "
421
- "---</em></h1>\n"
422
- "<p><em></em></p>\n"
423
- "<p>Visit our Center Avenue store to try the latest guest coffee from Brew "
424
- "Bros, a local coffee roaster. This young duo started only two years ago, "
425
- "but have quickly gained popularity through pop-up shops, local events, and "
426
- "collaborations with food trucks.</p>\n"
427
- "<p></p>\n"
428
- "<blockquote>\n"
429
- "<p><span style=\"color: #ff6600;\"><em>Tasting notes: A rich, caramel "
430
- "flavor with subtle hints of molasses. The perfect wake-up morning "
431
- "espresso!</em></span></p>\n"
432
- "</blockquote>"
433
  msgstr ""
434
 
435
- #: lib/Config/PopulatorData/Templates/FranksRoastHouseTemplate.php:135
436
- msgid "<h2>Sandwich Competition</h2>"
437
  msgstr ""
438
 
439
- #: lib/Config/PopulatorData/Templates/FranksRoastHouseTemplate.php:141
440
- msgid "Sandwich"
441
  msgstr ""
442
 
443
- #: lib/Config/PopulatorData/Templates/FranksRoastHouseTemplate.php:153
444
- msgid ""
445
- "<p>Have an idea for the Next Great Sandwich? Tell us! We're offering free "
446
- "lunch for a month if you can invent an awesome new sandwich for our "
447
- "menu.</p>\n"
448
- "<p></p>\n"
449
- "<p></p>\n"
450
- "<p>Simply tweet your ideas to <a href=\"http://www.example.com\" "
451
- "title=\"This isn't a real twitter account\">@franksroasthouse</a> and use "
452
- "#sandwichcomp and we'll let you know if you're a winner.</p>"
453
  msgstr ""
454
 
455
- #: lib/Config/PopulatorData/Templates/FranksRoastHouseTemplate.php:178
456
- msgid "<h3 style=\"text-align: center;\">Follow Us</h3>"
457
  msgstr ""
458
 
459
- #: lib/Config/PopulatorData/Templates/FranksRoastHouseTemplate.php:235
460
- msgid "<h2>New Store Opening!</h2>"
461
  msgstr ""
462
 
463
- #: lib/Config/PopulatorData/Templates/FranksRoastHouseTemplate.php:241
464
- msgid "Map"
465
  msgstr ""
466
 
467
- #: lib/Config/PopulatorData/Templates/FranksRoastHouseTemplate.php:253
468
- msgid ""
469
- "<p>Watch out Broad Street, we're coming to you very soon! </p>\n"
470
- "<p></p>\n"
471
- "<p>Keep an eye on your inbox, as we'll have some special offers for our "
472
- "email subscribers plus an exclusive launch party invite!<br /><br /></p>"
473
  msgstr ""
474
 
475
- #: lib/Config/PopulatorData/Templates/FranksRoastHouseTemplate.php:257
476
- msgid ""
477
- "<h2>New and Improved Hours!</h2>\n"
478
- "<p></p>\n"
479
- "<p>Frank's is now open even later, so you can get your caffeine fix all day "
480
- "(and night) long! Here's our new opening hours:</p>\n"
481
- "<p></p>\n"
482
- "<ul>\n"
483
- "<li>Monday - Thursday: 6am - 12am</li>\n"
484
- "<li>Friday - Saturday: 6am - 1:30am</li>\n"
485
- "<li>Sunday: 7:30am - 11pm</li>\n"
486
- "</ul>"
487
  msgstr ""
488
 
489
- #: lib/Config/PopulatorData/Templates/FranksRoastHouseTemplate.php:283
490
- msgid ""
491
- "<p><a href=\"[link:subscription_unsubscribe_url]\">Unsubscribe</a> | <a "
492
- "href=\"[link:subscription_manage_url]\">Manage subscription</a><br />12345 "
493
- "MailPoet Drive, EmailVille, 76543</p>"
 
 
 
 
 
 
 
 
 
 
 
 
 
494
  msgstr ""
495
 
496
  #: lib/Config/PopulatorData/Templates/NewsletterBlank121Column.php:17
@@ -708,6 +698,14 @@ msgid ""
708
  "</ol>"
709
  msgstr ""
710
 
 
 
 
 
 
 
 
 
711
  #: lib/Config/PopulatorData/Templates/PostNotificationsBlank1Column.php:17
712
  msgid "Post Notifications: Blank 1 Column"
713
  msgstr ""
@@ -752,12 +750,20 @@ msgstr ""
752
  msgid "Read the post"
753
  msgstr ""
754
 
755
- #: lib/Config/PopulatorData/Templates/Restaurant.php:17
756
- msgid "Restaurant"
 
 
 
 
757
  msgstr ""
758
 
759
- #: lib/Config/PopulatorData/Templates/Restaurant.php:18
760
- msgid "What's fresh on the menu?"
 
 
 
 
761
  msgstr ""
762
 
763
  #: lib/Config/PopulatorData/Templates/SimpleText.php:17
@@ -796,208 +802,20 @@ msgid ""
796
  "<p><strong><em>The MailPoet Team</em></strong></p>"
797
  msgstr ""
798
 
799
- #: lib/Config/PopulatorData/Templates/StoreDiscount.php:17
800
- msgid "Store Discount"
801
- msgstr ""
802
-
803
- #: lib/Config/PopulatorData/Templates/StoreDiscount.php:18
804
- msgid "Store discount email with coupon and shopping suggestions"
805
- msgstr ""
806
-
807
- #: lib/Config/PopulatorData/Templates/StoreDiscount.php:63
808
- msgid "bicycle-header3"
809
  msgstr ""
810
 
811
- #: lib/Config/PopulatorData/Templates/StoreDiscount.php:74
812
- msgid ""
813
- "<p></p>\n"
814
- "<p>Hi [subscriber:firstname | default:reader]</p>\n"
815
- "<p class=\"\"></p>\n"
816
- "<p>Fancy 15% off your next order? Use this coupon on any product in our "
817
- "store. Expires Wednesday! To apply the discount, enter the code on the "
818
- "payments page.</p>"
819
- msgstr ""
820
-
821
- #: lib/Config/PopulatorData/Templates/StoreDiscount.php:114
822
- msgid ""
823
- "<h1 style=\"text-align: center;\"><em><strong>Get a 15% off your next "
824
- "order</strong></em></h1>"
825
- msgstr ""
826
-
827
- #: lib/Config/PopulatorData/Templates/StoreDiscount.php:117
828
- msgid ""
829
- "<h2 style=\"text-align: center;\"><strong>USE CODE: "
830
- "WELOVEMAILPOET</strong></h2>"
831
- msgstr ""
832
-
833
- #: lib/Config/PopulatorData/Templates/StoreDiscount.php:157
834
- msgid "SHOP NOW"
835
- msgstr ""
836
-
837
- #: lib/Config/PopulatorData/Templates/StoreDiscount.php:177
838
- msgid ""
839
- "<h1 style=\"text-align: center;\"><strong><em>Use your discount on these "
840
- "great products...</em></strong></h1>"
841
- msgstr ""
842
-
843
- #: lib/Config/PopulatorData/Templates/StoreDiscount.php:208
844
- msgid "red-bicycle"
845
- msgstr ""
846
-
847
- #: lib/Config/PopulatorData/Templates/StoreDiscount.php:219
848
- msgid ""
849
- "<h3 style=\"text-align: center;\">Lovely Red Bicycle</h3>\n"
850
- "<p>What can we say? It's a totally awesome red bike, and it's the first of "
851
- "its kind in our collection. No sweat!</p>\n"
852
- "<h3 style=\"text-align: center;\"><strong><span style=\"color: "
853
- "#488e88;\">$289.99</span></strong></h3>"
854
- msgstr ""
855
-
856
- #: lib/Config/PopulatorData/Templates/StoreDiscount.php:222
857
- #: lib/Config/PopulatorData/Templates/StoreDiscount.php:267
858
- msgid "Buy"
859
- msgstr ""
860
-
861
- #: lib/Config/PopulatorData/Templates/StoreDiscount.php:253
862
- msgid "orange-bicycle"
863
- msgstr ""
864
-
865
- #: lib/Config/PopulatorData/Templates/StoreDiscount.php:264
866
- msgid ""
867
- "<h3 style=\"text-align: center;\">Little Orange Bicycle</h3>\n"
868
- "<p>Another product that's just as awesome but it's the second type, and "
869
- "more orange, with some blue. Cool beans!</p>\n"
870
- "<h3 style=\"line-height: 22.4px; text-align: center;\"><span style=\"color: "
871
- "#488e88;\"><strong>$209.99</strong></span></h3>"
872
- msgstr ""
873
-
874
- #: lib/Config/PopulatorData/Templates/StoreDiscount.php:324
875
- msgid ""
876
- "<p><em>Terms and Conditions:</em></p>\n"
877
- "<ul>\n"
878
- "<li><span style=\"line-height: 1.6em; background-color: inherit;\">Must be "
879
- "used by midnight EST December 15 2036.</span></li>\n"
880
- "<li><span style=\"line-height: 1.6em; background-color: inherit;\">Discount "
881
- "does not include shipping.</span></li>\n"
882
- "<li><span style=\"line-height: 1.6em; background-color: inherit;\">Cannot "
883
- "be used in conjunction with any other offer.</span></li>\n"
884
- "</ul>"
885
- msgstr ""
886
-
887
- #: lib/Config/PopulatorData/Templates/StoreDiscount.php:335
888
- #: views/newsletter/editor.html:1140
889
- msgid "Facebook"
890
- msgstr ""
891
-
892
- #: lib/Config/PopulatorData/Templates/StoreDiscount.php:343
893
- #: lib/Config/PopulatorData/Templates/TravelEmail.php:85
894
- #: views/newsletter/editor.html:1151
895
- msgid "Twitter"
896
- msgstr ""
897
-
898
- #: lib/Config/PopulatorData/Templates/StoreDiscount.php:347
899
- msgid ""
900
- "<p><a href=\"[link:subscription_unsubscribe_url]\">Unsubscribe</a> | <a "
901
- "href=\"[link:subscription_manage_url]\">Manage subscription</a></p>\n"
902
- "<p>1 Store Street, Shopville, CA 1345</p>"
903
  msgstr ""
904
 
905
- #: lib/Config/PopulatorData/Templates/TravelEmail.php:17
906
- msgid "Travel email"
907
  msgstr ""
908
 
909
- #: lib/Config/PopulatorData/Templates/TravelEmail.php:18
910
- msgid "A little postcard from your trip"
911
- msgstr ""
912
-
913
- #: lib/Config/PopulatorData/Templates/TravelEmail.php:55
914
- msgid "Travelling Tales with Jane & Steven"
915
- msgstr ""
916
-
917
- #: lib/Config/PopulatorData/Templates/TravelEmail.php:74
918
- msgid ""
919
- "<h1 style=\"text-align: center;\">Hi [subscriber:firstname | "
920
- "default:reader]!</h1>\n"
921
- "<p></p>\n"
922
- "<p>Greetings from New Zealand! We're here enjoying the sights, sounds, and "
923
- "smells of Rotarua! Yesterday, we visited the local hot springs, and today, "
924
- "we're going swimming.</p>\n"
925
- "<p>Don't forget to stay updated with Twitter!</p>"
926
- msgstr ""
927
-
928
- #: lib/Config/PopulatorData/Templates/TravelEmail.php:89
929
- msgid "<h1 style=\"text-align: center;\"><strong>Photos from Rotarua</strong></h1>"
930
- msgstr ""
931
-
932
- #: lib/Config/PopulatorData/Templates/TravelEmail.php:120
933
- msgid "hot thermals"
934
- msgstr ""
935
-
936
- #: lib/Config/PopulatorData/Templates/TravelEmail.php:150
937
- msgid "The view from our campsite"
938
- msgstr ""
939
-
940
- #: lib/Config/PopulatorData/Templates/TravelEmail.php:189
941
- msgid "Red sky at night"
942
- msgstr ""
943
-
944
- #: lib/Config/PopulatorData/Templates/TravelEmail.php:211
945
- msgid "Don't go chasing waterfalls"
946
- msgstr ""
947
-
948
- #: lib/Config/PopulatorData/Templates/TravelEmail.php:248
949
- msgid "View NZ Photo Gallery"
950
- msgstr ""
951
-
952
- #: lib/Config/PopulatorData/Templates/TravelEmail.php:297
953
- msgid "<h2><em>Here's our top recommendations in Rotarua</em></h2>"
954
- msgstr ""
955
-
956
- #: lib/Config/PopulatorData/Templates/TravelEmail.php:328
957
- msgid "Glowworms, Waitomo Caves"
958
- msgstr ""
959
-
960
- #: lib/Config/PopulatorData/Templates/TravelEmail.php:339
961
- msgid ""
962
- "<p><em><a "
963
- "href=\"http://www.waitomo.com/Waitomo-Glowworm-Caves/Pages/default.aspx\"><"
964
- "strong>Waitomo GlowWorm Caves</strong></a></em></p>"
965
- msgstr ""
966
-
967
- #: lib/Config/PopulatorData/Templates/TravelEmail.php:353
968
- msgid "luge"
969
- msgstr ""
970
-
971
- #: lib/Config/PopulatorData/Templates/TravelEmail.php:364
972
- msgid ""
973
- "<p><em><strong><a "
974
- "href=\"http://www.skyline.co.nz/rotorua/ssr_luge/\">Luge!</a></strong></em><"
975
- "/p>"
976
- msgstr ""
977
-
978
- #: lib/Config/PopulatorData/Templates/TravelEmail.php:378
979
- msgid "holiday-park"
980
- msgstr ""
981
-
982
- #: lib/Config/PopulatorData/Templates/TravelEmail.php:389
983
- msgid ""
984
- "<p><em><strong><a href=\"http://rotoruathermal.co.nz/\">Roturua Thermal "
985
- "Holiday Park</a></strong></em></p>"
986
- msgstr ""
987
-
988
- #: lib/Config/PopulatorData/Templates/TravelEmail.php:418
989
- msgid ""
990
- "<p>Tomorrow we're heading towards Taupo where we'll visit the 'Craters of "
991
- "the moon' and go prawn fishing! Hopefully the weather will stay good.</p>\n"
992
- "<p></p>\n"
993
- "<p>Keep on travellin'</p>\n"
994
- "<p>Jane &amp; Steven</p>"
995
- msgstr ""
996
-
997
- #: lib/Config/PopulatorData/Templates/TravelEmail.php:468
998
- msgid ""
999
- "<p><a href=\"[link:subscription_unsubscribe_url]\">Unsubscribe</a> | <a "
1000
- "href=\"[link:subscription_manage_url]\">Manage subscription</a></p>"
1001
  msgstr ""
1002
 
1003
  #: lib/Config/PopulatorData/Templates/WelcomeBlank12Column.php:17
@@ -1083,6 +901,22 @@ msgid ""
1083
  "</ol>"
1084
  msgstr ""
1085
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1086
  #: lib/Config/Renderer.php:107
1087
  msgid ""
1088
  "Failed to render template \"%s\". Please ensure the template cache folder "
@@ -1158,6 +992,10 @@ msgstr ""
1158
  msgid "Preview in a new tab"
1159
  msgstr ""
1160
 
 
 
 
 
1161
  #: lib/Cron/CronHelper.php:103
1162
  msgid "Site URL is unreachable."
1163
  msgstr ""
@@ -1369,7 +1207,7 @@ msgstr ""
1369
  #: lib/Models/NewsletterOptionField.php:12 lib/Models/NewsletterTemplate.php:13
1370
  #: lib/Models/Segment.php:15 lib/Models/Setting.php:22
1371
  #: views/form/templates/settings/field_form.hbs:53
1372
- #: views/subscribers/importExport/import/step2.html:137
1373
  msgid "Please specify a name."
1374
  msgstr ""
1375
 
@@ -1384,13 +1222,13 @@ msgid "All"
1384
  msgstr ""
1385
 
1386
  #: lib/Models/Form.php:98 lib/Models/Newsletter.php:716
1387
- #: lib/Models/Segment.php:138 lib/Models/Subscriber.php:372 views/forms.html:57
1388
  #: views/newsletters.html:76 views/segments.html:50
1389
  #: views/subscribers/subscribers.html:37
1390
  msgid "Trash"
1391
  msgstr ""
1392
 
1393
- #: lib/Models/Model.php:54 views/subscribers/importExport/import/step2.html:140
1394
  msgid "Another record already exists. Please specify a different \"%1$s\"."
1395
  msgstr ""
1396
 
@@ -1782,19 +1620,19 @@ msgstr ""
1782
  msgid "Accidentally unsubscribed?"
1783
  msgstr ""
1784
 
1785
- #: lib/Twig/Functions.php:88 views/settings/mta.html:988
1786
  msgid "every minute"
1787
  msgstr ""
1788
 
1789
- #: lib/Twig/Functions.php:89 views/settings/mta.html:989
1790
  msgid "every %1$d minutes"
1791
  msgstr ""
1792
 
1793
- #: lib/Twig/Functions.php:90 views/settings/mta.html:990
1794
  msgid "every hour"
1795
  msgstr ""
1796
 
1797
- #: lib/Twig/Functions.php:91 views/settings/mta.html:991
1798
  msgid "every %1$d hours"
1799
  msgstr ""
1800
 
@@ -1986,11 +1824,11 @@ msgstr ""
1986
  #: views/newsletter/templates/blocks/automatedLatestContent/settings.hbs:281
1987
  #: views/newsletter/templates/blocks/posts/settingsDisplayOptions.hbs:79
1988
  #: views/newsletter/templates/blocks/posts/settingsDisplayOptions.hbs:221
1989
- #: views/premium.html:54 views/settings/advanced.html:93
1990
- #: views/settings/advanced.html:133 views/settings/bounce.html:190
1991
- #: views/settings/mta.html:572 views/settings/signup.html:34
1992
  #: views/subscribers/importExport/export.html:33
1993
- #: views/subscribers/importExport/import/step2.html:66
1994
  msgid "Yes"
1995
  msgstr ""
1996
 
@@ -2005,12 +1843,12 @@ msgstr ""
2005
  #: views/newsletter/templates/blocks/posts/settingsDisplayOptions.hbs:139
2006
  #: views/newsletter/templates/blocks/posts/settingsDisplayOptions.hbs:165
2007
  #: views/newsletter/templates/blocks/posts/settingsDisplayOptions.hbs:227
2008
- #: views/premium.html:60 views/premium.html:61 views/settings/advanced.html:104
2009
- #: views/settings/advanced.html:144 views/settings/bounce.html:148
2010
- #: views/settings/bounce.html:179 views/settings/mta.html:535
2011
- #: views/settings/mta.html:583 views/settings/signup.html:46
2012
  #: views/subscribers/importExport/export.html:38
2013
- #: views/subscribers/importExport/import/step2.html:70
2014
  msgid "No"
2015
  msgstr ""
2016
 
@@ -2071,7 +1909,7 @@ msgstr ""
2071
  #: views/newsletter/templates/blocks/image/settings.hbs:40
2072
  #: views/newsletter/templates/blocks/social/settings.hbs:6
2073
  #: views/newsletter/templates/blocks/spacer/settings.hbs:10
2074
- #: views/subscribers/importExport/import/step2.html:151
2075
  msgid "Done"
2076
  msgstr ""
2077
 
@@ -2144,183 +1982,215 @@ msgstr ""
2144
  msgid "An error occurred, make sure you have filled all the required fields."
2145
  msgstr ""
2146
 
2147
- #: views/forms.html:17 views/newsletters.html:29 views/segments.html:14
 
 
 
 
 
 
2148
  #: views/subscribers/subscribers.html:19
2149
  msgid "Search"
2150
  msgstr ""
2151
 
2152
- #: views/forms.html:18
2153
  msgid "Loading forms..."
2154
  msgstr ""
2155
 
2156
- #: views/forms.html:19
2157
  msgid "No forms were found. Why not create a new one?"
2158
  msgstr ""
2159
 
2160
- #: views/forms.html:20
2161
  msgid "All forms on this page are selected."
2162
  msgstr ""
2163
 
2164
- #: views/forms.html:21
2165
  msgid "All %d forms are selected."
2166
  msgstr ""
2167
 
2168
- #: views/forms.html:22
2169
  msgid "Select all forms on all pages"
2170
  msgstr ""
2171
 
2172
- #: views/forms.html:23 views/newsletters.html:35 views/segments.html:20
2173
  #: views/subscribers/subscribers.html:27
2174
  msgid "Clear selection"
2175
  msgstr ""
2176
 
2177
- #: views/forms.html:24
2178
  msgid "%d forms permanently deleted."
2179
  msgstr ""
2180
 
2181
- #: views/forms.html:25 views/newsletters.html:37 views/segments.html:22
2182
  #: views/subscribers/subscribers.html:29
2183
  msgid "Select bulk action"
2184
  msgstr ""
2185
 
2186
- #: views/forms.html:26 views/newsletters.html:38 views/segments.html:23
2187
  #: views/subscribers/subscribers.html:30
2188
  msgid "Bulk Actions"
2189
  msgstr ""
2190
 
2191
- #: views/forms.html:27 views/newsletters.html:39 views/segments.html:24
2192
  #: views/subscribers/subscribers.html:31
2193
  msgid "Apply"
2194
  msgstr ""
2195
 
2196
- #: views/forms.html:28 views/newsletters.html:40
2197
  #: views/subscribers/subscribers.html:32
2198
  msgid "Filter"
2199
  msgstr ""
2200
 
2201
- #: views/forms.html:29 views/newsletters.html:41 views/segments.html:52
2202
  #: views/subscribers/subscribers.html:33
2203
  msgid "Empty Trash"
2204
  msgstr ""
2205
 
2206
- #: views/forms.html:30 views/newsletters.html:42 views/segments.html:53
2207
  #: views/subscribers/subscribers.html:34
2208
  msgid "Select All"
2209
  msgstr ""
2210
 
2211
- #: views/forms.html:31 views/newsletters.html:43 views/segments.html:54
2212
  #: views/subscribers/subscribers.html:36
2213
  msgid "Restore"
2214
  msgstr ""
2215
 
2216
- #: views/forms.html:32 views/newsletters.html:44
2217
  #: views/subscribers/subscribers.html:39
2218
  msgid "Delete Permanently"
2219
  msgstr ""
2220
 
2221
- #: views/forms.html:34 views/newsletters.html:47 views/segments.html:58
2222
  #: views/subscribers/subscribers.html:42
2223
  msgid "Previous page"
2224
  msgstr ""
2225
 
2226
- #: views/forms.html:35 views/newsletters.html:48 views/segments.html:59
2227
  #: views/subscribers/subscribers.html:43
2228
  msgid "First page"
2229
  msgstr ""
2230
 
2231
- #: views/forms.html:36 views/newsletters.html:49 views/segments.html:60
2232
  #: views/subscribers/subscribers.html:44
2233
  msgid "Next page"
2234
  msgstr ""
2235
 
2236
- #: views/forms.html:37 views/newsletters.html:50 views/segments.html:61
2237
  #: views/subscribers/subscribers.html:45
2238
  msgid "Last page"
2239
  msgstr ""
2240
 
2241
- #: views/forms.html:38 views/subscribers/subscribers.html:46
2242
  msgid "Current Page"
2243
  msgstr ""
2244
 
2245
- #: views/forms.html:39 views/newsletters.html:52 views/segments.html:63
2246
  #: views/subscribers/subscribers.html:47
2247
  msgid "of"
2248
  msgstr ""
2249
 
2250
- #: views/forms.html:40 views/newsletters.html:53 views/segments.html:64
2251
  #: views/subscribers/subscribers.html:48
2252
  msgid "1 item"
2253
  msgstr ""
2254
 
2255
- #: views/forms.html:41 views/newsletters.html:54 views/segments.html:65
2256
  #: views/subscribers/subscribers.html:49
2257
  msgid "%$1d items"
2258
  msgstr ""
2259
 
2260
- #: views/forms.html:43 views/segments.html:25
2261
- #: views/subscribers/importExport/import/step2.html:133
2262
  msgid "Name"
2263
  msgstr ""
2264
 
2265
- #: views/forms.html:45
2266
  msgid "User choice:"
2267
  msgstr ""
2268
 
2269
- #: views/forms.html:46
2270
  msgid "Sign-ups"
2271
  msgstr ""
2272
 
2273
- #: views/forms.html:47
2274
  msgid "Created On"
2275
  msgstr ""
2276
 
2277
- #: views/forms.html:48
2278
  msgid "1 form was moved to the trash."
2279
  msgstr ""
2280
 
2281
- #: views/forms.html:49
2282
  msgid "%$1d forms were moved to the trash."
2283
  msgstr ""
2284
 
2285
- #: views/forms.html:50
2286
  msgid "1 form was permanently deleted."
2287
  msgstr ""
2288
 
2289
- #: views/forms.html:51
2290
  msgid "%$1d forms were permanently deleted."
2291
  msgstr ""
2292
 
2293
- #: views/forms.html:52
2294
  msgid "1 form has been restored from the trash."
2295
  msgstr ""
2296
 
2297
- #: views/forms.html:53
2298
  msgid "%$1d forms have been restored from the trash."
2299
  msgstr ""
2300
 
2301
- #: views/forms.html:54 views/newsletters.html:78 views/segments.html:49
2302
  #: views/subscribers/subscribers.html:35
2303
  msgid "Edit"
2304
  msgstr ""
2305
 
2306
- #: views/forms.html:55 views/newsletters.html:79 views/segments.html:41
2307
  msgid "Duplicate"
2308
  msgstr ""
2309
 
2310
- #: views/forms.html:56
2311
  msgid "Form \"%$1s\" has been duplicated."
2312
  msgstr ""
2313
 
2314
- #: views/forms.html:58 views/newsletters.html:77 views/segments.html:51
2315
  #: views/subscribers/subscribers.html:38
2316
  msgid "Move to trash"
2317
  msgstr ""
2318
 
2319
- #: views/forms.html:59 views/newsletters.html:91 views/segments.html:48
2320
  #: views/subscribers/subscribers.html:93
2321
  msgid "Add New"
2322
  msgstr ""
2323
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2324
  #: views/index.html:5
2325
  msgid " %sSet up%s MailPoet and start sending."
2326
  msgstr ""
@@ -2337,7 +2207,13 @@ msgstr ""
2337
  msgid "Visit MailPoet.com to purchase a key"
2338
  msgstr ""
2339
 
2340
- #: views/layout.html:80
 
 
 
 
 
 
2341
  msgid ""
2342
  "Want to give feedback to the MailPoet team? Contact us here. Please provide "
2343
  "as much information as possible!"
@@ -2389,8 +2265,7 @@ msgstr ""
2389
  msgid "Subscribers and lists"
2390
  msgstr ""
2391
 
2392
- #: views/mp2migration.html:13 views/mp2migration.html:14
2393
- #: views/mp2migration.html:15
2394
  msgid "soon"
2395
  msgstr ""
2396
 
@@ -2500,7 +2375,7 @@ msgstr ""
2500
 
2501
  #: views/newsletter/editor.html:316
2502
  #: views/newsletter/templates/blocks/base/toolsGeneric.hbs:6
2503
- #: views/subscribers/importExport/import/step2.html:153
2504
  msgid "Cancel"
2505
  msgstr ""
2506
 
@@ -2607,6 +2482,14 @@ msgstr ""
2607
  msgid "An image of..."
2608
  msgstr ""
2609
 
 
 
 
 
 
 
 
 
2610
  #: views/newsletter/editor.html:1164
2611
  msgid "Edit this to insert text."
2612
  msgstr ""
@@ -3029,6 +2912,10 @@ msgstr ""
3029
  msgid "Private"
3030
  msgstr ""
3031
 
 
 
 
 
3032
  #: views/newsletter/templates/blocks/posts/settingsSelectionEmpty.hbs:1
3033
  msgid "No posts available"
3034
  msgstr ""
@@ -3384,7 +3271,7 @@ msgid ""
3384
  msgstr ""
3385
 
3386
  #: views/newsletters.html:130 views/settings/mta.html:97
3387
- #: views/settings/mta.html:638
3388
  msgid "Activate"
3389
  msgstr ""
3390
 
@@ -3881,47 +3768,47 @@ msgid ""
3881
  "MailPoet[/link]."
3882
  msgstr ""
3883
 
3884
- #: views/premium.html:103
3885
  msgid "Welcome to My Newsletter!"
3886
  msgstr ""
3887
 
3888
- #: views/premium.html:109
3889
  msgid ""
3890
  "Want to send autoresponders and welcome emails to your subscribers? In "
3891
  "MailPoet, it’s easy as 1-2-3. Create welcome emails, educational courses, "
3892
  "and other automatic email newsletters."
3893
  msgstr ""
3894
 
3895
- #: views/premium.html:112
3896
  msgid "We’re Here to Help!"
3897
  msgstr ""
3898
 
3899
- #: views/premium.html:118
3900
  msgid ""
3901
  "We pride ourselves on giving nearly round-the-clock support. Our remote "
3902
  "team spans several continents, hemispheres, and time-zones! If you’ve got a "
3903
  "problem, we will help you fix it!"
3904
  msgstr ""
3905
 
3906
- #: views/premium.html:124
3907
  msgid "Get Started for Just $10"
3908
  msgstr ""
3909
 
3910
- #: views/premium.html:127
3911
  msgid ""
3912
  "Our plans start at just $10 per month. Each plan offers unlimited emails. "
3913
  "Pricing scales up with the size of your list."
3914
  msgstr ""
3915
 
3916
- #: views/premium.html:135
3917
  msgid "Purchase Now"
3918
  msgstr ""
3919
 
3920
- #: views/premium.html:139
3921
  msgid "Already a Premium customer? [link]Add your Key in the Settings page[/link]."
3922
  msgstr ""
3923
 
3924
- #: views/premium.html:146
3925
  msgid ""
3926
  "Don't need to use our sending service? Not a problem; we understand. You "
3927
  "can also [link]buy the Premium[/link] features separately. Prices start at "
@@ -3953,7 +3840,7 @@ msgstr ""
3953
  msgid "%d lists were permanently deleted."
3954
  msgstr ""
3955
 
3956
- #: views/segments.html:26 views/subscribers/importExport/import/step2.html:143
3957
  msgid "Description"
3958
  msgstr ""
3959
 
@@ -4041,35 +3928,35 @@ msgstr ""
4041
  msgid "MailPoet's own script. Doesn't work with [link]these hosts[/link]."
4042
  msgstr ""
4043
 
4044
- #: views/settings/advanced.html:77
4045
  msgid "Open and click tracking"
4046
  msgstr ""
4047
 
4048
- #: views/settings/advanced.html:80
4049
  msgid "Enable or disable open and click tracking."
4050
  msgstr ""
4051
 
4052
- #: views/settings/advanced.html:113
4053
  msgid "Share anonymous data"
4054
  msgstr ""
4055
 
4056
- #: views/settings/advanced.html:116
4057
  msgid ""
4058
  "Share anonymous data and help us improve the plugin. We appreciate your "
4059
  "help!"
4060
  msgstr ""
4061
 
4062
- #: views/settings/advanced.html:152
4063
  msgid "Reinstall from scratch"
4064
  msgstr ""
4065
 
4066
- #: views/settings/advanced.html:154
4067
  msgid ""
4068
  "Want to start from the beginning? This will completely delete MailPoet and "
4069
  "reinstall it from scratch. Remember: you will lose all of your data!"
4070
  msgstr ""
4071
 
4072
- #: views/settings/advanced.html:162
4073
  msgid "Reinstall now..."
4074
  msgstr ""
4075
 
@@ -4230,11 +4117,11 @@ msgstr ""
4230
  msgid "Hostname"
4231
  msgstr ""
4232
 
4233
- #: views/settings/bounce.html:50 views/settings/mta.html:496
4234
  msgid "Login"
4235
  msgstr ""
4236
 
4237
- #: views/settings/bounce.html:67 views/settings/mta.html:513
4238
  msgid "Password"
4239
  msgstr ""
4240
 
@@ -4349,147 +4236,147 @@ msgid ""
4349
  "methods[/link]."
4350
  msgstr ""
4351
 
4352
- #: views/settings/mta.html:167 views/settings/mta.html:300
4353
  msgid "Sending frequency"
4354
  msgstr ""
4355
 
4356
- #: views/settings/mta.html:178
4357
  msgid "Safe default values"
4358
  msgstr ""
4359
 
4360
- #: views/settings/mta.html:186
4361
  msgid "I'll set my own frequency"
4362
  msgstr ""
4363
 
4364
- #: views/settings/mta.html:191
4365
  msgid "Input your host's recommended sending frequency"
4366
  msgstr ""
4367
 
4368
- #: views/settings/mta.html:224 views/settings/mta.html:317
4369
  msgid "emails"
4370
  msgstr ""
4371
 
4372
- #: views/settings/mta.html:241 views/settings/mta.html:334
4373
  msgid "recommended"
4374
  msgstr ""
4375
 
4376
- #: views/settings/mta.html:250
4377
  msgid ""
4378
  "<strong>Warning!</strong> Sending more than the recommended amount of "
4379
  "emails? You may break the terms of your web host or provider!"
4380
  msgstr ""
4381
 
4382
- #: views/settings/mta.html:252
4383
  msgid ""
4384
  "Please ask your host for the maximum number of emails you are allowed to "
4385
  "send per day."
4386
  msgstr ""
4387
 
4388
- #: views/settings/mta.html:268
4389
  msgid "Provider"
4390
  msgstr ""
4391
 
4392
- #: views/settings/mta.html:278
4393
  msgid "Custom SMTP"
4394
  msgstr ""
4395
 
4396
- #: views/settings/mta.html:281
4397
  msgid "Select your provider"
4398
  msgstr ""
4399
 
4400
- #: views/settings/mta.html:347
4401
  msgid "SMTP Hostname"
4402
  msgstr ""
4403
 
4404
- #: views/settings/mta.html:350 views/settings/mta.html:461
4405
  msgid "e.g.: smtp.mydomain.com"
4406
  msgstr ""
4407
 
4408
- #: views/settings/mta.html:366
4409
  msgid "SMTP Port"
4410
  msgstr ""
4411
 
4412
- #: views/settings/mta.html:387
4413
  msgid "Region"
4414
  msgstr ""
4415
 
4416
- #: views/settings/mta.html:416
4417
  msgid "Access Key"
4418
  msgstr ""
4419
 
4420
- #: views/settings/mta.html:437
4421
  msgid "Secret Key"
4422
  msgstr ""
4423
 
4424
- #: views/settings/mta.html:458
4425
  msgid "Domain"
4426
  msgstr ""
4427
 
4428
- #: views/settings/mta.html:478
4429
  msgid "API Key"
4430
  msgstr ""
4431
 
4432
- #: views/settings/mta.html:530
4433
  msgid "Secure Connection"
4434
  msgstr ""
4435
 
4436
- #: views/settings/mta.html:555
4437
  msgid "Authentication"
4438
  msgstr ""
4439
 
4440
- #: views/settings/mta.html:558
4441
  msgid ""
4442
  "Leave this option set to Yes. Only a tiny portion of SMTP services prefer "
4443
  "Authentication to be turned off."
4444
  msgstr ""
4445
 
4446
- #: views/settings/mta.html:597
4447
  msgid "SPF Signature (Highly recommended!)"
4448
  msgstr ""
4449
 
4450
- #: views/settings/mta.html:600
4451
  msgid ""
4452
  "This improves your delivery rate by verifying that you're allowed to send "
4453
  "emails from your domain."
4454
  msgstr ""
4455
 
4456
- #: views/settings/mta.html:605
4457
  msgid ""
4458
  "SPF is set up in your DNS. Read your host's support documentation for more "
4459
  "information."
4460
  msgstr ""
4461
 
4462
- #: views/settings/mta.html:613
4463
  msgid "Test the sending method"
4464
  msgstr ""
4465
 
4466
- #: views/settings/mta.html:627
4467
  msgid "Send a test email"
4468
  msgstr ""
4469
 
4470
- #: views/settings/mta.html:643
4471
  msgid "or Cancel"
4472
  msgstr ""
4473
 
4474
- #: views/settings/mta.html:688
4475
  msgid ""
4476
  "The email could not be sent. Make sure the option \"Email notifications\" "
4477
  "has a FROM email address in the Basics tab."
4478
  msgstr ""
4479
 
4480
- #: views/settings/mta.html:701
4481
  msgid "This is a Sending Method Test"
4482
  msgstr ""
4483
 
4484
- #: views/settings/mta.html:703 views/settings/mta.html:704
4485
  msgid "Yup, it works! You can start blasting away emails to the moon."
4486
  msgstr ""
4487
 
4488
- #: views/settings/mta.html:713
4489
  msgid "The email has been sent! Check your inbox."
4490
  msgstr ""
4491
 
4492
- #: views/settings/mta.html:763
4493
  msgid "You have selected an invalid sending method."
4494
  msgstr ""
4495
 
@@ -4516,21 +4403,21 @@ msgstr ""
4516
  msgid "[link]Read guide[/link] on how to install Premium."
4517
  msgstr ""
4518
 
4519
- #: views/settings/premium.html:74
4520
  msgid "You need to activate the MailPoet Premium plugin."
4521
  msgstr ""
4522
 
4523
- #: views/settings/premium.html:78
4524
  msgid "Activate Premium."
4525
  msgstr ""
4526
 
4527
- #: views/settings/premium.html:87
4528
  msgid ""
4529
  "Don't forget to activate the MailPoet Sending Service in the [link]Send "
4530
  "with...[/link] tab above."
4531
  msgstr ""
4532
 
4533
- #: views/settings/premium.html:112
4534
  msgid "Please specify a license key before validating it."
4535
  msgstr ""
4536
 
@@ -4724,8 +4611,8 @@ msgstr ""
4724
  msgid "[link]Read more at our Knowledge Base[/link]"
4725
  msgstr ""
4726
 
4727
- #: views/subscribers/importExport/import/step1.html:129
4728
- #: views/subscribers/importExport/import/step2.html:80
4729
  msgid "Next step"
4730
  msgstr ""
4731
 
@@ -4745,15 +4632,15 @@ msgstr ""
4745
  msgid "To add subscribers to a mailing segment, [link]create a list[/link]."
4746
  msgstr ""
4747
 
4748
- #: views/subscribers/importExport/import/step2.html:60
4749
  msgid "Update existing subscribers' information"
4750
  msgstr ""
4751
 
4752
- #: views/subscribers/importExport/import/step2.html:77
4753
  msgid "Previous step"
4754
  msgstr ""
4755
 
4756
- #: views/subscribers/importExport/import/step2.html:90
4757
  msgid "Match data"
4758
  msgstr ""
4759
 
@@ -5132,22 +5019,22 @@ msgid ""
5132
  "newsletter. Sign up below!"
5133
  msgstr ""
5134
 
5135
- #: lib/Config/Menu.php:79
5136
  msgctxt "newsletters per page (screen options)"
5137
  msgid "Number of newsletters per page"
5138
  msgstr ""
5139
 
5140
- #: lib/Config/Menu.php:102
5141
  msgctxt "forms per page (screen options)"
5142
  msgid "Number of forms per page"
5143
  msgstr ""
5144
 
5145
- #: lib/Config/Menu.php:125
5146
  msgctxt "subscribers per page (screen options)"
5147
  msgid "Number of subscribers per page"
5148
  msgstr ""
5149
 
5150
- #: lib/Config/Menu.php:149
5151
  msgctxt "segments per page (screen options)"
5152
  msgid "Number of segments per page"
5153
  msgstr ""
@@ -5221,7 +5108,7 @@ msgid "S"
5221
  msgstr ""
5222
 
5223
  #: views/settings/advanced.html:13 views/settings/advanced.html:37
5224
- #: views/settings/advanced.html:120
5225
  msgctxt "support article link label"
5226
  msgid "Read more."
5227
  msgstr ""
4
  msgstr ""
5
  "Project-Id-Version: \n"
6
  "Report-Msgid-Bugs-To: http://support.mailpoet.com/\n"
7
+ "POT-Creation-Date: 2017-07-04 13:52:03+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
226
  msgid "MailPoet Newsletter"
227
  msgstr ""
228
 
229
+ #: lib/Config/MP2Migrator.php:151
230
  msgid "START IMPORT"
231
  msgstr ""
232
 
233
+ #: lib/Config/MP2Migrator.php:167 views/mp2migration.html:63
234
  msgid "IMPORT COMPLETE"
235
  msgstr ""
236
 
237
+ #: lib/Config/MP2Migrator.php:170
238
  msgid "END IMPORT"
239
  msgstr ""
240
 
241
+ #: lib/Config/MP2Migrator.php:194
242
  msgid "MailPoet data erased"
243
  msgstr ""
244
 
245
+ #: lib/Config/MP2Migrator.php:224 views/mp2migration.html:65
246
  msgid "IMPORT STOPPED BY USER"
247
  msgstr ""
248
 
249
+ #: lib/Config/MP2Migrator.php:256
250
  msgid "MailPoet 2 data found:"
251
  msgstr ""
252
 
253
+ #: lib/Config/MP2Migrator.php:261
254
  msgid "%d subscribers list"
255
  msgid_plural "%d subscribers lists"
256
  msgstr[0] ""
257
  msgstr[1] ""
258
 
259
+ #: lib/Config/MP2Migrator.php:266
260
  msgid "%d subscriber"
261
  msgid_plural "%d subscribers"
262
  msgstr[0] ""
263
  msgstr[1] ""
264
 
265
+ #: lib/Config/MP2Migrator.php:271
266
+ msgid "%d form"
267
+ msgid_plural "%d forms"
268
+ msgstr[0] ""
269
+ msgstr[1] ""
270
+
271
+ #: lib/Config/MP2Migrator.php:296
272
  msgid "Importing segments..."
273
  msgstr ""
274
 
275
+ #: lib/Config/MP2Migrator.php:317
276
  msgid "%d segment imported"
277
  msgid_plural "%d segments imported"
278
  msgstr[0] ""
279
  msgstr[1] ""
280
 
281
+ #: lib/Config/MP2Migrator.php:386
282
  msgid "Importing custom fields..."
283
  msgstr ""
284
 
285
+ #: lib/Config/MP2Migrator.php:396
286
  msgid "%d custom field imported"
287
  msgid_plural "%d custom fields imported"
288
  msgstr[0] ""
289
  msgstr[1] ""
290
 
291
+ #: lib/Config/MP2Migrator.php:534
292
  msgid "Importing subscribers..."
293
  msgstr ""
294
 
295
+ #: lib/Config/MP2Migrator.php:556
296
  msgid "%d subscriber imported"
297
  msgid_plural "%d subscribers imported"
298
  msgstr[0] ""
299
  msgstr[1] ""
300
 
301
+ #: lib/Config/MP2Migrator.php:782
302
+ msgid "Importing forms..."
303
+ msgstr ""
304
+
305
+ #: lib/Config/MP2Migrator.php:801
306
+ msgid "%d form imported"
307
+ msgid_plural "%d forms imported"
308
+ msgstr[0] ""
309
+ msgstr[1] ""
310
+
311
+ #: lib/Config/Menu.php:67 lib/Config/Menu.php:68 views/newsletters.html:23
312
  msgid "Emails"
313
  msgstr ""
314
 
315
+ #: lib/Config/Menu.php:91 lib/Config/Menu.php:92 views/forms.html:25
316
+ #: views/mp2migration.html:13
317
  msgid "Forms"
318
  msgstr ""
319
 
320
+ #: lib/Config/Menu.php:114 lib/Config/Menu.php:115
321
  #: views/subscribers/subscribers.html:18
322
  msgid "Subscribers"
323
  msgstr ""
324
 
325
+ #: lib/Config/Menu.php:137 lib/Config/Menu.php:138 views/forms.html:53
326
  #: views/newsletters.html:64 views/newsletters.html:164 views/segments.html:13
327
  #: views/subscribers/subscribers.html:66
328
  msgid "Lists"
329
  msgstr ""
330
 
331
+ #: lib/Config/Menu.php:161 lib/Config/Menu.php:162 views/form/editor.html:37
332
+ #: views/mp2migration.html:14 views/newsletters.html:65 views/settings.html:6
333
  msgid "Settings"
334
  msgstr ""
335
 
336
+ #: lib/Config/Menu.php:173 lib/Config/Menu.php:174 views/help.html:5
337
+ msgid "Help"
338
+ msgstr ""
339
+
340
+ #: lib/Config/Menu.php:186 lib/Config/Menu.php:187 views/settings.html:22
341
  msgid "Premium"
342
  msgstr ""
343
 
344
+ #: lib/Config/Menu.php:198 lib/Config/Menu.php:199
345
  #: views/subscribers/importExport/import.html:7
346
  #: views/subscribers/subscribers.html:94
347
  msgid "Import"
348
  msgstr ""
349
 
350
+ #: lib/Config/Menu.php:210 lib/Config/Menu.php:211
351
  #: views/subscribers/importExport/export.html:6
352
  #: views/subscribers/importExport/export.html:96
353
  #: views/subscribers/subscribers.html:95
354
  msgid "Export"
355
  msgstr ""
356
 
357
+ #: lib/Config/Menu.php:222 lib/Config/Menu.php:223 views/update.html:20
358
  #: views/welcome.html:29
359
  msgid "Welcome"
360
  msgstr ""
361
 
362
+ #: lib/Config/Menu.php:234
363
  msgid "Migration"
364
  msgstr ""
365
 
366
+ #: lib/Config/Menu.php:246 lib/Config/Menu.php:247 views/segments.html:43
367
  msgid "Update"
368
  msgstr ""
369
 
370
+ #: lib/Config/Menu.php:258 lib/Config/Menu.php:259
371
  msgid "Form Editor"
372
  msgstr ""
373
 
374
+ #: lib/Config/Menu.php:270 lib/Newsletter/Shortcodes/ShortcodesHelper.php:32
375
  #: views/newsletter/templates/components/sidebar/styles.hbs:74
376
  #: views/newsletters.html:119
377
  msgid "Newsletter"
378
  msgstr ""
379
 
380
+ #: lib/Config/Menu.php:271 views/newsletter/editor.html:228
381
  msgid "Newsletter Editor"
382
  msgstr ""
383
 
384
+ #: lib/Config/Menu.php:484
385
  msgid "In any WordPress role"
386
  msgstr ""
387
 
388
+ #: lib/Config/Menu.php:560 views/premium.html:39
389
  msgid "MailPoet"
390
  msgstr ""
391
 
395
  "might work within a MultiSite environment, we don’t support it."
396
  msgstr ""
397
 
398
+ #: lib/Config/Populator.php:152
399
  msgid "My First List"
400
  msgstr ""
401
 
402
+ #: lib/Config/Populator.php:154
403
  msgid "This list is automatically created when you install MailPoet."
404
  msgstr ""
405
 
406
+ #: lib/Config/PopulatorData/Templates/AppWelcome.php:17
407
+ msgid "App Welcome"
408
  msgstr ""
409
 
410
+ #: lib/Config/PopulatorData/Templates/AppWelcome.php:18
411
+ msgid "A welcome email template for your app."
 
 
412
  msgstr ""
413
 
414
+ #: lib/Config/PopulatorData/Templates/BurgerJoint.php:17
415
+ msgid "Burger Joint"
 
 
416
  msgstr ""
417
 
418
+ #: lib/Config/PopulatorData/Templates/BurgerJoint.php:18
419
+ msgid "Add more or less ketchup or mayo to this restaurant template."
420
  msgstr ""
421
 
422
+ #: lib/Config/PopulatorData/Templates/ChocolateStore.php:17
423
+ msgid "Chocolate Store"
 
 
 
 
424
  msgstr ""
425
 
426
+ #: lib/Config/PopulatorData/Templates/ChocolateStore.php:18
427
+ msgid "A classy black store template."
428
  msgstr ""
429
 
430
+ #: lib/Config/PopulatorData/Templates/CoffeeShop.php:17
431
+ msgid "Coffee Shop"
 
 
 
 
 
 
 
 
 
 
 
 
 
432
  msgstr ""
433
 
434
+ #: lib/Config/PopulatorData/Templates/CoffeeShop.php:18
435
+ msgid "Coffee and sugar in your coffee?"
436
  msgstr ""
437
 
438
+ #: lib/Config/PopulatorData/Templates/Discount.php:17
439
+ msgid "Discount"
440
  msgstr ""
441
 
442
+ #: lib/Config/PopulatorData/Templates/Discount.php:18
443
+ msgid "A useful layout for a simple discount email."
 
 
 
 
 
 
 
 
444
  msgstr ""
445
 
446
+ #: lib/Config/PopulatorData/Templates/Faith.php:17
447
+ msgid "Faith"
448
  msgstr ""
449
 
450
+ #: lib/Config/PopulatorData/Templates/Faith.php:18
451
+ msgid "A calm and muted faith template."
452
  msgstr ""
453
 
454
+ #: lib/Config/PopulatorData/Templates/FestivalEvent.php:17
455
+ msgid "Festival Event"
456
  msgstr ""
457
 
458
+ #: lib/Config/PopulatorData/Templates/FestivalEvent.php:18
459
+ msgid "A colourful festival event template."
 
 
 
 
460
  msgstr ""
461
 
462
+ #: lib/Config/PopulatorData/Templates/FoodBox.php:18
463
+ msgid "Welcome to FoodBox"
 
 
 
 
 
 
 
 
 
 
464
  msgstr ""
465
 
466
+ #: lib/Config/PopulatorData/Templates/FoodBox.php:19
467
+ msgid "A welcome email template for your takeaway."
468
+ msgstr ""
469
+
470
+ #: lib/Config/PopulatorData/Templates/KickOff.php:17
471
+ msgid "Kick-Off"
472
+ msgstr ""
473
+
474
+ #: lib/Config/PopulatorData/Templates/KickOff.php:18
475
+ msgid "Sporty green template for your team or sport event."
476
+ msgstr ""
477
+
478
+ #: lib/Config/PopulatorData/Templates/NewsDay.php:17
479
+ msgid "News Day"
480
+ msgstr ""
481
+
482
+ #: lib/Config/PopulatorData/Templates/NewsDay.php:18
483
+ msgid "Media ready template. "
484
  msgstr ""
485
 
486
  #: lib/Config/PopulatorData/Templates/NewsletterBlank121Column.php:17
698
  "</ol>"
699
  msgstr ""
700
 
701
+ #: lib/Config/PopulatorData/Templates/PieceOfCake.php:17
702
+ msgid "Piece of cake"
703
+ msgstr ""
704
+
705
+ #: lib/Config/PopulatorData/Templates/PieceOfCake.php:18
706
+ msgid "Baked with plenty of images."
707
+ msgstr ""
708
+
709
  #: lib/Config/PopulatorData/Templates/PostNotificationsBlank1Column.php:17
710
  msgid "Post Notifications: Blank 1 Column"
711
  msgstr ""
750
  msgid "Read the post"
751
  msgstr ""
752
 
753
+ #: lib/Config/PopulatorData/Templates/ScienceWeekly.php:17
754
+ msgid "Science Weekly"
755
+ msgstr ""
756
+
757
+ #: lib/Config/PopulatorData/Templates/ScienceWeekly.php:18
758
+ msgid "The right chemistry to send your weekly posts."
759
  msgstr ""
760
 
761
+ #: lib/Config/PopulatorData/Templates/Shoes.php:17
762
+ msgid "Shoes"
763
+ msgstr ""
764
+
765
+ #: lib/Config/PopulatorData/Templates/Shoes.php:18
766
+ msgid "Nothing like a pair that fits perfectly."
767
  msgstr ""
768
 
769
  #: lib/Config/PopulatorData/Templates/SimpleText.php:17
802
  "<p><strong><em>The MailPoet Team</em></strong></p>"
803
  msgstr ""
804
 
805
+ #: lib/Config/PopulatorData/Templates/TakeAHike.php:17
806
+ msgid "Take a Hike"
 
 
 
 
 
 
 
 
807
  msgstr ""
808
 
809
+ #: lib/Config/PopulatorData/Templates/TakeAHike.php:18
810
+ msgid "Can you climb to the top?"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
811
  msgstr ""
812
 
813
+ #: lib/Config/PopulatorData/Templates/TravelNomads.php:17
814
+ msgid "Travel Nomads"
815
  msgstr ""
816
 
817
+ #: lib/Config/PopulatorData/Templates/TravelNomads.php:18
818
+ msgid "Ideal for sharing your travel adventures."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
819
  msgstr ""
820
 
821
  #: lib/Config/PopulatorData/Templates/WelcomeBlank12Column.php:17
901
  "</ol>"
902
  msgstr ""
903
 
904
+ #: lib/Config/PopulatorData/Templates/WorldCup.php:17
905
+ msgid "World Cup"
906
+ msgstr ""
907
+
908
+ #: lib/Config/PopulatorData/Templates/WorldCup.php:18
909
+ msgid "Always a winner. "
910
+ msgstr ""
911
+
912
+ #: lib/Config/PopulatorData/Templates/YogaStudio.php:17
913
+ msgid "Yoga Studio"
914
+ msgstr ""
915
+
916
+ #: lib/Config/PopulatorData/Templates/YogaStudio.php:18
917
+ msgid "Salute the sun and your subscribers."
918
+ msgstr ""
919
+
920
  #: lib/Config/Renderer.php:107
921
  msgid ""
922
  "Failed to render template \"%s\". Please ensure the template cache folder "
992
  msgid "Preview in a new tab"
993
  msgstr ""
994
 
995
+ #: lib/Config/Widget.php:116
996
+ msgid "An error has happened while performing a request, please try again later."
997
+ msgstr ""
998
+
999
  #: lib/Cron/CronHelper.php:103
1000
  msgid "Site URL is unreachable."
1001
  msgstr ""
1207
  #: lib/Models/NewsletterOptionField.php:12 lib/Models/NewsletterTemplate.php:13
1208
  #: lib/Models/Segment.php:15 lib/Models/Setting.php:22
1209
  #: views/form/templates/settings/field_form.hbs:53
1210
+ #: views/subscribers/importExport/import/step2.html:134
1211
  msgid "Please specify a name."
1212
  msgstr ""
1213
 
1222
  msgstr ""
1223
 
1224
  #: lib/Models/Form.php:98 lib/Models/Newsletter.php:716
1225
+ #: lib/Models/Segment.php:138 lib/Models/Subscriber.php:372 views/forms.html:66
1226
  #: views/newsletters.html:76 views/segments.html:50
1227
  #: views/subscribers/subscribers.html:37
1228
  msgid "Trash"
1229
  msgstr ""
1230
 
1231
+ #: lib/Models/Model.php:54 views/subscribers/importExport/import/step2.html:137
1232
  msgid "Another record already exists. Please specify a different \"%1$s\"."
1233
  msgstr ""
1234
 
1620
  msgid "Accidentally unsubscribed?"
1621
  msgstr ""
1622
 
1623
+ #: lib/Twig/Functions.php:88 views/settings/mta.html:985
1624
  msgid "every minute"
1625
  msgstr ""
1626
 
1627
+ #: lib/Twig/Functions.php:89 views/settings/mta.html:986
1628
  msgid "every %1$d minutes"
1629
  msgstr ""
1630
 
1631
+ #: lib/Twig/Functions.php:90 views/settings/mta.html:987
1632
  msgid "every hour"
1633
  msgstr ""
1634
 
1635
+ #: lib/Twig/Functions.php:91 views/settings/mta.html:988
1636
  msgid "every %1$d hours"
1637
  msgstr ""
1638
 
1824
  #: views/newsletter/templates/blocks/automatedLatestContent/settings.hbs:281
1825
  #: views/newsletter/templates/blocks/posts/settingsDisplayOptions.hbs:79
1826
  #: views/newsletter/templates/blocks/posts/settingsDisplayOptions.hbs:221
1827
+ #: views/premium.html:54 views/settings/advanced.html:90
1828
+ #: views/settings/advanced.html:130 views/settings/bounce.html:190
1829
+ #: views/settings/mta.html:569 views/settings/signup.html:34
1830
  #: views/subscribers/importExport/export.html:33
1831
+ #: views/subscribers/importExport/import/step2.html:63
1832
  msgid "Yes"
1833
  msgstr ""
1834
 
1843
  #: views/newsletter/templates/blocks/posts/settingsDisplayOptions.hbs:139
1844
  #: views/newsletter/templates/blocks/posts/settingsDisplayOptions.hbs:165
1845
  #: views/newsletter/templates/blocks/posts/settingsDisplayOptions.hbs:227
1846
+ #: views/premium.html:60 views/premium.html:61 views/settings/advanced.html:101
1847
+ #: views/settings/advanced.html:141 views/settings/bounce.html:148
1848
+ #: views/settings/bounce.html:179 views/settings/mta.html:532
1849
+ #: views/settings/mta.html:580 views/settings/signup.html:46
1850
  #: views/subscribers/importExport/export.html:38
1851
+ #: views/subscribers/importExport/import/step2.html:67
1852
  msgid "No"
1853
  msgstr ""
1854
 
1909
  #: views/newsletter/templates/blocks/image/settings.hbs:40
1910
  #: views/newsletter/templates/blocks/social/settings.hbs:6
1911
  #: views/newsletter/templates/blocks/spacer/settings.hbs:10
1912
+ #: views/subscribers/importExport/import/step2.html:148
1913
  msgid "Done"
1914
  msgstr ""
1915
 
1982
  msgid "An error occurred, make sure you have filled all the required fields."
1983
  msgstr ""
1984
 
1985
+ #: views/forms.html:8
1986
+ msgid ""
1987
+ "<strong>Tip:</strong> we have a [link]list of plugins[/link] that work with "
1988
+ "MailPoet if you need fancier forms."
1989
+ msgstr ""
1990
+
1991
+ #: views/forms.html:26 views/newsletters.html:29 views/segments.html:14
1992
  #: views/subscribers/subscribers.html:19
1993
  msgid "Search"
1994
  msgstr ""
1995
 
1996
+ #: views/forms.html:27
1997
  msgid "Loading forms..."
1998
  msgstr ""
1999
 
2000
+ #: views/forms.html:28
2001
  msgid "No forms were found. Why not create a new one?"
2002
  msgstr ""
2003
 
2004
+ #: views/forms.html:29
2005
  msgid "All forms on this page are selected."
2006
  msgstr ""
2007
 
2008
+ #: views/forms.html:30
2009
  msgid "All %d forms are selected."
2010
  msgstr ""
2011
 
2012
+ #: views/forms.html:31
2013
  msgid "Select all forms on all pages"
2014
  msgstr ""
2015
 
2016
+ #: views/forms.html:32 views/newsletters.html:35 views/segments.html:20
2017
  #: views/subscribers/subscribers.html:27
2018
  msgid "Clear selection"
2019
  msgstr ""
2020
 
2021
+ #: views/forms.html:33
2022
  msgid "%d forms permanently deleted."
2023
  msgstr ""
2024
 
2025
+ #: views/forms.html:34 views/newsletters.html:37 views/segments.html:22
2026
  #: views/subscribers/subscribers.html:29
2027
  msgid "Select bulk action"
2028
  msgstr ""
2029
 
2030
+ #: views/forms.html:35 views/newsletters.html:38 views/segments.html:23
2031
  #: views/subscribers/subscribers.html:30
2032
  msgid "Bulk Actions"
2033
  msgstr ""
2034
 
2035
+ #: views/forms.html:36 views/newsletters.html:39 views/segments.html:24
2036
  #: views/subscribers/subscribers.html:31
2037
  msgid "Apply"
2038
  msgstr ""
2039
 
2040
+ #: views/forms.html:37 views/newsletters.html:40
2041
  #: views/subscribers/subscribers.html:32
2042
  msgid "Filter"
2043
  msgstr ""
2044
 
2045
+ #: views/forms.html:38 views/newsletters.html:41 views/segments.html:52
2046
  #: views/subscribers/subscribers.html:33
2047
  msgid "Empty Trash"
2048
  msgstr ""
2049
 
2050
+ #: views/forms.html:39 views/newsletters.html:42 views/segments.html:53
2051
  #: views/subscribers/subscribers.html:34
2052
  msgid "Select All"
2053
  msgstr ""
2054
 
2055
+ #: views/forms.html:40 views/newsletters.html:43 views/segments.html:54
2056
  #: views/subscribers/subscribers.html:36
2057
  msgid "Restore"
2058
  msgstr ""
2059
 
2060
+ #: views/forms.html:41 views/newsletters.html:44
2061
  #: views/subscribers/subscribers.html:39
2062
  msgid "Delete Permanently"
2063
  msgstr ""
2064
 
2065
+ #: views/forms.html:43 views/newsletters.html:47 views/segments.html:58
2066
  #: views/subscribers/subscribers.html:42
2067
  msgid "Previous page"
2068
  msgstr ""
2069
 
2070
+ #: views/forms.html:44 views/newsletters.html:48 views/segments.html:59
2071
  #: views/subscribers/subscribers.html:43
2072
  msgid "First page"
2073
  msgstr ""
2074
 
2075
+ #: views/forms.html:45 views/newsletters.html:49 views/segments.html:60
2076
  #: views/subscribers/subscribers.html:44
2077
  msgid "Next page"
2078
  msgstr ""
2079
 
2080
+ #: views/forms.html:46 views/newsletters.html:50 views/segments.html:61
2081
  #: views/subscribers/subscribers.html:45
2082
  msgid "Last page"
2083
  msgstr ""
2084
 
2085
+ #: views/forms.html:47 views/subscribers/subscribers.html:46
2086
  msgid "Current Page"
2087
  msgstr ""
2088
 
2089
+ #: views/forms.html:48 views/newsletters.html:52 views/segments.html:63
2090
  #: views/subscribers/subscribers.html:47
2091
  msgid "of"
2092
  msgstr ""
2093
 
2094
+ #: views/forms.html:49 views/newsletters.html:53 views/segments.html:64
2095
  #: views/subscribers/subscribers.html:48
2096
  msgid "1 item"
2097
  msgstr ""
2098
 
2099
+ #: views/forms.html:50 views/newsletters.html:54 views/segments.html:65
2100
  #: views/subscribers/subscribers.html:49
2101
  msgid "%$1d items"
2102
  msgstr ""
2103
 
2104
+ #: views/forms.html:52 views/segments.html:25
2105
+ #: views/subscribers/importExport/import/step2.html:130
2106
  msgid "Name"
2107
  msgstr ""
2108
 
2109
+ #: views/forms.html:54
2110
  msgid "User choice:"
2111
  msgstr ""
2112
 
2113
+ #: views/forms.html:55
2114
  msgid "Sign-ups"
2115
  msgstr ""
2116
 
2117
+ #: views/forms.html:56
2118
  msgid "Created On"
2119
  msgstr ""
2120
 
2121
+ #: views/forms.html:57
2122
  msgid "1 form was moved to the trash."
2123
  msgstr ""
2124
 
2125
+ #: views/forms.html:58
2126
  msgid "%$1d forms were moved to the trash."
2127
  msgstr ""
2128
 
2129
+ #: views/forms.html:59
2130
  msgid "1 form was permanently deleted."
2131
  msgstr ""
2132
 
2133
+ #: views/forms.html:60
2134
  msgid "%$1d forms were permanently deleted."
2135
  msgstr ""
2136
 
2137
+ #: views/forms.html:61
2138
  msgid "1 form has been restored from the trash."
2139
  msgstr ""
2140
 
2141
+ #: views/forms.html:62
2142
  msgid "%$1d forms have been restored from the trash."
2143
  msgstr ""
2144
 
2145
+ #: views/forms.html:63 views/newsletters.html:78 views/segments.html:49
2146
  #: views/subscribers/subscribers.html:35
2147
  msgid "Edit"
2148
  msgstr ""
2149
 
2150
+ #: views/forms.html:64 views/newsletters.html:79 views/segments.html:41
2151
  msgid "Duplicate"
2152
  msgstr ""
2153
 
2154
+ #: views/forms.html:65
2155
  msgid "Form \"%$1s\" has been duplicated."
2156
  msgstr ""
2157
 
2158
+ #: views/forms.html:67 views/newsletters.html:77 views/segments.html:51
2159
  #: views/subscribers/subscribers.html:38
2160
  msgid "Move to trash"
2161
  msgstr ""
2162
 
2163
+ #: views/forms.html:68 views/newsletters.html:91 views/segments.html:48
2164
  #: views/subscribers/subscribers.html:93
2165
  msgid "Add New"
2166
  msgstr ""
2167
 
2168
+ #: views/help.html:20
2169
+ msgid "Knowledge Base"
2170
+ msgstr ""
2171
+
2172
+ #: views/help.html:21
2173
+ msgid "System Info"
2174
+ msgstr ""
2175
+
2176
+ #: views/help.html:22
2177
+ msgid "Click on one of these categories below to find more information:"
2178
+ msgstr ""
2179
+
2180
+ #: views/help.html:23
2181
+ msgid "Visit our Knowledge Base for more articles"
2182
+ msgstr ""
2183
+
2184
+ #: views/help.html:24
2185
+ msgid ""
2186
+ "The information below is useful when you need to get in touch with our "
2187
+ "support. Just copy all the text below and paste it into a message to us."
2188
+ msgstr ""
2189
+
2190
+ #: views/help.html:25
2191
+ msgid "Sorry, there was an error, please try again later."
2192
+ msgstr ""
2193
+
2194
  #: views/index.html:5
2195
  msgid " %sSet up%s MailPoet and start sending."
2196
  msgstr ""
2207
  msgid "Visit MailPoet.com to purchase a key"
2208
  msgstr ""
2209
 
2210
+ #: views/layout.html:59
2211
+ msgid ""
2212
+ "An error has happened while performing a request, the server has responded "
2213
+ "with response code %d"
2214
+ msgstr ""
2215
+
2216
+ #: views/layout.html:83
2217
  msgid ""
2218
  "Want to give feedback to the MailPoet team? Contact us here. Please provide "
2219
  "as much information as possible!"
2265
  msgid "Subscribers and lists"
2266
  msgstr ""
2267
 
2268
+ #: views/mp2migration.html:14 views/mp2migration.html:15
 
2269
  msgid "soon"
2270
  msgstr ""
2271
 
2375
 
2376
  #: views/newsletter/editor.html:316
2377
  #: views/newsletter/templates/blocks/base/toolsGeneric.hbs:6
2378
+ #: views/subscribers/importExport/import/step2.html:150
2379
  msgid "Cancel"
2380
  msgstr ""
2381
 
2482
  msgid "An image of..."
2483
  msgstr ""
2484
 
2485
+ #: views/newsletter/editor.html:1140
2486
+ msgid "Facebook"
2487
+ msgstr ""
2488
+
2489
+ #: views/newsletter/editor.html:1151
2490
+ msgid "Twitter"
2491
+ msgstr ""
2492
+
2493
  #: views/newsletter/editor.html:1164
2494
  msgid "Edit this to insert text."
2495
  msgstr ""
2912
  msgid "Private"
2913
  msgstr ""
2914
 
2915
+ #: views/newsletter/templates/blocks/posts/settingsSelection.hbs:27
2916
+ msgid "Loading posts..."
2917
+ msgstr ""
2918
+
2919
  #: views/newsletter/templates/blocks/posts/settingsSelectionEmpty.hbs:1
2920
  msgid "No posts available"
2921
  msgstr ""
3271
  msgstr ""
3272
 
3273
  #: views/newsletters.html:130 views/settings/mta.html:97
3274
+ #: views/settings/mta.html:635
3275
  msgid "Activate"
3276
  msgstr ""
3277
 
3768
  "MailPoet[/link]."
3769
  msgstr ""
3770
 
3771
+ #: views/premium.html:100
3772
  msgid "Welcome to My Newsletter!"
3773
  msgstr ""
3774
 
3775
+ #: views/premium.html:106
3776
  msgid ""
3777
  "Want to send autoresponders and welcome emails to your subscribers? In "
3778
  "MailPoet, it’s easy as 1-2-3. Create welcome emails, educational courses, "
3779
  "and other automatic email newsletters."
3780
  msgstr ""
3781
 
3782
+ #: views/premium.html:109
3783
  msgid "We’re Here to Help!"
3784
  msgstr ""
3785
 
3786
+ #: views/premium.html:115
3787
  msgid ""
3788
  "We pride ourselves on giving nearly round-the-clock support. Our remote "
3789
  "team spans several continents, hemispheres, and time-zones! If you’ve got a "
3790
  "problem, we will help you fix it!"
3791
  msgstr ""
3792
 
3793
+ #: views/premium.html:121
3794
  msgid "Get Started for Just $10"
3795
  msgstr ""
3796
 
3797
+ #: views/premium.html:124
3798
  msgid ""
3799
  "Our plans start at just $10 per month. Each plan offers unlimited emails. "
3800
  "Pricing scales up with the size of your list."
3801
  msgstr ""
3802
 
3803
+ #: views/premium.html:132
3804
  msgid "Purchase Now"
3805
  msgstr ""
3806
 
3807
+ #: views/premium.html:136
3808
  msgid "Already a Premium customer? [link]Add your Key in the Settings page[/link]."
3809
  msgstr ""
3810
 
3811
+ #: views/premium.html:140
3812
  msgid ""
3813
  "Don't need to use our sending service? Not a problem; we understand. You "
3814
  "can also [link]buy the Premium[/link] features separately. Prices start at "
3840
  msgid "%d lists were permanently deleted."
3841
  msgstr ""
3842
 
3843
+ #: views/segments.html:26 views/subscribers/importExport/import/step2.html:140
3844
  msgid "Description"
3845
  msgstr ""
3846
 
3928
  msgid "MailPoet's own script. Doesn't work with [link]these hosts[/link]."
3929
  msgstr ""
3930
 
3931
+ #: views/settings/advanced.html:74
3932
  msgid "Open and click tracking"
3933
  msgstr ""
3934
 
3935
+ #: views/settings/advanced.html:77
3936
  msgid "Enable or disable open and click tracking."
3937
  msgstr ""
3938
 
3939
+ #: views/settings/advanced.html:110
3940
  msgid "Share anonymous data"
3941
  msgstr ""
3942
 
3943
+ #: views/settings/advanced.html:113
3944
  msgid ""
3945
  "Share anonymous data and help us improve the plugin. We appreciate your "
3946
  "help!"
3947
  msgstr ""
3948
 
3949
+ #: views/settings/advanced.html:149
3950
  msgid "Reinstall from scratch"
3951
  msgstr ""
3952
 
3953
+ #: views/settings/advanced.html:151
3954
  msgid ""
3955
  "Want to start from the beginning? This will completely delete MailPoet and "
3956
  "reinstall it from scratch. Remember: you will lose all of your data!"
3957
  msgstr ""
3958
 
3959
+ #: views/settings/advanced.html:159
3960
  msgid "Reinstall now..."
3961
  msgstr ""
3962
 
4117
  msgid "Hostname"
4118
  msgstr ""
4119
 
4120
+ #: views/settings/bounce.html:50 views/settings/mta.html:493
4121
  msgid "Login"
4122
  msgstr ""
4123
 
4124
+ #: views/settings/bounce.html:67 views/settings/mta.html:510
4125
  msgid "Password"
4126
  msgstr ""
4127
 
4236
  "methods[/link]."
4237
  msgstr ""
4238
 
4239
+ #: views/settings/mta.html:164 views/settings/mta.html:297
4240
  msgid "Sending frequency"
4241
  msgstr ""
4242
 
4243
+ #: views/settings/mta.html:175
4244
  msgid "Safe default values"
4245
  msgstr ""
4246
 
4247
+ #: views/settings/mta.html:183
4248
  msgid "I'll set my own frequency"
4249
  msgstr ""
4250
 
4251
+ #: views/settings/mta.html:188
4252
  msgid "Input your host's recommended sending frequency"
4253
  msgstr ""
4254
 
4255
+ #: views/settings/mta.html:221 views/settings/mta.html:314
4256
  msgid "emails"
4257
  msgstr ""
4258
 
4259
+ #: views/settings/mta.html:238 views/settings/mta.html:331
4260
  msgid "recommended"
4261
  msgstr ""
4262
 
4263
+ #: views/settings/mta.html:247
4264
  msgid ""
4265
  "<strong>Warning!</strong> Sending more than the recommended amount of "
4266
  "emails? You may break the terms of your web host or provider!"
4267
  msgstr ""
4268
 
4269
+ #: views/settings/mta.html:249
4270
  msgid ""
4271
  "Please ask your host for the maximum number of emails you are allowed to "
4272
  "send per day."
4273
  msgstr ""
4274
 
4275
+ #: views/settings/mta.html:265
4276
  msgid "Provider"
4277
  msgstr ""
4278
 
4279
+ #: views/settings/mta.html:275
4280
  msgid "Custom SMTP"
4281
  msgstr ""
4282
 
4283
+ #: views/settings/mta.html:278
4284
  msgid "Select your provider"
4285
  msgstr ""
4286
 
4287
+ #: views/settings/mta.html:344
4288
  msgid "SMTP Hostname"
4289
  msgstr ""
4290
 
4291
+ #: views/settings/mta.html:347 views/settings/mta.html:458
4292
  msgid "e.g.: smtp.mydomain.com"
4293
  msgstr ""
4294
 
4295
+ #: views/settings/mta.html:363
4296
  msgid "SMTP Port"
4297
  msgstr ""
4298
 
4299
+ #: views/settings/mta.html:384
4300
  msgid "Region"
4301
  msgstr ""
4302
 
4303
+ #: views/settings/mta.html:413
4304
  msgid "Access Key"
4305
  msgstr ""
4306
 
4307
+ #: views/settings/mta.html:434
4308
  msgid "Secret Key"
4309
  msgstr ""
4310
 
4311
+ #: views/settings/mta.html:455
4312
  msgid "Domain"
4313
  msgstr ""
4314
 
4315
+ #: views/settings/mta.html:475
4316
  msgid "API Key"
4317
  msgstr ""
4318
 
4319
+ #: views/settings/mta.html:527
4320
  msgid "Secure Connection"
4321
  msgstr ""
4322
 
4323
+ #: views/settings/mta.html:552
4324
  msgid "Authentication"
4325
  msgstr ""
4326
 
4327
+ #: views/settings/mta.html:555
4328
  msgid ""
4329
  "Leave this option set to Yes. Only a tiny portion of SMTP services prefer "
4330
  "Authentication to be turned off."
4331
  msgstr ""
4332
 
4333
+ #: views/settings/mta.html:594
4334
  msgid "SPF Signature (Highly recommended!)"
4335
  msgstr ""
4336
 
4337
+ #: views/settings/mta.html:597
4338
  msgid ""
4339
  "This improves your delivery rate by verifying that you're allowed to send "
4340
  "emails from your domain."
4341
  msgstr ""
4342
 
4343
+ #: views/settings/mta.html:602
4344
  msgid ""
4345
  "SPF is set up in your DNS. Read your host's support documentation for more "
4346
  "information."
4347
  msgstr ""
4348
 
4349
+ #: views/settings/mta.html:610
4350
  msgid "Test the sending method"
4351
  msgstr ""
4352
 
4353
+ #: views/settings/mta.html:624
4354
  msgid "Send a test email"
4355
  msgstr ""
4356
 
4357
+ #: views/settings/mta.html:640
4358
  msgid "or Cancel"
4359
  msgstr ""
4360
 
4361
+ #: views/settings/mta.html:685
4362
  msgid ""
4363
  "The email could not be sent. Make sure the option \"Email notifications\" "
4364
  "has a FROM email address in the Basics tab."
4365
  msgstr ""
4366
 
4367
+ #: views/settings/mta.html:698
4368
  msgid "This is a Sending Method Test"
4369
  msgstr ""
4370
 
4371
+ #: views/settings/mta.html:700 views/settings/mta.html:701
4372
  msgid "Yup, it works! You can start blasting away emails to the moon."
4373
  msgstr ""
4374
 
4375
+ #: views/settings/mta.html:710
4376
  msgid "The email has been sent! Check your inbox."
4377
  msgstr ""
4378
 
4379
+ #: views/settings/mta.html:760
4380
  msgid "You have selected an invalid sending method."
4381
  msgstr ""
4382
 
4403
  msgid "[link]Read guide[/link] on how to install Premium."
4404
  msgstr ""
4405
 
4406
+ #: views/settings/premium.html:71
4407
  msgid "You need to activate the MailPoet Premium plugin."
4408
  msgstr ""
4409
 
4410
+ #: views/settings/premium.html:75
4411
  msgid "Activate Premium."
4412
  msgstr ""
4413
 
4414
+ #: views/settings/premium.html:84
4415
  msgid ""
4416
  "Don't forget to activate the MailPoet Sending Service in the [link]Send "
4417
  "with...[/link] tab above."
4418
  msgstr ""
4419
 
4420
+ #: views/settings/premium.html:106
4421
  msgid "Please specify a license key before validating it."
4422
  msgstr ""
4423
 
4611
  msgid "[link]Read more at our Knowledge Base[/link]"
4612
  msgstr ""
4613
 
4614
+ #: views/subscribers/importExport/import/step1.html:126
4615
+ #: views/subscribers/importExport/import/step2.html:77
4616
  msgid "Next step"
4617
  msgstr ""
4618
 
4632
  msgid "To add subscribers to a mailing segment, [link]create a list[/link]."
4633
  msgstr ""
4634
 
4635
+ #: views/subscribers/importExport/import/step2.html:57
4636
  msgid "Update existing subscribers' information"
4637
  msgstr ""
4638
 
4639
+ #: views/subscribers/importExport/import/step2.html:74
4640
  msgid "Previous step"
4641
  msgstr ""
4642
 
4643
+ #: views/subscribers/importExport/import/step2.html:87
4644
  msgid "Match data"
4645
  msgstr ""
4646
 
5019
  "newsletter. Sign up below!"
5020
  msgstr ""
5021
 
5022
+ #: lib/Config/Menu.php:80
5023
  msgctxt "newsletters per page (screen options)"
5024
  msgid "Number of newsletters per page"
5025
  msgstr ""
5026
 
5027
+ #: lib/Config/Menu.php:103
5028
  msgctxt "forms per page (screen options)"
5029
  msgid "Number of forms per page"
5030
  msgstr ""
5031
 
5032
+ #: lib/Config/Menu.php:126
5033
  msgctxt "subscribers per page (screen options)"
5034
  msgid "Number of subscribers per page"
5035
  msgstr ""
5036
 
5037
+ #: lib/Config/Menu.php:150
5038
  msgctxt "segments per page (screen options)"
5039
  msgid "Number of segments per page"
5040
  msgstr ""
5108
  msgstr ""
5109
 
5110
  #: views/settings/advanced.html:13 views/settings/advanced.html:37
5111
+ #: views/settings/advanced.html:117
5112
  msgctxt "support article link label"
5113
  msgid "Read more."
5114
  msgstr ""
lib/Config/Database.php CHANGED
@@ -42,17 +42,21 @@ class Database {
42
  $driver_options[] = $character_set;
43
  }
44
 
45
- $current_options = ORM::for_table("")
46
- ->raw_query('SELECT @@session.wait_timeout as wait_timeout')
47
- ->findOne();
48
- if($current_options && (int)$current_options->wait_timeout < $this->driver_option_wait_timeout) {
49
- $driver_options[] = 'SESSION wait_timeout = ' . $this->driver_option_wait_timeout;
50
- }
51
- // reset the database
52
- ORM::set_db(null);
53
  ORM::configure('driver_options', array(
54
  PDO::MYSQL_ATTR_INIT_COMMAND => 'SET ' . implode(', ', $driver_options)
55
  ));
 
 
 
 
 
 
 
 
 
 
 
 
56
  }
57
 
58
  function defineTables() {
42
  $driver_options[] = $character_set;
43
  }
44
 
 
 
 
 
 
 
 
 
45
  ORM::configure('driver_options', array(
46
  PDO::MYSQL_ATTR_INIT_COMMAND => 'SET ' . implode(', ', $driver_options)
47
  ));
48
+
49
+ try {
50
+ $current_options = ORM::for_table("")
51
+ ->raw_query('SELECT @@session.wait_timeout as wait_timeout')
52
+ ->findOne();
53
+ if($current_options && (int)$current_options->wait_timeout < $this->driver_option_wait_timeout) {
54
+ ORM::raw_execute('SET SESSION wait_timeout = ' . $this->driver_option_wait_timeout);
55
+ }
56
+ } catch (\PDOException $e) {
57
+ // Rethrow PDOExceptions to prevent exposing sensitive data in stack traces
58
+ throw new \Exception($e->getMessage());
59
+ }
60
  }
61
 
62
  function defineTables() {
lib/Config/Initializer.php CHANGED
@@ -31,7 +31,12 @@ class Initializer {
31
  return;
32
  }
33
 
34
- $this->setupDB();
 
 
 
 
 
35
 
36
  // activation function
37
  register_activation_hook(
@@ -193,8 +198,16 @@ class Initializer {
193
  }
194
 
195
  function setupHooks() {
196
- $hooks = new Hooks();
197
- $hooks->init();
 
 
 
 
 
 
 
 
198
  }
199
 
200
  function setupJSONAPI() {
@@ -224,6 +237,10 @@ class Initializer {
224
  }
225
 
226
  function handleFailedInitialization($message) {
 
 
 
 
227
  return WPNotice::displayError($message);
228
  }
229
- }
31
  return;
32
  }
33
 
34
+ try {
35
+ $this->setupDB();
36
+ } catch(\Exception $e) {
37
+ $this->handleFailedInitialization($e);
38
+ return;
39
+ }
40
 
41
  // activation function
42
  register_activation_hook(
198
  }
199
 
200
  function setupHooks() {
201
+ if(!$this->plugin_initialized) {
202
+ return;
203
+ }
204
+
205
+ try {
206
+ $hooks = new Hooks();
207
+ $hooks->init();
208
+ } catch(\Exception $e) {
209
+ $this->handleFailedInitialization($e);
210
+ }
211
  }
212
 
213
  function setupJSONAPI() {
237
  }
238
 
239
  function handleFailedInitialization($message) {
240
+ // Check if we are able to add pages at this point
241
+ if(function_exists('wp_get_current_user')) {
242
+ Menu::addErrorPage();
243
+ }
244
  return WPNotice::displayError($message);
245
  }
246
+ }
lib/Config/MP2Migrator.php CHANGED
@@ -3,6 +3,7 @@
3
  namespace MailPoet\Config;
4
 
5
  use MailPoet\Util\ProgressBar;
 
6
  use MailPoet\Models\Setting;
7
  use MailPoet\Models\Segment;
8
  use MailPoet\Models\Subscriber;
@@ -159,12 +160,13 @@ class MP2Migrator {
159
  $this->importSegments();
160
  $this->importCustomFields();
161
  $this->importSubscribers();
 
162
 
163
  if(!$this->importStopped()) {
164
  Setting::setValue('mailpoet_migration_complete', true);
165
  $this->log(__('IMPORT COMPLETE', 'mailpoet'));
166
  }
167
-
168
  $this->log(sprintf('=== ' . __('END IMPORT', 'mailpoet') . ' %s ===', $datetime->formatTime(time(), \MailPoet\WP\DateTime::DEFAULT_DATE_TIME_FORMAT)));
169
  $result = ob_get_contents();
170
  ob_clean();
@@ -199,6 +201,7 @@ class MP2Migrator {
199
  private function resetMigrationCounters() {
200
  Setting::setValue('last_imported_user_id', 0);
201
  Setting::setValue('last_imported_list_id', 0);
 
202
  }
203
 
204
  /**
@@ -262,17 +265,17 @@ class MP2Migrator {
262
  $total_count += $users_count;
263
  $result .= sprintf(_n('%d subscriber', '%d subscribers', $users_count, 'mailpoet'), $users_count) . "\n";
264
 
 
 
 
 
 
265
  // TODO to reactivate during the next phases
266
  /*
267
  // Emails
268
  $emails_count = \ORM::for_table(MP2_EMAIL_TABLE)->count();
269
  $total_count += $emails_count;
270
  $result .= sprintf(_n('%d newsletter', '%d newsletters', $emails_count, 'mailpoet'), $emails_count) . "\n";
271
-
272
- // Forms
273
- $forms_count = \ORM::for_table(MP2_FORM_TABLE)->count();
274
- $total_count += $forms_count;
275
- $result .= sprintf(_n('%d form', '%d forms', $forms_count, 'mailpoet'), $forms_count) . "\n";
276
  */
277
 
278
  $this->progressbar->setTotalCount($total_count);
@@ -310,7 +313,7 @@ class MP2Migrator {
310
  } while(($lists != null) && ($lists_count > 0));
311
 
312
  $this->segments_mapping = $this->getImportedMapping('segments');
313
-
314
  $this->log(sprintf(_n("%d segment imported", "%d segments imported", $imported_segments_count, 'mailpoet'), $imported_segments_count));
315
  }
316
 
@@ -424,7 +427,7 @@ class MP2Migrator {
424
  'id' => $custom_field['id'],
425
  'name' => $custom_field['name'],
426
  'type' => $this->mapCustomFieldType($custom_field['type']),
427
- 'params' => $this->mapCustomFieldParams($custom_field),
428
  );
429
  $custom_field = new CustomField();
430
  $custom_field->createOrUpdate($data);
@@ -443,6 +446,9 @@ class MP2Migrator {
443
  case 'input':
444
  $type = 'text';
445
  break;
 
 
 
446
  default:
447
  $type = $mp2_type;
448
  }
@@ -452,17 +458,42 @@ class MP2Migrator {
452
  /**
453
  * Map the MailPoet 2 custom field settings with the MailPoet custom field params
454
  *
455
- * @param array $custom_field MP2 custom field
 
456
  * @return string serialized MP3 custom field params
457
  */
458
- private function mapCustomFieldParams($custom_field) {
459
- $params = unserialize($custom_field['settings']);
460
- $params['label'] = $custom_field['name'];
 
 
 
 
461
  if(isset($params['validate'])) {
462
  $params['validate'] = $this->mapCustomFieldValidateValue($params['validate']);
463
  }
464
  if(isset($params['date_order'])) { // Convert the date_order field
465
- $params['date_format'] = strtoupper($params['date_order']);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
466
  unset($params['date_order']);
467
  }
468
  return $params;
@@ -739,4 +770,195 @@ class MP2Migrator {
739
  return $mappings;
740
  }
741
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
742
  }
3
  namespace MailPoet\Config;
4
 
5
  use MailPoet\Util\ProgressBar;
6
+ use MailPoet\Models\Form;
7
  use MailPoet\Models\Setting;
8
  use MailPoet\Models\Segment;
9
  use MailPoet\Models\Subscriber;
160
  $this->importSegments();
161
  $this->importCustomFields();
162
  $this->importSubscribers();
163
+ $this->importForms();
164
 
165
  if(!$this->importStopped()) {
166
  Setting::setValue('mailpoet_migration_complete', true);
167
  $this->log(__('IMPORT COMPLETE', 'mailpoet'));
168
  }
169
+
170
  $this->log(sprintf('=== ' . __('END IMPORT', 'mailpoet') . ' %s ===', $datetime->formatTime(time(), \MailPoet\WP\DateTime::DEFAULT_DATE_TIME_FORMAT)));
171
  $result = ob_get_contents();
172
  ob_clean();
201
  private function resetMigrationCounters() {
202
  Setting::setValue('last_imported_user_id', 0);
203
  Setting::setValue('last_imported_list_id', 0);
204
+ Setting::setValue('last_imported_form_id', 0);
205
  }
206
 
207
  /**
265
  $total_count += $users_count;
266
  $result .= sprintf(_n('%d subscriber', '%d subscribers', $users_count, 'mailpoet'), $users_count) . "\n";
267
 
268
+ // Forms
269
+ $forms_count = \ORM::for_table(MP2_FORM_TABLE)->count();
270
+ $total_count += $forms_count;
271
+ $result .= sprintf(_n('%d form', '%d forms', $forms_count, 'mailpoet'), $forms_count) . "\n";
272
+
273
  // TODO to reactivate during the next phases
274
  /*
275
  // Emails
276
  $emails_count = \ORM::for_table(MP2_EMAIL_TABLE)->count();
277
  $total_count += $emails_count;
278
  $result .= sprintf(_n('%d newsletter', '%d newsletters', $emails_count, 'mailpoet'), $emails_count) . "\n";
 
 
 
 
 
279
  */
280
 
281
  $this->progressbar->setTotalCount($total_count);
313
  } while(($lists != null) && ($lists_count > 0));
314
 
315
  $this->segments_mapping = $this->getImportedMapping('segments');
316
+
317
  $this->log(sprintf(_n("%d segment imported", "%d segments imported", $imported_segments_count, 'mailpoet'), $imported_segments_count));
318
  }
319
 
427
  'id' => $custom_field['id'],
428
  'name' => $custom_field['name'],
429
  'type' => $this->mapCustomFieldType($custom_field['type']),
430
+ 'params' => $this->mapCustomFieldParams($custom_field['name'], unserialize($custom_field['settings'])),
431
  );
432
  $custom_field = new CustomField();
433
  $custom_field->createOrUpdate($data);
446
  case 'input':
447
  $type = 'text';
448
  break;
449
+ case 'list':
450
+ $type = 'segment';
451
+ break;
452
  default:
453
  $type = $mp2_type;
454
  }
458
  /**
459
  * Map the MailPoet 2 custom field settings with the MailPoet custom field params
460
  *
461
+ * @param string $name Parameter name
462
+ * @param array $params MP2 parameters
463
  * @return string serialized MP3 custom field params
464
  */
465
+ private function mapCustomFieldParams($name, $params) {
466
+ if(!isset($params['label'])) {
467
+ $params['label'] = $name;
468
+ }
469
+ if(isset($params['required'])) {
470
+ $params['required'] = (bool)$params['required'];
471
+ }
472
  if(isset($params['validate'])) {
473
  $params['validate'] = $this->mapCustomFieldValidateValue($params['validate']);
474
  }
475
  if(isset($params['date_order'])) { // Convert the date_order field
476
+ switch($params['date_type']) {
477
+
478
+ case 'year_month':
479
+ if(preg_match('/y$/i', $params['date_order'])) {
480
+ $params['date_format'] = 'MM/YYYY';
481
+ } else {
482
+ $params['date_format'] = 'YYYY/MM';
483
+ }
484
+ break;
485
+
486
+ case 'month';
487
+ $params['date_format'] = 'MM';
488
+ break;
489
+
490
+ case 'year';
491
+ $params['date_format'] = 'YYYY';
492
+ break;
493
+
494
+ default:
495
+ $params['date_format'] = strtoupper($params['date_order']);
496
+ }
497
  unset($params['date_order']);
498
  }
499
  return $params;
770
  return $mappings;
771
  }
772
 
773
+ /**
774
+ * Import the forms
775
+ *
776
+ */
777
+ private function importForms() {
778
+ $imported_forms_count = 0;
779
+ if($this->importStopped()) {
780
+ return;
781
+ }
782
+ $this->log(__("Importing forms...", 'mailpoet'));
783
+ do {
784
+ if($this->importStopped()) {
785
+ break;
786
+ }
787
+ $forms = $this->getForms(self::CHUNK_SIZE);
788
+ $forms_count = count($forms);
789
+
790
+ if(is_array($forms)) {
791
+ foreach($forms as $form) {
792
+ $new_form = $this->importForm($form);
793
+ if(!empty($new_form)) {
794
+ $imported_forms_count++;
795
+ }
796
+ }
797
+ }
798
+ $this->progressbar->incrementCurrentCount($forms_count);
799
+ } while(($forms != null) && ($forms_count > 0));
800
+
801
+ $this->log(sprintf(_n("%d form imported", "%d forms imported", $imported_forms_count, 'mailpoet'), $imported_forms_count));
802
+ }
803
+
804
+ /**
805
+ * Get the Mailpoet 2 forms
806
+ *
807
+ * @global object $wpdb
808
+ * @param int $limit Number of forms max
809
+ * @return array Forms
810
+ */
811
+ private function getForms($limit) {
812
+ global $wpdb;
813
+ $forms = array();
814
+
815
+ $last_id = Setting::getValue('last_imported_form_id', 0);
816
+ $table = MP2_FORM_TABLE;
817
+ $sql = "
818
+ SELECT f.*
819
+ FROM `$table` f
820
+ WHERE f.form_id > '$last_id'
821
+ ORDER BY f.form_id
822
+ LIMIT $limit
823
+ ";
824
+ $forms = $wpdb->get_results($sql, ARRAY_A);
825
+
826
+ return $forms;
827
+ }
828
+
829
+ /**
830
+ * Import a form
831
+ *
832
+ * @param array $form_data Form data
833
+ * @return Form
834
+ */
835
+ private function importForm($form_data) {
836
+ $serialized_data = base64_decode($form_data['data']);
837
+ $data = unserialize($serialized_data);
838
+ $settings = $data['settings'];
839
+ $body = $data['body'];
840
+ $segments = $this->getMappedSegmentIds($settings['lists']);
841
+ $mp3_form_settings = array(
842
+ 'on_success' => $settings['on_success'],
843
+ 'success_message' => $settings['success_message'],
844
+ 'segments_selected_by' => $settings['lists_selected_by'],
845
+ 'segments' => $segments,
846
+ );
847
+
848
+ $mp3_form_body = array();
849
+ foreach($body as $field) {
850
+ $type = $this->mapCustomFieldType($field['type']);
851
+ if($type == 'segment') {
852
+ $field_id = 'segments';
853
+ } else {
854
+ switch($field['field']) {
855
+ case 'firstname':
856
+ $field_id = 'first_name';
857
+ break;
858
+ case 'lastname':
859
+ $field_id = 'last_name';
860
+ break;
861
+ default:
862
+ $field_id = $field['field'];
863
+ }
864
+ }
865
+ $field_id = preg_replace('/^cf_(\d+)$/', '$1', $field_id);
866
+ $params = $this->mapCustomFieldParams($field['name'], $field['params']);
867
+ if(isset($params['text'])) {
868
+ $params['text'] = $this->replaceMP2Shortcodes(html_entity_decode($params['text']));
869
+ }
870
+ if(isset($params['values'])) {
871
+ $params['values'] = $this->replaceListIds($params['values']);
872
+ }
873
+ $mp3_form_body[] = array(
874
+ 'type' => $type,
875
+ 'name' => $field['name'],
876
+ 'id' => $field_id,
877
+ 'unique' => !in_array($field['type'], array('html', 'divider', 'email', 'submit'))? "1" : "0",
878
+ 'static' => in_array($field_id, array('email', 'submit'))? "1" : "0",
879
+ 'params' => $params,
880
+ 'position' => isset($field['position'])? $field['position'] : '',
881
+ );
882
+ }
883
+
884
+ $form = Form::createOrUpdate(array(
885
+ 'name' => $form_data['name'],
886
+ 'body' => $mp3_form_body,
887
+ 'settings' => $mp3_form_settings,
888
+ ));
889
+ Setting::setValue('last_imported_form_id', $form_data['form_id']);
890
+ return $form;
891
+ }
892
+
893
+ /**
894
+ * Get the MP3 segments IDs of the MP2 lists IDs
895
+ *
896
+ * @param array $mp2_list_ids
897
+ */
898
+ private function getMappedSegmentIds($mp2_list_ids) {
899
+ $mp3_segment_ids = array();
900
+ foreach($mp2_list_ids as $list_id) {
901
+ if(isset($this->segments_mapping[$list_id])) {
902
+ $mp3_segment_ids[] = $this->segments_mapping[$list_id];
903
+ }
904
+ }
905
+ return $mp3_segment_ids;
906
+ }
907
+
908
+ /**
909
+ * Replace the MP2 shortcodes used in the textarea fields
910
+ *
911
+ * @param string $text Text
912
+ * @return string Text
913
+ */
914
+ private function replaceMP2Shortcodes($text) {
915
+ $text = str_replace('[total_subscribers]', '[mailpoet_subscribers_count]', $text);
916
+ $text = preg_replace_callback('/\[wysija_subscribers_count list_id="(.*)" \]/', array($this, 'replaceMP2ShortcodesCallback'), $text);
917
+ return $text;
918
+ }
919
+
920
+ /**
921
+ * Callback function for MP2 shortcodes replacement
922
+ *
923
+ * @param array $matches PREG matches
924
+ * @return string Replacement
925
+ */
926
+ private function replaceMP2ShortcodesCallback($matches) {
927
+ if(!empty($matches)) {
928
+ $mp2_lists = explode(',', $matches[1]);
929
+ $segments = $this->getMappedSegmentIds($mp2_lists);
930
+ $segments_ids = implode(',', $segments);
931
+ return '[mailpoet_subscribers_count segments=' . $segments_ids . ']';
932
+ }
933
+ }
934
+
935
+ /**
936
+ * Replace the MP2 list IDs by MP3 segment IDs
937
+ *
938
+ * @param array $values Field values
939
+ * @return array Field values
940
+ */
941
+ private function replaceListIds($values) {
942
+ $mp3_values = array();
943
+ foreach($values as $value) {
944
+ $mp3_value = array();
945
+ foreach($value as $item => $item_value) {
946
+ if(($item == 'list_id') && isset($this->segments_mapping[$item_value])) {
947
+ $segment_id = $this->segments_mapping[$item_value];
948
+ $mp3_value['id'] = $segment_id;
949
+ $segment = Segment::findOne($segment_id);
950
+ if(isset($segment)) {
951
+ $mp3_value['name'] = $segment->get('name');
952
+ }
953
+ } else {
954
+ $mp3_value[$item] = $item_value;
955
+ }
956
+ }
957
+ if(!empty($mp3_value)) {
958
+ $mp3_values[] = $mp3_value;
959
+ }
960
+ }
961
+ return $mp3_values;
962
+ }
963
+
964
  }
lib/Config/Menu.php CHANGED
@@ -4,6 +4,7 @@ namespace MailPoet\Config;
4
  use MailPoet\Cron\CronTrigger;
5
  use MailPoet\Form\Block;
6
  use MailPoet\Form\Renderer as FormRenderer;
 
7
  use MailPoet\Listing;
8
  use MailPoet\Models\CustomField;
9
  use MailPoet\Models\Form;
@@ -167,6 +168,18 @@ class Menu {
167
  )
168
  );
169
 
 
 
 
 
 
 
 
 
 
 
 
 
170
  // Only show this page in menu if the Premium plugin is not activated
171
  add_submenu_page(
172
  License::getLicense() ? true : $main_page_slug,
@@ -377,6 +390,10 @@ class Menu {
377
  $this->displayPage('settings.html', $data);
378
  }
379
 
 
 
 
 
380
  private function _getFlags() {
381
  // flags (available features on WP install)
382
  $flags = array();
@@ -576,6 +593,34 @@ class Menu {
576
  return (stripos($screen_id, 'mailpoet-') !== false);
577
  }
578
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
579
  function checkMailPoetAPIKey(ServicesChecker $checker = null) {
580
  if(self::isOnMailPoetAdminPage()) {
581
  $show_notices = isset($_REQUEST['page'])
4
  use MailPoet\Cron\CronTrigger;
5
  use MailPoet\Form\Block;
6
  use MailPoet\Form\Renderer as FormRenderer;
7
+ use MailPoet\Helpscout\Beacon;
8
  use MailPoet\Listing;
9
  use MailPoet\Models\CustomField;
10
  use MailPoet\Models\Form;
168
  )
169
  );
170
 
171
+ add_submenu_page(
172
+ $main_page_slug,
173
+ $this->setPageTitle(__('Help', 'mailpoet')),
174
+ __('Help', 'mailpoet'),
175
+ Env::$required_permission,
176
+ 'mailpoet-help',
177
+ array(
178
+ $this,
179
+ 'help'
180
+ )
181
+ );
182
+
183
  // Only show this page in menu if the Premium plugin is not activated
184
  add_submenu_page(
185
  License::getLicense() ? true : $main_page_slug,
390
  $this->displayPage('settings.html', $data);
391
  }
392
 
393
+ function help() {
394
+ $this->displayPage('help.html', array('data' => Beacon::getData()));
395
+ }
396
+
397
  private function _getFlags() {
398
  // flags (available features on WP install)
399
  $flags = array();
593
  return (stripos($screen_id, 'mailpoet-') !== false);
594
  }
595
 
596
+ /**
597
+ * This error page is used when the initialization is failed
598
+ * to display admin notices only
599
+ */
600
+ static function addErrorPage() {
601
+ if(!self::isOnMailPoetAdminPage()) {
602
+ return false;
603
+ }
604
+ // Check if page already exists
605
+ if(get_plugin_page_hook($_REQUEST['page'], '')
606
+ || get_plugin_page_hook($_REQUEST['page'], 'mailpoet-newsletters')
607
+ ) {
608
+ return false;
609
+ }
610
+ add_submenu_page(
611
+ true,
612
+ 'MailPoet',
613
+ 'MailPoet',
614
+ Env::$required_permission,
615
+ $_REQUEST['page'],
616
+ array(__CLASS__, 'errorPageCallback')
617
+ );
618
+ }
619
+
620
+ static function errorPageCallback() {
621
+ // Used for displaying admin notices only
622
+ }
623
+
624
  function checkMailPoetAPIKey(ServicesChecker $checker = null) {
625
  if(self::isOnMailPoetAdminPage()) {
626
  $show_notices = isset($_REQUEST['page'])
lib/Config/Populator.php CHANGED
@@ -26,7 +26,6 @@ class Populator {
26
  'newsletter_templates',
27
  );
28
  $this->templates = array(
29
- "FranksRoastHouseTemplate",
30
  "NewsletterBlank1Column",
31
  "NewsletterBlank12Column",
32
  "NewsletterBlank121Column",
@@ -35,9 +34,23 @@ class Populator {
35
  "WelcomeBlank1Column",
36
  "WelcomeBlank12Column",
37
  "SimpleText",
38
- "Restaurant",
39
- "StoreDiscount",
40
- "TravelEmail"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41
  );
42
  }
43
 
26
  'newsletter_templates',
27
  );
28
  $this->templates = array(
 
29
  "NewsletterBlank1Column",
30
  "NewsletterBlank12Column",
31
  "NewsletterBlank121Column",
34
  "WelcomeBlank1Column",
35
  "WelcomeBlank12Column",
36
  "SimpleText",
37
+ "BurgerJoint",
38
+ "AppWelcome",
39
+ "WorldCup",
40
+ "FoodBox",
41
+ "Discount",
42
+ "KickOff",
43
+ "TakeAHike",
44
+ "FestivalEvent",
45
+ "PieceOfCake",
46
+ "Shoes",
47
+ "ScienceWeekly",
48
+ "ChocolateStore",
49
+ "Faith",
50
+ "TravelNomads",
51
+ "CoffeeShop",
52
+ "NewsDay",
53
+ "YogaStudio",
54
  );
55
  }
56
 
lib/Config/PopulatorData/Templates/AppWelcome.php ADDED
@@ -0,0 +1,415 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace MailPoet\Config\PopulatorData\Templates;
4
+
5
+ class AppWelcome {
6
+
7
+ private $template_image_url;
8
+ private $social_icon_url;
9
+
10
+ function __construct($assets_url) {
11
+ $this->template_image_url = '//ps.w.org/mailpoet/assets/newsletter-templates/app_welcome';
12
+ $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons';
13
+ }
14
+
15
+ function get() {
16
+ return array(
17
+ 'name' => __("App Welcome", 'mailpoet'),
18
+ 'description' => __("A welcome email template for your app.", 'mailpoet'),
19
+ 'readonly' => 1,
20
+ 'thumbnail' => $this->getThumbnail(),
21
+ 'body' => json_encode($this->getBody()),
22
+ );
23
+ }
24
+
25
+ private function getBody() {
26
+ return array(
27
+ 'content' => array(
28
+ 'type' => 'container',
29
+ 'orientation' => 'vertical',
30
+ 'styles' => array(
31
+ 'block' => array(
32
+ 'backgroundColor' => 'transparent',
33
+ ),
34
+ ),
35
+ 'blocks' => array(
36
+ array(
37
+ 'type' => 'container',
38
+ 'orientation' => 'horizontal',
39
+ 'styles' => array(
40
+ 'block' => array(
41
+ 'backgroundColor' => '#eeeeee',
42
+ ),
43
+ ),
44
+ 'blocks' => array(
45
+ array(
46
+ 'type' => 'container',
47
+ 'orientation' => 'vertical',
48
+ 'styles' => array(
49
+ 'block' => array(
50
+ 'backgroundColor' => 'transparent',
51
+ ),
52
+ ),
53
+ 'blocks' => array(
54
+ array(
55
+ 'type' => 'spacer',
56
+ 'styles' => array(
57
+ 'block' => array(
58
+ 'backgroundColor' => '#eeeeee',
59
+ 'height' => '30px',
60
+ ),
61
+ ),
62
+ ),
63
+ ),
64
+ ),
65
+ ),
66
+ ),
67
+ array(
68
+ 'type' => 'container',
69
+ 'orientation' => 'horizontal',
70
+ 'styles' => array(
71
+ 'block' => array(
72
+ 'backgroundColor' => '#32b6c6',
73
+ ),
74
+ ),
75
+ 'blocks' => array(
76
+ array(
77
+ 'type' => 'container',
78
+ 'orientation' => 'vertical',
79
+ 'styles' => array(
80
+ 'block' => array(
81
+ 'backgroundColor' => 'transparent',
82
+ ),
83
+ ),
84
+ 'blocks' => array(
85
+ array(
86
+ 'type' => 'spacer',
87
+ 'styles' => array(
88
+ 'block' => array(
89
+ 'backgroundColor' => 'transparent',
90
+ 'height' => '40px',
91
+ ),
92
+ ),
93
+ ),
94
+ array(
95
+ 'type' => 'image',
96
+ 'link' => '',
97
+ 'src' => $this->template_image_url . '/App-Signup-Logo-1.png',
98
+ 'alt' => 'App-Signup-Logo',
99
+ 'fullWidth' => false,
100
+ 'width' => '80px',
101
+ 'height' => '80px',
102
+ 'styles' => array(
103
+ 'block' => array(
104
+ 'textAlign' => 'center',
105
+ ),
106
+ ),
107
+ ),
108
+ array(
109
+ 'type' => 'text',
110
+ 'text' => '<h1 style="text-align: center; margin: 0;"><strong>Welcome to Appy</strong></h1><p style="text-align: center; margin: 0;"><span style="color: #ffffff;">Let\'s get started!</span></p>',
111
+ ),
112
+
113
+ array(
114
+ 'type' => 'image',
115
+ 'link' => '',
116
+ 'src' => $this->template_image_url . '/App-Signup-Header.png',
117
+ 'alt' => 'App-Signup-Header',
118
+ 'fullWidth' => false,
119
+ 'width' => '1280px',
120
+ 'height' => '500px',
121
+ 'styles' => array(
122
+ 'block' => array(
123
+ 'textAlign' => 'center',
124
+ ),
125
+ ),
126
+ ),
127
+ ),
128
+ ),
129
+ ),
130
+ ),
131
+
132
+ array(
133
+ 'type' => 'container',
134
+ 'orientation' => 'horizontal',
135
+ 'styles' => array(
136
+ 'block' => array(
137
+ 'backgroundColor' => '#ffffff',
138
+ ),
139
+ ),
140
+ 'blocks' => array(
141
+ array(
142
+ 'type' => 'container',
143
+ 'orientation' => 'vertical',
144
+ 'styles' => array(
145
+ 'block' => array(
146
+ 'backgroundColor' => 'transparent',
147
+ ),
148
+ ),
149
+ 'blocks' => array(
150
+ array(
151
+ 'type' => 'spacer',
152
+ 'styles' => array(
153
+ 'block' => array(
154
+ 'backgroundColor' => 'transparent',
155
+ 'height' => '40px',
156
+ ),
157
+ ),
158
+ ),
159
+ array(
160
+ 'type' => 'text',
161
+ 'text' => '<p style="text-align: center;">Hi [subscriber:firstname | default:subscriber],</p>
162
+ <p style="text-align: center;"></p>
163
+ <p style="text-align: center;">In MailPoet, you can write emails in plain text, just like in a regular email. This can make your email newsletters more personal and attention-grabbing.</p>
164
+ <p style="text-align: center;"></p>
165
+ <p style="text-align: center;">Is this too simple? You can still style your text with basic formatting, like <strong>bold</strong> or <em>italics.</em></p>
166
+ <p style="text-align: center;"></p>
167
+ <p style="text-align: center;">Finally, you can also add a call-to-action button between 2 blocks of text, like this:</p>',
168
+ ),
169
+ ),
170
+ ),
171
+ ),
172
+ ),
173
+ array(
174
+ 'type' => 'container',
175
+ 'orientation' => 'horizontal',
176
+ 'styles' => array(
177
+ 'block' => array(
178
+ 'backgroundColor' => '#ffffff',
179
+ ),
180
+ ),
181
+ 'blocks' => array(
182
+ array(
183
+ 'type' => 'container',
184
+ 'orientation' => 'vertical',
185
+ 'styles' => array(
186
+ 'block' => array(
187
+ 'backgroundColor' => 'transparent',
188
+ ),
189
+ ),
190
+ 'blocks' => array(
191
+ array(
192
+ 'type' => 'spacer',
193
+ 'styles' => array(
194
+ 'block' => array(
195
+ 'backgroundColor' => 'transparent',
196
+ 'height' => '23px',
197
+ ),
198
+ ),
199
+ ),
200
+ array(
201
+ 'type' => 'button',
202
+ 'text' => 'Get Started Here',
203
+ 'url' => '',
204
+ 'styles' => array(
205
+ 'block' => array(
206
+ 'backgroundColor' => '#32b6c6',
207
+ 'borderColor' => '#32b6c6',
208
+ 'borderWidth' => '0px',
209
+ 'borderRadius' => '40px',
210
+ 'borderStyle' => 'solid',
211
+ 'width' => '188px',
212
+ 'lineHeight' => '50px',
213
+ 'fontColor' => '#ffffff',
214
+ 'fontFamily' => 'Arial',
215
+ 'fontSize' => '18px',
216
+ 'fontWeight' => 'normal',
217
+ 'textAlign' => 'center',
218
+ ),
219
+ ),
220
+ ),
221
+ array(
222
+ 'type' => 'spacer',
223
+ 'styles' => array(
224
+ 'block' => array(
225
+ 'backgroundColor' => 'transparent',
226
+ 'height' => '35px',
227
+ ),
228
+ ),
229
+ ),
230
+ ),
231
+ ),
232
+ ),
233
+ ),
234
+ array(
235
+ 'type' => 'container',
236
+ 'orientation' => 'horizontal',
237
+ 'styles' => array(
238
+ 'block' => array(
239
+ 'backgroundColor' => 'transparent',
240
+ ),
241
+ ),
242
+ 'blocks' => array(
243
+ array(
244
+ 'type' => 'container',
245
+ 'orientation' => 'vertical',
246
+ 'styles' => array(
247
+ 'block' => array(
248
+ 'backgroundColor' => 'transparent',
249
+ ),
250
+ ),
251
+ 'blocks' => array(
252
+ array(
253
+ 'type' => 'image',
254
+ 'link' => '',
255
+ 'src' => $this->template_image_url . '/App-Signup-Team.jpg',
256
+ 'alt' => 'App-Signup-Team',
257
+ 'fullWidth' => true,
258
+ 'width' => '1280px',
259
+ 'height' => '700px',
260
+ 'styles' => array(
261
+ 'block' => array(
262
+ 'textAlign' => 'center',
263
+ ),
264
+ ),
265
+ ),
266
+ ),
267
+ ),
268
+ ),
269
+ ),
270
+ array(
271
+ 'type' => 'container',
272
+ 'orientation' => 'horizontal',
273
+ 'styles' => array(
274
+ 'block' => array(
275
+ 'backgroundColor' => '#eeeeee',
276
+ ),
277
+ ),
278
+ 'blocks' => array(
279
+ array(
280
+ 'type' => 'container',
281
+ 'orientation' => 'vertical',
282
+ 'styles' => array(
283
+ 'block' => array(
284
+ 'backgroundColor' => 'transparent',
285
+ ),
286
+ ),
287
+ 'blocks' => array(
288
+ array(
289
+ 'type' => 'spacer',
290
+ 'styles' => array(
291
+ 'block' => array(
292
+ 'backgroundColor' => 'transparent',
293
+ 'height' => '30px',
294
+ ),
295
+ ),
296
+ ),
297
+ array(
298
+ 'type' => 'image',
299
+ 'link' => '',
300
+ 'src' => $this->template_image_url . '/App-Signup-Logo-Footer.png',
301
+ 'alt' => 'App-Signup-Logo-Footer',
302
+ 'fullWidth' => false,
303
+ 'width' => '50px',
304
+ 'height' => '50px',
305
+ 'styles' => array(
306
+ 'block' => array(
307
+ 'textAlign' => 'center',
308
+ ),
309
+ ),
310
+ ),
311
+ array(
312
+ 'type' => 'text',
313
+ 'text' => '<p style="text-align: center; font-size: 12px;"><strong>Appy</strong></p>
314
+ <p style="text-align: center; font-size: 12px;"><span>Address Line 1</span></p>
315
+ <p style="text-align: center; font-size: 12px;"><span>Address Line 2</span></p>
316
+ <p style="text-align: center; font-size: 12px;"><span>City</span></p>
317
+ <p style="text-align: center; font-size: 12px;"><a href="[link:subscription_unsubscribe_url]">Unsubscribe</a><span> | </span><a href="[link:subscription_manage_url]">Manage subscription</a></p>',
318
+ ),
319
+ array(
320
+ 'type' => 'social',
321
+ 'iconSet' => 'full-symbol-color',
322
+ 'icons' => array(
323
+ array(
324
+ 'type' => 'socialIcon',
325
+ 'iconType' => 'facebook',
326
+ 'link' => 'http://www.facebook.com',
327
+ 'image' => $this->social_icon_url . '/06-full-symbol-color/Facebook.png',
328
+ 'height' => '32px',
329
+ 'width' => '32px',
330
+ 'text' => 'Facebook',
331
+ ),
332
+ array(
333
+ 'type' => 'socialIcon',
334
+ 'iconType' => 'twitter',
335
+ 'link' => 'http://www.twitter.com',
336
+ 'image' => $this->social_icon_url . '/06-full-symbol-color/Twitter.png',
337
+ 'height' => '32px',
338
+ 'width' => '32px',
339
+ 'text' => 'Twitter',
340
+ ),
341
+ array(
342
+ 'type' => 'socialIcon',
343
+ 'iconType' => 'youtube',
344
+ 'link' => 'http://www.youtube.com',
345
+ 'image' => $this->social_icon_url . '/06-full-symbol-color/Youtube.png',
346
+ 'height' => '32px',
347
+ 'width' => '32px',
348
+ 'text' => 'Youtube',
349
+ ),
350
+ array(
351
+ 'type' => 'socialIcon',
352
+ 'iconType' => 'instagram',
353
+ 'link' => 'http://instagram.com',
354
+ 'image' => $this->social_icon_url . '/06-full-symbol-color/Instagram.png',
355
+ 'height' => '32px',
356
+ 'width' => '32px',
357
+ 'text' => 'Instagram',
358
+ ),
359
+ ),
360
+ ),
361
+ array(
362
+ 'type' => 'spacer',
363
+ 'styles' => array(
364
+ 'block' => array(
365
+ 'backgroundColor' => 'transparent',
366
+ 'height' => '40px',
367
+ ),
368
+ ),
369
+ ),
370
+ ),
371
+ ),
372
+ ),
373
+ ),
374
+ ),
375
+ ),
376
+ 'globalStyles' => array(
377
+ 'text' => array(
378
+ 'fontColor' => '#404040',
379
+ 'fontFamily' => 'Arial',
380
+ 'fontSize' => '15px',
381
+ ),
382
+ 'h1' => array(
383
+ 'fontColor' => '#ffffff',
384
+ 'fontFamily' => 'Arial',
385
+ 'fontSize' => '26px',
386
+ ),
387
+ 'h2' => array(
388
+ 'fontColor' => '#404040',
389
+ 'fontFamily' => 'Arial',
390
+ 'fontSize' => '22px',
391
+ ),
392
+ 'h3' => array(
393
+ 'fontColor' => '#32b6c6',
394
+ 'fontFamily' => 'Arial',
395
+ 'fontSize' => '18px',
396
+ ),
397
+ 'link' => array(
398
+ 'fontColor' => '#32b6c6',
399
+ 'textDecoration' => 'underline',
400
+ ),
401
+ 'wrapper' => array(
402
+ 'backgroundColor' => '#ffffff',
403
+ ),
404
+ 'body' => array(
405
+ 'backgroundColor' => '#eeeeee',
406
+ ),
407
+ ),
408
+ );
409
+ }
410
+
411
+ private function getThumbnail() {
412
+ return $this->template_image_url . '/app-welcome-email.jpg';
413
+ }
414
+
415
+ }
lib/Config/PopulatorData/Templates/BurgerJoint.php ADDED
@@ -0,0 +1,497 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace MailPoet\Config\PopulatorData\Templates;
4
+
5
+ class BurgerJoint {
6
+
7
+ private $template_image_url;
8
+ private $social_icon_url;
9
+
10
+ function __construct($assets_url) {
11
+ $this->template_image_url = 'http://ps.w.org/mailpoet/assets/newsletter-templates/burger_joint';
12
+ $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons';
13
+ }
14
+
15
+ function get() {
16
+ return array(
17
+ 'name' => __("Burger Joint", 'mailpoet'),
18
+ 'description' => __("Add more or less ketchup or mayo to this restaurant template.", 'mailpoet'),
19
+ 'readonly' => 1,
20
+ 'thumbnail' => $this->getThumbnail(),
21
+ 'body' => json_encode($this->getBody()),
22
+ );
23
+ }
24
+
25
+ private function getBody() {
26
+ return array(
27
+ 'content' => array(
28
+ 'type' => 'container',
29
+ 'orientation' => 'vertical',
30
+ 'styles' => array(
31
+ 'block' => array(
32
+ 'backgroundColor' => 'transparent',
33
+ ),
34
+ ),
35
+ 'blocks' => array(
36
+ array(
37
+ 'type' => 'container',
38
+ 'orientation' => 'horizontal',
39
+ 'styles' => array(
40
+ 'block' => array(
41
+ 'backgroundColor' => 'transparent',
42
+ ),
43
+ ),
44
+ 'blocks' => array(
45
+ array(
46
+ 'type' => 'container',
47
+ 'orientation' => 'vertical',
48
+ 'styles' => array(
49
+ 'block' => array(
50
+ 'backgroundColor' => 'transparent',
51
+ ),
52
+ ),
53
+ 'blocks' => array(
54
+ array(
55
+ 'type' => 'image',
56
+ 'link' => 'http://example.org',
57
+ 'src' => $this->template_image_url . '/header.jpg',
58
+ 'alt' => 'Joe\'s Burger Joint',
59
+ 'fullWidth' => true,
60
+ 'width' => '660px',
61
+ 'height' => '100px',
62
+ 'styles' => array(
63
+ 'block' => array(
64
+ 'textAlign' => 'center',
65
+ ),
66
+ ),
67
+ ),
68
+ ),
69
+ ),
70
+ ),
71
+ ),
72
+ array(
73
+ 'type' => 'container',
74
+ 'orientation' => 'horizontal',
75
+ 'styles' => array(
76
+ 'block' => array(
77
+ 'backgroundColor' => 'transparent',
78
+ ),
79
+ ),
80
+ 'blocks' => array(
81
+ array(
82
+ 'type' => 'container',
83
+ 'orientation' => 'vertical',
84
+ 'styles' => array(
85
+ 'block' => array(
86
+ 'backgroundColor' => 'transparent',
87
+ ),
88
+ ),
89
+ 'blocks' => array(
90
+ array(
91
+ 'type' => 'image',
92
+ 'link' => 'http://example.org',
93
+ 'src' => $this->template_image_url . '/burger-03.jpg',
94
+ 'alt' => 'burger-03',
95
+ 'fullWidth' => true,
96
+ 'width' => '1200px',
97
+ 'height' => '613px',
98
+ 'styles' => array(
99
+ 'block' => array(
100
+ 'textAlign' => 'center',
101
+ ),
102
+ ),
103
+ ),
104
+ array(
105
+ 'type' => 'spacer',
106
+ 'styles' => array(
107
+ 'block' => array(
108
+ 'backgroundColor' => 'transparent',
109
+ 'height' => '30px',
110
+ ),
111
+ ),
112
+ ),
113
+ array(
114
+ 'type' => 'button',
115
+ 'text' => 'Make a reservation',
116
+ 'url' => 'http://example.org',
117
+ 'styles' => array(
118
+ 'block' => array(
119
+ 'backgroundColor' => '#d83b3b',
120
+ 'borderColor' => '#ffffff',
121
+ 'borderWidth' => '0px',
122
+ 'borderRadius' => '0px',
123
+ 'borderStyle' => 'solid',
124
+ 'width' => '225px',
125
+ 'lineHeight' => '50px',
126
+ 'fontColor' => '#ffffff',
127
+ 'fontFamily' => 'Verdana',
128
+ 'fontSize' => '18px',
129
+ 'fontWeight' => 'normal',
130
+ 'textAlign' => 'center',
131
+ ),
132
+ ),
133
+ ),
134
+ array(
135
+ 'type' => 'text',
136
+ 'text' => '<h1 style="text-align: center;"><em>Upgrade! Add these sides</em></h1>',
137
+ ),
138
+ array(
139
+ 'type' => 'spacer',
140
+ 'styles' => array(
141
+ 'block' => array(
142
+ 'backgroundColor' => 'transparent',
143
+ 'height' => '20px',
144
+ ),
145
+ ),
146
+ ),
147
+ ),
148
+ ),
149
+ ),
150
+ ),
151
+ array(
152
+ 'type' => 'container',
153
+ 'orientation' => 'horizontal',
154
+ 'styles' => array(
155
+ 'block' => array(
156
+ 'backgroundColor' => 'transparent',
157
+ ),
158
+ ),
159
+ 'blocks' => array(
160
+ array(
161
+ 'type' => 'container',
162
+ 'orientation' => 'vertical',
163
+ 'styles' => array(
164
+ 'block' => array(
165
+ 'backgroundColor' => 'transparent',
166
+ ),
167
+ ),
168
+ 'blocks' => array(
169
+ array(
170
+ 'type' => 'image',
171
+ 'link' => 'http://example.org',
172
+ 'src' => $this->template_image_url . '/fries-01.jpg',
173
+ 'alt' => 'fries-01',
174
+ 'fullWidth' => false,
175
+ 'width' => '1000px',
176
+ 'height' => '1500px',
177
+ 'styles' => array(
178
+ 'block' => array(
179
+ 'textAlign' => 'center',
180
+ ),
181
+ ),
182
+ ),
183
+ array(
184
+ 'type' => 'text',
185
+ 'text' => '<blockquote><p>Cras cursus viverra nulla non tempus. Curabitur sed neque vel sapien! - Morbi ullamcorper, Tellus Diam</p></blockquote>',
186
+ ),
187
+ ),
188
+ ),
189
+ array(
190
+ 'type' => 'container',
191
+ 'orientation' => 'vertical',
192
+ 'styles' => array(
193
+ 'block' => array(
194
+ 'backgroundColor' => 'transparent',
195
+ ),
196
+ ),
197
+ 'blocks' => array(
198
+ array(
199
+ 'type' => 'image',
200
+ 'link' => 'http://example.org',
201
+ 'src' => $this->template_image_url . '/rolls-01.jpg',
202
+ 'alt' => 'rolls-01',
203
+ 'fullWidth' => false,
204
+ 'width' => '1000px',
205
+ 'height' => '1500px',
206
+ 'styles' => array(
207
+ 'block' => array(
208
+ 'textAlign' => 'center',
209
+ ),
210
+ ),
211
+ ),
212
+ array(
213
+ 'type' => 'text',
214
+ 'text' => '<blockquote><p>Morbi ex diam, venenatis a efficitur et, iaculis at nibh. - Quis Ullamcorper, Tortor Ligula</p></blockquote>',
215
+ ),
216
+ ),
217
+ ),
218
+ ),
219
+ ),
220
+ array(
221
+ 'type' => 'container',
222
+ 'orientation' => 'horizontal',
223
+ 'styles' => array(
224
+ 'block' => array(
225
+ 'backgroundColor' => 'transparent',
226
+ ),
227
+ ),
228
+ 'blocks' => array(
229
+ array(
230
+ 'type' => 'container',
231
+ 'orientation' => 'vertical',
232
+ 'styles' => array(
233
+ 'block' => array(
234
+ 'backgroundColor' => 'transparent',
235
+ ),
236
+ ),
237
+ 'blocks' => array(
238
+ array(
239
+ 'type' => 'divider',
240
+ 'styles' => array(
241
+ 'block' => array(
242
+ 'backgroundColor' => 'transparent',
243
+ 'padding' => '34px',
244
+ 'borderStyle' => 'dashed',
245
+ 'borderWidth' => '3px',
246
+ 'borderColor' => '#aaaaaa',
247
+ ),
248
+ ),
249
+ ),
250
+ ),
251
+ ),
252
+ ),
253
+ ),
254
+ array(
255
+ 'type' => 'container',
256
+ 'orientation' => 'horizontal',
257
+ 'styles' => array(
258
+ 'block' => array(
259
+ 'backgroundColor' => '#e0e0e0',
260
+ ),
261
+ ),
262
+ 'blocks' => array(
263
+ array(
264
+ 'type' => 'container',
265
+ 'orientation' => 'vertical',
266
+ 'styles' => array(
267
+ 'block' => array(
268
+ 'backgroundColor' => 'transparent',
269
+ ),
270
+ ),
271
+ 'blocks' => array(
272
+ array(
273
+ 'type' => 'spacer',
274
+ 'styles' => array(
275
+ 'block' => array(
276
+ 'backgroundColor' => 'transparent',
277
+ 'height' => '30px',
278
+ ),
279
+ ),
280
+ ),
281
+ array(
282
+ 'type' => 'text',
283
+ 'text' => '<h2 style="text-align: center;">Find us at these locations</h2>',
284
+ ),
285
+ array(
286
+ 'type' => 'spacer',
287
+ 'styles' => array(
288
+ 'block' => array(
289
+ 'backgroundColor' => 'transparent',
290
+ 'height' => '20px',
291
+ ),
292
+ ),
293
+ ),
294
+ ),
295
+ ),
296
+ ),
297
+ ),
298
+ array(
299
+ 'type' => 'container',
300
+ 'orientation' => 'horizontal',
301
+ 'styles' => array(
302
+ 'block' => array(
303
+ 'backgroundColor' => '#e0e0e0',
304
+ ),
305
+ ),
306
+ 'blocks' => array(
307
+ array(
308
+ 'type' => 'container',
309
+ 'orientation' => 'vertical',
310
+ 'styles' => array(
311
+ 'block' => array(
312
+ 'backgroundColor' => 'transparent',
313
+ ),
314
+ ),
315
+ 'blocks' => array(
316
+ array(
317
+ 'type' => 'text',
318
+ 'text' => '<h3><span style="text-decoration: underline;"><em>Denver</em></span></h3><p>1263 Schoville Street</p><p>53355 DENVER</p><p>CO</p>',
319
+ ),
320
+ ),
321
+ ),
322
+ array(
323
+ 'type' => 'container',
324
+ 'orientation' => 'vertical',
325
+ 'styles' => array(
326
+ 'block' => array(
327
+ 'backgroundColor' => 'transparent',
328
+ ),
329
+ ),
330
+ 'blocks' => array(
331
+ array(
332
+ 'type' => 'text',
333
+ 'text' => '<h3><span style="text-decoration: underline;"><em>Fort Collins</em></span></h3><p><em></em>157 Maine Street</p><p>86432 FORT COLLINS<br />CO</p><p></p>',
334
+ ),
335
+ ),
336
+ ),
337
+ array(
338
+ 'type' => 'container',
339
+ 'orientation' => 'vertical',
340
+ 'styles' => array(
341
+ 'block' => array(
342
+ 'backgroundColor' => 'transparent',
343
+ ),
344
+ ),
345
+ 'blocks' => array(
346
+ array(
347
+ 'type' => 'text',
348
+ 'text' => '<h3><span style="text-decoration: underline;"><em>Pueblo</em></span></h3><p><em></em>5390 York Avenue</p><p>64297 Pueblo</p><p>CO</p>',
349
+ ),
350
+ ),
351
+ ),
352
+ ),
353
+ ),
354
+ array(
355
+ 'type' => 'container',
356
+ 'orientation' => 'horizontal',
357
+ 'styles' => array(
358
+ 'block' => array(
359
+ 'backgroundColor' => 'transparent',
360
+ ),
361
+ ),
362
+ 'blocks' => array(
363
+ array(
364
+ 'type' => 'container',
365
+ 'orientation' => 'vertical',
366
+ 'styles' => array(
367
+ 'block' => array(
368
+ 'backgroundColor' => 'transparent',
369
+ ),
370
+ ),
371
+ 'blocks' => array(
372
+ array(
373
+ 'type' => 'spacer',
374
+ 'styles' => array(
375
+ 'block' => array(
376
+ 'backgroundColor' => 'transparent',
377
+ 'height' => '30px',
378
+ ),
379
+ ),
380
+ ),
381
+ array(
382
+ 'type' => 'social',
383
+ 'iconSet' => 'full-symbol-black',
384
+ 'icons' => array(
385
+ array(
386
+ 'type' => 'socialIcon',
387
+ 'iconType' => 'facebook',
388
+ 'link' => 'http://example.com',
389
+ 'image' => $this->social_icon_url . '/07-full-symbol-black/Facebook.png',
390
+ 'height' => '32px',
391
+ 'width' => '32px',
392
+ 'text' => 'Facebook',
393
+ ),
394
+ array(
395
+ 'type' => 'socialIcon',
396
+ 'iconType' => 'twitter',
397
+ 'link' => 'http://example.com',
398
+ 'image' => $this->social_icon_url . '/07-full-symbol-black/Twitter.png',
399
+ 'height' => '32px',
400
+ 'width' => '32px',
401
+ 'text' => 'Twitter',
402
+ ),
403
+ array(
404
+ 'type' => 'socialIcon',
405
+ 'iconType' => 'instagram',
406
+ 'link' => 'http://instagram.com',
407
+ 'image' => $this->social_icon_url . '/07-full-symbol-black/Instagram.png',
408
+ 'height' => '32px',
409
+ 'width' => '32px',
410
+ 'text' => 'Instagram',
411
+ ),
412
+ ),
413
+ ),
414
+ array(
415
+ 'type' => 'header',
416
+ 'text' => '<p><a href="[link:newsletter_view_in_browser_url]">View&nbsp;this email in your web browser</a></p>',
417
+ 'styles' => array(
418
+ 'block' => array(
419
+ 'backgroundColor' => 'transparent',
420
+ ),
421
+ 'text' => array(
422
+ 'fontColor' => '#222222',
423
+ 'fontFamily' => 'Verdana',
424
+ 'fontSize' => '12px',
425
+ 'textAlign' => 'center',
426
+ ),
427
+ 'link' => array(
428
+ 'fontColor' => '#d83b3b',
429
+ 'textDecoration' => 'underline',
430
+ ),
431
+ ),
432
+ ),
433
+ array(
434
+ 'type' => 'footer',
435
+ 'text' => '<p><a href="[link:subscription_unsubscribe_url]">Unsubscribe</a> | <a href="[link:subscription_manage_url]">Manage subscription</a><br />Address: Colorado</p>',
436
+ 'styles' => array(
437
+ 'block' => array(
438
+ 'backgroundColor' => 'transparent',
439
+ ),
440
+ 'text' => array(
441
+ 'fontColor' => '#222222',
442
+ 'fontFamily' => 'Verdana',
443
+ 'fontSize' => '12px',
444
+ 'textAlign' => 'center',
445
+ ),
446
+ 'link' => array(
447
+ 'fontColor' => '#d83b3b',
448
+ 'textDecoration' => 'none',
449
+ ),
450
+ ),
451
+ ),
452
+ ),
453
+ ),
454
+ ),
455
+ ),
456
+ ),
457
+ ),
458
+ 'globalStyles' => array(
459
+ 'text' => array(
460
+ 'fontColor' => '#434343',
461
+ 'fontFamily' => 'Tahoma',
462
+ 'fontSize' => '16px',
463
+ ),
464
+ 'h1' => array(
465
+ 'fontColor' => '#222222',
466
+ 'fontFamily' => 'Verdana',
467
+ 'fontSize' => '24px',
468
+ ),
469
+ 'h2' => array(
470
+ 'fontColor' => '#222222',
471
+ 'fontFamily' => 'Verdana',
472
+ 'fontSize' => '22px',
473
+ ),
474
+ 'h3' => array(
475
+ 'fontColor' => '#222222',
476
+ 'fontFamily' => 'Verdana',
477
+ 'fontSize' => '20px',
478
+ ),
479
+ 'link' => array(
480
+ 'fontColor' => '#21759B',
481
+ 'textDecoration' => 'underline',
482
+ ),
483
+ 'wrapper' => array(
484
+ 'backgroundColor' => '#f0f0f0',
485
+ ),
486
+ 'body' => array(
487
+ 'backgroundColor' => '#ffffff',
488
+ ),
489
+ ),
490
+ );
491
+ }
492
+
493
+ private function getThumbnail() {
494
+ return $this->template_image_url . '/burger-joint.jpg';
495
+ }
496
+
497
+ }
lib/Config/PopulatorData/Templates/ChocolateStore.php ADDED
@@ -0,0 +1,846 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace MailPoet\Config\PopulatorData\Templates;
4
+
5
+ class ChocolateStore {
6
+
7
+ private $template_image_url;
8
+ private $social_icon_url;
9
+
10
+ function __construct($assets_url) {
11
+ $this->template_image_url = '//ps.w.org/mailpoet/assets/newsletter-templates/chocolate_store';
12
+ $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons';
13
+ }
14
+
15
+ function get() {
16
+ return array(
17
+ 'name' => __("Chocolate Store", 'mailpoet'),
18
+ 'description' => __("A classy black store template.", 'mailpoet'),
19
+ 'readonly' => 1,
20
+ 'thumbnail' => $this->getThumbnail(),
21
+ 'body' => json_encode($this->getBody()),
22
+ );
23
+ }
24
+
25
+ private function getBody() {
26
+ return array(
27
+ 'content' => array(
28
+ 'type' => 'container',
29
+ 'orientation' => 'vertical',
30
+ 'styles' => array(
31
+ 'block' => array(
32
+ 'backgroundColor' => 'transparent',
33
+ ),
34
+ ),
35
+ 'blocks' => array(
36
+ 0 => array(
37
+ 'type' => 'container',
38
+ 'orientation' => 'horizontal',
39
+ 'styles' => array(
40
+ 'block' => array(
41
+ 'backgroundColor' => 'transparent',
42
+ ),
43
+ ),
44
+ 'blocks' => array(
45
+ 0 => array(
46
+ 'type' => 'container',
47
+ 'orientation' => 'vertical',
48
+ 'styles' => array(
49
+ 'block' => array(
50
+ 'backgroundColor' => 'transparent',
51
+ ),
52
+ ),
53
+ 'blocks' => array(
54
+ 0 => array(
55
+ 'type' => 'spacer',
56
+ 'styles' => array(
57
+ 'block' => array(
58
+ 'backgroundColor' => 'transparent',
59
+ 'height' => '28px',
60
+ ),
61
+ ),
62
+ ),
63
+ ),
64
+ ),
65
+ ),
66
+ ),
67
+ 1 => array(
68
+ 'type' => 'container',
69
+ 'orientation' => 'horizontal',
70
+ 'styles' => array(
71
+ 'block' => array(
72
+ 'backgroundColor' => 'transparent',
73
+ ),
74
+ ),
75
+ 'blocks' => array(
76
+ 0 => array(
77
+ 'type' => 'container',
78
+ 'orientation' => 'vertical',
79
+ 'styles' => array(
80
+ 'block' => array(
81
+ 'backgroundColor' => 'transparent',
82
+ ),
83
+ ),
84
+ 'blocks' => array(
85
+ 0 => array(
86
+ 'type' => 'image',
87
+ 'link' => '',
88
+ 'src' => $this->template_image_url . '/cafe-cocoa-logo_small.png',
89
+ 'alt' => 'cafe-cocoa-logo_small',
90
+ 'fullWidth' => true,
91
+ 'width' => '648px',
92
+ 'height' => '80px',
93
+ 'styles' => array(
94
+ 'block' => array(
95
+ 'textAlign' => 'center',
96
+ ),
97
+ ),
98
+ ),
99
+ ),
100
+ ),
101
+ 1 => array(
102
+ 'type' => 'container',
103
+ 'orientation' => 'vertical',
104
+ 'styles' => array(
105
+ 'block' => array(
106
+ 'backgroundColor' => 'transparent',
107
+ ),
108
+ ),
109
+ 'blocks' => array(
110
+ 0 => array(
111
+ 'type' => 'social',
112
+ 'iconSet' => 'full-symbol-grey',
113
+ 'icons' => array(
114
+ 0 => array(
115
+ 'type' => 'socialIcon',
116
+ 'iconType' => 'facebook',
117
+ 'link' => 'http://www.facebook.com',
118
+ 'image' => $this->social_icon_url . '/08-full-symbol-grey/Facebook.png',
119
+ 'height' => '32px',
120
+ 'width' => '32px',
121
+ 'text' => 'Facebook',
122
+ ),
123
+ 1 => array(
124
+ 'type' => 'socialIcon',
125
+ 'iconType' => 'twitter',
126
+ 'link' => 'http://www.twitter.com',
127
+ 'image' => $this->social_icon_url . '/08-full-symbol-grey/Twitter.png',
128
+ 'height' => '32px',
129
+ 'width' => '32px',
130
+ 'text' => 'Twitter',
131
+ ),
132
+ 2 => array(
133
+ 'type' => 'socialIcon',
134
+ 'iconType' => 'pinterest',
135
+ 'link' => 'http://www.pinterest.com',
136
+ 'image' => $this->social_icon_url . '/08-full-symbol-grey/Pinterest.png',
137
+ 'height' => '32px',
138
+ 'width' => '32px',
139
+ 'text' => 'Pinterest',
140
+ ),
141
+ 3 => array(
142
+ 'type' => 'socialIcon',
143
+ 'iconType' => 'instagram',
144
+ 'link' => 'http://instagram.com',
145
+ 'image' => $this->social_icon_url . '/08-full-symbol-grey/Instagram.png',
146
+ 'height' => '32px',
147
+ 'width' => '32px',
148
+ 'text' => 'Instagram',
149
+ ),
150
+ ),
151
+ ),
152
+ ),
153
+ ),
154
+ ),
155
+ ),
156
+ 2 => array(
157
+ 'type' => 'container',
158
+ 'orientation' => 'horizontal',
159
+ 'styles' => array(
160
+ 'block' => array(
161
+ 'backgroundColor' => 'transparent',
162
+ ),
163
+ ),
164
+ 'blocks' => array(
165
+ 0 => array(
166
+ 'type' => 'container',
167
+ 'orientation' => 'vertical',
168
+ 'styles' => array(
169
+ 'block' => array(
170
+ 'backgroundColor' => 'transparent',
171
+ ),
172
+ ),
173
+ 'blocks' => array(
174
+ 0 => array(
175
+ 'type' => 'spacer',
176
+ 'styles' => array(
177
+ 'block' => array(
178
+ 'backgroundColor' => 'transparent',
179
+ 'height' => '36px',
180
+ ),
181
+ ),
182
+ ),
183
+ ),
184
+ ),
185
+ ),
186
+ ),
187
+ 3 => array(
188
+ 'type' => 'container',
189
+ 'orientation' => 'horizontal',
190
+ 'styles' => array(
191
+ 'block' => array(
192
+ 'backgroundColor' => '#5b5b5b',
193
+ ),
194
+ ),
195
+ 'blocks' => array(
196
+ 0 => array(
197
+ 'type' => 'container',
198
+ 'orientation' => 'vertical',
199
+ 'styles' => array(
200
+ 'block' => array(
201
+ 'backgroundColor' => 'transparent',
202
+ ),
203
+ ),
204
+ 'blocks' => array(
205
+ 0 => array(
206
+ 'type' => 'image',
207
+ 'link' => '',
208
+ 'src' => $this->template_image_url . '/cocoa-hero.jpg',
209
+ 'alt' => 'cocoa-hero',
210
+ 'fullWidth' => true,
211
+ 'width' => '1320px',
212
+ 'height' => '677px',
213
+ 'styles' => array(
214
+ 'block' => array(
215
+ 'textAlign' => 'center',
216
+ ),
217
+ ),
218
+ ),
219
+ 1 => array(
220
+ 'type' => 'spacer',
221
+ 'styles' => array(
222
+ 'block' => array(
223
+ 'backgroundColor' => 'transparent',
224
+ 'height' => '40px',
225
+ ),
226
+ ),
227
+ ),
228
+ 2 => array(
229
+ 'type' => 'text',
230
+ 'text' => '<h1 style="text-align: center;">SEASONAL SPECIAL: RUM TRUFFLE</h1>
231
+ <p style="text-align: left;">Vestibulum eu nulla quis nulla rutrum efficitur ac in orci. Praesent vulputate neque et scelerisque porttitor. Duis mauris ipsum, sagittis nec semper et, dapibus eget nunc. Fusce ornare eros non mauris tempus varius.</p>',
232
+ ),
233
+ 3 => array(
234
+ 'type' => 'button',
235
+ 'text' => 'Shop Truffles',
236
+ 'url' => '',
237
+ 'styles' => array(
238
+ 'block' => array(
239
+ 'backgroundColor' => '#a4a4a4',
240
+ 'borderColor' => '#4e4e4e',
241
+ 'borderWidth' => '2px',
242
+ 'borderRadius' => '5px',
243
+ 'borderStyle' => 'solid',
244
+ 'width' => '180px',
245
+ 'lineHeight' => '40px',
246
+ 'fontColor' => '#000000',
247
+ 'fontFamily' => 'Arial',
248
+ 'fontSize' => '18px',
249
+ 'fontWeight' => 'bold',
250
+ 'textAlign' => 'center',
251
+ ),
252
+ ),
253
+ ),
254
+ 4 => array(
255
+ 'type' => 'spacer',
256
+ 'styles' => array(
257
+ 'block' => array(
258
+ 'backgroundColor' => 'transparent',
259
+ 'height' => '20px',
260
+ ),
261
+ ),
262
+ ),
263
+ ),
264
+ ),
265
+ ),
266
+ ),
267
+ 4 => array(
268
+ 'type' => 'container',
269
+ 'orientation' => 'horizontal',
270
+ 'styles' => array(
271
+ 'block' => array(
272
+ 'backgroundColor' => 'transparent',
273
+ ),
274
+ ),
275
+ 'blocks' => array(
276
+ 0 => array(
277
+ 'type' => 'container',
278
+ 'orientation' => 'vertical',
279
+ 'styles' => array(
280
+ 'block' => array(
281
+ 'backgroundColor' => 'transparent',
282
+ ),
283
+ ),
284
+ 'blocks' => array(
285
+ 0 => array(
286
+ 'type' => 'image',
287
+ 'link' => '',
288
+ 'src' => $this->template_image_url . '/bottom-divider-1.png',
289
+ 'alt' => 'bottom-divider',
290
+ 'fullWidth' => true,
291
+ 'width' => '1320px',
292
+ 'height' => '102px',
293
+ 'styles' => array(
294
+ 'block' => array(
295
+ 'textAlign' => 'center',
296
+ ),
297
+ ),
298
+ ),
299
+ 1 => array(
300
+ 'type' => 'spacer',
301
+ 'styles' => array(
302
+ 'block' => array(
303
+ 'backgroundColor' => 'transparent',
304
+ 'height' => '50px',
305
+ ),
306
+ ),
307
+ ),
308
+ 2 => array(
309
+ 'type' => 'text',
310
+ 'text' => '<h2 style="text-align: center;">Store News</h2>',
311
+ ),
312
+ 3 => array(
313
+ 'type' => 'spacer',
314
+ 'styles' => array(
315
+ 'block' => array(
316
+ 'backgroundColor' => 'transparent',
317
+ 'height' => '20px',
318
+ ),
319
+ ),
320
+ ),
321
+ ),
322
+ ),
323
+ ),
324
+ ),
325
+ 5 => array(
326
+ 'type' => 'container',
327
+ 'orientation' => 'horizontal',
328
+ 'styles' => array(
329
+ 'block' => array(
330
+ 'backgroundColor' => 'transparent',
331
+ ),
332
+ ),
333
+ 'blocks' => array(
334
+ 0 => array(
335
+ 'type' => 'container',
336
+ 'orientation' => 'vertical',
337
+ 'styles' => array(
338
+ 'block' => array(
339
+ 'backgroundColor' => 'transparent',
340
+ ),
341
+ ),
342
+ 'blocks' => array(
343
+ 0 => array(
344
+ 'type' => 'image',
345
+ 'link' => '',
346
+ 'src' => $this->template_image_url . '/cake-shop.png',
347
+ 'alt' => 'cake-shop',
348
+ 'fullWidth' => true,
349
+ 'width' => '300px',
350
+ 'height' => '300px',
351
+ 'styles' => array(
352
+ 'block' => array(
353
+ 'textAlign' => 'center',
354
+ ),
355
+ ),
356
+ ),
357
+ 1 => array(
358
+ 'type' => 'image',
359
+ 'link' => '',
360
+ 'src' => $this->template_image_url . '/bottom-divider_lightgrey-1.png',
361
+ 'alt' => 'bottom-divider_lightgrey',
362
+ 'fullWidth' => true,
363
+ 'width' => '440px',
364
+ 'height' => '60px',
365
+ 'styles' => array(
366
+ 'block' => array(
367
+ 'textAlign' => 'center',
368
+ ),
369
+ ),
370
+ ),
371
+ 2 => array(
372
+ 'type' => 'header',
373
+ 'text' => '<p><span style="font-family: \'Open Sans\', Arial, sans-serif;"><span style="font-size: 14px;">Duis pellentesque nibh in lectus blandit.</span></span></p>',
374
+ 'styles' => array(
375
+ 'block' => array(
376
+ 'backgroundColor' => 'transparent',
377
+ ),
378
+ 'text' => array(
379
+ 'fontColor' => '#ffffff',
380
+ 'fontFamily' => 'Arial',
381
+ 'fontSize' => '14px',
382
+ 'textAlign' => 'left',
383
+ ),
384
+ 'link' => array(
385
+ 'fontColor' => '#ffffff',
386
+ 'textDecoration' => 'underline',
387
+ ),
388
+ ),
389
+ ),
390
+ ),
391
+ ),
392
+ 1 => array(
393
+ 'type' => 'container',
394
+ 'orientation' => 'vertical',
395
+ 'styles' => array(
396
+ 'block' => array(
397
+ 'backgroundColor' => 'transparent',
398
+ ),
399
+ ),
400
+ 'blocks' => array(
401
+ 0 => array(
402
+ 'type' => 'image',
403
+ 'link' => '',
404
+ 'src' => $this->template_image_url . '/new-desserts.png',
405
+ 'alt' => 'new-desserts',
406
+ 'fullWidth' => true,
407
+ 'width' => '300px',
408
+ 'height' => '300px',
409
+ 'styles' => array(
410
+ 'block' => array(
411
+ 'textAlign' => 'center',
412
+ ),
413
+ ),
414
+ ),
415
+ 1 => array(
416
+ 'type' => 'image',
417
+ 'link' => '',
418
+ 'src' => $this->template_image_url . '/bottom-divider_lightgrey-1.png',
419
+ 'alt' => 'bottom-divider_lightgrey',
420
+ 'fullWidth' => true,
421
+ 'width' => '440px',
422
+ 'height' => '60px',
423
+ 'styles' => array(
424
+ 'block' => array(
425
+ 'textAlign' => 'center',
426
+ ),
427
+ ),
428
+ ),
429
+ 2 => array(
430
+ 'type' => 'header',
431
+ 'text' => '<p>Phasellus feugiat laoreet ex ac elementum.</p>',
432
+ 'styles' => array(
433
+ 'block' => array(
434
+ 'backgroundColor' => 'transparent',
435
+ ),
436
+ 'text' => array(
437
+ 'fontColor' => '#ffffff',
438
+ 'fontFamily' => 'Arial',
439
+ 'fontSize' => '14px',
440
+ 'textAlign' => 'left',
441
+ ),
442
+ 'link' => array(
443
+ 'fontColor' => '#a4a4a4',
444
+ 'textDecoration' => 'underline',
445
+ ),
446
+ ),
447
+ ),
448
+ ),
449
+ ),
450
+ 2 => array(
451
+ 'type' => 'container',
452
+ 'orientation' => 'vertical',
453
+ 'styles' => array(
454
+ 'block' => array(
455
+ 'backgroundColor' => 'transparent',
456
+ ),
457
+ ),
458
+ 'blocks' => array(
459
+ 0 => array(
460
+ 'type' => 'image',
461
+ 'link' => '',
462
+ 'src' => $this->template_image_url . '/cupcakes.jpg',
463
+ 'alt' => 'cupcakes',
464
+ 'fullWidth' => true,
465
+ 'width' => '300px',
466
+ 'height' => '300px',
467
+ 'styles' => array(
468
+ 'block' => array(
469
+ 'textAlign' => 'center',
470
+ ),
471
+ ),
472
+ ),
473
+ 1 => array(
474
+ 'type' => 'image',
475
+ 'link' => '',
476
+ 'src' => $this->template_image_url . '/bottom-divider_lightgrey-1.png',
477
+ 'alt' => 'bottom-divider_lightgrey',
478
+ 'fullWidth' => true,
479
+ 'width' => '440px',
480
+ 'height' => '60px',
481
+ 'styles' => array(
482
+ 'block' => array(
483
+ 'textAlign' => 'center',
484
+ ),
485
+ ),
486
+ ),
487
+ 2 => array(
488
+ 'type' => 'header',
489
+ 'text' => '<p>Mauris lacinia venenatis luctus.&nbsp;</p>',
490
+ 'styles' => array(
491
+ 'block' => array(
492
+ 'backgroundColor' => 'transparent',
493
+ ),
494
+ 'text' => array(
495
+ 'fontColor' => '#ffffff',
496
+ 'fontFamily' => 'Arial',
497
+ 'fontSize' => '14px',
498
+ 'textAlign' => 'left',
499
+ ),
500
+ 'link' => array(
501
+ 'fontColor' => '#ffffff',
502
+ 'textDecoration' => 'underline',
503
+ ),
504
+ ),
505
+ ),
506
+ ),
507
+ ),
508
+ ),
509
+ ),
510
+ 6 => array(
511
+ 'type' => 'container',
512
+ 'orientation' => 'horizontal',
513
+ 'styles' => array(
514
+ 'block' => array(
515
+ 'backgroundColor' => 'transparent',
516
+ ),
517
+ ),
518
+ 'blocks' => array(
519
+ 0 => array(
520
+ 'type' => 'container',
521
+ 'orientation' => 'vertical',
522
+ 'styles' => array(
523
+ 'block' => array(
524
+ 'backgroundColor' => 'transparent',
525
+ ),
526
+ ),
527
+ 'blocks' => array(
528
+ 0 => array(
529
+ 'type' => 'spacer',
530
+ 'styles' => array(
531
+ 'block' => array(
532
+ 'backgroundColor' => 'transparent',
533
+ 'height' => '40px',
534
+ ),
535
+ ),
536
+ ),
537
+ 1 => array(
538
+ 'type' => 'button',
539
+ 'text' => 'Visit Store',
540
+ 'url' => '',
541
+ 'styles' => array(
542
+ 'block' => array(
543
+ 'backgroundColor' => '#a4a4a4',
544
+ 'borderColor' => '#4e4e4e',
545
+ 'borderWidth' => '2px',
546
+ 'borderRadius' => '5px',
547
+ 'borderStyle' => 'solid',
548
+ 'width' => '180px',
549
+ 'lineHeight' => '40px',
550
+ 'fontColor' => '#000000',
551
+ 'fontFamily' => 'Arial',
552
+ 'fontSize' => '20px',
553
+ 'fontWeight' => 'bold',
554
+ 'textAlign' => 'center',
555
+ ),
556
+ ),
557
+ ),
558
+ 2 => array(
559
+ 'type' => 'divider',
560
+ 'styles' => array(
561
+ 'block' => array(
562
+ 'backgroundColor' => 'transparent',
563
+ 'padding' => '13px',
564
+ 'borderStyle' => 'double',
565
+ 'borderWidth' => '7px',
566
+ 'borderColor' => '#4e4e4e',
567
+ ),
568
+ ),
569
+ ),
570
+ 3 => array(
571
+ 'type' => 'text',
572
+ 'text' => '<h1 style="text-align: center;">Cocoa Blogs...</h1>',
573
+ ),
574
+ 4 => array(
575
+ 'type' => 'divider',
576
+ 'styles' => array(
577
+ 'block' => array(
578
+ 'backgroundColor' => 'transparent',
579
+ 'padding' => '8.5px',
580
+ 'borderStyle' => 'double',
581
+ 'borderWidth' => '7px',
582
+ 'borderColor' => '#4e4e4e',
583
+ ),
584
+ ),
585
+ ),
586
+ 5 => array(
587
+ 'type' => 'automatedLatestContent',
588
+ 'amount' => '1',
589
+ 'contentType' => 'post',
590
+ 'terms' => array(),
591
+ 'inclusionType' => 'include',
592
+ 'displayType' => 'excerpt',
593
+ 'titleFormat' => 'h1',
594
+ 'titleAlignment' => 'center',
595
+ 'titleIsLink' => false,
596
+ 'imageFullWidth' => false,
597
+ 'featuredImagePosition' => 'belowTitle',
598
+ 'showAuthor' => 'belowText',
599
+ 'authorPrecededBy' => 'Author:',
600
+ 'showCategories' => 'no',
601
+ 'categoriesPrecededBy' => 'Categories:',
602
+ 'readMoreType' => 'button',
603
+ 'readMoreText' => 'Read more',
604
+ 'readMoreButton' => array(
605
+ 'type' => 'button',
606
+ 'text' => 'Read more',
607
+ 'url' => '[postLink]',
608
+ 'styles' => array(
609
+ 'block' => array(
610
+ 'backgroundColor' => '#a4a4a4',
611
+ 'borderColor' => '#4e4e4e',
612
+ 'borderWidth' => '2px',
613
+ 'borderRadius' => '5px',
614
+ 'borderStyle' => 'solid',
615
+ 'width' => '180px',
616
+ 'lineHeight' => '40px',
617
+ 'fontColor' => '#000001',
618
+ 'fontFamily' => 'Georgia',
619
+ 'fontSize' => '20px',
620
+ 'fontWeight' => 'normal',
621
+ 'textAlign' => 'center',
622
+ ),
623
+ ),
624
+ ),
625
+ 'sortBy' => 'newest',
626
+ 'showDivider' => false,
627
+ 'divider' => array(
628
+ 'type' => 'divider',
629
+ 'styles' => array(
630
+ 'block' => array(
631
+ 'backgroundColor' => 'transparent',
632
+ 'padding' => '13px',
633
+ 'borderStyle' => 'solid',
634
+ 'borderWidth' => '3px',
635
+ 'borderColor' => '#aaaaaa',
636
+ ),
637
+ ),
638
+ ),
639
+ 'backgroundColor' => '#ffffff',
640
+ 'backgroundColorAlternate' => '#eeeeee',
641
+ ),
642
+ 6 => array(
643
+ 'type' => 'spacer',
644
+ 'styles' => array(
645
+ 'block' => array(
646
+ 'backgroundColor' => 'transparent',
647
+ 'height' => '20px',
648
+ ),
649
+ ),
650
+ ),
651
+ 7 => array(
652
+ 'type' => 'divider',
653
+ 'styles' => array(
654
+ 'block' => array(
655
+ 'backgroundColor' => 'transparent',
656
+ 'padding' => '10.5px',
657
+ 'borderStyle' => 'double',
658
+ 'borderWidth' => '7px',
659
+ 'borderColor' => '#4e4e4e',
660
+ ),
661
+ ),
662
+ ),
663
+ ),
664
+ ),
665
+ ),
666
+ ),
667
+ 7 => array(
668
+ 'type' => 'container',
669
+ 'orientation' => 'horizontal',
670
+ 'styles' => array(
671
+ 'block' => array(
672
+ 'backgroundColor' => 'transparent',
673
+ ),
674
+ ),
675
+ 'blocks' => array(
676
+ 0 => array(
677
+ 'type' => 'container',
678
+ 'orientation' => 'vertical',
679
+ 'styles' => array(
680
+ 'block' => array(
681
+ 'backgroundColor' => 'transparent',
682
+ ),
683
+ ),
684
+ 'blocks' => array(
685
+ 0 => array(
686
+ 'type' => 'social',
687
+ 'iconSet' => 'full-symbol-grey',
688
+ 'icons' => array(
689
+ 0 => array(
690
+ 'type' => 'socialIcon',
691
+ 'iconType' => 'facebook',
692
+ 'link' => 'http://www.facebook.com',
693
+ 'image' => $this->social_icon_url . '/08-full-symbol-grey/Facebook.png',
694
+ 'height' => '32px',
695
+ 'width' => '32px',
696
+ 'text' => 'Facebook',
697
+ ),
698
+ 1 => array(
699
+ 'type' => 'socialIcon',
700
+ 'iconType' => 'twitter',
701
+ 'link' => 'http://www.twitter.com',
702
+ 'image' => $this->social_icon_url . '/08-full-symbol-grey/Twitter.png',
703
+ 'height' => '32px',
704
+ 'width' => '32px',
705
+ 'text' => 'Twitter',
706
+ ),
707
+ ),
708
+ ),
709
+ 1 => array(
710
+ 'type' => 'text',
711
+ 'text' => '<p>Add your postal address here!</p>',
712
+ ),
713
+ 2 => array(
714
+ 'type' => 'spacer',
715
+ 'styles' => array(
716
+ 'block' => array(
717
+ 'backgroundColor' => 'transparent',
718
+ 'height' => '20px',
719
+ ),
720
+ ),
721
+ ),
722
+ ),
723
+ ),
724
+ 1 => array(
725
+ 'type' => 'container',
726
+ 'orientation' => 'vertical',
727
+ 'styles' => array(
728
+ 'block' => array(
729
+ 'backgroundColor' => 'transparent',
730
+ ),
731
+ ),
732
+ 'blocks' => array(
733
+ 0 => array(
734
+ 'type' => 'footer',
735
+ 'text' => '<p><em>Praesent metus ante, venenatis egestas nisl ac, molestie viverra ante.&nbsp;</em></p>
736
+ <p><em>&nbsp;</em></p>
737
+ <p><a href="[link:subscription_unsubscribe_url]">Unsubscribe<br /></a><a href="[link:subscription_manage_url]">Manage subscription</a></p>',
738
+ 'styles' => array(
739
+ 'block' => array(
740
+ 'backgroundColor' => 'transparent',
741
+ ),
742
+ 'text' => array(
743
+ 'fontColor' => '#dadada',
744
+ 'fontFamily' => 'Arial',
745
+ 'fontSize' => '14px',
746
+ 'textAlign' => 'center',
747
+ ),
748
+ 'link' => array(
749
+ 'fontColor' => '#dadada',
750
+ 'textDecoration' => 'underline',
751
+ ),
752
+ ),
753
+ ),
754
+ 1 => array(
755
+ 'type' => 'spacer',
756
+ 'styles' => array(
757
+ 'block' => array(
758
+ 'backgroundColor' => 'transparent',
759
+ 'height' => '20px',
760
+ ),
761
+ ),
762
+ ),
763
+ ),
764
+ ),
765
+ 2 => array(
766
+ 'type' => 'container',
767
+ 'orientation' => 'vertical',
768
+ 'styles' => array(
769
+ 'block' => array(
770
+ 'backgroundColor' => 'transparent',
771
+ ),
772
+ ),
773
+ 'blocks' => array(
774
+ 0 => array(
775
+ 'type' => 'text',
776
+ 'text' => '<p><em>Aliquam feugiat nisl eget eleifend congue.</em></p>',
777
+ ),
778
+ 1 => array(
779
+ 'type' => 'image',
780
+ 'link' => '',
781
+ 'src' => $this->template_image_url . '/owner-1.jpg',
782
+ 'alt' => 'owner',
783
+ 'fullWidth' => false,
784
+ 'width' => '100px',
785
+ 'height' => '100px',
786
+ 'styles' => array(
787
+ 'block' => array(
788
+ 'textAlign' => 'center',
789
+ ),
790
+ ),
791
+ ),
792
+ 2 => array(
793
+ 'type' => 'spacer',
794
+ 'styles' => array(
795
+ 'block' => array(
796
+ 'backgroundColor' => 'transparent',
797
+ 'height' => '20px',
798
+ ),
799
+ ),
800
+ ),
801
+ ),
802
+ ),
803
+ ),
804
+ ),
805
+ ),
806
+ ),
807
+ 'globalStyles' => array(
808
+ 'text' => array(
809
+ 'fontColor' => '#ffffff',
810
+ 'fontFamily' => 'Arial',
811
+ 'fontSize' => '16px',
812
+ ),
813
+ 'h1' => array(
814
+ 'fontColor' => '#ffffff',
815
+ 'fontFamily' => 'Georgia',
816
+ 'fontSize' => '24px',
817
+ ),
818
+ 'h2' => array(
819
+ 'fontColor' => '#ffffff',
820
+ 'fontFamily' => 'Georgia',
821
+ 'fontSize' => '32px',
822
+ ),
823
+ 'h3' => array(
824
+ 'fontColor' => '#ffffff',
825
+ 'fontFamily' => 'Georgia',
826
+ 'fontSize' => '24px',
827
+ ),
828
+ 'link' => array(
829
+ 'fontColor' => '#ffffff',
830
+ 'textDecoration' => 'underline',
831
+ ),
832
+ 'wrapper' => array(
833
+ 'backgroundColor' => '#000000',
834
+ ),
835
+ 'body' => array(
836
+ 'backgroundColor' => '#000000',
837
+ ),
838
+ ),
839
+ );
840
+ }
841
+
842
+ private function getThumbnail() {
843
+ return $this->template_image_url . '/chocolate-store.jpg';
844
+ }
845
+
846
+ }
lib/Config/PopulatorData/Templates/CoffeeShop.php ADDED
@@ -0,0 +1,425 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace MailPoet\Config\PopulatorData\Templates;
4
+
5
+ class CoffeeShop {
6
+
7
+ private $social_icon_url;
8
+ private $template_image_url;
9
+
10
+ function __construct($assets_url) {
11
+ $this->template_image_url = '//ps.w.org/mailpoet/assets/newsletter-templates/franks-roast-house';
12
+ $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons';
13
+ }
14
+
15
+ function get() {
16
+ return array(
17
+ 'name' => __("Coffee Shop", 'mailpoet'),
18
+ 'description' => __("Coffee and sugar in your coffee?", 'mailpoet'),
19
+ 'readonly' => 1,
20
+ 'thumbnail' => $this->getThumbnail(),
21
+ 'body' => json_encode($this->getBody()),
22
+ );
23
+ }
24
+
25
+ private function getBody() {
26
+ return array(
27
+ 'content' => array(
28
+ 'type' => 'container',
29
+ 'orientation' => 'vertical',
30
+ 'styles' => array(
31
+ 'block' => array(
32
+ 'backgroundColor' => 'transparent',
33
+ ),
34
+ ),
35
+ 'blocks' => array(
36
+ 0 => array(
37
+ 'type' => 'container',
38
+ 'orientation' => 'horizontal',
39
+ 'styles' => array(
40
+ 'block' => array(
41
+ 'backgroundColor' => 'transparent',
42
+ ),
43
+ ),
44
+ 'blocks' => array(
45
+ 0 => array(
46
+ 'type' => 'container',
47
+ 'orientation' => 'vertical',
48
+ 'styles' => array(
49
+ 'block' => array(
50
+ 'backgroundColor' => 'transparent',
51
+ ),
52
+ ),
53
+ 'blocks' => array(
54
+ 0 => array(
55
+ 'type' => 'spacer',
56
+ 'styles' => array(
57
+ 'block' => array(
58
+ 'backgroundColor' => '#ccc6c6',
59
+ 'height' => '20px',
60
+ ),
61
+ ),
62
+ ),
63
+ 1 => array(
64
+ 'type' => 'spacer',
65
+ 'styles' => array(
66
+ 'block' => array(
67
+ 'backgroundColor' => 'transparent',
68
+ 'height' => '40px',
69
+ ),
70
+ ),
71
+ ),
72
+ 2 => array(
73
+ 'type' => 'image',
74
+ 'link' => 'http://www.example.com',
75
+ 'src' => $this->template_image_url . '/header-v2.jpg',
76
+ 'alt' => 'Frank\'s Café',
77
+ 'fullWidth' => true,
78
+ 'width' => '600px',
79
+ 'height' => '220px',
80
+ 'styles' => array(
81
+ 'block' => array(
82
+ 'textAlign' => 'center',
83
+ ),
84
+ ),
85
+ ),
86
+ 3 => array(
87
+ 'type' => 'spacer',
88
+ 'styles' => array(
89
+ 'block' => array(
90
+ 'backgroundColor' => 'transparent',
91
+ 'height' => '30px',
92
+ ),
93
+ ),
94
+ ),
95
+ 4 => array(
96
+ 'type' => 'text',
97
+ 'text' => '<p>Hi there [subscriber:firstname | default:coffee drinker]</p>
98
+ <p></p>
99
+ <p>Sit back and enjoy your favorite roast as you read this week\'s newsletter. </p>',
100
+ ),
101
+ 5 => array(
102
+ 'type' => 'image',
103
+ 'link' => 'http://example.org',
104
+ 'src' => $this->template_image_url . '/coffee-grain.jpg',
105
+ 'alt' => 'Coffee grain',
106
+ 'fullWidth' => true,
107
+ 'width' => '1599px',
108
+ 'height' => '777px',
109
+ 'styles' => array(
110
+ 'block' => array(
111
+ 'textAlign' => 'center',
112
+ ),
113
+ ),
114
+ ),
115
+ 6 => array(
116
+ 'type' => 'text',
117
+ 'text' => '<h1 style="text-align: center;">--- Guest Roaster: <em>Brew Bros. ---</em></h1>
118
+ <p><em></em></p>
119
+ <p>Visit our Center Avenue store to try the latest guest coffee from Brew Bros, a local coffee roaster. This young duo started only two years ago, but have quickly gained popularity through pop-up shops, local events, and collaborations with food trucks.</p>
120
+ <p></p>
121
+ <blockquote>
122
+ <p><span style="color: #ff6600;"><em><strong>Tasting notes:</strong> A rich, caramel flavor with subtle hints of molasses. The perfect wake-up morning espresso!</em></span></p>
123
+ </blockquote>',
124
+ ),
125
+ 7 => array(
126
+ 'type' => 'spacer',
127
+ 'styles' => array(
128
+ 'block' => array(
129
+ 'backgroundColor' => 'transparent',
130
+ 'height' => '22px',
131
+ ),
132
+ ),
133
+ ),
134
+ ),
135
+ ),
136
+ ),
137
+ ),
138
+ 1 => array(
139
+ 'type' => 'container',
140
+ 'orientation' => 'horizontal',
141
+ 'styles' => array(
142
+ 'block' => array(
143
+ 'backgroundColor' => '#ebebeb',
144
+ ),
145
+ ),
146
+ 'blocks' => array(
147
+ 0 => array(
148
+ 'type' => 'container',
149
+ 'orientation' => 'vertical',
150
+ 'styles' => array(
151
+ 'block' => array(
152
+ 'backgroundColor' => 'transparent',
153
+ ),
154
+ ),
155
+ 'blocks' => array(
156
+ 0 => array(
157
+ 'type' => 'spacer',
158
+ 'styles' => array(
159
+ 'block' => array(
160
+ 'backgroundColor' => 'transparent',
161
+ 'height' => '40px',
162
+ ),
163
+ ),
164
+ ),
165
+ 1 => array(
166
+ 'type' => 'text',
167
+ 'text' => '<h2>Sandwich Competition</h2>',
168
+ ),
169
+ 2 => array(
170
+ 'type' => 'image',
171
+ 'link' => 'http://example.org',
172
+ 'src' => $this->template_image_url . '/sandwich.jpg',
173
+ 'alt' => 'Sandwich',
174
+ 'fullWidth' => false,
175
+ 'width' => '640px',
176
+ 'height' => '344px',
177
+ 'styles' => array(
178
+ 'block' => array(
179
+ 'textAlign' => 'center',
180
+ ),
181
+ ),
182
+ ),
183
+ 3 => array(
184
+ 'type' => 'text',
185
+ 'text' => '<p>Have an idea for the Next Great Sandwich? Tell us! We\'re offering free lunch for a month if you can invent an awesome new sandwich for our menu.</p>
186
+ <p></p>
187
+ <p>Simply tweet your ideas to <a href="http://www.example.com" title="This isn\'t a real twitter account">@franksroasthouse</a> and use #sandwichcomp and we\'ll let you know if you\'re a winner.</p>',
188
+ ),
189
+ 4 => array(
190
+ 'type' => 'button',
191
+ 'text' => 'Find out more',
192
+ 'url' => 'http://example.org',
193
+ 'styles' => array(
194
+ 'block' => array(
195
+ 'backgroundColor' => '#604b4b',
196
+ 'borderColor' => '#443232',
197
+ 'borderWidth' => '1px',
198
+ 'borderRadius' => '3px',
199
+ 'borderStyle' => 'solid',
200
+ 'width' => '180px',
201
+ 'lineHeight' => '34px',
202
+ 'fontColor' => '#ffffff',
203
+ 'fontFamily' => 'Arial',
204
+ 'fontSize' => '14px',
205
+ 'fontWeight' => 'normal',
206
+ 'textAlign' => 'center',
207
+ ),
208
+ ),
209
+ ),
210
+ 5 => array(
211
+ 'type' => 'spacer',
212
+ 'styles' => array(
213
+ 'block' => array(
214
+ 'backgroundColor' => 'transparent',
215
+ 'height' => '40px',
216
+ ),
217
+ ),
218
+ ),
219
+ 6 => array(
220
+ 'type' => 'text',
221
+ 'text' => '<h3 style="text-align: center;">Follow Us</h3>',
222
+ ),
223
+ 7 => array(
224
+ 'type' => 'social',
225
+ 'iconSet' => 'full-symbol-black',
226
+ 'icons' => array(
227
+ 0 => array(
228
+ 'type' => 'socialIcon',
229
+ 'iconType' => 'facebook',
230
+ 'link' => 'http://www.facebook.com/mailpoetplugin',
231
+ 'image' => $this->social_icon_url . '/07-full-symbol-black/Facebook.png',
232
+ 'height' => '32px',
233
+ 'width' => '32px',
234
+ 'text' => 'Facebook',
235
+ ),
236
+ 1 => array(
237
+ 'type' => 'socialIcon',
238
+ 'iconType' => 'twitter',
239
+ 'link' => 'http://www.twitter.com/mailpoet',
240
+ 'image' => $this->social_icon_url . '/07-full-symbol-black/Twitter.png',
241
+ 'height' => '32px',
242
+ 'width' => '32px',
243
+ 'text' => 'Twitter',
244
+ ),
245
+ 2 => array(
246
+ 'type' => 'socialIcon',
247
+ 'iconType' => 'instagram',
248
+ 'link' => 'http://www.instagram.com/test',
249
+ 'image' => $this->social_icon_url . '/07-full-symbol-black/Instagram.png',
250
+ 'height' => '32px',
251
+ 'width' => '32px',
252
+ 'text' => 'Instagram',
253
+ ),
254
+ 3 => array(
255
+ 'type' => 'socialIcon',
256
+ 'iconType' => 'website',
257
+ 'link' => 'http://www.mailpoet.com',
258
+ 'image' => $this->social_icon_url . '/07-full-symbol-black/Website.png',
259
+ 'height' => '32px',
260
+ 'width' => '32px',
261
+ 'text' => 'Website',
262
+ ),
263
+ ),
264
+ ),
265
+ ),
266
+ ),
267
+ 1 => array(
268
+ 'type' => 'container',
269
+ 'orientation' => 'vertical',
270
+ 'styles' => array(
271
+ 'block' => array(
272
+ 'backgroundColor' => 'transparent',
273
+ ),
274
+ ),
275
+ 'blocks' => array(
276
+ 0 => array(
277
+ 'type' => 'spacer',
278
+ 'styles' => array(
279
+ 'block' => array(
280
+ 'backgroundColor' => 'transparent',
281
+ 'height' => '40px',
282
+ ),
283
+ ),
284
+ ),
285
+ 1 => array(
286
+ 'type' => 'text',
287
+ 'text' => '<h2>New Store Opening!</h2>',
288
+ ),
289
+ 2 => array(
290
+ 'type' => 'image',
291
+ 'link' => 'http://example.org',
292
+ 'src' => $this->template_image_url . '/map-v2.jpg',
293
+ 'alt' => 'Map',
294
+ 'fullWidth' => false,
295
+ 'width' => '636px',
296
+ 'height' => '342px',
297
+ 'styles' => array(
298
+ 'block' => array(
299
+ 'textAlign' => 'center',
300
+ ),
301
+ ),
302
+ ),
303
+ 3 => array(
304
+ 'type' => 'text',
305
+ 'text' => '<p>Watch out Broad Street, we\'re coming to you very soon! </p>
306
+ <p></p>
307
+ <p>Keep an eye on your inbox, as we\'ll have some special offers for our email subscribers plus an exclusive launch party invite!<br /><br /></p>',
308
+ ),
309
+ 4 => array(
310
+ 'type' => 'text',
311
+ 'text' => '<h2>New and Improved Hours!</h2>
312
+ <p></p>
313
+ <p>Frank\'s is now open even later, so you can get your caffeine fix all day (and night) long! Here\'s our new opening hours:</p>
314
+ <p></p>
315
+ <ul>
316
+ <li>Monday - Thursday: 6am - 12am</li>
317
+ <li>Friday - Saturday: 6am - 1:30am</li>
318
+ <li>Sunday: 7:30am - 11pm</li>
319
+ </ul>',
320
+ ),
321
+ 5 => array(
322
+ 'type' => 'spacer',
323
+ 'styles' => array(
324
+ 'block' => array(
325
+ 'backgroundColor' => 'transparent',
326
+ 'height' => '33px',
327
+ ),
328
+ ),
329
+ ),
330
+ ),
331
+ ),
332
+ ),
333
+ ),
334
+ 2 => array(
335
+ 'type' => 'container',
336
+ 'orientation' => 'horizontal',
337
+ 'styles' => array(
338
+ 'block' => array(
339
+ 'backgroundColor' => 'transparent',
340
+ ),
341
+ ),
342
+ 'blocks' => array(
343
+ 0 => array(
344
+ 'type' => 'container',
345
+ 'orientation' => 'vertical',
346
+ 'styles' => array(
347
+ 'block' => array(
348
+ 'backgroundColor' => 'transparent',
349
+ ),
350
+ ),
351
+ 'blocks' => array(
352
+ 0 => array(
353
+ 'type' => 'spacer',
354
+ 'styles' => array(
355
+ 'block' => array(
356
+ 'backgroundColor' => 'transparent',
357
+ 'height' => '20px',
358
+ ),
359
+ ),
360
+ ),
361
+ 1 => array(
362
+ 'type' => 'footer',
363
+ 'text' => '<p><a href="[link:subscription_unsubscribe_url]">Unsubscribe</a> | <a href="[link:subscription_manage_url]">Manage subscription</a><br />12345 MailPoet Drive, EmailVille, 76543</p>',
364
+ 'styles' => array(
365
+ 'block' => array(
366
+ 'backgroundColor' => '#a9a7a7',
367
+ ),
368
+ 'text' => array(
369
+ 'fontColor' => '#000000',
370
+ 'fontFamily' => 'Arial',
371
+ 'fontSize' => '12px',
372
+ 'textAlign' => 'right',
373
+ ),
374
+ 'link' => array(
375
+ 'fontColor' => '#000000',
376
+ 'textDecoration' => 'underline',
377
+ ),
378
+ ),
379
+ ),
380
+ ),
381
+ ),
382
+ ),
383
+ ),
384
+ ),
385
+ ),
386
+ 'globalStyles' => array(
387
+ 'text' => array(
388
+ 'fontColor' => '#000000',
389
+ 'fontFamily' => 'Arial',
390
+ 'fontSize' => '14px',
391
+ ),
392
+ 'h1' => array(
393
+ 'fontColor' => '#604b4b',
394
+ 'fontFamily' => 'Lucida',
395
+ 'fontSize' => '30px',
396
+ ),
397
+ 'h2' => array(
398
+ 'fontColor' => '#5c4242',
399
+ 'fontFamily' => 'Lucida',
400
+ 'fontSize' => '22px',
401
+ ),
402
+ 'h3' => array(
403
+ 'fontColor' => '#333333',
404
+ 'fontFamily' => 'Lucida',
405
+ 'fontSize' => '20px',
406
+ ),
407
+ 'link' => array(
408
+ 'fontColor' => '#047da7',
409
+ 'textDecoration' => 'underline',
410
+ ),
411
+ 'wrapper' => array(
412
+ 'backgroundColor' => '#ffffff',
413
+ ),
414
+ 'body' => array(
415
+ 'backgroundColor' => '#ccc6c6',
416
+ ),
417
+ ),
418
+ );
419
+ }
420
+
421
+ private function getThumbnail() {
422
+ return $this->template_image_url . '/coffee-shop.jpg';
423
+ }
424
+
425
+ }
lib/Config/PopulatorData/Templates/Discount.php ADDED
@@ -0,0 +1,467 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace MailPoet\Config\PopulatorData\Templates;
4
+
5
+ class Discount {
6
+
7
+ private $template_image_url;
8
+ private $social_icon_url;
9
+
10
+ function __construct($assets_url) {
11
+ $this->template_image_url = '//ps.w.org/mailpoet/assets/newsletter-templates/discount';
12
+ $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons';
13
+ }
14
+
15
+ function get() {
16
+ return array(
17
+ 'name' => __("Discount", 'mailpoet'),
18
+ 'description' => __("A useful layout for a simple discount email.", 'mailpoet'),
19
+ 'readonly' => 1,
20
+ 'thumbnail' => $this->getThumbnail(),
21
+ 'body' => json_encode($this->getBody()),
22
+ );
23
+ }
24
+
25
+ private function getBody() {
26
+ return array(
27
+ 'content' => array(
28
+ 'type' => 'container',
29
+ 'orientation' => 'vertical',
30
+ 'styles' => array(
31
+ 'block' => array(
32
+ 'backgroundColor' => 'transparent',
33
+ ),
34
+ ),
35
+ 'blocks' => array(
36
+ 0 => array(
37
+ 'type' => 'container',
38
+ 'orientation' => 'horizontal',
39
+ 'styles' => array(
40
+ 'block' => array(
41
+ 'backgroundColor' => 'transparent',
42
+ ),
43
+ ),
44
+ 'blocks' => array(
45
+ 0 => array(
46
+ 'type' => 'container',
47
+ 'orientation' => 'vertical',
48
+ 'styles' => array(
49
+ 'block' => array(
50
+ 'backgroundColor' => 'transparent',
51
+ ),
52
+ ),
53
+ 'blocks' => array(
54
+ 0 => array(
55
+ 'type' => 'spacer',
56
+ 'styles' => array(
57
+ 'block' => array(
58
+ 'backgroundColor' => 'transparent',
59
+ 'height' => '20px',
60
+ ),
61
+ ),
62
+ ),
63
+ 1 => array(
64
+ 'type' => 'image',
65
+ 'link' => 'http://example.org',
66
+ 'src' => $this->template_image_url . '/bicycle-header3.png',
67
+ 'alt' => 'bicycle-header3',
68
+ 'fullWidth' => false,
69
+ 'width' => '423px',
70
+ 'height' => '135px',
71
+ 'styles' => array(
72
+ 'block' => array(
73
+ 'textAlign' => 'center',
74
+ ),
75
+ ),
76
+ ),
77
+ 2 => array(
78
+ 'type' => 'text',
79
+ 'text' => '<p></p>
80
+ <p>Hi&nbsp;[subscriber:firstname | default:reader]</p>
81
+ <p class=""></p>
82
+ <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Donec ut venenatis ipsum. Etiam efficitur magna a convallis consectetur.&nbsp;Nunc dapibus cursus mauris vel sollicitudin. Etiam magna libero, posuere ac nulla nec, iaculis pulvinar arcu.</p>',
83
+ ),
84
+ 3 => array(
85
+ 'type' => 'spacer',
86
+ 'styles' => array(
87
+ 'block' => array(
88
+ 'backgroundColor' => 'transparent',
89
+ 'height' => '20px',
90
+ ),
91
+ ),
92
+ ),
93
+ ),
94
+ ),
95
+ ),
96
+ ),
97
+ 1 => array(
98
+ 'type' => 'container',
99
+ 'orientation' => 'horizontal',
100
+ 'styles' => array(
101
+ 'block' => array(
102
+ 'backgroundColor' => '#ebdddd',
103
+ ),
104
+ ),
105
+ 'blocks' => array(
106
+ 0 => array(
107
+ 'type' => 'container',
108
+ 'orientation' => 'vertical',
109
+ 'styles' => array(
110
+ 'block' => array(
111
+ 'backgroundColor' => 'transparent',
112
+ ),
113
+ ),
114
+ 'blocks' => array(
115
+ 0 => array(
116
+ 'type' => 'divider',
117
+ 'styles' => array(
118
+ 'block' => array(
119
+ 'backgroundColor' => 'transparent',
120
+ 'padding' => '16px',
121
+ 'borderStyle' => 'dashed',
122
+ 'borderWidth' => '2px',
123
+ 'borderColor' => '#9a5fa1',
124
+ ),
125
+ ),
126
+ ),
127
+ 1 => array(
128
+ 'type' => 'text',
129
+ 'text' => '<h1 style="text-align: center;"><em><strong>15% odio felis fringilla eget enim</strong></em></h1>',
130
+ ),
131
+ 2 => array(
132
+ 'type' => 'text',
133
+ 'text' => '<h2 style="text-align: center;">FUSCE LOBORTIS<strong>: WELOVEMAILPOET</strong></h2>',
134
+ ),
135
+ 3 => array(
136
+ 'type' => 'divider',
137
+ 'styles' => array(
138
+ 'block' => array(
139
+ 'backgroundColor' => 'transparent',
140
+ 'padding' => '16px',
141
+ 'borderStyle' => 'dashed',
142
+ 'borderWidth' => '2px',
143
+ 'borderColor' => '#9a5fa1',
144
+ ),
145
+ ),
146
+ ),
147
+ ),
148
+ ),
149
+ ),
150
+ ),
151
+ 2 => array(
152
+ 'type' => 'container',
153
+ 'orientation' => 'horizontal',
154
+ 'styles' => array(
155
+ 'block' => array(
156
+ 'backgroundColor' => 'transparent',
157
+ ),
158
+ ),
159
+ 'blocks' => array(
160
+ 0 => array(
161
+ 'type' => 'container',
162
+ 'orientation' => 'vertical',
163
+ 'styles' => array(
164
+ 'block' => array(
165
+ 'backgroundColor' => 'transparent',
166
+ ),
167
+ ),
168
+ 'blocks' => array(
169
+ 0 => array(
170
+ 'type' => 'spacer',
171
+ 'styles' => array(
172
+ 'block' => array(
173
+ 'backgroundColor' => 'transparent',
174
+ 'height' => '20px',
175
+ ),
176
+ ),
177
+ ),
178
+ 1 => array(
179
+ 'type' => 'button',
180
+ 'text' => 'SHOP NOW',
181
+ 'url' => 'http://example.org',
182
+ 'styles' => array(
183
+ 'block' => array(
184
+ 'backgroundColor' => '#9a5fa1',
185
+ 'borderColor' => '#854f8b',
186
+ 'borderWidth' => '3px',
187
+ 'borderRadius' => '5px',
188
+ 'borderStyle' => 'solid',
189
+ 'width' => '288px',
190
+ 'lineHeight' => '50px',
191
+ 'fontColor' => '#ffffff',
192
+ 'fontFamily' => 'Verdana',
193
+ 'fontSize' => '18px',
194
+ 'fontWeight' => 'normal',
195
+ 'textAlign' => 'center',
196
+ ),
197
+ ),
198
+ ),
199
+ 2 => array(
200
+ 'type' => 'text',
201
+ 'text' => '<h1 style="text-align: center;"><strong><em>Use your discount on these great&nbsp;products...</em></strong></h1>',
202
+ ),
203
+ 3 => array(
204
+ 'type' => 'spacer',
205
+ 'styles' => array(
206
+ 'block' => array(
207
+ 'backgroundColor' => 'transparent',
208
+ 'height' => '20px',
209
+ ),
210
+ ),
211
+ ),
212
+ ),
213
+ ),
214
+ ),
215
+ ),
216
+ 3 => array(
217
+ 'type' => 'container',
218
+ 'orientation' => 'horizontal',
219
+ 'styles' => array(
220
+ 'block' => array(
221
+ 'backgroundColor' => 'transparent',
222
+ ),
223
+ ),
224
+ 'blocks' => array(
225
+ 0 => array(
226
+ 'type' => 'container',
227
+ 'orientation' => 'vertical',
228
+ 'styles' => array(
229
+ 'block' => array(
230
+ 'backgroundColor' => 'transparent',
231
+ ),
232
+ ),
233
+ 'blocks' => array(
234
+ 0 => array(
235
+ 'type' => 'image',
236
+ 'link' => 'http://example.org',
237
+ 'src' => $this->template_image_url . '/red-icycle-2.jpg',
238
+ 'alt' => 'red-icycle',
239
+ 'fullWidth' => false,
240
+ 'width' => '558px',
241
+ 'height' => '399px',
242
+ 'styles' => array(
243
+ 'block' => array(
244
+ 'textAlign' => 'center',
245
+ ),
246
+ ),
247
+ ),
248
+ 1 => array(
249
+ 'type' => 'text',
250
+ 'text' => '<h3 style="text-align: center;">Lovely Red Bicycle</h3>
251
+ <p>Quisque nec vulputate velit, non sagittis ex.&nbsp;Suspendisse ligula urna, tempus sed iaculis sit amet, convallis at arcu.</p>
252
+ <h3 style="text-align: center;"><strong><span style="color: #488e88;">$289.99</span></strong></h3>',
253
+ ),
254
+ 2 => array(
255
+ 'type' => 'button',
256
+ 'text' => 'Tempus',
257
+ 'url' => 'http://example.org',
258
+ 'styles' => array(
259
+ 'block' => array(
260
+ 'backgroundColor' => '#9a5fa1',
261
+ 'borderColor' => '#854f8b',
262
+ 'borderWidth' => '3px',
263
+ 'borderRadius' => '5px',
264
+ 'borderStyle' => 'solid',
265
+ 'width' => '180px',
266
+ 'lineHeight' => '40px',
267
+ 'fontColor' => '#ffffff',
268
+ 'fontFamily' => 'Verdana',
269
+ 'fontSize' => '18px',
270
+ 'fontWeight' => 'normal',
271
+ 'textAlign' => 'center',
272
+ ),
273
+ ),
274
+ ),
275
+ ),
276
+ ),
277
+ 1 => array(
278
+ 'type' => 'container',
279
+ 'orientation' => 'vertical',
280
+ 'styles' => array(
281
+ 'block' => array(
282
+ 'backgroundColor' => 'transparent',
283
+ ),
284
+ ),
285
+ 'blocks' => array(
286
+ 0 => array(
287
+ 'type' => 'image',
288
+ 'link' => 'http://example.org',
289
+ 'src' => $this->template_image_url . '/orange-bicycle.jpg',
290
+ 'alt' => 'orange-bicycle',
291
+ 'fullWidth' => false,
292
+ 'width' => '639px',
293
+ 'height' => '457px',
294
+ 'styles' => array(
295
+ 'block' => array(
296
+ 'textAlign' => 'center',
297
+ ),
298
+ ),
299
+ ),
300
+ 1 => array(
301
+ 'type' => 'text',
302
+ 'text' => '<h3 style="text-align: center;">Little Orange Bicycle</h3>
303
+ <p>Praesent molestie mollis sapien vel dignissim. Maecenas ultrices, odio eget dapibus iaculis, ligula ex aliquet leo.</p>
304
+ <h3 style="line-height: 22.4px; text-align: center;"><span style="color: #488e88;"><strong>$209.99</strong></span></h3>',
305
+ ),
306
+ 2 => array(
307
+ 'type' => 'button',
308
+ 'text' => 'Tempus',
309
+ 'url' => 'http://example.org',
310
+ 'styles' => array(
311
+ 'block' => array(
312
+ 'backgroundColor' => '#9a5fa1',
313
+ 'borderColor' => '#854f8b',
314
+ 'borderWidth' => '3px',
315
+ 'borderRadius' => '5px',
316
+ 'borderStyle' => 'solid',
317
+ 'width' => '180px',
318
+ 'lineHeight' => '40px',
319
+ 'fontColor' => '#ffffff',
320
+ 'fontFamily' => 'Verdana',
321
+ 'fontSize' => '18px',
322
+ 'fontWeight' => 'normal',
323
+ 'textAlign' => 'center',
324
+ ),
325
+ ),
326
+ ),
327
+ ),
328
+ ),
329
+ ),
330
+ ),
331
+ 4 => array(
332
+ 'type' => 'container',
333
+ 'orientation' => 'horizontal',
334
+ 'styles' => array(
335
+ 'block' => array(
336
+ 'backgroundColor' => 'transparent',
337
+ ),
338
+ ),
339
+ 'blocks' => array(
340
+ 0 => array(
341
+ 'type' => 'container',
342
+ 'orientation' => 'vertical',
343
+ 'styles' => array(
344
+ 'block' => array(
345
+ 'backgroundColor' => 'transparent',
346
+ ),
347
+ ),
348
+ 'blocks' => array(
349
+ 0 => array(
350
+ 'type' => 'spacer',
351
+ 'styles' => array(
352
+ 'block' => array(
353
+ 'backgroundColor' => 'transparent',
354
+ 'height' => '22px',
355
+ ),
356
+ ),
357
+ ),
358
+ 1 => array(
359
+ 'type' => 'divider',
360
+ 'styles' => array(
361
+ 'block' => array(
362
+ 'backgroundColor' => 'transparent',
363
+ 'padding' => '20px',
364
+ 'borderStyle' => 'solid',
365
+ 'borderWidth' => '1px',
366
+ 'borderColor' => '#9e9e9e',
367
+ ),
368
+ ),
369
+ ),
370
+ 2 => array(
371
+ 'type' => 'text',
372
+ 'text' => '<p><em>Diam et vestibulum facilisis:</em></p>
373
+ <ul>
374
+ <li>Massa justo tincidunt magna, a volutpat dolor leo vel mi.</li>
375
+ <li>Curabitur ornare tellus libero, nec porta dolor elementum et.</li>
376
+ <li>Vestibulum sodales congue ex quis euismod.</li>
377
+ </ul>',
378
+ ),
379
+ 3 => array(
380
+ 'type' => 'social',
381
+ 'iconSet' => 'grey',
382
+ 'icons' => array(
383
+ 0 => array(
384
+ 'type' => 'socialIcon',
385
+ 'iconType' => 'facebook',
386
+ 'link' => 'http://example.com',
387
+ 'image' => $this->social_icon_url . '/02-grey/Facebook.png',
388
+ 'height' => '32px',
389
+ 'width' => '32px',
390
+ 'text' => 'Facebook',
391
+ ),
392
+ 1 => array(
393
+ 'type' => 'socialIcon',
394
+ 'iconType' => 'twitter',
395
+ 'link' => 'http://example.com',
396
+ 'image' => $this->social_icon_url . '/02-grey/Twitter.png',
397
+ 'height' => '32px',
398
+ 'width' => '32px',
399
+ 'text' => 'Twitter',
400
+ ),
401
+ ),
402
+ ),
403
+ 4 => array(
404
+ 'type' => 'footer',
405
+ 'text' => '<p><a href="[link:subscription_unsubscribe_url]">Unsubscribe</a> | <a href="[link:subscription_manage_url]">Manage subscription</a></p><p>1 Store Street, Shopville, CA 1345</p>',
406
+ 'styles' => array(
407
+ 'block' => array(
408
+ 'backgroundColor' => 'transparent',
409
+ ),
410
+ 'text' => array(
411
+ 'fontColor' => '#343434',
412
+ 'fontFamily' => 'Verdana',
413
+ 'fontSize' => '12px',
414
+ 'textAlign' => 'center',
415
+ ),
416
+ 'link' => array(
417
+ 'fontColor' => '#488e88',
418
+ 'textDecoration' => 'none',
419
+ ),
420
+ ),
421
+ ),
422
+ ),
423
+ ),
424
+ ),
425
+ ),
426
+ ),
427
+ ),
428
+ 'globalStyles' => array(
429
+ 'text' => array(
430
+ 'fontColor' => '#343434',
431
+ 'fontFamily' => 'Verdana',
432
+ 'fontSize' => '14px',
433
+ ),
434
+ 'h1' => array(
435
+ 'fontColor' => '#488e88',
436
+ 'fontFamily' => 'Trebuchet MS',
437
+ 'fontSize' => '22px',
438
+ ),
439
+ 'h2' => array(
440
+ 'fontColor' => '#9a5fa1',
441
+ 'fontFamily' => 'Verdana',
442
+ 'fontSize' => '24px',
443
+ ),
444
+ 'h3' => array(
445
+ 'fontColor' => '#9a5fa1',
446
+ 'fontFamily' => 'Trebuchet MS',
447
+ 'fontSize' => '18px',
448
+ ),
449
+ 'link' => array(
450
+ 'fontColor' => '#488e88',
451
+ 'textDecoration' => 'underline',
452
+ ),
453
+ 'wrapper' => array(
454
+ 'backgroundColor' => '#afe3de',
455
+ ),
456
+ 'body' => array(
457
+ 'backgroundColor' => '#afe3de',
458
+ ),
459
+ ),
460
+ );
461
+ }
462
+
463
+ private function getThumbnail() {
464
+ return $this->template_image_url . '/discount.jpg';
465
+ }
466
+
467
+ }
lib/Config/PopulatorData/Templates/Faith.php ADDED
@@ -0,0 +1,488 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace MailPoet\Config\PopulatorData\Templates;
4
+
5
+ class Faith {
6
+
7
+ private $template_image_url;
8
+ private $social_icon_url;
9
+
10
+ function __construct($assets_url) {
11
+ $this->template_image_url = '//ps.w.org/mailpoet/assets/newsletter-templates/faith';
12
+ $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons';
13
+ }
14
+
15
+ function get() {
16
+ return array(
17
+ 'name' => __("Faith", 'mailpoet'),
18
+ 'description' => __("A calm and muted faith template.", 'mailpoet'),
19
+ 'readonly' => 1,
20
+ 'thumbnail' => $this->getThumbnail(),
21
+ 'body' => json_encode($this->getBody()),
22
+ );
23
+ }
24
+
25
+ private function getBody() {
26
+ return array(
27
+ 'content' => array(
28
+ 'type' => 'container',
29
+ 'orientation' => 'vertical',
30
+ 'styles' => array(
31
+ 'block' => array(
32
+ 'backgroundColor' => 'transparent',
33
+ ),
34
+ ),
35
+ 'blocks' => array(
36
+ 0 => array(
37
+ 'type' => 'container',
38
+ 'orientation' => 'horizontal',
39
+ 'styles' => array(
40
+ 'block' => array(
41
+ 'backgroundColor' => 'transparent',
42
+ ),
43
+ ),
44
+ 'blocks' => array(
45
+ 0 => array(
46
+ 'type' => 'container',
47
+ 'orientation' => 'vertical',
48
+ 'styles' => array(
49
+ 'block' => array(
50
+ 'backgroundColor' => 'transparent',
51
+ ),
52
+ ),
53
+ 'blocks' => array(
54
+ 0 => array(
55
+ 'type' => 'image',
56
+ 'link' => '',
57
+ 'src' => $this->template_image_url . '/church-header.jpg',
58
+ 'alt' => 'church-header',
59
+ 'fullWidth' => true,
60
+ 'width' => '1036px',
61
+ 'height' => '563px',
62
+ 'styles' => array(
63
+ 'block' => array(
64
+ 'textAlign' => 'center',
65
+ ),
66
+ ),
67
+ ),
68
+ 1 => array(
69
+ 'type' => 'spacer',
70
+ 'styles' => array(
71
+ 'block' => array(
72
+ 'backgroundColor' => 'transparent',
73
+ 'height' => '20px',
74
+ ),
75
+ ),
76
+ ),
77
+ 2 => array(
78
+ 'type' => 'text',
79
+ 'text' => '<h1 style="text-align: center;">Spreading Love &amp; Hope...</h1><p>Duis id molestie ex. Quisque finibus magna in justo tristique pellentesque. Nulla sed leo facilisis arcu malesuada molestie vel quis dolor. Donec imperdiet condimentum odio ut elementum. Aenean nisl massa, rutrum a ullamcorper eget, molestie non erat.&nbsp;</p>',
80
+ ),
81
+ 3 => array(
82
+ 'type' => 'spacer',
83
+ 'styles' => array(
84
+ 'block' => array(
85
+ 'backgroundColor' => 'transparent',
86
+ 'height' => '20px',
87
+ ),
88
+ ),
89
+ ),
90
+ ),
91
+ ),
92
+ ),
93
+ ),
94
+ 1 => array(
95
+ 'type' => 'container',
96
+ 'orientation' => 'horizontal',
97
+ 'styles' => array(
98
+ 'block' => array(
99
+ 'backgroundColor' => '#f3f4f4',
100
+ ),
101
+ ),
102
+ 'blocks' => array(
103
+ 0 => array(
104
+ 'type' => 'container',
105
+ 'orientation' => 'vertical',
106
+ 'styles' => array(
107
+ 'block' => array(
108
+ 'backgroundColor' => 'transparent',
109
+ ),
110
+ ),
111
+ 'blocks' => array(
112
+ 0 => array(
113
+ 'type' => 'spacer',
114
+ 'styles' => array(
115
+ 'block' => array(
116
+ 'backgroundColor' => 'transparent',
117
+ 'height' => '20px',
118
+ ),
119
+ ),
120
+ ),
121
+ 1 => array(
122
+ 'type' => 'text',
123
+ 'text' => '<h2 style="text-align: left;">Family Faith Events</h2>',
124
+ ),
125
+ 2 => array(
126
+ 'type' => 'image',
127
+ 'link' => '',
128
+ 'src' => $this->template_image_url . '/family.jpg',
129
+ 'alt' => 'family',
130
+ 'fullWidth' => false,
131
+ 'width' => '660px',
132
+ 'height' => '880px',
133
+ 'styles' => array(
134
+ 'block' => array(
135
+ 'textAlign' => 'center',
136
+ ),
137
+ ),
138
+ ),
139
+ 3 => array(
140
+ 'type' => 'text',
141
+ 'text' => '<p>In maximus tempus pellentesque. Nunc scelerisque ante odio, vel placerat dui fermentum efficitur. Integer vitae ex suscipit, aliquet eros vitae, ornare est. <a href="http://www.example.com">Aenean vel dapibus nisi</a>.</p>',
142
+ ),
143
+ 4 => array(
144
+ 'type' => 'spacer',
145
+ 'styles' => array(
146
+ 'block' => array(
147
+ 'backgroundColor' => 'transparent',
148
+ 'height' => '20px',
149
+ ),
150
+ ),
151
+ ),
152
+ ),
153
+ ),
154
+ 1 => array(
155
+ 'type' => 'container',
156
+ 'orientation' => 'vertical',
157
+ 'styles' => array(
158
+ 'block' => array(
159
+ 'backgroundColor' => 'transparent',
160
+ ),
161
+ ),
162
+ 'blocks' => array(
163
+ 0 => array(
164
+ 'type' => 'spacer',
165
+ 'styles' => array(
166
+ 'block' => array(
167
+ 'backgroundColor' => 'transparent',
168
+ 'height' => '20px',
169
+ ),
170
+ ),
171
+ ),
172
+ 1 => array(
173
+ 'type' => 'text',
174
+ 'text' => '<h2>Thoughts &amp; Prayers</h2>',
175
+ ),
176
+ 2 => array(
177
+ 'type' => 'image',
178
+ 'link' => '',
179
+ 'src' => $this->template_image_url . '/pray.jpg',
180
+ 'alt' => 'pray',
181
+ 'fullWidth' => false,
182
+ 'width' => '660px',
183
+ 'height' => '880px',
184
+ 'styles' => array(
185
+ 'block' => array(
186
+ 'textAlign' => 'center',
187
+ ),
188
+ ),
189
+ ),
190
+ 3 => array(
191
+ 'type' => 'text',
192
+ 'text' => '<p>Donec sed vulputate ipsum. In scelerisque rutrum interdum. Donec imperdiet dignissim erat, in dictum lectus accumsan ut. <a href="http://www.example.com">Aliquam erat volutpat.</a></p>',
193
+ ),
194
+ 4 => array(
195
+ 'type' => 'spacer',
196
+ 'styles' => array(
197
+ 'block' => array(
198
+ 'backgroundColor' => 'transparent',
199
+ 'height' => '20px',
200
+ ),
201
+ ),
202
+ ),
203
+ ),
204
+ ),
205
+ ),
206
+ ),
207
+ 2 => array(
208
+ 'type' => 'container',
209
+ 'orientation' => 'horizontal',
210
+ 'styles' => array(
211
+ 'block' => array(
212
+ 'backgroundColor' => 'transparent',
213
+ ),
214
+ ),
215
+ 'blocks' => array(
216
+ 0 => array(
217
+ 'type' => 'container',
218
+ 'orientation' => 'vertical',
219
+ 'styles' => array(
220
+ 'block' => array(
221
+ 'backgroundColor' => 'transparent',
222
+ ),
223
+ ),
224
+ 'blocks' => array(
225
+ 0 => array(
226
+ 'type' => 'spacer',
227
+ 'styles' => array(
228
+ 'block' => array(
229
+ 'backgroundColor' => 'transparent',
230
+ 'height' => '20px',
231
+ ),
232
+ ),
233
+ ),
234
+ 1 => array(
235
+ 'type' => 'text',
236
+ 'text' => '<h1 style="text-align: center;">Latest News</h1>',
237
+ ),
238
+ 2 => array(
239
+ 'type' => 'divider',
240
+ 'styles' => array(
241
+ 'block' => array(
242
+ 'backgroundColor' => 'transparent',
243
+ 'padding' => '7px',
244
+ 'borderStyle' => 'dotted',
245
+ 'borderWidth' => '1px',
246
+ 'borderColor' => '#dcdcdc',
247
+ ),
248
+ ),
249
+ ),
250
+ 3 => array(
251
+ 'type' => 'automatedLatestContent',
252
+ 'amount' => '3',
253
+ 'contentType' => 'post',
254
+ 'terms' => array(),
255
+ 'inclusionType' => 'include',
256
+ 'displayType' => 'excerpt',
257
+ 'titleFormat' => 'h3',
258
+ 'titleAlignment' => 'left',
259
+ 'titleIsLink' => false,
260
+ 'imageFullWidth' => false,
261
+ 'featuredImagePosition' => 'belowTitle',
262
+ 'showAuthor' => 'no',
263
+ 'authorPrecededBy' => 'Author:',
264
+ 'showCategories' => 'no',
265
+ 'categoriesPrecededBy' => 'Categories:',
266
+ 'readMoreType' => 'button',
267
+ 'readMoreText' => 'Read more',
268
+ 'readMoreButton' => array(
269
+ 'type' => 'button',
270
+ 'text' => 'Read more',
271
+ 'url' => '[postLink]',
272
+ 'styles' => array(
273
+ 'block' => array(
274
+ 'backgroundColor' => '#dfeaf3',
275
+ 'borderColor' => '#00ddff',
276
+ 'borderWidth' => '0px',
277
+ 'borderRadius' => '5px',
278
+ 'borderStyle' => 'solid',
279
+ 'width' => '160px',
280
+ 'lineHeight' => '45px',
281
+ 'fontColor' => '#597890',
282
+ 'fontFamily' => 'Tahoma',
283
+ 'fontSize' => '16px',
284
+ 'fontWeight' => 'normal',
285
+ 'textAlign' => 'center',
286
+ ),
287
+ ),
288
+ ),
289
+ 'sortBy' => 'newest',
290
+ 'showDivider' => true,
291
+ 'divider' => array(
292
+ 'type' => 'divider',
293
+ 'styles' => array(
294
+ 'block' => array(
295
+ 'backgroundColor' => 'transparent',
296
+ 'padding' => '13px',
297
+ 'borderStyle' => 'dotted',
298
+ 'borderWidth' => '2px',
299
+ 'borderColor' => '#dfeaf3',
300
+ ),
301
+ ),
302
+ ),
303
+ 'backgroundColor' => '#ffffff',
304
+ 'backgroundColorAlternate' => '#eeeeee',
305
+ ),
306
+ 4 => array(
307
+ 'type' => 'spacer',
308
+ 'styles' => array(
309
+ 'block' => array(
310
+ 'backgroundColor' => 'transparent',
311
+ 'height' => '20px',
312
+ ),
313
+ ),
314
+ ),
315
+ 5 => array(
316
+ 'type' => 'divider',
317
+ 'styles' => array(
318
+ 'block' => array(
319
+ 'backgroundColor' => '#e7eff6',
320
+ 'padding' => '13px',
321
+ 'borderStyle' => 'ridge',
322
+ 'borderWidth' => '6px',
323
+ 'borderColor' => '#597890',
324
+ ),
325
+ ),
326
+ ),
327
+ ),
328
+ ),
329
+ ),
330
+ ),
331
+ 3 => array(
332
+ 'type' => 'container',
333
+ 'orientation' => 'horizontal',
334
+ 'styles' => array(
335
+ 'block' => array(
336
+ 'backgroundColor' => '#e7eff6',
337
+ ),
338
+ ),
339
+ 'blocks' => array(
340
+ 0 => array(
341
+ 'type' => 'container',
342
+ 'orientation' => 'vertical',
343
+ 'styles' => array(
344
+ 'block' => array(
345
+ 'backgroundColor' => 'transparent',
346
+ ),
347
+ ),
348
+ 'blocks' => array(
349
+ 0 => array(
350
+ 'type' => 'footer',
351
+ 'text' => '<a href="[link:subscription_unsubscribe_url]">Unsubscribe</a> | <a href="[link:subscription_manage_url]">Manage subscription</a><br /><b>Add your postal address here!</b>',
352
+ 'styles' => array(
353
+ 'block' => array(
354
+ 'backgroundColor' => '#e7eff6',
355
+ ),
356
+ 'text' => array(
357
+ 'fontColor' => '#787878',
358
+ 'fontFamily' => 'Tahoma',
359
+ 'fontSize' => '14px',
360
+ 'textAlign' => 'left',
361
+ ),
362
+ 'link' => array(
363
+ 'fontColor' => '#787878',
364
+ 'textDecoration' => 'none',
365
+ ),
366
+ ),
367
+ ),
368
+ 1 => array(
369
+ 'type' => 'spacer',
370
+ 'styles' => array(
371
+ 'block' => array(
372
+ 'backgroundColor' => 'transparent',
373
+ 'height' => '20px',
374
+ ),
375
+ ),
376
+ ),
377
+ ),
378
+ ),
379
+ 1 => array(
380
+ 'type' => 'container',
381
+ 'orientation' => 'vertical',
382
+ 'styles' => array(
383
+ 'block' => array(
384
+ 'backgroundColor' => 'transparent',
385
+ ),
386
+ ),
387
+ 'blocks' => array(
388
+ 0 => array(
389
+ 'type' => 'text',
390
+ 'text' => '<p style="text-align: center;">Find us socially:</p>',
391
+ ),
392
+ 1 => array(
393
+ 'type' => 'social',
394
+ 'iconSet' => 'full-symbol-black',
395
+ 'icons' => array(
396
+ 0 => array(
397
+ 'type' => 'socialIcon',
398
+ 'iconType' => 'facebook',
399
+ 'link' => 'http://www.facebook.com',
400
+ 'image' => $this->social_icon_url . '/07-full-symbol-black/Facebook.png',
401
+ 'height' => '32px',
402
+ 'width' => '32px',
403
+ 'text' => 'Facebook',
404
+ ),
405
+ 1 => array(
406
+ 'type' => 'socialIcon',
407
+ 'iconType' => 'twitter',
408
+ 'link' => 'http://www.twitter.com',
409
+ 'image' => $this->social_icon_url . '/07-full-symbol-black/Twitter.png',
410
+ 'height' => '32px',
411
+ 'width' => '32px',
412
+ 'text' => 'Twitter',
413
+ ),
414
+ 2 => array(
415
+ 'type' => 'socialIcon',
416
+ 'iconType' => 'email',
417
+ 'link' => '',
418
+ 'image' => $this->social_icon_url . '/07-full-symbol-black/Email.png',
419
+ 'height' => '32px',
420
+ 'width' => '32px',
421
+ 'text' => 'Email',
422
+ ),
423
+ 3 => array(
424
+ 'type' => 'socialIcon',
425
+ 'iconType' => 'website',
426
+ 'link' => '',
427
+ 'image' => $this->social_icon_url . '/07-full-symbol-black/Website.png',
428
+ 'height' => '32px',
429
+ 'width' => '32px',
430
+ 'text' => 'Website',
431
+ ),
432
+ ),
433
+ ),
434
+ 2 => array(
435
+ 'type' => 'spacer',
436
+ 'styles' => array(
437
+ 'block' => array(
438
+ 'backgroundColor' => 'transparent',
439
+ 'height' => '20px',
440
+ ),
441
+ ),
442
+ ),
443
+ ),
444
+ ),
445
+ ),
446
+ ),
447
+ ),
448
+ ),
449
+ 'globalStyles' => array(
450
+ 'text' => array(
451
+ 'fontColor' => '#787878',
452
+ 'fontFamily' => 'Tahoma',
453
+ 'fontSize' => '16px',
454
+ ),
455
+ 'h1' => array(
456
+ 'fontColor' => '#597890',
457
+ 'fontFamily' => 'Comic Sans MS',
458
+ 'fontSize' => '26px',
459
+ ),
460
+ 'h2' => array(
461
+ 'fontColor' => '#597890',
462
+ 'fontFamily' => 'Comic Sans MS',
463
+ 'fontSize' => '18px',
464
+ ),
465
+ 'h3' => array(
466
+ 'fontColor' => '#787878',
467
+ 'fontFamily' => 'Tahoma',
468
+ 'fontSize' => '18px',
469
+ ),
470
+ 'link' => array(
471
+ 'fontColor' => '#597890',
472
+ 'textDecoration' => 'underline',
473
+ ),
474
+ 'wrapper' => array(
475
+ 'backgroundColor' => '#ffffff',
476
+ ),
477
+ 'body' => array(
478
+ 'backgroundColor' => '#e7eff6',
479
+ ),
480
+ ),
481
+ );
482
+ }
483
+
484
+ private function getThumbnail() {
485
+ return $this->template_image_url . '/faith.jpg';
486
+ }
487
+
488
+ }
lib/Config/PopulatorData/Templates/FestivalEvent.php ADDED
@@ -0,0 +1,524 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace MailPoet\Config\PopulatorData\Templates;
4
+
5
+ class FestivalEvent {
6
+
7
+ private $template_image_url;
8
+ private $social_icon_url;
9
+
10
+ function __construct($assets_url) {
11
+ $this->template_image_url = '//ps.w.org/mailpoet/assets/newsletter-templates/festival_event';
12
+ $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons';
13
+ }
14
+
15
+ function get() {
16
+ return array(
17
+ 'name' => __("Festival Event", 'mailpoet'),
18
+ 'description' => __("A colourful festival event template.", 'mailpoet'),
19
+ 'readonly' => 1,
20
+ 'thumbnail' => $this->getThumbnail(),
21
+ 'body' => json_encode($this->getBody()),
22
+ );
23
+ }
24
+
25
+ private function getBody() {
26
+ return array(
27
+ 'content' => array(
28
+ 'type' => 'container',
29
+ 'orientation' => 'vertical',
30
+ 'styles' => array(
31
+ 'block' => array(
32
+ 'backgroundColor' => 'transparent',
33
+ ),
34
+ ),
35
+ 'blocks' => array(
36
+ 0 => array(
37
+ 'type' => 'container',
38
+ 'orientation' => 'horizontal',
39
+ 'styles' => array(
40
+ 'block' => array(
41
+ 'backgroundColor' => 'transparent',
42
+ ),
43
+ ),
44
+ 'blocks' => array(
45
+ 0 => array(
46
+ 'type' => 'container',
47
+ 'orientation' => 'vertical',
48
+ 'styles' => array(
49
+ 'block' => array(
50
+ 'backgroundColor' => 'transparent',
51
+ ),
52
+ ),
53
+ 'blocks' => array(
54
+ 0 => array(
55
+ 'type' => 'spacer',
56
+ 'styles' => array(
57
+ 'block' => array(
58
+ 'backgroundColor' => '#0a5388',
59
+ 'height' => '20px',
60
+ ),
61
+ ),
62
+ ),
63
+ 1 => array(
64
+ 'type' => 'image',
65
+ 'link' => '',
66
+ 'src' => $this->template_image_url . '/festival-header.jpg',
67
+ 'alt' => 'festival-header',
68
+ 'fullWidth' => true,
69
+ 'width' => '1320px',
70
+ 'height' => '879px',
71
+ 'styles' => array(
72
+ 'block' => array(
73
+ 'textAlign' => 'center',
74
+ ),
75
+ ),
76
+ ),
77
+ 2 => array(
78
+ 'type' => 'spacer',
79
+ 'styles' => array(
80
+ 'block' => array(
81
+ 'backgroundColor' => 'transparent',
82
+ 'height' => '36px',
83
+ ),
84
+ ),
85
+ ),
86
+ 3 => array(
87
+ 'type' => 'text',
88
+ 'text' => '<h1 style="text-align: center;">Pack your glowsticks, <br />Boomfest is back!&nbsp;</h1>
89
+ <p></p>
90
+ <p style="text-align: center;">Duis tempor nisl in risus hendrerit venenatis. <br />Curabitur ornare venenatis nisl non ullamcorper. </p>',
91
+ ),
92
+ 4 => array(
93
+ 'type' => 'button',
94
+ 'text' => 'Duis id tincidunt',
95
+ 'url' => '',
96
+ 'styles' => array(
97
+ 'block' => array(
98
+ 'backgroundColor' => '#0a5388',
99
+ 'borderColor' => '#0074a2',
100
+ 'borderWidth' => '0px',
101
+ 'borderRadius' => '5px',
102
+ 'borderStyle' => 'solid',
103
+ 'width' => '260px',
104
+ 'lineHeight' => '50px',
105
+ 'fontColor' => '#ffffff',
106
+ 'fontFamily' => 'Courier New',
107
+ 'fontSize' => '18px',
108
+ 'fontWeight' => 'bold',
109
+ 'textAlign' => 'center',
110
+ ),
111
+ ),
112
+ ),
113
+ 5 => array(
114
+ 'type' => 'text',
115
+ 'text' => '<p style="text-align: center;">Maecenas scelerisque nisi sit amet metus efficitur dapibus!&nbsp;<br />Ut eros risus, facilisis ac aliquet vel, posuere ut urna.</p>',
116
+ ),
117
+ 6 => array(
118
+ 'type' => 'social',
119
+ 'iconSet' => 'full-symbol-grey',
120
+ 'icons' => array(
121
+ 0 => array(
122
+ 'type' => 'socialIcon',
123
+ 'iconType' => 'facebook',
124
+ 'link' => 'http://www.facebook.com',
125
+ 'image' => $this->social_icon_url . '/08-full-symbol-grey/Facebook.png',
126
+ 'height' => '32px',
127
+ 'width' => '32px',
128
+ 'text' => 'Facebook',
129
+ ),
130
+ 1 => array(
131
+ 'type' => 'socialIcon',
132
+ 'iconType' => 'twitter',
133
+ 'link' => 'http://www.twitter.com',
134
+ 'image' => $this->social_icon_url . '/08-full-symbol-grey/Twitter.png',
135
+ 'height' => '32px',
136
+ 'width' => '32px',
137
+ 'text' => 'Twitter',
138
+ ),
139
+ 2 => array(
140
+ 'type' => 'socialIcon',
141
+ 'iconType' => 'instagram',
142
+ 'link' => 'http://instagram.com',
143
+ 'image' => $this->social_icon_url . '/08-full-symbol-grey/Instagram.png',
144
+ 'height' => '32px',
145
+ 'width' => '32px',
146
+ 'text' => 'Instagram',
147
+ ),
148
+ ),
149
+ ),
150
+ ),
151
+ ),
152
+ ),
153
+ ),
154
+ 1 => array(
155
+ 'type' => 'container',
156
+ 'orientation' => 'horizontal',
157
+ 'styles' => array(
158
+ 'block' => array(
159
+ 'backgroundColor' => 'transparent',
160
+ ),
161
+ ),
162
+ 'blocks' => array(
163
+ 0 => array(
164
+ 'type' => 'container',
165
+ 'orientation' => 'vertical',
166
+ 'styles' => array(
167
+ 'block' => array(
168
+ 'backgroundColor' => 'transparent',
169
+ ),
170
+ ),
171
+ 'blocks' => array(
172
+ 0 => array(
173
+ 'type' => 'divider',
174
+ 'styles' => array(
175
+ 'block' => array(
176
+ 'backgroundColor' => 'transparent',
177
+ 'padding' => '13px',
178
+ 'borderStyle' => 'dashed',
179
+ 'borderWidth' => '2px',
180
+ 'borderColor' => '#ffffff',
181
+ ),
182
+ ),
183
+ ),
184
+ 1 => array(
185
+ 'type' => 'spacer',
186
+ 'styles' => array(
187
+ 'block' => array(
188
+ 'backgroundColor' => 'transparent',
189
+ 'height' => '28px',
190
+ ),
191
+ ),
192
+ ),
193
+ 2 => array(
194
+ 'type' => 'text',
195
+ 'text' => '<h2 style="text-align: center;">Confirmed Lineup</h2>',
196
+ ),
197
+ ),
198
+ ),
199
+ ),
200
+ ),
201
+ 2 => array(
202
+ 'type' => 'container',
203
+ 'orientation' => 'horizontal',
204
+ 'styles' => array(
205
+ 'block' => array(
206
+ 'backgroundColor' => 'transparent',
207
+ ),
208
+ ),
209
+ 'blocks' => array(
210
+ 0 => array(
211
+ 'type' => 'container',
212
+ 'orientation' => 'vertical',
213
+ 'styles' => array(
214
+ 'block' => array(
215
+ 'backgroundColor' => 'transparent',
216
+ ),
217
+ ),
218
+ 'blocks' => array(
219
+ 0 => array(
220
+ 'type' => 'text',
221
+ 'text' => '<h3><em><span style="color: #bae2ff;">Main Stage</span></em></h3><p>Quisque libero<br />Nulla convallis<br />Vestibulum Ornare<br />Consectetur Odio</p>',
222
+ ),
223
+ ),
224
+ ),
225
+ 1 => array(
226
+ 'type' => 'container',
227
+ 'orientation' => 'vertical',
228
+ 'styles' => array(
229
+ 'block' => array(
230
+ 'backgroundColor' => 'transparent',
231
+ ),
232
+ ),
233
+ 'blocks' => array(
234
+ 0 => array(
235
+ 'type' => 'text',
236
+ 'text' => '<h3><em><span style="color: #bae2ff;">New Acts Stage</span></em></h3><p>Nulla interdum<br />Massa nec<br />Pharetra<br />Varius</p>',
237
+ ),
238
+ ),
239
+ ),
240
+ 2 => array(
241
+ 'type' => 'container',
242
+ 'orientation' => 'vertical',
243
+ 'styles' => array(
244
+ 'block' => array(
245
+ 'backgroundColor' => 'transparent',
246
+ ),
247
+ ),
248
+ 'blocks' => array(
249
+ 0 => array(
250
+ 'type' => 'text',
251
+ 'text' => '<h3><em><span style="color: #bae2ff;">Comedy Stage</span></em></h3><p>In pulvinar<br />Risus sed<br />Condimentum<br />Feugiat</p>',
252
+ ),
253
+ ),
254
+ ),
255
+ ),
256
+ ),
257
+ 3 => array(
258
+ 'type' => 'container',
259
+ 'orientation' => 'horizontal',
260
+ 'styles' => array(
261
+ 'block' => array(
262
+ 'backgroundColor' => 'transparent',
263
+ ),
264
+ ),
265
+ 'blocks' => array(
266
+ 0 => array(
267
+ 'type' => 'container',
268
+ 'orientation' => 'vertical',
269
+ 'styles' => array(
270
+ 'block' => array(
271
+ 'backgroundColor' => 'transparent',
272
+ ),
273
+ ),
274
+ 'blocks' => array(
275
+ 0 => array(
276
+ 'type' => 'spacer',
277
+ 'styles' => array(
278
+ 'block' => array(
279
+ 'backgroundColor' => 'transparent',
280
+ 'height' => '20px',
281
+ ),
282
+ ),
283
+ ),
284
+ 1 => array(
285
+ 'type' => 'divider',
286
+ 'styles' => array(
287
+ 'block' => array(
288
+ 'backgroundColor' => 'transparent',
289
+ 'padding' => '13px',
290
+ 'borderStyle' => 'dashed',
291
+ 'borderWidth' => '2px',
292
+ 'borderColor' => '#ffffff',
293
+ ),
294
+ ),
295
+ ),
296
+ 2 => array(
297
+ 'type' => 'spacer',
298
+ 'styles' => array(
299
+ 'block' => array(
300
+ 'backgroundColor' => 'transparent',
301
+ 'height' => '20px',
302
+ ),
303
+ ),
304
+ ),
305
+ 3 => array(
306
+ 'type' => 'text',
307
+ 'text' => '<h2 style="text-align: center;">New to the festival this year</h2>',
308
+ ),
309
+ 4 => array(
310
+ 'type' => 'divider',
311
+ 'styles' => array(
312
+ 'block' => array(
313
+ 'backgroundColor' => 'transparent',
314
+ 'padding' => '9px',
315
+ 'borderStyle' => 'dashed',
316
+ 'borderWidth' => '2px',
317
+ 'borderColor' => '#ffffff',
318
+ ),
319
+ ),
320
+ ),
321
+ 5 => array(
322
+ 'type' => 'spacer',
323
+ 'styles' => array(
324
+ 'block' => array(
325
+ 'backgroundColor' => 'transparent',
326
+ 'height' => '20px',
327
+ ),
328
+ ),
329
+ ),
330
+ ),
331
+ ),
332
+ ),
333
+ ),
334
+ 4 => array(
335
+ 'type' => 'container',
336
+ 'orientation' => 'horizontal',
337
+ 'styles' => array(
338
+ 'block' => array(
339
+ 'backgroundColor' => 'transparent',
340
+ ),
341
+ ),
342
+ 'blocks' => array(
343
+ 0 => array(
344
+ 'type' => 'container',
345
+ 'orientation' => 'vertical',
346
+ 'styles' => array(
347
+ 'block' => array(
348
+ 'backgroundColor' => 'transparent',
349
+ ),
350
+ ),
351
+ 'blocks' => array(
352
+ 0 => array(
353
+ 'type' => 'image',
354
+ 'link' => '',
355
+ 'src' => $this->template_image_url . '/street-food.jpg',
356
+ 'alt' => 'street food',
357
+ 'fullWidth' => true,
358
+ 'width' => '499px',
359
+ 'height' => '750px',
360
+ 'styles' => array(
361
+ 'block' => array(
362
+ 'textAlign' => 'center',
363
+ ),
364
+ ),
365
+ ),
366
+ 1 => array(
367
+ 'type' => 'spacer',
368
+ 'styles' => array(
369
+ 'block' => array(
370
+ 'backgroundColor' => 'transparent',
371
+ 'height' => '20px',
372
+ ),
373
+ ),
374
+ ),
375
+ 2 => array(
376
+ 'type' => 'text',
377
+ 'text' => '<h3>Award-winning Street Food</h3><p>Nullam pharetra lectus id porta pulvinar. Proin ac massa nibh. Nullam ac mi pharetra, lobortis nunc et, placerat leo. Mauris eu feugiat elit. Pellentesque eget turpis eu diam vehicula convallis non <a href="http://www.mailpoet.com">luctus enim.</a></p>',
378
+ ),
379
+ ),
380
+ ),
381
+ 1 => array(
382
+ 'type' => 'container',
383
+ 'orientation' => 'vertical',
384
+ 'styles' => array(
385
+ 'block' => array(
386
+ 'backgroundColor' => 'transparent',
387
+ ),
388
+ ),
389
+ 'blocks' => array(
390
+ 0 => array(
391
+ 'type' => 'image',
392
+ 'link' => '',
393
+ 'src' => $this->template_image_url . '/happy.jpeg',
394
+ 'alt' => 'happy',
395
+ 'fullWidth' => true,
396
+ 'width' => '499px',
397
+ 'height' => '750px',
398
+ 'styles' => array(
399
+ 'block' => array(
400
+ 'textAlign' => 'center',
401
+ ),
402
+ ),
403
+ ),
404
+ 1 => array(
405
+ 'type' => 'spacer',
406
+ 'styles' => array(
407
+ 'block' => array(
408
+ 'backgroundColor' => 'transparent',
409
+ 'height' => '20px',
410
+ ),
411
+ ),
412
+ ),
413
+ 2 => array(
414
+ 'type' => 'text',
415
+ 'text' => '<h3>Prepare to&nbsp;dazzle with our Glitter Run</h3><p>Donec quis orci at metus finibus tincidunt. Sed vel urna sed urna maximus congue eu et turpis. Nulla tempus hendrerit justo eget molestie. Vivamus quis molestie lacus. Donec commodo odio a nisi feugiat, vitae egestas mi.</p>',
416
+ ),
417
+ ),
418
+ ),
419
+ ),
420
+ ),
421
+ 5 => array(
422
+ 'type' => 'container',
423
+ 'orientation' => 'horizontal',
424
+ 'styles' => array(
425
+ 'block' => array(
426
+ 'backgroundColor' => 'transparent',
427
+ ),
428
+ ),
429
+ 'blocks' => array(
430
+ 0 => array(
431
+ 'type' => 'container',
432
+ 'orientation' => 'vertical',
433
+ 'styles' => array(
434
+ 'block' => array(
435
+ 'backgroundColor' => 'transparent',
436
+ ),
437
+ ),
438
+ 'blocks' => array(
439
+ 0 => array(
440
+ 'type' => 'spacer',
441
+ 'styles' => array(
442
+ 'block' => array(
443
+ 'backgroundColor' => 'transparent',
444
+ 'height' => '20px',
445
+ ),
446
+ ),
447
+ ),
448
+ 1 => array(
449
+ 'type' => 'divider',
450
+ 'styles' => array(
451
+ 'block' => array(
452
+ 'backgroundColor' => 'transparent',
453
+ 'padding' => '13px',
454
+ 'borderStyle' => 'dashed',
455
+ 'borderWidth' => '2px',
456
+ 'borderColor' => '#ffffff',
457
+ ),
458
+ ),
459
+ ),
460
+ 2 => array(
461
+ 'type' => 'footer',
462
+ 'text' => '<p>Mauris tristique ultricies ullamcorper. <br />Don\'t want to hear from us?&nbsp;<a href="[link:subscription_unsubscribe_url]">Unsubscribe</a></p><p></p><p>Add your postal address here.&nbsp;</p>',
463
+ 'styles' => array(
464
+ 'block' => array(
465
+ 'backgroundColor' => 'transparent',
466
+ ),
467
+ 'text' => array(
468
+ 'fontColor' => '#ffffff',
469
+ 'fontFamily' => 'Courier New',
470
+ 'fontSize' => '13px',
471
+ 'textAlign' => 'center',
472
+ ),
473
+ 'link' => array(
474
+ 'fontColor' => '#ffffff',
475
+ 'textDecoration' => 'underline',
476
+ ),
477
+ ),
478
+ ),
479
+ ),
480
+ ),
481
+ ),
482
+ ),
483
+ ),
484
+ ),
485
+ 'globalStyles' => array(
486
+ 'text' => array(
487
+ 'fontColor' => '#ffffff',
488
+ 'fontFamily' => 'Courier New',
489
+ 'fontSize' => '16px',
490
+ ),
491
+ 'h1' => array(
492
+ 'fontColor' => '#ffffff',
493
+ 'fontFamily' => 'Georgia',
494
+ 'fontSize' => '36px',
495
+ ),
496
+ 'h2' => array(
497
+ 'fontColor' => '#ffffff',
498
+ 'fontFamily' => 'Georgia',
499
+ 'fontSize' => '26px',
500
+ ),
501
+ 'h3' => array(
502
+ 'fontColor' => '#ffffff',
503
+ 'fontFamily' => 'Georgia',
504
+ 'fontSize' => '24px',
505
+ ),
506
+ 'link' => array(
507
+ 'fontColor' => '#ffffff',
508
+ 'textDecoration' => 'underline',
509
+ ),
510
+ 'wrapper' => array(
511
+ 'backgroundColor' => '#8d062b',
512
+ ),
513
+ 'body' => array(
514
+ 'backgroundColor' => '#0a5388',
515
+ ),
516
+ ),
517
+ );
518
+ }
519
+
520
+ private function getThumbnail() {
521
+ return $this->template_image_url . '/festival-event.jpg';
522
+ }
523
+
524
+ }
lib/Config/PopulatorData/Templates/FoodBox.php ADDED
@@ -0,0 +1,757 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace MailPoet\Config\PopulatorData\Templates;
4
+
5
+
6
+ class FoodBox {
7
+
8
+ private $template_image_url;
9
+ private $social_icon_url;
10
+
11
+ function __construct($assets_url) {
12
+ $this->template_image_url = '//ps.w.org/mailpoet/assets/newsletter-templates/food_box';
13
+ $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons';
14
+ }
15
+
16
+ function get() {
17
+ return array(
18
+ 'name' => __("Welcome to FoodBox", 'mailpoet'),
19
+ 'description' => __("A welcome email template for your takeaway.", 'mailpoet'),
20
+ 'readonly' => 1,
21
+ 'thumbnail' => $this->getThumbnail(),
22
+ 'body' => json_encode($this->getBody()),
23
+ );
24
+ }
25
+
26
+ private function getBody() {
27
+ return array(
28
+ 'content' => array(
29
+ 'type' => 'container',
30
+ 'orientation' => 'vertical',
31
+ 'styles' => array(
32
+ 'block' => array(
33
+ 'backgroundColor' => 'transparent',
34
+ ),
35
+ ),
36
+ 'blocks' => array(
37
+ 0 => array(
38
+ 'type' => 'container',
39
+ 'orientation' => 'horizontal',
40
+ 'styles' => array(
41
+ 'block' => array(
42
+ 'backgroundColor' => '#f4f4f4',
43
+ ),
44
+ ),
45
+ 'blocks' => array(
46
+ 0 => array(
47
+ 'type' => 'container',
48
+ 'orientation' => 'vertical',
49
+ 'styles' => array(
50
+ 'block' => array(
51
+ 'backgroundColor' => 'transparent',
52
+ ),
53
+ ),
54
+ 'blocks' => array(
55
+ 0 => array(
56
+ 'type' => 'spacer',
57
+ 'styles' => array(
58
+ 'block' => array(
59
+ 'backgroundColor' => 'transparent',
60
+ 'height' => '20px',
61
+ ),
62
+ ),
63
+ ),
64
+ ),
65
+ ),
66
+ ),
67
+ ),
68
+ 1 => array(
69
+ 'type' => 'container',
70
+ 'orientation' => 'horizontal',
71
+ 'styles' => array(
72
+ 'block' => array(
73
+ 'backgroundColor' => 'transparent',
74
+ ),
75
+ ),
76
+ 'blocks' => array(
77
+ 0 => array(
78
+ 'type' => 'container',
79
+ 'orientation' => 'vertical',
80
+ 'styles' => array(
81
+ 'block' => array(
82
+ 'backgroundColor' => 'transparent',
83
+ ),
84
+ ),
85
+ 'blocks' => array(
86
+ 0 => array(
87
+ 'type' => 'spacer',
88
+ 'styles' => array(
89
+ 'block' => array(
90
+ 'backgroundColor' => 'transparent',
91
+ 'height' => '20px',
92
+ ),
93
+ ),
94
+ ),
95
+ ),
96
+ ),
97
+ ),
98
+ ),
99
+ 2 => array(
100
+ 'type' => 'container',
101
+ 'orientation' => 'horizontal',
102
+ 'styles' => array(
103
+ 'block' => array(
104
+ 'backgroundColor' => 'transparent',
105
+ ),
106
+ ),
107
+ 'blocks' => array(
108
+ 0 => array(
109
+ 'type' => 'container',
110
+ 'orientation' => 'vertical',
111
+ 'styles' => array(
112
+ 'block' => array(
113
+ 'backgroundColor' => 'transparent',
114
+ ),
115
+ ),
116
+ 'blocks' => array(
117
+ 0 => array(
118
+ 'type' => 'image',
119
+ 'link' => '',
120
+ 'src' => $this->template_image_url . '/Food-Delivery-Logo.png',
121
+ 'alt' => 'Food-Delivery-Logo',
122
+ 'fullWidth' => false,
123
+ 'width' => '640px',
124
+ 'height' => '180px',
125
+ 'styles' => array(
126
+ 'block' => array(
127
+ 'textAlign' => 'center',
128
+ ),
129
+ ),
130
+ ),
131
+ ),
132
+ ),
133
+ 1 => array(
134
+ 'type' => 'container',
135
+ 'orientation' => 'vertical',
136
+ 'styles' => array(
137
+ 'block' => array(
138
+ 'backgroundColor' => 'transparent',
139
+ ),
140
+ ),
141
+ 'blocks' => array(
142
+ 0 => array(
143
+ 'type' => 'image',
144
+ 'link' => '',
145
+ 'src' => $this->template_image_url . '/Food-Delivery-App.png',
146
+ 'alt' => 'Food-Delivery-App',
147
+ 'fullWidth' => false,
148
+ 'width' => '640px',
149
+ 'height' => '180px',
150
+ 'styles' => array(
151
+ 'block' => array(
152
+ 'textAlign' => 'center',
153
+ ),
154
+ ),
155
+ ),
156
+ ),
157
+ ),
158
+ ),
159
+ ),
160
+ 3 => array(
161
+ 'type' => 'container',
162
+ 'orientation' => 'horizontal',
163
+ 'styles' => array(
164
+ 'block' => array(
165
+ 'backgroundColor' => 'transparent',
166
+ ),
167
+ ),
168
+ 'blocks' => array(
169
+ 0 => array(
170
+ 'type' => 'container',
171
+ 'orientation' => 'vertical',
172
+ 'styles' => array(
173
+ 'block' => array(
174
+ 'backgroundColor' => 'transparent',
175
+ ),
176
+ ),
177
+ 'blocks' => array(
178
+ 0 => array(
179
+ 'type' => 'spacer',
180
+ 'styles' => array(
181
+ 'block' => array(
182
+ 'backgroundColor' => 'transparent',
183
+ 'height' => '20px',
184
+ ),
185
+ ),
186
+ ),
187
+ ),
188
+ ),
189
+ ),
190
+ ),
191
+ 4 => array(
192
+ 'type' => 'container',
193
+ 'orientation' => 'horizontal',
194
+ 'styles' => array(
195
+ 'block' => array(
196
+ 'backgroundColor' => 'transparent',
197
+ ),
198
+ ),
199
+ 'blocks' => array(
200
+ 0 => array(
201
+ 'type' => 'container',
202
+ 'orientation' => 'vertical',
203
+ 'styles' => array(
204
+ 'block' => array(
205
+ 'backgroundColor' => 'transparent',
206
+ ),
207
+ ),
208
+ 'blocks' => array(
209
+ 0 => array(
210
+ 'type' => 'spacer',
211
+ 'styles' => array(
212
+ 'block' => array(
213
+ 'backgroundColor' => 'transparent',
214
+ 'height' => '40px',
215
+ ),
216
+ ),
217
+ ),
218
+ 1 => array(
219
+ 'type' => 'text',
220
+ 'text' => '<h1><strong>Welcome to FoodBox</strong></h1>
221
+ <h2><strong>Lorem ipsum dolor sit amet</strong></h2>
222
+ <p>Curabitur sollicitudin eros eu cursus sollicitudin. Suspendisse laoreet sollicitudin urna, ut lacinia risus dictum a. Integer a neque eu magna commodo sodales eu eget ante.</p>',
223
+ ),
224
+ 2 => array(
225
+ 'type' => 'button',
226
+ 'text' => 'Get Started',
227
+ 'url' => '',
228
+ 'styles' => array(
229
+ 'block' => array(
230
+ 'backgroundColor' => '#7cc119',
231
+ 'borderColor' => '#7cc119',
232
+ 'borderWidth' => '0px',
233
+ 'borderRadius' => '5px',
234
+ 'borderStyle' => 'solid',
235
+ 'width' => '100px',
236
+ 'lineHeight' => '40px',
237
+ 'fontColor' => '#ffffff',
238
+ 'fontFamily' => 'Arial',
239
+ 'fontSize' => '14px',
240
+ 'fontWeight' => 'bold',
241
+ 'textAlign' => 'left',
242
+ ),
243
+ ),
244
+ ),
245
+ ),
246
+ ),
247
+ 1 => array(
248
+ 'type' => 'container',
249
+ 'orientation' => 'vertical',
250
+ 'styles' => array(
251
+ 'block' => array(
252
+ 'backgroundColor' => 'transparent',
253
+ ),
254
+ ),
255
+ 'blocks' => array(
256
+ 0 => array(
257
+ 'type' => 'image',
258
+ 'link' => '',
259
+ 'src' => $this->template_image_url . '/Food-Delivery-Focus.jpg',
260
+ 'alt' => 'Food-Delivery-Focus',
261
+ 'fullWidth' => false,
262
+ 'width' => '800px',
263
+ 'height' => '800px',
264
+ 'styles' => array(
265
+ 'block' => array(
266
+ 'textAlign' => 'center',
267
+ ),
268
+ ),
269
+ ),
270
+ ),
271
+ ),
272
+ ),
273
+ ),
274
+ 5 => array(
275
+ 'type' => 'container',
276
+ 'orientation' => 'horizontal',
277
+ 'styles' => array(
278
+ 'block' => array(
279
+ 'backgroundColor' => 'transparent',
280
+ ),
281
+ ),
282
+ 'blocks' => array(
283
+ 0 => array(
284
+ 'type' => 'container',
285
+ 'orientation' => 'vertical',
286
+ 'styles' => array(
287
+ 'block' => array(
288
+ 'backgroundColor' => 'transparent',
289
+ ),
290
+ ),
291
+ 'blocks' => array(
292
+ 0 => array(
293
+ 'type' => 'divider',
294
+ 'styles' => array(
295
+ 'block' => array(
296
+ 'backgroundColor' => 'transparent',
297
+ 'padding' => '31.5px',
298
+ 'borderStyle' => 'solid',
299
+ 'borderWidth' => '2px',
300
+ 'borderColor' => '#e5e5e5',
301
+ ),
302
+ ),
303
+ ),
304
+ ),
305
+ ),
306
+ ),
307
+ ),
308
+ 6 => array(
309
+ 'type' => 'container',
310
+ 'orientation' => 'horizontal',
311
+ 'styles' => array(
312
+ 'block' => array(
313
+ 'backgroundColor' => 'transparent',
314
+ ),
315
+ ),
316
+ 'blocks' => array(
317
+ 0 => array(
318
+ 'type' => 'container',
319
+ 'orientation' => 'vertical',
320
+ 'styles' => array(
321
+ 'block' => array(
322
+ 'backgroundColor' => 'transparent',
323
+ ),
324
+ ),
325
+ 'blocks' => array(
326
+ 0 => array(
327
+ 'type' => 'text',
328
+ 'text' => '<h2 style="text-align: center;">Get started in 3 simple steps</h2>',
329
+ ),
330
+ ),
331
+ ),
332
+ ),
333
+ ),
334
+ 7 => array(
335
+ 'type' => 'container',
336
+ 'orientation' => 'horizontal',
337
+ 'styles' => array(
338
+ 'block' => array(
339
+ 'backgroundColor' => 'transparent',
340
+ ),
341
+ ),
342
+ 'blocks' => array(
343
+ 0 => array(
344
+ 'type' => 'container',
345
+ 'orientation' => 'vertical',
346
+ 'styles' => array(
347
+ 'block' => array(
348
+ 'backgroundColor' => 'transparent',
349
+ ),
350
+ ),
351
+ 'blocks' => array(
352
+ 0 => array(
353
+ 'type' => 'spacer',
354
+ 'styles' => array(
355
+ 'block' => array(
356
+ 'backgroundColor' => 'transparent',
357
+ 'height' => '20px',
358
+ ),
359
+ ),
360
+ ),
361
+ 1 => array(
362
+ 'type' => 'image',
363
+ 'link' => '',
364
+ 'src' => $this->template_image_url . '/Food-Delivery-1-1.png',
365
+ 'alt' => 'Food-Delivery-1',
366
+ 'fullWidth' => false,
367
+ 'width' => '800px',
368
+ 'height' => '250px',
369
+ 'styles' => array(
370
+ 'block' => array(
371
+ 'textAlign' => 'center',
372
+ ),
373
+ ),
374
+ ),
375
+ 2 => array(
376
+ 'type' => 'text',
377
+ 'text' => '<p style="text-align: center;">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur sollicitudin eros eu cursus sollicitudin.</p>',
378
+ ),
379
+ ),
380
+ ),
381
+ 1 => array(
382
+ 'type' => 'container',
383
+ 'orientation' => 'vertical',
384
+ 'styles' => array(
385
+ 'block' => array(
386
+ 'backgroundColor' => 'transparent',
387
+ ),
388
+ ),
389
+ 'blocks' => array(
390
+ 0 => array(
391
+ 'type' => 'spacer',
392
+ 'styles' => array(
393
+ 'block' => array(
394
+ 'backgroundColor' => 'transparent',
395
+ 'height' => '20px',
396
+ ),
397
+ ),
398
+ ),
399
+ 1 => array(
400
+ 'type' => 'image',
401
+ 'link' => '',
402
+ 'src' => $this->template_image_url . '/Food-Delivery-2-1.png',
403
+ 'alt' => 'Food-Delivery-2',
404
+ 'fullWidth' => false,
405
+ 'width' => '800px',
406
+ 'height' => '250px',
407
+ 'styles' => array(
408
+ 'block' => array(
409
+ 'textAlign' => 'center',
410
+ ),
411
+ ),
412
+ ),
413
+ 2 => array(
414
+ 'type' => 'text',
415
+ 'text' => '<p style="text-align: center;"><span style="text-align: center;">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur sollicitudin eros eu cursus sollicitudin.</span></p>',
416
+ ),
417
+ ),
418
+ ),
419
+ 2 => array(
420
+ 'type' => 'container',
421
+ 'orientation' => 'vertical',
422
+ 'styles' => array(
423
+ 'block' => array(
424
+ 'backgroundColor' => 'transparent',
425
+ ),
426
+ ),
427
+ 'blocks' => array(
428
+ 0 => array(
429
+ 'type' => 'spacer',
430
+ 'styles' => array(
431
+ 'block' => array(
432
+ 'backgroundColor' => 'transparent',
433
+ 'height' => '20px',
434
+ ),
435
+ ),
436
+ ),
437
+ 1 => array(
438
+ 'type' => 'image',
439
+ 'link' => '',
440
+ 'src' => $this->template_image_url . '/Food-Delivery-3-1.png',
441
+ 'alt' => 'Food-Delivery-3',
442
+ 'fullWidth' => false,
443
+ 'width' => '800px',
444
+ 'height' => '250px',
445
+ 'styles' => array(
446
+ 'block' => array(
447
+ 'textAlign' => 'center',
448
+ ),
449
+ ),
450
+ ),
451
+ 2 => array(
452
+ 'type' => 'text',
453
+ 'text' => '<p style="text-align: center;"><span style="text-align: center;">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur sollicitudin eros eu cursus sollicitudin.</span></p>',
454
+ ),
455
+ ),
456
+ ),
457
+ ),
458
+ ),
459
+ 8 => array(
460
+ 'type' => 'container',
461
+ 'orientation' => 'horizontal',
462
+ 'styles' => array(
463
+ 'block' => array(
464
+ 'backgroundColor' => 'transparent',
465
+ ),
466
+ ),
467
+ 'blocks' => array(
468
+ 0 => array(
469
+ 'type' => 'container',
470
+ 'orientation' => 'vertical',
471
+ 'styles' => array(
472
+ 'block' => array(
473
+ 'backgroundColor' => 'transparent',
474
+ ),
475
+ ),
476
+ 'blocks' => array(
477
+ 0 => array(
478
+ 'type' => 'spacer',
479
+ 'styles' => array(
480
+ 'block' => array(
481
+ 'backgroundColor' => 'transparent',
482
+ 'height' => '30px',
483
+ ),
484
+ ),
485
+ ),
486
+ 1 => array(
487
+ 'type' => 'button',
488
+ 'text' => 'Get Started',
489
+ 'url' => '',
490
+ 'styles' => array(
491
+ 'block' => array(
492
+ 'backgroundColor' => '#7cc119',
493
+ 'borderColor' => '#7cc119',
494
+ 'borderWidth' => '0px',
495
+ 'borderRadius' => '5px',
496
+ 'borderStyle' => 'solid',
497
+ 'width' => '100px',
498
+ 'lineHeight' => '40px',
499
+ 'fontColor' => '#ffffff',
500
+ 'fontFamily' => 'Arial',
501
+ 'fontSize' => '14px',
502
+ 'fontWeight' => 'bold',
503
+ 'textAlign' => 'center',
504
+ ),
505
+ ),
506
+ ),
507
+ 2 => array(
508
+ 'type' => 'spacer',
509
+ 'styles' => array(
510
+ 'block' => array(
511
+ 'backgroundColor' => 'transparent',
512
+ 'height' => '25px',
513
+ ),
514
+ ),
515
+ ),
516
+ ),
517
+ ),
518
+ ),
519
+ ),
520
+ 9 => array(
521
+ 'type' => 'container',
522
+ 'orientation' => 'horizontal',
523
+ 'styles' => array(
524
+ 'block' => array(
525
+ 'backgroundColor' => '#4599da',
526
+ ),
527
+ ),
528
+ 'blocks' => array(
529
+ 0 => array(
530
+ 'type' => 'container',
531
+ 'orientation' => 'vertical',
532
+ 'styles' => array(
533
+ 'block' => array(
534
+ 'backgroundColor' => 'transparent',
535
+ ),
536
+ ),
537
+ 'blocks' => array(
538
+ 0 => array(
539
+ 'type' => 'spacer',
540
+ 'styles' => array(
541
+ 'block' => array(
542
+ 'backgroundColor' => 'transparent',
543
+ 'height' => '30px',
544
+ ),
545
+ ),
546
+ ),
547
+ 1 => array(
548
+ 'type' => 'text',
549
+ 'text' => '<p style="text-align: center; font-size: 14px;"><strong><span style="color: #ffffff;">Link 1 - Link 2 - Link 3 - Link 4</span></strong></p>',
550
+ ),
551
+ ),
552
+ ),
553
+ 1 => array(
554
+ 'type' => 'container',
555
+ 'orientation' => 'vertical',
556
+ 'styles' => array(
557
+ 'block' => array(
558
+ 'backgroundColor' => 'transparent',
559
+ ),
560
+ ),
561
+ 'blocks' => array(
562
+ 0 => array(
563
+ 'type' => 'spacer',
564
+ 'styles' => array(
565
+ 'block' => array(
566
+ 'backgroundColor' => 'transparent',
567
+ 'height' => '24px',
568
+ ),
569
+ ),
570
+ ),
571
+ 1 => array(
572
+ 'type' => 'social',
573
+ 'iconSet' => 'full-symbol-grey',
574
+ 'icons' => array(
575
+ 0 => array(
576
+ 'type' => 'socialIcon',
577
+ 'iconType' => 'facebook',
578
+ 'link' => 'http://www.facebook.com',
579
+ 'image' => $this->social_icon_url . '/08-full-symbol-grey/Facebook.png',
580
+ 'height' => '32px',
581
+ 'width' => '32px',
582
+ 'text' => 'Facebook',
583
+ ),
584
+ 1 => array(
585
+ 'type' => 'socialIcon',
586
+ 'iconType' => 'twitter',
587
+ 'link' => 'http://www.twitter.com',
588
+ 'image' => $this->social_icon_url . '/08-full-symbol-grey/Twitter.png',
589
+ 'height' => '32px',
590
+ 'width' => '32px',
591
+ 'text' => 'Twitter',
592
+ ),
593
+ 2 => array(
594
+ 'type' => 'socialIcon',
595
+ 'iconType' => 'youtube',
596
+ 'link' => 'http://www.youtube.com',
597
+ 'image' => $this->social_icon_url . '/08-full-symbol-grey/Youtube.png',
598
+ 'height' => '32px',
599
+ 'width' => '32px',
600
+ 'text' => 'Youtube',
601
+ ),
602
+ 3 => array(
603
+ 'type' => 'socialIcon',
604
+ 'iconType' => 'instagram',
605
+ 'link' => 'http://instagram.com',
606
+ 'image' => $this->social_icon_url . '/08-full-symbol-grey/Instagram.png',
607
+ 'height' => '32px',
608
+ 'width' => '32px',
609
+ 'text' => 'Instagram',
610
+ ),
611
+ 4 => array(
612
+ 'type' => 'socialIcon',
613
+ 'iconType' => 'website',
614
+ 'link' => '',
615
+ 'image' => $this->social_icon_url . '/08-full-symbol-grey/Website.png',
616
+ 'height' => '32px',
617
+ 'width' => '32px',
618
+ 'text' => 'Website',
619
+ ),
620
+ ),
621
+ ),
622
+ ),
623
+ ),
624
+ ),
625
+ ),
626
+ 10 => array(
627
+ 'type' => 'container',
628
+ 'orientation' => 'horizontal',
629
+ 'styles' => array(
630
+ 'block' => array(
631
+ 'backgroundColor' => '#4599da',
632
+ ),
633
+ ),
634
+ 'blocks' => array(
635
+ 0 => array(
636
+ 'type' => 'container',
637
+ 'orientation' => 'vertical',
638
+ 'styles' => array(
639
+ 'block' => array(
640
+ 'backgroundColor' => 'transparent',
641
+ ),
642
+ ),
643
+ 'blocks' => array(
644
+ 0 => array(
645
+ 'type' => 'spacer',
646
+ 'styles' => array(
647
+ 'block' => array(
648
+ 'backgroundColor' => 'transparent',
649
+ 'height' => '25px',
650
+ ),
651
+ ),
652
+ ),
653
+ ),
654
+ ),
655
+ ),
656
+ ),
657
+ 11 => array(
658
+ 'type' => 'container',
659
+ 'orientation' => 'horizontal',
660
+ 'styles' => array(
661
+ 'block' => array(
662
+ 'backgroundColor' => '#f4f4f4',
663
+ ),
664
+ ),
665
+ 'blocks' => array(
666
+ 0 => array(
667
+ 'type' => 'container',
668
+ 'orientation' => 'vertical',
669
+ 'styles' => array(
670
+ 'block' => array(
671
+ 'backgroundColor' => 'transparent',
672
+ ),
673
+ ),
674
+ 'blocks' => array(
675
+ 0 => array(
676
+ 'type' => 'spacer',
677
+ 'styles' => array(
678
+ 'block' => array(
679
+ 'backgroundColor' => 'transparent',
680
+ 'height' => '20px',
681
+ ),
682
+ ),
683
+ ),
684
+ 1 => array(
685
+ 'type' => 'footer',
686
+ 'text' => '<p><a href="[link:subscription_unsubscribe_url]">Unsubscribe</a> | <a href="[link:subscription_manage_url]">Manage subscription</a><br />Add your postal address here!</p>',
687
+ 'styles' => array(
688
+ 'block' => array(
689
+ 'backgroundColor' => 'transparent',
690
+ ),
691
+ 'text' => array(
692
+ 'fontColor' => '#222222',
693
+ 'fontFamily' => 'Arial',
694
+ 'fontSize' => '12px',
695
+ 'textAlign' => 'center',
696
+ ),
697
+ 'link' => array(
698
+ 'fontColor' => '#6cb7d4',
699
+ 'textDecoration' => 'none',
700
+ ),
701
+ ),
702
+ ),
703
+ 2 => array(
704
+ 'type' => 'spacer',
705
+ 'styles' => array(
706
+ 'block' => array(
707
+ 'backgroundColor' => 'transparent',
708
+ 'height' => '40px',
709
+ ),
710
+ ),
711
+ ),
712
+ ),
713
+ ),
714
+ ),
715
+ ),
716
+ ),
717
+ ),
718
+ 'globalStyles' => array(
719
+ 'text' => array(
720
+ 'fontColor' => '#000000',
721
+ 'fontFamily' => 'Arial',
722
+ 'fontSize' => '12px',
723
+ ),
724
+ 'h1' => array(
725
+ 'fontColor' => '#4599da',
726
+ 'fontFamily' => 'Arial',
727
+ 'fontSize' => '26px',
728
+ ),
729
+ 'h2' => array(
730
+ 'fontColor' => '#878787',
731
+ 'fontFamily' => 'Arial',
732
+ 'fontSize' => '18px',
733
+ ),
734
+ 'h3' => array(
735
+ 'fontColor' => '#333333',
736
+ 'fontFamily' => 'Arial',
737
+ 'fontSize' => '14px',
738
+ ),
739
+ 'link' => array(
740
+ 'fontColor' => '#4599da',
741
+ 'textDecoration' => 'underline',
742
+ ),
743
+ 'wrapper' => array(
744
+ 'backgroundColor' => '#ffffff',
745
+ ),
746
+ 'body' => array(
747
+ 'backgroundColor' => '#f4f4f4',
748
+ ),
749
+ ),
750
+ );
751
+ }
752
+
753
+ private function getThumbnail() {
754
+ return $this->template_image_url . '/welcome-to-foodbox.jpg';
755
+ }
756
+
757
+ }
lib/Config/PopulatorData/Templates/FranksRoastHouseTemplate.php DELETED
@@ -1,351 +0,0 @@
1
- <?php
2
- namespace MailPoet\Config\PopulatorData\Templates;
3
-
4
- if(!defined('ABSPATH')) exit;
5
-
6
- class FranksRoastHouseTemplate {
7
-
8
- function __construct($assets_url) {
9
- $this->assets_url = $assets_url;
10
- $this->external_template_image_url = '//ps.w.org/mailpoet/assets/newsletter-templates/franks-roast-house';
11
- $this->social_icon_url = $this->assets_url . '/img/newsletter_editor/social-icons';
12
- }
13
-
14
- function get() {
15
- return array(
16
- 'name' => __("Frank's Roast House", 'mailpoet'),
17
- 'description' => __("Think of this as your sandbox. Play around with this example newsletter to see what MailPoet can do for you.", 'mailpoet'),
18
- 'readonly' => 1,
19
- 'thumbnail' => $this->getThumbnail(),
20
- 'body' => json_encode($this->getBody()),
21
- );
22
- }
23
-
24
- private function getBody() {
25
- return array(
26
- "content" => array(
27
- "type" => "container",
28
- "orientation" => "vertical",
29
- "styles" => array(
30
- "block" => array(
31
- "backgroundColor" => "transparent"
32
- )
33
- ),
34
- "blocks" => array(
35
- array(
36
- "orientation" => "horizontal",
37
- "blocks" => array(
38
- array(
39
- "type" => "container",
40
- "orientation" => "vertical",
41
- "styles" => array(
42
- "block" => array(
43
- "backgroundColor" => "transparent"
44
- )
45
- ),
46
- "blocks" => array(
47
- array(
48
- "type" => "header",
49
- "text" => __("<a href=\"[link:newsletter_view_in_browser_url]\">Open this email in your web browser.</a>", 'mailpoet'),
50
- "styles" => array(
51
- "block" => array(
52
- "backgroundColor" => "#ccc6c6"
53
- ),
54
- "text" => array(
55
- "fontColor" => "#222222",
56
- "fontFamily" => "Arial",
57
- "fontSize" => "12px",
58
- "textAlign" => "center"
59
- ),
60
- "link" => array(
61
- "fontColor" => "#36251e",
62
- "textDecoration" => "underline"
63
- )
64
- )
65
- ),
66
- array(
67
- "type" => "image",
68
- "link" => "http://www.example.com",
69
- "src" => $this->external_template_image_url . "/header-v2.jpg",
70
- "alt" => __("Frank's Café", 'mailpoet'),
71
- "fullWidth" => true,
72
- "width" => "600px",
73
- "height" => "220px",
74
- "styles" => array(
75
- "block" => array(
76
- "textAlign" => "center"
77
- )
78
- )
79
- ),
80
- array(
81
- "type" => "spacer",
82
- "styles" => array(
83
- "block" => array(
84
- "backgroundColor" => "transparent",
85
- "height" => "30px"
86
- )
87
- )
88
- ),
89
- array(
90
- "type" => "text",
91
- "text" => __("<p>Hi there [subscriber:firstname | default:coffee drinker]</p>\n<p></p>\n<p>Sit back and enjoy your favorite roast as you read this week's newsletter. </p>", 'mailpoet')
92
- ),
93
- array(
94
- "type" => "image",
95
- "link" => "http://example.org",
96
- "src" => $this->external_template_image_url . "/coffee-grain.jpg",
97
- "alt" => __('Coffee grain', 'mailpoet'),
98
- "fullWidth" => false,
99
- "width" => "1599px",
100
- "height" => "777px",
101
- "styles" => array(
102
- "block" => array(
103
- "textAlign" => "center"
104
- )
105
- )
106
- ),
107
- array(
108
- "type" => "text",
109
- "text" => __("<h1 style=\"text-align: center;\">--- Guest Coffee Roaster: <em>Brew Bros. ---</em></h1>\n<p><em></em></p>\n<p>Visit our Center Avenue store to try the latest guest coffee from Brew Bros, a local coffee roaster. This young duo started only two years ago, but have quickly gained popularity through pop-up shops, local events, and collaborations with food trucks.</p>\n<p></p>\n<blockquote>\n<p><span style=\"color: #ff6600;\"><em>Tasting notes: A rich, caramel flavor with subtle hints of molasses. The perfect wake-up morning espresso!</em></span></p>\n</blockquote>", 'mailpoet')
110
- )
111
- )
112
- )
113
- ),
114
- "type" => "container",
115
- "styles" => array(
116
- "block" => array(
117
- "backgroundColor" => "transparent"
118
- )
119
- )
120
- ),
121
- array(
122
- "orientation" => "horizontal",
123
- "blocks" => array(
124
- array(
125
- "type" => "container",
126
- "orientation" => "vertical",
127
- "styles" => array(
128
- "block" => array(
129
- "backgroundColor" => "transparent"
130
- )
131
- ),
132
- "blocks" => array(
133
- array(
134
- "type" => "text",
135
- "text" => __("<h2>Sandwich Competition</h2>", 'mailpoet')
136
- ),
137
- array(
138
- "type" => "image",
139
- "link" => "http://example.org",
140
- "src" => $this->external_template_image_url . "/sandwich.jpg",
141
- "alt" => __('Sandwich', 'mailpoet'),
142
- "fullWidth" => false,
143
- "width" => "640px",
144
- "height" => "344px",
145
- "styles" => array(
146
- "block" => array(
147
- "textAlign" => "center"
148
- )
149
- )
150
- ),
151
- array(
152
- "type" => "text",
153
- "text" => __("<p>Have an idea for the Next Great Sandwich? Tell us! We're offering free lunch for a month if you can invent an awesome new sandwich for our menu.</p>\n<p></p>\n<p></p>\n<p>Simply tweet your ideas to <a href=\"http://www.example.com\" title=\"This isn't a real twitter account\">@franksroasthouse</a> and use #sandwichcomp and we'll let you know if you're a winner.</p>", 'mailpoet')
154
- ),
155
- array(
156
- "type" => "button",
157
- "text" => ("Find out more"),
158
- "url" => "http://example.org",
159
- "styles" => array(
160
- "block" => array(
161
- "backgroundColor" => "#047da7",
162
- "borderColor" => "#004a68",
163
- "borderWidth" => "1px",
164
- "borderRadius" => "3px",
165
- "borderStyle" => "solid",
166
- "width" => "180px",
167
- "lineHeight" => "34px",
168
- "fontColor" => "#ffffff",
169
- "fontFamily" => "Arial",
170
- "fontSize" => "14px",
171
- "fontWeight" => "normal",
172
- "textAlign" => "center"
173
- )
174
- )
175
- ),
176
- array(
177
- "type" => "text",
178
- "text" => __("<h3 style=\"text-align: center;\">Follow Us</h3>", 'mailpoet')
179
- ),
180
- array(
181
- "type" => "social",
182
- "iconSet" => "full-symbol-black",
183
- "icons" => array(
184
- array(
185
- "type" => "socialIcon",
186
- "iconType" => "facebook",
187
- "link" => "http://www.facebook.com/mailpoetplugin",
188
- "image" => $this->social_icon_url . "/07-full-symbol-black/Facebook.png",
189
- "height" => "32px",
190
- "width" => "32px",
191
- "text" => "Facebook"
192
- ),
193
- array(
194
- "type" => "socialIcon",
195
- "iconType" => "twitter",
196
- "link" => "http://www.twitter.com/mailpoet",
197
- "image" => $this->social_icon_url . "/07-full-symbol-black/Twitter.png",
198
- "height" => "32px",
199
- "width" => "32px",
200
- "text" => "Twitter"
201
- ),
202
- array(
203
- "type" => "socialIcon",
204
- "iconType" => "instagram",
205
- "link" => "http://www.instagram.com/test",
206
- "image" => $this->social_icon_url . "/07-full-symbol-black/Instagram.png",
207
- "height" => "32px",
208
- "width" => "32px",
209
- "text" => "Instagram"
210
- ),
211
- array(
212
- "type" => "socialIcon",
213
- "iconType" => "website",
214
- "link" => "http://www.mailpoet.com",
215
- "image" => $this->social_icon_url . "/07-full-symbol-black/Website.png",
216
- "height" => "32px",
217
- "width" => "32px",
218
- "text" => "Website"
219
- )
220
- )
221
- )
222
- )
223
- ),
224
- array(
225
- "type" => "container",
226
- "orientation" => "vertical",
227
- "styles" => array(
228
- "block" => array(
229
- "backgroundColor" => "transparent"
230
- )
231
- ),
232
- "blocks" => array(
233
- array(
234
- "type" => "text",
235
- "text" => __("<h2>New Store Opening!</h2>", 'mailpoet')
236
- ),
237
- array(
238
- "type" => "image",
239
- "link" => "http://example.org",
240
- "src" => $this->external_template_image_url . "/map-v2.jpg",
241
- "alt" => __('Map', 'mailpoet'),
242
- "fullWidth" => false,
243
- "width" => "636px",
244
- "height" => "342px",
245
- "styles" => array(
246
- "block" => array(
247
- "textAlign" => "center"
248
- )
249
- )
250
- ),
251
- array(
252
- "type" => "text",
253
- "text" => __("<p>Watch out Broad Street, we're coming to you very soon! </p>\n<p></p>\n<p>Keep an eye on your inbox, as we'll have some special offers for our email subscribers plus an exclusive launch party invite!<br /><br /></p>", 'mailpoet')
254
- ),
255
- array(
256
- "type" => "text",
257
- "text" => __("<h2>New and Improved Hours!</h2>\n<p></p>\n<p>Frank's is now open even later, so you can get your caffeine fix all day (and night) long! Here's our new opening hours:</p>\n<p></p>\n<ul>\n<li>Monday - Thursday: 6am - 12am</li>\n<li>Friday - Saturday: 6am - 1:30am</li>\n<li>Sunday: 7:30am - 11pm</li>\n</ul>", 'mailpoet')
258
- )
259
- )
260
- )
261
- ),
262
- "type" => "container",
263
- "styles" => array(
264
- "block" => array(
265
- "backgroundColor" => "#ebebeb"
266
- )
267
- )
268
- ),
269
- array(
270
- "orientation" => "horizontal",
271
- "blocks" => array(
272
- array(
273
- "type" => "container",
274
- "orientation" => "vertical",
275
- "styles" => array(
276
- "block" => array(
277
- "backgroundColor" => "transparent"
278
- )
279
- ),
280
- "blocks" => array(
281
- array(
282
- "type" => "footer",
283
- "text" => __("<p><a href=\"[link:subscription_unsubscribe_url]\">Unsubscribe</a> | <a href=\"[link:subscription_manage_url]\">Manage subscription</a><br />12345 MailPoet Drive, EmailVille, 76543</p>", 'mailpoet'),
284
- "styles" => array(
285
- "block" => array(
286
- "backgroundColor" => "#a9a7a7"
287
- ),
288
- "text" => array(
289
- "fontColor" => "#000000",
290
- "fontFamily" => "Arial",
291
- "fontSize" => "12px",
292
- "textAlign" => "center"
293
- ),
294
- "link" => array(
295
- "fontColor" => "#000000",
296
- "textDecoration" => "underline"
297
- )
298
- )
299
- )
300
- )
301
- )
302
- ),
303
- "type" => "container",
304
- "styles" => array(
305
- "block" => array(
306
- "backgroundColor" => "transparent"
307
- )
308
- )
309
- )
310
- )
311
- ),
312
- "globalStyles" => array(
313
- "text" => array(
314
- "fontColor" => "#000000",
315
- "fontFamily" => "Arial",
316
- "fontSize" => "14px"
317
- ),
318
- "h1" => array(
319
- "fontColor" => "#604b4b",
320
- "fontFamily" => "Lucida",
321
- "fontSize" => "30px"
322
- ),
323
- "h2" => array(
324
- "fontColor" => "#047da7",
325
- "fontFamily" => "Lucida",
326
- "fontSize" => "22px"
327
- ),
328
- "h3" => array(
329
- "fontColor" => "#333333",
330
- "fontFamily" => "Georgia",
331
- "fontSize" => "20px"
332
- ),
333
- "link" => array(
334
- "fontColor" => "#047da7",
335
- "textDecoration" => "underline"
336
- ),
337
- "wrapper" => array(
338
- "backgroundColor" => "#ffffff"
339
- ),
340
- "body" => array(
341
- "backgroundColor" => "#ccc6c6"
342
- )
343
- )
344
- );
345
- }
346
-
347
- private function getThumbnail() {
348
- return $this->external_template_image_url . '/screenshot.jpg';
349
- }
350
-
351
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
lib/Config/PopulatorData/Templates/KickOff.php ADDED
@@ -0,0 +1,721 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace MailPoet\Config\PopulatorData\Templates;
4
+
5
+ class KickOff {
6
+
7
+ private $template_image_url;
8
+ private $social_icon_url;
9
+
10
+ function __construct($assets_url) {
11
+ $this->template_image_url = '//ps.w.org/mailpoet/assets/newsletter-templates/kick_off';
12
+ $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons';
13
+ }
14
+
15
+ function get() {
16
+ return array(
17
+ 'name' => __("Kick-Off", 'mailpoet'),
18
+ 'description' => __("Sporty green template for your team or sport event.", 'mailpoet'),
19
+ 'readonly' => 1,
20
+ 'thumbnail' => $this->getThumbnail(),
21
+ 'body' => json_encode($this->getBody()),
22
+ );
23
+ }
24
+
25
+ private function getBody() {
26
+ return array(
27
+ 'content' => array(
28
+ 'type' => 'container',
29
+ 'orientation' => 'vertical',
30
+ 'styles' => array(
31
+ 'block' => array(
32
+ 'backgroundColor' => 'transparent',
33
+ ),
34
+ ),
35
+ 'blocks' => array(
36
+ 0 => array(
37
+ 'type' => 'container',
38
+ 'orientation' => 'horizontal',
39
+ 'styles' => array(
40
+ 'block' => array(
41
+ 'backgroundColor' => 'transparent',
42
+ ),
43
+ ),
44
+ 'blocks' => array(
45
+ 0 => array(
46
+ 'type' => 'container',
47
+ 'orientation' => 'vertical',
48
+ 'styles' => array(
49
+ 'block' => array(
50
+ 'backgroundColor' => 'transparent',
51
+ ),
52
+ ),
53
+ 'blocks' => array(
54
+ 0 => array(
55
+ 'type' => 'image',
56
+ 'link' => '',
57
+ 'src' => $this->template_image_url . '/football-header.jpg',
58
+ 'alt' => 'football-header',
59
+ 'fullWidth' => true,
60
+ 'width' => '1320px',
61
+ 'height' => '540px',
62
+ 'styles' => array(
63
+ 'block' => array(
64
+ 'textAlign' => 'center',
65
+ ),
66
+ ),
67
+ ),
68
+ 1 => array(
69
+ 'type' => 'spacer',
70
+ 'styles' => array(
71
+ 'block' => array(
72
+ 'backgroundColor' => 'transparent',
73
+ 'height' => '20px',
74
+ ),
75
+ ),
76
+ ),
77
+ 2 => array(
78
+ 'type' => 'text',
79
+ 'text' => '<h1 style="text-align: center;"><strong>ALL THE LATEST MATCH RESULTS &amp; NEWS FROM THE SUNDAYS CLUB</strong></h1>',
80
+ ),
81
+ 3 => array(
82
+ 'type' => 'spacer',
83
+ 'styles' => array(
84
+ 'block' => array(
85
+ 'backgroundColor' => 'transparent',
86
+ 'height' => '20px',
87
+ ),
88
+ ),
89
+ ),
90
+ ),
91
+ ),
92
+ ),
93
+ ),
94
+ 1 => array(
95
+ 'type' => 'container',
96
+ 'orientation' => 'horizontal',
97
+ 'styles' => array(
98
+ 'block' => array(
99
+ 'backgroundColor' => 'transparent',
100
+ ),
101
+ ),
102
+ 'blocks' => array(
103
+ 0 => array(
104
+ 'type' => 'container',
105
+ 'orientation' => 'vertical',
106
+ 'styles' => array(
107
+ 'block' => array(
108
+ 'backgroundColor' => 'transparent',
109
+ ),
110
+ ),
111
+ 'blocks' => array(
112
+ 0 => array(
113
+ 'type' => 'image',
114
+ 'link' => '',
115
+ 'src' => $this->template_image_url . '/football-player-1.jpeg',
116
+ 'alt' => 'football-player',
117
+ 'fullWidth' => false,
118
+ 'width' => '600px',
119
+ 'height' => '840px',
120
+ 'styles' => array(
121
+ 'block' => array(
122
+ 'textAlign' => 'center',
123
+ ),
124
+ ),
125
+ ),
126
+ 1 => array(
127
+ 'type' => 'text',
128
+ 'text' => '<p><em>Nam convallis lorem tellus, eget sodales magna semper quis.</em></p>',
129
+ ),
130
+ 2 => array(
131
+ 'type' => 'spacer',
132
+ 'styles' => array(
133
+ 'block' => array(
134
+ 'backgroundColor' => 'transparent',
135
+ 'height' => '20px',
136
+ ),
137
+ ),
138
+ ),
139
+ ),
140
+ ),
141
+ 1 => array(
142
+ 'type' => 'container',
143
+ 'orientation' => 'vertical',
144
+ 'styles' => array(
145
+ 'block' => array(
146
+ 'backgroundColor' => 'transparent',
147
+ ),
148
+ ),
149
+ 'blocks' => array(
150
+ 0 => array(
151
+ 'type' => 'text',
152
+ 'text' => '<h2>North</h2>
153
+ <p>Nottington 0-1 East Lettersley</p>
154
+ <p>Little Bickburgh 2-1 Rockingham</p>
155
+ <p></p>
156
+ <h2>South</h2>
157
+ <p>Richmond West 1-0 Offington</p>
158
+ <p>Shorleton 5-2 Garphingham</p>
159
+ <p>Westwood 1-3 Chesham</p>
160
+ <p></p>
161
+ <h2>West</h2>
162
+ <p>Millham 4-2 Dunn Village</p>
163
+ <p>Emmington 1-1 Finham</p>
164
+ <p>Little Forest 0-2 Winton</p>
165
+ <p></p>
166
+ <h2>East</h2>
167
+ <p>Southfield 2-1 Fincham</p>
168
+ <p>High Ridlington 0-1 Benham</p>
169
+ <p>Tinton 4-6 Dortington</p>',
170
+ ),
171
+ 1 => array(
172
+ 'type' => 'spacer',
173
+ 'styles' => array(
174
+ 'block' => array(
175
+ 'backgroundColor' => 'transparent',
176
+ 'height' => '20px',
177
+ ),
178
+ ),
179
+ ),
180
+ ),
181
+ ),
182
+ ),
183
+ ),
184
+ 2 => array(
185
+ 'type' => 'container',
186
+ 'orientation' => 'horizontal',
187
+ 'styles' => array(
188
+ 'block' => array(
189
+ 'backgroundColor' => 'transparent',
190
+ ),
191
+ ),
192
+ 'blocks' => array(
193
+ 0 => array(
194
+ 'type' => 'container',
195
+ 'orientation' => 'vertical',
196
+ 'styles' => array(
197
+ 'block' => array(
198
+ 'backgroundColor' => 'transparent',
199
+ ),
200
+ ),
201
+ 'blocks' => array(
202
+ 0 => array(
203
+ 'type' => 'divider',
204
+ 'styles' => array(
205
+ 'block' => array(
206
+ 'backgroundColor' => 'transparent',
207
+ 'padding' => '25px',
208
+ 'borderStyle' => 'ridge',
209
+ 'borderWidth' => '5px',
210
+ 'borderColor' => '#484747',
211
+ ),
212
+ ),
213
+ ),
214
+ 1 => array(
215
+ 'type' => 'text',
216
+ 'text' => '<h1 style="text-align: center;">MATCH REPORTS</h1>',
217
+ ),
218
+ 2 => array(
219
+ 'type' => 'spacer',
220
+ 'styles' => array(
221
+ 'block' => array(
222
+ 'backgroundColor' => 'transparent',
223
+ 'height' => '21px',
224
+ ),
225
+ ),
226
+ ),
227
+ ),
228
+ ),
229
+ ),
230
+ ),
231
+ 3 => array(
232
+ 'type' => 'container',
233
+ 'orientation' => 'horizontal',
234
+ 'styles' => array(
235
+ 'block' => array(
236
+ 'backgroundColor' => 'transparent',
237
+ ),
238
+ ),
239
+ 'blocks' => array(
240
+ 0 => array(
241
+ 'type' => 'container',
242
+ 'orientation' => 'vertical',
243
+ 'styles' => array(
244
+ 'block' => array(
245
+ 'backgroundColor' => 'transparent',
246
+ ),
247
+ ),
248
+ 'blocks' => array(
249
+ 0 => array(
250
+ 'type' => 'text',
251
+ 'text' => '<h2>Branham United vs Finkley</h2>
252
+ <p>Vestibulum consectetur, quam sed tristique feugiat, elit sapien molestie mi, eu dapibus eros sapien ut risus. Nullam non scelerisque ligula.</p>
253
+ <p></p>
254
+ <p>Donec vitae nunc tempus, elementum magna et, ultrices velit. Sed eu consequat sapien, at dictum diam. Sed tristique egestas justo sit amet vulputate. Proin rhoncus sem eu odio ultricies ultrices.</p>',
255
+ ),
256
+ 1 => array(
257
+ 'type' => 'button',
258
+ 'text' => 'READ MORE',
259
+ 'url' => 'http://www.google.co.uk',
260
+ 'styles' => array(
261
+ 'block' => array(
262
+ 'backgroundColor' => '#61cc5a',
263
+ 'borderColor' => '#2f6a2c',
264
+ 'borderWidth' => '3px',
265
+ 'borderRadius' => '5px',
266
+ 'borderStyle' => 'solid',
267
+ 'width' => '180px',
268
+ 'lineHeight' => '40px',
269
+ 'fontColor' => '#252525',
270
+ 'fontFamily' => 'Lucida',
271
+ 'fontSize' => '14px',
272
+ 'fontWeight' => 'bold',
273
+ 'textAlign' => 'left',
274
+ ),
275
+ ),
276
+ ),
277
+ 2 => array(
278
+ 'type' => 'spacer',
279
+ 'styles' => array(
280
+ 'block' => array(
281
+ 'backgroundColor' => 'transparent',
282
+ 'height' => '20px',
283
+ ),
284
+ ),
285
+ ),
286
+ ),
287
+ ),
288
+ 1 => array(
289
+ 'type' => 'container',
290
+ 'orientation' => 'vertical',
291
+ 'styles' => array(
292
+ 'block' => array(
293
+ 'backgroundColor' => 'transparent',
294
+ ),
295
+ ),
296
+ 'blocks' => array(
297
+ 0 => array(
298
+ 'type' => 'text',
299
+ 'text' => '<h2 style="text-align: center;">Champton Albion vs Swanhall</h2>
300
+ <p>Aenean a arcu egestas, tincidunt nisi ut, mollis arcu. Sed eget dapibus nisi. Quisque tortor mi, consequat ut erat et, porta imperdiet dui.</p>
301
+ <p></p>
302
+ <p>Mauris vestibulum tortor ut justo luctus blandit. Vestibulum mollis sollicitudin tempor. Duis gravida, dui quis eleifend scelerisque, libero orci semper metus, sed maximus odio tortor ac sem.</p>',
303
+ ),
304
+ 1 => array(
305
+ 'type' => 'button',
306
+ 'text' => 'READ MORE',
307
+ 'url' => 'https://www.google.co.uk',
308
+ 'styles' => array(
309
+ 'block' => array(
310
+ 'backgroundColor' => '#61cc5a',
311
+ 'borderColor' => '#2f6a2c',
312
+ 'borderWidth' => '3px',
313
+ 'borderRadius' => '5px',
314
+ 'borderStyle' => 'solid',
315
+ 'width' => '180px',
316
+ 'lineHeight' => '40px',
317
+ 'fontColor' => '#252525',
318
+ 'fontFamily' => 'Lucida',
319
+ 'fontSize' => '14px',
320
+ 'fontWeight' => 'bold',
321
+ 'textAlign' => 'left',
322
+ ),
323
+ ),
324
+ ),
325
+ 2 => array(
326
+ 'type' => 'spacer',
327
+ 'styles' => array(
328
+ 'block' => array(
329
+ 'backgroundColor' => 'transparent',
330
+ 'height' => '20px',
331
+ ),
332
+ ),
333
+ ),
334
+ ),
335
+ ),
336
+ ),
337
+ ),
338
+ 4 => array(
339
+ 'type' => 'container',
340
+ 'orientation' => 'horizontal',
341
+ 'styles' => array(
342
+ 'block' => array(
343
+ 'backgroundColor' => '#8aeb83',
344
+ ),
345
+ ),
346
+ 'blocks' => array(
347
+ 0 => array(
348
+ 'type' => 'container',
349
+ 'orientation' => 'vertical',
350
+ 'styles' => array(
351
+ 'block' => array(
352
+ 'backgroundColor' => 'transparent',
353
+ ),
354
+ ),
355
+ 'blocks' => array(
356
+ 0 => array(
357
+ 'type' => 'spacer',
358
+ 'styles' => array(
359
+ 'block' => array(
360
+ 'backgroundColor' => 'transparent',
361
+ 'height' => '28px',
362
+ ),
363
+ ),
364
+ ),
365
+ 1 => array(
366
+ 'type' => 'text',
367
+ 'text' => '<h1 style="text-align: center;"><strong><span style="color: #333333;">FROM OUR ONLINE STORE</span></strong></h1>',
368
+ ),
369
+ ),
370
+ ),
371
+ ),
372
+ ),
373
+ 5 => array(
374
+ 'type' => 'container',
375
+ 'orientation' => 'horizontal',
376
+ 'styles' => array(
377
+ 'block' => array(
378
+ 'backgroundColor' => '#8aeb83',
379
+ ),
380
+ ),
381
+ 'blocks' => array(
382
+ 0 => array(
383
+ 'type' => 'container',
384
+ 'orientation' => 'vertical',
385
+ 'styles' => array(
386
+ 'block' => array(
387
+ 'backgroundColor' => 'transparent',
388
+ ),
389
+ ),
390
+ 'blocks' => array(
391
+ 0 => array(
392
+ 'type' => 'spacer',
393
+ 'styles' => array(
394
+ 'block' => array(
395
+ 'backgroundColor' => 'transparent',
396
+ 'height' => '20px',
397
+ ),
398
+ ),
399
+ ),
400
+ 1 => array(
401
+ 'type' => 'image',
402
+ 'link' => '',
403
+ 'src' => $this->template_image_url . '/shoes.jpg',
404
+ 'alt' => 'shoes',
405
+ 'fullWidth' => false,
406
+ 'width' => '400px',
407
+ 'height' => '400px',
408
+ 'styles' => array(
409
+ 'block' => array(
410
+ 'textAlign' => 'center',
411
+ ),
412
+ ),
413
+ ),
414
+ 2 => array(
415
+ 'type' => 'text',
416
+ 'text' => '<h3 style="text-align: center;"><strong>Team Colours Laces</strong></h3><p style="text-align: center;"><span style="color: #333333;">Donec imperdiet<em><br /></em>Tortor tincidunt, luctus libero vel, dapibus quam</span></p>',
417
+ ),
418
+ 3 => array(
419
+ 'type' => 'button',
420
+ 'text' => 'SHOP',
421
+ 'url' => '',
422
+ 'styles' => array(
423
+ 'block' => array(
424
+ 'backgroundColor' => '#61cc5a',
425
+ 'borderColor' => '#2f6a2c',
426
+ 'borderWidth' => '3px',
427
+ 'borderRadius' => '5px',
428
+ 'borderStyle' => 'solid',
429
+ 'width' => '180px',
430
+ 'lineHeight' => '40px',
431
+ 'fontColor' => '#252525',
432
+ 'fontFamily' => 'Lucida',
433
+ 'fontSize' => '14px',
434
+ 'fontWeight' => 'bold',
435
+ 'textAlign' => 'left',
436
+ ),
437
+ ),
438
+ ),
439
+ 4 => array(
440
+ 'type' => 'spacer',
441
+ 'styles' => array(
442
+ 'block' => array(
443
+ 'backgroundColor' => 'transparent',
444
+ 'height' => '20px',
445
+ ),
446
+ ),
447
+ ),
448
+ ),
449
+ ),
450
+ 1 => array(
451
+ 'type' => 'container',
452
+ 'orientation' => 'vertical',
453
+ 'styles' => array(
454
+ 'block' => array(
455
+ 'backgroundColor' => 'transparent',
456
+ ),
457
+ ),
458
+ 'blocks' => array(
459
+ 0 => array(
460
+ 'type' => 'spacer',
461
+ 'styles' => array(
462
+ 'block' => array(
463
+ 'backgroundColor' => 'transparent',
464
+ 'height' => '20px',
465
+ ),
466
+ ),
467
+ ),
468
+ 1 => array(
469
+ 'type' => 'image',
470
+ 'link' => '',
471
+ 'src' => $this->template_image_url . '/football.jpg',
472
+ 'alt' => 'football',
473
+ 'fullWidth' => false,
474
+ 'width' => '400px',
475
+ 'height' => '400px',
476
+ 'styles' => array(
477
+ 'block' => array(
478
+ 'textAlign' => 'center',
479
+ ),
480
+ ),
481
+ ),
482
+ 2 => array(
483
+ 'type' => 'text',
484
+ 'text' => '<h3 style="text-align: center;"><strong>Match Quality Balls</strong></h3><p style="text-align: center;"><span style="color: #333333;">Donec vulputate tempor auctor purus sit amet cursus ultricies</span></p>',
485
+ ),
486
+ 3 => array(
487
+ 'type' => 'button',
488
+ 'text' => 'SHOP',
489
+ 'url' => '',
490
+ 'styles' => array(
491
+ 'block' => array(
492
+ 'backgroundColor' => '#61cc5a',
493
+ 'borderColor' => '#2f6a2c',
494
+ 'borderWidth' => '3px',
495
+ 'borderRadius' => '5px',
496
+ 'borderStyle' => 'solid',
497
+ 'width' => '180px',
498
+ 'lineHeight' => '40px',
499
+ 'fontColor' => '#252525',
500
+ 'fontFamily' => 'Lucida',
501
+ 'fontSize' => '14px',
502
+ 'fontWeight' => 'bold',
503
+ 'textAlign' => 'left',
504
+ ),
505
+ ),
506
+ ),
507
+ ),
508
+ ),
509
+ 2 => array(
510
+ 'type' => 'container',
511
+ 'orientation' => 'vertical',
512
+ 'styles' => array(
513
+ 'block' => array(
514
+ 'backgroundColor' => 'transparent',
515
+ ),
516
+ ),
517
+ 'blocks' => array(
518
+ 0 => array(
519
+ 'type' => 'spacer',
520
+ 'styles' => array(
521
+ 'block' => array(
522
+ 'backgroundColor' => 'transparent',
523
+ 'height' => '20px',
524
+ ),
525
+ ),
526
+ ),
527
+ 1 => array(
528
+ 'type' => 'image',
529
+ 'link' => '',
530
+ 'src' => $this->template_image_url . '/plant-pot.jpg',
531
+ 'alt' => 'plant-pot',
532
+ 'fullWidth' => false,
533
+ 'width' => '400px',
534
+ 'height' => '400px',
535
+ 'styles' => array(
536
+ 'block' => array(
537
+ 'textAlign' => 'center',
538
+ ),
539
+ ),
540
+ ),
541
+ 2 => array(
542
+ 'type' => 'text',
543
+ 'text' => '<h3 style="text-align: center;"><strong>Football Plant Pots</strong></h3><p style="text-align: center;"><span style="color: #333333;">Libero tortor aliquet metus eget efficitur est lorem sit amet purus</span></p>',
544
+ ),
545
+ 3 => array(
546
+ 'type' => 'button',
547
+ 'text' => 'SHOP',
548
+ 'url' => '',
549
+ 'styles' => array(
550
+ 'block' => array(
551
+ 'backgroundColor' => '#61cc5a',
552
+ 'borderColor' => '#2f6a2c',
553
+ 'borderWidth' => '3px',
554
+ 'borderRadius' => '5px',
555
+ 'borderStyle' => 'solid',
556
+ 'width' => '180px',
557
+ 'lineHeight' => '40px',
558
+ 'fontColor' => '#252525',
559
+ 'fontFamily' => 'Lucida',
560
+ 'fontSize' => '14px',
561
+ 'fontWeight' => 'bold',
562
+ 'textAlign' => 'left',
563
+ ),
564
+ ),
565
+ ),
566
+ ),
567
+ ),
568
+ ),
569
+ ),
570
+ 6 => array(
571
+ 'type' => 'container',
572
+ 'orientation' => 'horizontal',
573
+ 'styles' => array(
574
+ 'block' => array(
575
+ 'backgroundColor' => 'transparent',
576
+ ),
577
+ ),
578
+ 'blocks' => array(
579
+ 0 => array(
580
+ 'type' => 'container',
581
+ 'orientation' => 'vertical',
582
+ 'styles' => array(
583
+ 'block' => array(
584
+ 'backgroundColor' => 'transparent',
585
+ ),
586
+ ),
587
+ 'blocks' => array(
588
+ 0 => array(
589
+ 'type' => 'spacer',
590
+ 'styles' => array(
591
+ 'block' => array(
592
+ 'backgroundColor' => 'transparent',
593
+ 'height' => '40px',
594
+ ),
595
+ ),
596
+ ),
597
+ 1 => array(
598
+ 'type' => 'footer',
599
+ 'text' => '<a href="[link:subscription_unsubscribe_url]">Unsubscribe</a> | <a href="[link:subscription_manage_url]">Manage subscription</a><br /><b>Add your postal address here!</b>',
600
+ 'styles' => array(
601
+ 'block' => array(
602
+ 'backgroundColor' => 'transparent',
603
+ ),
604
+ 'text' => array(
605
+ 'fontColor' => '#ffffff',
606
+ 'fontFamily' => 'Lucida',
607
+ 'fontSize' => '12px',
608
+ 'textAlign' => 'center',
609
+ ),
610
+ 'link' => array(
611
+ 'fontColor' => '#ffffff',
612
+ 'textDecoration' => 'underline',
613
+ ),
614
+ ),
615
+ ),
616
+ 2 => array(
617
+ 'type' => 'spacer',
618
+ 'styles' => array(
619
+ 'block' => array(
620
+ 'backgroundColor' => 'transparent',
621
+ 'height' => '23px',
622
+ ),
623
+ ),
624
+ ),
625
+ 3 => array(
626
+ 'type' => 'social',
627
+ 'iconSet' => 'full-symbol-grey',
628
+ 'icons' => array(
629
+ 0 => array(
630
+ 'type' => 'socialIcon',
631
+ 'iconType' => 'facebook',
632
+ 'link' => 'http://www.facebook.com',
633
+ 'image' => $this->social_icon_url . '/08-full-symbol-grey/Facebook.png',
634
+ 'height' => '32px',
635
+ 'width' => '32px',
636
+ 'text' => 'Facebook',
637
+ ),
638
+ 1 => array(
639
+ 'type' => 'socialIcon',
640
+ 'iconType' => 'twitter',
641
+ 'link' => 'http://www.twitter.com',
642
+ 'image' => $this->social_icon_url . '/08-full-symbol-grey/Twitter.png',
643
+ 'height' => '32px',
644
+ 'width' => '32px',
645
+ 'text' => 'Twitter',
646
+ ),
647
+ 2 => array(
648
+ 'type' => 'socialIcon',
649
+ 'iconType' => 'youtube',
650
+ 'link' => 'http://www.youtube.com',
651
+ 'image' => $this->social_icon_url . '/08-full-symbol-grey/Youtube.png',
652
+ 'height' => '32px',
653
+ 'width' => '32px',
654
+ 'text' => 'Youtube',
655
+ ),
656
+ 3 => array(
657
+ 'type' => 'socialIcon',
658
+ 'iconType' => 'email',
659
+ 'link' => '',
660
+ 'image' => $this->social_icon_url . '/08-full-symbol-grey/Email.png',
661
+ 'height' => '32px',
662
+ 'width' => '32px',
663
+ 'text' => 'Email',
664
+ ),
665
+ ),
666
+ ),
667
+ 4 => array(
668
+ 'type' => 'spacer',
669
+ 'styles' => array(
670
+ 'block' => array(
671
+ 'backgroundColor' => 'transparent',
672
+ 'height' => '20px',
673
+ ),
674
+ ),
675
+ ),
676
+ ),
677
+ ),
678
+ ),
679
+ ),
680
+ ),
681
+ ),
682
+ 'globalStyles' => array(
683
+ 'text' => array(
684
+ 'fontColor' => '#ffffff',
685
+ 'fontFamily' => 'Georgia',
686
+ 'fontSize' => '16px',
687
+ ),
688
+ 'h1' => array(
689
+ 'fontColor' => '#ffffff',
690
+ 'fontFamily' => 'Lucida',
691
+ 'fontSize' => '24px',
692
+ ),
693
+ 'h2' => array(
694
+ 'fontColor' => '#61cc5a',
695
+ 'fontFamily' => 'Lucida',
696
+ 'fontSize' => '22px',
697
+ ),
698
+ 'h3' => array(
699
+ 'fontColor' => '#333333',
700
+ 'fontFamily' => 'Lucida',
701
+ 'fontSize' => '20px',
702
+ ),
703
+ 'link' => array(
704
+ 'fontColor' => '#21759B',
705
+ 'textDecoration' => 'underline',
706
+ ),
707
+ 'wrapper' => array(
708
+ 'backgroundColor' => '#252525',
709
+ ),
710
+ 'body' => array(
711
+ 'backgroundColor' => '#eaeaea',
712
+ ),
713
+ ),
714
+ );
715
+ }
716
+
717
+ private function getThumbnail() {
718
+ return $this->template_image_url . '/sports.jpg';
719
+ }
720
+
721
+ }
lib/Config/PopulatorData/Templates/NewsDay.php ADDED
@@ -0,0 +1,555 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace MailPoet\Config\PopulatorData\Templates;
4
+
5
+ class NewsDay {
6
+
7
+ private $template_image_url;
8
+ private $social_icon_url;
9
+
10
+ function __construct($assets_url) {
11
+ $this->template_image_url = '//ps.w.org/mailpoet/assets/newsletter-templates/news_day';
12
+ $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons';
13
+ }
14
+
15
+ function get() {
16
+ return array(
17
+ 'name' => __("News Day", 'mailpoet'),
18
+ 'description' => __("Media ready template. ", 'mailpoet'),
19
+ 'readonly' => 1,
20
+ 'thumbnail' => $this->getThumbnail(),
21
+ 'body' => json_encode($this->getBody()),
22
+ );
23
+ }
24
+
25
+ private function getBody() {
26
+ return array(
27
+ 'content' => array(
28
+ 'type' => 'container',
29
+ 'orientation' => 'vertical',
30
+ 'styles' => array(
31
+ 'block' => array(
32
+ 'backgroundColor' => 'transparent',
33
+ ),
34
+ ),
35
+ 'blocks' => array(
36
+ 0 => array(
37
+ 'type' => 'container',
38
+ 'orientation' => 'horizontal',
39
+ 'styles' => array(
40
+ 'block' => array(
41
+ 'backgroundColor' => '#ffffff',
42
+ ),
43
+ ),
44
+ 'blocks' => array(
45
+ 0 => array(
46
+ 'type' => 'container',
47
+ 'orientation' => 'vertical',
48
+ 'styles' => array(
49
+ 'block' => array(
50
+ 'backgroundColor' => 'transparent',
51
+ ),
52
+ ),
53
+ 'blocks' => array(
54
+ 0 => array(
55
+ 'type' => 'spacer',
56
+ 'styles' => array(
57
+ 'block' => array(
58
+ 'backgroundColor' => '#f2f2f2',
59
+ 'height' => '20px',
60
+ ),
61
+ ),
62
+ ),
63
+ 1 => array(
64
+ 'type' => 'image',
65
+ 'link' => '',
66
+ 'src' => $this->template_image_url . '/News-Outlet-Title-2.jpg',
67
+ 'alt' => 'News-Outlet-Title-2',
68
+ 'fullWidth' => true,
69
+ 'width' => '1280px',
70
+ 'height' => '700px',
71
+ 'styles' => array(
72
+ 'block' => array(
73
+ 'textAlign' => 'center',
74
+ ),
75
+ ),
76
+ ),
77
+ ),
78
+ ),
79
+ ),
80
+ ),
81
+ 1 => array(
82
+ 'type' => 'container',
83
+ 'orientation' => 'horizontal',
84
+ 'styles' => array(
85
+ 'block' => array(
86
+ 'backgroundColor' => '#ffffff',
87
+ ),
88
+ ),
89
+ 'blocks' => array(
90
+ 0 => array(
91
+ 'type' => 'container',
92
+ 'orientation' => 'vertical',
93
+ 'styles' => array(
94
+ 'block' => array(
95
+ 'backgroundColor' => 'transparent',
96
+ ),
97
+ ),
98
+ 'blocks' => array(
99
+ 0 => array(
100
+ 'type' => 'spacer',
101
+ 'styles' => array(
102
+ 'block' => array(
103
+ 'backgroundColor' => 'transparent',
104
+ 'height' => '25px',
105
+ ),
106
+ ),
107
+ ),
108
+ ),
109
+ ),
110
+ ),
111
+ ),
112
+ 2 => array(
113
+ 'type' => 'container',
114
+ 'orientation' => 'horizontal',
115
+ 'styles' => array(
116
+ 'block' => array(
117
+ 'backgroundColor' => 'transparent',
118
+ ),
119
+ ),
120
+ 'blocks' => array(
121
+ 0 => array(
122
+ 'type' => 'container',
123
+ 'orientation' => 'vertical',
124
+ 'styles' => array(
125
+ 'block' => array(
126
+ 'backgroundColor' => 'transparent',
127
+ ),
128
+ ),
129
+ 'blocks' => array(
130
+ 0 => array(
131
+ 'type' => 'text',
132
+ 'text' => '<h1 style="text-align: left;"><span style="color: #2ca5d2;"><strong>Top Story</strong></span></h1>',
133
+ ),
134
+ 1 => array(
135
+ 'type' => 'text',
136
+ 'text' => '<h2 style="text-align: left;" data-post-id="1991"><strong>Plasma jet engines that could take you from the ground to space</strong></h2>',
137
+ ),
138
+ 2 => array(
139
+ 'type' => 'image',
140
+ 'link' => 'http://mailpoet.info/plasma-jet-engines-that-could-take-you-from-the-ground-to-space/',
141
+ 'src' => $this->template_image_url . '/plasma-stingray111-800x533.jpg',
142
+ 'alt' => 'Plasma jet engines that could take you from the ground to space',
143
+ 'fullWidth' => false,
144
+ 'width' => 660,
145
+ 'height' => 440,
146
+ 'styles' => array(
147
+ 'block' => array(
148
+ 'textAlign' => 'center',
149
+ ),
150
+ ),
151
+ ),
152
+ 3 => array(
153
+ 'type' => 'text',
154
+ 'text' => '<p class="mailpoet_wp_post">FORGET fuel-powered jet engines. We’re on the verge of having aircraft that can fly from the ground up to the edge of space using air and electricity alone. Traditional jet engines create thrust by mixing compressed air with fuel and igniting it. The burning mixture expands rapidly and is blasted out of the back of the engine, pushing it forwards. &hellip;</p><p><a href="http://mailpoet.info/plasma-jet-engines-that-could-take-you-from-the-ground-to-space/">Read More</a></p>',
155
+ ),
156
+ 4 => array(
157
+ 'type' => 'divider',
158
+ 'styles' => array(
159
+ 'block' => array(
160
+ 'backgroundColor' => 'transparent',
161
+ 'padding' => '13px',
162
+ 'borderStyle' => 'solid',
163
+ 'borderWidth' => '1px',
164
+ 'borderColor' => '#aaaaaa',
165
+ ),
166
+ ),
167
+ ),
168
+ 5 => array(
169
+ 'type' => 'spacer',
170
+ 'styles' => array(
171
+ 'block' => array(
172
+ 'backgroundColor' => 'transparent',
173
+ 'height' => '20px',
174
+ ),
175
+ ),
176
+ ),
177
+ 6 => array(
178
+ 'type' => 'text',
179
+ 'text' => '<h3><span style="color: #2ca5d2;"><strong>Popular Posts Today</strong></span></h3>',
180
+ ),
181
+ 7 => array(
182
+ 'type' => 'spacer',
183
+ 'styles' => array(
184
+ 'block' => array(
185
+ 'backgroundColor' => 'transparent',
186
+ 'height' => '20px',
187
+ ),
188
+ ),
189
+ ),
190
+ ),
191
+ ),
192
+ ),
193
+ ),
194
+ 3 => array(
195
+ 'type' => 'container',
196
+ 'orientation' => 'horizontal',
197
+ 'styles' => array(
198
+ 'block' => array(
199
+ 'backgroundColor' => 'transparent',
200
+ ),
201
+ ),
202
+ 'blocks' => array(
203
+ 0 => array(
204
+ 'type' => 'container',
205
+ 'orientation' => 'vertical',
206
+ 'styles' => array(
207
+ 'block' => array(
208
+ 'backgroundColor' => 'transparent',
209
+ ),
210
+ ),
211
+ 'blocks' => array(
212
+ 0 => array(
213
+ 'type' => 'text',
214
+ 'text' => '<h3 style="text-align: left; font-size: 18px; line-height: 1.4;" data-post-id="1997"><strong>Cutting through the smog: What to do to fight air pollution</strong></h3>
215
+ <p class="mailpoet_wp_post">Tackling our air problems starts with traffic control, but individual action to reduce energy use and intensive farming would also help clean our air.</p>
216
+ <p><a href="http://mailpoet.info/cutting-through-the-smog-what-to-do-to-fight-air-pollution/">Read More</a></p>',
217
+ ),
218
+ 1 => array(
219
+ 'type' => 'divider',
220
+ 'styles' => array(
221
+ 'block' => array(
222
+ 'backgroundColor' => 'transparent',
223
+ 'padding' => '13px',
224
+ 'borderStyle' => 'solid',
225
+ 'borderWidth' => '1px',
226
+ 'borderColor' => '#aaaaaa',
227
+ ),
228
+ ),
229
+ ),
230
+ 2 => array(
231
+ 'type' => 'text',
232
+ 'text' => '<h3 style="text-align: left; font-size: 18px; line-height: 1.4;" data-post-id="1994"><strong>Ladybird&rsquo;s transparent shell reveals how it&nbsp;moves</strong></h3>
233
+ <p class="mailpoet_wp_post">They certainly know how to fold. A see-through artificial wing case has been used to watch for the first time as ladybirds put away their wings after flight.</p>
234
+ <p><a href="http://mailpoet.info/ladybirds-transparent-shell-reveals-how-it-folds-its-wings/">Read More</a></p>',
235
+ ),
236
+ 3 => array(
237
+ 'type' => 'divider',
238
+ 'styles' => array(
239
+ 'block' => array(
240
+ 'backgroundColor' => 'transparent',
241
+ 'padding' => '13px',
242
+ 'borderStyle' => 'solid',
243
+ 'borderWidth' => '1px',
244
+ 'borderColor' => '#aaaaaa',
245
+ ),
246
+ ),
247
+ ),
248
+ 4 => array(
249
+ 'type' => 'text',
250
+ 'text' => '<h3 style="text-align: left; font-size: 18px; line-height: 1.4;" data-post-id="1938"><strong>Brazil&rsquo;s history-making Hurricane</strong></h3>
251
+ <p class="mailpoet_wp_post">Jairzinho has just made history. In claiming the fourth goal of an unforgettable 1970 FIFA World Cup Mexico&trade; Final against Italy, he has maintained his record of scoring in every one of Brazil&rsquo;s matches en route to the Trophy.</p>
252
+ <p><a href="http://mailpoet.info/brazils-history-making-hurricane/">Read More</a></p>',
253
+ ),
254
+ ),
255
+ ),
256
+ 1 => array(
257
+ 'type' => 'container',
258
+ 'orientation' => 'vertical',
259
+ 'styles' => array(
260
+ 'block' => array(
261
+ 'backgroundColor' => 'transparent',
262
+ ),
263
+ ),
264
+ 'blocks' => array(
265
+ 0 => array(
266
+ 'type' => 'text',
267
+ 'text' => '<h3 style="text-align: left; font-size: 18px; line-height: 1.4;" data-post-id="1935"><strong>Iceland&rsquo;s dentist-coach defying convention and expectations</strong></h3>
268
+ <p class="mailpoet_wp_post">As Iceland&rsquo;s key matches loom, with kick-off just a couple of hours away, you will find their national coach in the pub. This may seem unusual...</p>
269
+ <p><a href="http://mailpoet.info/icelands-dentist-coach-defying-convention-and-expectations/">Read More</a></p>',
270
+ ),
271
+ 1 => array(
272
+ 'type' => 'divider',
273
+ 'styles' => array(
274
+ 'block' => array(
275
+ 'backgroundColor' => 'transparent',
276
+ 'padding' => '13px',
277
+ 'borderStyle' => 'solid',
278
+ 'borderWidth' => '1px',
279
+ 'borderColor' => '#aaaaaa',
280
+ ),
281
+ ),
282
+ ),
283
+ 2 => array(
284
+ 'type' => 'text',
285
+ 'text' => '<h3 style="text-align: left; font-size: 18px; line-height: 1.4;" data-post-id="1932"><strong>Impact and legacy of 2018 FIFA World Cup Russia</strong></h3>
286
+ <p class="mailpoet_wp_post">Organising a FIFA World Cup&trade; in a sustainable manner is a major challenge. The scale of the event inevitably has an impact on the Host Country.&nbsp;</p>
287
+ <p><a href="http://mailpoet.info/impact-and-legacy-of-2018-fifa-world-cup-russia-facts-and-figures/">Read More</a></p>',
288
+ ),
289
+ 3 => array(
290
+ 'type' => 'divider',
291
+ 'styles' => array(
292
+ 'block' => array(
293
+ 'backgroundColor' => 'transparent',
294
+ 'padding' => '13px',
295
+ 'borderStyle' => 'solid',
296
+ 'borderWidth' => '1px',
297
+ 'borderColor' => '#aaaaaa',
298
+ ),
299
+ ),
300
+ ),
301
+ 4 => array(
302
+ 'type' => 'text',
303
+ 'text' => '<h3 style="text-align: left; font-size: 18px; line-height: 1.4;" data-post-id="1929"><strong>Lineker&rsquo;s life-changing treble</strong></h3>
304
+ <p class="mailpoet_wp_post">Given that he won the Golden Boot in his first and came within a whisker of the Final in his second, one might expect Gary Lineker to have a tough time picking his FIFA World Cup&trade; highlight. Yet the man who scored ten times...</p>
305
+ <p><a href="http://mailpoet.info/linekers-life-changing-treble/">Read More</a></p>',
306
+ ),
307
+ ),
308
+ ),
309
+ ),
310
+ ),
311
+ 4 => array(
312
+ 'type' => 'container',
313
+ 'orientation' => 'horizontal',
314
+ 'styles' => array(
315
+ 'block' => array(
316
+ 'backgroundColor' => 'transparent',
317
+ ),
318
+ ),
319
+ 'blocks' => array(
320
+ 0 => array(
321
+ 'type' => 'container',
322
+ 'orientation' => 'vertical',
323
+ 'styles' => array(
324
+ 'block' => array(
325
+ 'backgroundColor' => 'transparent',
326
+ ),
327
+ ),
328
+ 'blocks' => array(
329
+ 0 => array(
330
+ 'type' => 'spacer',
331
+ 'styles' => array(
332
+ 'block' => array(
333
+ 'backgroundColor' => 'transparent',
334
+ 'height' => '40px',
335
+ ),
336
+ ),
337
+ ),
338
+ 1 => array(
339
+ 'type' => 'spacer',
340
+ 'styles' => array(
341
+ 'block' => array(
342
+ 'backgroundColor' => '#f2f2f2',
343
+ 'height' => '40px',
344
+ ),
345
+ ),
346
+ ),
347
+ 2 => array(
348
+ 'type' => 'spacer',
349
+ 'styles' => array(
350
+ 'block' => array(
351
+ 'backgroundColor' => 'transparent',
352
+ 'height' => '20px',
353
+ ),
354
+ ),
355
+ ),
356
+ ),
357
+ ),
358
+ ),
359
+ ),
360
+ 5 => array(
361
+ 'type' => 'container',
362
+ 'orientation' => 'horizontal',
363
+ 'styles' => array(
364
+ 'block' => array(
365
+ 'backgroundColor' => 'transparent',
366
+ ),
367
+ ),
368
+ 'blocks' => array(
369
+ 0 => array(
370
+ 'type' => 'container',
371
+ 'orientation' => 'vertical',
372
+ 'styles' => array(
373
+ 'block' => array(
374
+ 'backgroundColor' => 'transparent',
375
+ ),
376
+ ),
377
+ 'blocks' => array(
378
+ 0 => array(
379
+ 'type' => 'footer',
380
+ 'text' => '<p><strong>NewsDay</strong></p>
381
+ <p><a href="[link:subscription_unsubscribe_url]">Unsubscribe</a> | <a href="[link:subscription_manage_url]">Manage subscription</a><br /><br /></p>
382
+ <p></p>',
383
+ 'styles' => array(
384
+ 'block' => array(
385
+ 'backgroundColor' => 'transparent',
386
+ ),
387
+ 'text' => array(
388
+ 'fontColor' => '#222222',
389
+ 'fontFamily' => 'Arial',
390
+ 'fontSize' => '12px',
391
+ 'textAlign' => 'left',
392
+ ),
393
+ 'link' => array(
394
+ 'fontColor' => '#6cb7d4',
395
+ 'textDecoration' => 'underline',
396
+ ),
397
+ ),
398
+ ),
399
+ ),
400
+ ),
401
+ 1 => array(
402
+ 'type' => 'container',
403
+ 'orientation' => 'vertical',
404
+ 'styles' => array(
405
+ 'block' => array(
406
+ 'backgroundColor' => 'transparent',
407
+ ),
408
+ ),
409
+ 'blocks' => array(
410
+ 0 => array(
411
+ 'type' => 'spacer',
412
+ 'styles' => array(
413
+ 'block' => array(
414
+ 'backgroundColor' => 'transparent',
415
+ 'height' => '20px',
416
+ ),
417
+ ),
418
+ ),
419
+ 1 => array(
420
+ 'type' => 'social',
421
+ 'iconSet' => 'circles',
422
+ 'icons' => array(
423
+ 0 => array(
424
+ 'type' => 'socialIcon',
425
+ 'iconType' => 'facebook',
426
+ 'link' => 'http://www.facebook.com',
427
+ 'image' => $this->social_icon_url . '/03-circles/Facebook.png',
428
+ 'height' => '32px',
429
+ 'width' => '32px',
430
+ 'text' => 'Facebook',
431
+ ),
432
+ 1 => array(
433
+ 'type' => 'socialIcon',
434
+ 'iconType' => 'twitter',
435
+ 'link' => 'http://www.twitter.com',
436
+ 'image' => $this->social_icon_url . '/03-circles/Twitter.png',
437
+ 'height' => '32px',
438
+ 'width' => '32px',
439
+ 'text' => 'Twitter',
440
+ ),
441
+ 2 => array(
442
+ 'type' => 'socialIcon',
443
+ 'iconType' => 'youtube',
444
+ 'link' => 'http://www.youtube.com',
445
+ 'image' => $this->social_icon_url . '/03-circles/Youtube.png',
446
+ 'height' => '32px',
447
+ 'width' => '32px',
448
+ 'text' => 'Youtube',
449
+ ),
450
+ 3 => array(
451
+ 'type' => 'socialIcon',
452
+ 'iconType' => 'instagram',
453
+ 'link' => 'http://instagram.com',
454
+ 'image' => $this->social_icon_url . '/03-circles/Instagram.png',
455
+ 'height' => '32px',
456
+ 'width' => '32px',
457
+ 'text' => 'Instagram',
458
+ ),
459
+ 4 => array(
460
+ 'type' => 'socialIcon',
461
+ 'iconType' => 'linkedin',
462
+ 'link' => 'http://www.linkedin.com',
463
+ 'image' => $this->social_icon_url . '/03-circles/LinkedIn.png',
464
+ 'height' => '32px',
465
+ 'width' => '32px',
466
+ 'text' => 'LinkedIn',
467
+ ),
468
+ ),
469
+ ),
470
+ 2 => array(
471
+ 'type' => 'spacer',
472
+ 'styles' => array(
473
+ 'block' => array(
474
+ 'backgroundColor' => 'transparent',
475
+ 'height' => '20px',
476
+ ),
477
+ ),
478
+ ),
479
+ ),
480
+ ),
481
+ ),
482
+ ),
483
+ 6 => array(
484
+ 'type' => 'container',
485
+ 'orientation' => 'horizontal',
486
+ 'styles' => array(
487
+ 'block' => array(
488
+ 'backgroundColor' => 'transparent',
489
+ ),
490
+ ),
491
+ 'blocks' => array(
492
+ 0 => array(
493
+ 'type' => 'container',
494
+ 'orientation' => 'vertical',
495
+ 'styles' => array(
496
+ 'block' => array(
497
+ 'backgroundColor' => 'transparent',
498
+ ),
499
+ ),
500
+ 'blocks' => array(
501
+ 0 => array(
502
+ 'type' => 'spacer',
503
+ 'styles' => array(
504
+ 'block' => array(
505
+ 'backgroundColor' => '#f2f2f2',
506
+ 'height' => '40px',
507
+ ),
508
+ ),
509
+ ),
510
+ ),
511
+ ),
512
+ ),
513
+ ),
514
+ ),
515
+ ),
516
+ 'globalStyles' => array(
517
+ 'text' => array(
518
+ 'fontColor' => '#000000',
519
+ 'fontFamily' => 'Arial',
520
+ 'fontSize' => '13px',
521
+ ),
522
+ 'h1' => array(
523
+ 'fontColor' => '#111111',
524
+ 'fontFamily' => 'Arial',
525
+ 'fontSize' => '30px',
526
+ ),
527
+ 'h2' => array(
528
+ 'fontColor' => '#222222',
529
+ 'fontFamily' => 'Arial',
530
+ 'fontSize' => '24px',
531
+ ),
532
+ 'h3' => array(
533
+ 'fontColor' => '#333333',
534
+ 'fontFamily' => 'Arial',
535
+ 'fontSize' => '22px',
536
+ ),
537
+ 'link' => array(
538
+ 'fontColor' => '#2ca5d2',
539
+ 'textDecoration' => 'underline',
540
+ ),
541
+ 'wrapper' => array(
542
+ 'backgroundColor' => '#ffffff',
543
+ ),
544
+ 'body' => array(
545
+ 'backgroundColor' => '#f2f2f2',
546
+ ),
547
+ ),
548
+ );
549
+ }
550
+
551
+ private function getThumbnail() {
552
+ return $this->template_image_url . '/news-day.jpg';
553
+ }
554
+
555
+ }
lib/Config/PopulatorData/Templates/PieceOfCake.php ADDED
@@ -0,0 +1,444 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace MailPoet\Config\PopulatorData\Templates;
4
+
5
+ class PieceOfCake {
6
+
7
+ private $template_image_url;
8
+ private $social_icon_url;
9
+
10
+ function __construct($assets_url) {
11
+ $this->template_image_url = '//ps.w.org/mailpoet/assets/newsletter-templates/piece_of_cake';
12
+ $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons';
13
+ }
14
+
15
+ function get() {
16
+ return array(
17
+ 'name' => __("Piece of cake", 'mailpoet'),
18
+ 'description' => __("Baked with plenty of images.", 'mailpoet'),
19
+ 'readonly' => 1,
20
+ 'thumbnail' => $this->getThumbnail(),
21
+ 'body' => json_encode($this->getBody()),
22
+ );
23
+ }
24
+
25
+ private function getBody() {
26
+ return array(
27
+ 'content' => array(
28
+ 'type' => 'container',
29
+ 'orientation' => 'vertical',
30
+ 'styles' => array(
31
+ 'block' => array(
32
+ 'backgroundColor' => 'transparent',
33
+ ),
34
+ ),
35
+ 'blocks' => array(
36
+ 0 => array(
37
+ 'type' => 'container',
38
+ 'orientation' => 'horizontal',
39
+ 'styles' => array(
40
+ 'block' => array(
41
+ 'backgroundColor' => '#ffffff',
42
+ ),
43
+ ),
44
+ 'blocks' => array(
45
+ 0 => array(
46
+ 'type' => 'container',
47
+ 'orientation' => 'vertical',
48
+ 'styles' => array(
49
+ 'block' => array(
50
+ 'backgroundColor' => 'transparent',
51
+ ),
52
+ ),
53
+ 'blocks' => array(
54
+ 0 => array(
55
+ 'type' => 'header',
56
+ 'text' => '<p><strong>Open daily from 9am to 9pm |&nbsp;<a href="[link:newsletter_view_in_browser_url]">View Online</a></strong></p>',
57
+ 'styles' => array(
58
+ 'block' => array(
59
+ 'backgroundColor' => '#ececeb',
60
+ ),
61
+ 'text' => array(
62
+ 'fontColor' => '#606060',
63
+ 'fontFamily' => 'Arial',
64
+ 'fontSize' => '13px',
65
+ 'textAlign' => 'right',
66
+ ),
67
+ 'link' => array(
68
+ 'fontColor' => '#d42b2b',
69
+ 'textDecoration' => 'none',
70
+ ),
71
+ ),
72
+ ),
73
+ 1 => array(
74
+ 'type' => 'spacer',
75
+ 'styles' => array(
76
+ 'block' => array(
77
+ 'backgroundColor' => 'transparent',
78
+ 'height' => '30px',
79
+ ),
80
+ ),
81
+ ),
82
+ 2 => array(
83
+ 'type' => 'image',
84
+ 'link' => '',
85
+ 'src' => $this->template_image_url . '/Restaurant-Bakery-Logo-1.png',
86
+ 'alt' => 'Restaurant-Bakery-Logo-1',
87
+ 'fullWidth' => true,
88
+ 'width' => '1280px',
89
+ 'height' => '180px',
90
+ 'styles' => array(
91
+ 'block' => array(
92
+ 'textAlign' => 'center',
93
+ ),
94
+ ),
95
+ ),
96
+ 3 => array(
97
+ 'type' => 'spacer',
98
+ 'styles' => array(
99
+ 'block' => array(
100
+ 'backgroundColor' => 'transparent',
101
+ 'height' => '30px',
102
+ ),
103
+ ),
104
+ ),
105
+ 4 => array(
106
+ 'type' => 'image',
107
+ 'link' => '',
108
+ 'src' => $this->template_image_url . '/Restaurant-Bakery-Header.jpg',
109
+ 'alt' => 'Restaurant-Bakery-Header',
110
+ 'fullWidth' => true,
111
+ 'width' => '1280px',
112
+ 'height' => '1600px',
113
+ 'styles' => array(
114
+ 'block' => array(
115
+ 'textAlign' => 'center',
116
+ ),
117
+ ),
118
+ ),
119
+ 5 => array(
120
+ 'type' => 'spacer',
121
+ 'styles' => array(
122
+ 'block' => array(
123
+ 'backgroundColor' => 'transparent',
124
+ 'height' => '40px',
125
+ ),
126
+ ),
127
+ ),
128
+ 6 => array(
129
+ 'type' => 'text',
130
+ 'text' => '<h1 style="text-align: center;"><strong>It\'s our Birthday!</strong></h1>',
131
+ ),
132
+ 7 => array(
133
+ 'type' => 'text',
134
+ 'text' => '<h3 style="text-align: center; line-height: 1.4;">To celebrate, we\'re adding a slice of our Birthday cake to every order. Pop in this weekend to use our special offer code and enjoy!</h3>',
135
+ ),
136
+ 8 => array(
137
+ 'type' => 'spacer',
138
+ 'styles' => array(
139
+ 'block' => array(
140
+ 'backgroundColor' => 'transparent',
141
+ 'height' => '20px',
142
+ ),
143
+ ),
144
+ ),
145
+ ),
146
+ ),
147
+ ),
148
+ ),
149
+ 1 => array(
150
+ 'type' => 'container',
151
+ 'orientation' => 'horizontal',
152
+ 'styles' => array(
153
+ 'block' => array(
154
+ 'backgroundColor' => 'transparent',
155
+ ),
156
+ ),
157
+ 'blocks' => array(
158
+ 0 => array(
159
+ 'type' => 'container',
160
+ 'orientation' => 'vertical',
161
+ 'styles' => array(
162
+ 'block' => array(
163
+ 'backgroundColor' => 'transparent',
164
+ ),
165
+ ),
166
+ 'blocks' => array(
167
+ 0 => array(
168
+ 'type' => 'spacer',
169
+ 'styles' => array(
170
+ 'block' => array(
171
+ 'backgroundColor' => 'transparent',
172
+ 'height' => '20px',
173
+ ),
174
+ ),
175
+ ),
176
+ ),
177
+ ),
178
+ 1 => array(
179
+ 'type' => 'container',
180
+ 'orientation' => 'vertical',
181
+ 'styles' => array(
182
+ 'block' => array(
183
+ 'backgroundColor' => 'transparent',
184
+ ),
185
+ ),
186
+ 'blocks' => array(
187
+ 0 => array(
188
+ 'type' => 'text',
189
+ 'text' => '<p style="text-align: center; border: 3px dashed #d42b2b; color: #d42b2b; padding: 10px; font-size: 24px;"><strong>HAPPYBDAY</strong></p>',
190
+ ),
191
+ ),
192
+ ),
193
+ 2 => array(
194
+ 'type' => 'container',
195
+ 'orientation' => 'vertical',
196
+ 'styles' => array(
197
+ 'block' => array(
198
+ 'backgroundColor' => 'transparent',
199
+ ),
200
+ ),
201
+ 'blocks' => array(
202
+ 0 => array(
203
+ 'type' => 'spacer',
204
+ 'styles' => array(
205
+ 'block' => array(
206
+ 'backgroundColor' => 'transparent',
207
+ 'height' => '20px',
208
+ ),
209
+ ),
210
+ ),
211
+ ),
212
+ ),
213
+ ),
214
+ ),
215
+ 2 => array(
216
+ 'type' => 'container',
217
+ 'orientation' => 'horizontal',
218
+ 'styles' => array(
219
+ 'block' => array(
220
+ 'backgroundColor' => 'transparent',
221
+ ),
222
+ ),
223
+ 'blocks' => array(
224
+ 0 => array(
225
+ 'type' => 'container',
226
+ 'orientation' => 'vertical',
227
+ 'styles' => array(
228
+ 'block' => array(
229
+ 'backgroundColor' => 'transparent',
230
+ ),
231
+ ),
232
+ 'blocks' => array(
233
+ 0 => array(
234
+ 'type' => 'spacer',
235
+ 'styles' => array(
236
+ 'block' => array(
237
+ 'backgroundColor' => 'transparent',
238
+ 'height' => '50px',
239
+ ),
240
+ ),
241
+ ),
242
+ ),
243
+ ),
244
+ ),
245
+ ),
246
+ 3 => array(
247
+ 'type' => 'container',
248
+ 'orientation' => 'horizontal',
249
+ 'styles' => array(
250
+ 'block' => array(
251
+ 'backgroundColor' => '#ececeb',
252
+ ),
253
+ ),
254
+ 'blocks' => array(
255
+ 0 => array(
256
+ 'type' => 'container',
257
+ 'orientation' => 'vertical',
258
+ 'styles' => array(
259
+ 'block' => array(
260
+ 'backgroundColor' => 'transparent',
261
+ ),
262
+ ),
263
+ 'blocks' => array(
264
+ 0 => array(
265
+ 'type' => 'spacer',
266
+ 'styles' => array(
267
+ 'block' => array(
268
+ 'backgroundColor' => 'transparent',
269
+ 'height' => '20px',
270
+ ),
271
+ ),
272
+ ),
273
+ ),
274
+ ),
275
+ ),
276
+ ),
277
+ 4 => array(
278
+ 'type' => 'container',
279
+ 'orientation' => 'horizontal',
280
+ 'styles' => array(
281
+ 'block' => array(
282
+ 'backgroundColor' => '#ececeb',
283
+ ),
284
+ ),
285
+ 'blocks' => array(
286
+ 0 => array(
287
+ 'type' => 'container',
288
+ 'orientation' => 'vertical',
289
+ 'styles' => array(
290
+ 'block' => array(
291
+ 'backgroundColor' => 'transparent',
292
+ ),
293
+ ),
294
+ 'blocks' => array(
295
+ 0 => array(
296
+ 'type' => 'text',
297
+ 'text' => '<p style="background-color: #ececeb; line-height: 1.3;"><span style="font-weight: 600;"><span style="font-size: 12px; text-align: center;">Add your postal address here.</span></span></p>',
298
+ ),
299
+ ),
300
+ ),
301
+ 1 => array(
302
+ 'type' => 'container',
303
+ 'orientation' => 'vertical',
304
+ 'styles' => array(
305
+ 'block' => array(
306
+ 'backgroundColor' => 'transparent',
307
+ ),
308
+ ),
309
+ 'blocks' => array(
310
+ 0 => array(
311
+ 'type' => 'social',
312
+ 'iconSet' => 'full-symbol-color',
313
+ 'icons' => array(
314
+ 0 => array(
315
+ 'type' => 'socialIcon',
316
+ 'iconType' => 'facebook',
317
+ 'link' => 'http://www.facebook.com',
318
+ 'image' => $this->social_icon_url . '/06-full-symbol-color/Facebook.png',
319
+ 'height' => '32px',
320
+ 'width' => '32px',
321
+ 'text' => 'Facebook',
322
+ ),
323
+ 1 => array(
324
+ 'type' => 'socialIcon',
325
+ 'iconType' => 'twitter',
326
+ 'link' => 'http://www.twitter.com',
327
+ 'image' => $this->social_icon_url . '/06-full-symbol-color/Twitter.png',
328
+ 'height' => '32px',
329
+ 'width' => '32px',
330
+ 'text' => 'Twitter',
331
+ ),
332
+ 2 => array(
333
+ 'type' => 'socialIcon',
334
+ 'iconType' => 'youtube',
335
+ 'link' => 'http://www.youtube.com',
336
+ 'image' => $this->social_icon_url . '/06-full-symbol-color/Youtube.png',
337
+ 'height' => '32px',
338
+ 'width' => '32px',
339
+ 'text' => 'Youtube',
340
+ ),
341
+ 3 => array(
342
+ 'type' => 'socialIcon',
343
+ 'iconType' => 'instagram',
344
+ 'link' => 'http://instagram.com',
345
+ 'image' => $this->social_icon_url . '/06-full-symbol-color/Instagram.png',
346
+ 'height' => '32px',
347
+ 'width' => '32px',
348
+ 'text' => 'Instagram',
349
+ ),
350
+ ),
351
+ ),
352
+ ),
353
+ ),
354
+ 2 => array(
355
+ 'type' => 'container',
356
+ 'orientation' => 'vertical',
357
+ 'styles' => array(
358
+ 'block' => array(
359
+ 'backgroundColor' => 'transparent',
360
+ ),
361
+ ),
362
+ 'blocks' => array(
363
+ 0 => array(
364
+ 'type' => 'text',
365
+ 'text' => '<p style="text-align: right; line-height: 1.3;"><strong><a href="[link:subscription_unsubscribe_url]" style="color: #d42b2b; text-decoration: none; font-size: 12px; text-align: center;">Unsubscribe</a></strong></p>
366
+ <p style="text-align: right; line-height: 1.3;"><strong><a href="[link:subscription_manage_url]" style="color: #d42b2b; text-decoration: none; font-size: 12px; text-align: center;">Manage&nbsp;Subscription</a></strong></p>',
367
+ ),
368
+ ),
369
+ ),
370
+ ),
371
+ ),
372
+ 5 => array(
373
+ 'type' => 'container',
374
+ 'orientation' => 'horizontal',
375
+ 'styles' => array(
376
+ 'block' => array(
377
+ 'backgroundColor' => '#ececeb',
378
+ ),
379
+ ),
380
+ 'blocks' => array(
381
+ 0 => array(
382
+ 'type' => 'container',
383
+ 'orientation' => 'vertical',
384
+ 'styles' => array(
385
+ 'block' => array(
386
+ 'backgroundColor' => 'transparent',
387
+ ),
388
+ ),
389
+ 'blocks' => array(
390
+ 0 => array(
391
+ 'type' => 'spacer',
392
+ 'styles' => array(
393
+ 'block' => array(
394
+ 'backgroundColor' => 'transparent',
395
+ 'height' => '40px',
396
+ ),
397
+ ),
398
+ ),
399
+ ),
400
+ ),
401
+ ),
402
+ ),
403
+ ),
404
+ ),
405
+ 'globalStyles' => array(
406
+ 'text' => array(
407
+ 'fontColor' => '#606060',
408
+ 'fontFamily' => 'Arial',
409
+ 'fontSize' => '16px',
410
+ ),
411
+ 'h1' => array(
412
+ 'fontColor' => '#606060',
413
+ 'fontFamily' => 'Arial',
414
+ 'fontSize' => '30px',
415
+ ),
416
+ 'h2' => array(
417
+ 'fontColor' => '#d42b2b',
418
+ 'fontFamily' => 'Arial',
419
+ 'fontSize' => '24px',
420
+ ),
421
+ 'h3' => array(
422
+ 'fontColor' => '#606060',
423
+ 'fontFamily' => 'Arial',
424
+ 'fontSize' => '20px',
425
+ ),
426
+ 'link' => array(
427
+ 'fontColor' => '#d42b2b',
428
+ 'textDecoration' => 'underline',
429
+ ),
430
+ 'wrapper' => array(
431
+ 'backgroundColor' => '#ffffff',
432
+ ),
433
+ 'body' => array(
434
+ 'backgroundColor' => '#ececeb',
435
+ ),
436
+ ),
437
+ );
438
+ }
439
+
440
+ private function getThumbnail() {
441
+ return $this->template_image_url . '/piece-of-cake.jpg';
442
+ }
443
+
444
+ }
lib/Config/PopulatorData/Templates/Restaurant.php DELETED
@@ -1,413 +0,0 @@
1
- <?php
2
- namespace MailPoet\Config\PopulatorData\Templates;
3
-
4
- if(!defined('ABSPATH')) exit;
5
-
6
- class Restaurant {
7
-
8
- function __construct($assets_url) {
9
- $this->assets_url = $assets_url;
10
- $this->external_template_image_url = '//ps.w.org/mailpoet/assets/newsletter-templates/restaurant';
11
- $this->template_image_url = $this->assets_url . '/img/sample_templates/restaurant';
12
- $this->social_icon_url = $this->assets_url . '/img/newsletter_editor/social-icons';
13
- }
14
-
15
- function get() {
16
- return array(
17
- 'name' => __("Restaurant", 'mailpoet'),
18
- 'description' => __("What's fresh on the menu?", 'mailpoet'),
19
- 'readonly' => 1,
20
- 'thumbnail' => $this->getThumbnail(),
21
- 'body' => json_encode($this->getBody()),
22
- );
23
- }
24
-
25
- private function getBody() {
26
- return array(
27
- "content" => array(
28
- "type" => "container",
29
- "orientation" => "vertical",
30
- "styles" => array(
31
- "block" => array(
32
- "backgroundColor" => "transparent"
33
- )
34
- ),
35
- "blocks" => array(array(
36
- "type" => "container",
37
- "orientation" => "horizontal",
38
- "styles" => array(
39
- "block" => array(
40
- "backgroundColor" => "transparent"
41
- )
42
- ),
43
- "blocks" => array(array(
44
- "type" => "container",
45
- "orientation" => "vertical",
46
- "styles" => array(
47
- "block" => array(
48
- "backgroundColor" => "transparent"
49
- )
50
- ),
51
- "blocks" => array(array(
52
- "type" => "image",
53
- "link" => "",
54
- "src" => $this->external_template_image_url . "/header.jpg",
55
- "alt" => "Joe's Burger Joint",
56
- "fullWidth" => true,
57
- "width" => "660px",
58
- "height" => "100px",
59
- "styles" => array(
60
- "block" => array(
61
- "textAlign" => "center"
62
- )
63
- )
64
- ))
65
- ))
66
- ), array(
67
- "type" => "container",
68
- "orientation" => "horizontal",
69
- "styles" => array(
70
- "block" => array(
71
- "backgroundColor" => "transparent"
72
- )
73
- ),
74
- "blocks" => array(array(
75
- "type" => "container",
76
- "orientation" => "vertical",
77
- "styles" => array(
78
- "block" => array(
79
- "backgroundColor" => "transparent"
80
- )
81
- ),
82
- "blocks" => array(array(
83
- "type" => "image",
84
- "link" => "",
85
- "src" => $this->external_template_image_url . "/burger.jpg",
86
- "alt" => "burger",
87
- "fullWidth" => true,
88
- "width" => "1127px",
89
- "height" => "945px",
90
- "styles" => array(
91
- "block" => array(
92
- "textAlign" => "center"
93
- )
94
- )
95
- ), array(
96
- "type" => "spacer",
97
- "styles" => array(
98
- "block" => array(
99
- "backgroundColor" => "transparent",
100
- "height" => "30px"
101
- )
102
- )
103
- ), array(
104
- "type" => "button",
105
- "text" => "Make a reservation",
106
- "url" => "",
107
- "styles" => array(
108
- "block" => array(
109
- "backgroundColor" => "#d83b3b",
110
- "borderColor" => "#ffffff",
111
- "borderWidth" => "0px",
112
- "borderRadius" => "0px",
113
- "borderStyle" => "solid",
114
- "width" => "225px",
115
- "lineHeight" => "50px",
116
- "fontColor" => "#ffffff",
117
- "fontFamily" => "Verdana",
118
- "fontSize" => "18px",
119
- "fontWeight" => "normal",
120
- "textAlign" => "center"
121
- )
122
- )
123
- ), array(
124
- "type" => "text",
125
- "text" => "<h1 style=\"text-align: center;\"><em>Upgrade! Add these sides</em></h1>"
126
- ))
127
- ))
128
- ), array(
129
- "type" => "container",
130
- "orientation" => "horizontal",
131
- "styles" => array(
132
- "block" => array(
133
- "backgroundColor" => "transparent"
134
- )
135
- ),
136
- "blocks" => array(array(
137
- "type" => "container",
138
- "orientation" => "vertical",
139
- "styles" => array(
140
- "block" => array(
141
- "backgroundColor" => "transparent"
142
- )
143
- ),
144
- "blocks" => array(array(
145
- "type" => "image",
146
- "link" => "",
147
- "src" => $this->external_template_image_url . "/boyga-1329911-639x852.jpg",
148
- "alt" => "boyga-1329911-639x852",
149
- "fullWidth" => false,
150
- "width" => "639px",
151
- "height" => "852px",
152
- "styles" => array(
153
- "block" => array(
154
- "textAlign" => "center"
155
- )
156
- )
157
- ), array(
158
- "type" => "text",
159
- "text" => "<blockquote>\n<p>These onion rings have the perfect crispy batter! - Hayley King, Daily News</p>\n</blockquote>"
160
- ))
161
- ), array(
162
- "type" => "container",
163
- "orientation" => "vertical",
164
- "styles" => array(
165
- "block" => array(
166
- "backgroundColor" => "transparent"
167
- )
168
- ),
169
- "blocks" => array(array(
170
- "type" => "image",
171
- "link" => "",
172
- "src" => $this->external_template_image_url . "/macaroni-w-salad-1323787.jpg",
173
- "alt" => "Macaroni salad",
174
- "fullWidth" => false,
175
- "width" => "600px",
176
- "height" => "800px",
177
- "styles" => array(
178
- "block" => array(
179
- "textAlign" => "center"
180
- )
181
- )
182
- ), array(
183
- "type" => "text",
184
- "text" => "<blockquote>\n<p>NEW! Ultimate Mac &amp; Cheese Salad. Available at all locations</p>\n</blockquote>"
185
- ))
186
- ))
187
- ), array(
188
- "type" => "container",
189
- "orientation" => "horizontal",
190
- "styles" => array(
191
- "block" => array(
192
- "backgroundColor" => "transparent"
193
- )
194
- ),
195
- "blocks" => array(array(
196
- "type" => "container",
197
- "orientation" => "vertical",
198
- "styles" => array(
199
- "block" => array(
200
- "backgroundColor" => "transparent"
201
- )
202
- ),
203
- "blocks" => array(array(
204
- "type" => "divider",
205
- "styles" => array(
206
- "block" => array(
207
- "backgroundColor" => "transparent",
208
- "padding" => "29px",
209
- "borderStyle" => "dashed",
210
- "borderWidth" => "3px",
211
- "borderColor" => "#aaaaaa"
212
- )
213
- )
214
- ))
215
- ))
216
- ), array(
217
- "type" => "container",
218
- "orientation" => "horizontal",
219
- "styles" => array(
220
- "block" => array(
221
- "backgroundColor" => "#e0e0e0"
222
- )
223
- ),
224
- "blocks" => array(array(
225
- "type" => "container",
226
- "orientation" => "vertical",
227
- "styles" => array(
228
- "block" => array(
229
- "backgroundColor" => "transparent"
230
- )
231
- ),
232
- "blocks" => array(array(
233
- "type" => "text",
234
- "text" => "<h2 style=\"text-align: center;\">Find us at these locations</h2>"
235
- ))
236
- ))
237
- ), array(
238
- "type" => "container",
239
- "orientation" => "horizontal",
240
- "styles" => array(
241
- "block" => array(
242
- "backgroundColor" => "#e0e0e0"
243
- )
244
- ),
245
- "blocks" => array(array(
246
- "type" => "container",
247
- "orientation" => "vertical",
248
- "styles" => array(
249
- "block" => array(
250
- "backgroundColor" => "transparent"
251
- )
252
- ),
253
- "blocks" => array(array(
254
- "type" => "text",
255
- "text" => "<h3><span style=\"text-decoration: underline;\"><em>Denver</em></span></h3>\n<p>1263 Schoville Street</p>\n<p>53355 DENVER</p>\n<p>CO</p>"
256
- ))
257
- ), array(
258
- "type" => "container",
259
- "orientation" => "vertical",
260
- "styles" => array(
261
- "block" => array(
262
- "backgroundColor" => "transparent"
263
- )
264
- ),
265
- "blocks" => array(array(
266
- "type" => "text",
267
- "text" => "<h3><span style=\"text-decoration: underline;\"><em>Fort Collins</em></span></h3>\n<p><em></em>157 Maine Street</p>\n<p>86432 FORT COLLINS<br />CO</p>\n<p></p>"
268
- ))
269
- ), array(
270
- "type" => "container",
271
- "orientation" => "vertical",
272
- "styles" => array(
273
- "block" => array(
274
- "backgroundColor" => "transparent"
275
- )
276
- ),
277
- "blocks" => array(array(
278
- "type" => "text",
279
- "text" => "<h3><span style=\"text-decoration: underline;\"><em>Pueblo</em></span></h3>\n<p><em></em>5390 York Avenue</p>\n<p>64297 Pueblo</p>\n<p>CO</p>"
280
- ))
281
- ))
282
- ), array(
283
- "type" => "container",
284
- "orientation" => "horizontal",
285
- "styles" => array(
286
- "block" => array(
287
- "backgroundColor" => "transparent"
288
- )
289
- ),
290
- "blocks" => array(array(
291
- "type" => "container",
292
- "orientation" => "vertical",
293
- "styles" => array(
294
- "block" => array(
295
- "backgroundColor" => "transparent"
296
- )
297
- ),
298
- "blocks" => array(array(
299
- "type" => "spacer",
300
- "styles" => array(
301
- "block" => array(
302
- "backgroundColor" => "transparent",
303
- "height" => "30px"
304
- )
305
- )
306
- ), array(
307
- "type" => "social",
308
- "iconSet" => "full-symbol-black",
309
- "icons" => array(array(
310
- "type" => "socialIcon",
311
- "iconType" => "facebook",
312
- "link" => "",
313
- "image" => $this->social_icon_url . "/07-full-symbol-black/Facebook.png",
314
- "height" => "32px",
315
- "width" => "32px",
316
- "text" => "Facebook"
317
- ), array(
318
- "type" => "socialIcon",
319
- "iconType" => "twitter",
320
- "link" => "",
321
- "image" => $this->social_icon_url . "/07-full-symbol-black/Twitter.png",
322
- "height" => "32px",
323
- "width" => "32px",
324
- "text" => "Twitter"
325
- ), array(
326
- "type" => "socialIcon",
327
- "iconType" => "instagram",
328
- "link" => "",
329
- "image" => $this->social_icon_url . "/07-full-symbol-black/Instagram.png",
330
- "height" => "32px",
331
- "width" => "32px",
332
- "text" => "Instagram"
333
- ))
334
- ), array(
335
- "type" => "header",
336
- "text" => "<p><a href=\"[link:newsletter_view_in_browser_url]\">View this email in your web browser</a></p>",
337
- "styles" => array(
338
- "block" => array(
339
- "backgroundColor" => "transparent"
340
- ),
341
- "text" => array(
342
- "fontColor" => "#222222",
343
- "fontFamily" => "Verdana",
344
- "fontSize" => "12px",
345
- "textAlign" => "center"
346
- ),
347
- "link" => array(
348
- "fontColor" => "#d83b3b",
349
- "textDecoration" => "underline"
350
- )
351
- )
352
- ), array(
353
- "type" => "footer",
354
- "text" => "<p><a href=\"[link:subscription_unsubscribe_url]\">Unsubscribe</a> | <a href=\"[link:subscription_manage_url]\">Manage subscription</a><br />Address: Colorado</p>",
355
- "styles" => array(
356
- "block" => array(
357
- "backgroundColor" => "transparent"
358
- ),
359
- "text" => array(
360
- "fontColor" => "#222222",
361
- "fontFamily" => "Verdana",
362
- "fontSize" => "12px",
363
- "textAlign" => "center"
364
- ),
365
- "link" => array(
366
- "fontColor" => "#d83b3b",
367
- "textDecoration" => "none"
368
- )
369
- )
370
- ))
371
- ))
372
- ))
373
- ),
374
- "globalStyles" => array(
375
- "text" => array(
376
- "fontColor" => "#434343",
377
- "fontFamily" => "Tahoma",
378
- "fontSize" => "16px"
379
- ),
380
- "h1" => array(
381
- "fontColor" => "#222222",
382
- "fontFamily" => "Verdana",
383
- "fontSize" => "24px"
384
- ),
385
- "h2" => array(
386
- "fontColor" => "#222222",
387
- "fontFamily" => "Verdana",
388
- "fontSize" => "22px"
389
- ),
390
- "h3" => array(
391
- "fontColor" => "#222222",
392
- "fontFamily" => "Verdana",
393
- "fontSize" => "20px"
394
- ),
395
- "link" => array(
396
- "fontColor" => "#21759B",
397
- "textDecoration" => "underline"
398
- ),
399
- "wrapper" => array(
400
- "backgroundColor" => "#f0f0f0"
401
- ),
402
- "body" => array(
403
- "backgroundColor" => "#ffffff"
404
- )
405
- )
406
- );
407
- }
408
-
409
- private function getThumbnail() {
410
- return $this->external_template_image_url . '/screenshot.jpg';
411
- }
412
-
413
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
lib/Config/PopulatorData/Templates/ScienceWeekly.php ADDED
@@ -0,0 +1,677 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace MailPoet\Config\PopulatorData\Templates;
4
+
5
+ class ScienceWeekly {
6
+
7
+ private $template_image_url;
8
+ private $social_icon_url;
9
+
10
+ function __construct($assets_url) {
11
+ $this->template_image_url = '//ps.w.org/mailpoet/assets/newsletter-templates/science_weekly';
12
+ $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons';
13
+ }
14
+
15
+ function get() {
16
+ return array(
17
+ 'name' => __("Science Weekly", 'mailpoet'),
18
+ 'description' => __("The right chemistry to send your weekly posts.", 'mailpoet'),
19
+ 'readonly' => 1,
20
+ 'thumbnail' => $this->getThumbnail(),
21
+ 'body' => json_encode($this->getBody()),
22
+ );
23
+ }
24
+
25
+ private function getBody() {
26
+ return array(
27
+ 'content' => array(
28
+ 'type' => 'container',
29
+ 'orientation' => 'vertical',
30
+ 'styles' => array(
31
+ 'block' => array(
32
+ 'backgroundColor' => 'transparent',
33
+ ),
34
+ ),
35
+ 'blocks' => array(
36
+ 0 => array(
37
+ 'type' => 'container',
38
+ 'orientation' => 'horizontal',
39
+ 'styles' => array(
40
+ 'block' => array(
41
+ 'backgroundColor' => '#ffffff',
42
+ ),
43
+ ),
44
+ 'blocks' => array(
45
+ 0 => array(
46
+ 'type' => 'container',
47
+ 'orientation' => 'vertical',
48
+ 'styles' => array(
49
+ 'block' => array(
50
+ 'backgroundColor' => 'transparent',
51
+ ),
52
+ ),
53
+ 'blocks' => array(
54
+ 0 => array(
55
+ 'type' => 'image',
56
+ 'link' => '',
57
+ 'src' => $this->template_image_url . '/Science-Logo.png',
58
+ 'alt' => 'Science-Logo',
59
+ 'fullWidth' => true,
60
+ 'width' => '1280px',
61
+ 'height' => '300px',
62
+ 'styles' => array(
63
+ 'block' => array(
64
+ 'textAlign' => 'center',
65
+ ),
66
+ ),
67
+ ),
68
+ 1 => array(
69
+ 'type' => 'image',
70
+ 'link' => '',
71
+ 'src' => $this->template_image_url . '/Health-Mag-Title-2.png',
72
+ 'alt' => 'Health-Mag-Title-2',
73
+ 'fullWidth' => true,
74
+ 'width' => '1280px',
75
+ 'height' => '300px',
76
+ 'styles' => array(
77
+ 'block' => array(
78
+ 'textAlign' => 'center',
79
+ ),
80
+ ),
81
+ ),
82
+ ),
83
+ ),
84
+ ),
85
+ ),
86
+ 1 => array(
87
+ 'type' => 'container',
88
+ 'orientation' => 'horizontal',
89
+ 'styles' => array(
90
+ 'block' => array(
91
+ 'backgroundColor' => '#b1b6d1',
92
+ ),
93
+ ),
94
+ 'blocks' => array(
95
+ 0 => array(
96
+ 'type' => 'container',
97
+ 'orientation' => 'vertical',
98
+ 'styles' => array(
99
+ 'block' => array(
100
+ 'backgroundColor' => 'transparent',
101
+ ),
102
+ ),
103
+ 'blocks' => array(
104
+ 0 => array(
105
+ 'type' => 'text',
106
+ 'text' => '<p style="text-align: center; font-size: 12px;"><span style="color: #ffffff;">Display problems?&nbsp;<a href="[link:newsletter_view_in_browser_url]" style="color: #ffffff;">Open this email in your web browser.</a></span></p>',
107
+ ),
108
+ ),
109
+ ),
110
+ ),
111
+ ),
112
+ 2 => array(
113
+ 'type' => 'container',
114
+ 'orientation' => 'horizontal',
115
+ 'styles' => array(
116
+ 'block' => array(
117
+ 'backgroundColor' => 'transparent',
118
+ ),
119
+ ),
120
+ 'blocks' => array(
121
+ 0 => array(
122
+ 'type' => 'container',
123
+ 'orientation' => 'vertical',
124
+ 'styles' => array(
125
+ 'block' => array(
126
+ 'backgroundColor' => 'transparent',
127
+ ),
128
+ ),
129
+ 'blocks' => array(
130
+ 0 => array(
131
+ 'type' => 'spacer',
132
+ 'styles' => array(
133
+ 'block' => array(
134
+ 'backgroundColor' => '#b1b6d1',
135
+ 'height' => '20px',
136
+ ),
137
+ ),
138
+ ),
139
+ ),
140
+ ),
141
+ ),
142
+ ),
143
+ 3 => array(
144
+ 'type' => 'container',
145
+ 'orientation' => 'horizontal',
146
+ 'styles' => array(
147
+ 'block' => array(
148
+ 'backgroundColor' => '#ffffff',
149
+ ),
150
+ ),
151
+ 'blocks' => array(
152
+ 0 => array(
153
+ 'type' => 'container',
154
+ 'orientation' => 'vertical',
155
+ 'styles' => array(
156
+ 'block' => array(
157
+ 'backgroundColor' => 'transparent',
158
+ ),
159
+ ),
160
+ 'blocks' => array(
161
+ 0 => array(
162
+ 'type' => 'spacer',
163
+ 'styles' => array(
164
+ 'block' => array(
165
+ 'backgroundColor' => 'transparent',
166
+ 'height' => '20px',
167
+ ),
168
+ ),
169
+ ),
170
+ 1 => array(
171
+ 'type' => 'automatedLatestContent',
172
+ 'amount' => '2',
173
+ 'contentType' => 'post',
174
+ 'terms' => array(),
175
+ 'inclusionType' => 'include',
176
+ 'displayType' => 'excerpt',
177
+ 'titleFormat' => 'h1',
178
+ 'titleAlignment' => 'left',
179
+ 'titleIsLink' => false,
180
+ 'imageFullWidth' => false,
181
+ 'featuredImagePosition' => 'belowTitle',
182
+ 'showAuthor' => 'no',
183
+ 'authorPrecededBy' => 'Author:',
184
+ 'showCategories' => 'no',
185
+ 'categoriesPrecededBy' => 'Categories:',
186
+ 'readMoreType' => 'button',
187
+ 'readMoreText' => 'Read more',
188
+ 'readMoreButton' => array(
189
+ 'type' => 'button',
190
+ 'text' => 'Read more',
191
+ 'url' => '[postLink]',
192
+ 'styles' => array(
193
+ 'block' => array(
194
+ 'backgroundColor' => '#2b2d37',
195
+ 'borderColor' => '#112d31',
196
+ 'borderWidth' => '1px',
197
+ 'borderRadius' => '21px',
198
+ 'borderStyle' => 'solid',
199
+ 'width' => '114px',
200
+ 'lineHeight' => '33px',
201
+ 'fontColor' => '#ffffff',
202
+ 'fontFamily' => 'Arial',
203
+ 'fontSize' => '16px',
204
+ 'fontWeight' => 'normal',
205
+ 'textAlign' => 'left',
206
+ ),
207
+ ),
208
+ ),
209
+ 'sortBy' => 'newest',
210
+ 'showDivider' => true,
211
+ 'divider' => array(
212
+ 'type' => 'divider',
213
+ 'styles' => array(
214
+ 'block' => array(
215
+ 'backgroundColor' => 'transparent',
216
+ 'padding' => '13px',
217
+ 'borderStyle' => 'solid',
218
+ 'borderWidth' => '3px',
219
+ 'borderColor' => '#aaaaaa',
220
+ ),
221
+ ),
222
+ ),
223
+ 'backgroundColor' => '#ffffff',
224
+ 'backgroundColorAlternate' => '#eeeeee',
225
+ ),
226
+ ),
227
+ ),
228
+ ),
229
+ ),
230
+ 4 => array(
231
+ 'type' => 'container',
232
+ 'orientation' => 'horizontal',
233
+ 'styles' => array(
234
+ 'block' => array(
235
+ 'backgroundColor' => 'transparent',
236
+ ),
237
+ ),
238
+ 'blocks' => array(
239
+ 0 => array(
240
+ 'type' => 'container',
241
+ 'orientation' => 'vertical',
242
+ 'styles' => array(
243
+ 'block' => array(
244
+ 'backgroundColor' => 'transparent',
245
+ ),
246
+ ),
247
+ 'blocks' => array(
248
+ 0 => array(
249
+ 'type' => 'spacer',
250
+ 'styles' => array(
251
+ 'block' => array(
252
+ 'backgroundColor' => '#ffffff',
253
+ 'height' => '30px',
254
+ ),
255
+ ),
256
+ ),
257
+ 1 => array(
258
+ 'type' => 'spacer',
259
+ 'styles' => array(
260
+ 'block' => array(
261
+ 'backgroundColor' => '#b1b6d1',
262
+ 'height' => '20px',
263
+ ),
264
+ ),
265
+ ),
266
+ 2 => array(
267
+ 'type' => 'image',
268
+ 'link' => '',
269
+ 'src' => $this->template_image_url . '/Health-Mag-End-1.png',
270
+ 'alt' => 'Health-Mag-End',
271
+ 'fullWidth' => true,
272
+ 'width' => '1280px',
273
+ 'height' => '50px',
274
+ 'styles' => array(
275
+ 'block' => array(
276
+ 'textAlign' => 'center',
277
+ ),
278
+ ),
279
+ ),
280
+ 3 => array(
281
+ 'type' => 'spacer',
282
+ 'styles' => array(
283
+ 'block' => array(
284
+ 'backgroundColor' => '#2b2d37',
285
+ 'height' => '35px',
286
+ ),
287
+ ),
288
+ ),
289
+ ),
290
+ ),
291
+ ),
292
+ ),
293
+ 5 => array(
294
+ 'type' => 'container',
295
+ 'orientation' => 'horizontal',
296
+ 'styles' => array(
297
+ 'block' => array(
298
+ 'backgroundColor' => 'transparent',
299
+ ),
300
+ ),
301
+ 'blocks' => array(
302
+ 0 => array(
303
+ 'type' => 'container',
304
+ 'orientation' => 'vertical',
305
+ 'styles' => array(
306
+ 'block' => array(
307
+ 'backgroundColor' => 'transparent',
308
+ ),
309
+ ),
310
+ 'blocks' => array(
311
+ 0 => array(
312
+ 'type' => 'image',
313
+ 'link' => '',
314
+ 'src' => $this->template_image_url . '/Health-Mag-Promo-Start.png',
315
+ 'alt' => 'Health-Mag-Promo-Start',
316
+ 'fullWidth' => true,
317
+ 'width' => '1280px',
318
+ 'height' => '50px',
319
+ 'styles' => array(
320
+ 'block' => array(
321
+ 'textAlign' => 'center',
322
+ ),
323
+ ),
324
+ ),
325
+ ),
326
+ ),
327
+ ),
328
+ ),
329
+ 6 => array(
330
+ 'type' => 'container',
331
+ 'orientation' => 'horizontal',
332
+ 'styles' => array(
333
+ 'block' => array(
334
+ 'backgroundColor' => 'transparent',
335
+ ),
336
+ ),
337
+ 'blocks' => array(
338
+ 0 => array(
339
+ 'type' => 'container',
340
+ 'orientation' => 'vertical',
341
+ 'styles' => array(
342
+ 'block' => array(
343
+ 'backgroundColor' => 'transparent',
344
+ ),
345
+ ),
346
+ 'blocks' => array(
347
+ 0 => array(
348
+ 'type' => 'spacer',
349
+ 'styles' => array(
350
+ 'block' => array(
351
+ 'backgroundColor' => 'transparent',
352
+ 'height' => '50px',
353
+ ),
354
+ ),
355
+ ),
356
+ 1 => array(
357
+ 'type' => 'text',
358
+ 'text' => '<h2><strong>Download our app!</strong></h2>
359
+ <p><span>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed in odio dui. Duis et dolor nec erat dictum laoreet. Morbi dapibus turpis id eros viverra tempor. </span></p>
360
+ <p><span></span></p>
361
+ <p><span>Fusce et diam ac sapien posuere luctus. Etiam in vehicula metus, ac viverra elit. Duis diam lacus, molestie vel enim non, rutrum placerat massa. Suspendisse a elit tincidunt, egestas lacus at, maximus diam. </span></p>
362
+ <p><span></span></p>',
363
+ ),
364
+ 2 => array(
365
+ 'type' => 'button',
366
+ 'text' => 'Download Now',
367
+ 'url' => '',
368
+ 'styles' => array(
369
+ 'block' => array(
370
+ 'backgroundColor' => '#2b2d37',
371
+ 'borderColor' => '#2b2d37',
372
+ 'borderWidth' => '1px',
373
+ 'borderRadius' => '40px',
374
+ 'borderStyle' => 'solid',
375
+ 'width' => '144px',
376
+ 'lineHeight' => '40px',
377
+ 'fontColor' => '#ffffff',
378
+ 'fontFamily' => 'Arial',
379
+ 'fontSize' => '16px',
380
+ 'fontWeight' => 'normal',
381
+ 'textAlign' => 'left',
382
+ ),
383
+ ),
384
+ ),
385
+ ),
386
+ ),
387
+ 1 => array(
388
+ 'type' => 'container',
389
+ 'orientation' => 'vertical',
390
+ 'styles' => array(
391
+ 'block' => array(
392
+ 'backgroundColor' => 'transparent',
393
+ ),
394
+ ),
395
+ 'blocks' => array(
396
+ 0 => array(
397
+ 'type' => 'image',
398
+ 'link' => '',
399
+ 'src' => $this->template_image_url . '/Health-Mag-Phone.png',
400
+ 'alt' => 'Health-Mag-Phone',
401
+ 'fullWidth' => false,
402
+ 'width' => '400px',
403
+ 'height' => '573px',
404
+ 'styles' => array(
405
+ 'block' => array(
406
+ 'textAlign' => 'center',
407
+ ),
408
+ ),
409
+ ),
410
+ ),
411
+ ),
412
+ ),
413
+ ),
414
+ 7 => array(
415
+ 'type' => 'container',
416
+ 'orientation' => 'horizontal',
417
+ 'styles' => array(
418
+ 'block' => array(
419
+ 'backgroundColor' => 'transparent',
420
+ ),
421
+ ),
422
+ 'blocks' => array(
423
+ 0 => array(
424
+ 'type' => 'container',
425
+ 'orientation' => 'vertical',
426
+ 'styles' => array(
427
+ 'block' => array(
428
+ 'backgroundColor' => 'transparent',
429
+ ),
430
+ ),
431
+ 'blocks' => array(
432
+ 0 => array(
433
+ 'type' => 'image',
434
+ 'link' => '',
435
+ 'src' => $this->template_image_url . '/Health-Mag-Promo-End.png',
436
+ 'alt' => 'Health-Mag-Promo-End',
437
+ 'fullWidth' => true,
438
+ 'width' => '1280px',
439
+ 'height' => '50px',
440
+ 'styles' => array(
441
+ 'block' => array(
442
+ 'textAlign' => 'center',
443
+ ),
444
+ ),
445
+ ),
446
+ ),
447
+ ),
448
+ ),
449
+ ),
450
+ 8 => array(
451
+ 'type' => 'container',
452
+ 'orientation' => 'horizontal',
453
+ 'styles' => array(
454
+ 'block' => array(
455
+ 'backgroundColor' => 'transparent',
456
+ ),
457
+ ),
458
+ 'blocks' => array(
459
+ 0 => array(
460
+ 'type' => 'container',
461
+ 'orientation' => 'vertical',
462
+ 'styles' => array(
463
+ 'block' => array(
464
+ 'backgroundColor' => 'transparent',
465
+ ),
466
+ ),
467
+ 'blocks' => array(
468
+ 0 => array(
469
+ 'type' => 'spacer',
470
+ 'styles' => array(
471
+ 'block' => array(
472
+ 'backgroundColor' => '#2b2d37',
473
+ 'height' => '35px',
474
+ ),
475
+ ),
476
+ ),
477
+ 1 => array(
478
+ 'type' => 'image',
479
+ 'link' => '',
480
+ 'src' => $this->template_image_url . '/Health-Mag-Promo-Start.png',
481
+ 'alt' => 'Health-Mag-Promo-Start',
482
+ 'fullWidth' => true,
483
+ 'width' => '1280px',
484
+ 'height' => '50px',
485
+ 'styles' => array(
486
+ 'block' => array(
487
+ 'textAlign' => 'center',
488
+ ),
489
+ ),
490
+ ),
491
+ ),
492
+ ),
493
+ ),
494
+ ),
495
+ 9 => array(
496
+ 'type' => 'container',
497
+ 'orientation' => 'horizontal',
498
+ 'styles' => array(
499
+ 'block' => array(
500
+ 'backgroundColor' => 'transparent',
501
+ ),
502
+ ),
503
+ 'blocks' => array(
504
+ 0 => array(
505
+ 'type' => 'container',
506
+ 'orientation' => 'vertical',
507
+ 'styles' => array(
508
+ 'block' => array(
509
+ 'backgroundColor' => 'transparent',
510
+ ),
511
+ ),
512
+ 'blocks' => array(
513
+ 0 => array(
514
+ 'type' => 'text',
515
+ 'text' => '<h3 style="text-align: center;">Keep In Touch With Us</h3>',
516
+ ),
517
+ 1 => array(
518
+ 'type' => 'social',
519
+ 'iconSet' => 'circles',
520
+ 'icons' => array(
521
+ 0 => array(
522
+ 'type' => 'socialIcon',
523
+ 'iconType' => 'facebook',
524
+ 'link' => 'http://www.facebook.com',
525
+ 'image' => $this->social_icon_url . '/03-circles/Facebook.png',
526
+ 'height' => '32px',
527
+ 'width' => '32px',
528
+ 'text' => 'Facebook',
529
+ ),
530
+ 1 => array(
531
+ 'type' => 'socialIcon',
532
+ 'iconType' => 'twitter',
533
+ 'link' => 'http://www.twitter.com',
534
+ 'image' => $this->social_icon_url . '/03-circles/Twitter.png',
535
+ 'height' => '32px',
536
+ 'width' => '32px',
537
+ 'text' => 'Twitter',
538
+ ),
539
+ 2 => array(
540
+ 'type' => 'socialIcon',
541
+ 'iconType' => 'youtube',
542
+ 'link' => 'http://www.youtube.com',
543
+ 'image' => $this->social_icon_url . '/03-circles/Youtube.png',
544
+ 'height' => '32px',
545
+ 'width' => '32px',
546
+ 'text' => 'Youtube',
547
+ ),
548
+ 3 => array(
549
+ 'type' => 'socialIcon',
550
+ 'iconType' => 'instagram',
551
+ 'link' => 'http://instagram.com',
552
+ 'image' => $this->social_icon_url . '/03-circles/Instagram.png',
553
+ 'height' => '32px',
554
+ 'width' => '32px',
555
+ 'text' => 'Instagram',
556
+ ),
557
+ ),
558
+ ),
559
+ ),
560
+ ),
561
+ ),
562
+ ),
563
+ 10 => array(
564
+ 'type' => 'container',
565
+ 'orientation' => 'horizontal',
566
+ 'styles' => array(
567
+ 'block' => array(
568
+ 'backgroundColor' => 'transparent',
569
+ ),
570
+ ),
571
+ 'blocks' => array(
572
+ 0 => array(
573
+ 'type' => 'container',
574
+ 'orientation' => 'vertical',
575
+ 'styles' => array(
576
+ 'block' => array(
577
+ 'backgroundColor' => 'transparent',
578
+ ),
579
+ ),
580
+ 'blocks' => array(
581
+ 0 => array(
582
+ 'type' => 'image',
583
+ 'link' => '',
584
+ 'src' => $this->template_image_url . '/Health-Mag-Promo-End.png',
585
+ 'alt' => 'Health-Mag-Promo-End',
586
+ 'fullWidth' => true,
587
+ 'width' => '1280px',
588
+ 'height' => '50px',
589
+ 'styles' => array(
590
+ 'block' => array(
591
+ 'textAlign' => 'center',
592
+ ),
593
+ ),
594
+ ),
595
+ 1 => array(
596
+ 'type' => 'spacer',
597
+ 'styles' => array(
598
+ 'block' => array(
599
+ 'backgroundColor' => '#2b2d37',
600
+ 'height' => '26px',
601
+ ),
602
+ ),
603
+ ),
604
+ 2 => array(
605
+ 'type' => 'footer',
606
+ 'text' => '<p><span style="color: #b1b6d1;"><a href="[link:subscription_unsubscribe_url]" style="color: #b1b6d1;">Unsubscribe</a> | <a href="[link:subscription_manage_url]" style="color: #b1b6d1;">Manage subscription</a></span><br />Add your postal address here!</p>',
607
+ 'styles' => array(
608
+ 'block' => array(
609
+ 'backgroundColor' => '#2b2d37',
610
+ ),
611
+ 'text' => array(
612
+ 'fontColor' => '#d6d6d6',
613
+ 'fontFamily' => 'Arial',
614
+ 'fontSize' => '12px',
615
+ 'textAlign' => 'center',
616
+ ),
617
+ 'link' => array(
618
+ 'fontColor' => '#6cb7d4',
619
+ 'textDecoration' => 'none',
620
+ ),
621
+ ),
622
+ ),
623
+ 3 => array(
624
+ 'type' => 'spacer',
625
+ 'styles' => array(
626
+ 'block' => array(
627
+ 'backgroundColor' => '#2b2d37',
628
+ 'height' => '40px',
629
+ ),
630
+ ),
631
+ ),
632
+ ),
633
+ ),
634
+ ),
635
+ ),
636
+ ),
637
+ ),
638
+ 'globalStyles' => array(
639
+ 'text' => array(
640
+ 'fontColor' => '#000000',
641
+ 'fontFamily' => 'Arial',
642
+ 'fontSize' => '15px',
643
+ ),
644
+ 'h1' => array(
645
+ 'fontColor' => '#111111',
646
+ 'fontFamily' => 'Arial',
647
+ 'fontSize' => '26px',
648
+ ),
649
+ 'h2' => array(
650
+ 'fontColor' => '#222222',
651
+ 'fontFamily' => 'Arial',
652
+ 'fontSize' => '22px',
653
+ ),
654
+ 'h3' => array(
655
+ 'fontColor' => '#333333',
656
+ 'fontFamily' => 'Arial',
657
+ 'fontSize' => '20px',
658
+ ),
659
+ 'link' => array(
660
+ 'fontColor' => '#21759B',
661
+ 'textDecoration' => 'underline',
662
+ ),
663
+ 'wrapper' => array(
664
+ 'backgroundColor' => '#ffffff',
665
+ ),
666
+ 'body' => array(
667
+ 'backgroundColor' => '#2b2d37',
668
+ ),
669
+ ),
670
+ );
671
+ }
672
+
673
+ private function getThumbnail() {
674
+ return $this->template_image_url . '/science-weekly.jpg';
675
+ }
676
+
677
+ }
lib/Config/PopulatorData/Templates/Shoes.php ADDED
@@ -0,0 +1,579 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace MailPoet\Config\PopulatorData\Templates;
4
+
5
+ class Shoes {
6
+
7
+ private $template_image_url;
8
+ private $social_icon_url;
9
+
10
+ function __construct($assets_url) {
11
+ $this->template_image_url = '//ps.w.org/mailpoet/assets/newsletter-templates/shoes';
12
+ $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons';
13
+ }
14
+
15
+ function get() {
16
+ return array(
17
+ 'name' => __("Shoes", 'mailpoet'),
18
+ 'description' => __("Nothing like a pair that fits perfectly.", 'mailpoet'),
19
+ 'readonly' => 1,
20
+ 'thumbnail' => $this->getThumbnail(),
21
+ 'body' => json_encode($this->getBody()),
22
+ );
23
+ }
24
+
25
+ private function getBody() {
26
+ return array(
27
+ 'content' => array(
28
+ 'type' => 'container',
29
+ 'orientation' => 'vertical',
30
+ 'styles' => array(
31
+ 'block' => array(
32
+ 'backgroundColor' => 'transparent',
33
+ ),
34
+ ),
35
+ 'blocks' => array(
36
+ 0 => array(
37
+ 'type' => 'container',
38
+ 'orientation' => 'horizontal',
39
+ 'styles' => array(
40
+ 'block' => array(
41
+ 'backgroundColor' => '#f6f6f6',
42
+ ),
43
+ ),
44
+ 'blocks' => array(
45
+ 0 => array(
46
+ 'type' => 'container',
47
+ 'orientation' => 'vertical',
48
+ 'styles' => array(
49
+ 'block' => array(
50
+ 'backgroundColor' => 'transparent',
51
+ ),
52
+ ),
53
+ 'blocks' => array(
54
+ 0 => array(
55
+ 'type' => 'image',
56
+ 'link' => '',
57
+ 'src' => $this->template_image_url . '/Retail-Shoes-Logo.png',
58
+ 'alt' => 'Retail-Shoes-Logo',
59
+ 'fullWidth' => true,
60
+ 'width' => '1280px',
61
+ 'height' => '220px',
62
+ 'styles' => array(
63
+ 'block' => array(
64
+ 'textAlign' => 'center',
65
+ ),
66
+ ),
67
+ ),
68
+ ),
69
+ ),
70
+ ),
71
+ ),
72
+ 1 => array(
73
+ 'type' => 'container',
74
+ 'orientation' => 'horizontal',
75
+ 'styles' => array(
76
+ 'block' => array(
77
+ 'backgroundColor' => '#ffffff',
78
+ ),
79
+ ),
80
+ 'blocks' => array(
81
+ 0 => array(
82
+ 'type' => 'container',
83
+ 'orientation' => 'vertical',
84
+ 'styles' => array(
85
+ 'block' => array(
86
+ 'backgroundColor' => 'transparent',
87
+ ),
88
+ ),
89
+ 'blocks' => array(
90
+ 0 => array(
91
+ 'type' => 'image',
92
+ 'link' => '',
93
+ 'src' => $this->template_image_url . '/Retail-Shoes-Header.jpg',
94
+ 'alt' => 'Retail-Shoes-Header',
95
+ 'fullWidth' => true,
96
+ 'width' => '1280px',
97
+ 'height' => '700px',
98
+ 'styles' => array(
99
+ 'block' => array(
100
+ 'textAlign' => 'center',
101
+ ),
102
+ ),
103
+ ),
104
+ ),
105
+ ),
106
+ ),
107
+ ),
108
+ 2 => array(
109
+ 'type' => 'container',
110
+ 'orientation' => 'horizontal',
111
+ 'styles' => array(
112
+ 'block' => array(
113
+ 'backgroundColor' => '#f1b512',
114
+ ),
115
+ ),
116
+ 'blocks' => array(
117
+ 0 => array(
118
+ 'type' => 'container',
119
+ 'orientation' => 'vertical',
120
+ 'styles' => array(
121
+ 'block' => array(
122
+ 'backgroundColor' => 'transparent',
123
+ ),
124
+ ),
125
+ 'blocks' => array(
126
+ 0 => array(
127
+ 'type' => 'spacer',
128
+ 'styles' => array(
129
+ 'block' => array(
130
+ 'backgroundColor' => 'transparent',
131
+ 'height' => '20px',
132
+ ),
133
+ ),
134
+ ),
135
+ 1 => array(
136
+ 'type' => 'text',
137
+ 'text' => '<h2 style="text-align: center;"><span style="color: #614a0d;">Our New Range</span></h2>
138
+ <p style="text-align: center;"><span style="color: #614a0d;">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque cursus aliquam urna, non ultricies diam sagittis sit amet. Etiam tempus a metus sed tincidunt.</span></p>
139
+ <p style="text-align: center;"><span style="color: #614a0d;">Curabitur fermentum ligula eget lacus aliquam volutpat. Integer sapien neque, laoreet quis lobortis sed, semper eget magna. Suspendisse potentiu.</span></p>',
140
+ ),
141
+ 2 => array(
142
+ 'type' => 'button',
143
+ 'text' => 'Find Out More',
144
+ 'url' => '',
145
+ 'styles' => array(
146
+ 'block' => array(
147
+ 'backgroundColor' => '#41c7bf',
148
+ 'borderColor' => '#28a9a2',
149
+ 'borderWidth' => '2px',
150
+ 'borderRadius' => '5px',
151
+ 'borderStyle' => 'solid',
152
+ 'width' => '160px',
153
+ 'lineHeight' => '40px',
154
+ 'fontColor' => '#ffffff',
155
+ 'fontFamily' => 'Arial',
156
+ 'fontSize' => '16px',
157
+ 'fontWeight' => 'normal',
158
+ 'textAlign' => 'center',
159
+ ),
160
+ ),
161
+ ),
162
+ 3 => array(
163
+ 'type' => 'spacer',
164
+ 'styles' => array(
165
+ 'block' => array(
166
+ 'backgroundColor' => 'transparent',
167
+ 'height' => '30px',
168
+ ),
169
+ ),
170
+ ),
171
+ ),
172
+ ),
173
+ ),
174
+ ),
175
+ 3 => array(
176
+ 'type' => 'container',
177
+ 'orientation' => 'horizontal',
178
+ 'styles' => array(
179
+ 'block' => array(
180
+ 'backgroundColor' => '#36b0a9',
181
+ ),
182
+ ),
183
+ 'blocks' => array(
184
+ 0 => array(
185
+ 'type' => 'container',
186
+ 'orientation' => 'vertical',
187
+ 'styles' => array(
188
+ 'block' => array(
189
+ 'backgroundColor' => 'transparent',
190
+ ),
191
+ ),
192
+ 'blocks' => array(
193
+ 0 => array(
194
+ 'type' => 'spacer',
195
+ 'styles' => array(
196
+ 'block' => array(
197
+ 'backgroundColor' => 'transparent',
198
+ 'height' => '70px',
199
+ ),
200
+ ),
201
+ ),
202
+ 1 => array(
203
+ 'type' => 'text',
204
+ 'text' => '<h2><span style="color: #ffffff;">Handcrafted Shoes</span></h2>
205
+ <p style="font-size: 14px;"><span><span style="color: #ffffff;">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque cursus aliquam urna, non ultricies diam sagittis sit amet. Etiam tempus a metus sed tincidunt. Curabitur fermentum ligula eget lacus aliquam volutpat.</span></span></p>',
206
+ ),
207
+ 2 => array(
208
+ 'type' => 'spacer',
209
+ 'styles' => array(
210
+ 'block' => array(
211
+ 'backgroundColor' => 'transparent',
212
+ 'height' => '40px',
213
+ ),
214
+ ),
215
+ ),
216
+ ),
217
+ ),
218
+ 1 => array(
219
+ 'type' => 'container',
220
+ 'orientation' => 'vertical',
221
+ 'styles' => array(
222
+ 'block' => array(
223
+ 'backgroundColor' => 'transparent',
224
+ ),
225
+ ),
226
+ 'blocks' => array(
227
+ 0 => array(
228
+ 'type' => 'image',
229
+ 'link' => '',
230
+ 'src' => $this->template_image_url . '/Retail-Shoes-Boxes-1.jpg',
231
+ 'alt' => 'Retail-Shoes-Boxes-1',
232
+ 'fullWidth' => true,
233
+ 'width' => '700px',
234
+ 'height' => '700px',
235
+ 'styles' => array(
236
+ 'block' => array(
237
+ 'textAlign' => 'center',
238
+ ),
239
+ ),
240
+ ),
241
+ ),
242
+ ),
243
+ ),
244
+ ),
245
+ 4 => array(
246
+ 'type' => 'container',
247
+ 'orientation' => 'horizontal',
248
+ 'styles' => array(
249
+ 'block' => array(
250
+ 'backgroundColor' => '#36b0a9',
251
+ ),
252
+ ),
253
+ 'blocks' => array(
254
+ 0 => array(
255
+ 'type' => 'container',
256
+ 'orientation' => 'vertical',
257
+ 'styles' => array(
258
+ 'block' => array(
259
+ 'backgroundColor' => 'transparent',
260
+ ),
261
+ ),
262
+ 'blocks' => array(
263
+ 0 => array(
264
+ 'type' => 'image',
265
+ 'link' => '',
266
+ 'src' => $this->template_image_url . '/Retail-Shoes-Boxes-2.jpg',
267
+ 'alt' => 'Retail-Shoes-Boxes-2',
268
+ 'fullWidth' => true,
269
+ 'width' => '700px',
270
+ 'height' => '700px',
271
+ 'styles' => array(
272
+ 'block' => array(
273
+ 'textAlign' => 'center',
274
+ ),
275
+ ),
276
+ ),
277
+ ),
278
+ ),
279
+ 1 => array(
280
+ 'type' => 'container',
281
+ 'orientation' => 'vertical',
282
+ 'styles' => array(
283
+ 'block' => array(
284
+ 'backgroundColor' => 'transparent',
285
+ ),
286
+ ),
287
+ 'blocks' => array(
288
+ 0 => array(
289
+ 'type' => 'spacer',
290
+ 'styles' => array(
291
+ 'block' => array(
292
+ 'backgroundColor' => 'transparent',
293
+ 'height' => '70px',
294
+ ),
295
+ ),
296
+ ),
297
+ 1 => array(
298
+ 'type' => 'text',
299
+ 'text' => '<h2><span style="color: #ffffff;">Perfect For Any Occasion</span></h2>
300
+ <p style="font-size: 14px;"><span><span style="color: #ffffff;">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque cursus aliquam urna, non ultricies diam sagittis sit amet. Etiam tempus a metus sed tincidunt. Curabitur fermentum ligula eget lacus aliquam volutpat.</span></span></p>',
301
+ ),
302
+ 2 => array(
303
+ 'type' => 'spacer',
304
+ 'styles' => array(
305
+ 'block' => array(
306
+ 'backgroundColor' => 'transparent',
307
+ 'height' => '40px',
308
+ ),
309
+ ),
310
+ ),
311
+ ),
312
+ ),
313
+ ),
314
+ ),
315
+ 5 => array(
316
+ 'type' => 'container',
317
+ 'orientation' => 'horizontal',
318
+ 'styles' => array(
319
+ 'block' => array(
320
+ 'backgroundColor' => '#f6f6f6',
321
+ ),
322
+ ),
323
+ 'blocks' => array(
324
+ 0 => array(
325
+ 'type' => 'container',
326
+ 'orientation' => 'vertical',
327
+ 'styles' => array(
328
+ 'block' => array(
329
+ 'backgroundColor' => 'transparent',
330
+ ),
331
+ ),
332
+ 'blocks' => array(
333
+ 0 => array(
334
+ 'type' => 'spacer',
335
+ 'styles' => array(
336
+ 'block' => array(
337
+ 'backgroundColor' => 'transparent',
338
+ 'height' => '40px',
339
+ ),
340
+ ),
341
+ ),
342
+ 1 => array(
343
+ 'type' => 'text',
344
+ 'text' => '<h3 style="text-align: center;"><strong>We\'re open every day!</strong></h3>
345
+ <p style="text-align: center;">Call in any time and we\'ll help you pick the best shoes for any occasion.</p>
346
+ <p style="text-align: center;">If you\'re not happy, just bring them back to us and we\'ll give you a full refund.</p>',
347
+ ),
348
+ 2 => array(
349
+ 'type' => 'button',
350
+ 'text' => 'Check Out Our Website',
351
+ 'url' => '',
352
+ 'styles' => array(
353
+ 'block' => array(
354
+ 'backgroundColor' => '#41c7bf',
355
+ 'borderColor' => '#28a9a2',
356
+ 'borderWidth' => '2px',
357
+ 'borderRadius' => '5px',
358
+ 'borderStyle' => 'solid',
359
+ 'width' => '220px',
360
+ 'lineHeight' => '40px',
361
+ 'fontColor' => '#ffffff',
362
+ 'fontFamily' => 'Arial',
363
+ 'fontSize' => '16px',
364
+ 'fontWeight' => 'normal',
365
+ 'textAlign' => 'center',
366
+ ),
367
+ ),
368
+ ),
369
+ 3 => array(
370
+ 'type' => 'spacer',
371
+ 'styles' => array(
372
+ 'block' => array(
373
+ 'backgroundColor' => 'transparent',
374
+ 'height' => '30px',
375
+ ),
376
+ ),
377
+ ),
378
+ 4 => array(
379
+ 'type' => 'divider',
380
+ 'styles' => array(
381
+ 'block' => array(
382
+ 'backgroundColor' => 'transparent',
383
+ 'padding' => '13px',
384
+ 'borderStyle' => 'solid',
385
+ 'borderWidth' => '2px',
386
+ 'borderColor' => '#d3d3d3',
387
+ ),
388
+ ),
389
+ ),
390
+ 5 => array(
391
+ 'type' => 'spacer',
392
+ 'styles' => array(
393
+ 'block' => array(
394
+ 'backgroundColor' => 'transparent',
395
+ 'height' => '20px',
396
+ ),
397
+ ),
398
+ ),
399
+ ),
400
+ ),
401
+ ),
402
+ ),
403
+ 6 => array(
404
+ 'type' => 'container',
405
+ 'orientation' => 'horizontal',
406
+ 'styles' => array(
407
+ 'block' => array(
408
+ 'backgroundColor' => '#f6f6f6',
409
+ ),
410
+ ),
411
+ 'blocks' => array(
412
+ 0 => array(
413
+ 'type' => 'container',
414
+ 'orientation' => 'vertical',
415
+ 'styles' => array(
416
+ 'block' => array(
417
+ 'backgroundColor' => 'transparent',
418
+ ),
419
+ ),
420
+ 'blocks' => array(
421
+ 0 => array(
422
+ 'type' => 'image',
423
+ 'link' => '',
424
+ 'src' => $this->template_image_url . '/Retail-Shoes-Logo-Footer.png',
425
+ 'alt' => 'Retail-Shoes-Logo-Footer',
426
+ 'fullWidth' => true,
427
+ 'width' => '1280px',
428
+ 'height' => '60px',
429
+ 'styles' => array(
430
+ 'block' => array(
431
+ 'textAlign' => 'center',
432
+ ),
433
+ ),
434
+ ),
435
+ 1 => array(
436
+ 'type' => 'spacer',
437
+ 'styles' => array(
438
+ 'block' => array(
439
+ 'backgroundColor' => 'transparent',
440
+ 'height' => '20px',
441
+ ),
442
+ ),
443
+ ),
444
+ 2 => array(
445
+ 'type' => 'text',
446
+ 'text' => '<p style="text-align: center; font-size: 12px;"><span style="color: #999999;">Address Line 1</span></p>
447
+ <p style="text-align: center; font-size: 12px;"><span style="color: #999999;">Address Line 2</span></p>
448
+ <p style="text-align: center; font-size: 12px;"><span style="color: #999999;">City</span></p>
449
+ <p style="text-align: center; font-size: 12px;"><span style="color: #999999;">Country</span></p>',
450
+ ),
451
+ 3 => array(
452
+ 'type' => 'social',
453
+ 'iconSet' => 'grey',
454
+ 'icons' => array(
455
+ 0 => array(
456
+ 'type' => 'socialIcon',
457
+ 'iconType' => 'facebook',
458
+ 'link' => 'http://www.facebook.com',
459
+ 'image' => $this->social_icon_url . '/02-grey/Facebook.png',
460
+ 'height' => '32px',
461
+ 'width' => '32px',
462
+ 'text' => 'Facebook',
463
+ ),
464
+ 1 => array(
465
+ 'type' => 'socialIcon',
466
+ 'iconType' => 'twitter',
467
+ 'link' => 'http://www.twitter.com',
468
+ 'image' => $this->social_icon_url . '/02-grey/Twitter.png',
469
+ 'height' => '32px',
470
+ 'width' => '32px',
471
+ 'text' => 'Twitter',
472
+ ),
473
+ 2 => array(
474
+ 'type' => 'socialIcon',
475
+ 'iconType' => 'instagram',
476
+ 'link' => 'http://instagram.com',
477
+ 'image' => $this->social_icon_url . '/02-grey/Instagram.png',
478
+ 'height' => '32px',
479
+ 'width' => '32px',
480
+ 'text' => 'Instagram',
481
+ ),
482
+ ),
483
+ ),
484
+ ),
485
+ ),
486
+ ),
487
+ ),
488
+ 7 => array(
489
+ 'type' => 'container',
490
+ 'orientation' => 'horizontal',
491
+ 'styles' => array(
492
+ 'block' => array(
493
+ 'backgroundColor' => '#f6f6f6',
494
+ ),
495
+ ),
496
+ 'blocks' => array(
497
+ 0 => array(
498
+ 'type' => 'container',
499
+ 'orientation' => 'vertical',
500
+ 'styles' => array(
501
+ 'block' => array(
502
+ 'backgroundColor' => 'transparent',
503
+ ),
504
+ ),
505
+ 'blocks' => array(
506
+ 0 => array(
507
+ 'type' => 'footer',
508
+ 'text' => '<p><a href="[link:subscription_unsubscribe_url]">Unsubscribe</a> | <a href="[link:subscription_manage_url]">Manage your subscription</a></p>',
509
+ 'styles' => array(
510
+ 'block' => array(
511
+ 'backgroundColor' => 'transparent',
512
+ ),
513
+ 'text' => array(
514
+ 'fontColor' => '#222222',
515
+ 'fontFamily' => 'Arial',
516
+ 'fontSize' => '12px',
517
+ 'textAlign' => 'center',
518
+ ),
519
+ 'link' => array(
520
+ 'fontColor' => '#41c7bf',
521
+ 'textDecoration' => 'none',
522
+ ),
523
+ ),
524
+ ),
525
+ 1 => array(
526
+ 'type' => 'spacer',
527
+ 'styles' => array(
528
+ 'block' => array(
529
+ 'backgroundColor' => 'transparent',
530
+ 'height' => '40px',
531
+ ),
532
+ ),
533
+ ),
534
+ ),
535
+ ),
536
+ ),
537
+ ),
538
+ ),
539
+ ),
540
+ 'globalStyles' => array(
541
+ 'text' => array(
542
+ 'fontColor' => '#000000',
543
+ 'fontFamily' => 'Arial',
544
+ 'fontSize' => '15px',
545
+ ),
546
+ 'h1' => array(
547
+ 'fontColor' => '#111111',
548
+ 'fontFamily' => 'Arial',
549
+ 'fontSize' => '30px',
550
+ ),
551
+ 'h2' => array(
552
+ 'fontColor' => '#222222',
553
+ 'fontFamily' => 'Arial',
554
+ 'fontSize' => '24px',
555
+ ),
556
+ 'h3' => array(
557
+ 'fontColor' => '#333333',
558
+ 'fontFamily' => 'Arial',
559
+ 'fontSize' => '22px',
560
+ ),
561
+ 'link' => array(
562
+ 'fontColor' => '#21759B',
563
+ 'textDecoration' => 'underline',
564
+ ),
565
+ 'wrapper' => array(
566
+ 'backgroundColor' => '#ffffff',
567
+ ),
568
+ 'body' => array(
569
+ 'backgroundColor' => '#f6f6f6',
570
+ ),
571
+ ),
572
+ );
573
+ }
574
+
575
+ private function getThumbnail() {
576
+ return $this->template_image_url . '/shoes.jpg';
577
+ }
578
+
579
+ }
lib/Config/PopulatorData/Templates/StoreDiscount.php DELETED
@@ -1,406 +0,0 @@
1
- <?php
2
- namespace MailPoet\Config\PopulatorData\Templates;
3
-
4
- if(!defined('ABSPATH')) exit;
5
-
6
- class StoreDiscount {
7
-
8
- function __construct($assets_url) {
9
- $this->assets_url = $assets_url;
10
- $this->external_template_image_url = '//ps.w.org/mailpoet/assets/newsletter-templates/store-discount';
11
- $this->template_image_url = $this->assets_url . '/img/sample_templates/discount';
12
- $this->social_icon_url = $this->assets_url . '/img/newsletter_editor/social-icons';
13
- }
14
-
15
- function get() {
16
- return array(
17
- 'name' => __("Store Discount", 'mailpoet'),
18
- 'description' => __("Store discount email with coupon and shopping suggestions", 'mailpoet'),
19
- 'readonly' => 1,
20
- 'thumbnail' => $this->getThumbnail(),
21
- 'body' => json_encode($this->getBody()),
22
- );
23
- }
24
-
25
- private function getBody() {
26
- return array(
27
- "content" => array(
28
- "type" => "container",
29
- "orientation" => "vertical",
30
- "styles" => array(
31
- "block" => array(
32
- "backgroundColor" => "transparent"
33
- )
34
- ),
35
- "blocks" => array(array(
36
- "type" => "container",
37
- "orientation" => "horizontal",
38
- "styles" => array(
39
- "block" => array(
40
- "backgroundColor" => "transparent"
41
- )
42
- ),
43
- "blocks" => array(array(
44
- "type" => "container",
45
- "orientation" => "vertical",
46
- "styles" => array(
47
- "block" => array(
48
- "backgroundColor" => "transparent"
49
- )
50
- ),
51
- "blocks" => array(array(
52
- "type" => "spacer",
53
- "styles" => array(
54
- "block" => array(
55
- "backgroundColor" => "transparent",
56
- "height" => "20px"
57
- )
58
- )
59
- ), array(
60
- "type" => "image",
61
- "link" => "",
62
- "src" => $this->external_template_image_url . "/bicycle-header3.png",
63
- "alt" => __("bicycle-header3", 'mailpoet'),
64
- "fullWidth" => false,
65
- "width" => "423px",
66
- "height" => "135px",
67
- "styles" => array(
68
- "block" => array(
69
- "textAlign" => "center"
70
- )
71
- )
72
- ), array(
73
- "type" => "text",
74
- "text" => __("<p></p>\n<p>Hi [subscriber:firstname | default:reader]</p>\n<p class=\"\"></p>\n<p>Fancy 15% off your next order? Use this coupon on any product in our store. Expires Wednesday! To apply the discount, enter the code on the payments page.</p>", 'mailpoet')
75
- ), array(
76
- "type" => "spacer",
77
- "styles" => array(
78
- "block" => array(
79
- "backgroundColor" => "transparent",
80
- "height" => "20px"
81
- )
82
- )
83
- ))
84
- ))
85
- ), array(
86
- "type" => "container",
87
- "orientation" => "horizontal",
88
- "styles" => array(
89
- "block" => array(
90
- "backgroundColor" => "#ebdddd"
91
- )
92
- ),
93
- "blocks" => array(array(
94
- "type" => "container",
95
- "orientation" => "vertical",
96
- "styles" => array(
97
- "block" => array(
98
- "backgroundColor" => "transparent"
99
- )
100
- ),
101
- "blocks" => array(array(
102
- "type" => "divider",
103
- "styles" => array(
104
- "block" => array(
105
- "backgroundColor" => "transparent",
106
- "padding" => "16px",
107
- "borderStyle" => "dashed",
108
- "borderWidth" => "2px",
109
- "borderColor" => "#9a5fa1"
110
- )
111
- )
112
- ), array(
113
- "type" => "text",
114
- "text" => __("<h1 style=\"text-align: center;\"><em><strong>Get a 15% off your next order</strong></em></h1>", 'mailpoet')
115
- ), array(
116
- "type" => "text",
117
- "text" => __("<h2 style=\"text-align: center;\"><strong>USE CODE: WELOVEMAILPOET</strong></h2>", 'mailpoet')
118
- ), array(
119
- "type" => "divider",
120
- "styles" => array(
121
- "block" => array(
122
- "backgroundColor" => "transparent",
123
- "padding" => "16px",
124
- "borderStyle" => "dashed",
125
- "borderWidth" => "2px",
126
- "borderColor" => "#9a5fa1"
127
- )
128
- )
129
- ))
130
- ))
131
- ), array(
132
- "type" => "container",
133
- "orientation" => "horizontal",
134
- "styles" => array(
135
- "block" => array(
136
- "backgroundColor" => "transparent"
137
- )
138
- ),
139
- "blocks" => array(array(
140
- "type" => "container",
141
- "orientation" => "vertical",
142
- "styles" => array(
143
- "block" => array(
144
- "backgroundColor" => "transparent"
145
- )
146
- ),
147
- "blocks" => array(array(
148
- "type" => "spacer",
149
- "styles" => array(
150
- "block" => array(
151
- "backgroundColor" => "transparent",
152
- "height" => "20px"
153
- )
154
- )
155
- ), array(
156
- "type" => "button",
157
- "text" => __("SHOP NOW", 'mailpoet'),
158
- "url" => "",
159
- "styles" => array(
160
- "block" => array(
161
- "backgroundColor" => "#9a5fa1",
162
- "borderColor" => "#854f8b",
163
- "borderWidth" => "3px",
164
- "borderRadius" => "5px",
165
- "borderStyle" => "solid",
166
- "width" => "288px",
167
- "lineHeight" => "50px",
168
- "fontColor" => "#ffffff",
169
- "fontFamily" => "Verdana",
170
- "fontSize" => "18px",
171
- "fontWeight" => "normal",
172
- "textAlign" => "center"
173
- )
174
- )
175
- ), array(
176
- "type" => "text",
177
- "text" => __("<h1 style=\"text-align: center;\"><strong><em>Use your discount on these great products...</em></strong></h1>", 'mailpoet')
178
- ), array(
179
- "type" => "spacer",
180
- "styles" => array(
181
- "block" => array(
182
- "backgroundColor" => "transparent",
183
- "height" => "20px"
184
- )
185
- )
186
- ))
187
- ))
188
- ), array(
189
- "type" => "container",
190
- "orientation" => "horizontal",
191
- "styles" => array(
192
- "block" => array(
193
- "backgroundColor" => "transparent"
194
- )
195
- ),
196
- "blocks" => array(array(
197
- "type" => "container",
198
- "orientation" => "vertical",
199
- "styles" => array(
200
- "block" => array(
201
- "backgroundColor" => "transparent"
202
- )
203
- ),
204
- "blocks" => array(array(
205
- "type" => "image",
206
- "link" => "",
207
- "src" => $this->external_template_image_url . "/red-icycle.jpg",
208
- "alt" => __("red-bicycle", 'mailpoet'),
209
- "fullWidth" => false,
210
- "width" => "558px",
211
- "height" => "399px",
212
- "styles" => array(
213
- "block" => array(
214
- "textAlign" => "center"
215
- )
216
- )
217
- ), array(
218
- "type" => "text",
219
- "text" => __("<h3 style=\"text-align: center;\">Lovely Red Bicycle</h3>\n<p>What can we say? It's a totally awesome red bike, and it's the first of its kind in our collection. No sweat!</p>\n<h3 style=\"text-align: center;\"><strong><span style=\"color: #488e88;\">$289.99</span></strong></h3>", 'mailpoet')
220
- ), array(
221
- "type" => "button",
222
- "text" => __("Buy", 'mailpoet'),
223
- "url" => "",
224
- "styles" => array(
225
- "block" => array(
226
- "backgroundColor" => "#9a5fa1",
227
- "borderColor" => "#854f8b",
228
- "borderWidth" => "3px",
229
- "borderRadius" => "5px",
230
- "borderStyle" => "solid",
231
- "width" => "180px",
232
- "lineHeight" => "40px",
233
- "fontColor" => "#ffffff",
234
- "fontFamily" => "Verdana",
235
- "fontSize" => "18px",
236
- "fontWeight" => "normal",
237
- "textAlign" => "center"
238
- )
239
- )
240
- ))
241
- ), array(
242
- "type" => "container",
243
- "orientation" => "vertical",
244
- "styles" => array(
245
- "block" => array(
246
- "backgroundColor" => "transparent"
247
- )
248
- ),
249
- "blocks" => array(array(
250
- "type" => "image",
251
- "link" => "",
252
- "src" => $this->external_template_image_url . "/orange-bicycle.jpg",
253
- "alt" => __("orange-bicycle", 'mailpoet'),
254
- "fullWidth" => false,
255
- "width" => "639px",
256
- "height" => "457px",
257
- "styles" => array(
258
- "block" => array(
259
- "textAlign" => "center"
260
- )
261
- )
262
- ), array(
263
- "type" => "text",
264
- "text" => __("<h3 style=\"text-align: center;\">Little Orange Bicycle</h3>\n<p>Another product that's just as awesome but it's the second type, and more orange, with some blue. Cool beans!</p>\n<h3 style=\"line-height: 22.4px; text-align: center;\"><span style=\"color: #488e88;\"><strong>$209.99</strong></span></h3>", 'mailpoet')
265
- ), array(
266
- "type" => "button",
267
- "text" => __("Buy", 'mailpoet'),
268
- "url" => "",
269
- "styles" => array(
270
- "block" => array(
271
- "backgroundColor" => "#9a5fa1",
272
- "borderColor" => "#854f8b",
273
- "borderWidth" => "3px",
274
- "borderRadius" => "5px",
275
- "borderStyle" => "solid",
276
- "width" => "180px",
277
- "lineHeight" => "40px",
278
- "fontColor" => "#ffffff",
279
- "fontFamily" => "Verdana",
280
- "fontSize" => "18px",
281
- "fontWeight" => "normal",
282
- "textAlign" => "center"
283
- )
284
- )
285
- ))
286
- ))
287
- ), array(
288
- "type" => "container",
289
- "orientation" => "horizontal",
290
- "styles" => array(
291
- "block" => array(
292
- "backgroundColor" => "transparent"
293
- )
294
- ),
295
- "blocks" => array(array(
296
- "type" => "container",
297
- "orientation" => "vertical",
298
- "styles" => array(
299
- "block" => array(
300
- "backgroundColor" => "transparent"
301
- )
302
- ),
303
- "blocks" => array(array(
304
- "type" => "spacer",
305
- "styles" => array(
306
- "block" => array(
307
- "backgroundColor" => "transparent",
308
- "height" => "22px"
309
- )
310
- )
311
- ), array(
312
- "type" => "divider",
313
- "styles" => array(
314
- "block" => array(
315
- "backgroundColor" => "transparent",
316
- "padding" => "20px",
317
- "borderStyle" => "solid",
318
- "borderWidth" => "1px",
319
- "borderColor" => "#9e9e9e"
320
- )
321
- )
322
- ), array(
323
- "type" => "text",
324
- "text" => __("<p><em>Terms and Conditions:</em></p>\n<ul>\n<li><span style=\"line-height: 1.6em; background-color: inherit;\">Must be used by midnight EST December 15 2036.</span></li>\n<li><span style=\"line-height: 1.6em; background-color: inherit;\">Discount does not include shipping.</span></li>\n<li><span style=\"line-height: 1.6em; background-color: inherit;\">Cannot be used in conjunction with any other offer.</span></li>\n</ul>", 'mailpoet')
325
- ), array(
326
- "type" => "social",
327
- "iconSet" => "grey",
328
- "icons" => array(array(
329
- "type" => "socialIcon",
330
- "iconType" => "facebook",
331
- "link" => "",
332
- "image" => $this->social_icon_url . "/02-grey/Facebook.png",
333
- "height" => "32px",
334
- "width" => "32px",
335
- "text" => __("Facebook", 'mailpoet')
336
- ), array(
337
- "type" => "socialIcon",
338
- "iconType" => "twitter",
339
- "link" => "",
340
- "image" => $this->social_icon_url . "/02-grey/Twitter.png",
341
- "height" => "32px",
342
- "width" => "32px",
343
- "text" => __("Twitter", 'mailpoet')
344
- ))
345
- ), array(
346
- "type" => "footer",
347
- "text" => __("<p><a href=\"[link:subscription_unsubscribe_url]\">Unsubscribe</a> | <a href=\"[link:subscription_manage_url]\">Manage subscription</a></p>\n<p>1 Store Street, Shopville, CA 1345</p>", 'mailpoet'),
348
- "styles" => array(
349
- "block" => array(
350
- "backgroundColor" => "transparent"
351
- ),
352
- "text" => array(
353
- "fontColor" => "#343434",
354
- "fontFamily" => "Verdana",
355
- "fontSize" => "12px",
356
- "textAlign" => "center"
357
- ),
358
- "link" => array(
359
- "fontColor" => "#488e88",
360
- "textDecoration" => "none"
361
- )
362
- )
363
- ))
364
- ))
365
- ))
366
- ),
367
- "globalStyles" => array(
368
- "text" => array(
369
- "fontColor" => "#343434",
370
- "fontFamily" => "Verdana",
371
- "fontSize" => "14px"
372
- ),
373
- "h1" => array(
374
- "fontColor" => "#488e88",
375
- "fontFamily" => "Trebuchet MS",
376
- "fontSize" => "22px"
377
- ),
378
- "h2" => array(
379
- "fontColor" => "#9a5fa1",
380
- "fontFamily" => "Verdana",
381
- "fontSize" => "24px"
382
- ),
383
- "h3" => array(
384
- "fontColor" => "#9a5fa1",
385
- "fontFamily" => "Trebuchet MS",
386
- "fontSize" => "18px"
387
- ),
388
- "link" => array(
389
- "fontColor" => "#488e88",
390
- "textDecoration" => "underline"
391
- ),
392
- "wrapper" => array(
393
- "backgroundColor" => "#afe3de"
394
- ),
395
- "body" => array(
396
- "backgroundColor" => "#afe3de"
397
- )
398
- )
399
- );
400
- }
401
-
402
- private function getThumbnail() {
403
- return $this->external_template_image_url . '/screenshot.jpg';
404
- }
405
-
406
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
lib/Config/PopulatorData/Templates/TakeAHike.php ADDED
@@ -0,0 +1,769 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace MailPoet\Config\PopulatorData\Templates;
4
+
5
+ class TakeAHike {
6
+
7
+ private $template_image_url;
8
+ private $social_icon_url;
9
+
10
+ function __construct($assets_url) {
11
+ $this->template_image_url = '//ps.w.org/mailpoet/assets/newsletter-templates/take_a_hike';
12
+ $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons';
13
+ }
14
+
15
+ function get() {
16
+ return array(
17
+ 'name' => __("Take a Hike", 'mailpoet'),
18
+ 'description' => __("Can you climb to the top?", 'mailpoet'),
19
+ 'readonly' => 1,
20
+ 'thumbnail' => $this->getThumbnail(),
21
+ 'body' => json_encode($this->getBody()),
22
+ );
23
+ }
24
+
25
+ private function getBody() {
26
+ return array(
27
+ 'content' => array(
28
+ 'type' => 'container',
29
+ 'orientation' => 'vertical',
30
+ 'styles' => array(
31
+ 'block' => array(
32
+ 'backgroundColor' => 'transparent',
33
+ ),
34
+ ),
35
+ 'blocks' => array(
36
+ 0 => array(
37
+ 'type' => 'container',
38
+ 'orientation' => 'horizontal',
39
+ 'styles' => array(
40
+ 'block' => array(
41
+ 'backgroundColor' => 'transparent',
42
+ ),
43
+ ),
44
+ 'blocks' => array(
45
+ 0 => array(
46
+ 'type' => 'container',
47
+ 'orientation' => 'vertical',
48
+ 'styles' => array(
49
+ 'block' => array(
50
+ 'backgroundColor' => 'transparent',
51
+ ),
52
+ ),
53
+ 'blocks' => array(
54
+ 0 => array(
55
+ 'type' => 'image',
56
+ 'link' => '',
57
+ 'src' => $this->template_image_url . '/header.jpg',
58
+ 'alt' => 'header',
59
+ 'fullWidth' => true,
60
+ 'width' => '1320px',
61
+ 'height' => '483px',
62
+ 'styles' => array(
63
+ 'block' => array(
64
+ 'textAlign' => 'center',
65
+ ),
66
+ ),
67
+ ),
68
+ 1 => array(
69
+ 'type' => 'spacer',
70
+ 'styles' => array(
71
+ 'block' => array(
72
+ 'backgroundColor' => 'transparent',
73
+ 'height' => '20px',
74
+ ),
75
+ ),
76
+ ),
77
+ 2 => array(
78
+ 'type' => 'text',
79
+ 'text' => '<p>Hi&nbsp;[subscriber:firstname | default:explorer]</p>
80
+ <p></p>
81
+ <p>Aliquam feugiat nisl eget eleifend congue. Nullam neque tellus, elementum vel elit dictum, tempus sagittis nunc. Phasellus quis commodo odio. Vestibulum vitae mi vel quam rhoncus egestas eget vitae eros.&nbsp;</p>',
82
+ ),
83
+ 3 => array(
84
+ 'type' => 'spacer',
85
+ 'styles' => array(
86
+ 'block' => array(
87
+ 'backgroundColor' => 'transparent',
88
+ 'height' => '20px',
89
+ ),
90
+ ),
91
+ ),
92
+ 4 => array(
93
+ 'type' => 'spacer',
94
+ 'styles' => array(
95
+ 'block' => array(
96
+ 'backgroundColor' => '#843c15',
97
+ 'height' => '40px',
98
+ ),
99
+ ),
100
+ ),
101
+ 5 => array(
102
+ 'type' => 'spacer',
103
+ 'styles' => array(
104
+ 'block' => array(
105
+ 'backgroundColor' => 'transparent',
106
+ 'height' => '20px',
107
+ ),
108
+ ),
109
+ ),
110
+ ),
111
+ ),
112
+ ),
113
+ ),
114
+ 1 => array(
115
+ 'type' => 'container',
116
+ 'orientation' => 'horizontal',
117
+ 'styles' => array(
118
+ 'block' => array(
119
+ 'backgroundColor' => 'transparent',
120
+ ),
121
+ ),
122
+ 'blocks' => array(
123
+ 0 => array(
124
+ 'type' => 'container',
125
+ 'orientation' => 'vertical',
126
+ 'styles' => array(
127
+ 'block' => array(
128
+ 'backgroundColor' => 'transparent',
129
+ ),
130
+ ),
131
+ 'blocks' => array(
132
+ 0 => array(
133
+ 'type' => 'text',
134
+ 'text' => '<h1><strong>How to plan your hiking route</strong></h1>
135
+ <p>Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Aliquam dictum urna ac lacus dapibus rhoncus.</p>',
136
+ ),
137
+ 1 => array(
138
+ 'type' => 'button',
139
+ 'text' => 'Read More',
140
+ 'url' => 'https://www.google.co.uk',
141
+ 'styles' => array(
142
+ 'block' => array(
143
+ 'backgroundColor' => '#64a1af',
144
+ 'borderColor' => '#0074a2',
145
+ 'borderWidth' => '0px',
146
+ 'borderRadius' => '5px',
147
+ 'borderStyle' => 'solid',
148
+ 'width' => '150px',
149
+ 'lineHeight' => '34px',
150
+ 'fontColor' => '#ffffff',
151
+ 'fontFamily' => 'Courier New',
152
+ 'fontSize' => '18px',
153
+ 'fontWeight' => 'bold',
154
+ 'textAlign' => 'left',
155
+ ),
156
+ ),
157
+ ),
158
+ ),
159
+ ),
160
+ 1 => array(
161
+ 'type' => 'container',
162
+ 'orientation' => 'vertical',
163
+ 'styles' => array(
164
+ 'block' => array(
165
+ 'backgroundColor' => 'transparent',
166
+ ),
167
+ ),
168
+ 'blocks' => array(
169
+ 0 => array(
170
+ 'type' => 'image',
171
+ 'link' => '',
172
+ 'src' => $this->template_image_url . '/map.jpg',
173
+ 'alt' => 'map',
174
+ 'fullWidth' => false,
175
+ 'width' => '330px',
176
+ 'height' => '227px',
177
+ 'styles' => array(
178
+ 'block' => array(
179
+ 'textAlign' => 'center',
180
+ ),
181
+ ),
182
+ ),
183
+ ),
184
+ ),
185
+ ),
186
+ ),
187
+ 2 => array(
188
+ 'type' => 'container',
189
+ 'orientation' => 'horizontal',
190
+ 'styles' => array(
191
+ 'block' => array(
192
+ 'backgroundColor' => 'transparent',
193
+ ),
194
+ ),
195
+ 'blocks' => array(
196
+ 0 => array(
197
+ 'type' => 'container',
198
+ 'orientation' => 'vertical',
199
+ 'styles' => array(
200
+ 'block' => array(
201
+ 'backgroundColor' => 'transparent',
202
+ ),
203
+ ),
204
+ 'blocks' => array(
205
+ 0 => array(
206
+ 'type' => 'spacer',
207
+ 'styles' => array(
208
+ 'block' => array(
209
+ 'backgroundColor' => 'transparent',
210
+ 'height' => '20px',
211
+ ),
212
+ ),
213
+ ),
214
+ 1 => array(
215
+ 'type' => 'spacer',
216
+ 'styles' => array(
217
+ 'block' => array(
218
+ 'backgroundColor' => '#843c15',
219
+ 'height' => '40px',
220
+ ),
221
+ ),
222
+ ),
223
+ 2 => array(
224
+ 'type' => 'spacer',
225
+ 'styles' => array(
226
+ 'block' => array(
227
+ 'backgroundColor' => 'transparent',
228
+ 'height' => '20px',
229
+ ),
230
+ ),
231
+ ),
232
+ ),
233
+ ),
234
+ ),
235
+ ),
236
+ 3 => array(
237
+ 'type' => 'container',
238
+ 'orientation' => 'horizontal',
239
+ 'styles' => array(
240
+ 'block' => array(
241
+ 'backgroundColor' => 'transparent',
242
+ ),
243
+ ),
244
+ 'blocks' => array(
245
+ 0 => array(
246
+ 'type' => 'container',
247
+ 'orientation' => 'vertical',
248
+ 'styles' => array(
249
+ 'block' => array(
250
+ 'backgroundColor' => 'transparent',
251
+ ),
252
+ ),
253
+ 'blocks' => array(
254
+ 0 => array(
255
+ 'type' => 'image',
256
+ 'link' => '',
257
+ 'src' => $this->template_image_url . '/boots.jpg',
258
+ 'alt' => 'boots',
259
+ 'fullWidth' => false,
260
+ 'width' => '600px',
261
+ 'height' => '400px',
262
+ 'styles' => array(
263
+ 'block' => array(
264
+ 'textAlign' => 'center',
265
+ ),
266
+ ),
267
+ ),
268
+ ),
269
+ ),
270
+ 1 => array(
271
+ 'type' => 'container',
272
+ 'orientation' => 'vertical',
273
+ 'styles' => array(
274
+ 'block' => array(
275
+ 'backgroundColor' => 'transparent',
276
+ ),
277
+ ),
278
+ 'blocks' => array(
279
+ 0 => array(
280
+ 'type' => 'text',
281
+ 'text' => '<h2><strong>Tried &amp; tested: Our favourite walking boots</strong></h2>
282
+ <p>Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.&nbsp;</p>',
283
+ ),
284
+ 1 => array(
285
+ 'type' => 'button',
286
+ 'text' => 'See Reviews',
287
+ 'url' => '',
288
+ 'styles' => array(
289
+ 'block' => array(
290
+ 'backgroundColor' => '#64a1af',
291
+ 'borderColor' => '#0074a2',
292
+ 'borderWidth' => '0px',
293
+ 'borderRadius' => '5px',
294
+ 'borderStyle' => 'solid',
295
+ 'width' => '150px',
296
+ 'lineHeight' => '34px',
297
+ 'fontColor' => '#ffffff',
298
+ 'fontFamily' => 'Courier New',
299
+ 'fontSize' => '18px',
300
+ 'fontWeight' => 'bold',
301
+ 'textAlign' => 'left',
302
+ ),
303
+ ),
304
+ ),
305
+ ),
306
+ ),
307
+ ),
308
+ ),
309
+ 4 => array(
310
+ 'type' => 'container',
311
+ 'orientation' => 'horizontal',
312
+ 'styles' => array(
313
+ 'block' => array(
314
+ 'backgroundColor' => 'transparent',
315
+ ),
316
+ ),
317
+ 'blocks' => array(
318
+ 0 => array(
319
+ 'type' => 'container',
320
+ 'orientation' => 'vertical',
321
+ 'styles' => array(
322
+ 'block' => array(
323
+ 'backgroundColor' => 'transparent',
324
+ ),
325
+ ),
326
+ 'blocks' => array(
327
+ 0 => array(
328
+ 'type' => 'spacer',
329
+ 'styles' => array(
330
+ 'block' => array(
331
+ 'backgroundColor' => 'transparent',
332
+ 'height' => '20px',
333
+ ),
334
+ ),
335
+ ),
336
+ 1 => array(
337
+ 'type' => 'spacer',
338
+ 'styles' => array(
339
+ 'block' => array(
340
+ 'backgroundColor' => '#843c15',
341
+ 'height' => '40px',
342
+ ),
343
+ ),
344
+ ),
345
+ 2 => array(
346
+ 'type' => 'spacer',
347
+ 'styles' => array(
348
+ 'block' => array(
349
+ 'backgroundColor' => 'transparent',
350
+ 'height' => '20px',
351
+ ),
352
+ ),
353
+ ),
354
+ 3 => array(
355
+ 'type' => 'text',
356
+ 'text' => '<h3 style="text-align: center;"><strong>Hikers Gallery</strong></h3>',
357
+ ),
358
+ ),
359
+ ),
360
+ ),
361
+ ),
362
+ 5 => array(
363
+ 'type' => 'container',
364
+ 'orientation' => 'horizontal',
365
+ 'styles' => array(
366
+ 'block' => array(
367
+ 'backgroundColor' => 'transparent',
368
+ ),
369
+ ),
370
+ 'blocks' => array(
371
+ 0 => array(
372
+ 'type' => 'container',
373
+ 'orientation' => 'vertical',
374
+ 'styles' => array(
375
+ 'block' => array(
376
+ 'backgroundColor' => 'transparent',
377
+ ),
378
+ ),
379
+ 'blocks' => array(
380
+ 0 => array(
381
+ 'type' => 'image',
382
+ 'link' => '',
383
+ 'src' => $this->template_image_url . '/gallery3.jpg',
384
+ 'alt' => 'gallery3',
385
+ 'fullWidth' => true,
386
+ 'width' => '1000px',
387
+ 'height' => '750px',
388
+ 'styles' => array(
389
+ 'block' => array(
390
+ 'textAlign' => 'center',
391
+ ),
392
+ ),
393
+ ),
394
+ ),
395
+ ),
396
+ 1 => array(
397
+ 'type' => 'container',
398
+ 'orientation' => 'vertical',
399
+ 'styles' => array(
400
+ 'block' => array(
401
+ 'backgroundColor' => 'transparent',
402
+ ),
403
+ ),
404
+ 'blocks' => array(
405
+ 0 => array(
406
+ 'type' => 'image',
407
+ 'link' => '',
408
+ 'src' => $this->template_image_url . '/gallery1-300x225.jpg',
409
+ 'alt' => 'gallery1',
410
+ 'fullWidth' => true,
411
+ 'width' => '300px',
412
+ 'height' => '225px',
413
+ 'styles' => array(
414
+ 'block' => array(
415
+ 'textAlign' => 'center',
416
+ ),
417
+ ),
418
+ ),
419
+ ),
420
+ ),
421
+ 2 => array(
422
+ 'type' => 'container',
423
+ 'orientation' => 'vertical',
424
+ 'styles' => array(
425
+ 'block' => array(
426
+ 'backgroundColor' => 'transparent',
427
+ ),
428
+ ),
429
+ 'blocks' => array(
430
+ 0 => array(
431
+ 'type' => 'image',
432
+ 'link' => '',
433
+ 'src' => $this->template_image_url . '/gallery2-1.jpg',
434
+ 'alt' => 'gallery2',
435
+ 'fullWidth' => true,
436
+ 'width' => '1000px',
437
+ 'height' => '750px',
438
+ 'styles' => array(
439
+ 'block' => array(
440
+ 'textAlign' => 'center',
441
+ ),
442
+ ),
443
+ ),
444
+ ),
445
+ ),
446
+ ),
447
+ ),
448
+ 6 => array(
449
+ 'type' => 'container',
450
+ 'orientation' => 'horizontal',
451
+ 'styles' => array(
452
+ 'block' => array(
453
+ 'backgroundColor' => 'transparent',
454
+ ),
455
+ ),
456
+ 'blocks' => array(
457
+ 0 => array(
458
+ 'type' => 'container',
459
+ 'orientation' => 'vertical',
460
+ 'styles' => array(
461
+ 'block' => array(
462
+ 'backgroundColor' => 'transparent',
463
+ ),
464
+ ),
465
+ 'blocks' => array(
466
+ 0 => array(
467
+ 'type' => 'spacer',
468
+ 'styles' => array(
469
+ 'block' => array(
470
+ 'backgroundColor' => 'transparent',
471
+ 'height' => '20px',
472
+ ),
473
+ ),
474
+ ),
475
+ 1 => array(
476
+ 'type' => 'text',
477
+ 'text' => '<p style="text-align: center;">Edit this to insert text</p>',
478
+ ),
479
+ 2 => array(
480
+ 'type' => 'button',
481
+ 'text' => 'View More Photos',
482
+ 'url' => '',
483
+ 'styles' => array(
484
+ 'block' => array(
485
+ 'backgroundColor' => '#64a1af',
486
+ 'borderColor' => '#0074a2',
487
+ 'borderWidth' => '0px',
488
+ 'borderRadius' => '5px',
489
+ 'borderStyle' => 'solid',
490
+ 'width' => '214px',
491
+ 'lineHeight' => '34px',
492
+ 'fontColor' => '#ffffff',
493
+ 'fontFamily' => 'Courier New',
494
+ 'fontSize' => '18px',
495
+ 'fontWeight' => 'bold',
496
+ 'textAlign' => 'center',
497
+ ),
498
+ ),
499
+ ),
500
+ 3 => array(
501
+ 'type' => 'spacer',
502
+ 'styles' => array(
503
+ 'block' => array(
504
+ 'backgroundColor' => '#843c15',
505
+ 'height' => '40px',
506
+ ),
507
+ ),
508
+ ),
509
+ 4 => array(
510
+ 'type' => 'spacer',
511
+ 'styles' => array(
512
+ 'block' => array(
513
+ 'backgroundColor' => 'transparent',
514
+ 'height' => '20px',
515
+ ),
516
+ ),
517
+ ),
518
+ 5 => array(
519
+ 'type' => 'text',
520
+ 'text' => '<h3 style="text-align: center;"><strong>Hiking goes social...</strong></h3>',
521
+ ),
522
+ 6 => array(
523
+ 'type' => 'social',
524
+ 'iconSet' => 'circles',
525
+ 'icons' => array(
526
+ 0 => array(
527
+ 'type' => 'socialIcon',
528
+ 'iconType' => 'facebook',
529
+ 'link' => 'http://www.facebook.com',
530
+ 'image' => $this->social_icon_url . '/03-circles/Facebook.png',
531
+ 'height' => '32px',
532
+ 'width' => '32px',
533
+ 'text' => 'Facebook',
534
+ ),
535
+ 1 => array(
536
+ 'type' => 'socialIcon',
537
+ 'iconType' => 'twitter',
538
+ 'link' => 'http://www.twitter.com',
539
+ 'image' => $this->social_icon_url . '/03-circles/Twitter.png',
540
+ 'height' => '32px',
541
+ 'width' => '32px',
542
+ 'text' => 'Twitter',
543
+ ),
544
+ 2 => array(
545
+ 'type' => 'socialIcon',
546
+ 'iconType' => 'instagram',
547
+ 'link' => 'http://instagram.com',
548
+ 'image' => $this->social_icon_url . '/03-circles/Instagram.png',
549
+ 'height' => '32px',
550
+ 'width' => '32px',
551
+ 'text' => 'Instagram',
552
+ ),
553
+ 3 => array(
554
+ 'type' => 'socialIcon',
555
+ 'iconType' => 'google-plus',
556
+ 'link' => 'http://plus.google.com',
557
+ 'image' => $this->social_icon_url . '/03-circles/Google-Plus.png',
558
+ 'height' => '32px',
559
+ 'width' => '32px',
560
+ 'text' => 'Google Plus',
561
+ ),
562
+ 4 => array(
563
+ 'type' => 'socialIcon',
564
+ 'iconType' => 'youtube',
565
+ 'link' => 'http://www.youtube.com',
566
+ 'image' => $this->social_icon_url . '/03-circles/Youtube.png',
567
+ 'height' => '32px',
568
+ 'width' => '32px',
569
+ 'text' => 'Youtube',
570
+ ),
571
+ ),
572
+ ),
573
+ 7 => array(
574
+ 'type' => 'spacer',
575
+ 'styles' => array(
576
+ 'block' => array(
577
+ 'backgroundColor' => 'transparent',
578
+ 'height' => '20px',
579
+ ),
580
+ ),
581
+ ),
582
+ 8 => array(
583
+ 'type' => 'spacer',
584
+ 'styles' => array(
585
+ 'block' => array(
586
+ 'backgroundColor' => '#843c15',
587
+ 'height' => '40px',
588
+ ),
589
+ ),
590
+ ),
591
+ ),
592
+ ),
593
+ ),
594
+ ),
595
+ 7 => array(
596
+ 'type' => 'container',
597
+ 'orientation' => 'horizontal',
598
+ 'styles' => array(
599
+ 'block' => array(
600
+ 'backgroundColor' => '#64a1af',
601
+ ),
602
+ ),
603
+ 'blocks' => array(
604
+ 0 => array(
605
+ 'type' => 'container',
606
+ 'orientation' => 'vertical',
607
+ 'styles' => array(
608
+ 'block' => array(
609
+ 'backgroundColor' => 'transparent',
610
+ ),
611
+ ),
612
+ 'blocks' => array(
613
+ 0 => array(
614
+ 'type' => 'spacer',
615
+ 'styles' => array(
616
+ 'block' => array(
617
+ 'backgroundColor' => 'transparent',
618
+ 'height' => '20px',
619
+ ),
620
+ ),
621
+ ),
622
+ ),
623
+ ),
624
+ ),
625
+ ),
626
+ 8 => array(
627
+ 'type' => 'container',
628
+ 'orientation' => 'horizontal',
629
+ 'styles' => array(
630
+ 'block' => array(
631
+ 'backgroundColor' => '#64a1af',
632
+ ),
633
+ ),
634
+ 'blocks' => array(
635
+ 0 => array(
636
+ 'type' => 'container',
637
+ 'orientation' => 'vertical',
638
+ 'styles' => array(
639
+ 'block' => array(
640
+ 'backgroundColor' => 'transparent',
641
+ ),
642
+ ),
643
+ 'blocks' => array(
644
+ 0 => array(
645
+ 'type' => 'footer',
646
+ 'text' => '<p><a href="[link:subscription_unsubscribe_url]">Unsubscribe</a> | <a href="[link:subscription_manage_url]">Manage subscription</a></p>',
647
+ 'styles' => array(
648
+ 'block' => array(
649
+ 'backgroundColor' => 'transparent',
650
+ ),
651
+ 'text' => array(
652
+ 'fontColor' => '#ffffff',
653
+ 'fontFamily' => 'Arial',
654
+ 'fontSize' => '13px',
655
+ 'textAlign' => 'left',
656
+ ),
657
+ 'link' => array(
658
+ 'fontColor' => '#ffffff',
659
+ 'textDecoration' => 'underline',
660
+ ),
661
+ ),
662
+ ),
663
+ ),
664
+ ),
665
+ 1 => array(
666
+ 'type' => 'container',
667
+ 'orientation' => 'vertical',
668
+ 'styles' => array(
669
+ 'block' => array(
670
+ 'backgroundColor' => 'transparent',
671
+ ),
672
+ ),
673
+ 'blocks' => array(
674
+ 0 => array(
675
+ 'type' => 'footer',
676
+ 'text' => '<p>Add your postal address here!</p>',
677
+ 'styles' => array(
678
+ 'block' => array(
679
+ 'backgroundColor' => 'transparent',
680
+ ),
681
+ 'text' => array(
682
+ 'fontColor' => '#ffffff',
683
+ 'fontFamily' => 'Arial',
684
+ 'fontSize' => '13px',
685
+ 'textAlign' => 'right',
686
+ ),
687
+ 'link' => array(
688
+ 'fontColor' => '#ffffff',
689
+ 'textDecoration' => 'underline',
690
+ ),
691
+ ),
692
+ ),
693
+ ),
694
+ ),
695
+ ),
696
+ ),
697
+ 9 => array(
698
+ 'type' => 'container',
699
+ 'orientation' => 'horizontal',
700
+ 'styles' => array(
701
+ 'block' => array(
702
+ 'backgroundColor' => '#64a1af',
703
+ ),
704
+ ),
705
+ 'blocks' => array(
706
+ 0 => array(
707
+ 'type' => 'container',
708
+ 'orientation' => 'vertical',
709
+ 'styles' => array(
710
+ 'block' => array(
711
+ 'backgroundColor' => 'transparent',
712
+ ),
713
+ ),
714
+ 'blocks' => array(
715
+ 0 => array(
716
+ 'type' => 'spacer',
717
+ 'styles' => array(
718
+ 'block' => array(
719
+ 'backgroundColor' => 'transparent',
720
+ 'height' => '20px',
721
+ ),
722
+ ),
723
+ ),
724
+ ),
725
+ ),
726
+ ),
727
+ ),
728
+ ),
729
+ ),
730
+ 'globalStyles' => array(
731
+ 'text' => array(
732
+ 'fontColor' => '#4f230c',
733
+ 'fontFamily' => 'Arial',
734
+ 'fontSize' => '16px',
735
+ ),
736
+ 'h1' => array(
737
+ 'fontColor' => '#423c39',
738
+ 'fontFamily' => 'Courier New',
739
+ 'fontSize' => '24px',
740
+ ),
741
+ 'h2' => array(
742
+ 'fontColor' => '#265f6d',
743
+ 'fontFamily' => 'Courier New',
744
+ 'fontSize' => '24px',
745
+ ),
746
+ 'h3' => array(
747
+ 'fontColor' => '#423c39',
748
+ 'fontFamily' => 'Courier New',
749
+ 'fontSize' => '20px',
750
+ ),
751
+ 'link' => array(
752
+ 'fontColor' => '#843c15',
753
+ 'textDecoration' => 'underline',
754
+ ),
755
+ 'wrapper' => array(
756
+ 'backgroundColor' => '#ffffff',
757
+ ),
758
+ 'body' => array(
759
+ 'backgroundColor' => '#843c15',
760
+ ),
761
+ ),
762
+ );
763
+ }
764
+
765
+ private function getThumbnail() {
766
+ return $this->template_image_url . '/take-a-hike.jpg';
767
+ }
768
+
769
+ }
lib/Config/PopulatorData/Templates/TravelEmail.php DELETED
@@ -1,527 +0,0 @@
1
- <?php
2
- namespace MailPoet\Config\PopulatorData\Templates;
3
-
4
- if(!defined('ABSPATH')) exit;
5
-
6
- class TravelEmail {
7
-
8
- function __construct($assets_url) {
9
- $this->assets_url = $assets_url;
10
- $this->external_template_image_url = '//ps.w.org/mailpoet/assets/newsletter-templates/travel-email';
11
- $this->template_image_url = $this->assets_url . '/img/sample_templates/travel';
12
- $this->social_icon_url = $this->assets_url . '/img/newsletter_editor/social-icons';
13
- }
14
-
15
- function get() {
16
- return array(
17
- 'name' => __("Travel email", 'mailpoet'),
18
- 'description' => __("A little postcard from your trip", 'mailpoet'),
19
- 'readonly' => 1,
20
- 'thumbnail' => $this->getThumbnail(),
21
- 'body' => json_encode($this->getBody()),
22
- );
23
- }
24
-
25
- private function getBody() {
26
- return array(
27
- "content" => array(
28
- "type" => "container",
29
- "orientation" => "vertical",
30
- "styles" => array(
31
- "block" => array(
32
- "backgroundColor" => "transparent"
33
- )
34
- ),
35
- "blocks" => array(array(
36
- "type" => "container",
37
- "orientation" => "horizontal",
38
- "styles" => array(
39
- "block" => array(
40
- "backgroundColor" => "transparent"
41
- )
42
- ),
43
- "blocks" => array(array(
44
- "type" => "container",
45
- "orientation" => "vertical",
46
- "styles" => array(
47
- "block" => array(
48
- "backgroundColor" => "transparent"
49
- )
50
- ),
51
- "blocks" => array(array(
52
- "type" => "image",
53
- "link" => "",
54
- "src" => $this->external_template_image_url . "/header.png",
55
- "alt" => __("Travelling Tales with Jane & Steven", 'mailpoet'),
56
- "fullWidth" => true,
57
- "width" => "660px",
58
- "height" => "165px",
59
- "styles" => array(
60
- "block" => array(
61
- "textAlign" => "center"
62
- )
63
- )
64
- ), array(
65
- "type" => "spacer",
66
- "styles" => array(
67
- "block" => array(
68
- "backgroundColor" => "transparent",
69
- "height" => "30px"
70
- )
71
- )
72
- ), array(
73
- "type" => "text",
74
- "text" => __("<h1 style=\"text-align: center;\">Hi [subscriber:firstname | default:reader]!</h1>\n<p></p>\n<p>Greetings from New Zealand! We're here enjoying the sights, sounds, and smells of Rotarua! Yesterday, we visited the local hot springs, and today, we're going swimming.</p>\n<p>Don't forget to stay updated with Twitter!</p>", 'mailpoet')
75
- ), array(
76
- "type" => "social",
77
- "iconSet" => "circles",
78
- "icons" => array(array(
79
- "type" => "socialIcon",
80
- "iconType" => "twitter",
81
- "link" => "",
82
- "image" => $this->social_icon_url . "/03-circles/Twitter.png",
83
- "height" => "32px",
84
- "width" => "32px",
85
- "text" => __("Twitter", 'mailpoet')
86
- ))
87
- ), array(
88
- "type" => "text",
89
- "text" => __("<h1 style=\"text-align: center;\"><strong>Photos from Rotarua</strong></h1>", 'mailpoet')
90
- ), array(
91
- "type" => "spacer",
92
- "styles" => array(
93
- "block" => array(
94
- "backgroundColor" => "transparent",
95
- "height" => "20px"
96
- )
97
- )
98
- ))
99
- ))
100
- ), array(
101
- "type" => "container",
102
- "orientation" => "horizontal",
103
- "styles" => array(
104
- "block" => array(
105
- "backgroundColor" => "transparent"
106
- )
107
- ),
108
- "blocks" => array(array(
109
- "type" => "container",
110
- "orientation" => "vertical",
111
- "styles" => array(
112
- "block" => array(
113
- "backgroundColor" => "transparent"
114
- )
115
- ),
116
- "blocks" => array(array(
117
- "type" => "image",
118
- "link" => "",
119
- "src" => $this->external_template_image_url . "/gallery1.jpg",
120
- "alt" => __("hot thermals", 'mailpoet'),
121
- "fullWidth" => false,
122
- "width" => "640px",
123
- "height" => "425px",
124
- "styles" => array(
125
- "block" => array(
126
- "textAlign" => "center"
127
- )
128
- )
129
- ), array(
130
- "type" => "spacer",
131
- "styles" => array(
132
- "block" => array(
133
- "backgroundColor" => "transparent",
134
- "height" => "40px"
135
- )
136
- )
137
- ))
138
- ), array(
139
- "type" => "container",
140
- "orientation" => "vertical",
141
- "styles" => array(
142
- "block" => array(
143
- "backgroundColor" => "transparent"
144
- )
145
- ),
146
- "blocks" => array(array(
147
- "type" => "image",
148
- "link" => "",
149
- "src" => $this->external_template_image_url . "/gallery2.jpg",
150
- "alt" => __("The view from our campsite", 'mailpoet'),
151
- "fullWidth" => false,
152
- "width" => "640px",
153
- "height" => "425px",
154
- "styles" => array(
155
- "block" => array(
156
- "textAlign" => "center"
157
- )
158
- )
159
- ), array(
160
- "type" => "spacer",
161
- "styles" => array(
162
- "block" => array(
163
- "backgroundColor" => "transparent",
164
- "height" => "40px"
165
- )
166
- )
167
- ))
168
- ))
169
- ), array(
170
- "type" => "container",
171
- "orientation" => "horizontal",
172
- "styles" => array(
173
- "block" => array(
174
- "backgroundColor" => "transparent"
175
- )
176
- ),
177
- "blocks" => array(array(
178
- "type" => "container",
179
- "orientation" => "vertical",
180
- "styles" => array(
181
- "block" => array(
182
- "backgroundColor" => "transparent"
183
- )
184
- ),
185
- "blocks" => array(array(
186
- "type" => "image",
187
- "link" => "",
188
- "src" => $this->external_template_image_url . "/gallery3.jpg",
189
- "alt" => __("Red sky at night", 'mailpoet'),
190
- "fullWidth" => false,
191
- "width" => "640px",
192
- "height" => "425px",
193
- "styles" => array(
194
- "block" => array(
195
- "textAlign" => "center"
196
- )
197
- )
198
- ))
199
- ), array(
200
- "type" => "container",
201
- "orientation" => "vertical",
202
- "styles" => array(
203
- "block" => array(
204
- "backgroundColor" => "transparent"
205
- )
206
- ),
207
- "blocks" => array(array(
208
- "type" => "image",
209
- "link" => "",
210
- "src" => $this->external_template_image_url . "/gallery4.jpg",
211
- "alt" => __("Don't go chasing waterfalls", 'mailpoet'),
212
- "fullWidth" => false,
213
- "width" => "640px",
214
- "height" => "425px",
215
- "styles" => array(
216
- "block" => array(
217
- "textAlign" => "center"
218
- )
219
- )
220
- ))
221
- ))
222
- ), array(
223
- "type" => "container",
224
- "orientation" => "horizontal",
225
- "styles" => array(
226
- "block" => array(
227
- "backgroundColor" => "transparent"
228
- )
229
- ),
230
- "blocks" => array(array(
231
- "type" => "container",
232
- "orientation" => "vertical",
233
- "styles" => array(
234
- "block" => array(
235
- "backgroundColor" => "transparent"
236
- )
237
- ),
238
- "blocks" => array(array(
239
- "type" => "spacer",
240
- "styles" => array(
241
- "block" => array(
242
- "backgroundColor" => "transparent",
243
- "height" => "20px"
244
- )
245
- )
246
- ), array(
247
- "type" => "button",
248
- "text" => __("View NZ Photo Gallery", 'mailpoet'),
249
- "url" => "",
250
- "styles" => array(
251
- "block" => array(
252
- "backgroundColor" => "#f16161",
253
- "borderColor" => "#ffffff",
254
- "borderWidth" => "3px",
255
- "borderRadius" => "5px",
256
- "borderStyle" => "solid",
257
- "width" => "288px",
258
- "lineHeight" => "48px",
259
- "fontColor" => "#ffffff",
260
- "fontFamily" => "Verdana",
261
- "fontSize" => "18px",
262
- "fontWeight" => "normal",
263
- "textAlign" => "center"
264
- )
265
- )
266
- ))
267
- ))
268
- ), array(
269
- "type" => "container",
270
- "orientation" => "horizontal",
271
- "styles" => array(
272
- "block" => array(
273
- "backgroundColor" => "transparent"
274
- )
275
- ),
276
- "blocks" => array(array(
277
- "type" => "container",
278
- "orientation" => "vertical",
279
- "styles" => array(
280
- "block" => array(
281
- "backgroundColor" => "transparent"
282
- )
283
- ),
284
- "blocks" => array(array(
285
- "type" => "divider",
286
- "styles" => array(
287
- "block" => array(
288
- "backgroundColor" => "transparent",
289
- "padding" => "23px",
290
- "borderStyle" => "double",
291
- "borderWidth" => "3px",
292
- "borderColor" => "#aaaaaa"
293
- )
294
- )
295
- ), array(
296
- "type" => "text",
297
- "text" => __("<h2><em>Here's our top recommendations in Rotarua</em></h2>", 'mailpoet')
298
- ), array(
299
- "type" => "spacer",
300
- "styles" => array(
301
- "block" => array(
302
- "backgroundColor" => "transparent",
303
- "height" => "20px"
304
- )
305
- )
306
- ))
307
- ))
308
- ), array(
309
- "type" => "container",
310
- "orientation" => "horizontal",
311
- "styles" => array(
312
- "block" => array(
313
- "backgroundColor" => "transparent"
314
- )
315
- ),
316
- "blocks" => array(array(
317
- "type" => "container",
318
- "orientation" => "vertical",
319
- "styles" => array(
320
- "block" => array(
321
- "backgroundColor" => "transparent"
322
- )
323
- ),
324
- "blocks" => array(array(
325
- "type" => "image",
326
- "link" => "",
327
- "src" => $this->external_template_image_url . "/glow-worms.jpg",
328
- "alt" => __("Glowworms, Waitomo Caves", 'mailpoet'),
329
- "fullWidth" => true,
330
- "width" => "640px",
331
- "height" => "428px",
332
- "styles" => array(
333
- "block" => array(
334
- "textAlign" => "center"
335
- )
336
- )
337
- ), array(
338
- "type" => "text",
339
- "text" => __("<p><em><a href=\"http://www.waitomo.com/Waitomo-Glowworm-Caves/Pages/default.aspx\"><strong>Waitomo GlowWorm Caves</strong></a></em></p>", 'mailpoet')
340
- ))
341
- ), array(
342
- "type" => "container",
343
- "orientation" => "vertical",
344
- "styles" => array(
345
- "block" => array(
346
- "backgroundColor" => "transparent"
347
- )
348
- ),
349
- "blocks" => array(array(
350
- "type" => "image",
351
- "link" => "",
352
- "src" => $this->external_template_image_url . "/luge.jpg",
353
- "alt" => __("luge", 'mailpoet'),
354
- "fullWidth" => false,
355
- "width" => "375px",
356
- "height" => "500px",
357
- "styles" => array(
358
- "block" => array(
359
- "textAlign" => "center"
360
- )
361
- )
362
- ), array(
363
- "type" => "text",
364
- "text" => __("<p><em><strong><a href=\"http://www.skyline.co.nz/rotorua/ssr_luge/\">Luge!</a></strong></em></p>", 'mailpoet')
365
- ))
366
- ), array(
367
- "type" => "container",
368
- "orientation" => "vertical",
369
- "styles" => array(
370
- "block" => array(
371
- "backgroundColor" => "transparent"
372
- )
373
- ),
374
- "blocks" => array(array(
375
- "type" => "image",
376
- "link" => "",
377
- "src" => $this->external_template_image_url . "/holiday-park.jpg",
378
- "alt" => __("holiday-park", 'mailpoet'),
379
- "fullWidth" => true,
380
- "width" => "640px",
381
- "height" => "425px",
382
- "styles" => array(
383
- "block" => array(
384
- "textAlign" => "center"
385
- )
386
- )
387
- ), array(
388
- "type" => "text",
389
- "text" => __("<p><em><strong><a href=\"http://rotoruathermal.co.nz/\">Roturua Thermal Holiday Park</a></strong></em></p>", 'mailpoet')
390
- ))
391
- ))
392
- ), array(
393
- "type" => "container",
394
- "orientation" => "horizontal",
395
- "styles" => array(
396
- "block" => array(
397
- "backgroundColor" => "transparent"
398
- )
399
- ),
400
- "blocks" => array(array(
401
- "type" => "container",
402
- "orientation" => "vertical",
403
- "styles" => array(
404
- "block" => array(
405
- "backgroundColor" => "transparent"
406
- )
407
- ),
408
- "blocks" => array(array(
409
- "type" => "spacer",
410
- "styles" => array(
411
- "block" => array(
412
- "backgroundColor" => "transparent",
413
- "height" => "21px"
414
- )
415
- )
416
- ), array(
417
- "type" => "text",
418
- "text" => __("<p>Tomorrow we're heading towards Taupo where we'll visit the 'Craters of the moon' and go prawn fishing! Hopefully the weather will stay good.</p>\n<p></p>\n<p>Keep on travellin'</p>\n<p>Jane &amp; Steven</p>", 'mailpoet')
419
- ))
420
- ))
421
- ), array(
422
- "type" => "container",
423
- "orientation" => "horizontal",
424
- "styles" => array(
425
- "block" => array(
426
- "backgroundColor" => "transparent"
427
- )
428
- ),
429
- "blocks" => array(array(
430
- "type" => "container",
431
- "orientation" => "vertical",
432
- "styles" => array(
433
- "block" => array(
434
- "backgroundColor" => "transparent"
435
- )
436
- ),
437
- "blocks" => array(array(
438
- "type" => "divider",
439
- "styles" => array(
440
- "block" => array(
441
- "backgroundColor" => "transparent",
442
- "padding" => "13px",
443
- "borderStyle" => "dotted",
444
- "borderWidth" => "2px",
445
- "borderColor" => "#aaaaaa"
446
- )
447
- )
448
- ), array(
449
- "type" => "header",
450
- "text" => ("Display problems? <a href=\"[link:newsletter_view_in_browser_url]\">Open this email in your web browser.</a>"),
451
- "styles" => array(
452
- "block" => array(
453
- "backgroundColor" => "transparent"
454
- ),
455
- "text" => array(
456
- "fontColor" => "#222222",
457
- "fontFamily" => "Courier New",
458
- "fontSize" => "12px",
459
- "textAlign" => "center"
460
- ),
461
- "link" => array(
462
- "fontColor" => "#343434",
463
- "textDecoration" => "underline"
464
- )
465
- )
466
- ), array(
467
- "type" => "footer",
468
- "text" => __("<p><a href=\"[link:subscription_unsubscribe_url]\">Unsubscribe</a> | <a href=\"[link:subscription_manage_url]\">Manage subscription</a></p>", 'mailpoet'),
469
- "styles" => array(
470
- "block" => array(
471
- "backgroundColor" => "transparent"
472
- ),
473
- "text" => array(
474
- "fontColor" => "#343434",
475
- "fontFamily" => "Courier New",
476
- "fontSize" => "12px",
477
- "textAlign" => "center"
478
- ),
479
- "link" => array(
480
- "fontColor" => "#343434",
481
- "textDecoration" => "underline"
482
- )
483
- )
484
- ))
485
- ))
486
- ))
487
- ),
488
- "globalStyles" => array(
489
- "text" => array(
490
- "fontColor" => "#343434",
491
- "fontFamily" => "Courier New",
492
- "fontSize" => "16px"
493
- ),
494
- "h1" => array(
495
- "fontColor" => "#180d6b",
496
- "fontFamily" => "Trebuchet MS",
497
- "fontSize" => "24px"
498
- ),
499
- "h2" => array(
500
- "fontColor" => "#180d6b",
501
- "fontFamily" => "Trebuchet MS",
502
- "fontSize" => "20px"
503
- ),
504
- "h3" => array(
505
- "fontColor" => "#343434",
506
- "fontFamily" => "Trebuchet MS",
507
- "fontSize" => "18px"
508
- ),
509
- "link" => array(
510
- "fontColor" => "#f16161",
511
- "textDecoration" => "underline"
512
- ),
513
- "wrapper" => array(
514
- "backgroundColor" => "#daf3ff"
515
- ),
516
- "body" => array(
517
- "backgroundColor" => "#ffffff"
518
- )
519
- )
520
- );
521
- }
522
-
523
- private function getThumbnail() {
524
- return $this->external_template_image_url . '/screenshot.jpg';
525
- }
526
-
527
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
lib/Config/PopulatorData/Templates/TravelNomads.php ADDED
@@ -0,0 +1,603 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace MailPoet\Config\PopulatorData\Templates;
4
+
5
+ class TravelNomads {
6
+
7
+ private $template_image_url;
8
+ private $social_icon_url;
9
+
10
+ function __construct($assets_url) {
11
+ $this->template_image_url = '//ps.w.org/mailpoet/assets/newsletter-templates/travel_nomads';
12
+ $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons';
13
+ }
14
+
15
+ function get() {
16
+ return array(
17
+ 'name' => __("Travel Nomads", 'mailpoet'),
18
+ 'description' => __("Ideal for sharing your travel adventures.", 'mailpoet'),
19
+ 'readonly' => 1,
20
+ 'thumbnail' => $this->getThumbnail(),
21
+ 'body' => json_encode($this->getBody()),
22
+ );
23
+ }
24
+
25
+ private function getBody() {
26
+ return array(
27
+ 'content' => array(
28
+ 'type' => 'container',
29
+ 'orientation' => 'vertical',
30
+ 'styles' => array(
31
+ 'block' => array(
32
+ 'backgroundColor' => 'transparent',
33
+ ),
34
+ ),
35
+ 'blocks' => array(
36
+ 0 => array(
37
+ 'type' => 'container',
38
+ 'orientation' => 'horizontal',
39
+ 'styles' => array(
40
+ 'block' => array(
41
+ 'backgroundColor' => 'transparent',
42
+ ),
43
+ ),
44
+ 'blocks' => array(
45
+ 0 => array(
46
+ 'type' => 'container',
47
+ 'orientation' => 'vertical',
48
+ 'styles' => array(
49
+ 'block' => array(
50
+ 'backgroundColor' => 'transparent',
51
+ ),
52
+ ),
53
+ 'blocks' => array(
54
+ 0 => array(
55
+ 'type' => 'image',
56
+ 'link' => 'http://example.org',
57
+ 'src' => $this->template_image_url . '/header-1.png',
58
+ 'alt' => 'Travelling Tales with Jane & Steven',
59
+ 'fullWidth' => true,
60
+ 'width' => '660px',
61
+ 'height' => '165px',
62
+ 'styles' => array(
63
+ 'block' => array(
64
+ 'textAlign' => 'center',
65
+ ),
66
+ ),
67
+ ),
68
+ 1 => array(
69
+ 'type' => 'spacer',
70
+ 'styles' => array(
71
+ 'block' => array(
72
+ 'backgroundColor' => 'transparent',
73
+ 'height' => '30px',
74
+ ),
75
+ ),
76
+ ),
77
+ 2 => array(
78
+ 'type' => 'text',
79
+ 'text' => '<h1 style="text-align: center;">Hi&nbsp;[subscriber:firstname | default:reader]!</h1>
80
+ <p></p>
81
+ <p>Donec viverra arcu nec elit congue pellentesque. In ac dictum magna. Morbi sit amet accumsan augue. Cras cursus viverra nulla non tempus. Curabitur sed neque vel sapien feugiat mattis. Morbi ullamcorper tellus diam, sed rutrum nisi faucibus at.</p>',
82
+ ),
83
+ 3 => array(
84
+ 'type' => 'social',
85
+ 'iconSet' => 'circles',
86
+ 'icons' => array(
87
+ 0 => array(
88
+ 'type' => 'socialIcon',
89
+ 'iconType' => 'twitter',
90
+ 'link' => 'http://example.com',
91
+ 'image' => $this->social_icon_url . '/03-circles/Twitter.png',
92
+ 'height' => '32px',
93
+ 'width' => '32px',
94
+ 'text' => 'Twitter',
95
+ ),
96
+ ),
97
+ ),
98
+ 4 => array(
99
+ 'type' => 'text',
100
+ 'text' => '<h1 style="text-align: center;"><strong>Photos from Rotarua</strong></h1>',
101
+ ),
102
+ 5 => array(
103
+ 'type' => 'spacer',
104
+ 'styles' => array(
105
+ 'block' => array(
106
+ 'backgroundColor' => 'transparent',
107
+ 'height' => '20px',
108
+ ),
109
+ ),
110
+ ),
111
+ ),
112
+ ),
113
+ ),
114
+ ),
115
+ 1 => array(
116
+ 'type' => 'container',
117
+ 'orientation' => 'horizontal',
118
+ 'styles' => array(
119
+ 'block' => array(
120
+ 'backgroundColor' => 'transparent',
121
+ ),
122
+ ),
123
+ 'blocks' => array(
124
+ 0 => array(
125
+ 'type' => 'container',
126
+ 'orientation' => 'vertical',
127
+ 'styles' => array(
128
+ 'block' => array(
129
+ 'backgroundColor' => 'transparent',
130
+ ),
131
+ ),
132
+ 'blocks' => array(
133
+ 0 => array(
134
+ 'type' => 'image',
135
+ 'link' => 'http://example.org',
136
+ 'src' => $this->template_image_url . '/hot-thermals-1.jpg',
137
+ 'alt' => 'hot thermals',
138
+ 'fullWidth' => false,
139
+ 'width' => '640px',
140
+ 'height' => '425px',
141
+ 'styles' => array(
142
+ 'block' => array(
143
+ 'textAlign' => 'center',
144
+ ),
145
+ ),
146
+ ),
147
+ 1 => array(
148
+ 'type' => 'spacer',
149
+ 'styles' => array(
150
+ 'block' => array(
151
+ 'backgroundColor' => 'transparent',
152
+ 'height' => '40px',
153
+ ),
154
+ ),
155
+ ),
156
+ ),
157
+ ),
158
+ 1 => array(
159
+ 'type' => 'container',
160
+ 'orientation' => 'vertical',
161
+ 'styles' => array(
162
+ 'block' => array(
163
+ 'backgroundColor' => 'transparent',
164
+ ),
165
+ ),
166
+ 'blocks' => array(
167
+ 0 => array(
168
+ 'type' => 'image',
169
+ 'link' => 'http://example.org',
170
+ 'src' => $this->template_image_url . '/5398660557_e5e338357e_z.jpg',
171
+ 'alt' => 'The view from our campsite',
172
+ 'fullWidth' => false,
173
+ 'width' => '640px',
174
+ 'height' => '425px',
175
+ 'styles' => array(
176
+ 'block' => array(
177
+ 'textAlign' => 'center',
178
+ ),
179
+ ),
180
+ ),
181
+ 1 => array(
182
+ 'type' => 'spacer',
183
+ 'styles' => array(
184
+ 'block' => array(
185
+ 'backgroundColor' => 'transparent',
186
+ 'height' => '40px',
187
+ ),
188
+ ),
189
+ ),
190
+ ),
191
+ ),
192
+ ),
193
+ ),
194
+ 2 => array(
195
+ 'type' => 'container',
196
+ 'orientation' => 'horizontal',
197
+ 'styles' => array(
198
+ 'block' => array(
199
+ 'backgroundColor' => 'transparent',
200
+ ),
201
+ ),
202
+ 'blocks' => array(
203
+ 0 => array(
204
+ 'type' => 'container',
205
+ 'orientation' => 'vertical',
206
+ 'styles' => array(
207
+ 'block' => array(
208
+ 'backgroundColor' => 'transparent',
209
+ ),
210
+ ),
211
+ 'blocks' => array(
212
+ 0 => array(
213
+ 'type' => 'image',
214
+ 'link' => 'http://example.org',
215
+ 'src' => $this->template_image_url . '/5399212952_b3fea8fffb_z.jpg',
216
+ 'alt' => 'Red sky at night',
217
+ 'fullWidth' => false,
218
+ 'width' => '640px',
219
+ 'height' => '425px',
220
+ 'styles' => array(
221
+ 'block' => array(
222
+ 'textAlign' => 'center',
223
+ ),
224
+ ),
225
+ ),
226
+ ),
227
+ ),
228
+ 1 => array(
229
+ 'type' => 'container',
230
+ 'orientation' => 'vertical',
231
+ 'styles' => array(
232
+ 'block' => array(
233
+ 'backgroundColor' => 'transparent',
234
+ ),
235
+ ),
236
+ 'blocks' => array(
237
+ 0 => array(
238
+ 'type' => 'image',
239
+ 'link' => 'http://example.org',
240
+ 'src' => $this->template_image_url . '/5399283298_0d2cd66e9f_z.jpg',
241
+ 'alt' => 'Don\'t go chasing waterfalls',
242
+ 'fullWidth' => false,
243
+ 'width' => '640px',
244
+ 'height' => '425px',
245
+ 'styles' => array(
246
+ 'block' => array(
247
+ 'textAlign' => 'center',
248
+ ),
249
+ ),
250
+ ),
251
+ ),
252
+ ),
253
+ ),
254
+ ),
255
+ 3 => array(
256
+ 'type' => 'container',
257
+ 'orientation' => 'horizontal',
258
+ 'styles' => array(
259
+ 'block' => array(
260
+ 'backgroundColor' => 'transparent',
261
+ ),
262
+ ),
263
+ 'blocks' => array(
264
+ 0 => array(
265
+ 'type' => 'container',
266
+ 'orientation' => 'vertical',
267
+ 'styles' => array(
268
+ 'block' => array(
269
+ 'backgroundColor' => 'transparent',
270
+ ),
271
+ ),
272
+ 'blocks' => array(
273
+ 0 => array(
274
+ 'type' => 'spacer',
275
+ 'styles' => array(
276
+ 'block' => array(
277
+ 'backgroundColor' => 'transparent',
278
+ 'height' => '20px',
279
+ ),
280
+ ),
281
+ ),
282
+ 1 => array(
283
+ 'type' => 'button',
284
+ 'text' => 'View NZ Photo Gallery',
285
+ 'url' => 'http://example.org',
286
+ 'styles' => array(
287
+ 'block' => array(
288
+ 'backgroundColor' => '#f16161',
289
+ 'borderColor' => '#ffffff',
290
+ 'borderWidth' => '3px',
291
+ 'borderRadius' => '5px',
292
+ 'borderStyle' => 'solid',
293
+ 'width' => '288px',
294
+ 'lineHeight' => '48px',
295
+ 'fontColor' => '#ffffff',
296
+ 'fontFamily' => 'Verdana',
297
+ 'fontSize' => '18px',
298
+ 'fontWeight' => 'normal',
299
+ 'textAlign' => 'center',
300
+ ),
301
+ ),
302
+ ),
303
+ ),
304
+ ),
305
+ ),
306
+ ),
307
+ 4 => array(
308
+ 'type' => 'container',
309
+ 'orientation' => 'horizontal',
310
+ 'styles' => array(
311
+ 'block' => array(
312
+ 'backgroundColor' => 'transparent',
313
+ ),
314
+ ),
315
+ 'blocks' => array(
316
+ 0 => array(
317
+ 'type' => 'container',
318
+ 'orientation' => 'vertical',
319
+ 'styles' => array(
320
+ 'block' => array(
321
+ 'backgroundColor' => 'transparent',
322
+ ),
323
+ ),
324
+ 'blocks' => array(
325
+ 0 => array(
326
+ 'type' => 'divider',
327
+ 'styles' => array(
328
+ 'block' => array(
329
+ 'backgroundColor' => 'transparent',
330
+ 'padding' => '23px',
331
+ 'borderStyle' => 'double',
332
+ 'borderWidth' => '3px',
333
+ 'borderColor' => '#aaaaaa',
334
+ ),
335
+ ),
336
+ ),
337
+ 1 => array(
338
+ 'type' => 'text',
339
+ 'text' => '<h2><em>Here\'s our top recommendations in Rotarua</em></h2>',
340
+ ),
341
+ 2 => array(
342
+ 'type' => 'spacer',
343
+ 'styles' => array(
344
+ 'block' => array(
345
+ 'backgroundColor' => 'transparent',
346
+ 'height' => '20px',
347
+ ),
348
+ ),
349
+ ),
350
+ ),
351
+ ),
352
+ ),
353
+ ),
354
+ 5 => array(
355
+ 'type' => 'container',
356
+ 'orientation' => 'horizontal',
357
+ 'styles' => array(
358
+ 'block' => array(
359
+ 'backgroundColor' => 'transparent',
360
+ ),
361
+ ),
362
+ 'blocks' => array(
363
+ 0 => array(
364
+ 'type' => 'container',
365
+ 'orientation' => 'vertical',
366
+ 'styles' => array(
367
+ 'block' => array(
368
+ 'backgroundColor' => 'transparent',
369
+ ),
370
+ ),
371
+ 'blocks' => array(
372
+ 0 => array(
373
+ 'type' => 'image',
374
+ 'link' => 'http://example.org',
375
+ 'src' => $this->template_image_url . '/glow-worms.jpg',
376
+ 'alt' => 'Glow worms, Waitomo Caves',
377
+ 'fullWidth' => true,
378
+ 'width' => '640px',
379
+ 'height' => '428px',
380
+ 'styles' => array(
381
+ 'block' => array(
382
+ 'textAlign' => 'center',
383
+ ),
384
+ ),
385
+ ),
386
+ 1 => array(
387
+ 'type' => 'text',
388
+ 'text' => '<p><em><a href="http://www.waitomo.com/Waitomo-Glowworm-Caves/Pages/default.aspx"><strong>Waitomo Glow Worm Caves</strong></a></em></p>',
389
+ ),
390
+ ),
391
+ ),
392
+ 1 => array(
393
+ 'type' => 'container',
394
+ 'orientation' => 'vertical',
395
+ 'styles' => array(
396
+ 'block' => array(
397
+ 'backgroundColor' => 'transparent',
398
+ ),
399
+ ),
400
+ 'blocks' => array(
401
+ 0 => array(
402
+ 'type' => 'image',
403
+ 'link' => 'http://example.org',
404
+ 'src' => $this->template_image_url . '/luge.jpg',
405
+ 'alt' => 'luge',
406
+ 'fullWidth' => false,
407
+ 'width' => '375px',
408
+ 'height' => '500px',
409
+ 'styles' => array(
410
+ 'block' => array(
411
+ 'textAlign' => 'center',
412
+ ),
413
+ ),
414
+ ),
415
+ 1 => array(
416
+ 'type' => 'text',
417
+ 'text' => '<p><em><strong><a href="http://www.skyline.co.nz/rotorua/ssr_luge/">Luge!</a></strong></em></p>',
418
+ ),
419
+ ),
420
+ ),
421
+ 2 => array(
422
+ 'type' => 'container',
423
+ 'orientation' => 'vertical',
424
+ 'styles' => array(
425
+ 'block' => array(
426
+ 'backgroundColor' => 'transparent',
427
+ ),
428
+ ),
429
+ 'blocks' => array(
430
+ 0 => array(
431
+ 'type' => 'image',
432
+ 'link' => 'http://example.org',
433
+ 'src' => $this->template_image_url . '/holiday-park.jpg',
434
+ 'alt' => 'holiday-park',
435
+ 'fullWidth' => true,
436
+ 'width' => '640px',
437
+ 'height' => '425px',
438
+ 'styles' => array(
439
+ 'block' => array(
440
+ 'textAlign' => 'center',
441
+ ),
442
+ ),
443
+ ),
444
+ 1 => array(
445
+ 'type' => 'text',
446
+ 'text' => '<p><em><strong><a href="http://rotoruathermal.co.nz/">Roturua Thermal Holiday Park</a></strong></em></p>',
447
+ ),
448
+ ),
449
+ ),
450
+ ),
451
+ ),
452
+ 6 => array(
453
+ 'type' => 'container',
454
+ 'orientation' => 'horizontal',
455
+ 'styles' => array(
456
+ 'block' => array(
457
+ 'backgroundColor' => 'transparent',
458
+ ),
459
+ ),
460
+ 'blocks' => array(
461
+ 0 => array(
462
+ 'type' => 'container',
463
+ 'orientation' => 'vertical',
464
+ 'styles' => array(
465
+ 'block' => array(
466
+ 'backgroundColor' => 'transparent',
467
+ ),
468
+ ),
469
+ 'blocks' => array(
470
+ 0 => array(
471
+ 'type' => 'spacer',
472
+ 'styles' => array(
473
+ 'block' => array(
474
+ 'backgroundColor' => 'transparent',
475
+ 'height' => '21px',
476
+ ),
477
+ ),
478
+ ),
479
+ 1 => array(
480
+ 'type' => 'text',
481
+ 'text' => '<p>Morbi ex diam, venenatis a efficitur et, iaculis at nibh. Ut rhoncus, lacus vel fermentum aliquam, mi arcu pharetra metus, quis ullamcorper tortor ligula in diam. Fusce mi elit, finibus at lectus non, pulvinar fringilla risus. Integer porta vel quam et fringilla.</p>
482
+ <p></p>
483
+ <p>Morbi sit amet,</p>
484
+ <p>Jane &amp; Steven</p>',
485
+ ),
486
+ ),
487
+ ),
488
+ ),
489
+ ),
490
+ 7 => array(
491
+ 'type' => 'container',
492
+ 'orientation' => 'horizontal',
493
+ 'styles' => array(
494
+ 'block' => array(
495
+ 'backgroundColor' => 'transparent',
496
+ ),
497
+ ),
498
+ 'blocks' => array(
499
+ 0 => array(
500
+ 'type' => 'container',
501
+ 'orientation' => 'vertical',
502
+ 'styles' => array(
503
+ 'block' => array(
504
+ 'backgroundColor' => 'transparent',
505
+ ),
506
+ ),
507
+ 'blocks' => array(
508
+ 0 => array(
509
+ 'type' => 'divider',
510
+ 'styles' => array(
511
+ 'block' => array(
512
+ 'backgroundColor' => 'transparent',
513
+ 'padding' => '13px',
514
+ 'borderStyle' => 'dotted',
515
+ 'borderWidth' => '2px',
516
+ 'borderColor' => '#aaaaaa',
517
+ ),
518
+ ),
519
+ ),
520
+ 1 => array(
521
+ 'type' => 'header',
522
+ 'text' => 'Display problems?&nbsp;<a href="[link:newsletter_view_in_browser_url]">Open this email in your web browser</a>',
523
+ 'styles' => array(
524
+ 'block' => array(
525
+ 'backgroundColor' => 'transparent',
526
+ ),
527
+ 'text' => array(
528
+ 'fontColor' => '#222222',
529
+ 'fontFamily' => 'Courier New',
530
+ 'fontSize' => '12px',
531
+ 'textAlign' => 'center',
532
+ ),
533
+ 'link' => array(
534
+ 'fontColor' => '#343434',
535
+ 'textDecoration' => 'underline',
536
+ ),
537
+ ),
538
+ ),
539
+ 2 => array(
540
+ 'type' => 'footer',
541
+ 'text' => '<p><a href="[link:subscription_unsubscribe_url]">Unsubscribe</a> | <a href="[link:subscription_manage_url]">Manage subscription</a></p>',
542
+ 'styles' => array(
543
+ 'block' => array(
544
+ 'backgroundColor' => 'transparent',
545
+ ),
546
+ 'text' => array(
547
+ 'fontColor' => '#343434',
548
+ 'fontFamily' => 'Courier New',
549
+ 'fontSize' => '12px',
550
+ 'textAlign' => 'center',
551
+ ),
552
+ 'link' => array(
553
+ 'fontColor' => '#343434',
554
+ 'textDecoration' => 'underline',
555
+ ),
556
+ ),
557
+ ),
558
+ ),
559
+ ),
560
+ ),
561
+ ),
562
+ ),
563
+ ),
564
+ 'globalStyles' => array(
565
+ 'text' => array(
566
+ 'fontColor' => '#343434',
567
+ 'fontFamily' => 'Courier New',
568
+ 'fontSize' => '16px',
569
+ ),
570
+ 'h1' => array(
571
+ 'fontColor' => '#180d6b',
572
+ 'fontFamily' => 'Trebuchet MS',
573
+ 'fontSize' => '26px',
574
+ ),
575
+ 'h2' => array(
576
+ 'fontColor' => '#180d6b',
577
+ 'fontFamily' => 'Trebuchet MS',
578
+ 'fontSize' => '22px',
579
+ ),
580
+ 'h3' => array(
581
+ 'fontColor' => '#343434',
582
+ 'fontFamily' => 'Trebuchet MS',
583
+ 'fontSize' => '18px',
584
+ ),
585
+ 'link' => array(
586
+ 'fontColor' => '#f16161',
587
+ 'textDecoration' => 'underline',
588
+ ),
589
+ 'wrapper' => array(
590
+ 'backgroundColor' => '#daf3ff',
591
+ ),
592
+ 'body' => array(
593
+ 'backgroundColor' => '#ffffff',
594
+ ),
595
+ ),
596
+ );
597
+ }
598
+
599
+ private function getThumbnail() {
600
+ return $this->template_image_url . '/travel-nomads.jpg';
601
+ }
602
+
603
+ }
lib/Config/PopulatorData/Templates/WorldCup.php ADDED
@@ -0,0 +1,785 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace MailPoet\Config\PopulatorData\Templates;
4
+
5
+ class WorldCup {
6
+
7
+ private $template_image_url;
8
+ private $social_icon_url;
9
+
10
+ function __construct($assets_url) {
11
+ $this->template_image_url = '//ps.w.org/mailpoet/assets/newsletter-templates/world_cup';
12
+ $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons';
13
+ }
14
+
15
+ function get() {
16
+ return array(
17
+ 'name' => __("World Cup", 'mailpoet'),
18
+ 'description' => __("Always a winner. ", 'mailpoet'),
19
+ 'readonly' => 1,
20
+ 'thumbnail' => $this->getThumbnail(),
21
+ 'body' => json_encode($this->getBody()),
22
+ );
23
+ }
24
+
25
+ private function getBody() {
26
+ return array(
27
+ 'content' => array(
28
+ 'type' => 'container',
29
+ 'orientation' => 'vertical',
30
+ 'styles' => array(
31
+ 'block' => array(
32
+ 'backgroundColor' => 'transparent',
33
+ ),
34
+ ),
35
+ 'blocks' => array(
36
+ array(
37
+ 'type' => 'container',
38
+ 'orientation' => 'horizontal',
39
+ 'styles' => array(
40
+ 'block' => array(
41
+ 'backgroundColor' => '#222222',
42
+ ),
43
+ ),
44
+ 'blocks' => array(
45
+ array(
46
+ 'type' => 'container',
47
+ 'orientation' => 'vertical',
48
+ 'styles' => array(
49
+ 'block' => array(
50
+ 'backgroundColor' => 'transparent',
51
+ ),
52
+ ),
53
+ 'blocks' => array(
54
+ array(
55
+ 'type' => 'spacer',
56
+ 'styles' => array(
57
+ 'block' => array(
58
+ 'backgroundColor' => 'transparent',
59
+ 'height' => '20px',
60
+ ),
61
+ ),
62
+ ),
63
+ array(
64
+ 'type' => 'image',
65
+ 'link' => '',
66
+ 'src' => $this->template_image_url . '/Sports-Football-Header.png',
67
+ 'alt' => 'Sports-Football-Header',
68
+ 'fullWidth' => true,
69
+ 'width' => '1280px',
70
+ 'height' => '220px',
71
+ 'styles' => array(
72
+ 'block' => array(
73
+ 'textAlign' => 'center',
74
+ ),
75
+ ),
76
+ ),
77
+ array(
78
+ 'type' => 'image',
79
+ 'link' => '',
80
+ 'src' => $this->template_image_url . '/Sports-Football-Divider-1.png',
81
+ 'alt' => 'Sports-Football-Divider-1',
82
+ 'fullWidth' => true,
83
+ 'width' => '1280px',
84
+ 'height' => '50px',
85
+ 'styles' => array(
86
+ 'block' => array(
87
+ 'textAlign' => 'center',
88
+ ),
89
+ ),
90
+ ),
91
+ ),
92
+ ),
93
+ ),
94
+ ),
95
+ array(
96
+ 'type' => 'container',
97
+ 'orientation' => 'horizontal',
98
+ 'styles' => array(
99
+ 'block' => array(
100
+ 'backgroundColor' => '#da6110',
101
+ ),
102
+ ),
103
+ 'blocks' => array(
104
+ array(
105
+ 'type' => 'container',
106
+ 'orientation' => 'vertical',
107
+ 'styles' => array(
108
+ 'block' => array(
109
+ 'backgroundColor' => 'transparent',
110
+ ),
111
+ ),
112
+ 'blocks' => array(
113
+ array(
114
+ 'type' => 'spacer',
115
+ 'styles' => array(
116
+ 'block' => array(
117
+ 'backgroundColor' => 'transparent',
118
+ 'height' => '20px',
119
+ ),
120
+ ),
121
+ ),
122
+ array(
123
+ 'type' => 'text',
124
+ 'text' => '<p><strong><span style="color: #ffffff; font-size: 14px;">Issue #1</span></strong></p>',
125
+ ),
126
+ ),
127
+ ),
128
+ array(
129
+ 'type' => 'container',
130
+ 'orientation' => 'vertical',
131
+ 'styles' => array(
132
+ 'block' => array(
133
+ 'backgroundColor' => 'transparent',
134
+ ),
135
+ ),
136
+ 'blocks' => array(
137
+ array(
138
+ 'type' => 'text',
139
+ 'text' => '<p style="text-align: right;"><a href="[link:newsletter_view_in_browser_url]" target="_blank" style="color: #ffffff; font-size: 14px; text-align: center;">View In Browser</a></p>
140
+ <p style="text-align: right;"><span style="color: #ffffff; text-align: start;">Monday 1st January 2017</span></p>',
141
+ ),
142
+ ),
143
+ ),
144
+ ),
145
+ ),
146
+ array(
147
+ 'type' => 'container',
148
+ 'orientation' => 'horizontal',
149
+ 'styles' => array(
150
+ 'block' => array(
151
+ 'backgroundColor' => '#ffffff',
152
+ ),
153
+ ),
154
+ 'blocks' => array(
155
+ array(
156
+ 'type' => 'container',
157
+ 'orientation' => 'vertical',
158
+ 'styles' => array(
159
+ 'block' => array(
160
+ 'backgroundColor' => 'transparent',
161
+ ),
162
+ ),
163
+ 'blocks' => array(
164
+ array(
165
+ 'type' => 'spacer',
166
+ 'styles' => array(
167
+ 'block' => array(
168
+ 'backgroundColor' => '#da6110',
169
+ 'height' => '20px',
170
+ ),
171
+ ),
172
+ ),
173
+ array(
174
+ 'type' => 'image',
175
+ 'link' => '',
176
+ 'src' => $this->template_image_url . '/Sports-Football-Header-1.png',
177
+ 'alt' => 'Sports-Football-Header',
178
+ 'fullWidth' => true,
179
+ 'width' => '1280px',
180
+ 'height' => '580px',
181
+ 'styles' => array(
182
+ 'block' => array(
183
+ 'textAlign' => 'center',
184
+ ),
185
+ ),
186
+ ),
187
+ array(
188
+ 'type' => 'spacer',
189
+ 'styles' => array(
190
+ 'block' => array(
191
+ 'backgroundColor' => 'transparent',
192
+ 'height' => '30px',
193
+ ),
194
+ ),
195
+ ),
196
+ array(
197
+ 'type' => 'text',
198
+ 'text' => '<h2 style="text-align: left;"><strong>Welcome Back!</strong></h2>
199
+ <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam consequat lorem at est congue, non consequat lacus iaculis. Integer euismod mauris velit, vel ultrices nibh bibendum quis. Donec eget fermentum magna.</p>
200
+ <p></p>
201
+ <p>Nullam congue dui lectus, quis pellentesque orci placerat eu. Fusce semper neque a mi aliquet vulputate sed sit amet nisi. Etiam sed nisl nec orci pretium lacinia eget in turpis. Maecenas in posuere justo. Vestibulum et sapien vestibulum, imperdiet neque in, maximus velit.</p>
202
+ <p></p>
203
+ <p>Proin dignissim elit magna, viverra scelerisque libero vehicula sed</p>',
204
+ ),
205
+ array(
206
+ 'type' => 'image',
207
+ 'link' => '',
208
+ 'src' => $this->template_image_url . '/Sports-Football-Divider-3.png',
209
+ 'alt' => 'Sports-Football-Divider-3',
210
+ 'fullWidth' => true,
211
+ 'width' => '1280px',
212
+ 'height' => '50px',
213
+ 'styles' => array(
214
+ 'block' => array(
215
+ 'textAlign' => 'center',
216
+ ),
217
+ ),
218
+ ),
219
+ array(
220
+ 'type' => 'spacer',
221
+ 'styles' => array(
222
+ 'block' => array(
223
+ 'backgroundColor' => '#efefef',
224
+ 'height' => '20px',
225
+ ),
226
+ ),
227
+ ),
228
+ ),
229
+ ),
230
+ ),
231
+ ),
232
+ array(
233
+ 'type' => 'container',
234
+ 'orientation' => 'horizontal',
235
+ 'styles' => array(
236
+ 'block' => array(
237
+ 'backgroundColor' => '#efefef',
238
+ ),
239
+ ),
240
+ 'blocks' => array(
241
+ array(
242
+ 'type' => 'container',
243
+ 'orientation' => 'vertical',
244
+ 'styles' => array(
245
+ 'block' => array(
246
+ 'backgroundColor' => 'transparent',
247
+ ),
248
+ ),
249
+ 'blocks' => array(
250
+
251
+ array(
252
+ 'type' => 'text',
253
+ 'text' => '<h2 style="padding-bottom: 0;"><span style="font-weight: 600;">Latest News</span></h2>',
254
+ ),
255
+ ),
256
+ ),
257
+ array(
258
+ 'type' => 'container',
259
+ 'orientation' => 'vertical',
260
+ 'styles' => array(
261
+ 'block' => array(
262
+ 'backgroundColor' => 'transparent',
263
+ ),
264
+ ),
265
+ 'blocks' => array(
266
+ array(
267
+ 'type' => 'button',
268
+ 'text' => 'View All News',
269
+ 'url' => '',
270
+ 'styles' => array(
271
+ 'block' => array(
272
+ 'backgroundColor' => '#d35400',
273
+ 'borderColor' => '#d35400',
274
+ 'borderWidth' => '1px',
275
+ 'borderRadius' => '5px',
276
+ 'borderStyle' => 'solid',
277
+ 'width' => '110px',
278
+ 'lineHeight' => '36px',
279
+ 'fontColor' => '#ffffff',
280
+ 'fontFamily' => 'Tahoma',
281
+ 'fontSize' => '14px',
282
+ 'fontWeight' => 'normal',
283
+ 'textAlign' => 'right',
284
+ ),
285
+ ),
286
+ ),
287
+ ),
288
+ ),
289
+ ),
290
+ ),
291
+ array(
292
+ 'type' => 'container',
293
+ 'orientation' => 'horizontal',
294
+ 'styles' => array(
295
+ 'block' => array(
296
+ 'backgroundColor' => '#efefef',
297
+ ),
298
+ ),
299
+ 'blocks' => array(
300
+ array(
301
+ 'type' => 'container',
302
+ 'orientation' => 'vertical',
303
+ 'styles' => array(
304
+ 'block' => array(
305
+ 'backgroundColor' => 'transparent',
306
+ ),
307
+ ),
308
+ 'blocks' => array(
309
+ array(
310
+ 'type' => 'spacer',
311
+ 'styles' => array(
312
+ 'block' => array(
313
+ 'backgroundColor' => 'transparent',
314
+ 'height' => '20px',
315
+ ),
316
+ ),
317
+ ),
318
+ ),
319
+ ),
320
+ ),
321
+ ),
322
+ array(
323
+ 'type' => 'container',
324
+ 'orientation' => 'horizontal',
325
+ 'styles' => array(
326
+ 'block' => array(
327
+ 'backgroundColor' => '#efefef',
328
+ ),
329
+ ),
330
+ 'blocks' => array(
331
+ array(
332
+ 'type' => 'container',
333
+ 'orientation' => 'vertical',
334
+ 'styles' => array(
335
+ 'block' => array(
336
+ 'backgroundColor' => 'transparent',
337
+ ),
338
+ ),
339
+ 'blocks' => array(
340
+ array(
341
+ 'type' => 'image',
342
+ 'link' => 'http://mailpoet.info/brazils-history-making-hurricane/',
343
+ 'src' => $this->template_image_url . '/2865897_full-lnd.jpg',
344
+ 'alt' => 'Brazil’s history-making Hurricane',
345
+ 'fullWidth' => false,
346
+ 'width' => 652,
347
+ 'height' => 366,
348
+ 'styles' => array(
349
+ 'block' => array(
350
+ 'textAlign' => 'center',
351
+ ),
352
+ ),
353
+ ),
354
+ array(
355
+ 'type' => 'text',
356
+ 'text' => '<h3 style="text-align: left;" data-post-id="1938"><strong>Brazil&rsquo;s history-making Hurricane</strong></h3>
357
+ <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam consequat lorem at est congue, non consequat lacus iaculis. Integer euismod mauris velit, vel ultrices nibh bibendum quis. Donec eget fermentum magna. Nullam congue dui lectus, quis pellentesque orci placerat eu. Fusce semper neque a mi aliquet vulputate sed sit amet nisi...</p>
358
+ <p><a href="http://mailpoet.info/brazils-history-making-hurricane/">Read More</a></p>',
359
+ ),
360
+ array(
361
+ 'type' => 'spacer',
362
+ 'styles' => array(
363
+ 'block' => array(
364
+ 'backgroundColor' => 'transparent',
365
+ 'height' => '20px',
366
+ ),
367
+ ),
368
+ ),
369
+ ),
370
+ ),
371
+ ),
372
+ ),
373
+ array(
374
+ 'type' => 'container',
375
+ 'orientation' => 'horizontal',
376
+ 'styles' => array(
377
+ 'block' => array(
378
+ 'backgroundColor' => '#efefef',
379
+ ),
380
+ ),
381
+ 'blocks' => array(
382
+
383
+ array(
384
+ 'type' => 'container',
385
+ 'orientation' => 'vertical',
386
+ 'styles' => array(
387
+ 'block' => array(
388
+ 'backgroundColor' => 'transparent',
389
+ ),
390
+ ),
391
+ 'blocks' => array(
392
+ array(
393
+ 'type' => 'image',
394
+ 'link' => 'http://mailpoet.info/icelands-dentist-coach-defying-convention-and-expectations/',
395
+ 'src' => $this->template_image_url . '/2866107_full-lnd.jpg',
396
+ 'alt' => 'Iceland’s dentist-coach defying convention and expectations',
397
+ 'fullWidth' => false,
398
+ 'width' => 652,
399
+ 'height' => 366,
400
+ 'styles' => array(
401
+ 'block' => array(
402
+ 'textAlign' => 'center',
403
+ ),
404
+ ),
405
+ ),
406
+ array(
407
+ 'type' => 'text',
408
+ 'text' => '<h3><strong>Iceland&rsquo;s dentist-coach defying convention and expectations</strong></h3>
409
+ <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam consequat lorem at est congue, non consequat lacus iaculis. Integer euismod mauris velit...</p>
410
+ <p><a href="http://mailpoet.info/icelands-dentist-coach-defying-convention-and-expectations/">Read More</a></p>',
411
+ ),
412
+ ),
413
+ ),
414
+ array(
415
+ 'type' => 'container',
416
+ 'orientation' => 'vertical',
417
+ 'styles' => array(
418
+ 'block' => array(
419
+ 'backgroundColor' => 'transparent',
420
+ ),
421
+ ),
422
+ 'blocks' => array(
423
+ array(
424
+ 'type' => 'image',
425
+ 'link' => 'http://mailpoet.info/impact-and-legacy-of-2018-fifa-world-cup-russia-facts-and-figures/',
426
+ 'src' => $this->template_image_url . '/2709222_full-lnd.jpg',
427
+ 'alt' => 'Impact and legacy of 2018 FIFA World Cup Russia: facts and figures',
428
+ 'fullWidth' => false,
429
+ 'width' => 652,
430
+ 'height' => 366,
431
+ 'styles' => array(
432
+ 'block' => array(
433
+ 'textAlign' => 'center',
434
+ ),
435
+ ),
436
+ ),
437
+ array(
438
+ 'type' => 'text',
439
+ 'text' => '<h3 style="text-align: left;" data-post-id="1932"><strong>Impact and legacy of 2018 FIFA World Cup Russia: facts and figures</strong></h3>
440
+ <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam consequat lorem at est congue, non consequat lacus iaculis. Integer euismod...</p>
441
+ <p><a href="http://mailpoet.info/impact-and-legacy-of-2018-fifa-world-cup-russia-facts-and-figures/">Read More</a></p>',
442
+ ),
443
+ ),
444
+ ),
445
+ array(
446
+ 'type' => 'container',
447
+ 'orientation' => 'vertical',
448
+ 'styles' => array(
449
+ 'block' => array(
450
+ 'backgroundColor' => 'transparent',
451
+ ),
452
+ ),
453
+ 'blocks' => array(
454
+ array(
455
+ 'type' => 'image',
456
+ 'link' => 'http://mailpoet.info/linekers-life-changing-treble/',
457
+ 'src' => $this->template_image_url . '/2867790_full-lnd.jpg',
458
+ 'alt' => 'Lineker’s life-changing treble',
459
+ 'fullWidth' => false,
460
+ 'width' => 652,
461
+ 'height' => 366,
462
+ 'styles' => array(
463
+ 'block' => array(
464
+ 'textAlign' => 'center',
465
+ ),
466
+ ),
467
+ ),
468
+
469
+ array(
470
+ 'type' => 'text',
471
+ 'text' => '<h3 style="text-align: left;" data-post-id="1929"><strong>Lineker&rsquo;s life-changing treble</strong></h3>
472
+ <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam consequat lorem at est congue, non consequat lacus iaculis. Integer euismod mauris velit&nbsp;<span style="background-color: inherit;">consequat lorem at est congue...</span></p>
473
+ <p><a href="http://mailpoet.info/linekers-life-changing-treble/">Read More</a></p>',
474
+ ),
475
+ ),
476
+ ),
477
+ ),
478
+ ),
479
+ array(
480
+ 'type' => 'container',
481
+ 'orientation' => 'horizontal',
482
+ 'styles' => array(
483
+ 'block' => array(
484
+ 'backgroundColor' => '#f8f8f8',
485
+ ),
486
+ ),
487
+ 'blocks' => array(
488
+ array(
489
+ 'type' => 'container',
490
+ 'orientation' => 'vertical',
491
+ 'styles' => array(
492
+ 'block' => array(
493
+ 'backgroundColor' => 'transparent',
494
+ ),
495
+ ),
496
+ 'blocks' => array(
497
+ array(
498
+ 'type' => 'spacer',
499
+ 'styles' => array(
500
+ 'block' => array(
501
+ 'backgroundColor' => '#efefef',
502
+ 'height' => '20px',
503
+ ),
504
+ ),
505
+ ),
506
+ array(
507
+ 'type' => 'image',
508
+ 'link' => '',
509
+ 'src' => $this->template_image_url . '/Sports-Football-Divider-2.png',
510
+ 'alt' => 'Sports-Football-Divider-2',
511
+ 'fullWidth' => true,
512
+ 'width' => '1280px',
513
+ 'height' => '50px',
514
+ 'styles' => array(
515
+ 'block' => array(
516
+ 'textAlign' => 'center',
517
+ ),
518
+ ),
519
+ ),
520
+ ),
521
+ ),
522
+ ),
523
+ ),
524
+ array(
525
+ 'type' => 'container',
526
+ 'orientation' => 'horizontal',
527
+ 'styles' => array(
528
+ 'block' => array(
529
+ 'backgroundColor' => '#222222',
530
+ ),
531
+ ),
532
+ 'blocks' => array(
533
+ array(
534
+ 'type' => 'container',
535
+ 'orientation' => 'vertical',
536
+ 'styles' => array(
537
+ 'block' => array(
538
+ 'backgroundColor' => 'transparent',
539
+ ),
540
+ ),
541
+ 'blocks' => array(
542
+ array(
543
+ 'type' => 'image',
544
+ 'link' => '',
545
+ 'src' => $this->template_image_url . '/Sports-Football-Footer-1.png',
546
+ 'alt' => 'Sports-Football-Footer',
547
+ 'fullWidth' => true,
548
+ 'width' => '1280px',
549
+ 'height' => '500px',
550
+ 'styles' => array(
551
+ 'block' => array(
552
+ 'textAlign' => 'center',
553
+ ),
554
+ ),
555
+ ),
556
+ array(
557
+ 'type' => 'spacer',
558
+ 'styles' => array(
559
+ 'block' => array(
560
+ 'backgroundColor' => '#da6110',
561
+ 'height' => '20px',
562
+ ),
563
+ ),
564
+ ),
565
+ ),
566
+ ),
567
+ ),
568
+ ),
569
+ array(
570
+ 'type' => 'container',
571
+ 'orientation' => 'horizontal',
572
+ 'styles' => array(
573
+ 'block' => array(
574
+ 'backgroundColor' => '#da6110',
575
+ ),
576
+ ),
577
+ 'blocks' => array(
578
+ array(
579
+ 'type' => 'container',
580
+ 'orientation' => 'vertical',
581
+ 'styles' => array(
582
+ 'block' => array(
583
+ 'backgroundColor' => 'transparent',
584
+ ),
585
+ ),
586
+ 'blocks' => array(
587
+ array(
588
+ 'type' => 'social',
589
+ 'iconSet' => 'full-symbol-grey',
590
+ 'icons' => array(
591
+ array(
592
+ 'type' => 'socialIcon',
593
+ 'iconType' => 'facebook',
594
+ 'link' => 'http://www.facebook.com',
595
+ 'image' => $this->social_icon_url . '/08-full-symbol-grey/Facebook.png',
596
+ 'height' => '32px',
597
+ 'width' => '32px',
598
+ 'text' => 'Facebook',
599
+ ),
600
+ array(
601
+ 'type' => 'socialIcon',
602
+ 'iconType' => 'twitter',
603
+ 'link' => 'http://www.twitter.com',
604
+ 'image' => $this->social_icon_url . '/08-full-symbol-grey/Twitter.png',
605
+ 'height' => '32px',
606
+ 'width' => '32px',
607
+ 'text' => 'Twitter',
608
+ ),
609
+ array(
610
+ 'type' => 'socialIcon',
611
+ 'iconType' => 'youtube',
612
+ 'link' => 'http://www.youtube.com',
613
+ 'image' => $this->social_icon_url . '/08-full-symbol-grey/Youtube.png',
614
+ 'height' => '32px',
615
+ 'width' => '32px',
616
+ 'text' => 'Youtube',
617
+ ),
618
+ array(
619
+ 'type' => 'socialIcon',
620
+ 'iconType' => 'instagram',
621
+ 'link' => 'http://instagram.com',
622
+ 'image' => $this->social_icon_url . '/08-full-symbol-grey/Instagram.png',
623
+ 'height' => '32px',
624
+ 'width' => '32px',
625
+ 'text' => 'Instagram',
626
+ ),
627
+ ),
628
+ ),
629
+ ),
630
+ ),
631
+ ),
632
+ ),
633
+ array(
634
+ 'type' => 'container',
635
+ 'orientation' => 'horizontal',
636
+ 'styles' => array(
637
+ 'block' => array(
638
+ 'backgroundColor' => '#b55311',
639
+ ),
640
+ ),
641
+ 'blocks' => array(
642
+ array(
643
+ 'type' => 'container',
644
+ 'orientation' => 'vertical',
645
+ 'styles' => array(
646
+ 'block' => array(
647
+ 'backgroundColor' => 'transparent',
648
+ ),
649
+ ),
650
+ 'blocks' => array(
651
+ array(
652
+ 'type' => 'spacer',
653
+ 'styles' => array(
654
+ 'block' => array(
655
+ 'backgroundColor' => '#da6110',
656
+ 'height' => '20px',
657
+ ),
658
+ ),
659
+ ),
660
+ array(
661
+ 'type' => 'spacer',
662
+ 'styles' => array(
663
+ 'block' => array(
664
+ 'backgroundColor' => 'transparent',
665
+ 'height' => '20px',
666
+ ),
667
+ ),
668
+ ),
669
+ array(
670
+ 'type' => 'image',
671
+ 'link' => '',
672
+ 'src' => $this->template_image_url . '/Sports-Football-Logo-Small.png',
673
+ 'alt' => 'Sports-Football-Logo-Small',
674
+ 'fullWidth' => false,
675
+ 'width' => '772px',
676
+ 'height' => '171px',
677
+ 'styles' => array(
678
+ 'block' => array(
679
+ 'textAlign' => 'center',
680
+ ),
681
+ ),
682
+ ),
683
+ array(
684
+ 'type' => 'spacer',
685
+ 'styles' => array(
686
+ 'block' => array(
687
+ 'backgroundColor' => 'transparent',
688
+ 'height' => '20px',
689
+ ),
690
+ ),
691
+ ),
692
+ ),
693
+ ),
694
+ array(
695
+ 'type' => 'container',
696
+ 'orientation' => 'vertical',
697
+ 'styles' => array(
698
+ 'block' => array(
699
+ 'backgroundColor' => 'transparent',
700
+ ),
701
+ ),
702
+ 'blocks' => array(
703
+ array(
704
+ 'type' => 'spacer',
705
+ 'styles' => array(
706
+ 'block' => array(
707
+ 'backgroundColor' => '#da6110',
708
+ 'height' => '20px',
709
+ ),
710
+ ),
711
+ ),
712
+ array(
713
+ 'type' => 'spacer',
714
+ 'styles' => array(
715
+ 'block' => array(
716
+ 'backgroundColor' => 'transparent',
717
+ 'height' => '20px',
718
+ ),
719
+ ),
720
+ ),
721
+ array(
722
+ 'type' => 'footer',
723
+ 'text' => '<p><a href="[link:subscription_unsubscribe_url]">Unsubscribe</a> | <a href="[link:subscription_manage_url]">Manage subscription</a><br />Add your postal address here!</p>',
724
+ 'styles' => array(
725
+ 'block' => array(
726
+ 'backgroundColor' => 'transparent',
727
+ ),
728
+ 'text' => array(
729
+ 'fontColor' => '#ffffff',
730
+ 'fontFamily' => 'Tahoma',
731
+ 'fontSize' => '12px',
732
+ 'textAlign' => 'right',
733
+ ),
734
+ 'link' => array(
735
+ 'fontColor' => '#ffffff',
736
+ 'textDecoration' => 'underline',
737
+ ),
738
+ ),
739
+ ),
740
+ ),
741
+ ),
742
+ ),
743
+ ),
744
+ ),
745
+ ),
746
+ 'globalStyles' => array(
747
+ 'text' => array(
748
+ 'fontColor' => '#000000',
749
+ 'fontFamily' => 'Tahoma',
750
+ 'fontSize' => '14px',
751
+ ),
752
+ 'h1' => array(
753
+ 'fontColor' => '#111111',
754
+ 'fontFamily' => 'Tahoma',
755
+ 'fontSize' => '30px',
756
+ ),
757
+ 'h2' => array(
758
+ 'fontColor' => '#da6110',
759
+ 'fontFamily' => 'Tahoma',
760
+ 'fontSize' => '24px',
761
+ ),
762
+ 'h3' => array(
763
+ 'fontColor' => '#333333',
764
+ 'fontFamily' => 'Tahoma',
765
+ 'fontSize' => '18px',
766
+ ),
767
+ 'link' => array(
768
+ 'fontColor' => '#da6110',
769
+ 'textDecoration' => 'underline',
770
+ ),
771
+ 'wrapper' => array(
772
+ 'backgroundColor' => '#ffffff',
773
+ ),
774
+ 'body' => array(
775
+ 'backgroundColor' => '#222222',
776
+ ),
777
+ ),
778
+ );
779
+ }
780
+
781
+ private function getThumbnail() {
782
+ return $this->template_image_url . '/world-cup.jpg';
783
+ }
784
+
785
+ }
lib/Config/PopulatorData/Templates/YogaStudio.php ADDED
@@ -0,0 +1,793 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace MailPoet\Config\PopulatorData\Templates;
4
+
5
+ class YogaStudio {
6
+
7
+ private $template_image_url;
8
+ private $social_icon_url;
9
+
10
+ function __construct($assets_url) {
11
+ $this->template_image_url = '//ps.w.org/mailpoet/assets/newsletter-templates/yoga_studio';
12
+ $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons';
13
+ }
14
+
15
+ function get() {
16
+ return array(
17
+ 'name' => __("Yoga Studio", 'mailpoet'),
18
+ 'description' => __("Salute the sun and your subscribers.", 'mailpoet'),
19
+ 'readonly' => 1,
20
+ 'thumbnail' => $this->getThumbnail(),
21
+ 'body' => json_encode($this->getBody()),
22
+ );
23
+ }
24
+
25
+ private function getBody() {
26
+ return array(
27
+ 'content' => array(
28
+ 'type' => 'container',
29
+ 'orientation' => 'vertical',
30
+ 'styles' => array(
31
+ 'block' => array(
32
+ 'backgroundColor' => 'transparent',
33
+ ),
34
+ ),
35
+ 'blocks' => array(
36
+ 0 => array(
37
+ 'type' => 'container',
38
+ 'orientation' => 'horizontal',
39
+ 'styles' => array(
40
+ 'block' => array(
41
+ 'backgroundColor' => '#f8f8f8',
42
+ ),
43
+ ),
44
+ 'blocks' => array(
45
+ 0 => array(
46
+ 'type' => 'container',
47
+ 'orientation' => 'vertical',
48
+ 'styles' => array(
49
+ 'block' => array(
50
+ 'backgroundColor' => 'transparent',
51
+ ),
52
+ ),
53
+ 'blocks' => array(
54
+ 0 => array(
55
+ 'type' => 'spacer',
56
+ 'styles' => array(
57
+ 'block' => array(
58
+ 'backgroundColor' => '#1e2937',
59
+ 'height' => '20px',
60
+ ),
61
+ ),
62
+ ),
63
+ ),
64
+ ),
65
+ ),
66
+ ),
67
+ 1 => array(
68
+ 'type' => 'container',
69
+ 'orientation' => 'horizontal',
70
+ 'styles' => array(
71
+ 'block' => array(
72
+ 'backgroundColor' => '#ffffff',
73
+ ),
74
+ ),
75
+ 'blocks' => array(
76
+ 0 => array(
77
+ 'type' => 'container',
78
+ 'orientation' => 'vertical',
79
+ 'styles' => array(
80
+ 'block' => array(
81
+ 'backgroundColor' => 'transparent',
82
+ ),
83
+ ),
84
+ 'blocks' => array(
85
+ 0 => array(
86
+ 'type' => 'image',
87
+ 'link' => '',
88
+ 'src' => $this->template_image_url . '/yoga-1.png',
89
+ 'alt' => 'yoga-1',
90
+ 'fullWidth' => true,
91
+ 'width' => '1280px',
92
+ 'height' => '740px',
93
+ 'styles' => array(
94
+ 'block' => array(
95
+ 'textAlign' => 'center',
96
+ ),
97
+ ),
98
+ ),
99
+ 1 => array(
100
+ 'type' => 'spacer',
101
+ 'styles' => array(
102
+ 'block' => array(
103
+ 'backgroundColor' => 'transparent',
104
+ 'height' => '30px',
105
+ ),
106
+ ),
107
+ ),
108
+ 2 => array(
109
+ 'type' => 'text',
110
+ 'text' => '<h2 style="text-align: center;"><strong>Here\'s your classes for this week:</strong></h2>',
111
+ ),
112
+ 3 => array(
113
+ 'type' => 'spacer',
114
+ 'styles' => array(
115
+ 'block' => array(
116
+ 'backgroundColor' => 'transparent',
117
+ 'height' => '20px',
118
+ ),
119
+ ),
120
+ ),
121
+ ),
122
+ ),
123
+ ),
124
+ ),
125
+ 2 => array(
126
+ 'type' => 'container',
127
+ 'orientation' => 'horizontal',
128
+ 'styles' => array(
129
+ 'block' => array(
130
+ 'backgroundColor' => 'transparent',
131
+ ),
132
+ ),
133
+ 'blocks' => array(
134
+ 0 => array(
135
+ 'type' => 'container',
136
+ 'orientation' => 'vertical',
137
+ 'styles' => array(
138
+ 'block' => array(
139
+ 'backgroundColor' => 'transparent',
140
+ ),
141
+ ),
142
+ 'blocks' => array(
143
+ 0 => array(
144
+ 'type' => 'text',
145
+ 'text' => '<h3><strong><span style="color: #83bd31;"><em>Weekdays</em></span></strong></h3>
146
+ <p><strong>Monday</strong>: 7am, 9am, 11am, 3pm and 5pm.</p>
147
+ <p><strong>Tuesday</strong>: 7am, 9am, 11am, 3pm and 5pm.</p>
148
+ <p><strong>Wednesday</strong>: 7am, 9am, 11am, 3pm and 5pm.</p>
149
+ <p><strong>Thursday</strong>:&nbsp;CLOSED FOR PRIVATE CLASS.</p>
150
+ <p><strong>Friday</strong>: 7am, 9am, 11am,&nbsp;and 3pm.</p>',
151
+ ),
152
+ ),
153
+ ),
154
+ 1 => array(
155
+ 'type' => 'container',
156
+ 'orientation' => 'vertical',
157
+ 'styles' => array(
158
+ 'block' => array(
159
+ 'backgroundColor' => 'transparent',
160
+ ),
161
+ ),
162
+ 'blocks' => array(
163
+ 0 => array(
164
+ 'type' => 'text',
165
+ 'text' => '<h3><strong><span style="color: #83bd31;"><em>Weekend</em></span></strong></h3>
166
+ <p><strong>Saturday</strong>: 7am, 9am, 11am, 3pm and 5pm.</p>
167
+ <p><strong>Sunday</strong>: 7am, 9am, 11am, 3pm and 5pm.</p>
168
+ <p></p>',
169
+ ),
170
+ ),
171
+ ),
172
+ ),
173
+ ),
174
+ 3 => array(
175
+ 'type' => 'container',
176
+ 'orientation' => 'horizontal',
177
+ 'styles' => array(
178
+ 'block' => array(
179
+ 'backgroundColor' => 'transparent',
180
+ ),
181
+ ),
182
+ 'blocks' => array(
183
+ 0 => array(
184
+ 'type' => 'container',
185
+ 'orientation' => 'vertical',
186
+ 'styles' => array(
187
+ 'block' => array(
188
+ 'backgroundColor' => 'transparent',
189
+ ),
190
+ ),
191
+ 'blocks' => array(
192
+ 0 => array(
193
+ 'type' => 'spacer',
194
+ 'styles' => array(
195
+ 'block' => array(
196
+ 'backgroundColor' => 'transparent',
197
+ 'height' => '20px',
198
+ ),
199
+ ),
200
+ ),
201
+ 1 => array(
202
+ 'type' => 'divider',
203
+ 'styles' => array(
204
+ 'block' => array(
205
+ 'backgroundColor' => 'transparent',
206
+ 'padding' => '22px',
207
+ 'borderStyle' => 'solid',
208
+ 'borderWidth' => '1px',
209
+ 'borderColor' => '#d5d5d5',
210
+ ),
211
+ ),
212
+ ),
213
+ 2 => array(
214
+ 'type' => 'text',
215
+ 'text' => '<h3 style="text-align: center;"><span style="font-weight: 600;">Meet the instructors</span></h3>',
216
+ ),
217
+ ),
218
+ ),
219
+ ),
220
+ ),
221
+ 4 => array(
222
+ 'type' => 'container',
223
+ 'orientation' => 'horizontal',
224
+ 'styles' => array(
225
+ 'block' => array(
226
+ 'backgroundColor' => 'transparent',
227
+ ),
228
+ ),
229
+ 'blocks' => array(
230
+ 0 => array(
231
+ 'type' => 'container',
232
+ 'orientation' => 'vertical',
233
+ 'styles' => array(
234
+ 'block' => array(
235
+ 'backgroundColor' => 'transparent',
236
+ ),
237
+ ),
238
+ 'blocks' => array(
239
+ 0 => array(
240
+ 'type' => 'spacer',
241
+ 'styles' => array(
242
+ 'block' => array(
243
+ 'backgroundColor' => 'transparent',
244
+ 'height' => '20px',
245
+ ),
246
+ ),
247
+ ),
248
+ 1 => array(
249
+ 'type' => 'image',
250
+ 'link' => '',
251
+ 'src' => $this->template_image_url . '/yoga-person-1.png',
252
+ 'alt' => 'yoga-person-1',
253
+ 'fullWidth' => false,
254
+ 'width' => '400px',
255
+ 'height' => '400px',
256
+ 'styles' => array(
257
+ 'block' => array(
258
+ 'textAlign' => 'center',
259
+ ),
260
+ ),
261
+ ),
262
+ 2 => array(
263
+ 'type' => 'text',
264
+ 'text' => '<h3 style="text-align: center;"><span style="color: #83bd31;"><span style="font-weight: 600;">Maria Smith</span></span></h3>
265
+ <p style="text-align: center;">Nullam hendrerit feugiat feugiat. Praesent mollis ante lacus, quis tempor leo sagittis vel. Donec sagittis eros at felis venenatis ultricies.</p>',
266
+ ),
267
+ 3 => array(
268
+ 'type' => 'button',
269
+ 'text' => 'Find Out More',
270
+ 'url' => '',
271
+ 'styles' => array(
272
+ 'block' => array(
273
+ 'backgroundColor' => '#83bd31',
274
+ 'borderColor' => '#83bd31',
275
+ 'borderWidth' => '1px',
276
+ 'borderRadius' => '40px',
277
+ 'borderStyle' => 'solid',
278
+ 'width' => '180px',
279
+ 'lineHeight' => '30px',
280
+ 'fontColor' => '#ffffff',
281
+ 'fontFamily' => 'Arial',
282
+ 'fontSize' => '14px',
283
+ 'fontWeight' => 'normal',
284
+ 'textAlign' => 'center',
285
+ ),
286
+ ),
287
+ ),
288
+ 4 => array(
289
+ 'type' => 'spacer',
290
+ 'styles' => array(
291
+ 'block' => array(
292
+ 'backgroundColor' => 'transparent',
293
+ 'height' => '30px',
294
+ ),
295
+ ),
296
+ ),
297
+ ),
298
+ ),
299
+ 1 => array(
300
+ 'type' => 'container',
301
+ 'orientation' => 'vertical',
302
+ 'styles' => array(
303
+ 'block' => array(
304
+ 'backgroundColor' => 'transparent',
305
+ ),
306
+ ),
307
+ 'blocks' => array(
308
+ 0 => array(
309
+ 'type' => 'spacer',
310
+ 'styles' => array(
311
+ 'block' => array(
312
+ 'backgroundColor' => 'transparent',
313
+ 'height' => '20px',
314
+ ),
315
+ ),
316
+ ),
317
+ 1 => array(
318
+ 'type' => 'image',
319
+ 'link' => '',
320
+ 'src' => $this->template_image_url . '/yoga-person-2.png',
321
+ 'alt' => 'yoga-person-2',
322
+ 'fullWidth' => false,
323
+ 'width' => '400px',
324
+ 'height' => '400px',
325
+ 'styles' => array(
326
+ 'block' => array(
327
+ 'textAlign' => 'center',
328
+ ),
329
+ ),
330
+ ),
331
+ 2 => array(
332
+ 'type' => 'text',
333
+ 'text' => '<h3 style="text-align: center;"><span style="color: #83bd31;"><span style="font-weight: 600;">Fiona&nbsp;Davies</span></span></h3>
334
+ <p style="text-align: center;">Nullam hendrerit feugiat feugiat. Praesent mollis ante lacus, quis tempor leo sagittis vel. Donec sagittis eros at felis venenatis ultricies.</p>',
335
+ ),
336
+ 3 => array(
337
+ 'type' => 'button',
338
+ 'text' => 'Find Out More',
339
+ 'url' => '',
340
+ 'styles' => array(
341
+ 'block' => array(
342
+ 'backgroundColor' => '#83bd31',
343
+ 'borderColor' => '#83bd31',
344
+ 'borderWidth' => '1px',
345
+ 'borderRadius' => '40px',
346
+ 'borderStyle' => 'solid',
347
+ 'width' => '180px',
348
+ 'lineHeight' => '30px',
349
+ 'fontColor' => '#ffffff',
350
+ 'fontFamily' => 'Arial',
351
+ 'fontSize' => '14px',
352
+ 'fontWeight' => 'normal',
353
+ 'textAlign' => 'center',
354
+ ),
355
+ ),
356
+ ),
357
+ 4 => array(
358
+ 'type' => 'spacer',
359
+ 'styles' => array(
360
+ 'block' => array(
361
+ 'backgroundColor' => 'transparent',
362
+ 'height' => '30px',
363
+ ),
364
+ ),
365
+ ),
366
+ ),
367
+ ),
368
+ 2 => array(
369
+ 'type' => 'container',
370
+ 'orientation' => 'vertical',
371
+ 'styles' => array(
372
+ 'block' => array(
373
+ 'backgroundColor' => 'transparent',
374
+ ),
375
+ ),
376
+ 'blocks' => array(
377
+ 0 => array(
378
+ 'type' => 'spacer',
379
+ 'styles' => array(
380
+ 'block' => array(
381
+ 'backgroundColor' => 'transparent',
382
+ 'height' => '20px',
383
+ ),
384
+ ),
385
+ ),
386
+ 1 => array(
387
+ 'type' => 'image',
388
+ 'link' => '',
389
+ 'src' => $this->template_image_url . '/yoga-person-3.png',
390
+ 'alt' => 'yoga-person-3',
391
+ 'fullWidth' => false,
392
+ 'width' => '400px',
393
+ 'height' => '400px',
394
+ 'styles' => array(
395
+ 'block' => array(
396
+ 'textAlign' => 'center',
397
+ ),
398
+ ),
399
+ ),
400
+ 2 => array(
401
+ 'type' => 'text',
402
+ 'text' => '<h3 style="text-align: center;"><span style="color: #83bd31;"><span style="font-weight: 600;">Matthew&nbsp;Johnson</span></span></h3>
403
+ <p style="text-align: center;">Nullam hendrerit feugiat feugiat. Praesent mollis ante lacus, quis tempor leo sagittis vel. Donec sagittis eros at felis venenatis ultricies.</p>',
404
+ ),
405
+ 3 => array(
406
+ 'type' => 'button',
407
+ 'text' => 'Find Out More',
408
+ 'url' => '',
409
+ 'styles' => array(
410
+ 'block' => array(
411
+ 'backgroundColor' => '#83bd31',
412
+ 'borderColor' => '#83bd31',
413
+ 'borderWidth' => '1px',
414
+ 'borderRadius' => '40px',
415
+ 'borderStyle' => 'solid',
416
+ 'width' => '180px',
417
+ 'lineHeight' => '31px',
418
+ 'fontColor' => '#ffffff',
419
+ 'fontFamily' => 'Arial',
420
+ 'fontSize' => '14px',
421
+ 'fontWeight' => 'normal',
422
+ 'textAlign' => 'center',
423
+ ),
424
+ ),
425
+ ),
426
+ 4 => array(
427
+ 'type' => 'spacer',
428
+ 'styles' => array(
429
+ 'block' => array(
430
+ 'backgroundColor' => 'transparent',
431
+ 'height' => '30px',
432
+ ),
433
+ ),
434
+ ),
435
+ ),
436
+ ),
437
+ ),
438
+ ),
439
+ 5 => array(
440
+ 'type' => 'container',
441
+ 'orientation' => 'horizontal',
442
+ 'styles' => array(
443
+ 'block' => array(
444
+ 'backgroundColor' => '#83bd31',
445
+ ),
446
+ ),
447
+ 'blocks' => array(
448
+ 0 => array(
449
+ 'type' => 'container',
450
+ 'orientation' => 'vertical',
451
+ 'styles' => array(
452
+ 'block' => array(
453
+ 'backgroundColor' => 'transparent',
454
+ ),
455
+ ),
456
+ 'blocks' => array(
457
+ 0 => array(
458
+ 'type' => 'spacer',
459
+ 'styles' => array(
460
+ 'block' => array(
461
+ 'backgroundColor' => 'transparent',
462
+ 'height' => '40px',
463
+ ),
464
+ ),
465
+ ),
466
+ 1 => array(
467
+ 'type' => 'text',
468
+ 'text' => '<p><strong>Pose of the week:</strong></p>
469
+ <h2>Virabhadrasana I</h2>
470
+ <p>The myth is that the powerful priest Daksha made a great yagna (ritual sacrifice) but did not invite his youngest daughter Sati and her husband Shiva, the supreme ruler of the universe. Sati found out and decided to go alone to the yagna.</p>
471
+ <p></p>
472
+ <p>When she arrived, Sati entered into an argument with her father. Unable to withstand his insults, she spoke a vow to her father, &ldquo;Since it was you who gave me this body, I no longer wish to be associated with it.&rdquo;</p>',
473
+ ),
474
+ 2 => array(
475
+ 'type' => 'spacer',
476
+ 'styles' => array(
477
+ 'block' => array(
478
+ 'backgroundColor' => 'transparent',
479
+ 'height' => '40px',
480
+ ),
481
+ ),
482
+ ),
483
+ ),
484
+ ),
485
+ 1 => array(
486
+ 'type' => 'container',
487
+ 'orientation' => 'vertical',
488
+ 'styles' => array(
489
+ 'block' => array(
490
+ 'backgroundColor' => 'transparent',
491
+ ),
492
+ ),
493
+ 'blocks' => array(
494
+ 0 => array(
495
+ 'type' => 'spacer',
496
+ 'styles' => array(
497
+ 'block' => array(
498
+ 'backgroundColor' => 'transparent',
499
+ 'height' => '40px',
500
+ ),
501
+ ),
502
+ ),
503
+ 1 => array(
504
+ 'type' => 'image',
505
+ 'link' => '',
506
+ 'src' => $this->template_image_url . '/yoga-pose.png',
507
+ 'alt' => 'yoga-pose',
508
+ 'fullWidth' => false,
509
+ 'width' => '400px',
510
+ 'height' => '400px',
511
+ 'styles' => array(
512
+ 'block' => array(
513
+ 'textAlign' => 'center',
514
+ ),
515
+ ),
516
+ ),
517
+ 2 => array(
518
+ 'type' => 'spacer',
519
+ 'styles' => array(
520
+ 'block' => array(
521
+ 'backgroundColor' => 'transparent',
522
+ 'height' => '35px',
523
+ ),
524
+ ),
525
+ ),
526
+ ),
527
+ ),
528
+ ),
529
+ ),
530
+ 6 => array(
531
+ 'type' => 'container',
532
+ 'orientation' => 'horizontal',
533
+ 'styles' => array(
534
+ 'block' => array(
535
+ 'backgroundColor' => '#ffffff',
536
+ ),
537
+ ),
538
+ 'blocks' => array(
539
+ 0 => array(
540
+ 'type' => 'container',
541
+ 'orientation' => 'vertical',
542
+ 'styles' => array(
543
+ 'block' => array(
544
+ 'backgroundColor' => 'transparent',
545
+ ),
546
+ ),
547
+ 'blocks' => array(
548
+ 0 => array(
549
+ 'type' => 'spacer',
550
+ 'styles' => array(
551
+ 'block' => array(
552
+ 'backgroundColor' => 'transparent',
553
+ 'height' => '40px',
554
+ ),
555
+ ),
556
+ ),
557
+ 1 => array(
558
+ 'type' => 'text',
559
+ 'text' => '<h3 style="text-align: center;"><span style="font-weight: 600;">Quote of the week</span></h3>',
560
+ ),
561
+ 2 => array(
562
+ 'type' => 'text',
563
+ 'text' => '<h2 style="text-align: center;"><em>Be a lamp to yourself. Be your own confidence. Hold on to the truth within yourself as to the only truth.</em></h2>
564
+ <p style="text-align: center;"><span style="font-family: Arial, sans-serif; font-size: 14px; text-align: center; color: #999999;">Buddha</span><em></em></p>',
565
+ ),
566
+ 3 => array(
567
+ 'type' => 'spacer',
568
+ 'styles' => array(
569
+ 'block' => array(
570
+ 'backgroundColor' => '#ffffff',
571
+ 'height' => '20px',
572
+ ),
573
+ ),
574
+ ),
575
+ 4 => array(
576
+ 'type' => 'divider',
577
+ 'styles' => array(
578
+ 'block' => array(
579
+ 'backgroundColor' => '#d5d5d5',
580
+ 'padding' => '15px',
581
+ 'borderStyle' => 'solid',
582
+ 'borderWidth' => '1px',
583
+ 'borderColor' => '#b3b3b3',
584
+ ),
585
+ ),
586
+ ),
587
+ ),
588
+ ),
589
+ ),
590
+ ),
591
+ 7 => array(
592
+ 'type' => 'container',
593
+ 'orientation' => 'horizontal',
594
+ 'styles' => array(
595
+ 'block' => array(
596
+ 'backgroundColor' => '#d5d5d5',
597
+ ),
598
+ ),
599
+ 'blocks' => array(
600
+ 0 => array(
601
+ 'type' => 'container',
602
+ 'orientation' => 'vertical',
603
+ 'styles' => array(
604
+ 'block' => array(
605
+ 'backgroundColor' => 'transparent',
606
+ ),
607
+ ),
608
+ 'blocks' => array(
609
+ 0 => array(
610
+ 'type' => 'image',
611
+ 'link' => '',
612
+ 'src' => $this->template_image_url . '/yoga-logo-small.png',
613
+ 'alt' => 'yoga-logo-small',
614
+ 'fullWidth' => false,
615
+ 'width' => '50px',
616
+ 'height' => '50px',
617
+ 'styles' => array(
618
+ 'block' => array(
619
+ 'textAlign' => 'center',
620
+ ),
621
+ ),
622
+ ),
623
+ 1 => array(
624
+ 'type' => 'social',
625
+ 'iconSet' => 'full-symbol-black',
626
+ 'icons' => array(
627
+ 0 => array(
628
+ 'type' => 'socialIcon',
629
+ 'iconType' => 'facebook',
630
+ 'link' => 'http://www.facebook.com',
631
+ 'image' => $this->social_icon_url . '/07-full-symbol-black/Facebook.png',
632
+ 'height' => '32px',
633
+ 'width' => '32px',
634
+ 'text' => 'Facebook',
635
+ ),
636
+ 1 => array(
637
+ 'type' => 'socialIcon',
638
+ 'iconType' => 'twitter',
639
+ 'link' => 'http://www.twitter.com',
640
+ 'image' => $this->social_icon_url . '/07-full-symbol-black/Twitter.png',
641
+ 'height' => '32px',
642
+ 'width' => '32px',
643
+ 'text' => 'Twitter',
644
+ ),
645
+ 2 => array(
646
+ 'type' => 'socialIcon',
647
+ 'iconType' => 'instagram',
648
+ 'link' => 'http://instagram.com',
649
+ 'image' => $this->social_icon_url . '/07-full-symbol-black/Instagram.png',
650
+ 'height' => '32px',
651
+ 'width' => '32px',
652
+ 'text' => 'Instagram',
653
+ ),
654
+ 3 => array(
655
+ 'type' => 'socialIcon',
656
+ 'iconType' => 'youtube',
657
+ 'link' => 'http://www.youtube.com',
658
+ 'image' => $this->social_icon_url . '/07-full-symbol-black/Youtube.png',
659
+ 'height' => '32px',
660
+ 'width' => '32px',
661
+ 'text' => 'Youtube',
662
+ ),
663
+ ),
664
+ ),
665
+ ),
666
+ ),
667
+ 1 => array(
668
+ 'type' => 'container',
669
+ 'orientation' => 'vertical',
670
+ 'styles' => array(
671
+ 'block' => array(
672
+ 'backgroundColor' => 'transparent',
673
+ ),
674
+ ),
675
+ 'blocks' => array(
676
+ 0 => array(
677
+ 'type' => 'text',
678
+ 'text' => '<p style="font-size: 13px; text-align: center;"><strong>Yoga Studio</strong></p>
679
+ <p style="font-size: 11px; text-align: center;">Address Line 1</p>
680
+ <p style="font-size: 11px; text-align: center;">Address Line 2</p>
681
+ <p style="font-size: 11px; text-align: center;">City/Town</p>
682
+ <p style="font-size: 11px; text-align: center;">Country</p>',
683
+ ),
684
+ ),
685
+ ),
686
+ 2 => array(
687
+ 'type' => 'container',
688
+ 'orientation' => 'vertical',
689
+ 'styles' => array(
690
+ 'block' => array(
691
+ 'backgroundColor' => 'transparent',
692
+ ),
693
+ ),
694
+ 'blocks' => array(
695
+ 0 => array(
696
+ 'type' => 'footer',
697
+ 'text' => '<p><a href="[link:subscription_unsubscribe_url]">Unsubscribe</a></p><p><a href="[link:subscription_manage_url]">Manage subscription</a></p>',
698
+ 'styles' => array(
699
+ 'block' => array(
700
+ 'backgroundColor' => 'transparent',
701
+ ),
702
+ 'text' => array(
703
+ 'fontColor' => '#222222',
704
+ 'fontFamily' => 'Arial',
705
+ 'fontSize' => '11px',
706
+ 'textAlign' => 'center',
707
+ ),
708
+ 'link' => array(
709
+ 'fontColor' => '#000000',
710
+ 'textDecoration' => 'underline',
711
+ ),
712
+ ),
713
+ ),
714
+ ),
715
+ ),
716
+ ),
717
+ ),
718
+ 8 => array(
719
+ 'type' => 'container',
720
+ 'orientation' => 'horizontal',
721
+ 'styles' => array(
722
+ 'block' => array(
723
+ 'backgroundColor' => 'transparent',
724
+ ),
725
+ ),
726
+ 'blocks' => array(
727
+ 0 => array(
728
+ 'type' => 'container',
729
+ 'orientation' => 'vertical',
730
+ 'styles' => array(
731
+ 'block' => array(
732
+ 'backgroundColor' => 'transparent',
733
+ ),
734
+ ),
735
+ 'blocks' => array(
736
+ 0 => array(
737
+ 'type' => 'divider',
738
+ 'styles' => array(
739
+ 'block' => array(
740
+ 'backgroundColor' => '#d5d5d5',
741
+ 'padding' => '13px',
742
+ 'borderStyle' => 'solid',
743
+ 'borderWidth' => '1px',
744
+ 'borderColor' => '#aaaaaa',
745
+ ),
746
+ ),
747
+ ),
748
+ ),
749
+ ),
750
+ ),
751
+ ),
752
+ ),
753
+ ),
754
+ 'globalStyles' => array(
755
+ 'text' => array(
756
+ 'fontColor' => '#1e2937',
757
+ 'fontFamily' => 'Arial',
758
+ 'fontSize' => '13px',
759
+ ),
760
+ 'h1' => array(
761
+ 'fontColor' => '#1e2937',
762
+ 'fontFamily' => 'Arial',
763
+ 'fontSize' => '30px',
764
+ ),
765
+ 'h2' => array(
766
+ 'fontColor' => '#1e2937',
767
+ 'fontFamily' => 'Arial',
768
+ 'fontSize' => '24px',
769
+ ),
770
+ 'h3' => array(
771
+ 'fontColor' => '#1e2937',
772
+ 'fontFamily' => 'Arial',
773
+ 'fontSize' => '20px',
774
+ ),
775
+ 'link' => array(
776
+ 'fontColor' => '#83bd31',
777
+ 'textDecoration' => 'underline',
778
+ ),
779
+ 'wrapper' => array(
780
+ 'backgroundColor' => '#ffffff',
781
+ ),
782
+ 'body' => array(
783
+ 'backgroundColor' => '#1e2937',
784
+ ),
785
+ ),
786
+ );
787
+ }
788
+
789
+ private function getThumbnail() {
790
+ return $this->template_image_url . '/yoga-studio.jpg';
791
+ }
792
+
793
+ }
lib/Config/Widget.php CHANGED
@@ -112,6 +112,13 @@ class Widget {
112
  'ajax_url' => admin_url('admin-ajax.php'),
113
  'is_rtl' => (function_exists('is_rtl') ? (bool)is_rtl() : false)
114
  ));
 
 
 
 
 
 
 
115
  }
116
 
117
  function setupAdminWidgetPageDependencies() {
112
  'ajax_url' => admin_url('admin-ajax.php'),
113
  'is_rtl' => (function_exists('is_rtl') ? (bool)is_rtl() : false)
114
  ));
115
+
116
+ $ajaxFailedErrorMessage = __('An error has happened while performing a request, please try again later.');
117
+ wp_add_inline_script(
118
+ 'mailpoet_public',
119
+ sprintf('MailPoet.I18n.add("ajaxFailedErrorMessage", "%s")', $ajaxFailedErrorMessage),
120
+ 'after'
121
+ );
122
  }
123
 
124
  function setupAdminWidgetPageDependencies() {
lib/Models/Model.php CHANGED
@@ -169,4 +169,15 @@ class Model extends \Sudzy\ValidModel {
169
  static function getTrashed() {
170
  return static::whereNotNull('deleted_at');
171
  }
 
 
 
 
 
 
 
 
 
 
 
172
  }
169
  static function getTrashed() {
170
  return static::whereNotNull('deleted_at');
171
  }
172
+
173
+ /**
174
+ * Rethrow PDOExceptions to prevent exposing sensitive data in stack traces
175
+ */
176
+ public static function __callStatic($method, $parameters) {
177
+ try {
178
+ return parent::__callStatic($method, $parameters);
179
+ } catch (\PDOException $e) {
180
+ throw new \Exception($e->getMessage());
181
+ }
182
+ }
183
  }
lib/Newsletter/AutomatedLatestContent.php CHANGED
@@ -39,11 +39,15 @@ class AutomatedLatestContent {
39
  'orderby' => 'date',
40
  'order' => ($args['sortBy'] === 'newest') ? 'DESC' : 'ASC',
41
  );
 
 
 
42
  if(isset($args['search'])) {
43
  $parameters['s'] = $args['search'];
44
  }
45
  if(isset($args['posts']) && is_array($args['posts'])) {
46
  $parameters['post__in'] = $args['posts'];
 
47
  }
48
  if(!empty($posts_to_exclude)) {
49
  $parameters['post__not_in'] = $posts_to_exclude;
39
  'orderby' => 'date',
40
  'order' => ($args['sortBy'] === 'newest') ? 'DESC' : 'ASC',
41
  );
42
+ if(!empty($args['offset']) && (int)$args['offset'] > 0) {
43
+ $parameters['offset'] = (int)$args['offset'];
44
+ }
45
  if(isset($args['search'])) {
46
  $parameters['s'] = $args['search'];
47
  }
48
  if(isset($args['posts']) && is_array($args['posts'])) {
49
  $parameters['post__in'] = $args['posts'];
50
+ $parameters['posts_per_page'] = -1; // Get all posts with matching IDs
51
  }
52
  if(!empty($posts_to_exclude)) {
53
  $parameters['post__not_in'] = $posts_to_exclude;
lib/Newsletter/Scheduler/Scheduler.php CHANGED
@@ -160,10 +160,11 @@ class Scheduler {
160
  return $relation->value;
161
  }
162
 
163
- static function getNextRunDate($schedule) {
 
164
  try {
165
  $schedule = \Cron\CronExpression::factory($schedule);
166
- $next_run_date = $schedule->getNextRunDate(Carbon::createFromTimestamp(current_time('timestamp')))
167
  ->format('Y-m-d H:i:s');
168
  } catch(\Exception $e) {
169
  $next_run_date = false;
160
  return $relation->value;
161
  }
162
 
163
+ static function getNextRunDate($schedule, $from_timestamp = false) {
164
+ $from_timestamp = ($from_timestamp) ? $from_timestamp : current_time('timestamp');
165
  try {
166
  $schedule = \Cron\CronExpression::factory($schedule);
167
+ $next_run_date = $schedule->getNextRunDate(Carbon::createFromTimestamp($from_timestamp))
168
  ->format('Y-m-d H:i:s');
169
  } catch(\Exception $e) {
170
  $next_run_date = false;
lib/Subscription/Form.php CHANGED
@@ -1,27 +1,29 @@
1
  <?php
 
2
  namespace MailPoet\Subscription;
3
 
4
  use MailPoet\API\JSON\API;
5
  use MailPoet\API\JSON\Response as APIResponse;
6
- use MailPoet\Util\Url;
7
 
8
  class Form {
9
- static function onSubmit() {
 
10
  $api = new API();
11
- $api->setRequestData($_REQUEST);
12
- $form_id = (!empty($_REQUEST['data']['form_id'])) ? (int)$_REQUEST['data']['form_id'] : false;
13
  $response = $api->processRoute();
14
  if($response->status !== APIResponse::STATUS_OK) {
15
- Url::redirectBack(
16
  array(
17
  'mailpoet_error' => ($form_id) ? $form_id : true,
18
  'mailpoet_success' => null
19
  )
20
  );
21
  } else {
22
- (isset($response->meta['redirect_url'])) ?
23
- Url::redirectTo($response->meta['redirect_url']) :
24
- Url::redirectBack(
25
  array(
26
  'mailpoet_success' => $form_id,
27
  'mailpoet_error' => null
1
  <?php
2
+
3
  namespace MailPoet\Subscription;
4
 
5
  use MailPoet\API\JSON\API;
6
  use MailPoet\API\JSON\Response as APIResponse;
7
+ use MailPoet\Util\Url as UrlHelper;
8
 
9
  class Form {
10
+ static function onSubmit($request_data = false) {
11
+ $request_data = ($request_data) ? $request_data : $_REQUEST;
12
  $api = new API();
13
+ $api->setRequestData($request_data);
14
+ $form_id = (!empty($request_data['data']['form_id'])) ? (int)$request_data['data']['form_id'] : false;
15
  $response = $api->processRoute();
16
  if($response->status !== APIResponse::STATUS_OK) {
17
+ return UrlHelper::redirectBack(
18
  array(
19
  'mailpoet_error' => ($form_id) ? $form_id : true,
20
  'mailpoet_success' => null
21
  )
22
  );
23
  } else {
24
+ return (isset($response->meta['redirect_url'])) ?
25
+ UrlHelper::redirectTo($response->meta['redirect_url']) :
26
+ UrlHelper::redirectBack(
27
  array(
28
  'mailpoet_success' => $form_id,
29
  'mailpoet_error' => null
lib/Twig/Filters.php CHANGED
@@ -1,4 +1,5 @@
1
  <?php
 
2
  namespace MailPoet\Twig;
3
 
4
  if(!defined('ABSPATH')) exit;
@@ -15,6 +16,34 @@ class Filters extends \Twig_Extension {
15
  'intval',
16
  'intval'
17
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
  );
 
 
19
  }
20
  }
1
  <?php
2
+
3
  namespace MailPoet\Twig;
4
 
5
  if(!defined('ABSPATH')) exit;
16
  'intval',
17
  'intval'
18
  ),
19
+ new \Twig_SimpleFilter(
20
+ 'replaceLink',
21
+ array(
22
+ $this,
23
+ 'replaceLink'
24
+ )
25
+ )
26
+ );
27
+ }
28
+
29
+ function replaceLink($source, $link = false, $attributes = array()) {
30
+ if(!$link) return $source;
31
+ $attributes = array_map(function($key) use ($attributes) {
32
+ if(is_bool($attributes[$key])) {
33
+ return $attributes[$key] ? $key : '';
34
+ }
35
+ return sprintf('%s="%s"', $key, $attributes[$key]);
36
+ }, array_keys($attributes));
37
+ $source = str_replace(
38
+ '[link]',
39
+ sprintf(
40
+ '<a %s href="%s">',
41
+ join(' ', $attributes),
42
+ $link
43
+ ),
44
+ $source
45
  );
46
+ $source = str_replace('[/link]', '</a>', $source);
47
+ return preg_replace('/\s+/', ' ', $source);
48
  }
49
  }
mailpoet.php CHANGED
@@ -4,7 +4,7 @@ if(!defined('ABSPATH')) exit;
4
 
5
  /*
6
  * Plugin Name: MailPoet
7
- * Version: 3.0.0-beta.36.0.1
8
  * Plugin URI: http://www.mailpoet.com
9
  * Description: Create and send beautiful email newsletters, autoresponders, and post notifications without leaving WordPress. This is a beta version of our brand new plugin!
10
  * Author: MailPoet
@@ -21,7 +21,7 @@ if(!defined('ABSPATH')) exit;
21
  */
22
 
23
  $mailpoet_plugin = array(
24
- 'version' => '3.0.0-beta.36.0.1',
25
  'filename' => __FILE__,
26
  'path' => dirname(__FILE__),
27
  'autoloader' => dirname(__FILE__) . '/vendor/autoload.php',
4
 
5
  /*
6
  * Plugin Name: MailPoet
7
+ * Version: 3.0.0-beta.36.2.0
8
  * Plugin URI: http://www.mailpoet.com
9
  * Description: Create and send beautiful email newsletters, autoresponders, and post notifications without leaving WordPress. This is a beta version of our brand new plugin!
10
  * Author: MailPoet
21
  */
22
 
23
  $mailpoet_plugin = array(
24
+ 'version' => '3.0.0-beta.36.2.0',
25
  'filename' => __FILE__,
26
  'path' => dirname(__FILE__),
27
  'autoloader' => dirname(__FILE__) . '/vendor/autoload.php',
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: mailpoet, wysija
3
  Tags: newsletter, email, welcome email, post notification, autoresponder, signup, subscription, SMTP
4
  Requires at least: 4.6
5
  Tested up to: 4.8
6
- Stable tag: 3.0.0-beta.36.0.1
7
  Create and send beautiful emails and newsletters from WordPress.
8
 
9
  == Description ==
@@ -91,6 +91,17 @@ Our [support site](https://beta.docs.mailpoet.com) has plenty of articles. You c
91
 
92
  == Changelog ==
93
 
 
 
 
 
 
 
 
 
 
 
 
94
  = 3.0.0-beta.36.0.1 - 2017-06-23 =
95
  * Improved: preheader will now be hidden in Gmail app;
96
  * Fixed: subscription forms now work without causing "missing file" errors. Thanks Sherrie!
3
  Tags: newsletter, email, welcome email, post notification, autoresponder, signup, subscription, SMTP
4
  Requires at least: 4.6
5
  Tested up to: 4.8
6
+ Stable tag: 3.0.0-beta.36.2.0
7
  Create and send beautiful emails and newsletters from WordPress.
8
 
9
  == Description ==
91
 
92
  == Changelog ==
93
 
94
+ = 3.0.0-beta.36.2.0 - 2017-07-04 =
95
+ * Added: 13 new default templates to choose from;
96
+ * Added: a new help page in the menu to help us help you better;
97
+ * Added: link to list of form plugins that work with MailPoet in our Forms page;
98
+ * Improved: display infinite number of posts in Posts widget, instead of just 10. Kudos Keith!
99
+ * Fixed: DB connection exceptions are now safely handled. Thanks FxB!
100
+
101
+ = 3.0.0-beta.36.1.0 - 2017-06-27 =
102
+ * Improved: error notices are displayed when AJAX requests fail;
103
+ * Added: MailPoet 2 forms are migrated when MailPoet 3 is installed/reinstalled.
104
+
105
  = 3.0.0-beta.36.0.1 - 2017-06-23 =
106
  * Improved: preheader will now be hidden in Gmail app;
107
  * Fixed: subscription forms now work without causing "missing file" errors. Thanks Sherrie!
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit140f378aef1efbd5960ba3ca5adb17f6::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit427aa6596e1fab12f4c1b25cfbd72e61::getLoader();
vendor/composer/ClassLoader.php CHANGED
@@ -55,7 +55,6 @@ class ClassLoader
55
  private $classMap = array();
56
  private $classMapAuthoritative = false;
57
  private $missingClasses = array();
58
- private $apcuPrefix;
59
 
60
  public function getPrefixes()
61
  {
@@ -272,26 +271,6 @@ class ClassLoader
272
  return $this->classMapAuthoritative;
273
  }
274
 
275
- /**
276
- * APCu prefix to use to cache found/not-found classes, if the extension is enabled.
277
- *
278
- * @param string|null $apcuPrefix
279
- */
280
- public function setApcuPrefix($apcuPrefix)
281
- {
282
- $this->apcuPrefix = function_exists('apcu_fetch') && ini_get('apc.enabled') ? $apcuPrefix : null;
283
- }
284
-
285
- /**
286
- * The APCu prefix in use, or null if APCu caching is not enabled.
287
- *
288
- * @return string|null
289
- */
290
- public function getApcuPrefix()
291
- {
292
- return $this->apcuPrefix;
293
- }
294
-
295
  /**
296
  * Registers this instance as an autoloader.
297
  *
@@ -334,6 +313,11 @@ class ClassLoader
334
  */
335
  public function findFile($class)
336
  {
 
 
 
 
 
337
  // class map lookup
338
  if (isset($this->classMap[$class])) {
339
  return $this->classMap[$class];
@@ -341,12 +325,6 @@ class ClassLoader
341
  if ($this->classMapAuthoritative || isset($this->missingClasses[$class])) {
342
  return false;
343
  }
344
- if (null !== $this->apcuPrefix) {
345
- $file = apcu_fetch($this->apcuPrefix.$class, $hit);
346
- if ($hit) {
347
- return $file;
348
- }
349
- }
350
 
351
  $file = $this->findFileWithExtension($class, '.php');
352
 
@@ -355,10 +333,6 @@ class ClassLoader
355
  $file = $this->findFileWithExtension($class, '.hh');
356
  }
357
 
358
- if (null !== $this->apcuPrefix) {
359
- apcu_add($this->apcuPrefix.$class, $file);
360
- }
361
-
362
  if (false === $file) {
363
  // Remember that this class does not exist.
364
  $this->missingClasses[$class] = true;
55
  private $classMap = array();
56
  private $classMapAuthoritative = false;
57
  private $missingClasses = array();
 
58
 
59
  public function getPrefixes()
60
  {
271
  return $this->classMapAuthoritative;
272
  }
273
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
274
  /**
275
  * Registers this instance as an autoloader.
276
  *
313
  */
314
  public function findFile($class)
315
  {
316
+ // work around for PHP 5.3.0 - 5.3.2 https://bugs.php.net/50731
317
+ if ('\\' == $class[0]) {
318
+ $class = substr($class, 1);
319
+ }
320
+
321
  // class map lookup
322
  if (isset($this->classMap[$class])) {
323
  return $this->classMap[$class];
325
  if ($this->classMapAuthoritative || isset($this->missingClasses[$class])) {
326
  return false;
327
  }
 
 
 
 
 
 
328
 
329
  $file = $this->findFileWithExtension($class, '.php');
330
 
333
  $file = $this->findFileWithExtension($class, '.hh');
334
  }
335
 
 
 
 
 
336
  if (false === $file) {
337
  // Remember that this class does not exist.
338
  $this->missingClasses[$class] = true;
vendor/composer/autoload_classmap.php CHANGED
@@ -64,18 +64,31 @@ return array(
64
  'MailPoet\\Config\\Migrator' => $baseDir . '/lib/Config/Migrator.php',
65
  'MailPoet\\Config\\PluginActivatedHook' => $baseDir . '/lib/Config/PluginActivatedHook.php',
66
  'MailPoet\\Config\\Populator' => $baseDir . '/lib/Config/Populator.php',
67
- 'MailPoet\\Config\\PopulatorData\\Templates\\FranksRoastHouseTemplate' => $baseDir . '/lib/Config/PopulatorData/Templates/FranksRoastHouseTemplate.php',
 
 
 
 
 
 
 
 
 
68
  'MailPoet\\Config\\PopulatorData\\Templates\\NewsletterBlank121Column' => $baseDir . '/lib/Config/PopulatorData/Templates/NewsletterBlank121Column.php',
69
  'MailPoet\\Config\\PopulatorData\\Templates\\NewsletterBlank12Column' => $baseDir . '/lib/Config/PopulatorData/Templates/NewsletterBlank12Column.php',
70
  'MailPoet\\Config\\PopulatorData\\Templates\\NewsletterBlank13Column' => $baseDir . '/lib/Config/PopulatorData/Templates/NewsletterBlank13Column.php',
71
  'MailPoet\\Config\\PopulatorData\\Templates\\NewsletterBlank1Column' => $baseDir . '/lib/Config/PopulatorData/Templates/NewsletterBlank1Column.php',
 
72
  'MailPoet\\Config\\PopulatorData\\Templates\\PostNotificationsBlank1Column' => $baseDir . '/lib/Config/PopulatorData/Templates/PostNotificationsBlank1Column.php',
73
- 'MailPoet\\Config\\PopulatorData\\Templates\\Restaurant' => $baseDir . '/lib/Config/PopulatorData/Templates/Restaurant.php',
 
74
  'MailPoet\\Config\\PopulatorData\\Templates\\SimpleText' => $baseDir . '/lib/Config/PopulatorData/Templates/SimpleText.php',
75
- 'MailPoet\\Config\\PopulatorData\\Templates\\StoreDiscount' => $baseDir . '/lib/Config/PopulatorData/Templates/StoreDiscount.php',
76
- 'MailPoet\\Config\\PopulatorData\\Templates\\TravelEmail' => $baseDir . '/lib/Config/PopulatorData/Templates/TravelEmail.php',
77
  'MailPoet\\Config\\PopulatorData\\Templates\\WelcomeBlank12Column' => $baseDir . '/lib/Config/PopulatorData/Templates/WelcomeBlank12Column.php',
78
  'MailPoet\\Config\\PopulatorData\\Templates\\WelcomeBlank1Column' => $baseDir . '/lib/Config/PopulatorData/Templates/WelcomeBlank1Column.php',
 
 
79
  'MailPoet\\Config\\Renderer' => $baseDir . '/lib/Config/Renderer.php',
80
  'MailPoet\\Config\\RequirementsChecker' => $baseDir . '/lib/Config/RequirementsChecker.php',
81
  'MailPoet\\Config\\ServicesChecker' => $baseDir . '/lib/Config/ServicesChecker.php',
64
  'MailPoet\\Config\\Migrator' => $baseDir . '/lib/Config/Migrator.php',
65
  'MailPoet\\Config\\PluginActivatedHook' => $baseDir . '/lib/Config/PluginActivatedHook.php',
66
  'MailPoet\\Config\\Populator' => $baseDir . '/lib/Config/Populator.php',
67
+ 'MailPoet\\Config\\PopulatorData\\Templates\\AppWelcome' => $baseDir . '/lib/Config/PopulatorData/Templates/AppWelcome.php',
68
+ 'MailPoet\\Config\\PopulatorData\\Templates\\BurgerJoint' => $baseDir . '/lib/Config/PopulatorData/Templates/BurgerJoint.php',
69
+ 'MailPoet\\Config\\PopulatorData\\Templates\\ChocolateStore' => $baseDir . '/lib/Config/PopulatorData/Templates/ChocolateStore.php',
70
+ 'MailPoet\\Config\\PopulatorData\\Templates\\CoffeeShop' => $baseDir . '/lib/Config/PopulatorData/Templates/CoffeeShop.php',
71
+ 'MailPoet\\Config\\PopulatorData\\Templates\\Discount' => $baseDir . '/lib/Config/PopulatorData/Templates/Discount.php',
72
+ 'MailPoet\\Config\\PopulatorData\\Templates\\Faith' => $baseDir . '/lib/Config/PopulatorData/Templates/Faith.php',
73
+ 'MailPoet\\Config\\PopulatorData\\Templates\\FestivalEvent' => $baseDir . '/lib/Config/PopulatorData/Templates/FestivalEvent.php',
74
+ 'MailPoet\\Config\\PopulatorData\\Templates\\FoodBox' => $baseDir . '/lib/Config/PopulatorData/Templates/FoodBox.php',
75
+ 'MailPoet\\Config\\PopulatorData\\Templates\\KickOff' => $baseDir . '/lib/Config/PopulatorData/Templates/KickOff.php',
76
+ 'MailPoet\\Config\\PopulatorData\\Templates\\NewsDay' => $baseDir . '/lib/Config/PopulatorData/Templates/NewsDay.php',
77
  'MailPoet\\Config\\PopulatorData\\Templates\\NewsletterBlank121Column' => $baseDir . '/lib/Config/PopulatorData/Templates/NewsletterBlank121Column.php',
78
  'MailPoet\\Config\\PopulatorData\\Templates\\NewsletterBlank12Column' => $baseDir . '/lib/Config/PopulatorData/Templates/NewsletterBlank12Column.php',
79
  'MailPoet\\Config\\PopulatorData\\Templates\\NewsletterBlank13Column' => $baseDir . '/lib/Config/PopulatorData/Templates/NewsletterBlank13Column.php',
80
  'MailPoet\\Config\\PopulatorData\\Templates\\NewsletterBlank1Column' => $baseDir . '/lib/Config/PopulatorData/Templates/NewsletterBlank1Column.php',
81
+ 'MailPoet\\Config\\PopulatorData\\Templates\\PieceOfCake' => $baseDir . '/lib/Config/PopulatorData/Templates/PieceOfCake.php',
82
  'MailPoet\\Config\\PopulatorData\\Templates\\PostNotificationsBlank1Column' => $baseDir . '/lib/Config/PopulatorData/Templates/PostNotificationsBlank1Column.php',
83
+ 'MailPoet\\Config\\PopulatorData\\Templates\\ScienceWeekly' => $baseDir . '/lib/Config/PopulatorData/Templates/ScienceWeekly.php',
84
+ 'MailPoet\\Config\\PopulatorData\\Templates\\Shoes' => $baseDir . '/lib/Config/PopulatorData/Templates/Shoes.php',
85
  'MailPoet\\Config\\PopulatorData\\Templates\\SimpleText' => $baseDir . '/lib/Config/PopulatorData/Templates/SimpleText.php',
86
+ 'MailPoet\\Config\\PopulatorData\\Templates\\TakeAHike' => $baseDir . '/lib/Config/PopulatorData/Templates/TakeAHike.php',
87
+ 'MailPoet\\Config\\PopulatorData\\Templates\\TravelNomads' => $baseDir . '/lib/Config/PopulatorData/Templates/TravelNomads.php',
88
  'MailPoet\\Config\\PopulatorData\\Templates\\WelcomeBlank12Column' => $baseDir . '/lib/Config/PopulatorData/Templates/WelcomeBlank12Column.php',
89
  'MailPoet\\Config\\PopulatorData\\Templates\\WelcomeBlank1Column' => $baseDir . '/lib/Config/PopulatorData/Templates/WelcomeBlank1Column.php',
90
+ 'MailPoet\\Config\\PopulatorData\\Templates\\WorldCup' => $baseDir . '/lib/Config/PopulatorData/Templates/WorldCup.php',
91
+ 'MailPoet\\Config\\PopulatorData\\Templates\\YogaStudio' => $baseDir . '/lib/Config/PopulatorData/Templates/YogaStudio.php',
92
  'MailPoet\\Config\\Renderer' => $baseDir . '/lib/Config/Renderer.php',
93
  'MailPoet\\Config\\RequirementsChecker' => $baseDir . '/lib/Config/RequirementsChecker.php',
94
  'MailPoet\\Config\\ServicesChecker' => $baseDir . '/lib/Config/ServicesChecker.php',
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit140f378aef1efbd5960ba3ca5adb17f6
6
  {
7
  private static $loader;
8
 
@@ -19,15 +19,15 @@ class ComposerAutoloaderInit140f378aef1efbd5960ba3ca5adb17f6
19
  return self::$loader;
20
  }
21
 
22
- spl_autoload_register(array('ComposerAutoloaderInit140f378aef1efbd5960ba3ca5adb17f6', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
- spl_autoload_unregister(array('ComposerAutoloaderInit140f378aef1efbd5960ba3ca5adb17f6', 'loadClassLoader'));
25
 
26
- $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
27
  if ($useStaticLoader) {
28
  require_once __DIR__ . '/autoload_static.php';
29
 
30
- call_user_func(\Composer\Autoload\ComposerStaticInit140f378aef1efbd5960ba3ca5adb17f6::getInitializer($loader));
31
  } else {
32
  $map = require __DIR__ . '/autoload_namespaces.php';
33
  foreach ($map as $namespace => $path) {
@@ -48,19 +48,19 @@ class ComposerAutoloaderInit140f378aef1efbd5960ba3ca5adb17f6
48
  $loader->register(true);
49
 
50
  if ($useStaticLoader) {
51
- $includeFiles = Composer\Autoload\ComposerStaticInit140f378aef1efbd5960ba3ca5adb17f6::$files;
52
  } else {
53
  $includeFiles = require __DIR__ . '/autoload_files.php';
54
  }
55
  foreach ($includeFiles as $fileIdentifier => $file) {
56
- composerRequire140f378aef1efbd5960ba3ca5adb17f6($fileIdentifier, $file);
57
  }
58
 
59
  return $loader;
60
  }
61
  }
62
 
63
- function composerRequire140f378aef1efbd5960ba3ca5adb17f6($fileIdentifier, $file)
64
  {
65
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
66
  require $file;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInit427aa6596e1fab12f4c1b25cfbd72e61
6
  {
7
  private static $loader;
8
 
19
  return self::$loader;
20
  }
21
 
22
+ spl_autoload_register(array('ComposerAutoloaderInit427aa6596e1fab12f4c1b25cfbd72e61', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
+ spl_autoload_unregister(array('ComposerAutoloaderInit427aa6596e1fab12f4c1b25cfbd72e61', 'loadClassLoader'));
25
 
26
+ $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION');
27
  if ($useStaticLoader) {
28
  require_once __DIR__ . '/autoload_static.php';
29
 
30
+ call_user_func(\Composer\Autoload\ComposerStaticInit427aa6596e1fab12f4c1b25cfbd72e61::getInitializer($loader));
31
  } else {
32
  $map = require __DIR__ . '/autoload_namespaces.php';
33
  foreach ($map as $namespace => $path) {
48
  $loader->register(true);
49
 
50
  if ($useStaticLoader) {
51
+ $includeFiles = Composer\Autoload\ComposerStaticInit427aa6596e1fab12f4c1b25cfbd72e61::$files;
52
  } else {
53
  $includeFiles = require __DIR__ . '/autoload_files.php';
54
  }
55
  foreach ($includeFiles as $fileIdentifier => $file) {
56
+ composerRequire427aa6596e1fab12f4c1b25cfbd72e61($fileIdentifier, $file);
57
  }
58
 
59
  return $loader;
60
  }
61
  }
62
 
63
+ function composerRequire427aa6596e1fab12f4c1b25cfbd72e61($fileIdentifier, $file)
64
  {
65
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
66
  require $file;
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInit140f378aef1efbd5960ba3ca5adb17f6
8
  {
9
  public static $files = array (
10
  '0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php',
@@ -146,18 +146,31 @@ class ComposerStaticInit140f378aef1efbd5960ba3ca5adb17f6
146
  'MailPoet\\Config\\Migrator' => __DIR__ . '/../..' . '/lib/Config/Migrator.php',
147
  'MailPoet\\Config\\PluginActivatedHook' => __DIR__ . '/../..' . '/lib/Config/PluginActivatedHook.php',
148
  'MailPoet\\Config\\Populator' => __DIR__ . '/../..' . '/lib/Config/Populator.php',
149
- 'MailPoet\\Config\\PopulatorData\\Templates\\FranksRoastHouseTemplate' => __DIR__ . '/../..' . '/lib/Config/PopulatorData/Templates/FranksRoastHouseTemplate.php',
 
 
 
 
 
 
 
 
 
150
  'MailPoet\\Config\\PopulatorData\\Templates\\NewsletterBlank121Column' => __DIR__ . '/../..' . '/lib/Config/PopulatorData/Templates/NewsletterBlank121Column.php',
151
  'MailPoet\\Config\\PopulatorData\\Templates\\NewsletterBlank12Column' => __DIR__ . '/../..' . '/lib/Config/PopulatorData/Templates/NewsletterBlank12Column.php',
152
  'MailPoet\\Config\\PopulatorData\\Templates\\NewsletterBlank13Column' => __DIR__ . '/../..' . '/lib/Config/PopulatorData/Templates/NewsletterBlank13Column.php',
153
  'MailPoet\\Config\\PopulatorData\\Templates\\NewsletterBlank1Column' => __DIR__ . '/../..' . '/lib/Config/PopulatorData/Templates/NewsletterBlank1Column.php',
 
154
  'MailPoet\\Config\\PopulatorData\\Templates\\PostNotificationsBlank1Column' => __DIR__ . '/../..' . '/lib/Config/PopulatorData/Templates/PostNotificationsBlank1Column.php',
155
- 'MailPoet\\Config\\PopulatorData\\Templates\\Restaurant' => __DIR__ . '/../..' . '/lib/Config/PopulatorData/Templates/Restaurant.php',
 
156
  'MailPoet\\Config\\PopulatorData\\Templates\\SimpleText' => __DIR__ . '/../..' . '/lib/Config/PopulatorData/Templates/SimpleText.php',
157
- 'MailPoet\\Config\\PopulatorData\\Templates\\StoreDiscount' => __DIR__ . '/../..' . '/lib/Config/PopulatorData/Templates/StoreDiscount.php',
158
- 'MailPoet\\Config\\PopulatorData\\Templates\\TravelEmail' => __DIR__ . '/../..' . '/lib/Config/PopulatorData/Templates/TravelEmail.php',
159
  'MailPoet\\Config\\PopulatorData\\Templates\\WelcomeBlank12Column' => __DIR__ . '/../..' . '/lib/Config/PopulatorData/Templates/WelcomeBlank12Column.php',
160
  'MailPoet\\Config\\PopulatorData\\Templates\\WelcomeBlank1Column' => __DIR__ . '/../..' . '/lib/Config/PopulatorData/Templates/WelcomeBlank1Column.php',
 
 
161
  'MailPoet\\Config\\Renderer' => __DIR__ . '/../..' . '/lib/Config/Renderer.php',
162
  'MailPoet\\Config\\RequirementsChecker' => __DIR__ . '/../..' . '/lib/Config/RequirementsChecker.php',
163
  'MailPoet\\Config\\ServicesChecker' => __DIR__ . '/../..' . '/lib/Config/ServicesChecker.php',
@@ -635,10 +648,10 @@ class ComposerStaticInit140f378aef1efbd5960ba3ca5adb17f6
635
  public static function getInitializer(ClassLoader $loader)
636
  {
637
  return \Closure::bind(function () use ($loader) {
638
- $loader->prefixLengthsPsr4 = ComposerStaticInit140f378aef1efbd5960ba3ca5adb17f6::$prefixLengthsPsr4;
639
- $loader->prefixDirsPsr4 = ComposerStaticInit140f378aef1efbd5960ba3ca5adb17f6::$prefixDirsPsr4;
640
- $loader->prefixesPsr0 = ComposerStaticInit140f378aef1efbd5960ba3ca5adb17f6::$prefixesPsr0;
641
- $loader->classMap = ComposerStaticInit140f378aef1efbd5960ba3ca5adb17f6::$classMap;
642
 
643
  }, null, ClassLoader::class);
644
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit427aa6596e1fab12f4c1b25cfbd72e61
8
  {
9
  public static $files = array (
10
  '0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php',
146
  'MailPoet\\Config\\Migrator' => __DIR__ . '/../..' . '/lib/Config/Migrator.php',
147
  'MailPoet\\Config\\PluginActivatedHook' => __DIR__ . '/../..' . '/lib/Config/PluginActivatedHook.php',
148
  'MailPoet\\Config\\Populator' => __DIR__ . '/../..' . '/lib/Config/Populator.php',
149
+ 'MailPoet\\Config\\PopulatorData\\Templates\\AppWelcome' => __DIR__ . '/../..' . '/lib/Config/PopulatorData/Templates/AppWelcome.php',
150
+ 'MailPoet\\Config\\PopulatorData\\Templates\\BurgerJoint' => __DIR__ . '/../..' . '/lib/Config/PopulatorData/Templates/BurgerJoint.php',
151
+ 'MailPoet\\Config\\PopulatorData\\Templates\\ChocolateStore' => __DIR__ . '/../..' . '/lib/Config/PopulatorData/Templates/ChocolateStore.php',
152
+ 'MailPoet\\Config\\PopulatorData\\Templates\\CoffeeShop' => __DIR__ . '/../..' . '/lib/Config/PopulatorData/Templates/CoffeeShop.php',
153
+ 'MailPoet\\Config\\PopulatorData\\Templates\\Discount' => __DIR__ . '/../..' . '/lib/Config/PopulatorData/Templates/Discount.php',
154
+ 'MailPoet\\Config\\PopulatorData\\Templates\\Faith' => __DIR__ . '/../..' . '/lib/Config/PopulatorData/Templates/Faith.php',
155
+ 'MailPoet\\Config\\PopulatorData\\Templates\\FestivalEvent' => __DIR__ . '/../..' . '/lib/Config/PopulatorData/Templates/FestivalEvent.php',
156
+ 'MailPoet\\Config\\PopulatorData\\Templates\\FoodBox' => __DIR__ . '/../..' . '/lib/Config/PopulatorData/Templates/FoodBox.php',
157
+ 'MailPoet\\Config\\PopulatorData\\Templates\\KickOff' => __DIR__ . '/../..' . '/lib/Config/PopulatorData/Templates/KickOff.php',
158
+ 'MailPoet\\Config\\PopulatorData\\Templates\\NewsDay' => __DIR__ . '/../..' . '/lib/Config/PopulatorData/Templates/NewsDay.php',
159
  'MailPoet\\Config\\PopulatorData\\Templates\\NewsletterBlank121Column' => __DIR__ . '/../..' . '/lib/Config/PopulatorData/Templates/NewsletterBlank121Column.php',
160
  'MailPoet\\Config\\PopulatorData\\Templates\\NewsletterBlank12Column' => __DIR__ . '/../..' . '/lib/Config/PopulatorData/Templates/NewsletterBlank12Column.php',
161
  'MailPoet\\Config\\PopulatorData\\Templates\\NewsletterBlank13Column' => __DIR__ . '/../..' . '/lib/Config/PopulatorData/Templates/NewsletterBlank13Column.php',
162
  'MailPoet\\Config\\PopulatorData\\Templates\\NewsletterBlank1Column' => __DIR__ . '/../..' . '/lib/Config/PopulatorData/Templates/NewsletterBlank1Column.php',
163
+ 'MailPoet\\Config\\PopulatorData\\Templates\\PieceOfCake' => __DIR__ . '/../..' . '/lib/Config/PopulatorData/Templates/PieceOfCake.php',
164
  'MailPoet\\Config\\PopulatorData\\Templates\\PostNotificationsBlank1Column' => __DIR__ . '/../..' . '/lib/Config/PopulatorData/Templates/PostNotificationsBlank1Column.php',
165
+ 'MailPoet\\Config\\PopulatorData\\Templates\\ScienceWeekly' => __DIR__ . '/../..' . '/lib/Config/PopulatorData/Templates/ScienceWeekly.php',
166
+ 'MailPoet\\Config\\PopulatorData\\Templates\\Shoes' => __DIR__ . '/../..' . '/lib/Config/PopulatorData/Templates/Shoes.php',
167
  'MailPoet\\Config\\PopulatorData\\Templates\\SimpleText' => __DIR__ . '/../..' . '/lib/Config/PopulatorData/Templates/SimpleText.php',
168
+ 'MailPoet\\Config\\PopulatorData\\Templates\\TakeAHike' => __DIR__ . '/../..' . '/lib/Config/PopulatorData/Templates/TakeAHike.php',
169
+ 'MailPoet\\Config\\PopulatorData\\Templates\\TravelNomads' => __DIR__ . '/../..' . '/lib/Config/PopulatorData/Templates/TravelNomads.php',
170
  'MailPoet\\Config\\PopulatorData\\Templates\\WelcomeBlank12Column' => __DIR__ . '/../..' . '/lib/Config/PopulatorData/Templates/WelcomeBlank12Column.php',
171
  'MailPoet\\Config\\PopulatorData\\Templates\\WelcomeBlank1Column' => __DIR__ . '/../..' . '/lib/Config/PopulatorData/Templates/WelcomeBlank1Column.php',
172
+ 'MailPoet\\Config\\PopulatorData\\Templates\\WorldCup' => __DIR__ . '/../..' . '/lib/Config/PopulatorData/Templates/WorldCup.php',
173
+ 'MailPoet\\Config\\PopulatorData\\Templates\\YogaStudio' => __DIR__ . '/../..' . '/lib/Config/PopulatorData/Templates/YogaStudio.php',
174
  'MailPoet\\Config\\Renderer' => __DIR__ . '/../..' . '/lib/Config/Renderer.php',
175
  'MailPoet\\Config\\RequirementsChecker' => __DIR__ . '/../..' . '/lib/Config/RequirementsChecker.php',
176
  'MailPoet\\Config\\ServicesChecker' => __DIR__ . '/../..' . '/lib/Config/ServicesChecker.php',
648
  public static function getInitializer(ClassLoader $loader)
649
  {
650
  return \Closure::bind(function () use ($loader) {
651
+ $loader->prefixLengthsPsr4 = ComposerStaticInit427aa6596e1fab12f4c1b25cfbd72e61::$prefixLengthsPsr4;
652
+ $loader->prefixDirsPsr4 = ComposerStaticInit427aa6596e1fab12f4c1b25cfbd72e61::$prefixDirsPsr4;
653
+ $loader->prefixesPsr0 = ComposerStaticInit427aa6596e1fab12f4c1b25cfbd72e61::$prefixesPsr0;
654
+ $loader->classMap = ComposerStaticInit427aa6596e1fab12f4c1b25cfbd72e61::$classMap;
655
 
656
  }, null, ClassLoader::class);
657
  }
vendor/composer/installed.json CHANGED
@@ -14,7 +14,7 @@
14
  "reference": "b0c1bda3be5a35da44ba1ac28cc61c67d2ada465",
15
  "shasum": ""
16
  },
17
- "time": "2015-11-28T21:47:43+00:00",
18
  "type": "library",
19
  "installation-source": "dist",
20
  "autoload": {
@@ -55,7 +55,7 @@
55
  "require-dev": {
56
  "phpunit/phpunit": "^5.6"
57
  },
58
- "time": "2016-12-14T06:28:26+00:00",
59
  "type": "library",
60
  "installation-source": "dist",
61
  "autoload": {
@@ -116,7 +116,7 @@
116
  "j4mie/idiorm": "1.5.*",
117
  "php": ">=5.2.0"
118
  },
119
- "time": "2014-09-23T10:49:36+00:00",
120
  "type": "library",
121
  "installation-source": "dist",
122
  "autoload": {
@@ -180,7 +180,7 @@
180
  "require-dev": {
181
  "phpunit/phpunit": "~4.0|~5.0"
182
  },
183
- "time": "2017-01-23T04:29:33+00:00",
184
  "type": "library",
185
  "installation-source": "dist",
186
  "autoload": {
@@ -226,7 +226,7 @@
226
  "suggest": {
227
  "ext-mbstring": "For best performance"
228
  },
229
- "time": "2016-11-14T01:06:16+00:00",
230
  "type": "library",
231
  "extra": {
232
  "branch-alias": {
@@ -299,7 +299,7 @@
299
  "symfony/config": "",
300
  "symfony/yaml": ""
301
  },
302
- "time": "2017-03-04T12:20:59+00:00",
303
  "type": "library",
304
  "extra": {
305
  "branch-alias": {
@@ -355,7 +355,7 @@
355
  "friendsofphp/php-cs-fixer": "~2",
356
  "phpunit/phpunit": "~4.0 || ~5.0"
357
  },
358
- "time": "2017-01-16T07:55:07+00:00",
359
  "type": "library",
360
  "extra": {
361
  "branch-alias": {
@@ -408,7 +408,7 @@
408
  "require-dev": {
409
  "phpunit/phpunit": "*"
410
  },
411
- "time": "2016-07-19T19:14:21+00:00",
412
  "type": "library",
413
  "installation-source": "dist",
414
  "autoload": {
@@ -457,7 +457,7 @@
457
  "phpunit/phpunit": ">=4.0",
458
  "soundasleep/component-tests": "dev-master"
459
  },
460
- "time": "2016-06-09T04:56:16+00:00",
461
  "type": "library",
462
  "installation-source": "dist",
463
  "autoload": {
@@ -510,7 +510,7 @@
510
  "mockery/mockery": "~0.9.1",
511
  "symfony/phpunit-bridge": "~3.2"
512
  },
513
- "time": "2017-02-13T07:52:53+00:00",
514
  "type": "library",
515
  "extra": {
516
  "branch-alias": {
@@ -565,7 +565,7 @@
565
  "suggest": {
566
  "ext-xml": "For best performance"
567
  },
568
- "time": "2016-11-14T01:06:16+00:00",
569
  "type": "library",
570
  "extra": {
571
  "branch-alias": {
@@ -625,7 +625,7 @@
625
  "require-dev": {
626
  "htmlawed/htmlawed": "dev-master"
627
  },
628
- "time": "2016-01-14T20:55:00+00:00",
629
  "type": "library",
630
  "installation-source": "dist",
631
  "autoload": {
@@ -681,7 +681,7 @@
681
  "symfony/debug": "~2.7",
682
  "symfony/phpunit-bridge": "~3.2"
683
  },
684
- "time": "2017-02-27T00:07:03+00:00",
685
  "type": "library",
686
  "extra": {
687
  "branch-alias": {
14
  "reference": "b0c1bda3be5a35da44ba1ac28cc61c67d2ada465",
15
  "shasum": ""
16
  },
17
+ "time": "2015-11-28 21:47:43",
18
  "type": "library",
19
  "installation-source": "dist",
20
  "autoload": {
55
  "require-dev": {
56
  "phpunit/phpunit": "^5.6"
57
  },
58
+ "time": "2016-12-14 06:28:26",
59
  "type": "library",
60
  "installation-source": "dist",
61
  "autoload": {
116
  "j4mie/idiorm": "1.5.*",
117
  "php": ">=5.2.0"
118
  },
119
+ "time": "2014-09-23 10:49:36",
120
  "type": "library",
121
  "installation-source": "dist",
122
  "autoload": {
180
  "require-dev": {
181
  "phpunit/phpunit": "~4.0|~5.0"
182
  },
183
+ "time": "2017-01-23 04:29:33",
184
  "type": "library",
185
  "installation-source": "dist",
186
  "autoload": {
226
  "suggest": {
227
  "ext-mbstring": "For best performance"
228
  },
229
+ "time": "2016-11-14 01:06:16",
230
  "type": "library",
231
  "extra": {
232
  "branch-alias": {
299
  "symfony/config": "",
300
  "symfony/yaml": ""
301
  },
302
+ "time": "2017-03-04 12:20:59",
303
  "type": "library",
304
  "extra": {
305
  "branch-alias": {
355
  "friendsofphp/php-cs-fixer": "~2",
356
  "phpunit/phpunit": "~4.0 || ~5.0"
357
  },
358
+ "time": "2017-01-16 07:55:07",
359
  "type": "library",
360
  "extra": {
361
  "branch-alias": {
408
  "require-dev": {
409
  "phpunit/phpunit": "*"
410
  },
411
+ "time": "2016-07-19 19:14:21",
412
  "type": "library",
413
  "installation-source": "dist",
414
  "autoload": {
457
  "phpunit/phpunit": ">=4.0",
458
  "soundasleep/component-tests": "dev-master"
459
  },
460
+ "time": "2016-06-09 04:56:16",
461
  "type": "library",
462
  "installation-source": "dist",
463
  "autoload": {
510
  "mockery/mockery": "~0.9.1",
511
  "symfony/phpunit-bridge": "~3.2"
512
  },
513
+ "time": "2017-02-13 07:52:53",
514
  "type": "library",
515
  "extra": {
516
  "branch-alias": {
565
  "suggest": {
566
  "ext-xml": "For best performance"
567
  },
568
+ "time": "2016-11-14 01:06:16",
569
  "type": "library",
570
  "extra": {
571
  "branch-alias": {
625
  "require-dev": {
626
  "htmlawed/htmlawed": "dev-master"
627
  },
628
+ "time": "2016-01-14 20:55:00",
629
  "type": "library",
630
  "installation-source": "dist",
631
  "autoload": {
681
  "symfony/debug": "~2.7",
682
  "symfony/phpunit-bridge": "~3.2"
683
  },
684
+ "time": "2017-02-27 00:07:03",
685
  "type": "library",
686
  "extra": {
687
  "branch-alias": {
views/forms.html CHANGED
@@ -3,6 +3,15 @@
3
  <% block content %>
4
  <div id="forms_container"></div>
5
 
 
 
 
 
 
 
 
 
 
6
  <script type="text/javascript">
7
  var mailpoet_listing_per_page = <%= items_per_page %>;
8
  var mailpoet_segments = <%= json_encode(segments) %>;
3
  <% block content %>
4
  <div id="forms_container"></div>
5
 
6
+ <div>
7
+ <p class="mailpoet_sending_methods_help help">
8
+ <%= __('<strong>Tip:</strong> we have a [link]list of plugins[/link] that work with MailPoet if you need fancier forms.')
9
+ |replaceLink('http://beta.docs.mailpoet.com/article/198-list-of-forms-plugins-that-work-with-mailpoet?utm_source=plugin&utm_medium=settings&utm_campaign=helpdocs', {'target' : '_blank'})
10
+ |raw
11
+ %>
12
+ </p>
13
+ </div>
14
+
15
  <script type="text/javascript">
16
  var mailpoet_listing_per_page = <%= items_per_page %>;
17
  var mailpoet_segments = <%= json_encode(segments) %>;
views/help.html ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <% extends 'layout.html' %>
2
+
3
+ <% block content %>
4
+
5
+ <h1 class="title"><%= __('Help') %></h1>
6
+
7
+ <div id="mailpoet_help">
8
+
9
+ <script type="text/javascript">
10
+ var help_scout_data = <%= json_encode(data) %>;
11
+ </script>
12
+
13
+ <div id="help_container"></div>
14
+
15
+ </div>
16
+
17
+ <% endblock %>
18
+ <% block translations %>
19
+ <%= localize({
20
+ 'tabKnowledgeBaseTitle': __('Knowledge Base'),
21
+ 'tabSystemInfoTitle': __('System Info'),
22
+ 'knowledgeBaseIntro': __('Click on one of these categories below to find more information:'),
23
+ 'knowledgeBaseButton': __('Visit our Knowledge Base for more articles'),
24
+ 'systemInfoIntro': __('The information below is useful when you need to get in touch with our support. Just copy all the text below and paste it into a message to us.'),
25
+ 'systemInfoDataError': __('Sorry, there was an error, please try again later.'),
26
+ }) %>
27
+ <% endblock %>
28
+
views/layout.html CHANGED
@@ -55,6 +55,9 @@ jQuery('.toplevel_page_mailpoet-newsletters.menu-top-last')
55
  'mailpoet.js'
56
  )%>
57
 
 
 
 
58
  <% block translations %><% endblock %>
59
 
60
  <% block after_translations %><% endblock %>
55
  'mailpoet.js'
56
  )%>
57
 
58
+ <%= localize({
59
+ 'ajaxFailedErrorMessage': __('An error has happened while performing a request, the server has responded with response code %d'),
60
+ }) %>
61
  <% block translations %><% endblock %>
62
 
63
  <% block after_translations %><% endblock %>
views/mp2migration.html CHANGED
@@ -10,8 +10,8 @@
10
  <h3><%= __('What will be kept in MailPoet 3') %></h3>
11
  <ul>
12
  <li><strong><%= __('Subscribers and lists') %> <img draggable="false" class="emoji" alt="✔" src="https://s.w.org/images/core/emoji/2.2.1/svg/2714.svg"></strong></li>
 
13
  <li><%= __('Settings') %> (<%= __('soon') %>!)</li>
14
- <li><%= __('Forms') %> (<%= __('soon') %>!)</li>
15
  <li><%= __('Archive of sent newsletters') %> (<%= __('soon') %>!)</li>
16
  </ul>
17
 
10
  <h3><%= __('What will be kept in MailPoet 3') %></h3>
11
  <ul>
12
  <li><strong><%= __('Subscribers and lists') %> <img draggable="false" class="emoji" alt="✔" src="https://s.w.org/images/core/emoji/2.2.1/svg/2714.svg"></strong></li>
13
+ <li><strong><%= __('Forms') %> <img draggable="false" class="emoji" alt="✔" src="https://s.w.org/images/core/emoji/2.2.1/svg/2714.svg"></strong></li>
14
  <li><%= __('Settings') %> (<%= __('soon') %>!)</li>
 
15
  <li><%= __('Archive of sent newsletters') %> (<%= __('soon') %>!)</li>
16
  </ul>
17
 
views/newsletter/editor.html CHANGED
@@ -1073,7 +1073,7 @@
1073
  },
1074
  },
1075
  posts: {
1076
- amount: '8',
1077
  contentType: 'post', // 'post'|'page'|'mailpoet_page'
1078
  postStatus: 'publish', // 'draft'|'pending'|'private'|'publish'|'future'
1079
  inclusionType: 'include', // 'include'|'exclude'
1073
  },
1074
  },
1075
  posts: {
1076
+ amount: '10',
1077
  contentType: 'post', // 'post'|'page'|'mailpoet_page'
1078
  postStatus: 'publish', // 'draft'|'pending'|'private'|'publish'|'future'
1079
  inclusionType: 'include', // 'include'|'exclude'
views/newsletter/templates/blocks/posts/settingsSelection.hbs CHANGED
@@ -23,3 +23,6 @@
23
  </div>
24
  <div class="mailpoet_post_selection_container">
25
  </div>
 
 
 
23
  </div>
24
  <div class="mailpoet_post_selection_container">
25
  </div>
26
+ <div class="mailpoet_post_selection_loading" style="visibility: hidden;">
27
+ <%= __('Loading posts...') %>
28
+ </div>
views/premium.html CHANGED
@@ -88,10 +88,7 @@
88
  </tbody>
89
  </table>
90
  <p><%= __("Spammers are ineligible to use the MailPoet Sending Service. We reserve the right to cancel any sending plan if we detect more than 5% hard bounces. [link]Customers are required to clean their lists before joining MailPoet[/link].")
91
- |replace({
92
- '[link]': '<a target="_blank" href="http://beta.docs.mailpoet.com/article/127-checklist-before-importing-subscribers?utm_source=plugin&utm_medium=premium&utm_campaign=clean-lists">',
93
- '[/link]': '</a>'
94
- })
95
  |raw
96
  %></p>
97
  </div>
@@ -137,17 +134,11 @@
137
  <br>
138
  <div style="width: 65%; margin: 0 auto;">
139
  <p style="text-align: center"><%= __("Already a Premium customer? [link]Add your Key in the Settings page[/link].")
140
- |replace({
141
- '[link]': '<a href="' ~ admin_url('admin.php?page=mailpoet-settings#premium') ~ '">',
142
- '[/link]': '</a>'
143
- })
144
  |raw
145
  %></p>
146
  <p style="text-align: center"><%= __("Don't need to use our sending service? Not a problem; we understand. You can also [link]buy the Premium[/link] features separately. Prices start at $100 per year for 1 website, $249 for 4 sites and $499 for an unlimited number of sites.")
147
- |replace({
148
- '[link]': '<a target="_blank" href="https://account.mailpoet.com/premium?utm_source=plugin&utm_medium=premium&utm_campaign=buy-premium">',
149
- '[/link]': '</a>'
150
- })
151
  |raw
152
  %></p>
153
  </div>
88
  </tbody>
89
  </table>
90
  <p><%= __("Spammers are ineligible to use the MailPoet Sending Service. We reserve the right to cancel any sending plan if we detect more than 5% hard bounces. [link]Customers are required to clean their lists before joining MailPoet[/link].")
91
+ |replaceLink('http://beta.docs.mailpoet.com/article/127-checklist-before-importing-subscribers?utm_source=plugin&utm_medium=premium&utm_campaign=clean-lists', {'target' : '_blank'})
 
 
 
92
  |raw
93
  %></p>
94
  </div>
134
  <br>
135
  <div style="width: 65%; margin: 0 auto;">
136
  <p style="text-align: center"><%= __("Already a Premium customer? [link]Add your Key in the Settings page[/link].")
137
+ |replaceLink(admin_url('admin.php?page=mailpoet-settings#premium'), {'target' : '_blank'})
 
 
 
138
  |raw
139
  %></p>
140
  <p style="text-align: center"><%= __("Don't need to use our sending service? Not a problem; we understand. You can also [link]buy the Premium[/link] features separately. Prices start at $100 per year for 1 website, $249 for 4 sites and $499 for an unlimited number of sites.")
141
+ |replaceLink('https://account.mailpoet.com/premium?utm_source=plugin&utm_medium=premium&utm_campaign=buy-premium', {'target' : '_blank'})
 
 
 
142
  |raw
143
  %></p>
144
  </div>
views/settings/advanced.html CHANGED
@@ -60,10 +60,7 @@
60
  checked="checked"
61
  <% endif %>
62
  /><%= __("MailPoet's own script. Doesn't work with [link]these hosts[/link].")
63
- |replace({
64
- '[link]': '<a target="_blank" href="http://docs.mailpoet.com/article/131-hosts-which-mailpoet-task-scheduler-wont-work">',
65
- '[/link]': '</a>'
66
- })
67
  |raw
68
  %>
69
  </label>
60
  checked="checked"
61
  <% endif %>
62
  /><%= __("MailPoet's own script. Doesn't work with [link]these hosts[/link].")
63
+ |replaceLink('http://docs.mailpoet.com/article/131-hosts-which-mailpoet-task-scheduler-wont-work', {'target' : '_blank'})
 
 
 
64
  |raw
65
  %>
66
  </label>
views/settings/basics.html CHANGED
@@ -387,6 +387,10 @@
387
  $('#mailpoet_subscription_edit_segments').select2();
388
  $('#mailpoet_shortcode_archives_list').select2();
389
  $('#mailpoet_shortcode_subscribers_count').select2();
 
 
 
 
390
 
391
  // shortcodes
392
  $('#mailpoet_shortcode_archives_list, #mailpoet_shortcode_subscribers_count')
387
  $('#mailpoet_subscription_edit_segments').select2();
388
  $('#mailpoet_shortcode_archives_list').select2();
389
  $('#mailpoet_shortcode_subscribers_count').select2();
390
+ // fix lengthy placeholder from being cut off by select 2
391
+ $('.select2-search__field').each(function() {
392
+ $(this).css('width', ($(this).attr('placeholder').length * 0.75) + 'em');
393
+ });
394
 
395
  // shortcodes
396
  $('#mailpoet_shortcode_archives_list, #mailpoet_shortcode_subscribers_count')
views/settings/mta.html CHANGED
@@ -143,12 +143,9 @@
143
  </li>
144
  </ul>
145
 
146
- <p class="mailpoet_sending_methods_help">
147
  <%= __("Need help to pick? [link]Check out the comparison table of sending methods[/link].")
148
- |replace({
149
- '[link]': '<a target="_blank" href="http://beta.docs.mailpoet.com/article/181-comparison-table-of-sending-methods">',
150
- '[/link]': '</a>'
151
- })
152
  |raw
153
  %>
154
  </p>
143
  </li>
144
  </ul>
145
 
146
+ <p class="mailpoet_sending_methods_help help">
147
  <%= __("Need help to pick? [link]Check out the comparison table of sending methods[/link].")
148
+ |replaceLink('http://beta.docs.mailpoet.com/article/181-comparison-table-of-sending-methods', {'target' : '_blank'})
 
 
 
149
  |raw
150
  %>
151
  </p>
views/settings/premium.html CHANGED
@@ -56,11 +56,8 @@
56
  ><%= __('Install Premium now.') %>
57
  </a>
58
  <span>
59
- <%= __("[link]Read guide[/link] on how to install Premium.")
60
- |replace({
61
- '[link]': '<a target="_blank" href="http://beta.docs.mailpoet.com/article/194-instructions-to-install-the-premium-plugin">',
62
- '[/link]': '</a>'
63
- })
64
  |raw
65
  %>
66
  </span>
@@ -85,10 +82,7 @@
85
  >
86
  <span>
87
  <%= __("Don't forget to activate the MailPoet Sending Service in the [link]Send with...[/link] tab above.")
88
- |replace({
89
- '[link]': '<a href="#mta">',
90
- '[/link]': '</a>'
91
- })
92
  |raw
93
  %>
94
  </span>
56
  ><%= __('Install Premium now.') %>
57
  </a>
58
  <span>
59
+ <%= __('[link]Read guide[/link] on how to install Premium.')
60
+ |replaceLink('http://beta.docs.mailpoet.com/article/194-instructions-to-install-the-premium-plugin', {'target' : '_blank'})
 
 
 
61
  |raw
62
  %>
63
  </span>
82
  >
83
  <span>
84
  <%= __("Don't forget to activate the MailPoet Sending Service in the [link]Send with...[/link] tab above.")
85
+ |replaceLink('#mta')
 
 
 
86
  |raw
87
  %>
88
  </span>
views/subscribers/importExport/import/step1.html CHANGED
@@ -30,7 +30,7 @@
30
  <th scope="row">
31
  <label for="paste_input"> <%= __('Copy and paste your subscribers from Excel/Spreadsheets') %>
32
  <p class="description">
33
- <%= csvDescription|replace({'[link]': csvKBLink, '[/link]': '</a>'})|raw %>
34
  </p>
35
  </label>
36
  </th>
@@ -54,7 +54,7 @@
54
  <label for="file_local">
55
  <%= __('Upload a file') %>
56
  <p class="description">
57
- <%= csvDescription|replace({'[link]': csvKBLink, '[/link]': '</a>'})|raw %>
58
  </p>
59
  </label>
60
  </th>
@@ -114,10 +114,7 @@
114
  <br/>
115
  <%=
116
  __('[link]Read more at our Knowledge Base[/link]')
117
- |replace({
118
- '[link]': '<a target="_blank" href="http://docs.mailpoet.com/article/127-checklist-before-importing-subscribers">',
119
- '[/link]': '</a>'
120
- })
121
  |raw
122
  %>
123
  </p>
30
  <th scope="row">
31
  <label for="paste_input"> <%= __('Copy and paste your subscribers from Excel/Spreadsheets') %>
32
  <p class="description">
33
+ <%= csvDescription|replaceLink(csvKBLink, {'target' : '_blank'})|raw %>
34
  </p>
35
  </label>
36
  </th>
54
  <label for="file_local">
55
  <%= __('Upload a file') %>
56
  <p class="description">
57
+ <%= csvDescription|replaceLink(csvKBLink, {'target' : '_blank'})|raw %>
58
  </p>
59
  </label>
60
  </th>
114
  <br/>
115
  <%=
116
  __('[link]Read more at our Knowledge Base[/link]')
117
+ |replaceLink('http://docs.mailpoet.com/article/127-checklist-before-importing-subscribers', {'target' : '_blank'})
 
 
 
118
  |raw
119
  %>
120
  </p>
views/subscribers/importExport/import/step2.html CHANGED
@@ -46,10 +46,7 @@
46
  <th scope="row">
47
  <%=
48
  __('To add subscribers to a mailing segment, [link]create a list[/link].')
49
- |replace({
50
- '[link]': '<a href="javascript:;" class="mailpoet_create_segment">',
51
- '[/link]': '</a>'
52
- })
53
  |raw
54
  %>
55
  </th>
46
  <th scope="row">
47
  <%=
48
  __('To add subscribers to a mailing segment, [link]create a list[/link].')
49
+ |replaceLink('javascript:;', {'target' : '_blank', 'class' : 'mailpoet_create_segment'})
 
 
 
50
  |raw
51
  %>
52
  </th>