PluginProbe ʕ •ᴥ•ʔ
MailPoet – Newsletters, Email Marketing, and Automation / 5.34.2
MailPoet – Newsletters, Email Marketing, and Automation v5.34.2
5.34.2 5.34.1 5.34.0 5.33.1 5.33.0 5.32.0 5.31.0 5.30.0 5.29.0 5.28.1 5.28.0 5.27.0 5.26.0 5.26.1 5.25.0 5.24.0 4.43.0 4.43.1 4.44.0 4.44.1 4.45.0 4.46.0 4.47.0 4.48.0 4.48.1 4.48.2 4.49.0 4.49.1 4.5.0 4.5.1 4.5.2 4.50.0 4.50.1 4.51.0 4.51.1 4.51.2 4.52.0 4.53.0 4.54.0 4.55.0 4.56.0 4.57.0 4.58.0 4.58.1 4.58.2 4.6.0 4.6.1 4.6.2 4.7.0 4.7.1 4.8.0 4.8.1 4.9.0 5.0.0 5.0.1 5.0.2 5.1.0 5.1.1 5.10.0 5.10.1 5.11.0 5.12.0 5.12.1 5.12.10 5.12.11 5.12.12 5.12.13 5.12.2 5.12.3 5.12.4 5.12.5 5.12.6 5.12.7 5.12.8 5.12.9 5.13.0 5.13.1 5.13.2 5.14.0 5.14.1 5.14.2 5.14.3 5.15.0 5.15.1 5.16.0 5.16.1 5.16.2 5.16.3 5.16.4 5.17.0 5.17.1 5.17.2 5.17.3 5.17.4 5.17.5 5.17.6 5.18.0 5.19.0 5.2.0 5.2.1 5.2.2 5.2.3 5.20.0 5.21.0 5.21.1 5.21.2 5.21.3 5.22.0 5.22.1 5.22.2 5.22.3 5.22.4 5.23.0 5.23.1 5.23.2 5.3.0 5.3.1 5.3.2 5.3.3 5.3.4 5.3.5 5.3.6 5.3.7 5.4.0 5.4.1 5.4.2 5.5.0 5.5.1 5.5.2 5.6.0 5.6.1 5.6.2 5.6.3 5.6.4 5.7.0 5.7.1 5.8.0 5.8.1 5.9.0 3.0.0-beta.15 3.7.1 3.0.0-beta.16 3.7.2 3.0.0-beta.17 3.7.3 3.0.0-beta.18 3.7.4 3.0.0-beta.19 3.7.5 3.0.0-beta.2 3.7.6 3.0.0-beta.20 3.7.8 3.0.0-beta.21 3.70.0 3.0.0-beta.22 3.71.0 3.0.0-beta.23 3.71.1 3.0.0-beta.23.1 3.71.2 3.0.0-beta.23.2 3.71.3 3.0.0-beta.24 3.72.0 3.0.0-beta.25 3.73.0 3.0.0-beta.26 3.73.1 3.0.0-beta.27 3.73.2 3.0.0-beta.28 3.74.0 3.0.0-beta.29 3.74.1 3.0.0-beta.3 3.74.2 3.0.0-beta.30 3.74.3 3.0.0-beta.31 3.75.0 3.0.0-beta.32 3.75.1 3.0.0-beta.33 3.76.0 3.0.0-beta.33.1 3.77.0 3.0.0-beta.34.0.0 3.77.1 3.0.0-beta.36.0.0 3.78.0 3.0.0-beta.36.0.1 3.79.0 3.0.0-beta.36.2.0 3.8 3.0.0-beta.36.3.0 3.8.1 3.0.0-beta.36.3.1 3.8.2 3.0.0-beta.37.0.0 3.8.3 3.0.0-beta.4 3.8.4 3.0.0-beta.5 3.8.5 3.0.0-beta.6 3.8.6 3.0.0-beta.7 3.80.0 3.0.0-beta.7.1 3.81.0 3.0.0-beta.8 3.82.0 3.0.0-beta.9 3.83.0 3.0.0-rc.1.0.0 3.84.0 3.0.0-rc.1.0.1 3.84.1 3.0.0-rc.1.0.2 3.85.0 3.0.0-rc.1.0.3 3.85.1 3.0.0-rc.1.0.4 3.86.0 3.0.0-rc.2.0.0 3.87.0 3.0.0-rc.2.0.1 3.87.1 3.0.0-rc.2.0.2 3.87.2 3.0.0-rc.2.0.3 3.88.0 3.0.1 3.88.1 3.0.2 3.88.2 3.0.3 3.89.0 3.0.4 3.89.1 3.0.5 3.89.2 3.0.6 3.89.3 3.0.7 3.89.4 3.0.8 3.9.0 3.0.9 3.9.1 3.1.0 3.90.0 3.10 3.90.1 3.10.1 3.90.2 3.100.0 3.91.0 3.100.1 3.91.1 3.100.2 3.92.0 3.101.0 3.92.1 3.101.1 3.93.0 3.102.0 3.93.1 3.102.1 3.94.0 3.103.0 3.95.0 3.103.1 3.95.1 3.11.0 3.96.0 3.11.1 3.96.1 3.11.2 3.97.0 3.11.3 3.98.0 3.11.4 3.98.1 3.11.5 3.99.0 3.12.0 3.99.1 3.12.1 4.0.0 3.13.0 4.0.1 3.14.0 4.1.0 3.14.1 4.1.1 3.15.0 4.10.0 3.16.0 4.11.0 3.16.1 4.11.1 3.16.2 4.12.0 3.16.3 4.12.1 3.17.0 4.12.2 3.17.1 4.13.0 3.17.2 4.14.0 3.18.0 4.15.0 3.18.1 4.16.0 3.18.2 4.17.0 3.19.0 4.17.1 3.19.1 4.18.0 3.19.2 4.18.1 3.19.3 4.19.0 3.2.0 4.2.0 3.2.1 4.20.0 3.2.2 4.20.1 3.2.3 4.20.2 3.2.4 4.21.0 3.2.5 4.22.0 3.20.0 4.22.1 3.21.0 4.22.2 3.21.1 4.23.0 3.22.0 4.24.0 3.23.0 4.25.0 3.23.1 4.26.0 3.23.2 4.26.1 3.24.0 4.27.0 3.25.0 4.28.0 3.25.1 4.29.0 3.26.0 4.3.0 3.26.1 4.3.1 3.27.0 4.30.0 3.28.0 4.31.0 3.29.0 4.31.1 3.3.0 4.32.0 3.3.1 4.33.0 3.3.2 4.34.0 3.3.3 4.35.0 3.3.4 4.35.1 3.3.5 4.36.0 3.3.6 4.37.0 3.30.0 4.38.0 3.31.0 4.39.0 3.31.1 4.4.0 3.32.0 4.40.0 3.32.1 4.41.0 3.32.2 4.41.1 3.33.0 4.41.2 3.34.0 4.41.3 3.34.1 4.42.0 3.34.2 4.42.1 3.34.3 3.34.4 3.35.0 3.35.1 3.35.3 3.35.4 3.36.0 3.37.0 3.37.1 3.37.2 3.37.3 3.38.0 3.38.1 3.39.0 3.39.1 3.39.2 3.4.0 3.4.1 3.4.2 3.4.3 3.4.4 3.40.0 3.40.1 3.41.0 3.41.1 3.41.2 3.42.0 3.42.1 3.42.2 3.42.3 3.43.0 3.43.1 3.44.0 3.45.0 3.45.1 3.46.0 3.46.1 3.46.10 3.46.11 3.46.12 3.46.13 3.46.14 3.46.2 3.46.3 3.46.4 3.46.5 3.46.6 3.46.7 3.46.8 3.46.9 3.47.0 3.47.1 3.47.10 3.47.11 3.47.2 3.47.3 3.47.5 3.47.6 3.47.7 3.47.9 3.48.0 3.48.1 3.49.0 3.49.1 3.5.0 3.5.1 3.50.0 3.51.0 3.51.1 3.51.2 3.52.0 3.53.0 3.54.0 3.54.1 3.54.2 3.54.3 3.55.0 3.55.1 3.56.0 3.56.1 3.56.2 3.57.0 3.57.1 3.58.0 3.59.0 3.59.1 3.59.2 3.6.0 3.6.1 3.6.2 3.6.3 3.6.4 3.6.5 3.6.6 3.6.7 3.60.0 3.60.1 3.60.10 3.60.11 3.60.12 3.60.2 3.60.3 3.60.4 3.60.6 3.60.7 3.60.8 3.60.9 3.61.0 3.62.0 3.62.1 3.63.0 3.64.0 3.64.1 3.64.2 3.64.3 3.65.0 trunk 3.65.1 3.0.0 3.66.0 3.0.0-beta.1 3.67.0 3.0.0-beta.10 3.67.1 3.0.0-beta.11 3.68.0 3.0.0-beta.12 3.69.0 3.0.0-beta.13 3.69.1 3.0.0-beta.14 3.7.0
mailpoet / lib / Config / PopulatorData / Templates / NotSoMedium.php
mailpoet / lib / Config / PopulatorData / Templates Last commit date
AppWelcome.php 1 year ago Avocado.php 1 year ago Birds.php 1 year ago BirthdayCelebration.php 2 months ago BookStoreWithCoupon.php 1 year ago BrandingAgencyNews.php 1 year ago BuddhistTemple.php 1 year ago Charity.php 1 year ago CityLocalNews.php 1 year ago ClearNews.php 1 year ago Coffee.php 1 year ago College.php 1 year ago ComputerRepair.php 1 year ago ConfirmInterestBeforeDeactivation.php 2 years ago ConfirmInterestOrUnsubscribe.php 2 years ago DogFood.php 1 year ago Drone.php 1 year ago Engineering.php 1 year ago Faith.php 1 year ago FarmersMarket.php 1 year ago FashionBlog.php 1 year ago FashionBlogA.php 1 year ago FashionShop.php 1 year ago FashionStore.php 1 year ago FestivalEvent.php 1 year ago Fitness.php 1 year ago FlowersWithCoupon.php 1 year ago FoodBox.php 1 year ago GiftWelcome.php 1 year ago Guitarist.php 1 year ago HealthyFoodBlog.php 1 year ago Hotels.php 1 year ago IndustryConference.php 1 year ago JazzClub.php 1 year ago KidsClothing.php 1 year ago LifestyleBlogA.php 1 year ago LifestyleBlogB.php 1 year ago Minimal.php 1 year ago ModularStyleStories.php 1 year ago Mosque.php 1 year ago Motor.php 1 year ago Music.php 1 year ago NewsDay.php 1 year ago NewsletterBlank121Column.php 1 year ago NewsletterBlank12Column.php 1 year ago NewsletterBlank13Column.php 1 year ago NewsletterBlank1Column.php 1 year ago NewspaperTraditional.php 1 year ago NotSoMedium.php 1 year ago Painter.php 1 year ago Phone.php 1 year ago Photography.php 1 year ago PieceOfCake.php 1 year ago Poet.php 1 year ago PostNotificationsBlank1Column.php 1 year ago PrimarySchool.php 1 year ago RealEstate.php 1 year ago RenewableEnergy.php 1 year ago Retro.php 1 year ago RetroComputingMagazine.php 1 year ago RockBand.php 1 year ago RssSimpleNews.php 1 year ago ScienceWeekly.php 1 year ago Shoes.php 1 year ago SimpleText.php 2 years ago Software.php 1 year ago Sunglasses.php 1 year ago Synagogue.php 1 year ago TakeAHike.php 1 year ago Vlogger.php 1 year ago WelcomeBlank12Column.php 1 year ago WelcomeBlank1Column.php 1 year ago WideStoryLayout.php 1 year ago WineCity.php 1 year ago WordPressTheme.php 1 year ago WorldCup.php 1 year ago YogaStudio.php 1 year ago index.php 3 years ago
NotSoMedium.php
1004 lines
1 <?php // phpcs:ignore SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing
2
3 namespace MailPoet\Config\PopulatorData\Templates;
4
5 if (!defined('ABSPATH')) exit;
6
7
8 class NotSoMedium {
9
10 private $template_image_url;
11 private $social_icon_url;
12
13 public function __construct(
14 $assets_url
15 ) {
16 $this->template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/not-so-medium';
17 $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons';
18 }
19
20 public function get() {
21 return [
22 'name' => __("One Full Post In An Email", 'mailpoet'),
23 'categories' => json_encode(['notification', 'all']),
24 'readonly' => 1,
25 'thumbnail' => $this->getThumbnail(),
26 'body' => json_encode($this->getBody()),
27 ];
28 }
29
30 private function getThumbnail() {
31 return $this->template_image_url . '/thumbnail.20190411-1500.jpg';
32 }
33
34 private function getBody() {
35 return [
36 'content' =>
37 [
38 'type' => 'container',
39 'columnLayout' => false,
40 'orientation' => 'vertical',
41 'image' =>
42 [
43 'src' => null,
44 'display' => 'scale',
45 ],
46 'styles' =>
47 [
48 'block' =>
49 [
50 'backgroundColor' => 'transparent',
51 ],
52 ],
53 'blocks' =>
54 [
55 0 =>
56 [
57 'type' => 'container',
58 'columnLayout' => false,
59 'orientation' => 'horizontal',
60 'image' =>
61 [
62 'src' => null,
63 'display' => 'scale',
64 ],
65 'styles' =>
66 [
67 'block' =>
68 [
69 'backgroundColor' => '#ffffff',
70 ],
71 ],
72 'blocks' =>
73 [
74 0 =>
75 [
76 'type' => 'container',
77 'columnLayout' => false,
78 'orientation' => 'vertical',
79 'image' =>
80 [
81 'src' => null,
82 'display' => 'scale',
83 ],
84 'styles' =>
85 [
86 'block' =>
87 [
88 'backgroundColor' => 'transparent',
89 ],
90 ],
91 'blocks' =>
92 [
93 0 =>
94 [
95 'type' => 'spacer',
96 'styles' =>
97 [
98 'block' =>
99 [
100 'backgroundColor' => 'transparent',
101 'height' => '30px',
102 ],
103 ],
104 ],
105 ],
106 ],
107 ],
108 ],
109 1 =>
110 [
111 'type' => 'container',
112 'columnLayout' => false,
113 'orientation' => 'horizontal',
114 'image' =>
115 [
116 'src' => null,
117 'display' => 'scale',
118 ],
119 'styles' =>
120 [
121 'block' =>
122 [
123 'backgroundColor' => 'transparent',
124 ],
125 ],
126 'blocks' =>
127 [
128 0 =>
129 [
130 'type' => 'container',
131 'columnLayout' => false,
132 'orientation' => 'vertical',
133 'image' =>
134 [
135 'src' => null,
136 'display' => 'scale',
137 ],
138 'styles' =>
139 [
140 'block' =>
141 [
142 'backgroundColor' => 'transparent',
143 ],
144 ],
145 'blocks' =>
146 [
147 0 =>
148 [
149 'type' => 'image',
150 'link' => '',
151 'src' => $this->template_image_url . '/Not-So-Medium-Logo.png',
152 'alt' => 'Not-So-Medium-Logo',
153 'fullWidth' => false,
154 'width' => '210px',
155 'height' => '90px',
156 'styles' =>
157 [
158 'block' =>
159 [
160 'textAlign' => 'center',
161 ],
162 ],
163 ],
164 ],
165 ],
166 1 =>
167 [
168 'type' => 'container',
169 'columnLayout' => false,
170 'orientation' => 'vertical',
171 'image' =>
172 [
173 'src' => null,
174 'display' => 'scale',
175 ],
176 'styles' =>
177 [
178 'block' =>
179 [
180 'backgroundColor' => 'transparent',
181 ],
182 ],
183 'blocks' =>
184 [
185 0 =>
186 [
187 'type' => 'spacer',
188 'styles' =>
189 [
190 'block' =>
191 [
192 'backgroundColor' => 'transparent',
193 'height' => '40px',
194 ],
195 ],
196 ],
197 ],
198 ],
199 2 =>
200 [
201 'type' => 'container',
202 'columnLayout' => false,
203 'orientation' => 'vertical',
204 'image' =>
205 [
206 'src' => null,
207 'display' => 'scale',
208 ],
209 'styles' =>
210 [
211 'block' =>
212 [
213 'backgroundColor' => 'transparent',
214 ],
215 ],
216 'blocks' =>
217 [
218 0 =>
219 [
220 'type' => 'spacer',
221 'styles' =>
222 [
223 'block' =>
224 [
225 'backgroundColor' => 'transparent',
226 'height' => '20px',
227 ],
228 ],
229 ],
230 1 =>
231 [
232 'type' => 'social',
233 'iconSet' => 'official',
234 'icons' =>
235 [
236 0 =>
237 [
238 'type' => 'socialIcon',
239 'iconType' => 'facebook',
240 'link' => 'http://www.facebook.com',
241 'image' => $this->social_icon_url . '/11-official/Facebook.png',
242 'height' => '32px',
243 'width' => '32px',
244 'text' => 'Facebook',
245 ],
246 1 =>
247 [
248 'type' => 'socialIcon',
249 'iconType' => 'twitter',
250 'link' => 'http://www.twitter.com',
251 'image' => $this->social_icon_url . '/11-official/X.png',
252 'height' => '32px',
253 'width' => '32px',
254 'text' => 'Twitter',
255 ],
256 2 =>
257 [
258 'type' => 'socialIcon',
259 'iconType' => 'website',
260 'link' => '',
261 'image' => $this->social_icon_url . '/11-official/Website.png',
262 'height' => '32px',
263 'width' => '32px',
264 'text' => 'Website',
265 ],
266 ],
267 ],
268 ],
269 ],
270 ],
271 ],
272 2 =>
273 [
274 'type' => 'container',
275 'columnLayout' => false,
276 'orientation' => 'horizontal',
277 'image' =>
278 [
279 'src' => null,
280 'display' => 'scale',
281 ],
282 'styles' =>
283 [
284 'block' =>
285 [
286 'backgroundColor' => '#ebebeb',
287 ],
288 ],
289 'blocks' =>
290 [
291 0 =>
292 [
293 'type' => 'container',
294 'columnLayout' => false,
295 'orientation' => 'vertical',
296 'image' =>
297 [
298 'src' => null,
299 'display' => 'scale',
300 ],
301 'styles' =>
302 [
303 'block' =>
304 [
305 'backgroundColor' => 'transparent',
306 ],
307 ],
308 'blocks' =>
309 [
310 0 =>
311 [
312 'type' => 'spacer',
313 'styles' =>
314 [
315 'block' =>
316 [
317 'backgroundColor' => 'transparent',
318 'height' => '20px',
319 ],
320 ],
321 ],
322 1 =>
323 [
324 'type' => 'text',
325 'text' => '<p><strong><em>Welcome to this week\'s post. </em></strong></p>
326 <p><em>Every Friday, we send you the most interesting story&nbsp;of the week in full.</em></p>',
327 ],
328 2 =>
329 [
330 'type' => 'spacer',
331 'styles' =>
332 [
333 'block' =>
334 [
335 'backgroundColor' => '#d6d6d6',
336 'height' => '20px',
337 ],
338 ],
339 ],
340 3 =>
341 [
342 'type' => 'spacer',
343 'styles' =>
344 [
345 'block' =>
346 [
347 'backgroundColor' => '#ffffff',
348 'height' => '63px',
349 ],
350 ],
351 ],
352 ],
353 ],
354 ],
355 ],
356 3 =>
357 [
358 'type' => 'automatedLatestContentLayout',
359 'withLayout' => true,
360 'amount' => '1',
361 'contentType' => 'post',
362 'terms' =>
363 [
364 ],
365 'inclusionType' => 'include',
366 'displayType' => 'full',
367 'titleFormat' => 'h1',
368 'titleAlignment' => 'center',
369 'titleIsLink' => true,
370 'imageFullWidth' => false,
371 'featuredImagePosition' => 'alternate',
372 'showAuthor' => 'aboveText',
373 'authorPrecededBy' => 'Author:',
374 'showCategories' => 'aboveText',
375 'categoriesPrecededBy' => 'Categories:',
376 'readMoreType' => 'link',
377 'readMoreText' => 'View this post online & share!',
378 'readMoreButton' =>
379 [
380 'type' => 'button',
381 'text' => 'Read more',
382 'url' => '[postLink]',
383 'styles' =>
384 [
385 'block' =>
386 [
387 'backgroundColor' => '#2ea1cd',
388 'borderColor' => '#0074a2',
389 'borderWidth' => '1px',
390 'borderRadius' => '5px',
391 'borderStyle' => 'solid',
392 'width' => '180px',
393 'lineHeight' => '40px',
394 'fontColor' => '#ffffff',
395 'fontFamily' => 'Verdana',
396 'fontSize' => '18px',
397 'fontWeight' => 'normal',
398 'textAlign' => 'center',
399 ],
400 ],
401 'context' => 'automatedLatestContentLayout.readMoreButton',
402 ],
403 'sortBy' => 'newest',
404 'showDivider' => true,
405 'divider' =>
406 [
407 'type' => 'divider',
408 'styles' =>
409 [
410 'block' =>
411 [
412 'backgroundColor' => 'transparent',
413 'padding' => '13px',
414 'borderStyle' => 'solid',
415 'borderWidth' => '1px',
416 'borderColor' => '#aaaaaa',
417 ],
418 ],
419 'context' => 'automatedLatestContentLayout.divider',
420 ],
421 'backgroundColor' => '#ffffff',
422 'backgroundColorAlternate' => '#eeeeee',
423 ],
424 4 =>
425 [
426 'type' => 'container',
427 'columnLayout' => false,
428 'orientation' => 'horizontal',
429 'image' =>
430 [
431 'src' => null,
432 'display' => 'scale',
433 ],
434 'styles' =>
435 [
436 'block' =>
437 [
438 'backgroundColor' => '#ebebeb',
439 ],
440 ],
441 'blocks' =>
442 [
443 0 =>
444 [
445 'type' => 'container',
446 'columnLayout' => false,
447 'orientation' => 'vertical',
448 'image' =>
449 [
450 'src' => null,
451 'display' => 'scale',
452 ],
453 'styles' =>
454 [
455 'block' =>
456 [
457 'backgroundColor' => 'transparent',
458 ],
459 ],
460 'blocks' =>
461 [
462 0 =>
463 [
464 'type' => 'spacer',
465 'styles' =>
466 [
467 'block' =>
468 [
469 'backgroundColor' => 'transparent',
470 'height' => '20px',
471 ],
472 ],
473 ],
474 1 =>
475 [
476 'type' => 'text',
477 'text' => '<p style="text-align: center;"><strong><em>Share this with your friends</em></strong></p>
478 <p style="text-align: center;"><em>We promise not to spam anyone, and we only send our great articles to any email addresses in our list. Promise!</em></p>',
479 ],
480 2 =>
481 [
482 'type' => 'social',
483 'iconSet' => 'official',
484 'icons' =>
485 [
486 0 =>
487 [
488 'type' => 'socialIcon',
489 'iconType' => 'facebook',
490 'link' => 'http://www.facebook.com',
491 'image' => $this->social_icon_url . '/11-official/Facebook.png',
492 'height' => '32px',
493 'width' => '32px',
494 'text' => 'Facebook',
495 ],
496 1 =>
497 [
498 'type' => 'socialIcon',
499 'iconType' => 'twitter',
500 'link' => 'http://www.twitter.com',
501 'image' => $this->social_icon_url . '/11-official/X.png',
502 'height' => '32px',
503 'width' => '32px',
504 'text' => 'Twitter',
505 ],
506 2 =>
507 [
508 'type' => 'socialIcon',
509 'iconType' => 'linkedin',
510 'link' => 'http://www.linkedin.com',
511 'image' => $this->social_icon_url . '/11-official/Linkedin.png',
512 'height' => '32px',
513 'width' => '32px',
514 'text' => 'LinkedIn',
515 ],
516 3 =>
517 [
518 'type' => 'socialIcon',
519 'iconType' => 'email',
520 'link' => '',
521 'image' => $this->social_icon_url . '/11-official/Email.png',
522 'height' => '32px',
523 'width' => '32px',
524 'text' => 'Email',
525 ],
526 ],
527 ],
528 3 =>
529 [
530 'type' => 'spacer',
531 'styles' =>
532 [
533 'block' =>
534 [
535 'backgroundColor' => '#d6d6d6',
536 'height' => '20px',
537 ],
538 ],
539 ],
540 ],
541 ],
542 ],
543 ],
544 5 =>
545 [
546 'type' => 'container',
547 'columnLayout' => false,
548 'orientation' => 'horizontal',
549 'image' =>
550 [
551 'src' => null,
552 'display' => 'scale',
553 ],
554 'styles' =>
555 [
556 'block' =>
557 [
558 'backgroundColor' => '#ffffff',
559 ],
560 ],
561 'blocks' =>
562 [
563 0 =>
564 [
565 'type' => 'container',
566 'columnLayout' => false,
567 'orientation' => 'vertical',
568 'image' =>
569 [
570 'src' => null,
571 'display' => 'scale',
572 ],
573 'styles' =>
574 [
575 'block' =>
576 [
577 'backgroundColor' => 'transparent',
578 ],
579 ],
580 'blocks' =>
581 [
582 0 =>
583 [
584 'type' => 'spacer',
585 'styles' =>
586 [
587 'block' =>
588 [
589 'backgroundColor' => 'transparent',
590 'height' => '20px',
591 ],
592 ],
593 ],
594 1 =>
595 [
596 'type' => 'footer',
597 'text' => '<p><strong><a href="[link:subscription_unsubscribe_url]">' . __("Unsubscribe", 'mailpoet') . '</a> | <a href="[link:subscription_manage_url]">' . __("Manage your subscription", 'mailpoet') . '</a></strong><br />' . __("Add your postal address here!", 'mailpoet') . '</p>',
598 'styles' =>
599 [
600 'block' =>
601 [
602 'backgroundColor' => 'transparent',
603 ],
604 'text' =>
605 [
606 'fontColor' => '#222222',
607 'fontFamily' => 'Arial',
608 'fontSize' => '12px',
609 'textAlign' => 'center',
610 ],
611 'link' =>
612 [
613 'fontColor' => '#2c2c2c',
614 'textDecoration' => 'none',
615 ],
616 ],
617 ],
618 ],
619 ],
620 ],
621 ],
622 ],
623 ],
624 'globalStyles' =>
625 [
626 'text' =>
627 [
628 'fontColor' => '#000000',
629 'fontFamily' => 'Georgia',
630 'fontSize' => '18px',
631 ],
632 'h1' =>
633 [
634 'fontColor' => '#111111',
635 'fontFamily' => 'Arial',
636 'fontSize' => '30px',
637 ],
638 'h2' =>
639 [
640 'fontColor' => '#222222',
641 'fontFamily' => 'Arial',
642 'fontSize' => '24px',
643 ],
644 'h3' =>
645 [
646 'fontColor' => '#333333',
647 'fontFamily' => 'Arial',
648 'fontSize' => '22px',
649 ],
650 'link' =>
651 [
652 'fontColor' => '#21759B',
653 'textDecoration' => 'underline',
654 ],
655 'wrapper' =>
656 [
657 'backgroundColor' => '#ffffff',
658 ],
659 'body' =>
660 [
661 'backgroundColor' => '#ffffff',
662 ],
663 ],
664 'blockDefaults' =>
665 [
666 'automatedLatestContent' =>
667 [
668 'amount' => '5',
669 'withLayout' => false,
670 'contentType' => 'post',
671 'inclusionType' => 'include',
672 'displayType' => 'excerpt',
673 'titleFormat' => 'h1',
674 'titleAlignment' => 'left',
675 'titleIsLink' => false,
676 'imageFullWidth' => false,
677 'featuredImagePosition' => 'belowTitle',
678 'showAuthor' => 'no',
679 'authorPrecededBy' => 'Author:',
680 'showCategories' => 'no',
681 'categoriesPrecededBy' => 'Categories:',
682 'readMoreType' => 'button',
683 'readMoreText' => 'Read more',
684 'readMoreButton' =>
685 [
686 'text' => 'Read more',
687 'url' => '[postLink]',
688 'context' => 'automatedLatestContent.readMoreButton',
689 'styles' =>
690 [
691 'block' =>
692 [
693 'backgroundColor' => '#2ea1cd',
694 'borderColor' => '#0074a2',
695 'borderWidth' => '1px',
696 'borderRadius' => '5px',
697 'borderStyle' => 'solid',
698 'width' => '180px',
699 'lineHeight' => '40px',
700 'fontColor' => '#ffffff',
701 'fontFamily' => 'Verdana',
702 'fontSize' => '18px',
703 'fontWeight' => 'normal',
704 'textAlign' => 'center',
705 ],
706 ],
707 ],
708 'sortBy' => 'newest',
709 'showDivider' => true,
710 'divider' =>
711 [
712 'context' => 'automatedLatestContent.divider',
713 'styles' =>
714 [
715 'block' =>
716 [
717 'backgroundColor' => 'transparent',
718 'padding' => '13px',
719 'borderStyle' => 'solid',
720 'borderWidth' => '3px',
721 'borderColor' => '#aaaaaa',
722 ],
723 ],
724 ],
725 'backgroundColor' => '#ffffff',
726 'backgroundColorAlternate' => '#eeeeee',
727 ],
728 'automatedLatestContentLayout' =>
729 [
730 'amount' => '1',
731 'withLayout' => true,
732 'contentType' => 'post',
733 'inclusionType' => 'include',
734 'displayType' => 'full',
735 'titleFormat' => 'h1',
736 'titleAlignment' => 'center',
737 'titleIsLink' => true,
738 'imageFullWidth' => false,
739 'featuredImagePosition' => 'alternate',
740 'showAuthor' => 'aboveText',
741 'authorPrecededBy' => 'Author:',
742 'showCategories' => 'aboveText',
743 'categoriesPrecededBy' => 'Categories:',
744 'readMoreType' => 'link',
745 'readMoreText' => 'View this post online & share!',
746 'readMoreButton' =>
747 [
748 'text' => 'Read more',
749 'url' => '[postLink]',
750 'context' => 'automatedLatestContentLayout.readMoreButton',
751 'styles' =>
752 [
753 'block' =>
754 [
755 'backgroundColor' => '#2ea1cd',
756 'borderColor' => '#0074a2',
757 'borderWidth' => '1px',
758 'borderRadius' => '5px',
759 'borderStyle' => 'solid',
760 'width' => '180px',
761 'lineHeight' => '40px',
762 'fontColor' => '#ffffff',
763 'fontFamily' => 'Verdana',
764 'fontSize' => '18px',
765 'fontWeight' => 'normal',
766 'textAlign' => 'center',
767 ],
768 ],
769 'type' => 'button',
770 ],
771 'sortBy' => 'newest',
772 'showDivider' => true,
773 'divider' =>
774 [
775 'context' => 'automatedLatestContentLayout.divider',
776 'styles' =>
777 [
778 'block' =>
779 [
780 'backgroundColor' => 'transparent',
781 'padding' => '13px',
782 'borderStyle' => 'solid',
783 'borderWidth' => '1px',
784 'borderColor' => '#aaaaaa',
785 ],
786 ],
787 'type' => 'divider',
788 ],
789 'backgroundColor' => '#ffffff',
790 'backgroundColorAlternate' => '#eeeeee',
791 'type' => 'automatedLatestContentLayout',
792 'terms' =>
793 [
794 ],
795 ],
796 'button' =>
797 [
798 'text' => 'Read more',
799 'url' => '[postLink]',
800 'styles' =>
801 [
802 'block' =>
803 [
804 'backgroundColor' => '#2ea1cd',
805 'borderColor' => '#0074a2',
806 'borderWidth' => '1px',
807 'borderRadius' => '5px',
808 'borderStyle' => 'solid',
809 'width' => '180px',
810 'lineHeight' => '40px',
811 'fontColor' => '#ffffff',
812 'fontFamily' => 'Verdana',
813 'fontSize' => '18px',
814 'fontWeight' => 'normal',
815 'textAlign' => 'center',
816 ],
817 ],
818 'type' => 'button',
819 ],
820 'container' =>
821 [
822 'image' =>
823 [
824 'src' => null,
825 'display' => 'scale',
826 ],
827 'styles' =>
828 [
829 'block' =>
830 [
831 'backgroundColor' => 'transparent',
832 ],
833 ],
834 ],
835 'divider' =>
836 [
837 'styles' =>
838 [
839 'block' =>
840 [
841 'backgroundColor' => 'transparent',
842 'padding' => '13px',
843 'borderStyle' => 'solid',
844 'borderWidth' => '3px',
845 'borderColor' => '#aaaaaa',
846 ],
847 ],
848 'type' => 'divider',
849 ],
850 'footer' =>
851 [
852 'text' => '<p><a href="[link:subscription_unsubscribe_url]">' . __("Unsubscribe", 'mailpoet') . '</a> | <a href="[link:subscription_manage_url]">' . __("Manage your subscription", 'mailpoet') . '</a><br />' . __("Add your postal address here!", 'mailpoet') . '</p>',
853 'styles' =>
854 [
855 'block' =>
856 [
857 'backgroundColor' => 'transparent',
858 ],
859 'text' =>
860 [
861 'fontColor' => '#222222',
862 'fontFamily' => 'Arial',
863 'fontSize' => '12px',
864 'textAlign' => 'center',
865 ],
866 'link' =>
867 [
868 'fontColor' => '#6cb7d4',
869 'textDecoration' => 'none',
870 ],
871 ],
872 ],
873 'posts' =>
874 [
875 'amount' => '10',
876 'withLayout' => true,
877 'contentType' => 'post',
878 'postStatus' => 'publish',
879 'inclusionType' => 'include',
880 'displayType' => 'excerpt',
881 'titleFormat' => 'h1',
882 'titleAlignment' => 'left',
883 'titleIsLink' => false,
884 'imageFullWidth' => false,
885 'featuredImagePosition' => 'alternate',
886 'showAuthor' => 'no',
887 'authorPrecededBy' => 'Author:',
888 'showCategories' => 'no',
889 'categoriesPrecededBy' => 'Categories:',
890 'readMoreType' => 'link',
891 'readMoreText' => 'Read more',
892 'readMoreButton' =>
893 [
894 'text' => 'Read more',
895 'url' => '[postLink]',
896 'context' => 'posts.readMoreButton',
897 'styles' =>
898 [
899 'block' =>
900 [
901 'backgroundColor' => '#2ea1cd',
902 'borderColor' => '#0074a2',
903 'borderWidth' => '1px',
904 'borderRadius' => '5px',
905 'borderStyle' => 'solid',
906 'width' => '180px',
907 'lineHeight' => '40px',
908 'fontColor' => '#ffffff',
909 'fontFamily' => 'Verdana',
910 'fontSize' => '18px',
911 'fontWeight' => 'normal',
912 'textAlign' => 'center',
913 ],
914 ],
915 'type' => 'button',
916 ],
917 'sortBy' => 'newest',
918 'showDivider' => true,
919 'divider' =>
920 [
921 'context' => 'posts.divider',
922 'styles' =>
923 [
924 'block' =>
925 [
926 'backgroundColor' => 'transparent',
927 'padding' => '13px',
928 'borderStyle' => 'solid',
929 'borderWidth' => '3px',
930 'borderColor' => '#aaaaaa',
931 ],
932 ],
933 'type' => 'divider',
934 ],
935 'backgroundColor' => '#ffffff',
936 'backgroundColorAlternate' => '#eeeeee',
937 ],
938 'social' =>
939 [
940 'iconSet' => 'official',
941 'icons' =>
942 [
943 0 =>
944 [
945 'type' => 'socialIcon',
946 'iconType' => 'facebook',
947 'link' => 'http://www.facebook.com',
948 'image' => $this->social_icon_url . '/11-official/Facebook.png',
949 'height' => '32px',
950 'width' => '32px',
951 'text' => 'Facebook',
952 ],
953 1 =>
954 [
955 'type' => 'socialIcon',
956 'iconType' => 'twitter',
957 'link' => 'http://www.twitter.com',
958 'image' => $this->social_icon_url . '/11-official/X.png',
959 'height' => '32px',
960 'width' => '32px',
961 'text' => 'Twitter',
962 ],
963 ],
964 ],
965 'spacer' =>
966 [
967 'styles' =>
968 [
969 'block' =>
970 [
971 'backgroundColor' => '#ffffff',
972 'height' => '63px',
973 ],
974 ],
975 'type' => 'spacer',
976 ],
977 'header' =>
978 [
979 'text' => '<a href="[link:newsletter_view_in_browser_url]">' . __("View this in your browser.", 'mailpoet') . '</a>',
980 'styles' =>
981 [
982 'block' =>
983 [
984 'backgroundColor' => 'transparent',
985 ],
986 'text' =>
987 [
988 'fontColor' => '#222222',
989 'fontFamily' => 'Arial',
990 'fontSize' => '12px',
991 'textAlign' => 'center',
992 ],
993 'link' =>
994 [
995 'fontColor' => '#6cb7d4',
996 'textDecoration' => 'underline',
997 ],
998 ],
999 ],
1000 ],
1001 ];
1002 }
1003 }
1004