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 / NewsDay.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
NewsDay.php
1105 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 NewsDay {
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/news_day';
17 $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons';
18 }
19
20 public function get() {
21 return [
22 'name' => __("News Day", 'mailpoet'),
23 'categories' => json_encode(['standard', 'all']),
24 'readonly' => 1,
25 'thumbnail' => $this->getThumbnail(),
26 'body' => json_encode($this->getBody()),
27 ];
28 }
29
30 private function getBody() {
31 return [
32 'content' =>
33 [
34 'type' => 'container',
35 'orientation' => 'vertical',
36 'image' =>
37 [
38 'src' => null,
39 'display' => 'scale',
40 ],
41 'styles' =>
42 [
43 'block' =>
44 [
45 'backgroundColor' => 'transparent',
46 ],
47 ],
48 'blocks' =>
49 [
50 0 =>
51 [
52 'type' => 'container',
53 'orientation' => 'horizontal',
54 'image' =>
55 [
56 'src' => null,
57 'display' => 'scale',
58 ],
59 'styles' =>
60 [
61 'block' =>
62 [
63 'backgroundColor' => '#ffffff',
64 ],
65 ],
66 'blocks' =>
67 [
68 0 =>
69 [
70 'type' => 'container',
71 'orientation' => 'vertical',
72 'image' =>
73 [
74 'src' => null,
75 'display' => 'scale',
76 ],
77 'styles' =>
78 [
79 'block' =>
80 [
81 'backgroundColor' => 'transparent',
82 ],
83 ],
84 'blocks' =>
85 [
86 0 =>
87 [
88 'type' => 'spacer',
89 'styles' =>
90 [
91 'block' =>
92 [
93 'backgroundColor' => '#f2f2f2',
94 'height' => '20px',
95 ],
96 ],
97 ],
98 1 =>
99 [
100 'type' => 'image',
101 'link' => '',
102 'src' => $this->template_image_url . '/News-Outlet-Title-2.jpg',
103 'alt' => 'News-Outlet-Title-2',
104 'fullWidth' => true,
105 'width' => '1280px',
106 'height' => '700px',
107 'styles' =>
108 [
109 'block' =>
110 [
111 'textAlign' => 'center',
112 ],
113 ],
114 ],
115 ],
116 ],
117 ],
118 ],
119 1 =>
120 [
121 'type' => 'container',
122 'orientation' => 'horizontal',
123 'image' =>
124 [
125 'src' => null,
126 'display' => 'scale',
127 ],
128 'styles' =>
129 [
130 'block' =>
131 [
132 'backgroundColor' => '#ffffff',
133 ],
134 ],
135 'blocks' =>
136 [
137 0 =>
138 [
139 'type' => 'container',
140 'orientation' => 'vertical',
141 'image' =>
142 [
143 'src' => null,
144 'display' => 'scale',
145 ],
146 'styles' =>
147 [
148 'block' =>
149 [
150 'backgroundColor' => 'transparent',
151 ],
152 ],
153 'blocks' =>
154 [
155 0 =>
156 [
157 'type' => 'spacer',
158 'styles' =>
159 [
160 'block' =>
161 [
162 'backgroundColor' => 'transparent',
163 'height' => '25px',
164 ],
165 ],
166 ],
167 ],
168 ],
169 ],
170 ],
171 2 =>
172 [
173 'type' => 'container',
174 'orientation' => 'horizontal',
175 'image' =>
176 [
177 'src' => null,
178 'display' => 'scale',
179 ],
180 'styles' =>
181 [
182 'block' =>
183 [
184 'backgroundColor' => 'transparent',
185 ],
186 ],
187 'blocks' =>
188 [
189 0 =>
190 [
191 'type' => 'container',
192 'orientation' => 'vertical',
193 'image' =>
194 [
195 'src' => null,
196 'display' => 'scale',
197 ],
198 'styles' =>
199 [
200 'block' =>
201 [
202 'backgroundColor' => 'transparent',
203 ],
204 ],
205 'blocks' =>
206 [
207 0 =>
208 [
209 'type' => 'text',
210 'text' => '<h1 style="text-align: left;"><span style="color: #2ca5d2;"><strong>Top Story</strong></span></h1>',
211 ],
212 1 =>
213 [
214 'type' => 'text',
215 'text' => '<h2 style="text-align: left;"><strong>Plasma jet engines that could take you from the ground to space</strong></h2>',
216 ],
217 2 =>
218 [
219 'type' => 'image',
220 'link' => 'http://mailpoet.info/plasma-jet-engines-that-could-take-you-from-the-ground-to-space/',
221 'src' => $this->template_image_url . '/plasma-stingray111-800x533.jpg',
222 'alt' => 'Plasma jet engines that could take you from the ground to space',
223 'fullWidth' => false,
224 'width' => '413.28125px',
225 'height' => 440,
226 'styles' =>
227 [
228 'block' =>
229 [
230 'textAlign' => 'center',
231 ],
232 ],
233 ],
234 3 =>
235 [
236 'type' => 'text',
237 '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>',
238 ],
239 4 =>
240 [
241 'type' => 'divider',
242 'styles' =>
243 [
244 'block' =>
245 [
246 'backgroundColor' => 'transparent',
247 'padding' => '13px',
248 'borderStyle' => 'solid',
249 'borderWidth' => '1px',
250 'borderColor' => '#aaaaaa',
251 ],
252 ],
253 ],
254 5 =>
255 [
256 'type' => 'spacer',
257 'styles' =>
258 [
259 'block' =>
260 [
261 'backgroundColor' => 'transparent',
262 'height' => '20px',
263 ],
264 ],
265 ],
266 6 =>
267 [
268 'type' => 'text',
269 'text' => '<h3><span style="color: #2ca5d2;"><strong>Popular Posts Today</strong></span></h3>',
270 ],
271 7 =>
272 [
273 'type' => 'spacer',
274 'styles' =>
275 [
276 'block' =>
277 [
278 'backgroundColor' => 'transparent',
279 'height' => '20px',
280 ],
281 ],
282 ],
283 ],
284 ],
285 ],
286 ],
287 3 =>
288 [
289 'type' => 'container',
290 'orientation' => 'horizontal',
291 'image' =>
292 [
293 'src' => null,
294 'display' => 'scale',
295 ],
296 'styles' =>
297 [
298 'block' =>
299 [
300 'backgroundColor' => 'transparent',
301 ],
302 ],
303 'blocks' =>
304 [
305 0 =>
306 [
307 'type' => 'container',
308 'orientation' => 'vertical',
309 'image' =>
310 [
311 'src' => null,
312 'display' => 'scale',
313 ],
314 'styles' =>
315 [
316 'block' =>
317 [
318 'backgroundColor' => 'transparent',
319 ],
320 ],
321 'blocks' =>
322 [
323 0 =>
324 [
325 'type' => 'text',
326 'text' => '<h3 style="text-align: left; font-size: 18px; line-height: 1.4;"><strong>Cutting through the smog: What to do to fight air pollution</strong></h3>
327 <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>
328 <p><a href="http://mailpoet.info/cutting-through-the-smog-what-to-do-to-fight-air-pollution/">Read More</a></p>',
329 ],
330 1 =>
331 [
332 'type' => 'divider',
333 'styles' =>
334 [
335 'block' =>
336 [
337 'backgroundColor' => 'transparent',
338 'padding' => '13px',
339 'borderStyle' => 'solid',
340 'borderWidth' => '1px',
341 'borderColor' => '#aaaaaa',
342 ],
343 ],
344 ],
345 2 =>
346 [
347 'type' => 'text',
348 'text' => '<h3 style="text-align: left; font-size: 18px; line-height: 1.4;"><strong>Ladybird&rsquo;s transparent shell reveals how it&nbsp;moves</strong></h3>
349 <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>
350 <p><a href="http://mailpoet.info/ladybirds-transparent-shell-reveals-how-it-folds-its-wings/">Read More</a></p>',
351 ],
352 3 =>
353 [
354 'type' => 'divider',
355 'styles' =>
356 [
357 'block' =>
358 [
359 'backgroundColor' => 'transparent',
360 'padding' => '13px',
361 'borderStyle' => 'solid',
362 'borderWidth' => '1px',
363 'borderColor' => '#aaaaaa',
364 ],
365 ],
366 ],
367 4 =>
368 [
369 'type' => 'text',
370 'text' => '<h3 style="text-align: left; font-size: 18px; line-height: 1.4;"><strong>Brazil&rsquo;s history-making Hurricane</strong></h3>
371 <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>
372 <p><a href="http://mailpoet.info/brazils-history-making-hurricane/">Read More</a></p>',
373 ],
374 ],
375 ],
376 1 =>
377 [
378 'type' => 'container',
379 'orientation' => 'vertical',
380 'image' =>
381 [
382 'src' => null,
383 'display' => 'scale',
384 ],
385 'styles' =>
386 [
387 'block' =>
388 [
389 'backgroundColor' => 'transparent',
390 ],
391 ],
392 'blocks' =>
393 [
394 0 =>
395 [
396 'type' => 'text',
397 'text' => '<h3 style="text-align: left; font-size: 18px; line-height: 1.4;"><strong>Iceland&rsquo;s dentist-coach defying convention and expectations</strong></h3>
398 <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>
399 <p><a href="http://mailpoet.info/icelands-dentist-coach-defying-convention-and-expectations/">Read More</a></p>',
400 ],
401 1 =>
402 [
403 'type' => 'divider',
404 'styles' =>
405 [
406 'block' =>
407 [
408 'backgroundColor' => 'transparent',
409 'padding' => '13px',
410 'borderStyle' => 'solid',
411 'borderWidth' => '1px',
412 'borderColor' => '#aaaaaa',
413 ],
414 ],
415 ],
416 2 =>
417 [
418 'type' => 'text',
419 'text' => '<h3 style="text-align: left; font-size: 18px; line-height: 1.4;"><strong>Impact and legacy of 2018 FIFA World Cup Russia</strong></h3>
420 <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>
421 <p><a href="http://mailpoet.info/impact-and-legacy-of-2018-fifa-world-cup-russia-facts-and-figures/">Read More</a></p>',
422 ],
423 3 =>
424 [
425 'type' => 'divider',
426 'styles' =>
427 [
428 'block' =>
429 [
430 'backgroundColor' => 'transparent',
431 'padding' => '13px',
432 'borderStyle' => 'solid',
433 'borderWidth' => '1px',
434 'borderColor' => '#aaaaaa',
435 ],
436 ],
437 ],
438 4 =>
439 [
440 'type' => 'text',
441 'text' => '<h3 style="text-align: left; font-size: 18px; line-height: 1.4;"><strong>Lineker&rsquo;s life-changing treble</strong></h3>
442 <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>
443 <p><a href="http://mailpoet.info/linekers-life-changing-treble/">Read More</a></p>',
444 ],
445 ],
446 ],
447 ],
448 ],
449 4 =>
450 [
451 'type' => 'container',
452 'orientation' => 'horizontal',
453 'image' =>
454 [
455 'src' => null,
456 'display' => 'scale',
457 ],
458 'styles' =>
459 [
460 'block' =>
461 [
462 'backgroundColor' => 'transparent',
463 ],
464 ],
465 'blocks' =>
466 [
467 0 =>
468 [
469 'type' => 'container',
470 'orientation' => 'vertical',
471 'image' =>
472 [
473 'src' => null,
474 'display' => 'scale',
475 ],
476 'styles' =>
477 [
478 'block' =>
479 [
480 'backgroundColor' => 'transparent',
481 ],
482 ],
483 'blocks' =>
484 [
485 0 =>
486 [
487 'type' => 'spacer',
488 'styles' =>
489 [
490 'block' =>
491 [
492 'backgroundColor' => 'transparent',
493 'height' => '40px',
494 ],
495 ],
496 ],
497 1 =>
498 [
499 'type' => 'spacer',
500 'styles' =>
501 [
502 'block' =>
503 [
504 'backgroundColor' => '#f2f2f2',
505 'height' => '40px',
506 ],
507 ],
508 ],
509 2 =>
510 [
511 'type' => 'spacer',
512 'styles' =>
513 [
514 'block' =>
515 [
516 'backgroundColor' => 'transparent',
517 'height' => '20px',
518 ],
519 ],
520 ],
521 ],
522 ],
523 ],
524 ],
525 5 =>
526 [
527 'type' => 'container',
528 'orientation' => 'horizontal',
529 'image' =>
530 [
531 'src' => null,
532 'display' => 'scale',
533 ],
534 'styles' =>
535 [
536 'block' =>
537 [
538 'backgroundColor' => 'transparent',
539 ],
540 ],
541 'blocks' =>
542 [
543 0 =>
544 [
545 'type' => 'container',
546 'orientation' => 'vertical',
547 'image' =>
548 [
549 'src' => null,
550 'display' => 'scale',
551 ],
552 'styles' =>
553 [
554 'block' =>
555 [
556 'backgroundColor' => 'transparent',
557 ],
558 ],
559 'blocks' =>
560 [
561 0 =>
562 [
563 'type' => 'footer',
564 'text' => '<p><strong>NewsDay</strong></p>
565 <p><a href="[link:subscription_unsubscribe_url]">' . __("Unsubscribe", 'mailpoet') . '</a> | <a href="[link:subscription_manage_url]">' . __("Manage your subscription", 'mailpoet') . '</a><br /><br /></p>
566 <p></p>',
567 'styles' =>
568 [
569 'block' =>
570 [
571 'backgroundColor' => 'transparent',
572 ],
573 'text' =>
574 [
575 'fontColor' => '#222222',
576 'fontFamily' => 'Arial',
577 'fontSize' => '12px',
578 'textAlign' => 'left',
579 ],
580 'link' =>
581 [
582 'fontColor' => '#6cb7d4',
583 'textDecoration' => 'underline',
584 ],
585 ],
586 ],
587 ],
588 ],
589 1 =>
590 [
591 'type' => 'container',
592 'orientation' => 'vertical',
593 'image' =>
594 [
595 'src' => null,
596 'display' => 'scale',
597 ],
598 'styles' =>
599 [
600 'block' =>
601 [
602 'backgroundColor' => 'transparent',
603 ],
604 ],
605 'blocks' =>
606 [
607 0 =>
608 [
609 'type' => 'spacer',
610 'styles' =>
611 [
612 'block' =>
613 [
614 'backgroundColor' => 'transparent',
615 'height' => '20px',
616 ],
617 ],
618 ],
619 1 =>
620 [
621 'type' => 'social',
622 'iconSet' => 'official',
623 'icons' =>
624 [
625 0 =>
626 [
627 'type' => 'socialIcon',
628 'iconType' => 'facebook',
629 'link' => 'http://www.facebook.com',
630 'image' => $this->social_icon_url . '/11-official/Facebook.png',
631 'height' => '32px',
632 'width' => '32px',
633 'text' => 'Facebook',
634 ],
635 1 =>
636 [
637 'type' => 'socialIcon',
638 'iconType' => 'twitter',
639 'link' => 'http://www.twitter.com',
640 'image' => $this->social_icon_url . '/11-official/X.png',
641 'height' => '32px',
642 'width' => '32px',
643 'text' => 'Twitter',
644 ],
645 2 =>
646 [
647 'type' => 'socialIcon',
648 'iconType' => 'youtube',
649 'link' => 'http://www.youtube.com',
650 'image' => $this->social_icon_url . '/11-official/Youtube.png',
651 'height' => '32px',
652 'width' => '32px',
653 'text' => 'Youtube',
654 ],
655 3 =>
656 [
657 'type' => 'socialIcon',
658 'iconType' => 'instagram',
659 'link' => 'http://instagram.com',
660 'image' => $this->social_icon_url . '/11-official/Instagram.png',
661 'height' => '32px',
662 'width' => '32px',
663 'text' => 'Instagram',
664 ],
665 4 =>
666 [
667 'type' => 'socialIcon',
668 'iconType' => 'linkedin',
669 'link' => 'http://www.linkedin.com',
670 'image' => $this->social_icon_url . '/11-official/Linkedin.png',
671 'height' => '32px',
672 'width' => '32px',
673 'text' => 'LinkedIn',
674 ],
675 ],
676 ],
677 2 =>
678 [
679 'type' => 'spacer',
680 'styles' =>
681 [
682 'block' =>
683 [
684 'backgroundColor' => 'transparent',
685 'height' => '20px',
686 ],
687 ],
688 ],
689 ],
690 ],
691 ],
692 ],
693 6 =>
694 [
695 'type' => 'container',
696 'orientation' => 'horizontal',
697 'image' =>
698 [
699 'src' => null,
700 'display' => 'scale',
701 ],
702 'styles' =>
703 [
704 'block' =>
705 [
706 'backgroundColor' => 'transparent',
707 ],
708 ],
709 'blocks' =>
710 [
711 0 =>
712 [
713 'type' => 'container',
714 'orientation' => 'vertical',
715 'image' =>
716 [
717 'src' => null,
718 'display' => 'scale',
719 ],
720 'styles' =>
721 [
722 'block' =>
723 [
724 'backgroundColor' => 'transparent',
725 ],
726 ],
727 'blocks' =>
728 [
729 0 =>
730 [
731 'type' => 'spacer',
732 'styles' =>
733 [
734 'block' =>
735 [
736 'backgroundColor' => '#f2f2f2',
737 'height' => '40px',
738 ],
739 ],
740 ],
741 ],
742 ],
743 ],
744 ],
745 ],
746 ],
747 'globalStyles' =>
748 [
749 'text' =>
750 [
751 'fontColor' => '#000000',
752 'fontFamily' => 'Arial',
753 'fontSize' => '13px',
754 ],
755 'h1' =>
756 [
757 'fontColor' => '#111111',
758 'fontFamily' => 'Arial',
759 'fontSize' => '30px',
760 ],
761 'h2' =>
762 [
763 'fontColor' => '#222222',
764 'fontFamily' => 'Arial',
765 'fontSize' => '24px',
766 ],
767 'h3' =>
768 [
769 'fontColor' => '#333333',
770 'fontFamily' => 'Arial',
771 'fontSize' => '22px',
772 ],
773 'link' =>
774 [
775 'fontColor' => '#2ca5d2',
776 'textDecoration' => 'underline',
777 ],
778 'wrapper' =>
779 [
780 'backgroundColor' => '#ffffff',
781 ],
782 'body' =>
783 [
784 'backgroundColor' => '#f2f2f2',
785 ],
786 ],
787 'blockDefaults' =>
788 [
789 'automatedLatestContent' =>
790 [
791 'amount' => '5',
792 'withLayout' => false,
793 'contentType' => 'post',
794 'inclusionType' => 'include',
795 'displayType' => 'excerpt',
796 'titleFormat' => 'h1',
797 'titleAlignment' => 'left',
798 'titleIsLink' => false,
799 'imageFullWidth' => false,
800 'featuredImagePosition' => 'belowTitle',
801 'showAuthor' => 'no',
802 'authorPrecededBy' => 'Author:',
803 'showCategories' => 'no',
804 'categoriesPrecededBy' => 'Categories:',
805 'readMoreType' => 'button',
806 'readMoreText' => 'Read more',
807 'readMoreButton' =>
808 [
809 'text' => 'Read more',
810 'url' => '[postLink]',
811 'context' => 'automatedLatestContent.readMoreButton',
812 'styles' =>
813 [
814 'block' =>
815 [
816 'backgroundColor' => '#2ea1cd',
817 'borderColor' => '#0074a2',
818 'borderWidth' => '1px',
819 'borderRadius' => '5px',
820 'borderStyle' => 'solid',
821 'width' => '180px',
822 'lineHeight' => '40px',
823 'fontColor' => '#ffffff',
824 'fontFamily' => 'Verdana',
825 'fontSize' => '18px',
826 'fontWeight' => 'normal',
827 'textAlign' => 'center',
828 ],
829 ],
830 ],
831 'sortBy' => 'newest',
832 'showDivider' => true,
833 'divider' =>
834 [
835 'context' => 'automatedLatestContent.divider',
836 'styles' =>
837 [
838 'block' =>
839 [
840 'backgroundColor' => 'transparent',
841 'padding' => '13px',
842 'borderStyle' => 'solid',
843 'borderWidth' => '3px',
844 'borderColor' => '#aaaaaa',
845 ],
846 ],
847 ],
848 'backgroundColor' => '#ffffff',
849 'backgroundColorAlternate' => '#eeeeee',
850 ],
851 'automatedLatestContentLayout' =>
852 [
853 'amount' => '5',
854 'withLayout' => true,
855 'contentType' => 'post',
856 'inclusionType' => 'include',
857 'displayType' => 'excerpt',
858 'titleFormat' => 'h1',
859 'titleAlignment' => 'left',
860 'titleIsLink' => false,
861 'imageFullWidth' => false,
862 'featuredImagePosition' => 'alternate',
863 'showAuthor' => 'no',
864 'authorPrecededBy' => 'Author:',
865 'showCategories' => 'no',
866 'categoriesPrecededBy' => 'Categories:',
867 'readMoreType' => 'button',
868 'readMoreText' => 'Read more',
869 'readMoreButton' =>
870 [
871 'text' => 'Read more',
872 'url' => '[postLink]',
873 'context' => 'automatedLatestContentLayout.readMoreButton',
874 'styles' =>
875 [
876 'block' =>
877 [
878 'backgroundColor' => '#2ea1cd',
879 'borderColor' => '#0074a2',
880 'borderWidth' => '1px',
881 'borderRadius' => '5px',
882 'borderStyle' => 'solid',
883 'width' => '180px',
884 'lineHeight' => '40px',
885 'fontColor' => '#ffffff',
886 'fontFamily' => 'Verdana',
887 'fontSize' => '18px',
888 'fontWeight' => 'normal',
889 'textAlign' => 'center',
890 ],
891 ],
892 ],
893 'sortBy' => 'newest',
894 'showDivider' => true,
895 'divider' =>
896 [
897 'context' => 'automatedLatestContentLayout.divider',
898 'styles' =>
899 [
900 'block' =>
901 [
902 'backgroundColor' => 'transparent',
903 'padding' => '13px',
904 'borderStyle' => 'solid',
905 'borderWidth' => '3px',
906 'borderColor' => '#aaaaaa',
907 ],
908 ],
909 ],
910 'backgroundColor' => '#ffffff',
911 'backgroundColorAlternate' => '#eeeeee',
912 ],
913 'button' =>
914 [
915 'text' => 'Button',
916 'url' => '',
917 'styles' =>
918 [
919 'block' =>
920 [
921 'backgroundColor' => '#2ea1cd',
922 'borderColor' => '#0074a2',
923 'borderWidth' => '1px',
924 'borderRadius' => '5px',
925 'borderStyle' => 'solid',
926 'width' => '180px',
927 'lineHeight' => '40px',
928 'fontColor' => '#ffffff',
929 'fontFamily' => 'Verdana',
930 'fontSize' => '18px',
931 'fontWeight' => 'normal',
932 'textAlign' => 'center',
933 ],
934 ],
935 ],
936 'divider' =>
937 [
938 'styles' =>
939 [
940 'block' =>
941 [
942 'backgroundColor' => 'transparent',
943 'padding' => '13px',
944 'borderStyle' => 'solid',
945 'borderWidth' => '3px',
946 'borderColor' => '#aaaaaa',
947 ],
948 ],
949 ],
950 'footer' =>
951 [
952 '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>',
953 'styles' =>
954 [
955 'block' =>
956 [
957 'backgroundColor' => 'transparent',
958 ],
959 'text' =>
960 [
961 'fontColor' => '#222222',
962 'fontFamily' => 'Arial',
963 'fontSize' => '12px',
964 'textAlign' => 'center',
965 ],
966 'link' =>
967 [
968 'fontColor' => '#6cb7d4',
969 'textDecoration' => 'none',
970 ],
971 ],
972 ],
973 'posts' =>
974 [
975 'amount' => '10',
976 'withLayout' => true,
977 'contentType' => 'post',
978 'postStatus' => 'publish',
979 'inclusionType' => 'include',
980 'displayType' => 'excerpt',
981 'titleFormat' => 'h1',
982 'titleAlignment' => 'left',
983 'titleIsLink' => false,
984 'imageFullWidth' => false,
985 'featuredImagePosition' => 'alternate',
986 'showAuthor' => 'no',
987 'authorPrecededBy' => 'Author:',
988 'showCategories' => 'no',
989 'categoriesPrecededBy' => 'Categories:',
990 'readMoreType' => 'link',
991 'readMoreText' => 'Read more',
992 'readMoreButton' =>
993 [
994 'text' => 'Read more',
995 'url' => '[postLink]',
996 'context' => 'posts.readMoreButton',
997 'styles' =>
998 [
999 'block' =>
1000 [
1001 'backgroundColor' => '#2ea1cd',
1002 'borderColor' => '#0074a2',
1003 'borderWidth' => '1px',
1004 'borderRadius' => '5px',
1005 'borderStyle' => 'solid',
1006 'width' => '180px',
1007 'lineHeight' => '40px',
1008 'fontColor' => '#ffffff',
1009 'fontFamily' => 'Verdana',
1010 'fontSize' => '18px',
1011 'fontWeight' => 'normal',
1012 'textAlign' => 'center',
1013 ],
1014 ],
1015 ],
1016 'sortBy' => 'newest',
1017 'showDivider' => true,
1018 'divider' =>
1019 [
1020 'context' => 'posts.divider',
1021 'styles' =>
1022 [
1023 'block' =>
1024 [
1025 'backgroundColor' => 'transparent',
1026 'padding' => '13px',
1027 'borderStyle' => 'solid',
1028 'borderWidth' => '3px',
1029 'borderColor' => '#aaaaaa',
1030 ],
1031 ],
1032 ],
1033 'backgroundColor' => '#ffffff',
1034 'backgroundColorAlternate' => '#eeeeee',
1035 ],
1036 'social' =>
1037 [
1038 'iconSet' => 'official',
1039 'icons' =>
1040 [
1041 0 =>
1042 [
1043 'type' => 'socialIcon',
1044 'iconType' => 'facebook',
1045 'link' => 'http://www.facebook.com',
1046 'image' => $this->social_icon_url . '/11-official/Facebook.png',
1047 'height' => '32px',
1048 'width' => '32px',
1049 'text' => 'Facebook',
1050 ],
1051 1 =>
1052 [
1053 'type' => 'socialIcon',
1054 'iconType' => 'twitter',
1055 'link' => 'http://www.twitter.com',
1056 'image' => $this->social_icon_url . '/11-official/X.png',
1057 'height' => '32px',
1058 'width' => '32px',
1059 'text' => 'Twitter',
1060 ],
1061 ],
1062 ],
1063 'spacer' =>
1064 [
1065 'styles' =>
1066 [
1067 'block' =>
1068 [
1069 'backgroundColor' => 'transparent',
1070 'height' => '40px',
1071 ],
1072 ],
1073 ],
1074 'header' =>
1075 [
1076 'text' => '<a href="[link:newsletter_view_in_browser_url]">' . __("View this in your browser.", 'mailpoet') . '</a>',
1077 'styles' =>
1078 [
1079 'block' =>
1080 [
1081 'backgroundColor' => 'transparent',
1082 ],
1083 'text' =>
1084 [
1085 'fontColor' => '#222222',
1086 'fontFamily' => 'Arial',
1087 'fontSize' => '12px',
1088 'textAlign' => 'center',
1089 ],
1090 'link' =>
1091 [
1092 'fontColor' => '#6cb7d4',
1093 'textDecoration' => 'underline',
1094 ],
1095 ],
1096 ],
1097 ],
1098 ];
1099 }
1100
1101 private function getThumbnail() {
1102 return $this->template_image_url . '/thumbnail.20190411-1500.jpg';
1103 }
1104 }
1105