<?php namespace MailPoet\Config\PopulatorData\Templates; if (!defined('ABSPATH')) exit; use MailPoet\WP\Functions as WPFunctions; class Faith { private $template_image_url; private $social_icon_url; public function __construct($assets_url) { $this->template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/faith'; $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons'; } public function get() { return [ 'name' => WPFunctions::get()->__("Faith", 'mailpoet'), 'categories' => json_encode(['standard', 'all']), 'readonly' => 1, 'thumbnail' => $this->getThumbnail(), 'body' => json_encode($this->getBody()), ]; } private function getBody() { return [ 'content' => [ 'type' => 'container', 'orientation' => 'vertical', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', ], ], 'blocks' => [ 0 => [ 'type' => 'container', 'orientation' => 'horizontal', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', ], ], 'blocks' => [ 0 => [ 'type' => 'container', 'orientation' => 'vertical', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', ], ], 'blocks' => [ 0 => [ 'type' => 'image', 'link' => '', 'src' => $this->template_image_url . '/church-header.jpg', 'alt' => 'church-header', 'fullWidth' => true, 'width' => '1036px', 'height' => '563px', 'styles' => [ 'block' => [ 'textAlign' => 'center', ], ], ], 1 => [ 'type' => 'spacer', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', 'height' => '20px', ], ], ], 2 => [ 'type' => 'text', '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>', ], 3 => [ 'type' => 'spacer', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', 'height' => '20px', ], ], ], ], ], ], ], 1 => [ 'type' => 'container', 'orientation' => 'horizontal', 'styles' => [ 'block' => [ 'backgroundColor' => '#f3f4f4', ], ], 'blocks' => [ 0 => [ 'type' => 'container', 'orientation' => 'vertical', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', ], ], 'blocks' => [ 0 => [ 'type' => 'spacer', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', 'height' => '20px', ], ], ], 1 => [ 'type' => 'text', 'text' => '<h2 style="text-align: left;">Family Faith Events</h2>', ], 2 => [ 'type' => 'image', 'link' => '', 'src' => $this->template_image_url . '/family.jpg', 'alt' => 'family', 'fullWidth' => false, 'width' => '660px', 'height' => '880px', 'styles' => [ 'block' => [ 'textAlign' => 'center', ], ], ], 3 => [ 'type' => 'text', '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>', ], 4 => [ 'type' => 'spacer', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', 'height' => '20px', ], ], ], ], ], 1 => [ 'type' => 'container', 'orientation' => 'vertical', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', ], ], 'blocks' => [ 0 => [ 'type' => 'spacer', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', 'height' => '20px', ], ], ], 1 => [ 'type' => 'text', 'text' => '<h2>Thoughts & Prayers</h2>', ], 2 => [ 'type' => 'image', 'link' => '', 'src' => $this->template_image_url . '/pray.jpg', 'alt' => 'pray', 'fullWidth' => false, 'width' => '660px', 'height' => '880px', 'styles' => [ 'block' => [ 'textAlign' => 'center', ], ], ], 3 => [ 'type' => 'text', '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>', ], 4 => [ 'type' => 'spacer', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', 'height' => '20px', ], ], ], ], ], ], ], 2 => [ 'type' => 'container', 'orientation' => 'horizontal', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', ], ], 'blocks' => [ 0 => [ 'type' => 'container', 'orientation' => 'vertical', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', ], ], 'blocks' => [ 0 => [ 'type' => 'spacer', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', 'height' => '20px', ], ], ], 1 => [ 'type' => 'text', 'text' => '<h1 style="text-align: center;">Latest News</h1>', ], 2 => [ 'type' => 'divider', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', 'padding' => '7px', 'borderStyle' => 'dotted', 'borderWidth' => '1px', 'borderColor' => '#dcdcdc', ], ], ], 3 => [ 'type' => 'automatedLatestContent', 'amount' => '3', 'contentType' => 'post', 'terms' => [], 'inclusionType' => 'include', 'displayType' => 'excerpt', 'titleFormat' => 'h3', 'titleAlignment' => 'left', 'titleIsLink' => false, 'imageFullWidth' => false, 'featuredImagePosition' => 'belowTitle', 'showAuthor' => 'no', 'authorPrecededBy' => 'Author:', 'showCategories' => 'no', 'categoriesPrecededBy' => 'Categories:', 'readMoreType' => 'button', 'readMoreText' => 'Read more', 'readMoreButton' => [ 'type' => 'button', 'text' => 'Read more', 'url' => '[postLink]', 'styles' => [ 'block' => [ 'backgroundColor' => '#dfeaf3', 'borderColor' => '#00ddff', 'borderWidth' => '0px', 'borderRadius' => '5px', 'borderStyle' => 'solid', 'width' => '160px', 'lineHeight' => '45px', 'fontColor' => '#597890', 'fontFamily' => 'Tahoma', 'fontSize' => '16px', 'fontWeight' => 'normal', 'textAlign' => 'center', ], ], ], 'sortBy' => 'newest', 'showDivider' => true, 'divider' => [ 'type' => 'divider', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', 'padding' => '13px', 'borderStyle' => 'dotted', 'borderWidth' => '2px', 'borderColor' => '#dfeaf3', ], ], ], 'backgroundColor' => '#ffffff', 'backgroundColorAlternate' => '#eeeeee', ], 4 => [ 'type' => 'spacer', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', 'height' => '20px', ], ], ], 5 => [ 'type' => 'divider', 'styles' => [ 'block' => [ 'backgroundColor' => '#e7eff6', 'padding' => '13px', 'borderStyle' => 'ridge', 'borderWidth' => '6px', 'borderColor' => '#597890', ], ], ], ], ], ], ], 3 => [ 'type' => 'container', 'orientation' => 'horizontal', 'styles' => [ 'block' => [ 'backgroundColor' => '#e7eff6', ], ], 'blocks' => [ 0 => [ 'type' => 'container', 'orientation' => 'vertical', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', ], ], 'blocks' => [ 0 => [ 'type' => 'footer', 'text' => '<a href="[link:subscription_unsubscribe_url]">'.WPFunctions::get()->__("Unsubscribe", 'mailpoet').'</a> | <a href="[link:subscription_manage_url]">'.WPFunctions::get()->__("Manage your subscription", 'mailpoet').'</a><br /><b>'.WPFunctions::get()->__("Add your postal address here!", 'mailpoet').'</b>', 'styles' => [ 'block' => [ 'backgroundColor' => '#e7eff6', ], 'text' => [ 'fontColor' => '#787878', 'fontFamily' => 'Tahoma', 'fontSize' => '14px', 'textAlign' => 'left', ], 'link' => [ 'fontColor' => '#787878', 'textDecoration' => 'none', ], ], ], 1 => [ 'type' => 'spacer', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', 'height' => '20px', ], ], ], ], ], 1 => [ 'type' => 'container', 'orientation' => 'vertical', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', ], ], 'blocks' => [ 0 => [ 'type' => 'text', 'text' => '<p style="text-align: center;">Find us socially:</p>', ], 1 => [ 'type' => 'social', 'iconSet' => 'full-symbol-black', 'icons' => [ 0 => [ 'type' => 'socialIcon', 'iconType' => 'facebook', 'link' => 'http://www.facebook.com', 'image' => $this->social_icon_url . '/07-full-symbol-black/Facebook.png', 'height' => '32px', 'width' => '32px', 'text' => 'Facebook', ], 1 => [ 'type' => 'socialIcon', 'iconType' => 'twitter', 'link' => 'http://www.twitter.com', 'image' => $this->social_icon_url . '/07-full-symbol-black/Twitter.png', 'height' => '32px', 'width' => '32px', 'text' => 'Twitter', ], 2 => [ 'type' => 'socialIcon', 'iconType' => 'email', 'link' => '', 'image' => $this->social_icon_url . '/07-full-symbol-black/Email.png', 'height' => '32px', 'width' => '32px', 'text' => 'Email', ], 3 => [ 'type' => 'socialIcon', 'iconType' => 'website', 'link' => '', 'image' => $this->social_icon_url . '/07-full-symbol-black/Website.png', 'height' => '32px', 'width' => '32px', 'text' => 'Website', ], ], ], 2 => [ 'type' => 'spacer', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', 'height' => '20px', ], ], ], ], ], ], ], ], ], 'globalStyles' => [ 'text' => [ 'fontColor' => '#787878', 'fontFamily' => 'Tahoma', 'fontSize' => '16px', ], 'h1' => [ 'fontColor' => '#597890', 'fontFamily' => 'Comic Sans MS', 'fontSize' => '26px', ], 'h2' => [ 'fontColor' => '#597890', 'fontFamily' => 'Comic Sans MS', 'fontSize' => '18px', ], 'h3' => [ 'fontColor' => '#787878', 'fontFamily' => 'Tahoma', 'fontSize' => '18px', ], 'link' => [ 'fontColor' => '#597890', 'textDecoration' => 'underline', ], 'wrapper' => [ 'backgroundColor' => '#ffffff', ], 'body' => [ 'backgroundColor' => '#e7eff6', ], ], ]; } private function getThumbnail() { return $this->template_image_url . '/thumbnail.20190411-1500.jpg'; } }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
AppWelcome.php | File | 14.4 KB | 0644 |
|
Avocado.php | File | 41.49 KB | 0644 |
|
Birds.php | File | 52.03 KB | 0644 |
|
BookStoreWithCoupon.php | File | 36.08 KB | 0644 |
|
BrandingAgencyNews.php | File | 62.59 KB | 0644 |
|
BuddhistTemple.php | File | 40.96 KB | 0644 |
|
Charity.php | File | 44.99 KB | 0644 |
|
CityLocalNews.php | File | 47.36 KB | 0644 |
|
ClearNews.php | File | 57.28 KB | 0644 |
|
Coffee.php | File | 44.52 KB | 0644 |
|
College.php | File | 36.83 KB | 0644 |
|
ComputerRepair.php | File | 34.86 KB | 0644 |
|
DogFood.php | File | 46.82 KB | 0644 |
|
Drone.php | File | 47.73 KB | 0644 |
|
Engineering.php | File | 38.66 KB | 0644 |
|
Faith.php | File | 17.38 KB | 0644 |
|
FarmersMarket.php | File | 47.34 KB | 0644 |
|
FashionBlog.php | File | 33.73 KB | 0644 |
|
FashionBlogA.php | File | 44.44 KB | 0644 |
|
FashionShop.php | File | 31.74 KB | 0644 |
|
FashionStore.php | File | 59.19 KB | 0644 |
|
FestivalEvent.php | File | 18.38 KB | 0644 |
|
Fitness.php | File | 47.34 KB | 0644 |
|
FlowersWithCoupon.php | File | 46 KB | 0644 |
|
FoodBox.php | File | 25.27 KB | 0644 |
|
GiftWelcome.php | File | 14.89 KB | 0644 |
|
Guitarist.php | File | 54.06 KB | 0644 |
|
HealthyFoodBlog.php | File | 76.24 KB | 0644 |
|
Hotels.php | File | 57.02 KB | 0644 |
|
IndustryConference.php | File | 45.02 KB | 0644 |
|
JazzClub.php | File | 39.6 KB | 0644 |
|
KidsClothing.php | File | 67.1 KB | 0644 |
|
LifestyleBlogA.php | File | 39.86 KB | 0644 |
|
LifestyleBlogB.php | File | 45.93 KB | 0644 |
|
Minimal.php | File | 48.25 KB | 0644 |
|
ModularStyleStories.php | File | 61.09 KB | 0644 |
|
Mosque.php | File | 54.92 KB | 0644 |
|
Motor.php | File | 37.88 KB | 0644 |
|
Music.php | File | 60.7 KB | 0644 |
|
NewsDay.php | File | 46.59 KB | 0644 |
|
NewsletterBlank121Column.php | File | 13.37 KB | 0644 |
|
NewsletterBlank12Column.php | File | 11.29 KB | 0644 |
|
NewsletterBlank13Column.php | File | 11.91 KB | 0644 |
|
NewsletterBlank1Column.php | File | 8.92 KB | 0644 |
|
NewspaperTraditional.php | File | 38.55 KB | 0644 |
|
NotSoMedium.php | File | 40.48 KB | 0644 |
|
Painter.php | File | 42.9 KB | 0644 |
|
Phone.php | File | 31.41 KB | 0644 |
|
Photography.php | File | 62.31 KB | 0644 |
|
PieceOfCake.php | File | 15.01 KB | 0644 |
|
Poet.php | File | 39.38 KB | 0644 |
|
PostNotificationsBlank1Column.php | File | 12.69 KB | 0644 |
|
PrimarySchool.php | File | 43.41 KB | 0644 |
|
RealEstate.php | File | 44.98 KB | 0644 |
|
RenewableEnergy.php | File | 42.64 KB | 0644 |
|
Retro.php | File | 53.12 KB | 0644 |
|
RetroComputingMagazine.php | File | 28.63 KB | 0644 |
|
RockBand.php | File | 38.26 KB | 0644 |
|
RssSimpleNews.php | File | 32 KB | 0644 |
|
ScienceWeekly.php | File | 46.97 KB | 0644 |
|
Shoes.php | File | 20.51 KB | 0644 |
|
SimpleText.php | File | 7.37 KB | 0644 |
|
Software.php | File | 39.93 KB | 0644 |
|
Sunglasses.php | File | 31.59 KB | 0644 |
|
Synagogue.php | File | 56.7 KB | 0644 |
|
TakeAHike.php | File | 25.87 KB | 0644 |
|
Vlogger.php | File | 43.93 KB | 0644 |
|
WelcomeBlank12Column.php | File | 12.55 KB | 0644 |
|
WelcomeBlank1Column.php | File | 9.36 KB | 0644 |
|
WideStoryLayout.php | File | 30.32 KB | 0644 |
|
WineCity.php | File | 38.09 KB | 0644 |
|
WordPressTheme.php | File | 43.7 KB | 0644 |
|
WorldCup.php | File | 28.16 KB | 0644 |
|
YogaStudio.php | File | 28.49 KB | 0644 |
|
index.php | File | 0 B | 0644 |
|