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
Faith.php
493 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 Faith { |
| 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/faith'; |
| 17 | $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons'; |
| 18 | } |
| 19 | |
| 20 | public function get() { |
| 21 | return [ |
| 22 | 'name' => __("Faith", '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 | 'type' => 'container', |
| 34 | 'orientation' => 'vertical', |
| 35 | 'styles' => [ |
| 36 | 'block' => [ |
| 37 | 'backgroundColor' => 'transparent', |
| 38 | ], |
| 39 | ], |
| 40 | 'blocks' => [ |
| 41 | 0 => [ |
| 42 | 'type' => 'container', |
| 43 | 'orientation' => 'horizontal', |
| 44 | 'styles' => [ |
| 45 | 'block' => [ |
| 46 | 'backgroundColor' => 'transparent', |
| 47 | ], |
| 48 | ], |
| 49 | 'blocks' => [ |
| 50 | 0 => [ |
| 51 | 'type' => 'container', |
| 52 | 'orientation' => 'vertical', |
| 53 | 'styles' => [ |
| 54 | 'block' => [ |
| 55 | 'backgroundColor' => 'transparent', |
| 56 | ], |
| 57 | ], |
| 58 | 'blocks' => [ |
| 59 | 0 => [ |
| 60 | 'type' => 'image', |
| 61 | 'link' => '', |
| 62 | 'src' => $this->template_image_url . '/church-header.jpg', |
| 63 | 'alt' => 'church-header', |
| 64 | 'fullWidth' => true, |
| 65 | 'width' => '1036px', |
| 66 | 'height' => '563px', |
| 67 | 'styles' => [ |
| 68 | 'block' => [ |
| 69 | 'textAlign' => 'center', |
| 70 | ], |
| 71 | ], |
| 72 | ], |
| 73 | 1 => [ |
| 74 | 'type' => 'spacer', |
| 75 | 'styles' => [ |
| 76 | 'block' => [ |
| 77 | 'backgroundColor' => 'transparent', |
| 78 | 'height' => '20px', |
| 79 | ], |
| 80 | ], |
| 81 | ], |
| 82 | 2 => [ |
| 83 | 'type' => 'text', |
| 84 | 'text' => '<h1 style="text-align: center;">Spreading Love & 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. </p>', |
| 85 | ], |
| 86 | 3 => [ |
| 87 | 'type' => 'spacer', |
| 88 | 'styles' => [ |
| 89 | 'block' => [ |
| 90 | 'backgroundColor' => 'transparent', |
| 91 | 'height' => '20px', |
| 92 | ], |
| 93 | ], |
| 94 | ], |
| 95 | ], |
| 96 | ], |
| 97 | ], |
| 98 | ], |
| 99 | 1 => [ |
| 100 | 'type' => 'container', |
| 101 | 'orientation' => 'horizontal', |
| 102 | 'styles' => [ |
| 103 | 'block' => [ |
| 104 | 'backgroundColor' => '#f3f4f4', |
| 105 | ], |
| 106 | ], |
| 107 | 'blocks' => [ |
| 108 | 0 => [ |
| 109 | 'type' => 'container', |
| 110 | 'orientation' => 'vertical', |
| 111 | 'styles' => [ |
| 112 | 'block' => [ |
| 113 | 'backgroundColor' => 'transparent', |
| 114 | ], |
| 115 | ], |
| 116 | 'blocks' => [ |
| 117 | 0 => [ |
| 118 | 'type' => 'spacer', |
| 119 | 'styles' => [ |
| 120 | 'block' => [ |
| 121 | 'backgroundColor' => 'transparent', |
| 122 | 'height' => '20px', |
| 123 | ], |
| 124 | ], |
| 125 | ], |
| 126 | 1 => [ |
| 127 | 'type' => 'text', |
| 128 | 'text' => '<h2 style="text-align: left;">Family Faith Events</h2>', |
| 129 | ], |
| 130 | 2 => [ |
| 131 | 'type' => 'image', |
| 132 | 'link' => '', |
| 133 | 'src' => $this->template_image_url . '/family.jpg', |
| 134 | 'alt' => 'family', |
| 135 | 'fullWidth' => false, |
| 136 | 'width' => '660px', |
| 137 | 'height' => '880px', |
| 138 | 'styles' => [ |
| 139 | 'block' => [ |
| 140 | 'textAlign' => 'center', |
| 141 | ], |
| 142 | ], |
| 143 | ], |
| 144 | 3 => [ |
| 145 | 'type' => 'text', |
| 146 | '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>', |
| 147 | ], |
| 148 | 4 => [ |
| 149 | 'type' => 'spacer', |
| 150 | 'styles' => [ |
| 151 | 'block' => [ |
| 152 | 'backgroundColor' => 'transparent', |
| 153 | 'height' => '20px', |
| 154 | ], |
| 155 | ], |
| 156 | ], |
| 157 | ], |
| 158 | ], |
| 159 | 1 => [ |
| 160 | 'type' => 'container', |
| 161 | 'orientation' => 'vertical', |
| 162 | 'styles' => [ |
| 163 | 'block' => [ |
| 164 | 'backgroundColor' => 'transparent', |
| 165 | ], |
| 166 | ], |
| 167 | 'blocks' => [ |
| 168 | 0 => [ |
| 169 | 'type' => 'spacer', |
| 170 | 'styles' => [ |
| 171 | 'block' => [ |
| 172 | 'backgroundColor' => 'transparent', |
| 173 | 'height' => '20px', |
| 174 | ], |
| 175 | ], |
| 176 | ], |
| 177 | 1 => [ |
| 178 | 'type' => 'text', |
| 179 | 'text' => '<h2>Thoughts & Prayers</h2>', |
| 180 | ], |
| 181 | 2 => [ |
| 182 | 'type' => 'image', |
| 183 | 'link' => '', |
| 184 | 'src' => $this->template_image_url . '/pray.jpg', |
| 185 | 'alt' => 'pray', |
| 186 | 'fullWidth' => false, |
| 187 | 'width' => '660px', |
| 188 | 'height' => '880px', |
| 189 | 'styles' => [ |
| 190 | 'block' => [ |
| 191 | 'textAlign' => 'center', |
| 192 | ], |
| 193 | ], |
| 194 | ], |
| 195 | 3 => [ |
| 196 | 'type' => 'text', |
| 197 | '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>', |
| 198 | ], |
| 199 | 4 => [ |
| 200 | 'type' => 'spacer', |
| 201 | 'styles' => [ |
| 202 | 'block' => [ |
| 203 | 'backgroundColor' => 'transparent', |
| 204 | 'height' => '20px', |
| 205 | ], |
| 206 | ], |
| 207 | ], |
| 208 | ], |
| 209 | ], |
| 210 | ], |
| 211 | ], |
| 212 | 2 => [ |
| 213 | 'type' => 'container', |
| 214 | 'orientation' => 'horizontal', |
| 215 | 'styles' => [ |
| 216 | 'block' => [ |
| 217 | 'backgroundColor' => 'transparent', |
| 218 | ], |
| 219 | ], |
| 220 | 'blocks' => [ |
| 221 | 0 => [ |
| 222 | 'type' => 'container', |
| 223 | 'orientation' => 'vertical', |
| 224 | 'styles' => [ |
| 225 | 'block' => [ |
| 226 | 'backgroundColor' => 'transparent', |
| 227 | ], |
| 228 | ], |
| 229 | 'blocks' => [ |
| 230 | 0 => [ |
| 231 | 'type' => 'spacer', |
| 232 | 'styles' => [ |
| 233 | 'block' => [ |
| 234 | 'backgroundColor' => 'transparent', |
| 235 | 'height' => '20px', |
| 236 | ], |
| 237 | ], |
| 238 | ], |
| 239 | 1 => [ |
| 240 | 'type' => 'text', |
| 241 | 'text' => '<h1 style="text-align: center;">Latest News</h1>', |
| 242 | ], |
| 243 | 2 => [ |
| 244 | 'type' => 'divider', |
| 245 | 'styles' => [ |
| 246 | 'block' => [ |
| 247 | 'backgroundColor' => 'transparent', |
| 248 | 'padding' => '7px', |
| 249 | 'borderStyle' => 'dotted', |
| 250 | 'borderWidth' => '1px', |
| 251 | 'borderColor' => '#dcdcdc', |
| 252 | ], |
| 253 | ], |
| 254 | ], |
| 255 | 3 => [ |
| 256 | 'type' => 'automatedLatestContent', |
| 257 | 'amount' => '3', |
| 258 | 'contentType' => 'post', |
| 259 | 'terms' => [], |
| 260 | 'inclusionType' => 'include', |
| 261 | 'displayType' => 'excerpt', |
| 262 | 'titleFormat' => 'h3', |
| 263 | 'titleAlignment' => 'left', |
| 264 | 'titleIsLink' => false, |
| 265 | 'imageFullWidth' => false, |
| 266 | 'featuredImagePosition' => 'belowTitle', |
| 267 | 'showAuthor' => 'no', |
| 268 | 'authorPrecededBy' => 'Author:', |
| 269 | 'showCategories' => 'no', |
| 270 | 'categoriesPrecededBy' => 'Categories:', |
| 271 | 'readMoreType' => 'button', |
| 272 | 'readMoreText' => 'Read more', |
| 273 | 'readMoreButton' => [ |
| 274 | 'type' => 'button', |
| 275 | 'text' => 'Read more', |
| 276 | 'url' => '[postLink]', |
| 277 | 'styles' => [ |
| 278 | 'block' => [ |
| 279 | 'backgroundColor' => '#dfeaf3', |
| 280 | 'borderColor' => '#00ddff', |
| 281 | 'borderWidth' => '0px', |
| 282 | 'borderRadius' => '5px', |
| 283 | 'borderStyle' => 'solid', |
| 284 | 'width' => '160px', |
| 285 | 'lineHeight' => '45px', |
| 286 | 'fontColor' => '#597890', |
| 287 | 'fontFamily' => 'Tahoma', |
| 288 | 'fontSize' => '16px', |
| 289 | 'fontWeight' => 'normal', |
| 290 | 'textAlign' => 'center', |
| 291 | ], |
| 292 | ], |
| 293 | ], |
| 294 | 'sortBy' => 'newest', |
| 295 | 'showDivider' => true, |
| 296 | 'divider' => [ |
| 297 | 'type' => 'divider', |
| 298 | 'styles' => [ |
| 299 | 'block' => [ |
| 300 | 'backgroundColor' => 'transparent', |
| 301 | 'padding' => '13px', |
| 302 | 'borderStyle' => 'dotted', |
| 303 | 'borderWidth' => '2px', |
| 304 | 'borderColor' => '#dfeaf3', |
| 305 | ], |
| 306 | ], |
| 307 | ], |
| 308 | 'backgroundColor' => '#ffffff', |
| 309 | 'backgroundColorAlternate' => '#eeeeee', |
| 310 | ], |
| 311 | 4 => [ |
| 312 | 'type' => 'spacer', |
| 313 | 'styles' => [ |
| 314 | 'block' => [ |
| 315 | 'backgroundColor' => 'transparent', |
| 316 | 'height' => '20px', |
| 317 | ], |
| 318 | ], |
| 319 | ], |
| 320 | 5 => [ |
| 321 | 'type' => 'divider', |
| 322 | 'styles' => [ |
| 323 | 'block' => [ |
| 324 | 'backgroundColor' => '#e7eff6', |
| 325 | 'padding' => '13px', |
| 326 | 'borderStyle' => 'ridge', |
| 327 | 'borderWidth' => '6px', |
| 328 | 'borderColor' => '#597890', |
| 329 | ], |
| 330 | ], |
| 331 | ], |
| 332 | ], |
| 333 | ], |
| 334 | ], |
| 335 | ], |
| 336 | 3 => [ |
| 337 | 'type' => 'container', |
| 338 | 'orientation' => 'horizontal', |
| 339 | 'styles' => [ |
| 340 | 'block' => [ |
| 341 | 'backgroundColor' => '#e7eff6', |
| 342 | ], |
| 343 | ], |
| 344 | 'blocks' => [ |
| 345 | 0 => [ |
| 346 | 'type' => 'container', |
| 347 | 'orientation' => 'vertical', |
| 348 | 'styles' => [ |
| 349 | 'block' => [ |
| 350 | 'backgroundColor' => 'transparent', |
| 351 | ], |
| 352 | ], |
| 353 | 'blocks' => [ |
| 354 | 0 => [ |
| 355 | 'type' => 'footer', |
| 356 | 'text' => '<a href="[link:subscription_unsubscribe_url]">' . __("Unsubscribe", 'mailpoet') . '</a> | <a href="[link:subscription_manage_url]">' . __("Manage your subscription", 'mailpoet') . '</a><br /><b>' . __("Add your postal address here!", 'mailpoet') . '</b>', |
| 357 | 'styles' => [ |
| 358 | 'block' => [ |
| 359 | 'backgroundColor' => '#e7eff6', |
| 360 | ], |
| 361 | 'text' => [ |
| 362 | 'fontColor' => '#787878', |
| 363 | 'fontFamily' => 'Tahoma', |
| 364 | 'fontSize' => '14px', |
| 365 | 'textAlign' => 'left', |
| 366 | ], |
| 367 | 'link' => [ |
| 368 | 'fontColor' => '#787878', |
| 369 | 'textDecoration' => 'none', |
| 370 | ], |
| 371 | ], |
| 372 | ], |
| 373 | 1 => [ |
| 374 | 'type' => 'spacer', |
| 375 | 'styles' => [ |
| 376 | 'block' => [ |
| 377 | 'backgroundColor' => 'transparent', |
| 378 | 'height' => '20px', |
| 379 | ], |
| 380 | ], |
| 381 | ], |
| 382 | ], |
| 383 | ], |
| 384 | 1 => [ |
| 385 | 'type' => 'container', |
| 386 | 'orientation' => 'vertical', |
| 387 | 'styles' => [ |
| 388 | 'block' => [ |
| 389 | 'backgroundColor' => 'transparent', |
| 390 | ], |
| 391 | ], |
| 392 | 'blocks' => [ |
| 393 | 0 => [ |
| 394 | 'type' => 'text', |
| 395 | 'text' => '<p style="text-align: center;">Find us socially:</p>', |
| 396 | ], |
| 397 | 1 => [ |
| 398 | 'type' => 'social', |
| 399 | 'iconSet' => 'official', |
| 400 | 'icons' => [ |
| 401 | 0 => [ |
| 402 | 'type' => 'socialIcon', |
| 403 | 'iconType' => 'facebook', |
| 404 | 'link' => 'http://www.facebook.com', |
| 405 | 'image' => $this->social_icon_url . '/11-official/Facebook.png', |
| 406 | 'height' => '32px', |
| 407 | 'width' => '32px', |
| 408 | 'text' => 'Facebook', |
| 409 | ], |
| 410 | 1 => [ |
| 411 | 'type' => 'socialIcon', |
| 412 | 'iconType' => 'twitter', |
| 413 | 'link' => 'http://www.twitter.com', |
| 414 | 'image' => $this->social_icon_url . '/11-official/X.png', |
| 415 | 'height' => '32px', |
| 416 | 'width' => '32px', |
| 417 | 'text' => 'Twitter', |
| 418 | ], |
| 419 | 2 => [ |
| 420 | 'type' => 'socialIcon', |
| 421 | 'iconType' => 'email', |
| 422 | 'link' => '', |
| 423 | 'image' => $this->social_icon_url . '/11-official/Email.png', |
| 424 | 'height' => '32px', |
| 425 | 'width' => '32px', |
| 426 | 'text' => 'Email', |
| 427 | ], |
| 428 | 3 => [ |
| 429 | 'type' => 'socialIcon', |
| 430 | 'iconType' => 'website', |
| 431 | 'link' => '', |
| 432 | 'image' => $this->social_icon_url . '/11-official/Website.png', |
| 433 | 'height' => '32px', |
| 434 | 'width' => '32px', |
| 435 | 'text' => 'Website', |
| 436 | ], |
| 437 | ], |
| 438 | ], |
| 439 | 2 => [ |
| 440 | 'type' => 'spacer', |
| 441 | 'styles' => [ |
| 442 | 'block' => [ |
| 443 | 'backgroundColor' => 'transparent', |
| 444 | 'height' => '20px', |
| 445 | ], |
| 446 | ], |
| 447 | ], |
| 448 | ], |
| 449 | ], |
| 450 | ], |
| 451 | ], |
| 452 | ], |
| 453 | ], |
| 454 | 'globalStyles' => [ |
| 455 | 'text' => [ |
| 456 | 'fontColor' => '#787878', |
| 457 | 'fontFamily' => 'Tahoma', |
| 458 | 'fontSize' => '16px', |
| 459 | ], |
| 460 | 'h1' => [ |
| 461 | 'fontColor' => '#597890', |
| 462 | 'fontFamily' => 'Comic Sans MS', |
| 463 | 'fontSize' => '26px', |
| 464 | ], |
| 465 | 'h2' => [ |
| 466 | 'fontColor' => '#597890', |
| 467 | 'fontFamily' => 'Comic Sans MS', |
| 468 | 'fontSize' => '18px', |
| 469 | ], |
| 470 | 'h3' => [ |
| 471 | 'fontColor' => '#787878', |
| 472 | 'fontFamily' => 'Tahoma', |
| 473 | 'fontSize' => '18px', |
| 474 | ], |
| 475 | 'link' => [ |
| 476 | 'fontColor' => '#597890', |
| 477 | 'textDecoration' => 'underline', |
| 478 | ], |
| 479 | 'wrapper' => [ |
| 480 | 'backgroundColor' => '#ffffff', |
| 481 | ], |
| 482 | 'body' => [ |
| 483 | 'backgroundColor' => '#e7eff6', |
| 484 | ], |
| 485 | ], |
| 486 | ]; |
| 487 | } |
| 488 | |
| 489 | private function getThumbnail() { |
| 490 | return $this->template_image_url . '/thumbnail.20190411-1500.jpg'; |
| 491 | } |
| 492 | } |
| 493 |