diff --git a/assets/js/src/newsletters/templates.jsx b/assets/js/src/newsletters/templates.jsx index 401b7c12f2..082e0f3a42 100644 --- a/assets/js/src/newsletters/templates.jsx +++ b/assets/js/src/newsletters/templates.jsx @@ -24,6 +24,10 @@ const templatesCategories = [ name: 'notification', label: MailPoet.I18n.t('tabNotificationTitle'), }, + { + name: 'woocommerce', + label: MailPoet.I18n.t('tabWoocommerceTitle'), + }, { name: 'sample', label: MailPoet.I18n.t('sample'), @@ -70,7 +74,7 @@ class NewsletterTemplates extends React.Component { { name: MailPoet.I18n.t('mailpoetGuideTemplateTitle'), - categories: '["welcome", "notification", "standard"]', + categories: '["welcome", "notification", "standard", "woocommerce"]', readonly: '1', }, ]; diff --git a/lib/API/JSON/v1/NewsletterTemplates.php b/lib/API/JSON/v1/NewsletterTemplates.php index f0bd823b12..371d8e6fcd 100644 --- a/lib/API/JSON/v1/NewsletterTemplates.php +++ b/lib/API/JSON/v1/NewsletterTemplates.php @@ -31,8 +31,9 @@ class NewsletterTemplates extends APIEndpoint { function getAll() { $collection = NewsletterTemplate ::selectExpr('id, categories, thumbnail, name, description, readonly') + ->orderByAsc('readonly') ->orderByDesc('created_at') - ->orderByAsc('name') + ->orderByDesc('id') ->findMany(); $templates = array_map(function($item) { return $item->asArray(); diff --git a/lib/Config/Populator.php b/lib/Config/Populator.php index e0f3fb1339..8e2be850ca 100644 --- a/lib/Config/Populator.php +++ b/lib/Config/Populator.php @@ -35,27 +35,46 @@ class Populator { 'NewsletterBlank12Column', 'NewsletterBlank121Column', 'NewsletterBlank13Column', - 'PostNotificationsBlank1Column', - 'WelcomeBlank1Column', - 'WelcomeBlank12Column', 'SimpleText', - 'BurgerJoint', - 'AppWelcome', + 'TakeAHike', + 'Faith', + 'NewsDay', 'WorldCup', 'FoodBox', - 'Discount', - 'KickOff', - 'TakeAHike', 'FestivalEvent', - 'PieceOfCake', + 'RetroComputingMagazine', 'Shoes', - 'ScienceWeekly', - 'ChocolateStore', - 'Faith', - 'TravelNomads', - 'CoffeeShop', - 'NewsDay', + 'PieceOfCake', + 'Coffee', + 'Drone', + 'Retro', + 'Hotels', + 'Music', 'YogaStudio', + 'Charity', + 'FashionStore', + + 'WelcomeBlank1Column', + 'WelcomeBlank12Column', + 'GiftWelcome', + 'Minimal', + 'Phone', + 'Sunglasses', + 'RealEstate', + 'AppWelcome', + + 'PostNotificationsBlank1Column', + 'ModularStyleStories', + 'NotSoMedium', + 'RssSimpleNews', + 'WideStoryLayout', + 'ScienceWeekly', + + 'WineCity', + 'DogFood', + 'Fitness', + 'KidsClothing', + 'Avocado', ); } diff --git a/lib/Config/PopulatorData/Templates/AppWelcome.php b/lib/Config/PopulatorData/Templates/AppWelcome.php index 9f9fa268cd..d0ca95c8ea 100644 --- a/lib/Config/PopulatorData/Templates/AppWelcome.php +++ b/lib/Config/PopulatorData/Templates/AppWelcome.php @@ -8,7 +8,7 @@ class AppWelcome { private $social_icon_url; function __construct($assets_url) { - $this->template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/app_welcome'; + $this->template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/app_welcome'; $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons'; } diff --git a/lib/Config/PopulatorData/Templates/Avocado.php b/lib/Config/PopulatorData/Templates/Avocado.php new file mode 100644 index 0000000000..d3ab225a52 --- /dev/null +++ b/lib/Config/PopulatorData/Templates/Avocado.php @@ -0,0 +1,1035 @@ +template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/avocado'; + $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons'; + } + + function get() { + return array( + 'name' => __("Avocado", 'mailpoet'), + 'categories' => json_encode(array('woocommerce', 'sample')), + 'readonly' => 1, + 'thumbnail' => $this->getThumbnail(), + 'body' => json_encode($this->getBody()), + ); + } + + private function getThumbnail() { + return $this->template_image_url . '/avocado.jpg'; + } + + private function getBody() { + return array ( + 'content' => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#f3f8f3', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 1 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Avocado-Logo-2.png', + 'alt' => 'Avocado-Logo-2', + 'fullWidth' => false, + 'width' => '212px', + 'height' => '89px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'left', + ), + ), + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '33px', + ), + ), + ), + 1 => + array ( + 'type' => 'text', + 'text' => '

Has to be fresh

', + ), + ), + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#ddeeba', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '58px', + ), + ), + ), + 1 => + array ( + 'type' => 'text', + 'text' => '

Holy Guacamole!

+

Your monthly avocado

+

delivery starts right now.

', + ), + 2 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Avocado-Header-1.jpg', + 'alt' => 'Avocado-Header-1', + 'fullWidth' => true, + 'width' => '1280px', + 'height' => '644px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + ), + ), + ), + ), + 2 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Avocado-Recipe.jpg', + 'alt' => 'Avocado-Recipe', + 'fullWidth' => true, + 'width' => '600px', + 'height' => '890px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '135px', + ), + ), + ), + 1 => + array ( + 'type' => 'text', + 'text' => '

A quick and easy recipe to get you started...

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer blandit tortor nec eleifend maximus. Nulla est lectus, tincidunt quis molestie vitae, suscipit non orci.

', + ), + 2 => + array ( + 'type' => 'button', + 'text' => 'Check it out', + 'url' => '', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#9ecd2e', + 'borderColor' => '#0074a2', + 'borderWidth' => '0px', + 'borderRadius' => '28px', + 'borderStyle' => 'solid', + 'width' => '111px', + 'lineHeight' => '36px', + 'fontColor' => '#3d3d3d', + 'fontFamily' => 'Arial', + 'fontSize' => '14px', + 'fontWeight' => 'bold', + 'textAlign' => 'left', + ), + ), + ), + ), + ), + ), + ), + 3 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#9ecd2e', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'text', + 'text' => '

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

', + ), + ), + ), + ), + ), + 4 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#ddeeba', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '58px', + ), + ), + ), + 1 => + array ( + 'type' => 'text', + 'text' => '

Got a friend that hass to have this too ?

+

', + ), + 2 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Avocado-Coupon.jpg', + 'alt' => 'Avocado-Coupon', + 'fullWidth' => true, + 'width' => '1280px', + 'height' => '382px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + ), + ), + ), + ), + 5 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#dbefb4', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'text', + 'text' => '

Send them your exclusive coupon code now and they\'ll receive 50% off their next order, and you\'ll get your next box for free! 

', + ), + 1 => + array ( + 'type' => 'button', + 'text' => 'AVOCADOSRULE', + 'url' => '', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#dbefb4', + 'borderColor' => '#3d3d3d', + 'borderWidth' => '3px', + 'borderRadius' => '0px', + 'borderStyle' => 'solid', + 'width' => '254px', + 'lineHeight' => '50px', + 'fontColor' => '#3d3d3d', + 'fontFamily' => 'Arial', + 'fontSize' => '26px', + 'fontWeight' => 'bold', + 'textAlign' => 'center', + ), + ), + ), + 2 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#dbefb4', + 'height' => '30px', + ), + ), + ), + ), + ), + ), + ), + 6 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#f8f8f8', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#f3f8f3', + 'height' => '44px', + ), + ), + ), + 1 => + array ( + 'type' => 'social', + 'iconSet' => 'full-symbol-black', + 'icons' => + array ( + 0 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'facebook', + 'link' => 'http://www.facebook.com', + 'image' => $this->social_icon_url . '/07-full-symbol-black/Facebook.png?mailpoet_version=3.7.3', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Facebook', + ), + 1 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'twitter', + 'link' => 'http://www.twitter.com', + 'image' => $this->social_icon_url . '/07-full-symbol-black/Twitter.png?mailpoet_version=3.7.3', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Twitter', + ), + 2 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'instagram', + 'link' => 'http://instagram.com', + 'image' => $this->social_icon_url . '/07-full-symbol-black/Instagram.png?mailpoet_version=3.7.3', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Instagram', + ), + ), + ), + 2 => + array ( + 'type' => 'footer', + 'text' => '

Unsubscribe | Manage your subscription
Add your postal address here!

', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + 'text' => + array ( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '12px', + 'textAlign' => 'center', + ), + 'link' => + array ( + 'fontColor' => '#6cb7d4', + 'textDecoration' => 'none', + ), + ), + ), + ), + ), + ), + ), + ), + ), + 'globalStyles' => + array ( + 'text' => + array ( + 'fontColor' => '#3d3d3d', + 'fontFamily' => 'Arial', + 'fontSize' => '14px', + ), + 'h1' => + array ( + 'fontColor' => '#3d3d3d', + 'fontFamily' => 'Arial', + 'fontSize' => '40px', + ), + 'h2' => + array ( + 'fontColor' => '#3d3d3d', + 'fontFamily' => 'Arial', + 'fontSize' => '26px', + ), + 'h3' => + array ( + 'fontColor' => '#3d3d3d', + 'fontFamily' => 'Arial', + 'fontSize' => '22px', + ), + 'link' => + array ( + 'fontColor' => '#9ecd2e', + 'textDecoration' => 'underline', + ), + 'wrapper' => + array ( + 'backgroundColor' => '#ffffff', + ), + 'body' => + array ( + 'backgroundColor' => '#f3f8f3', + ), + ), + 'blockDefaults' => + array ( + 'automatedLatestContent' => + array ( + 'amount' => '5', + 'contentType' => 'post', + 'inclusionType' => 'include', + 'displayType' => 'excerpt', + 'titleFormat' => 'h1', + 'titleAlignment' => 'left', + 'titleIsLink' => false, + 'imageFullWidth' => false, + 'featuredImagePosition' => 'belowTitle', + 'showAuthor' => 'no', + 'authorPrecededBy' => 'Author:', + 'showCategories' => 'no', + 'categoriesPrecededBy' => 'Categories:', + 'readMoreType' => 'button', + 'readMoreText' => 'Read more', + 'readMoreButton' => + array ( + 'text' => 'Read more', + 'url' => '[postLink]', + 'context' => 'automatedLatestContent.readMoreButton', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2ea1cd', + 'borderColor' => '#0074a2', + 'borderWidth' => '1px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + ), + 'sortBy' => 'newest', + 'showDivider' => true, + 'divider' => + array ( + 'context' => 'automatedLatestContent.divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '3px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 'backgroundColor' => '#ffffff', + 'backgroundColorAlternate' => '#eeeeee', + ), + 'automatedLatestContentLayout' => + array ( + 'amount' => '5', + 'withLayout' => true, + 'contentType' => 'post', + 'inclusionType' => 'include', + 'displayType' => 'excerpt', + 'titleFormat' => 'h1', + 'titleAlignment' => 'left', + 'titleIsLink' => false, + 'imageFullWidth' => false, + 'featuredImagePosition' => 'alternate', + 'showAuthor' => 'no', + 'authorPrecededBy' => 'Author:', + 'showCategories' => 'no', + 'categoriesPrecededBy' => 'Categories:', + 'readMoreType' => 'button', + 'readMoreText' => 'Read more', + 'readMoreButton' => + array ( + 'text' => 'Read more', + 'url' => '[postLink]', + 'context' => 'automatedLatestContentLayout.readMoreButton', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2ea1cd', + 'borderColor' => '#0074a2', + 'borderWidth' => '1px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + ), + 'sortBy' => 'newest', + 'showDivider' => true, + 'divider' => + array ( + 'context' => 'automatedLatestContentLayout.divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '3px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 'backgroundColor' => '#ffffff', + 'backgroundColorAlternate' => '#eeeeee', + ), + 'button' => + array ( + 'text' => 'AVOCADOSRULE', + 'url' => '', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#dbefb4', + 'borderColor' => '#3d3d3d', + 'borderWidth' => '3px', + 'borderRadius' => '0px', + 'borderStyle' => 'solid', + 'width' => '254px', + 'lineHeight' => '50px', + 'fontColor' => '#3d3d3d', + 'fontFamily' => 'Arial', + 'fontSize' => '26px', + 'fontWeight' => 'bold', + 'textAlign' => 'center', + ), + ), + 'type' => 'button', + ), + 'divider' => + array ( + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'dotted', + 'borderWidth' => '2px', + 'borderColor' => '#9ecd2e', + ), + ), + 'type' => 'divider', + ), + 'footer' => + array ( + 'text' => '

Unsubscribe | Manage subscription
Add your postal address here!

', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + 'text' => + array ( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '12px', + 'textAlign' => 'center', + ), + 'link' => + array ( + 'fontColor' => '#6cb7d4', + 'textDecoration' => 'none', + ), + ), + 'type' => 'footer', + ), + 'posts' => + array ( + 'amount' => '10', + 'contentType' => 'post', + 'postStatus' => 'publish', + 'inclusionType' => 'include', + 'displayType' => 'excerpt', + 'titleFormat' => 'h1', + 'titleAlignment' => 'left', + 'titleIsLink' => false, + 'imageFullWidth' => false, + 'featuredImagePosition' => 'belowTitle', + 'showAuthor' => 'no', + 'authorPrecededBy' => 'Author:', + 'showCategories' => 'no', + 'categoriesPrecededBy' => 'Categories:', + 'readMoreType' => 'link', + 'readMoreText' => 'Read more', + 'readMoreButton' => + array ( + 'text' => 'Read more', + 'url' => '[postLink]', + 'context' => 'posts.readMoreButton', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2ea1cd', + 'borderColor' => '#0074a2', + 'borderWidth' => '1px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + ), + 'sortBy' => 'newest', + 'showDivider' => true, + 'divider' => + array ( + 'context' => 'posts.divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '3px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 'backgroundColor' => '#ffffff', + 'backgroundColorAlternate' => '#eeeeee', + ), + 'social' => + array ( + 'iconSet' => 'full-symbol-black', + 'icons' => + array ( + 0 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'facebook', + 'link' => 'http://www.facebook.com', + 'image' => $this->social_icon_url . '/07-full-symbol-black/Facebook.png?mailpoet_version=3.7.3', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Facebook', + ), + 1 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'twitter', + 'link' => 'http://www.twitter.com', + 'image' => $this->social_icon_url . '/07-full-symbol-black/Twitter.png?mailpoet_version=3.7.3', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Twitter', + ), + 2 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'instagram', + 'link' => 'http://instagram.com', + 'image' => $this->social_icon_url . '/07-full-symbol-black/Instagram.png?mailpoet_version=3.7.3', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Instagram', + ), + ), + 'type' => 'social', + ), + 'spacer' => + array ( + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '33px', + ), + ), + 'type' => 'spacer', + ), + 'header' => + array ( + 'text' => 'Display problems? Open this email in your web browser.', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + 'text' => + array ( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '12px', + 'textAlign' => 'center', + ), + 'link' => + array ( + 'fontColor' => '#6cb7d4', + 'textDecoration' => 'underline', + ), + ), + ), + ), + ); + } + +} diff --git a/lib/Config/PopulatorData/Templates/BurgerJoint.php b/lib/Config/PopulatorData/Templates/BurgerJoint.php deleted file mode 100644 index 2ec98b0978..0000000000 --- a/lib/Config/PopulatorData/Templates/BurgerJoint.php +++ /dev/null @@ -1,497 +0,0 @@ -template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/burger_joint'; - $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons'; - } - - function get() { - return array( - 'name' => __("Burger Joint", 'mailpoet'), - 'categories' => json_encode(array('standard', 'sample')), - 'readonly' => 1, - 'thumbnail' => $this->getThumbnail(), - 'body' => json_encode($this->getBody()), - ); - } - - private function getBody() { - return array( - 'content' => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - array( - 'type' => 'container', - 'orientation' => 'horizontal', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - array( - 'type' => 'image', - 'link' => 'http://example.org', - 'src' => $this->template_image_url . '/header.jpg', - 'alt' => 'Joe\'s Burger Joint', - 'fullWidth' => true, - 'width' => '660px', - 'height' => '100px', - 'styles' => array( - 'block' => array( - 'textAlign' => 'center', - ), - ), - ), - ), - ), - ), - ), - array( - 'type' => 'container', - 'orientation' => 'horizontal', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - array( - 'type' => 'image', - 'link' => 'http://example.org', - 'src' => $this->template_image_url . '/burger-03.jpg', - 'alt' => 'burger-03', - 'fullWidth' => true, - 'width' => '1200px', - 'height' => '613px', - 'styles' => array( - 'block' => array( - 'textAlign' => 'center', - ), - ), - ), - array( - 'type' => 'spacer', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'height' => '30px', - ), - ), - ), - array( - 'type' => 'button', - 'text' => 'Make a reservation', - 'url' => 'http://example.org', - 'styles' => array( - 'block' => array( - 'backgroundColor' => '#d83b3b', - 'borderColor' => '#ffffff', - 'borderWidth' => '0px', - 'borderRadius' => '0px', - 'borderStyle' => 'solid', - 'width' => '225px', - 'lineHeight' => '50px', - 'fontColor' => '#ffffff', - 'fontFamily' => 'Verdana', - 'fontSize' => '18px', - 'fontWeight' => 'normal', - 'textAlign' => 'center', - ), - ), - ), - array( - 'type' => 'text', - 'text' => '

Upgrade! Add these sides

', - ), - array( - 'type' => 'spacer', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'height' => '20px', - ), - ), - ), - ), - ), - ), - ), - array( - 'type' => 'container', - 'orientation' => 'horizontal', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - array( - 'type' => 'image', - 'link' => 'http://example.org', - 'src' => $this->template_image_url . '/fries-01.jpg', - 'alt' => 'fries-01', - 'fullWidth' => false, - 'width' => '1000px', - 'height' => '1500px', - 'styles' => array( - 'block' => array( - 'textAlign' => 'center', - ), - ), - ), - array( - 'type' => 'text', - 'text' => '

Cras cursus viverra nulla non tempus. Curabitur sed neque vel sapien! - Morbi ullamcorper, Tellus Diam

', - ), - ), - ), - array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - array( - 'type' => 'image', - 'link' => 'http://example.org', - 'src' => $this->template_image_url . '/rolls-01.jpg', - 'alt' => 'rolls-01', - 'fullWidth' => false, - 'width' => '1000px', - 'height' => '1500px', - 'styles' => array( - 'block' => array( - 'textAlign' => 'center', - ), - ), - ), - array( - 'type' => 'text', - 'text' => '

Morbi ex diam, venenatis a efficitur et, iaculis at nibh. - Quis Ullamcorper, Tortor Ligula

', - ), - ), - ), - ), - ), - array( - 'type' => 'container', - 'orientation' => 'horizontal', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - array( - 'type' => 'divider', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'padding' => '34px', - 'borderStyle' => 'dashed', - 'borderWidth' => '3px', - 'borderColor' => '#aaaaaa', - ), - ), - ), - ), - ), - ), - ), - array( - 'type' => 'container', - 'orientation' => 'horizontal', - 'styles' => array( - 'block' => array( - 'backgroundColor' => '#e0e0e0', - ), - ), - 'blocks' => array( - array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - array( - 'type' => 'spacer', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'height' => '30px', - ), - ), - ), - array( - 'type' => 'text', - 'text' => '

Find us at these locations

', - ), - array( - 'type' => 'spacer', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'height' => '20px', - ), - ), - ), - ), - ), - ), - ), - array( - 'type' => 'container', - 'orientation' => 'horizontal', - 'styles' => array( - 'block' => array( - 'backgroundColor' => '#e0e0e0', - ), - ), - 'blocks' => array( - array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - array( - 'type' => 'text', - 'text' => '

Denver

1263 Schoville Street

53355 DENVER

CO

', - ), - ), - ), - array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - array( - 'type' => 'text', - 'text' => '

Fort Collins

157 Maine Street

86432 FORT COLLINS
CO

', - ), - ), - ), - array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - array( - 'type' => 'text', - 'text' => '

Pueblo

5390 York Avenue

64297 Pueblo

CO

', - ), - ), - ), - ), - ), - array( - 'type' => 'container', - 'orientation' => 'horizontal', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - array( - 'type' => 'spacer', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'height' => '30px', - ), - ), - ), - array( - 'type' => 'social', - 'iconSet' => 'full-symbol-black', - 'icons' => array( - array( - 'type' => 'socialIcon', - 'iconType' => 'facebook', - 'link' => 'http://example.com', - 'image' => $this->social_icon_url . '/07-full-symbol-black/Facebook.png', - 'height' => '32px', - 'width' => '32px', - 'text' => 'Facebook', - ), - array( - 'type' => 'socialIcon', - 'iconType' => 'twitter', - 'link' => 'http://example.com', - 'image' => $this->social_icon_url . '/07-full-symbol-black/Twitter.png', - 'height' => '32px', - 'width' => '32px', - 'text' => 'Twitter', - ), - array( - 'type' => 'socialIcon', - 'iconType' => 'instagram', - 'link' => 'http://instagram.com', - 'image' => $this->social_icon_url . '/07-full-symbol-black/Instagram.png', - 'height' => '32px', - 'width' => '32px', - 'text' => 'Instagram', - ), - ), - ), - array( - 'type' => 'header', - 'text' => '

View this email in your web browser

', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - 'text' => array( - 'fontColor' => '#222222', - 'fontFamily' => 'Verdana', - 'fontSize' => '12px', - 'textAlign' => 'center', - ), - 'link' => array( - 'fontColor' => '#d83b3b', - 'textDecoration' => 'underline', - ), - ), - ), - array( - 'type' => 'footer', - 'text' => '

Unsubscribe | Manage subscription
Address: Colorado

', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - 'text' => array( - 'fontColor' => '#222222', - 'fontFamily' => 'Verdana', - 'fontSize' => '12px', - 'textAlign' => 'center', - ), - 'link' => array( - 'fontColor' => '#d83b3b', - 'textDecoration' => 'none', - ), - ), - ), - ), - ), - ), - ), - ), - ), - 'globalStyles' => array( - 'text' => array( - 'fontColor' => '#434343', - 'fontFamily' => 'Tahoma', - 'fontSize' => '16px', - ), - 'h1' => array( - 'fontColor' => '#222222', - 'fontFamily' => 'Verdana', - 'fontSize' => '24px', - ), - 'h2' => array( - 'fontColor' => '#222222', - 'fontFamily' => 'Verdana', - 'fontSize' => '22px', - ), - 'h3' => array( - 'fontColor' => '#222222', - 'fontFamily' => 'Verdana', - 'fontSize' => '20px', - ), - 'link' => array( - 'fontColor' => '#21759B', - 'textDecoration' => 'underline', - ), - 'wrapper' => array( - 'backgroundColor' => '#f0f0f0', - ), - 'body' => array( - 'backgroundColor' => '#ffffff', - ), - ), - ); - } - - private function getThumbnail() { - return $this->template_image_url . '/burger-joint.jpg'; - } - -} diff --git a/lib/Config/PopulatorData/Templates/Charity.php b/lib/Config/PopulatorData/Templates/Charity.php new file mode 100644 index 0000000000..795900d104 --- /dev/null +++ b/lib/Config/PopulatorData/Templates/Charity.php @@ -0,0 +1,1136 @@ +template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/charity'; + $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons'; + } + + function get() { + return array( + 'name' => __("Charity", 'mailpoet'), + 'categories' => json_encode(array('standard', 'sample')), + 'readonly' => 1, + 'thumbnail' => $this->getThumbnail(), + 'body' => json_encode($this->getBody()), + ); + } + + private function getThumbnail() { + return $this->template_image_url . '/charity.jpg'; + } + + private function getBody() { + return array ( + 'content' => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#7bc9ee', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => $this->template_image_url . '/header-bg.jpg', + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 1 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/charity-logo.png', + 'alt' => 'charity-logo', + 'fullWidth' => false, + 'width' => '240px', + 'height' => '103px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'left', + ), + ), + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '43px', + ), + ), + ), + 1 => + array ( + 'type' => 'text', + 'text' => '

Charity Number: 09238923

', + ), + ), + ), + ), + ), + 2 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => $this->template_image_url . '/charity-header.jpg', + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '45px', + ), + ), + ), + 1 => + array ( + 'type' => 'text', + 'text' => '

We need your help

', + ), + 2 => + array ( + 'type' => 'text', + 'text' => '

For just $5 a month, you can help people around the world that are in desperate need of fresh, clean water.

', + ), + 3 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '80px', + ), + ), + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + array( + "type" => "spacer", + "styles" => array( + "block" => array( + "backgroundColor" => "transparent", + "height" => "20px", + ), + ), + ), + ), + ), + ), + ), + 3 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '35px', + ), + ), + ), + 1 => + array ( + 'type' => 'text', + 'text' => '

It only takes 5 minutes to help someone in need

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis pharetra diam semper, vulputate eros quis, sagittis ipsum. Vivamus ullamcorper sapien at sapien maximus, nec venenatis sapien tincidunt. Duis viverra imperdiet magna, a facilisis diam scelerisque at. Nunc at quam ligula. Nullam ut magna velit.

', + ), + 2 => + array ( + 'type' => 'button', + 'text' => 'Start Helping Now', + 'url' => '', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#05a0e8', + 'borderColor' => '#05a0e8', + 'borderWidth' => '1px', + 'borderRadius' => '3px', + 'borderStyle' => 'solid', + 'width' => '241px', + 'lineHeight' => '50px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Arial', + 'fontSize' => '20px', + 'fontWeight' => 'bold', + 'textAlign' => 'center', + ), + ), + ), + 3 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '25px', + ), + ), + ), + ), + ), + ), + ), + 4 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#7bc9ee', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '30px', + ), + ), + ), + 1 => + array ( + 'type' => 'text', + 'text' => '

Noah\'s Story

', + ), + ), + ), + ), + ), + 5 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#7bc9ee', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => 'http://mailpoet.info/wp-content/uploads/2017/08/Charity-Child.png', + 'alt' => 'Charity-Child', + 'fullWidth' => false, + 'width' => '200px', + 'height' => '200px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'text', + 'text' => '

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis pharetra diam semper, vulputate eros quis, sagittis ipsum. Vivamus ullamcorper sapien at sapien maximus, nec venenatis sapien tincidunt.

+

+

Duis viverra imperdiet magna, a facilisis diam scelerisque at. Nunc at quam ligula. Nullam ut magna velit.

', + ), + ), + ), + ), + ), + 6 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#7bc9ee', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => 'http://mailpoet.info/wp-content/uploads/2017/08/Charity-Video.jpg', + 'alt' => 'Charity-Video', + 'fullWidth' => false, + 'width' => '1280px', + 'height' => '760px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + ), + ), + ), + ), + 7 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#ffffff', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 1 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => 'http://mailpoet.info/wp-content/uploads/2017/08/Charity-Logo-Small.png', + 'alt' => 'Charity-Logo-Small', + 'fullWidth' => false, + 'width' => '407px', + 'height' => '82px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 1 => + array ( + 'type' => 'social', + 'iconSet' => 'full-symbol-black', + 'icons' => + array ( + 0 => + array ( + '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 => + array ( + '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 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'instagram', + 'link' => 'http://instagram.com', + 'image' => $this->social_icon_url . '/07-full-symbol-black/Instagram.png', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Instagram', + ), + ), + ), + ), + ), + 2 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 1 => + array ( + 'type' => 'text', + 'text' => '

Unsubscribe | Manage subscription
Add your postal address here!

', + ), + ), + ), + ), + ), + ), + ), + 'globalStyles' => + array ( + 'text' => + array ( + 'fontColor' => '#000000', + 'fontFamily' => 'Arial', + 'fontSize' => '14px', + ), + 'h1' => + array ( + 'fontColor' => '#111111', + 'fontFamily' => 'Arial', + 'fontSize' => '30px', + ), + 'h2' => + array ( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '24px', + ), + 'h3' => + array ( + 'fontColor' => '#333333', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + ), + 'link' => + array ( + 'fontColor' => '#05a0e8', + 'textDecoration' => 'underline', + ), + 'wrapper' => + array ( + 'backgroundColor' => '#ffffff', + ), + 'body' => + array ( + 'backgroundColor' => '#7bc9ee', + ), + ), + 'blockDefaults' => + array ( + 'automatedLatestContent' => + array ( + 'amount' => '5', + 'withLayout' => false, + 'contentType' => 'post', + 'inclusionType' => 'include', + 'displayType' => 'excerpt', + 'titleFormat' => 'h1', + 'titleAlignment' => 'left', + 'titleIsLink' => false, + 'imageFullWidth' => false, + 'featuredImagePosition' => 'belowTitle', + 'showAuthor' => 'no', + 'authorPrecededBy' => 'Author:', + 'showCategories' => 'no', + 'categoriesPrecededBy' => 'Categories:', + 'readMoreType' => 'button', + 'readMoreText' => 'Read more', + 'readMoreButton' => + array ( + 'text' => 'Read more', + 'url' => '[postLink]', + 'context' => 'automatedLatestContent.readMoreButton', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2ea1cd', + 'borderColor' => '#0074a2', + 'borderWidth' => '1px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + ), + 'sortBy' => 'newest', + 'showDivider' => true, + 'divider' => + array ( + 'context' => 'automatedLatestContent.divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '3px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 'backgroundColor' => '#ffffff', + 'backgroundColorAlternate' => '#eeeeee', + ), + 'automatedLatestContentLayout' => + array ( + 'amount' => '5', + 'withLayout' => true, + 'contentType' => 'post', + 'inclusionType' => 'include', + 'displayType' => 'excerpt', + 'titleFormat' => 'h1', + 'titleAlignment' => 'left', + 'titleIsLink' => false, + 'imageFullWidth' => false, + 'featuredImagePosition' => 'alternate', + 'showAuthor' => 'no', + 'authorPrecededBy' => 'Author:', + 'showCategories' => 'no', + 'categoriesPrecededBy' => 'Categories:', + 'readMoreType' => 'button', + 'readMoreText' => 'Read more', + 'readMoreButton' => + array ( + 'text' => 'Read more', + 'url' => '[postLink]', + 'context' => 'automatedLatestContentLayout.readMoreButton', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2ea1cd', + 'borderColor' => '#0074a2', + 'borderWidth' => '1px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + ), + 'sortBy' => 'newest', + 'showDivider' => true, + 'divider' => + array ( + 'context' => 'automatedLatestContentLayout.divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '3px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 'backgroundColor' => '#ffffff', + 'backgroundColorAlternate' => '#eeeeee', + ), + 'button' => + array ( + 'text' => 'Button', + 'url' => '', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2ea1cd', + 'borderColor' => '#0074a2', + 'borderWidth' => '1px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + ), + 'divider' => + array ( + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '3px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 'footer' => + array ( + 'text' => '

Unsubscribe | Manage subscription
Add your postal address here!

', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + 'text' => + array ( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '12px', + 'textAlign' => 'center', + ), + 'link' => + array ( + 'fontColor' => '#6cb7d4', + 'textDecoration' => 'none', + ), + ), + ), + 'posts' => + array ( + 'amount' => '10', + 'withLayout' => true, + 'contentType' => 'post', + 'postStatus' => 'publish', + 'inclusionType' => 'include', + 'displayType' => 'excerpt', + 'titleFormat' => 'h1', + 'titleAlignment' => 'left', + 'titleIsLink' => false, + 'imageFullWidth' => false, + 'featuredImagePosition' => 'alternate', + 'showAuthor' => 'no', + 'authorPrecededBy' => 'Author:', + 'showCategories' => 'no', + 'categoriesPrecededBy' => 'Categories:', + 'readMoreType' => 'link', + 'readMoreText' => 'Read more', + 'readMoreButton' => + array ( + 'text' => 'Read more', + 'url' => '[postLink]', + 'context' => 'posts.readMoreButton', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2ea1cd', + 'borderColor' => '#0074a2', + 'borderWidth' => '1px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + ), + 'sortBy' => 'newest', + 'showDivider' => true, + 'divider' => + array ( + 'context' => 'posts.divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '3px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 'backgroundColor' => '#ffffff', + 'backgroundColorAlternate' => '#eeeeee', + ), + 'social' => + array ( + 'iconSet' => 'default', + 'icons' => + array ( + 0 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'facebook', + 'link' => 'http://www.facebook.com', + 'image' => $this->social_icon_url . '/01-social/Facebook.png', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Facebook', + ), + 1 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'twitter', + 'link' => 'http://www.twitter.com', + 'image' => $this->social_icon_url . '/01-social/Twitter.png', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Twitter', + ), + ), + ), + 'spacer' => + array ( + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '80px', + ), + ), + 'type' => 'spacer', + ), + 'header' => + array ( + 'text' => 'Display problems? Open this email in your web browser.', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + 'text' => + array ( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '12px', + 'textAlign' => 'center', + ), + 'link' => + array ( + 'fontColor' => '#6cb7d4', + 'textDecoration' => 'underline', + ), + ), + ), + ), + ); + + } + +} diff --git a/lib/Config/PopulatorData/Templates/ChocolateStore.php b/lib/Config/PopulatorData/Templates/ChocolateStore.php deleted file mode 100644 index 3bccda5529..0000000000 --- a/lib/Config/PopulatorData/Templates/ChocolateStore.php +++ /dev/null @@ -1,846 +0,0 @@ -template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/chocolate_store'; - $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons'; - } - - function get() { - return array( - 'name' => __("Chocolate Store", 'mailpoet'), - 'categories' => json_encode(array('standard', 'sample')), - 'readonly' => 1, - 'thumbnail' => $this->getThumbnail(), - 'body' => json_encode($this->getBody()), - ); - } - - private function getBody() { - return array( - 'content' => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'container', - 'orientation' => 'horizontal', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'spacer', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'height' => '28px', - ), - ), - ), - ), - ), - ), - ), - 1 => array( - 'type' => 'container', - 'orientation' => 'horizontal', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'image', - 'link' => '', - 'src' => $this->template_image_url . '/cafe-cocoa-logo_small.png', - 'alt' => 'cafe-cocoa-logo_small', - 'fullWidth' => true, - 'width' => '648px', - 'height' => '80px', - 'styles' => array( - 'block' => array( - 'textAlign' => 'center', - ), - ), - ), - ), - ), - 1 => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'social', - 'iconSet' => 'full-symbol-grey', - 'icons' => array( - 0 => array( - 'type' => 'socialIcon', - 'iconType' => 'facebook', - 'link' => 'http://www.facebook.com', - 'image' => $this->social_icon_url . '/08-full-symbol-grey/Facebook.png', - 'height' => '32px', - 'width' => '32px', - 'text' => 'Facebook', - ), - 1 => array( - 'type' => 'socialIcon', - 'iconType' => 'twitter', - 'link' => 'http://www.twitter.com', - 'image' => $this->social_icon_url . '/08-full-symbol-grey/Twitter.png', - 'height' => '32px', - 'width' => '32px', - 'text' => 'Twitter', - ), - 2 => array( - 'type' => 'socialIcon', - 'iconType' => 'pinterest', - 'link' => 'http://www.pinterest.com', - 'image' => $this->social_icon_url . '/08-full-symbol-grey/Pinterest.png', - 'height' => '32px', - 'width' => '32px', - 'text' => 'Pinterest', - ), - 3 => array( - 'type' => 'socialIcon', - 'iconType' => 'instagram', - 'link' => 'http://instagram.com', - 'image' => $this->social_icon_url . '/08-full-symbol-grey/Instagram.png', - 'height' => '32px', - 'width' => '32px', - 'text' => 'Instagram', - ), - ), - ), - ), - ), - ), - ), - 2 => array( - 'type' => 'container', - 'orientation' => 'horizontal', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'spacer', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'height' => '36px', - ), - ), - ), - ), - ), - ), - ), - 3 => array( - 'type' => 'container', - 'orientation' => 'horizontal', - 'styles' => array( - 'block' => array( - 'backgroundColor' => '#5b5b5b', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'image', - 'link' => '', - 'src' => $this->template_image_url . '/cocoa-hero.jpg', - 'alt' => 'cocoa-hero', - 'fullWidth' => true, - 'width' => '1320px', - 'height' => '677px', - 'styles' => array( - 'block' => array( - 'textAlign' => 'center', - ), - ), - ), - 1 => array( - 'type' => 'spacer', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'height' => '40px', - ), - ), - ), - 2 => array( - 'type' => 'text', - 'text' => '

SEASONAL SPECIAL: RUM TRUFFLE

-

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.

', - ), - 3 => array( - 'type' => 'button', - 'text' => 'Shop Truffles', - 'url' => '', - 'styles' => array( - 'block' => array( - 'backgroundColor' => '#a4a4a4', - 'borderColor' => '#4e4e4e', - 'borderWidth' => '2px', - 'borderRadius' => '5px', - 'borderStyle' => 'solid', - 'width' => '180px', - 'lineHeight' => '40px', - 'fontColor' => '#000000', - 'fontFamily' => 'Arial', - 'fontSize' => '18px', - 'fontWeight' => 'bold', - 'textAlign' => 'center', - ), - ), - ), - 4 => array( - 'type' => 'spacer', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'height' => '20px', - ), - ), - ), - ), - ), - ), - ), - 4 => array( - 'type' => 'container', - 'orientation' => 'horizontal', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'image', - 'link' => '', - 'src' => $this->template_image_url . '/bottom-divider-1.png', - 'alt' => 'bottom-divider', - 'fullWidth' => true, - 'width' => '1320px', - 'height' => '102px', - 'styles' => array( - 'block' => array( - 'textAlign' => 'center', - ), - ), - ), - 1 => array( - 'type' => 'spacer', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'height' => '50px', - ), - ), - ), - 2 => array( - 'type' => 'text', - 'text' => '

Store News

', - ), - 3 => array( - 'type' => 'spacer', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'height' => '20px', - ), - ), - ), - ), - ), - ), - ), - 5 => array( - 'type' => 'container', - 'orientation' => 'horizontal', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'image', - 'link' => '', - 'src' => $this->template_image_url . '/cake-shop.png', - 'alt' => 'cake-shop', - 'fullWidth' => true, - 'width' => '300px', - 'height' => '300px', - 'styles' => array( - 'block' => array( - 'textAlign' => 'center', - ), - ), - ), - 1 => array( - 'type' => 'image', - 'link' => '', - 'src' => $this->template_image_url . '/bottom-divider_lightgrey-1.png', - 'alt' => 'bottom-divider_lightgrey', - 'fullWidth' => true, - 'width' => '440px', - 'height' => '60px', - 'styles' => array( - 'block' => array( - 'textAlign' => 'center', - ), - ), - ), - 2 => array( - 'type' => 'header', - 'text' => '

Duis pellentesque nibh in lectus blandit.

', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - 'text' => array( - 'fontColor' => '#ffffff', - 'fontFamily' => 'Arial', - 'fontSize' => '14px', - 'textAlign' => 'left', - ), - 'link' => array( - 'fontColor' => '#ffffff', - 'textDecoration' => 'underline', - ), - ), - ), - ), - ), - 1 => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'image', - 'link' => '', - 'src' => $this->template_image_url . '/new-desserts.png', - 'alt' => 'new-desserts', - 'fullWidth' => true, - 'width' => '300px', - 'height' => '300px', - 'styles' => array( - 'block' => array( - 'textAlign' => 'center', - ), - ), - ), - 1 => array( - 'type' => 'image', - 'link' => '', - 'src' => $this->template_image_url . '/bottom-divider_lightgrey-1.png', - 'alt' => 'bottom-divider_lightgrey', - 'fullWidth' => true, - 'width' => '440px', - 'height' => '60px', - 'styles' => array( - 'block' => array( - 'textAlign' => 'center', - ), - ), - ), - 2 => array( - 'type' => 'header', - 'text' => '

Phasellus feugiat laoreet ex ac elementum.

', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - 'text' => array( - 'fontColor' => '#ffffff', - 'fontFamily' => 'Arial', - 'fontSize' => '14px', - 'textAlign' => 'left', - ), - 'link' => array( - 'fontColor' => '#a4a4a4', - 'textDecoration' => 'underline', - ), - ), - ), - ), - ), - 2 => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'image', - 'link' => '', - 'src' => $this->template_image_url . '/cupcakes.jpg', - 'alt' => 'cupcakes', - 'fullWidth' => true, - 'width' => '300px', - 'height' => '300px', - 'styles' => array( - 'block' => array( - 'textAlign' => 'center', - ), - ), - ), - 1 => array( - 'type' => 'image', - 'link' => '', - 'src' => $this->template_image_url . '/bottom-divider_lightgrey-1.png', - 'alt' => 'bottom-divider_lightgrey', - 'fullWidth' => true, - 'width' => '440px', - 'height' => '60px', - 'styles' => array( - 'block' => array( - 'textAlign' => 'center', - ), - ), - ), - 2 => array( - 'type' => 'header', - 'text' => '

Mauris lacinia venenatis luctus. 

', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - 'text' => array( - 'fontColor' => '#ffffff', - 'fontFamily' => 'Arial', - 'fontSize' => '14px', - 'textAlign' => 'left', - ), - 'link' => array( - 'fontColor' => '#ffffff', - 'textDecoration' => 'underline', - ), - ), - ), - ), - ), - ), - ), - 6 => array( - 'type' => 'container', - 'orientation' => 'horizontal', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'spacer', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'height' => '40px', - ), - ), - ), - 1 => array( - 'type' => 'button', - 'text' => 'Visit Store', - 'url' => '', - 'styles' => array( - 'block' => array( - 'backgroundColor' => '#a4a4a4', - 'borderColor' => '#4e4e4e', - 'borderWidth' => '2px', - 'borderRadius' => '5px', - 'borderStyle' => 'solid', - 'width' => '180px', - 'lineHeight' => '40px', - 'fontColor' => '#000000', - 'fontFamily' => 'Arial', - 'fontSize' => '20px', - 'fontWeight' => 'bold', - 'textAlign' => 'center', - ), - ), - ), - 2 => array( - 'type' => 'divider', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'padding' => '13px', - 'borderStyle' => 'double', - 'borderWidth' => '7px', - 'borderColor' => '#4e4e4e', - ), - ), - ), - 3 => array( - 'type' => 'text', - 'text' => '

Cocoa Blogs...

', - ), - 4 => array( - 'type' => 'divider', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'padding' => '8.5px', - 'borderStyle' => 'double', - 'borderWidth' => '7px', - 'borderColor' => '#4e4e4e', - ), - ), - ), - 5 => array( - 'type' => 'automatedLatestContent', - 'amount' => '1', - 'contentType' => 'post', - 'terms' => array(), - 'inclusionType' => 'include', - 'displayType' => 'excerpt', - 'titleFormat' => 'h1', - 'titleAlignment' => 'center', - 'titleIsLink' => false, - 'imageFullWidth' => false, - 'featuredImagePosition' => 'belowTitle', - 'showAuthor' => 'belowText', - 'authorPrecededBy' => 'Author:', - 'showCategories' => 'no', - 'categoriesPrecededBy' => 'Categories:', - 'readMoreType' => 'button', - 'readMoreText' => 'Read more', - 'readMoreButton' => array( - 'type' => 'button', - 'text' => 'Read more', - 'url' => '[postLink]', - 'styles' => array( - 'block' => array( - 'backgroundColor' => '#a4a4a4', - 'borderColor' => '#4e4e4e', - 'borderWidth' => '2px', - 'borderRadius' => '5px', - 'borderStyle' => 'solid', - 'width' => '180px', - 'lineHeight' => '40px', - 'fontColor' => '#000001', - 'fontFamily' => 'Georgia', - 'fontSize' => '20px', - 'fontWeight' => 'normal', - 'textAlign' => 'center', - ), - ), - ), - 'sortBy' => 'newest', - 'showDivider' => false, - 'divider' => array( - 'type' => 'divider', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'padding' => '13px', - 'borderStyle' => 'solid', - 'borderWidth' => '3px', - 'borderColor' => '#aaaaaa', - ), - ), - ), - 'backgroundColor' => '#ffffff', - 'backgroundColorAlternate' => '#eeeeee', - ), - 6 => array( - 'type' => 'spacer', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'height' => '20px', - ), - ), - ), - 7 => array( - 'type' => 'divider', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'padding' => '10.5px', - 'borderStyle' => 'double', - 'borderWidth' => '7px', - 'borderColor' => '#4e4e4e', - ), - ), - ), - ), - ), - ), - ), - 7 => array( - 'type' => 'container', - 'orientation' => 'horizontal', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'social', - 'iconSet' => 'full-symbol-grey', - 'icons' => array( - 0 => array( - 'type' => 'socialIcon', - 'iconType' => 'facebook', - 'link' => 'http://www.facebook.com', - 'image' => $this->social_icon_url . '/08-full-symbol-grey/Facebook.png', - 'height' => '32px', - 'width' => '32px', - 'text' => 'Facebook', - ), - 1 => array( - 'type' => 'socialIcon', - 'iconType' => 'twitter', - 'link' => 'http://www.twitter.com', - 'image' => $this->social_icon_url . '/08-full-symbol-grey/Twitter.png', - 'height' => '32px', - 'width' => '32px', - 'text' => 'Twitter', - ), - ), - ), - 1 => array( - 'type' => 'text', - 'text' => '

Add your postal address here!

', - ), - 2 => array( - 'type' => 'spacer', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'height' => '20px', - ), - ), - ), - ), - ), - 1 => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'footer', - 'text' => '

Praesent metus ante, venenatis egestas nisl ac, molestie viverra ante. 

-

 

-

Unsubscribe
Manage subscription

', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - 'text' => array( - 'fontColor' => '#dadada', - 'fontFamily' => 'Arial', - 'fontSize' => '14px', - 'textAlign' => 'center', - ), - 'link' => array( - 'fontColor' => '#dadada', - 'textDecoration' => 'underline', - ), - ), - ), - 1 => array( - 'type' => 'spacer', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'height' => '20px', - ), - ), - ), - ), - ), - 2 => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'text', - 'text' => '

Aliquam feugiat nisl eget eleifend congue.

', - ), - 1 => array( - 'type' => 'image', - 'link' => '', - 'src' => $this->template_image_url . '/owner-1.jpg', - 'alt' => 'owner', - 'fullWidth' => false, - 'width' => '100px', - 'height' => '100px', - 'styles' => array( - 'block' => array( - 'textAlign' => 'center', - ), - ), - ), - 2 => array( - 'type' => 'spacer', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'height' => '20px', - ), - ), - ), - ), - ), - ), - ), - ), - ), - 'globalStyles' => array( - 'text' => array( - 'fontColor' => '#ffffff', - 'fontFamily' => 'Arial', - 'fontSize' => '16px', - ), - 'h1' => array( - 'fontColor' => '#ffffff', - 'fontFamily' => 'Georgia', - 'fontSize' => '24px', - ), - 'h2' => array( - 'fontColor' => '#ffffff', - 'fontFamily' => 'Georgia', - 'fontSize' => '32px', - ), - 'h3' => array( - 'fontColor' => '#ffffff', - 'fontFamily' => 'Georgia', - 'fontSize' => '24px', - ), - 'link' => array( - 'fontColor' => '#ffffff', - 'textDecoration' => 'underline', - ), - 'wrapper' => array( - 'backgroundColor' => '#000000', - ), - 'body' => array( - 'backgroundColor' => '#000000', - ), - ), - ); - } - - private function getThumbnail() { - return $this->template_image_url . '/chocolate-store.jpg'; - } - -} \ No newline at end of file diff --git a/lib/Config/PopulatorData/Templates/Coffee.php b/lib/Config/PopulatorData/Templates/Coffee.php new file mode 100644 index 0000000000..2e133fc981 --- /dev/null +++ b/lib/Config/PopulatorData/Templates/Coffee.php @@ -0,0 +1,1002 @@ +template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/coffee'; + $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons'; + } + + function get() { + return array( + 'name' => __("Coffee", 'mailpoet'), + 'categories' => json_encode(array('standard', 'sample')), + 'readonly' => 1, + 'thumbnail' => $this->getThumbnail(), + 'body' => json_encode($this->getBody()), + ); + } + + private function getThumbnail() { + return $this->template_image_url . '/coffee.jpg'; + } + + private function getBody() { + return array ( + 'content' => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '50px', + ), + ), + ), + ), + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 1 => + array ( + 'type' => 'social', + 'iconSet' => 'full-symbol-black', + 'icons' => + array ( + 0 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'facebook', + 'link' => 'http://www.facebook.com', + 'image' => $this->social_icon_url . '/07-full-symbol-black/Facebook.png?mailpoet_version=3.0.0-rc.2.0.0', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Facebook', + ), + 1 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'twitter', + 'link' => 'http://www.twitter.com', + 'image' => $this->social_icon_url . '/07-full-symbol-black/Twitter.png?mailpoet_version=3.0.0-rc.2.0.0', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Twitter', + ), + 2 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'instagram', + 'link' => 'http://instagram.com', + 'image' => $this->social_icon_url . '/07-full-symbol-black/Instagram.png?mailpoet_version=3.0.0-rc.2.0.0', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Instagram', + ), + ), + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Coffee-Logo-1.png', + 'alt' => 'Coffee-Logo-1', + 'fullWidth' => false, + 'width' => '120px', + 'height' => '71px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + ), + ), + 2 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 1 => + array ( + 'type' => 'header', + 'text' => '

Open email in your web browser.

', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + 'text' => + array ( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '12px', + 'textAlign' => 'center', + ), + 'link' => + array ( + 'fontColor' => '#6cb7d4', + 'textDecoration' => 'underline', + ), + ), + ), + ), + ), + ), + ), + 2 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Coffee-Header.jpg', + 'alt' => 'Coffee-Header', + 'fullWidth' => false, + 'width' => '1280px', + 'height' => '260px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + 1 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/coffee.gif', + 'alt' => 'coffee', + 'fullWidth' => true, + 'width' => '660px', + 'height' => '371px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + 2 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '30px', + ), + ), + ), + ), + ), + ), + ), + 3 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'text', + 'text' => '

We\'ve got some new blends, just for you.

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer vehicula magna sit amet lorem venenatis, quis condimentum odio egestas. Suspendisse felis felis, tempor id convallis in, tincidunt quis nisi. Morbi dolor elit, maximus et velit quis, fermentum porta lectus. Nulla odio est, tempus vitae nunc sit amet, fermentum tristique lacus. In bibendum fringilla cursus.

', + ), + 1 => + array ( + 'type' => 'button', + 'text' => 'Check Them Out', + 'url' => '', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#6fb910', + 'borderColor' => '#6fb910', + 'borderWidth' => '0px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '150px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Arial', + 'fontSize' => '16px', + 'fontWeight' => 'bold', + 'textAlign' => 'center', + ), + ), + ), + 2 => + array ( + 'type' => 'divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '1px', + 'borderColor' => '#d6d6d6', + ), + ), + ), + ), + ), + ), + ), + 4 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Coffee-Mid.jpg', + 'alt' => 'Coffee-Mid', + 'fullWidth' => true, + 'width' => '1280px', + 'height' => '411px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + 1 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#eaeaea', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + 5 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#eaeaea', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'text', + 'text' => '

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer vehicula magna sit amet lorem venenatis, quis condimentum odio egestas. Suspendisse felis felis, tempor id convallis in, tincidunt quis nisi.

+

+

Morbi dolor elit, maximus et velit quis, fermentum porta lectus. Nulla odio est, tempus vitae nunc sit amet, fermentum tristique lacus. In bibendum fringilla cursus.

', + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'text', + 'text' => '

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer vehicula magna sit amet lorem venenatis, quis condimentum odio egestas. Suspendisse felis felis, tempor id convallis in, tincidunt quis nisi.

+

+

Morbi dolor elit, maximus et velit quis, fermentum porta lectus. Nulla odio est, tempus vitae nunc sit amet, fermentum tristique lacus. In bibendum fringilla cursus.

', + ), + ), + ), + ), + ), + 6 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '40px', + ), + ), + ), + 1 => + array ( + 'type' => 'text', + 'text' => '

Interested in upgrading your subscription?

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

+

Integer vehicula magna sit amet lorem venenatis, quis condimentum odio egestas.

', + ), + 2 => + array ( + 'type' => 'button', + 'text' => 'Get Started', + 'url' => '', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#6fb910', + 'borderColor' => '#6fb910', + 'borderWidth' => '0px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '118px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Arial', + 'fontSize' => '16px', + 'fontWeight' => 'bold', + 'textAlign' => 'center', + ), + ), + ), + 3 => + array ( + 'type' => 'divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '1px', + 'borderColor' => '#d6d6d6', + ), + ), + ), + ), + ), + ), + ), + 7 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 1 => + array ( + 'type' => 'text', + 'text' => '

Latest News

', + ), + ), + ), + ), + ), + 8 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'image', + 'link' => 'http://mailpoet.info/cutting-through-the-smog-what-to-do-to-fight-air-pollution/', + 'src' => $this->template_image_url . '/Coffee-Cup.jpg', + 'alt' => 'Coffee-Cup', + 'fullWidth' => false, + 'width' => '400px', + 'height' => '400px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + 1 => + array ( + 'type' => 'text', + 'text' => '

Capsule MFG Launches Upgraded Line of Modular Coffee Bars

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

+

Integer vehicula magna sit amet lorem venenatis, quis condimentum odio egestas.

+

+

Read more

', + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'image', + 'link' => 'http://mailpoet.info/cutting-through-the-smog-what-to-do-to-fight-air-pollution/', + 'src' => $this->template_image_url . '/Coffee-Cup.jpg', + 'alt' => 'Coffee-Cup', + 'fullWidth' => false, + 'width' => '400px', + 'height' => '400px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + 1 => + array ( + 'type' => 'text', + 'text' => '

British-Designed Niche Zero Aims to Leave No Grind Behind

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

+

Integer vehicula magna sit amet lorem venenatis, quis condimentum odio egestas.

+

+

Read more

', + ), + ), + ), + 2 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'image', + 'link' => 'http://mailpoet.info/cutting-through-the-smog-what-to-do-to-fight-air-pollution/', + 'src' => $this->template_image_url . '/Coffee-Cup.jpg', + 'alt' => 'Coffee-Cup', + 'fullWidth' => false, + 'width' => '400px', + 'height' => '400px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + 1 => + array ( + 'type' => 'text', + 'text' => '

Boyd’s Being Acquired by Farmer Bros for Approximately $58.6M

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

+

Integer vehicula magna sit amet lorem venenatis, quis condimentum odio egestas.

+

+

Read more

', + ), + ), + ), + ), + ), + 9 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '22.5px', + 'borderStyle' => 'solid', + 'borderWidth' => '1px', + 'borderColor' => '#d6d6d6', + ), + ), + ), + ), + ), + ), + ), + 10 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 1 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Coffee-Logo-1.png', + 'alt' => 'Coffee-Logo-1', + 'fullWidth' => false, + 'width' => '120px', + 'height' => '71px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + 2 => + array ( + 'type' => 'social', + 'iconSet' => 'full-symbol-black', + 'icons' => + array ( + 0 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'facebook', + 'link' => 'http://www.facebook.com', + 'image' => $this->social_icon_url . '/07-full-symbol-black/Facebook.png?mailpoet_version=3.0.0-rc.2.0.0', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Facebook', + ), + 1 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'twitter', + 'link' => 'http://www.twitter.com', + 'image' => $this->social_icon_url . '/07-full-symbol-black/Twitter.png?mailpoet_version=3.0.0-rc.2.0.0', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Twitter', + ), + 2 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'instagram', + 'link' => 'http://instagram.com', + 'image' => $this->social_icon_url . '/07-full-symbol-black/Instagram.png?mailpoet_version=3.0.0-rc.2.0.0', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Instagram', + ), + ), + ), + 3 => + array ( + 'type' => 'footer', + 'text' => '

Unsubscribe | Manage subscription
Add your postal address here!

', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + 'text' => + array ( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '12px', + 'textAlign' => 'center', + ), + 'link' => + array ( + 'fontColor' => '#6cb7d4', + 'textDecoration' => 'none', + ), + ), + ), + ), + ), + ), + ), + ), + ), + 'globalStyles' => + array ( + 'text' => + array ( + 'fontColor' => '#000000', + 'fontFamily' => 'Arial', + 'fontSize' => '14px', + ), + 'h1' => + array ( + 'fontColor' => '#111111', + 'fontFamily' => 'Arial', + 'fontSize' => '30px', + ), + 'h2' => + array ( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '24px', + ), + 'h3' => + array ( + 'fontColor' => '#333333', + 'fontFamily' => 'Arial', + 'fontSize' => '18px', + ), + 'link' => + array ( + 'fontColor' => '#0f0f0f', + 'textDecoration' => 'underline', + ), + 'wrapper' => + array ( + 'backgroundColor' => '#ffffff', + ), + 'body' => + array ( + 'backgroundColor' => '#ffffff', + ), + ), + ); + } + +} \ No newline at end of file diff --git a/lib/Config/PopulatorData/Templates/CoffeeShop.php b/lib/Config/PopulatorData/Templates/CoffeeShop.php deleted file mode 100644 index 1689a16082..0000000000 --- a/lib/Config/PopulatorData/Templates/CoffeeShop.php +++ /dev/null @@ -1,425 +0,0 @@ -template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/franks-roast-house'; - $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons'; - } - - function get() { - return array( - 'name' => __("Coffee Shop", 'mailpoet'), - 'categories' => json_encode(array('standard', 'sample')), - 'readonly' => 1, - 'thumbnail' => $this->getThumbnail(), - 'body' => json_encode($this->getBody()), - ); - } - - private function getBody() { - return array( - 'content' => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'container', - 'orientation' => 'horizontal', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'spacer', - 'styles' => array( - 'block' => array( - 'backgroundColor' => '#ccc6c6', - 'height' => '20px', - ), - ), - ), - 1 => array( - 'type' => 'spacer', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'height' => '40px', - ), - ), - ), - 2 => array( - 'type' => 'image', - 'link' => 'http://www.example.com', - 'src' => $this->template_image_url . '/header-v2.jpg', - 'alt' => 'Frank\'s Café', - 'fullWidth' => true, - 'width' => '600px', - 'height' => '220px', - 'styles' => array( - 'block' => array( - 'textAlign' => 'center', - ), - ), - ), - 3 => array( - 'type' => 'spacer', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'height' => '30px', - ), - ), - ), - 4 => array( - 'type' => 'text', - 'text' => '

Hi there [subscriber:firstname | default:coffee drinker]

-

-

Sit back and enjoy your favorite roast as you read this week\'s newsletter.

', - ), - 5 => array( - 'type' => 'image', - 'link' => 'http://example.org', - 'src' => $this->template_image_url . '/coffee-grain.jpg', - 'alt' => 'Coffee grain', - 'fullWidth' => true, - 'width' => '1599px', - 'height' => '777px', - 'styles' => array( - 'block' => array( - 'textAlign' => 'center', - ), - ), - ), - 6 => array( - 'type' => 'text', - 'text' => '

--- Guest Roaster: Brew Bros. ---

-

-

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.

-

-
-

Tasting notes: A rich, caramel flavor with subtle hints of molasses. The perfect wake-up morning espresso!

-
', - ), - 7 => array( - 'type' => 'spacer', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'height' => '22px', - ), - ), - ), - ), - ), - ), - ), - 1 => array( - 'type' => 'container', - 'orientation' => 'horizontal', - 'styles' => array( - 'block' => array( - 'backgroundColor' => '#ebebeb', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'spacer', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'height' => '40px', - ), - ), - ), - 1 => array( - 'type' => 'text', - 'text' => '

Sandwich Competition

', - ), - 2 => array( - 'type' => 'image', - 'link' => 'http://example.org', - 'src' => $this->template_image_url . '/sandwich.jpg', - 'alt' => 'Sandwich', - 'fullWidth' => false, - 'width' => '640px', - 'height' => '344px', - 'styles' => array( - 'block' => array( - 'textAlign' => 'center', - ), - ), - ), - 3 => array( - 'type' => 'text', - 'text' => '

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.

-

-

Simply tweet your ideas to @franksroasthouse and use #sandwichcomp and we\'ll let you know if you\'re a winner.

', - ), - 4 => array( - 'type' => 'button', - 'text' => 'Find out more', - 'url' => 'http://example.org', - 'styles' => array( - 'block' => array( - 'backgroundColor' => '#604b4b', - 'borderColor' => '#443232', - 'borderWidth' => '1px', - 'borderRadius' => '3px', - 'borderStyle' => 'solid', - 'width' => '180px', - 'lineHeight' => '34px', - 'fontColor' => '#ffffff', - 'fontFamily' => 'Arial', - 'fontSize' => '14px', - 'fontWeight' => 'normal', - 'textAlign' => 'center', - ), - ), - ), - 5 => array( - 'type' => 'spacer', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'height' => '40px', - ), - ), - ), - 6 => array( - 'type' => 'text', - 'text' => '

Follow Us

', - ), - 7 => array( - 'type' => 'social', - 'iconSet' => 'full-symbol-black', - 'icons' => array( - 0 => array( - 'type' => 'socialIcon', - 'iconType' => 'facebook', - 'link' => 'http://www.facebook.com/mailpoetplugin', - 'image' => $this->social_icon_url . '/07-full-symbol-black/Facebook.png', - 'height' => '32px', - 'width' => '32px', - 'text' => 'Facebook', - ), - 1 => array( - 'type' => 'socialIcon', - 'iconType' => 'twitter', - 'link' => 'http://www.twitter.com/mailpoet', - 'image' => $this->social_icon_url . '/07-full-symbol-black/Twitter.png', - 'height' => '32px', - 'width' => '32px', - 'text' => 'Twitter', - ), - 2 => array( - 'type' => 'socialIcon', - 'iconType' => 'instagram', - 'link' => 'http://www.instagram.com/test', - 'image' => $this->social_icon_url . '/07-full-symbol-black/Instagram.png', - 'height' => '32px', - 'width' => '32px', - 'text' => 'Instagram', - ), - 3 => array( - 'type' => 'socialIcon', - 'iconType' => 'website', - 'link' => 'http://www.mailpoet.com', - 'image' => $this->social_icon_url . '/07-full-symbol-black/Website.png', - 'height' => '32px', - 'width' => '32px', - 'text' => 'Website', - ), - ), - ), - ), - ), - 1 => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'spacer', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'height' => '40px', - ), - ), - ), - 1 => array( - 'type' => 'text', - 'text' => '

New Store Opening!

', - ), - 2 => array( - 'type' => 'image', - 'link' => 'http://example.org', - 'src' => $this->template_image_url . '/map-v2.jpg', - 'alt' => 'Map', - 'fullWidth' => false, - 'width' => '636px', - 'height' => '342px', - 'styles' => array( - 'block' => array( - 'textAlign' => 'center', - ), - ), - ), - 3 => array( - 'type' => 'text', - 'text' => '

Watch out Broad Street, we\'re coming to you very soon!

-

-

Keep an eye on your inbox, as we\'ll have some special offers for our email subscribers plus an exclusive launch party invite!

', - ), - 4 => array( - 'type' => 'text', - 'text' => '

New and Improved Hours!

-

-

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:

-

- ', - ), - 5 => array( - 'type' => 'spacer', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'height' => '33px', - ), - ), - ), - ), - ), - ), - ), - 2 => array( - 'type' => 'container', - 'orientation' => 'horizontal', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'spacer', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'height' => '20px', - ), - ), - ), - 1 => array( - 'type' => 'footer', - 'text' => '

Unsubscribe | Manage subscription
12345 MailPoet Drive, EmailVille, 76543

', - 'styles' => array( - 'block' => array( - 'backgroundColor' => '#a9a7a7', - ), - 'text' => array( - 'fontColor' => '#000000', - 'fontFamily' => 'Arial', - 'fontSize' => '12px', - 'textAlign' => 'right', - ), - 'link' => array( - 'fontColor' => '#000000', - 'textDecoration' => 'underline', - ), - ), - ), - ), - ), - ), - ), - ), - ), - 'globalStyles' => array( - 'text' => array( - 'fontColor' => '#000000', - 'fontFamily' => 'Arial', - 'fontSize' => '14px', - ), - 'h1' => array( - 'fontColor' => '#604b4b', - 'fontFamily' => 'Lucida', - 'fontSize' => '30px', - ), - 'h2' => array( - 'fontColor' => '#5c4242', - 'fontFamily' => 'Lucida', - 'fontSize' => '22px', - ), - 'h3' => array( - 'fontColor' => '#333333', - 'fontFamily' => 'Lucida', - 'fontSize' => '20px', - ), - 'link' => array( - 'fontColor' => '#047da7', - 'textDecoration' => 'underline', - ), - 'wrapper' => array( - 'backgroundColor' => '#ffffff', - ), - 'body' => array( - 'backgroundColor' => '#ccc6c6', - ), - ), - ); - } - - private function getThumbnail() { - return $this->template_image_url . '/coffee-shop.jpg'; - } - -} \ No newline at end of file diff --git a/lib/Config/PopulatorData/Templates/Discount.php b/lib/Config/PopulatorData/Templates/Discount.php deleted file mode 100644 index fdb6860224..0000000000 --- a/lib/Config/PopulatorData/Templates/Discount.php +++ /dev/null @@ -1,467 +0,0 @@ -template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/discount'; - $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons'; - } - - function get() { - return array( - 'name' => __("Discount", 'mailpoet'), - 'categories' => json_encode(array('standard', 'sample')), - 'readonly' => 1, - 'thumbnail' => $this->getThumbnail(), - 'body' => json_encode($this->getBody()), - ); - } - - private function getBody() { - return array( - 'content' => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'container', - 'orientation' => 'horizontal', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'spacer', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'height' => '20px', - ), - ), - ), - 1 => array( - 'type' => 'image', - 'link' => 'http://example.org', - 'src' => $this->template_image_url . '/bicycle-header3.png', - 'alt' => 'bicycle-header3', - 'fullWidth' => false, - 'width' => '423px', - 'height' => '135px', - 'styles' => array( - 'block' => array( - 'textAlign' => 'center', - ), - ), - ), - 2 => array( - 'type' => 'text', - 'text' => '

-

Hi [subscriber:firstname | default:reader]

-

-

Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Donec ut venenatis ipsum. Etiam efficitur magna a convallis consectetur. Nunc dapibus cursus mauris vel sollicitudin. Etiam magna libero, posuere ac nulla nec, iaculis pulvinar arcu.

', - ), - 3 => array( - 'type' => 'spacer', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'height' => '20px', - ), - ), - ), - ), - ), - ), - ), - 1 => array( - 'type' => 'container', - 'orientation' => 'horizontal', - 'styles' => array( - 'block' => array( - 'backgroundColor' => '#ebdddd', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'divider', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'padding' => '16px', - 'borderStyle' => 'dashed', - 'borderWidth' => '2px', - 'borderColor' => '#9a5fa1', - ), - ), - ), - 1 => array( - 'type' => 'text', - 'text' => '

15% odio felis fringilla eget enim

', - ), - 2 => array( - 'type' => 'text', - 'text' => '

FUSCE LOBORTIS: WELOVEMAILPOET

', - ), - 3 => array( - 'type' => 'divider', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'padding' => '16px', - 'borderStyle' => 'dashed', - 'borderWidth' => '2px', - 'borderColor' => '#9a5fa1', - ), - ), - ), - ), - ), - ), - ), - 2 => array( - 'type' => 'container', - 'orientation' => 'horizontal', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'spacer', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'height' => '20px', - ), - ), - ), - 1 => array( - 'type' => 'button', - 'text' => 'SHOP NOW', - 'url' => 'http://example.org', - 'styles' => array( - 'block' => array( - 'backgroundColor' => '#9a5fa1', - 'borderColor' => '#854f8b', - 'borderWidth' => '3px', - 'borderRadius' => '5px', - 'borderStyle' => 'solid', - 'width' => '288px', - 'lineHeight' => '50px', - 'fontColor' => '#ffffff', - 'fontFamily' => 'Verdana', - 'fontSize' => '18px', - 'fontWeight' => 'normal', - 'textAlign' => 'center', - ), - ), - ), - 2 => array( - 'type' => 'text', - 'text' => '

Use your discount on these great products...

', - ), - 3 => array( - 'type' => 'spacer', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'height' => '20px', - ), - ), - ), - ), - ), - ), - ), - 3 => array( - 'type' => 'container', - 'orientation' => 'horizontal', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'image', - 'link' => 'http://example.org', - 'src' => $this->template_image_url . '/red-icycle-2.jpg', - 'alt' => 'red-icycle', - 'fullWidth' => false, - 'width' => '558px', - 'height' => '399px', - 'styles' => array( - 'block' => array( - 'textAlign' => 'center', - ), - ), - ), - 1 => array( - 'type' => 'text', - 'text' => '

Lovely Red Bicycle

-

Quisque nec vulputate velit, non sagittis ex. Suspendisse ligula urna, tempus sed iaculis sit amet, convallis at arcu.

-

$289.99

', - ), - 2 => array( - 'type' => 'button', - 'text' => 'Tempus', - 'url' => 'http://example.org', - 'styles' => array( - 'block' => array( - 'backgroundColor' => '#9a5fa1', - 'borderColor' => '#854f8b', - 'borderWidth' => '3px', - 'borderRadius' => '5px', - 'borderStyle' => 'solid', - 'width' => '180px', - 'lineHeight' => '40px', - 'fontColor' => '#ffffff', - 'fontFamily' => 'Verdana', - 'fontSize' => '18px', - 'fontWeight' => 'normal', - 'textAlign' => 'center', - ), - ), - ), - ), - ), - 1 => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'image', - 'link' => 'http://example.org', - 'src' => $this->template_image_url . '/orange-bicycle.jpg', - 'alt' => 'orange-bicycle', - 'fullWidth' => false, - 'width' => '639px', - 'height' => '457px', - 'styles' => array( - 'block' => array( - 'textAlign' => 'center', - ), - ), - ), - 1 => array( - 'type' => 'text', - 'text' => '

Little Orange Bicycle

-

Praesent molestie mollis sapien vel dignissim. Maecenas ultrices, odio eget dapibus iaculis, ligula ex aliquet leo.

-

$209.99

', - ), - 2 => array( - 'type' => 'button', - 'text' => 'Tempus', - 'url' => 'http://example.org', - 'styles' => array( - 'block' => array( - 'backgroundColor' => '#9a5fa1', - 'borderColor' => '#854f8b', - 'borderWidth' => '3px', - 'borderRadius' => '5px', - 'borderStyle' => 'solid', - 'width' => '180px', - 'lineHeight' => '40px', - 'fontColor' => '#ffffff', - 'fontFamily' => 'Verdana', - 'fontSize' => '18px', - 'fontWeight' => 'normal', - 'textAlign' => 'center', - ), - ), - ), - ), - ), - ), - ), - 4 => array( - 'type' => 'container', - 'orientation' => 'horizontal', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'spacer', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'height' => '22px', - ), - ), - ), - 1 => array( - 'type' => 'divider', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'padding' => '20px', - 'borderStyle' => 'solid', - 'borderWidth' => '1px', - 'borderColor' => '#9e9e9e', - ), - ), - ), - 2 => array( - 'type' => 'text', - 'text' => '

Diam et vestibulum facilisis:

- ', - ), - 3 => array( - 'type' => 'social', - 'iconSet' => 'grey', - 'icons' => array( - 0 => array( - 'type' => 'socialIcon', - 'iconType' => 'facebook', - 'link' => 'http://example.com', - 'image' => $this->social_icon_url . '/02-grey/Facebook.png', - 'height' => '32px', - 'width' => '32px', - 'text' => 'Facebook', - ), - 1 => array( - 'type' => 'socialIcon', - 'iconType' => 'twitter', - 'link' => 'http://example.com', - 'image' => $this->social_icon_url . '/02-grey/Twitter.png', - 'height' => '32px', - 'width' => '32px', - 'text' => 'Twitter', - ), - ), - ), - 4 => array( - 'type' => 'footer', - 'text' => '

Unsubscribe | Manage subscription

1 Store Street, Shopville, CA 1345

', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - 'text' => array( - 'fontColor' => '#343434', - 'fontFamily' => 'Verdana', - 'fontSize' => '12px', - 'textAlign' => 'center', - ), - 'link' => array( - 'fontColor' => '#488e88', - 'textDecoration' => 'none', - ), - ), - ), - ), - ), - ), - ), - ), - ), - 'globalStyles' => array( - 'text' => array( - 'fontColor' => '#343434', - 'fontFamily' => 'Verdana', - 'fontSize' => '14px', - ), - 'h1' => array( - 'fontColor' => '#488e88', - 'fontFamily' => 'Trebuchet MS', - 'fontSize' => '22px', - ), - 'h2' => array( - 'fontColor' => '#9a5fa1', - 'fontFamily' => 'Verdana', - 'fontSize' => '24px', - ), - 'h3' => array( - 'fontColor' => '#9a5fa1', - 'fontFamily' => 'Trebuchet MS', - 'fontSize' => '18px', - ), - 'link' => array( - 'fontColor' => '#488e88', - 'textDecoration' => 'underline', - ), - 'wrapper' => array( - 'backgroundColor' => '#afe3de', - ), - 'body' => array( - 'backgroundColor' => '#afe3de', - ), - ), - ); - } - - private function getThumbnail() { - return $this->template_image_url . '/discount.jpg'; - } - -} \ No newline at end of file diff --git a/lib/Config/PopulatorData/Templates/DogFood.php b/lib/Config/PopulatorData/Templates/DogFood.php new file mode 100644 index 0000000000..b633e300c3 --- /dev/null +++ b/lib/Config/PopulatorData/Templates/DogFood.php @@ -0,0 +1,1149 @@ +template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/dog-food'; + $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons'; + } + + function get() { + return array( + 'name' => __("Dog Food", 'mailpoet'), + 'categories' => json_encode(array('woocommerce', 'sample')), + 'readonly' => 1, + 'thumbnail' => $this->getThumbnail(), + 'body' => json_encode($this->getBody()), + ); + } + + private function getThumbnail() { + return $this->template_image_url . '/dog-food.jpg'; + } + + private function getBody() { + return array ( + 'content' => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 1 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Dog-Logo.png', + 'alt' => 'Dog-Logo', + 'fullWidth' => false, + 'width' => '42px', + 'height' => '91px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'left', + ), + ), + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '31px', + ), + ), + ), + 1 => + array ( + 'type' => 'social', + 'iconSet' => 'full-symbol-black', + 'icons' => + array ( + 0 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'facebook', + 'link' => 'http://www.facebook.com', + 'image' => $this->social_icon_url . '/07-full-symbol-black/Facebook.png?mailpoet_version=3.7.3', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Facebook', + ), + 1 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'twitter', + 'link' => 'http://www.twitter.com', + 'image' => $this->social_icon_url . '/07-full-symbol-black/Twitter.png?mailpoet_version=3.7.3', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Twitter', + ), + 2 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'instagram', + 'link' => 'http://instagram.com', + 'image' => $this->social_icon_url . '/07-full-symbol-black/Instagram.png?mailpoet_version=3.7.3', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Instagram', + ), + ), + ), + ), + ), + ), + ), + 2 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '25px', + ), + ), + ), + 1 => + array ( + 'type' => 'text', + 'text' => '

Thanks for buying your dog food from us

', + ), + ), + ), + ), + ), + 3 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#ffffff', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 1 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Dog-Header-1024x409.jpg', + 'alt' => 'Dog-Header', + 'fullWidth' => true, + 'width' => '1280px', + 'height' => '511px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + 2 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '50px', + ), + ), + ), + 3 => + array ( + 'type' => 'text', + 'text' => '

Here\'s some other pawsome things to try... 

', + ), + 4 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + 4 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Dog-Product-1.jpg', + 'alt' => 'Dog-Product-1', + 'fullWidth' => false, + 'width' => '500px', + 'height' => '500px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + 1 => + array ( + 'type' => 'text', + 'text' => '

Dog Jumper

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam a elementum ex.

+

+

$19.99

', + ), + 2 => + array ( + 'type' => 'button', + 'text' => 'Check it out', + 'url' => '', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#f6f6f6', + 'borderColor' => '#000000', + 'borderWidth' => '3px', + 'borderRadius' => '40px', + 'borderStyle' => 'solid', + 'width' => '113px', + 'lineHeight' => '28px', + 'fontColor' => '#000000', + 'fontFamily' => 'Arial', + 'fontSize' => '14px', + 'fontWeight' => 'bold', + 'textAlign' => 'left', + ), + ), + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Dog-Product-2.jpg', + 'alt' => 'Dog-Product-2', + 'fullWidth' => false, + 'width' => '500px', + 'height' => '500px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + 1 => + array ( + 'type' => 'text', + 'text' => '

Dog Socks

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam a elementum ex.

+

+

$19.99

', + ), + 2 => + array ( + 'type' => 'button', + 'text' => 'Check it out', + 'url' => '', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#f6f6f6', + 'borderColor' => '#000000', + 'borderWidth' => '3px', + 'borderRadius' => '40px', + 'borderStyle' => 'solid', + 'width' => '113px', + 'lineHeight' => '28px', + 'fontColor' => '#000000', + 'fontFamily' => 'Arial', + 'fontSize' => '14px', + 'fontWeight' => 'bold', + 'textAlign' => 'left', + ), + ), + ), + ), + ), + 2 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Dog-Product-3.jpg', + 'alt' => 'Dog-Product-3', + 'fullWidth' => false, + 'width' => '500px', + 'height' => '500px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + 1 => + array ( + 'type' => 'text', + 'text' => '

Glow Collar

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam a elementum ex.

+

+

$19.99

', + ), + 2 => + array ( + 'type' => 'button', + 'text' => 'Check it out', + 'url' => '', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#f6f6f6', + 'borderColor' => '#000000', + 'borderWidth' => '3px', + 'borderRadius' => '40px', + 'borderStyle' => 'solid', + 'width' => '113px', + 'lineHeight' => '28px', + 'fontColor' => '#000000', + 'fontFamily' => 'Arial', + 'fontSize' => '14px', + 'fontWeight' => 'bold', + 'textAlign' => 'left', + ), + ), + ), + ), + ), + ), + ), + 5 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#000000', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#ffffff', + 'height' => '45px', + ), + ), + ), + 1 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '35px', + ), + ), + ), + 2 => + array ( + 'type' => 'text', + 'text' => '

Our Guarantee

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam a elementum ex. Aliquam mollis metus ac nisl luctus pulvinar. Donec tincidunt pharetra sem, nec eleifend augue. Morbi id nunc commodo, tempor erat et, pretium neque. Vivamus ante sapien, consequat vitae ante quis, facilisis pellentesque mi. Praesent at scelerisque leo. Donec elementum mi consequat, ultrices lorem nec, vestibulum arcu. Aenean id libero vitae felis consequat maximus

+

', + ), + 3 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + 6 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#d4d4d4', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#d4d4d4', + 'height' => '20px', + ), + ), + ), + 1 => + array ( + 'type' => 'footer', + 'text' => '

Unsubscribe | Manage your subscription
Add your postal address here!

', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + 'text' => + array ( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '12px', + 'textAlign' => 'center', + ), + 'link' => + array ( + 'fontColor' => '#6cb7d4', + 'textDecoration' => 'none', + ), + ), + ), + ), + ), + ), + ), + ), + ), + 'globalStyles' => + array ( + 'text' => + array ( + 'fontColor' => '#000000', + 'fontFamily' => 'Arial', + 'fontSize' => '12px', + ), + 'h1' => + array ( + 'fontColor' => '#111111', + 'fontFamily' => 'Arial', + 'fontSize' => '40px', + ), + 'h2' => + array ( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '24px', + ), + 'h3' => + array ( + 'fontColor' => '#333333', + 'fontFamily' => 'Arial', + 'fontSize' => '18px', + ), + 'link' => + array ( + 'fontColor' => '#21759B', + 'textDecoration' => 'underline', + ), + 'wrapper' => + array ( + 'backgroundColor' => '#ffffff', + ), + 'body' => + array ( + 'backgroundColor' => '#d4d4d4', + ), + ), + 'blockDefaults' => + array ( + 'automatedLatestContent' => + array ( + 'amount' => '5', + 'contentType' => 'post', + 'inclusionType' => 'include', + 'displayType' => 'excerpt', + 'titleFormat' => 'h1', + 'titleAlignment' => 'left', + 'titleIsLink' => false, + 'imageFullWidth' => false, + 'featuredImagePosition' => 'belowTitle', + 'showAuthor' => 'no', + 'authorPrecededBy' => 'Author:', + 'showCategories' => 'no', + 'categoriesPrecededBy' => 'Categories:', + 'readMoreType' => 'button', + 'readMoreText' => 'Read more', + 'readMoreButton' => + array ( + 'text' => 'Read more', + 'url' => '[postLink]', + 'context' => 'automatedLatestContent.readMoreButton', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2ea1cd', + 'borderColor' => '#0074a2', + 'borderWidth' => '1px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + ), + 'sortBy' => 'newest', + 'showDivider' => true, + 'divider' => + array ( + 'context' => 'automatedLatestContent.divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '3px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 'backgroundColor' => '#ffffff', + 'backgroundColorAlternate' => '#eeeeee', + ), + 'automatedLatestContentLayout' => + array ( + 'amount' => '5', + 'withLayout' => true, + 'contentType' => 'post', + 'inclusionType' => 'include', + 'displayType' => 'excerpt', + 'titleFormat' => 'h1', + 'titleAlignment' => 'left', + 'titleIsLink' => false, + 'imageFullWidth' => false, + 'featuredImagePosition' => 'alternate', + 'showAuthor' => 'no', + 'authorPrecededBy' => 'Author:', + 'showCategories' => 'no', + 'categoriesPrecededBy' => 'Categories:', + 'readMoreType' => 'button', + 'readMoreText' => 'Read more', + 'readMoreButton' => + array ( + 'text' => 'Read more', + 'url' => '[postLink]', + 'context' => 'automatedLatestContentLayout.readMoreButton', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2ea1cd', + 'borderColor' => '#0074a2', + 'borderWidth' => '1px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + ), + 'sortBy' => 'newest', + 'showDivider' => true, + 'divider' => + array ( + 'context' => 'automatedLatestContentLayout.divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '3px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 'backgroundColor' => '#ffffff', + 'backgroundColorAlternate' => '#eeeeee', + ), + 'button' => + array ( + 'text' => 'Check it out', + 'url' => '', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#f6f6f6', + 'borderColor' => '#000000', + 'borderWidth' => '3px', + 'borderRadius' => '40px', + 'borderStyle' => 'solid', + 'width' => '113px', + 'lineHeight' => '28px', + 'fontColor' => '#000000', + 'fontFamily' => 'Arial', + 'fontSize' => '14px', + 'fontWeight' => 'bold', + 'textAlign' => 'left', + ), + ), + 'type' => 'button', + ), + 'divider' => + array ( + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '3px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 'footer' => + array ( + 'text' => '

Unsubscribe | Manage subscription
Add your postal address here!

', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + 'text' => + array ( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '12px', + 'textAlign' => 'center', + ), + 'link' => + array ( + 'fontColor' => '#6cb7d4', + 'textDecoration' => 'none', + ), + ), + 'type' => 'footer', + ), + 'posts' => + array ( + 'amount' => '10', + 'contentType' => 'post', + 'postStatus' => 'publish', + 'inclusionType' => 'include', + 'displayType' => 'excerpt', + 'titleFormat' => 'h1', + 'titleAlignment' => 'left', + 'titleIsLink' => false, + 'imageFullWidth' => false, + 'featuredImagePosition' => 'belowTitle', + 'showAuthor' => 'no', + 'authorPrecededBy' => 'Author:', + 'showCategories' => 'no', + 'categoriesPrecededBy' => 'Categories:', + 'readMoreType' => 'link', + 'readMoreText' => 'Read more', + 'readMoreButton' => + array ( + 'text' => 'Read more', + 'url' => '[postLink]', + 'context' => 'posts.readMoreButton', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2ea1cd', + 'borderColor' => '#0074a2', + 'borderWidth' => '1px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + ), + 'sortBy' => 'newest', + 'showDivider' => true, + 'divider' => + array ( + 'context' => 'posts.divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '3px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 'backgroundColor' => '#ffffff', + 'backgroundColorAlternate' => '#eeeeee', + ), + 'social' => + array ( + 'iconSet' => 'full-symbol-black', + 'icons' => + array ( + 0 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'facebook', + 'link' => 'http://www.facebook.com', + 'image' => $this->social_icon_url . '/07-full-symbol-black/Facebook.png?mailpoet_version=3.7.3', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Facebook', + ), + 1 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'twitter', + 'link' => 'http://www.twitter.com', + 'image' => $this->social_icon_url . '/07-full-symbol-black/Twitter.png?mailpoet_version=3.7.3', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Twitter', + ), + 2 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'instagram', + 'link' => 'http://instagram.com', + 'image' => $this->social_icon_url . '/07-full-symbol-black/Instagram.png?mailpoet_version=3.7.3', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Instagram', + ), + ), + 'type' => 'social', + ), + 'spacer' => + array ( + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#d4d4d4', + 'height' => '20px', + ), + ), + 'type' => 'spacer', + ), + 'header' => + array ( + 'text' => 'Display problems? Open this email in your web browser.', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + 'text' => + array ( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '12px', + 'textAlign' => 'center', + ), + 'link' => + array ( + 'fontColor' => '#6cb7d4', + 'textDecoration' => 'underline', + ), + ), + ), + ), + ); + } + +} diff --git a/lib/Config/PopulatorData/Templates/Drone.php b/lib/Config/PopulatorData/Templates/Drone.php new file mode 100644 index 0000000000..03f3840fbb --- /dev/null +++ b/lib/Config/PopulatorData/Templates/Drone.php @@ -0,0 +1,1192 @@ +template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/drone'; + $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons'; + } + + function get() { + return array( + 'name' => __("Drone", 'mailpoet'), + 'categories' => json_encode(array('standard', 'sample')), + 'readonly' => 1, + 'thumbnail' => $this->getThumbnail(), + 'body' => json_encode($this->getBody()), + ); + } + + private function getThumbnail() { + return $this->template_image_url . '/drone.jpg'; + } + + private function getBody() { + return array ( + 'content' => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#242424', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#070707', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Drone-Logo.png', + 'alt' => 'Drone-Logo', + 'fullWidth' => false, + 'width' => '138px', + 'height' => '228px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + 1 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 2 => + array ( + 'type' => 'text', + 'text' => '

TAKE TO THE SKIES

', + ), + 3 => + array ( + 'type' => 'text', + 'text' => '

The Frontier 7S is the world’s first

+

mind-controlled aerial drone

', + ), + 4 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Drone-Header.jpg', + 'alt' => 'Drone-Header', + 'fullWidth' => false, + 'width' => '470px', + 'height' => '462px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + ), + ), + ), + ), + 2 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '39px', + ), + ), + ), + 1 => + array ( + 'type' => 'text', + 'text' => '

Fly with your mind

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis pharetra diam semper, vulputate eros quis, sagittis ipsum. Vivamus ullamcorper sapien at sapien maximus, nec venenatis sapien tincidunt. Duis viverra imperdiet magna, a facilisis diam scelerisque at. Nunc at quam ligula. Nullam ut magna velit.

', + ), + 2 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + 3 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Drone-Image-1.jpg', + 'alt' => 'Drone-Image-1', + 'fullWidth' => true, + 'width' => '400px', + 'height' => '400px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '55px', + ), + ), + ), + 1 => + array ( + 'type' => 'text', + 'text' => '

Ready to travel to you

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis pharetra diam semper, vulputate eros quis, sagittis ipsum. Vivamus ullamcorper sapien at sapien maximus, nec venenatis sapien tincidunt.

', + ), + 2 => + array ( + 'type' => 'button', + 'text' => 'Find Out More', + 'url' => '', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#000000', + 'borderColor' => '#000000', + 'borderWidth' => '1px', + 'borderRadius' => '10px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Arial', + 'fontSize' => '18px', + 'fontWeight' => 'bold', + 'textAlign' => 'left', + ), + ), + ), + ), + ), + ), + ), + 4 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '25px', + ), + ), + ), + ), + ), + ), + ), + 5 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#080808', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '40px', + ), + ), + ), + 1 => + array ( + 'type' => 'text', + 'text' => '

Don\'t just take our word for it...

', + ), + 2 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Drone-Video.jpg', + 'alt' => 'Drone-Video', + 'fullWidth' => true, + 'width' => '1280px', + 'height' => '760px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + 3 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 4 => + array ( + 'type' => 'text', + 'text' => '

Check out our social media platforms and keep up-to-date with the latest news and events happening near you.

', + ), + 5 => + array ( + 'type' => 'social', + 'iconSet' => 'full-symbol-grey', + 'icons' => + array ( + 0 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'facebook', + 'link' => 'http://www.facebook.com', + 'image' => $this->social_icon_url . '/08-full-symbol-grey/Facebook.png', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Facebook', + ), + 1 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'twitter', + 'link' => 'http://www.twitter.com', + 'image' => $this->social_icon_url . '/08-full-symbol-grey/Twitter.png', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Twitter', + ), + 2 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'instagram', + 'link' => 'http://instagram.com', + 'image' => $this->social_icon_url . '/08-full-symbol-grey/Instagram.png', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Instagram', + ), + 3 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'youtube', + 'link' => 'http://www.youtube.com', + 'image' => $this->social_icon_url . '/08-full-symbol-grey/Youtube.png', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Youtube', + ), + ), + ), + 6 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '30px', + ), + ), + ), + ), + ), + ), + ), + 6 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#242424', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '40px', + ), + ), + ), + ), + ), + ), + ), + 7 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#242424', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Drone-Logo-Light-1.png', + 'alt' => 'Drone-Logo-Light', + 'fullWidth' => false, + 'width' => '120px', + 'height' => '72px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + ), + ), + 2 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + 8 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#242424', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'text', + 'text' => '

Address Line 1

+

Address Line 2

+

City

+

Country

', + ), + 1 => + array ( + 'type' => 'footer', + 'text' => '

Unsubscribe | Manage subscription

', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + 'text' => + array ( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '12px', + 'textAlign' => 'center', + ), + 'link' => + array ( + 'fontColor' => '#6cb7d4', + 'textDecoration' => 'none', + ), + ), + ), + ), + ), + ), + ), + ), + ), + 'globalStyles' => + array ( + 'text' => + array ( + 'fontColor' => '#000000', + 'fontFamily' => 'Arial', + 'fontSize' => '14px', + ), + 'h1' => + array ( + 'fontColor' => '#111111', + 'fontFamily' => 'Lucida', + 'fontSize' => '40px', + ), + 'h2' => + array ( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '24px', + ), + 'h3' => + array ( + 'fontColor' => '#333333', + 'fontFamily' => 'Verdana', + 'fontSize' => '16px', + ), + 'link' => + array ( + 'fontColor' => '#070707', + 'textDecoration' => 'underline', + ), + 'wrapper' => + array ( + 'backgroundColor' => '#ffffff', + ), + 'body' => + array ( + 'backgroundColor' => '#242424', + ), + ), + 'blockDefaults' => + array ( + 'automatedLatestContent' => + array ( + 'amount' => '5', + 'withLayout' => false, + 'contentType' => 'post', + 'inclusionType' => 'include', + 'displayType' => 'excerpt', + 'titleFormat' => 'h1', + 'titleAlignment' => 'left', + 'titleIsLink' => false, + 'imageFullWidth' => false, + 'featuredImagePosition' => 'belowTitle', + 'showAuthor' => 'no', + 'authorPrecededBy' => 'Author:', + 'showCategories' => 'no', + 'categoriesPrecededBy' => 'Categories:', + 'readMoreType' => 'button', + 'readMoreText' => 'Read more', + 'readMoreButton' => + array ( + 'text' => 'Read more', + 'url' => '[postLink]', + 'context' => 'automatedLatestContent.readMoreButton', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2ea1cd', + 'borderColor' => '#0074a2', + 'borderWidth' => '1px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + ), + 'sortBy' => 'newest', + 'showDivider' => true, + 'divider' => + array ( + 'context' => 'automatedLatestContent.divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '3px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 'backgroundColor' => '#ffffff', + 'backgroundColorAlternate' => '#eeeeee', + ), + 'automatedLatestContentLayout' => + array ( + 'amount' => '5', + 'withLayout' => true, + 'contentType' => 'post', + 'inclusionType' => 'include', + 'displayType' => 'excerpt', + 'titleFormat' => 'h1', + 'titleAlignment' => 'left', + 'titleIsLink' => false, + 'imageFullWidth' => false, + 'featuredImagePosition' => 'alternate', + 'showAuthor' => 'no', + 'authorPrecededBy' => 'Author:', + 'showCategories' => 'no', + 'categoriesPrecededBy' => 'Categories:', + 'readMoreType' => 'button', + 'readMoreText' => 'Read more', + 'readMoreButton' => + array ( + 'text' => 'Read more', + 'url' => '[postLink]', + 'context' => 'automatedLatestContentLayout.readMoreButton', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2ea1cd', + 'borderColor' => '#0074a2', + 'borderWidth' => '1px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + ), + 'sortBy' => 'newest', + 'showDivider' => true, + 'divider' => + array ( + 'context' => 'automatedLatestContentLayout.divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '3px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 'backgroundColor' => '#ffffff', + 'backgroundColorAlternate' => '#eeeeee', + ), + 'button' => + array ( + 'text' => 'Button', + 'url' => '', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2ea1cd', + 'borderColor' => '#0074a2', + 'borderWidth' => '1px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + ), + 'divider' => + array ( + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '3px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 'footer' => + array ( + 'text' => '

Unsubscribe | Manage subscription
Add your postal address here!

', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + 'text' => + array ( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '12px', + 'textAlign' => 'center', + ), + 'link' => + array ( + 'fontColor' => '#6cb7d4', + 'textDecoration' => 'none', + ), + ), + ), + 'posts' => + array ( + 'amount' => '10', + 'withLayout' => true, + 'contentType' => 'post', + 'postStatus' => 'publish', + 'inclusionType' => 'include', + 'displayType' => 'excerpt', + 'titleFormat' => 'h1', + 'titleAlignment' => 'left', + 'titleIsLink' => false, + 'imageFullWidth' => false, + 'featuredImagePosition' => 'alternate', + 'showAuthor' => 'no', + 'authorPrecededBy' => 'Author:', + 'showCategories' => 'no', + 'categoriesPrecededBy' => 'Categories:', + 'readMoreType' => 'link', + 'readMoreText' => 'Read more', + 'readMoreButton' => + array ( + 'text' => 'Read more', + 'url' => '[postLink]', + 'context' => 'posts.readMoreButton', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2ea1cd', + 'borderColor' => '#0074a2', + 'borderWidth' => '1px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + ), + 'sortBy' => 'newest', + 'showDivider' => true, + 'divider' => + array ( + 'context' => 'posts.divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '3px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 'backgroundColor' => '#ffffff', + 'backgroundColorAlternate' => '#eeeeee', + ), + 'social' => + array ( + 'iconSet' => 'default', + 'icons' => + array ( + 0 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'facebook', + 'link' => 'http://www.facebook.com', + 'image' => $this->social_icon_url . '/01-social/Facebook.png', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Facebook', + ), + 1 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'twitter', + 'link' => 'http://www.twitter.com', + 'image' => $this->social_icon_url . '/01-social/Twitter.png', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Twitter', + ), + ), + ), + 'spacer' => + array ( + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '39px', + ), + ), + 'type' => 'spacer', + ), + 'header' => + array ( + 'text' => 'Display problems? Open this email in your web browser.', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + 'text' => + array ( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '12px', + 'textAlign' => 'center', + ), + 'link' => + array ( + 'fontColor' => '#6cb7d4', + 'textDecoration' => 'underline', + ), + ), + ), + ), + ); + } + +} diff --git a/lib/Config/PopulatorData/Templates/FashionStore.php b/lib/Config/PopulatorData/Templates/FashionStore.php new file mode 100644 index 0000000000..251a7d43b4 --- /dev/null +++ b/lib/Config/PopulatorData/Templates/FashionStore.php @@ -0,0 +1,1425 @@ +template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/fashion'; + $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons'; + } + + function get() { + return array( + 'name' => __("Fashion Store", 'mailpoet'), + 'categories' => json_encode(array('standard', 'sample')), + 'readonly' => 1, + 'thumbnail' => $this->getThumbnail(), + 'body' => json_encode($this->getBody()), + ); + } + + private function getThumbnail() { + return $this->template_image_url . '/fashion.jpeg'; + } + + private function getBody() { + return + array( + 'content' => + array( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array( + 'block' => + array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array( + 0 => + array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array( + 'block' => + array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array( + 0 => + array( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array( + 'block' => + array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array( + 0 => + array( + 'type' => 'spacer', + 'styles' => + array( + 'block' => + array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 1 => + array( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/tulip-2.png', + 'alt' => 'tulip', + 'fullWidth' => false, + 'width' => '26.5px', + 'height' => '64px', + 'styles' => + array( + 'block' => + array( + 'textAlign' => 'left', + ), + ), + ), + 2 => + array( + 'type' => 'text', + 'text' => '

TULIP PARK

', + ), + ), + ), + 1 => + array( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array( + 'block' => + array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array( + 0 => + array( + 'type' => 'spacer', + 'styles' => + array( + 'block' => + array( + 'backgroundColor' => 'transparent', + 'height' => '85px', + ), + ), + ), + 1 => + array( + 'type' => 'text', + 'text' => '

Since 1987

', + ), + ), + ), + ), + ), + 1 => + array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array( + 'src' => $this->template_image_url . '/Fashion-Header.jpg', + 'display' => 'scale', + ), + 'styles' => + array( + 'block' => + array( + 'backgroundColor' => '#f8f8f8', + ), + ), + 'blocks' => + array( + 0 => + array( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array( + 'block' => + array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array( + 0 => + array( + 'type' => 'spacer', + 'styles' => + array( + 'block' => + array( + 'backgroundColor' => 'transparent', + 'height' => '486px', + ), + ), + ), + 1 => + array( + 'type' => 'text', + 'text' => '

Autumn/Winter

', + ), + ), + ), + ), + ), + 2 => + array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array( + 'block' => + array( + 'backgroundColor' => '#ffffff', + ), + ), + 'blocks' => + array( + 0 => + array( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array( + 'block' => + array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array( + 0 => + array( + 'type' => 'spacer', + 'styles' => + array( + 'block' => + array( + 'backgroundColor' => 'transparent', + 'height' => '40px', + ), + ), + ), + 1 => + array( + 'type' => 'text', + 'text' => '

The Autumn/Winter Range at Tulip Park

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. In elementum nunc vel est congue, a venenatis nunc aliquet. Curabitur luctus, nulla et dignissim elementum, ipsum eros fermentum nulla, non cursus eros mi eu velit. Nunc ex nibh, porta vulputate pharetra ac, placerat sed orci. Etiam enim enim, aliquet nec ligula in, ultrices iaculis dolor. Suspendisse potenti. Praesent fringilla augue ut lorem mattis, vitae fringilla nunc faucibus.

', + ), + 2 => + array( + 'type' => 'spacer', + 'styles' => + array( + 'block' => + array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + 3 => + array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array( + 'block' => + array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array( + 0 => + array( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array( + 'block' => + array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array( + 0 => + array( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Fashion-Items-1.jpg', + 'alt' => 'Fashion-Items-1', + 'fullWidth' => true, + 'width' => '364px', + 'height' => '291px', + 'styles' => + array( + 'block' => + array( + 'textAlign' => 'center', + ), + ), + ), + ), + ), + 1 => + array( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array( + 'block' => + array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array( + 0 => + array( + 'type' => 'spacer', + 'styles' => + array( + 'block' => + array( + 'backgroundColor' => 'transparent', + 'height' => '36px', + ), + ), + ), + 1 => + array( + 'type' => 'text', + 'text' => '

Title Goes Here

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. In elementum nunc vel est congue, a venenatis nunc aliquet. Curabitur luctus, nulla et dignissim elementum, ipsum eros fermentum nulla, non cursus eros mi eu velit. Nunc ex nibh, porta vulputate pharetra ac, placerat sed orci.

', + ), + ), + ), + ), + ), + 4 => + array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array( + 'block' => + array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array( + 0 => + array( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array( + 'block' => + array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array( + 0 => + array( + 'type' => 'spacer', + 'styles' => + array( + 'block' => + array( + 'backgroundColor' => 'transparent', + 'height' => '36px', + ), + ), + ), + 1 => + array( + 'type' => 'text', + 'text' => '

Title Goes Here

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. In elementum nunc vel est congue, a venenatis nunc aliquet. Curabitur luctus, nulla et dignissim elementum, ipsum eros fermentum nulla, non cursus eros mi eu velit. Nunc ex nibh, porta vulputate pharetra ac, placerat sed orci.

', + ), + ), + ), + 1 => + array( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array( + 'block' => + array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array( + 0 => + array( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Fashion-Items-2.jpg', + 'alt' => 'Fashion-Items-2', + 'fullWidth' => true, + 'width' => '364px', + 'height' => '291px', + 'styles' => + array( + 'block' => + array( + 'textAlign' => 'center', + ), + ), + ), + ), + ), + ), + ), + 5 => + array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array( + 'block' => + array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array( + 0 => + array( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array( + 'block' => + array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array( + 0 => + array( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Fashion-Items-3.jpg', + 'alt' => 'Fashion-Items-3', + 'fullWidth' => true, + 'width' => '364px', + 'height' => '291px', + 'styles' => + array( + 'block' => + array( + 'textAlign' => 'center', + ), + ), + ), + ), + ), + 1 => + array( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array( + 'block' => + array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array( + 0 => + array( + 'type' => 'spacer', + 'styles' => + array( + 'block' => + array( + 'backgroundColor' => 'transparent', + 'height' => '36px', + ), + ), + ), + 1 => + array( + 'type' => 'text', + 'text' => '

Title Goes Here

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. In elementum nunc vel est congue, a venenatis nunc aliquet. Curabitur luctus, nulla et dignissim elementum, ipsum eros fermentum nulla, non cursus eros mi eu velit. Nunc ex nibh, porta vulputate pharetra ac, placerat sed orci.

', + ), + ), + ), + ), + ), + 6 => + array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array( + 'block' => + array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array( + 0 => + array( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array( + 'block' => + array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array( + 0 => + array( + 'type' => 'spacer', + 'styles' => + array( + 'block' => + array( + 'backgroundColor' => 'transparent', + 'height' => '35px', + ), + ), + ), + 1 => + array( + 'type' => 'button', + 'text' => 'Check out the full range here', + 'url' => '', + 'styles' => + array( + 'block' => + array( + 'backgroundColor' => '#cdcdcd', + 'borderColor' => '#e4e4e4', + 'borderWidth' => '1px', + 'borderRadius' => '3px', + 'borderStyle' => 'solid', + 'width' => '288px', + 'lineHeight' => '40px', + 'fontColor' => '#000000', + 'fontFamily' => 'Arial', + 'fontSize' => '16px', + 'fontWeight' => 'bold', + 'textAlign' => 'center', + ), + ), + ), + 2 => + array( + 'type' => 'divider', + 'styles' => + array( + 'block' => + array( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '1px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 3 => + array( + 'type' => 'spacer', + 'styles' => + array( + 'block' => + array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + 7 => + array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array( + 'block' => + array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array( + 0 => + array( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array( + 'block' => + array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array( + 0 => + array( + 'type' => 'text', + 'text' => '

New in this week...

', + ), + ), + ), + ), + ), + 8 => + array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array( + 'block' => + array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array( + 0 => + array( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array( + 'block' => + array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array( + 0 => + array( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Fashion-Items-4.jpg', + 'alt' => 'Fashion-Items-4', + 'fullWidth' => true, + 'width' => '364px', + 'height' => '291px', + 'styles' => + array( + 'block' => + array( + 'textAlign' => 'center', + ), + ), + ), + ), + ), + 1 => + array( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array( + 'block' => + array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array( + 0 => + array( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Fashion-Items-5.jpg', + 'alt' => 'Fashion-Items-5', + 'fullWidth' => true, + 'width' => '364px', + 'height' => '291px', + 'styles' => + array( + 'block' => + array( + 'textAlign' => 'center', + ), + ), + ), + ), + ), + 2 => + array( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array( + 'block' => + array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array( + 0 => + array( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Fashion-Items-6.jpg', + 'alt' => 'Fashion-Items-6', + 'fullWidth' => true, + 'width' => '364px', + 'height' => '291px', + 'styles' => + array( + 'block' => + array( + 'textAlign' => 'center', + ), + ), + ), + ), + ), + ), + ), + 9 => + array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array( + 'block' => + array( + 'backgroundColor' => '#12223b', + ), + ), + 'blocks' => + array( + 0 => + array( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array( + 'block' => + array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array( + 0 => + array( + 'type' => 'spacer', + 'styles' => + array( + 'block' => + array( + 'backgroundColor' => '#f0f0f0', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + 10 => + array( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array( + 'block' => + array( + 'backgroundColor' => '#f0f0f0', + ), + ), + 'blocks' => + array( + 0 => + array( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array( + 'block' => + array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array( + 0 => + array( + 'type' => 'spacer', + 'styles' => + array( + 'block' => + array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 1 => + array( + 'type' => 'text', + 'text' => '

TULIP PARK

', + ), + ), + ), + 1 => + array( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array( + 'block' => + array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array( + 0 => + array( + 'type' => 'spacer', + 'styles' => + array( + 'block' => + array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 1 => + array( + 'type' => 'social', + 'iconSet' => 'full-symbol-black', + 'icons' => + array( + 0 => + array( + '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 => + array( + '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 => + array( + 'type' => 'socialIcon', + 'iconType' => 'instagram', + 'link' => 'http://instagram.com', + 'image' => $this->social_icon_url . '/07-full-symbol-black/Instagram.png', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Instagram', + ), + ), + ), + ), + ), + 2 => + array( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array( + 'block' => + array( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array( + 0 => + array( + 'type' => 'spacer', + 'styles' => + array( + 'block' => + array( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 1 => + array( + 'type' => 'text', + 'text' => '

Unsubscribe | Manage subscription
Add your postal address here!

', + ), + ), + ), + ), + ), + ), + ), + 'globalStyles' => + array( + 'text' => + array( + 'fontColor' => '#000000', + 'fontFamily' => 'Arial', + 'fontSize' => '14px', + ), + 'h1' => + array( + 'fontColor' => '#111111', + 'fontFamily' => 'Courier New', + 'fontSize' => '30px', + ), + 'h2' => + array( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '24px', + ), + 'h3' => + array( + 'fontColor' => '#333333', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + ), + 'link' => + array( + 'fontColor' => '#008282', + 'textDecoration' => 'underline', + ), + 'wrapper' => + array( + 'backgroundColor' => '#ffffff', + ), + 'body' => + array( + 'backgroundColor' => '#f0f0f0', + ), + ), + 'blockDefaults' => + array( + 'automatedLatestContent' => + array( + 'amount' => '5', + 'withLayout' => false, + 'contentType' => 'post', + 'inclusionType' => 'include', + 'displayType' => 'excerpt', + 'titleFormat' => 'h1', + 'titleAlignment' => 'left', + 'titleIsLink' => false, + 'imageFullWidth' => false, + 'featuredImagePosition' => 'belowTitle', + 'showAuthor' => 'no', + 'authorPrecededBy' => 'Author:', + 'showCategories' => 'no', + 'categoriesPrecededBy' => 'Categories:', + 'readMoreType' => 'button', + 'readMoreText' => 'Read more', + 'readMoreButton' => + array( + 'text' => 'Read more', + 'url' => '[postLink]', + 'context' => 'automatedLatestContent.readMoreButton', + 'styles' => + array( + 'block' => + array( + 'backgroundColor' => '#2ea1cd', + 'borderColor' => '#0074a2', + 'borderWidth' => '1px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + ), + 'sortBy' => 'newest', + 'showDivider' => true, + 'divider' => + array( + 'context' => 'automatedLatestContent.divider', + 'styles' => + array( + 'block' => + array( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '3px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 'backgroundColor' => '#ffffff', + 'backgroundColorAlternate' => '#eeeeee', + ), + 'automatedLatestContentLayout' => + array( + 'amount' => '5', + 'withLayout' => true, + 'contentType' => 'post', + 'inclusionType' => 'include', + 'displayType' => 'excerpt', + 'titleFormat' => 'h1', + 'titleAlignment' => 'left', + 'titleIsLink' => false, + 'imageFullWidth' => false, + 'featuredImagePosition' => 'alternate', + 'showAuthor' => 'no', + 'authorPrecededBy' => 'Author:', + 'showCategories' => 'no', + 'categoriesPrecededBy' => 'Categories:', + 'readMoreType' => 'button', + 'readMoreText' => 'Read more', + 'readMoreButton' => + array( + 'text' => 'Read more', + 'url' => '[postLink]', + 'context' => 'automatedLatestContentLayout.readMoreButton', + 'styles' => + array( + 'block' => + array( + 'backgroundColor' => '#2ea1cd', + 'borderColor' => '#0074a2', + 'borderWidth' => '1px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + ), + 'sortBy' => 'newest', + 'showDivider' => true, + 'divider' => + array( + 'context' => 'automatedLatestContentLayout.divider', + 'styles' => + array( + 'block' => + array( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '3px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 'backgroundColor' => '#ffffff', + 'backgroundColorAlternate' => '#eeeeee', + ), + 'button' => + array( + 'text' => 'Button', + 'url' => '', + 'styles' => + array( + 'block' => + array( + 'backgroundColor' => '#2ea1cd', + 'borderColor' => '#0074a2', + 'borderWidth' => '1px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + ), + 'divider' => + array( + 'styles' => + array( + 'block' => + array( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '3px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 'footer' => + array( + 'text' => '

Unsubscribe | Manage subscription
Add your postal address here!

', + 'styles' => + array( + 'block' => + array( + 'backgroundColor' => 'transparent', + ), + 'text' => + array( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '12px', + 'textAlign' => 'center', + ), + 'link' => + array( + 'fontColor' => '#6cb7d4', + 'textDecoration' => 'none', + ), + ), + ), + 'posts' => + array( + 'amount' => '10', + 'withLayout' => true, + 'contentType' => 'post', + 'postStatus' => 'publish', + 'inclusionType' => 'include', + 'displayType' => 'excerpt', + 'titleFormat' => 'h1', + 'titleAlignment' => 'left', + 'titleIsLink' => false, + 'imageFullWidth' => false, + 'featuredImagePosition' => 'alternate', + 'showAuthor' => 'no', + 'authorPrecededBy' => 'Author:', + 'showCategories' => 'no', + 'categoriesPrecededBy' => 'Categories:', + 'readMoreType' => 'link', + 'readMoreText' => 'Read more', + 'readMoreButton' => + array( + 'text' => 'Read more', + 'url' => '[postLink]', + 'context' => 'posts.readMoreButton', + 'styles' => + array( + 'block' => + array( + 'backgroundColor' => '#2ea1cd', + 'borderColor' => '#0074a2', + 'borderWidth' => '1px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + ), + 'sortBy' => 'newest', + 'showDivider' => true, + 'divider' => + array( + 'context' => 'posts.divider', + 'styles' => + array( + 'block' => + array( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '3px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 'backgroundColor' => '#ffffff', + 'backgroundColorAlternate' => '#eeeeee', + ), + 'social' => + array( + 'iconSet' => 'default', + 'icons' => + array( + 0 => + array( + 'type' => 'socialIcon', + 'iconType' => 'facebook', + 'link' => 'http://www.facebook.com', + 'image' => $this->social_icon_url . '/01-social/Facebook.png', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Facebook', + ), + 1 => + array( + 'type' => 'socialIcon', + 'iconType' => 'twitter', + 'link' => 'http://www.twitter.com', + 'image' => $this->social_icon_url . '/01-social/Twitter.png', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Twitter', + ), + ), + ), + 'spacer' => + array( + 'styles' => + array( + 'block' => + array( + 'backgroundColor' => 'transparent', + 'height' => '486px', + ), + ), + 'type' => 'spacer', + ), + 'header' => + array( + 'text' => 'Display problems? Open this email in your web browser.', + 'styles' => + array( + 'block' => + array( + 'backgroundColor' => 'transparent', + ), + 'text' => + array( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '12px', + 'textAlign' => 'center', + ), + 'link' => + array( + 'fontColor' => '#6cb7d4', + 'textDecoration' => 'underline', + ), + ), + ), + ), + ); + } + +} diff --git a/lib/Config/PopulatorData/Templates/Fitness.php b/lib/Config/PopulatorData/Templates/Fitness.php new file mode 100644 index 0000000000..e6b7e4a8dd --- /dev/null +++ b/lib/Config/PopulatorData/Templates/Fitness.php @@ -0,0 +1,1114 @@ +template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/fitness'; + $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons'; + } + + function get() { + return array( + 'name' => __("Fitness", 'mailpoet'), + 'categories' => json_encode(array('woocommerce', 'sample')), + 'readonly' => 1, + 'thumbnail' => $this->getThumbnail(), + 'body' => json_encode($this->getBody()), + ); + } + + private function getThumbnail() { + return $this->template_image_url . '/fitness.jpg'; + } + + private function getBody() { + return array ( + 'content' => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#e6e1e5', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Fitness-Logo-1.jpg', + 'alt' => 'Fitness-Logo-1', + 'fullWidth' => true, + 'width' => '180px', + 'height' => '96px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + ), + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#e6e1e5', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 1 => + array ( + 'type' => 'social', + 'iconSet' => 'full-symbol-color', + 'icons' => + array ( + 0 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'facebook', + 'link' => 'http://www.facebook.com', + 'image' => $this->social_icon_url . '/06-full-symbol-color/Facebook.png?mailpoet_version=3.0.0-rc.2.0.0', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Facebook', + ), + 1 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'twitter', + 'link' => 'http://www.twitter.com', + 'image' => $this->social_icon_url . '/06-full-symbol-color/Twitter.png?mailpoet_version=3.0.0-rc.2.0.0', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Twitter', + ), + 2 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'instagram', + 'link' => 'http://instagram.com', + 'image' => $this->social_icon_url . '/06-full-symbol-color/Instagram.png?mailpoet_version=3.0.0-rc.2.0.0', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Instagram', + ), + ), + ), + ), + ), + ), + ), + 2 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#e6e1e5', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'text', + 'text' => '

Get back in the game

', + ), + ), + ), + ), + ), + 3 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#ffffff', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Fitness-Header.jpg', + 'alt' => 'Fitness-Header', + 'fullWidth' => true, + 'width' => '1280px', + 'height' => '696px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + ), + ), + ), + ), + 4 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '40px', + ), + ), + ), + 1 => + array ( + 'type' => 'text', + 'text' => '

You\'ve left something in your cart...

', + ), + ), + ), + ), + ), + 5 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 1 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Fitness-Images.jpg', + 'alt' => 'Fitness-Images', + 'fullWidth' => false, + 'width' => '500px', + 'height' => '500px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '27px', + ), + ), + ), + 1 => + array ( + 'type' => 'text', + 'text' => '

Halo 600

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce in purus risus. Praesent lacinia suscipit maximus. Maecenas nec facilisis lectus.

+

+

Size: Medium

+

Colour: Lime Green

', + ), + 2 => + array ( + 'type' => 'button', + 'text' => 'Recover Cart', + 'url' => '', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#ffffff', + 'borderColor' => '#343434', + 'borderWidth' => '3px', + 'borderRadius' => '0px', + 'borderStyle' => 'solid', + 'width' => '146px', + 'lineHeight' => '37px', + 'fontColor' => '#343434', + 'fontFamily' => 'Arial', + 'fontSize' => '18px', + 'fontWeight' => 'bold', + 'textAlign' => 'left', + ), + ), + ), + ), + ), + ), + ), + 6 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + 7 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#afd147', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '30px', + ), + ), + ), + 1 => + array ( + 'type' => 'text', + 'text' => '

Still interested?

+

Here\'s 20% off your order if you complete it right now. We\'re nice like that.

', + ), + 2 => + array ( + 'type' => 'button', + 'text' => 'COUPONCODE', + 'url' => '', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#afd147', + 'borderColor' => '#56741d', + 'borderWidth' => '3px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '219px', + 'lineHeight' => '50px', + 'fontColor' => '#56741d', + 'fontFamily' => 'Courier New', + 'fontSize' => '26px', + 'fontWeight' => 'bold', + 'textAlign' => 'center', + ), + ), + ), + 3 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + 8 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#222222', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '40px', + ), + ), + ), + 1 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Fitness-Logo-Footer-1.png', + 'alt' => 'Fitness-Logo-Footer-1', + 'fullWidth' => false, + 'width' => '180px', + 'height' => '52px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + 2 => + array ( + 'type' => 'social', + 'iconSet' => 'grey', + 'icons' => + array ( + 0 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'facebook', + 'link' => 'http://www.facebook.com', + 'image' => $this->social_icon_url . '/02-grey/Facebook.png?mailpoet_version=3.0.0-rc.2.0.0', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Facebook', + ), + 1 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'twitter', + 'link' => 'http://www.twitter.com', + 'image' => $this->social_icon_url . '/02-grey/Twitter.png?mailpoet_version=3.0.0-rc.2.0.0', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Twitter', + ), + 2 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'instagram', + 'link' => 'http://instagram.com', + 'image' => $this->social_icon_url . '/02-grey/Instagram.png?mailpoet_version=3.0.0-rc.2.0.0', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Instagram', + ), + ), + ), + 3 => + array ( + 'type' => 'text', + 'text' => '

Address Line 1, Address Line 2, City, Country

+

Unsubscribe | Manage subscription

', + ), + 4 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '40px', + ), + ), + ), + ), + ), + ), + ), + ), + ), + 'globalStyles' => + array ( + 'text' => + array ( + 'fontColor' => '#4e4e4e', + 'fontFamily' => 'Arial', + 'fontSize' => '14px', + ), + 'h1' => + array ( + 'fontColor' => '#4e4e4e', + 'fontFamily' => 'Arial', + 'fontSize' => '40px', + ), + 'h2' => + array ( + 'fontColor' => '#4e4e4e', + 'fontFamily' => 'Arial', + 'fontSize' => '24px', + ), + 'h3' => + array ( + 'fontColor' => '#4e4e4e', + 'fontFamily' => 'Arial', + 'fontSize' => '22px', + ), + 'link' => + array ( + 'fontColor' => '#3c3c3c', + 'textDecoration' => 'underline', + ), + 'wrapper' => + array ( + 'backgroundColor' => '#ffffff', + ), + 'body' => + array ( + 'backgroundColor' => '#222222', + ), + ), + 'blockDefaults' => + array ( + 'automatedLatestContent' => + array ( + 'amount' => '5', + 'contentType' => 'post', + 'inclusionType' => 'include', + 'displayType' => 'excerpt', + 'titleFormat' => 'h1', + 'titleAlignment' => 'left', + 'titleIsLink' => false, + 'imageFullWidth' => false, + 'featuredImagePosition' => 'belowTitle', + 'showAuthor' => 'no', + 'authorPrecededBy' => 'Author:', + 'showCategories' => 'no', + 'categoriesPrecededBy' => 'Categories:', + 'readMoreType' => 'button', + 'readMoreText' => 'Read more', + 'readMoreButton' => + array ( + 'text' => 'Read more', + 'url' => '[postLink]', + 'context' => 'automatedLatestContent.readMoreButton', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2ea1cd', + 'borderColor' => '#0074a2', + 'borderWidth' => '1px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + ), + 'sortBy' => 'newest', + 'showDivider' => true, + 'divider' => + array ( + 'context' => 'automatedLatestContent.divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '3px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 'backgroundColor' => '#ffffff', + 'backgroundColorAlternate' => '#eeeeee', + ), + 'automatedLatestContentLayout' => + array ( + 'amount' => '5', + 'withLayout' => true, + 'contentType' => 'post', + 'inclusionType' => 'include', + 'displayType' => 'excerpt', + 'titleFormat' => 'h1', + 'titleAlignment' => 'left', + 'titleIsLink' => false, + 'imageFullWidth' => false, + 'featuredImagePosition' => 'alternate', + 'showAuthor' => 'no', + 'authorPrecededBy' => 'Author:', + 'showCategories' => 'no', + 'categoriesPrecededBy' => 'Categories:', + 'readMoreType' => 'button', + 'readMoreText' => 'Read more', + 'readMoreButton' => + array ( + 'text' => 'Read more', + 'url' => '[postLink]', + 'context' => 'automatedLatestContentLayout.readMoreButton', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2ea1cd', + 'borderColor' => '#0074a2', + 'borderWidth' => '1px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + ), + 'sortBy' => 'newest', + 'showDivider' => true, + 'divider' => + array ( + 'context' => 'automatedLatestContentLayout.divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '3px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 'backgroundColor' => '#ffffff', + 'backgroundColorAlternate' => '#eeeeee', + ), + 'button' => + array ( + 'text' => 'Button', + 'url' => '', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2ea1cd', + 'borderColor' => '#0074a2', + 'borderWidth' => '1px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + ), + 'divider' => + array ( + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '3px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 'footer' => + array ( + 'text' => '

Unsubscribe | Manage subscription
Add your postal address here!

', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + 'text' => + array ( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '12px', + 'textAlign' => 'center', + ), + 'link' => + array ( + 'fontColor' => '#6cb7d4', + 'textDecoration' => 'none', + ), + ), + ), + 'posts' => + array ( + 'amount' => '10', + 'contentType' => 'post', + 'postStatus' => 'publish', + 'inclusionType' => 'include', + 'displayType' => 'excerpt', + 'titleFormat' => 'h1', + 'titleAlignment' => 'left', + 'titleIsLink' => false, + 'imageFullWidth' => false, + 'featuredImagePosition' => 'belowTitle', + 'showAuthor' => 'no', + 'authorPrecededBy' => 'Author:', + 'showCategories' => 'no', + 'categoriesPrecededBy' => 'Categories:', + 'readMoreType' => 'link', + 'readMoreText' => 'Read more', + 'readMoreButton' => + array ( + 'text' => 'Read more', + 'url' => '[postLink]', + 'context' => 'posts.readMoreButton', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2ea1cd', + 'borderColor' => '#0074a2', + 'borderWidth' => '1px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + ), + 'sortBy' => 'newest', + 'showDivider' => true, + 'divider' => + array ( + 'context' => 'posts.divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '3px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 'backgroundColor' => '#ffffff', + 'backgroundColorAlternate' => '#eeeeee', + ), + 'social' => + array ( + 'iconSet' => 'default', + 'icons' => + array ( + 0 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'facebook', + 'link' => 'http://www.facebook.com', + 'image' => $this->social_icon_url . '/01-social/Facebook.png?mailpoet_version=3.7.1', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Facebook', + ), + 1 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'twitter', + 'link' => 'http://www.twitter.com', + 'image' => $this->social_icon_url . '/01-social/Twitter.png?mailpoet_version=3.7.1', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Twitter', + ), + ), + ), + 'spacer' => + array ( + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '40px', + ), + ), + ), + 'header' => + array ( + 'text' => 'Display problems? Open this email in your web browser.', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + 'text' => + array ( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '12px', + 'textAlign' => 'center', + ), + 'link' => + array ( + 'fontColor' => '#6cb7d4', + 'textDecoration' => 'underline', + ), + ), + ), + ), + ); + } + +} diff --git a/lib/Config/PopulatorData/Templates/GiftWelcome.php b/lib/Config/PopulatorData/Templates/GiftWelcome.php new file mode 100644 index 0000000000..7dc6290b42 --- /dev/null +++ b/lib/Config/PopulatorData/Templates/GiftWelcome.php @@ -0,0 +1,348 @@ +template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/gift'; + $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons'; + } + + function get() { + return array( + 'name' => __("Gift Welcome", 'mailpoet'), + 'categories' => json_encode(array('welcome', 'sample')), + 'readonly' => 1, + 'thumbnail' => $this->getThumbnail(), + 'body' => json_encode($this->getBody()), + ); + } + + private function getThumbnail() { + return $this->template_image_url . '/gift.jpg'; + } + + private function getBody() { + return array ( + 'content' => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#ffffff', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '40px', + ), + ), + ), + 1 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Gift-Header-1.jpg', + 'alt' => 'Gift-Header-1', + 'fullWidth' => true, + 'width' => '1280px', + 'height' => '920px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + ), + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#e7e7e7', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'text', + 'text' => '

We\'re so happy you\'re onboard!

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur nec nisi quis ex pulvinar molestie. Sed pulvinar placerat justo eu viverra. Pellentesque in interdum eros, a venenatis velit. Fusce finibus convallis augue, ut viverra felis placerat in.

+

+

Curabitur et commodo ipsum. Mauris tellus metus, tristique vel sollicitudin ut, malesuada in augue. Aliquam ultricies purus vel commodo vehicula.

', + ), + 1 => + array ( + 'type' => 'button', + 'text' => 'Get Started', + 'url' => '', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#dd2d2d', + 'borderColor' => '#0074a2', + 'borderWidth' => '0px', + 'borderRadius' => '40px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '50px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Arial', + 'fontSize' => '22px', + 'fontWeight' => 'bold', + 'textAlign' => 'center', + ), + ), + ), + 2 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Gift-Footer.jpg', + 'alt' => 'Gift-Footer', + 'fullWidth' => true, + 'width' => '1280px', + 'height' => '920px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + ), + ), + ), + ), + 2 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#ffffff', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '23px', + ), + ), + ), + 1 => + array ( + 'type' => 'text', + 'text' => '

Address Line 1

+

Address Line 2

+

City

+

Country

', + ), + 2 => + array ( + 'type' => 'divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '5.5px', + 'borderStyle' => 'solid', + 'borderWidth' => '1px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 3 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 4 => + array ( + 'type' => 'social', + 'iconSet' => 'grey', + 'icons' => + array ( + 0 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'facebook', + 'link' => 'http://www.facebook.com', + 'image' => $this->social_icon_url . '/02-grey/Facebook.png?mailpoet_version=3.0.0-rc.2.0.0', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Facebook', + ), + 1 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'twitter', + 'link' => 'http://www.twitter.com', + 'image' => $this->social_icon_url . '/02-grey/Twitter.png?mailpoet_version=3.0.0-rc.2.0.0', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Twitter', + ), + 2 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'instagram', + 'link' => 'http://instagram.com', + 'image' => $this->social_icon_url . '/02-grey/Instagram.png?mailpoet_version=3.0.0-rc.2.0.0', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Instagram', + ), + ), + ), + 5 => + array ( + 'type' => 'text', + 'text' => '

Unsubscribe | Manage your subscription

', + ), + ), + ), + ), + ), + ), + ), + 'globalStyles' => + array ( + 'text' => + array ( + 'fontColor' => '#000000', + 'fontFamily' => 'Arial', + 'fontSize' => '15px', + ), + 'h1' => + array ( + 'fontColor' => '#111111', + 'fontFamily' => 'Arial', + 'fontSize' => '30px', + ), + 'h2' => + array ( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '24px', + ), + 'h3' => + array ( + 'fontColor' => '#333333', + 'fontFamily' => 'Arial', + 'fontSize' => '22px', + ), + 'link' => + array ( + 'fontColor' => '#dd2d2d', + 'textDecoration' => 'underline', + ), + 'wrapper' => + array ( + 'backgroundColor' => '#ffffff', + ), + 'body' => + array ( + 'backgroundColor' => '#ffffff', + ), + ), + ); + } + + +} \ No newline at end of file diff --git a/lib/Config/PopulatorData/Templates/Hotels.php b/lib/Config/PopulatorData/Templates/Hotels.php new file mode 100644 index 0000000000..7c3cd41bce --- /dev/null +++ b/lib/Config/PopulatorData/Templates/Hotels.php @@ -0,0 +1,1414 @@ +template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/hotels'; + $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons'; + } + + function get() { + return array( + 'name' => __("Hotels", 'mailpoet'), + 'categories' => json_encode(array('standard', 'sample')), + 'readonly' => 1, + 'thumbnail' => $this->getThumbnail(), + 'body' => json_encode($this->getBody()), + ); + } + + private function getThumbnail() { + return $this->template_image_url . '/hotels.jpg'; + } + + private function getBody() { + return array ( + 'content' => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2d2a31', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Hotel-Logo-1.png', + 'alt' => 'Hotel-Logo', + 'fullWidth' => false, + 'width' => '554px', + 'height' => '200px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 1 => + array ( + 'type' => 'text', + 'text' => '

My Favourites

', + ), + ), + ), + 2 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 1 => + array ( + 'type' => 'text', + 'text' => '

Recent Bookings

', + ), + ), + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => $this->template_image_url . '/Hotel-Header.jpg', + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '30px', + ), + ), + ), + 1 => + array ( + 'type' => 'text', + 'text' => '

Pets go free

', + ), + 2 => + array ( + 'type' => 'text', + 'text' => '

Stay in any Exquisite hotel this summer and bring your pet for free!

', + ), + 3 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 4 => + array ( + 'type' => 'button', + 'text' => 'Find Out More', + 'url' => '', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#ffc600', + 'borderColor' => '#0074a2', + 'borderWidth' => '0px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '46px', + 'fontColor' => '#3f3f3f', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + 'fontWeight' => 'bold', + 'textAlign' => 'left', + ), + ), + ), + 5 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '30px', + ), + ), + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + array( + "type" => "spacer", + "styles" => array( + "block" => array( + "backgroundColor" => "transparent", + "height" => "20px", + ), + ), + ), + ), + ), + ), + ), + 2 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#ffffff', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '40px', + ), + ), + ), + 1 => + array ( + 'type' => 'text', + 'text' => '

Get ready to travel in Exquiste style...

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. In elementum nunc vel est congue, a venenatis nunc aliquet. Curabitur luctus, nulla et dignissim elementum, ipsum eros fermentum nulla, non cursus eros mi eu velit. Nunc ex nibh, porta vulputate pharetra ac, placerat sed orci. Etiam enim enim, aliquet nec ligula in, ultrices iaculis dolor. Suspendisse potenti. Praesent fringilla augue ut lorem mattis, vitae fringilla nunc faucibus.

', + ), + 2 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + 3 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => $this->template_image_url . '/dubai-paris.jpg', + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '181px', + ), + ), + ), + 1 => + array ( + 'type' => 'text', + 'text' => '

Dubai

+

From $199

', + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '181px', + ), + ), + ), + 1 => + array ( + 'type' => 'text', + 'text' => '

Paris

+

From $149

', + ), + ), + ), + ), + ), + 4 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => $this->template_image_url . '/toronto-delhi.jpg', + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '181px', + ), + ), + ), + 1 => + array ( + 'type' => 'text', + 'text' => '

Toronto

+

From $229

', + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '181px', + ), + ), + ), + 1 => + array ( + 'type' => 'text', + 'text' => '

New Delhi

+

From $149

', + ), + ), + ), + ), + ), + 5 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => $this->template_image_url . '/rio-london.jpg', + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '181px', + ), + ), + ), + 1 => + array ( + 'type' => 'text', + 'text' => '

Rio de Janeiro

+

From $329

', + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '181px', + ), + ), + ), + 1 => + array ( + 'type' => 'text', + 'text' => '

London

+

From $99

', + ), + ), + ), + ), + ), + 6 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#ffc600', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '35px', + ), + ), + ), + 1 => + array ( + 'type' => 'text', + 'text' => '

Just for you...

+

Here\'s 10% off your next booking with us.

+

Just grab the code below and paste it when required on the booking form!

', + ), + 2 => + array ( + 'type' => 'button', + 'text' => 'VALU3DCUST', + 'url' => '', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#ffc600', + 'borderColor' => '#000000', + 'borderWidth' => '2px', + 'borderRadius' => '6px', + 'borderStyle' => 'solid', + 'width' => '219px', + 'lineHeight' => '40px', + 'fontColor' => '#000000', + 'fontFamily' => 'Courier New', + 'fontSize' => '30px', + 'fontWeight' => 'bold', + 'textAlign' => 'center', + ), + ), + ), + 3 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '25px', + ), + ), + ), + ), + ), + ), + ), + 7 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2d2a31', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + 8 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2d2a31', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Hotel-Logo-Small.png', + 'alt' => 'Hotel-Logo-Small', + 'fullWidth' => true, + 'width' => '554px', + 'height' => '200px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + ), + ), + 2 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + 9 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2d2a31', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'text', + 'text' => '

Address Line 1

+

Address Line 2

+

City

+

Country

', + ), + 1 => + array ( + 'type' => 'social', + 'iconSet' => 'full-symbol-grey', + 'icons' => + array ( + 0 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'facebook', + 'link' => 'http://www.facebook.com', + 'image' => $this->social_icon_url . '/08-full-symbol-grey/Facebook.png', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Facebook', + ), + 1 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'twitter', + 'link' => 'http://www.twitter.com', + 'image' => $this->social_icon_url . '/08-full-symbol-grey/Twitter.png', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Twitter', + ), + 2 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'instagram', + 'link' => 'http://instagram.com', + 'image' => $this->social_icon_url . '/08-full-symbol-grey/Instagram.png', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Instagram', + ), + ), + ), + 2 => + array ( + 'type' => 'footer', + 'text' => '

Unsubscribe | Manage subscription
Add your postal address here!

', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + 'text' => + array ( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '12px', + 'textAlign' => 'center', + ), + 'link' => + array ( + 'fontColor' => '#6cb7d4', + 'textDecoration' => 'none', + ), + ), + ), + ), + ), + ), + ), + ), + ), + 'globalStyles' => + array ( + 'text' => + array ( + 'fontColor' => '#000000', + 'fontFamily' => 'Arial', + 'fontSize' => '14px', + ), + 'h1' => + array ( + 'fontColor' => '#333333', + 'fontFamily' => 'Tahoma', + 'fontSize' => '40px', + ), + 'h2' => + array ( + 'fontColor' => '#333333', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + ), + 'h3' => + array ( + 'fontColor' => '#2d2a31', + 'fontFamily' => 'Arial', + 'fontSize' => '18px', + ), + 'link' => + array ( + 'fontColor' => '#008282', + 'textDecoration' => 'underline', + ), + 'wrapper' => + array ( + 'backgroundColor' => '#ffffff', + ), + 'body' => + array ( + 'backgroundColor' => '#2d2a31', + ), + ), + 'blockDefaults' => + array ( + 'automatedLatestContent' => + array ( + 'amount' => '5', + 'withLayout' => false, + 'contentType' => 'post', + 'inclusionType' => 'include', + 'displayType' => 'excerpt', + 'titleFormat' => 'h1', + 'titleAlignment' => 'left', + 'titleIsLink' => false, + 'imageFullWidth' => false, + 'featuredImagePosition' => 'belowTitle', + 'showAuthor' => 'no', + 'authorPrecededBy' => 'Author:', + 'showCategories' => 'no', + 'categoriesPrecededBy' => 'Categories:', + 'readMoreType' => 'button', + 'readMoreText' => 'Read more', + 'readMoreButton' => + array ( + 'text' => 'Read more', + 'url' => '[postLink]', + 'context' => 'automatedLatestContent.readMoreButton', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2ea1cd', + 'borderColor' => '#0074a2', + 'borderWidth' => '1px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + ), + 'sortBy' => 'newest', + 'showDivider' => true, + 'divider' => + array ( + 'context' => 'automatedLatestContent.divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '3px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 'backgroundColor' => '#ffffff', + 'backgroundColorAlternate' => '#eeeeee', + ), + 'automatedLatestContentLayout' => + array ( + 'amount' => '5', + 'withLayout' => true, + 'contentType' => 'post', + 'inclusionType' => 'include', + 'displayType' => 'excerpt', + 'titleFormat' => 'h1', + 'titleAlignment' => 'left', + 'titleIsLink' => false, + 'imageFullWidth' => false, + 'featuredImagePosition' => 'alternate', + 'showAuthor' => 'no', + 'authorPrecededBy' => 'Author:', + 'showCategories' => 'no', + 'categoriesPrecededBy' => 'Categories:', + 'readMoreType' => 'button', + 'readMoreText' => 'Read more', + 'readMoreButton' => + array ( + 'text' => 'Read more', + 'url' => '[postLink]', + 'context' => 'automatedLatestContentLayout.readMoreButton', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2ea1cd', + 'borderColor' => '#0074a2', + 'borderWidth' => '1px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + ), + 'sortBy' => 'newest', + 'showDivider' => true, + 'divider' => + array ( + 'context' => 'automatedLatestContentLayout.divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '3px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 'backgroundColor' => '#ffffff', + 'backgroundColorAlternate' => '#eeeeee', + ), + 'button' => + array ( + 'text' => 'Find Out More', + 'url' => '', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#ffc600', + 'borderColor' => '#0074a2', + 'borderWidth' => '0px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '46px', + 'fontColor' => '#3f3f3f', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + 'fontWeight' => 'bold', + 'textAlign' => 'left', + ), + ), + 'type' => 'button', + ), + 'divider' => + array ( + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '3px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 'footer' => + array ( + 'text' => '

Unsubscribe | Manage subscription
Add your postal address here!

', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + 'text' => + array ( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '12px', + 'textAlign' => 'center', + ), + 'link' => + array ( + 'fontColor' => '#6cb7d4', + 'textDecoration' => 'none', + ), + ), + ), + 'posts' => + array ( + 'amount' => '10', + 'withLayout' => true, + 'contentType' => 'post', + 'postStatus' => 'publish', + 'inclusionType' => 'include', + 'displayType' => 'excerpt', + 'titleFormat' => 'h1', + 'titleAlignment' => 'left', + 'titleIsLink' => false, + 'imageFullWidth' => false, + 'featuredImagePosition' => 'alternate', + 'showAuthor' => 'no', + 'authorPrecededBy' => 'Author:', + 'showCategories' => 'no', + 'categoriesPrecededBy' => 'Categories:', + 'readMoreType' => 'link', + 'readMoreText' => 'Read more', + 'readMoreButton' => + array ( + 'text' => 'Read more', + 'url' => '[postLink]', + 'context' => 'posts.readMoreButton', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2ea1cd', + 'borderColor' => '#0074a2', + 'borderWidth' => '1px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + ), + 'sortBy' => 'newest', + 'showDivider' => true, + 'divider' => + array ( + 'context' => 'posts.divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '3px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 'backgroundColor' => '#ffffff', + 'backgroundColorAlternate' => '#eeeeee', + ), + 'social' => + array ( + 'iconSet' => 'default', + 'icons' => + array ( + 0 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'facebook', + 'link' => 'http://www.facebook.com', + 'image' => $this->social_icon_url . '/01-social/Facebook.png', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Facebook', + ), + 1 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'twitter', + 'link' => 'http://www.twitter.com', + 'image' => $this->social_icon_url . '/01-social/Twitter.png', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Twitter', + ), + ), + ), + 'spacer' => + array ( + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '181px', + ), + ), + 'type' => 'spacer', + ), + 'header' => + array ( + 'text' => 'Display problems? Open this email in your web browser.', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + 'text' => + array ( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '12px', + 'textAlign' => 'center', + ), + 'link' => + array ( + 'fontColor' => '#6cb7d4', + 'textDecoration' => 'underline', + ), + ), + 'type' => 'header', + ), + ), + ); + } + +} diff --git a/lib/Config/PopulatorData/Templates/KickOff.php b/lib/Config/PopulatorData/Templates/KickOff.php deleted file mode 100644 index 2c739722b2..0000000000 --- a/lib/Config/PopulatorData/Templates/KickOff.php +++ /dev/null @@ -1,721 +0,0 @@ -template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/kick_off'; - $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons'; - } - - function get() { - return array( - 'name' => __("Kick-Off", 'mailpoet'), - 'categories' => json_encode(array('standard', 'sample')), - 'readonly' => 1, - 'thumbnail' => $this->getThumbnail(), - 'body' => json_encode($this->getBody()), - ); - } - - private function getBody() { - return array( - 'content' => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'container', - 'orientation' => 'horizontal', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'image', - 'link' => '', - 'src' => $this->template_image_url . '/football-header.jpg', - 'alt' => 'football-header', - 'fullWidth' => true, - 'width' => '1320px', - 'height' => '540px', - 'styles' => array( - 'block' => array( - 'textAlign' => 'center', - ), - ), - ), - 1 => array( - 'type' => 'spacer', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'height' => '20px', - ), - ), - ), - 2 => array( - 'type' => 'text', - 'text' => '

ALL THE LATEST MATCH RESULTS & NEWS FROM THE SUNDAYS CLUB

', - ), - 3 => array( - 'type' => 'spacer', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'height' => '20px', - ), - ), - ), - ), - ), - ), - ), - 1 => array( - 'type' => 'container', - 'orientation' => 'horizontal', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'image', - 'link' => '', - 'src' => $this->template_image_url . '/football-player-1.jpeg', - 'alt' => 'football-player', - 'fullWidth' => false, - 'width' => '600px', - 'height' => '840px', - 'styles' => array( - 'block' => array( - 'textAlign' => 'center', - ), - ), - ), - 1 => array( - 'type' => 'text', - 'text' => '

Nam convallis lorem tellus, eget sodales magna semper quis.

', - ), - 2 => array( - 'type' => 'spacer', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'height' => '20px', - ), - ), - ), - ), - ), - 1 => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'text', - 'text' => '

North

-

Nottington 0-1 East Lettersley

-

Little Bickburgh 2-1 Rockingham

-

-

South

-

Richmond West 1-0 Offington

-

Shorleton 5-2 Garphingham

-

Westwood 1-3 Chesham

-

-

West

-

Millham 4-2 Dunn Village

-

Emmington 1-1 Finham

-

Little Forest 0-2 Winton

-

-

East

-

Southfield 2-1 Fincham

-

High Ridlington 0-1 Benham

-

Tinton 4-6 Dortington

', - ), - 1 => array( - 'type' => 'spacer', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'height' => '20px', - ), - ), - ), - ), - ), - ), - ), - 2 => array( - 'type' => 'container', - 'orientation' => 'horizontal', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'divider', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'padding' => '25px', - 'borderStyle' => 'ridge', - 'borderWidth' => '5px', - 'borderColor' => '#484747', - ), - ), - ), - 1 => array( - 'type' => 'text', - 'text' => '

MATCH REPORTS

', - ), - 2 => array( - 'type' => 'spacer', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'height' => '21px', - ), - ), - ), - ), - ), - ), - ), - 3 => array( - 'type' => 'container', - 'orientation' => 'horizontal', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'text', - 'text' => '

Branham United vs Finkley

-

Vestibulum consectetur, quam sed tristique feugiat, elit sapien molestie mi, eu dapibus eros sapien ut risus. Nullam non scelerisque ligula.

-

-

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.

', - ), - 1 => array( - 'type' => 'button', - 'text' => 'READ MORE', - 'url' => 'http://www.google.co.uk', - 'styles' => array( - 'block' => array( - 'backgroundColor' => '#61cc5a', - 'borderColor' => '#2f6a2c', - 'borderWidth' => '3px', - 'borderRadius' => '5px', - 'borderStyle' => 'solid', - 'width' => '180px', - 'lineHeight' => '40px', - 'fontColor' => '#252525', - 'fontFamily' => 'Lucida', - 'fontSize' => '14px', - 'fontWeight' => 'bold', - 'textAlign' => 'left', - ), - ), - ), - 2 => array( - 'type' => 'spacer', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'height' => '20px', - ), - ), - ), - ), - ), - 1 => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'text', - 'text' => '

Champton Albion vs Swanhall

-

Aenean a arcu egestas, tincidunt nisi ut, mollis arcu. Sed eget dapibus nisi. Quisque tortor mi, consequat ut erat et, porta imperdiet dui.

-

-

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.

', - ), - 1 => array( - 'type' => 'button', - 'text' => 'READ MORE', - 'url' => 'https://www.google.co.uk', - 'styles' => array( - 'block' => array( - 'backgroundColor' => '#61cc5a', - 'borderColor' => '#2f6a2c', - 'borderWidth' => '3px', - 'borderRadius' => '5px', - 'borderStyle' => 'solid', - 'width' => '180px', - 'lineHeight' => '40px', - 'fontColor' => '#252525', - 'fontFamily' => 'Lucida', - 'fontSize' => '14px', - 'fontWeight' => 'bold', - 'textAlign' => 'left', - ), - ), - ), - 2 => array( - 'type' => 'spacer', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'height' => '20px', - ), - ), - ), - ), - ), - ), - ), - 4 => array( - 'type' => 'container', - 'orientation' => 'horizontal', - 'styles' => array( - 'block' => array( - 'backgroundColor' => '#8aeb83', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'spacer', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'height' => '28px', - ), - ), - ), - 1 => array( - 'type' => 'text', - 'text' => '

FROM OUR ONLINE STORE

', - ), - ), - ), - ), - ), - 5 => array( - 'type' => 'container', - 'orientation' => 'horizontal', - 'styles' => array( - 'block' => array( - 'backgroundColor' => '#8aeb83', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'spacer', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'height' => '20px', - ), - ), - ), - 1 => array( - 'type' => 'image', - 'link' => '', - 'src' => $this->template_image_url . '/shoes.jpg', - 'alt' => 'shoes', - 'fullWidth' => false, - 'width' => '400px', - 'height' => '400px', - 'styles' => array( - 'block' => array( - 'textAlign' => 'center', - ), - ), - ), - 2 => array( - 'type' => 'text', - 'text' => '

Team Colours Laces

Donec imperdiet
Tortor tincidunt, luctus libero vel, dapibus quam

', - ), - 3 => array( - 'type' => 'button', - 'text' => 'SHOP', - 'url' => '', - 'styles' => array( - 'block' => array( - 'backgroundColor' => '#61cc5a', - 'borderColor' => '#2f6a2c', - 'borderWidth' => '3px', - 'borderRadius' => '5px', - 'borderStyle' => 'solid', - 'width' => '180px', - 'lineHeight' => '40px', - 'fontColor' => '#252525', - 'fontFamily' => 'Lucida', - 'fontSize' => '14px', - 'fontWeight' => 'bold', - 'textAlign' => 'left', - ), - ), - ), - 4 => array( - 'type' => 'spacer', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'height' => '20px', - ), - ), - ), - ), - ), - 1 => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'spacer', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'height' => '20px', - ), - ), - ), - 1 => array( - 'type' => 'image', - 'link' => '', - 'src' => $this->template_image_url . '/football.jpg', - 'alt' => 'football', - 'fullWidth' => false, - 'width' => '400px', - 'height' => '400px', - 'styles' => array( - 'block' => array( - 'textAlign' => 'center', - ), - ), - ), - 2 => array( - 'type' => 'text', - 'text' => '

Match Quality Balls

Donec vulputate tempor auctor purus sit amet cursus ultricies

', - ), - 3 => array( - 'type' => 'button', - 'text' => 'SHOP', - 'url' => '', - 'styles' => array( - 'block' => array( - 'backgroundColor' => '#61cc5a', - 'borderColor' => '#2f6a2c', - 'borderWidth' => '3px', - 'borderRadius' => '5px', - 'borderStyle' => 'solid', - 'width' => '180px', - 'lineHeight' => '40px', - 'fontColor' => '#252525', - 'fontFamily' => 'Lucida', - 'fontSize' => '14px', - 'fontWeight' => 'bold', - 'textAlign' => 'left', - ), - ), - ), - ), - ), - 2 => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'spacer', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'height' => '20px', - ), - ), - ), - 1 => array( - 'type' => 'image', - 'link' => '', - 'src' => $this->template_image_url . '/plant-pot.jpg', - 'alt' => 'plant-pot', - 'fullWidth' => false, - 'width' => '400px', - 'height' => '400px', - 'styles' => array( - 'block' => array( - 'textAlign' => 'center', - ), - ), - ), - 2 => array( - 'type' => 'text', - 'text' => '

Football Plant Pots

Libero tortor aliquet metus eget efficitur est lorem sit amet purus

', - ), - 3 => array( - 'type' => 'button', - 'text' => 'SHOP', - 'url' => '', - 'styles' => array( - 'block' => array( - 'backgroundColor' => '#61cc5a', - 'borderColor' => '#2f6a2c', - 'borderWidth' => '3px', - 'borderRadius' => '5px', - 'borderStyle' => 'solid', - 'width' => '180px', - 'lineHeight' => '40px', - 'fontColor' => '#252525', - 'fontFamily' => 'Lucida', - 'fontSize' => '14px', - 'fontWeight' => 'bold', - 'textAlign' => 'left', - ), - ), - ), - ), - ), - ), - ), - 6 => array( - 'type' => 'container', - 'orientation' => 'horizontal', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'spacer', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'height' => '40px', - ), - ), - ), - 1 => array( - 'type' => 'footer', - 'text' => 'Unsubscribe | Manage subscription
Add your postal address here!', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - 'text' => array( - 'fontColor' => '#ffffff', - 'fontFamily' => 'Lucida', - 'fontSize' => '12px', - 'textAlign' => 'center', - ), - 'link' => array( - 'fontColor' => '#ffffff', - 'textDecoration' => 'underline', - ), - ), - ), - 2 => array( - 'type' => 'spacer', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'height' => '23px', - ), - ), - ), - 3 => array( - 'type' => 'social', - 'iconSet' => 'full-symbol-grey', - 'icons' => array( - 0 => array( - 'type' => 'socialIcon', - 'iconType' => 'facebook', - 'link' => 'http://www.facebook.com', - 'image' => $this->social_icon_url . '/08-full-symbol-grey/Facebook.png', - 'height' => '32px', - 'width' => '32px', - 'text' => 'Facebook', - ), - 1 => array( - 'type' => 'socialIcon', - 'iconType' => 'twitter', - 'link' => 'http://www.twitter.com', - 'image' => $this->social_icon_url . '/08-full-symbol-grey/Twitter.png', - 'height' => '32px', - 'width' => '32px', - 'text' => 'Twitter', - ), - 2 => array( - 'type' => 'socialIcon', - 'iconType' => 'youtube', - 'link' => 'http://www.youtube.com', - 'image' => $this->social_icon_url . '/08-full-symbol-grey/Youtube.png', - 'height' => '32px', - 'width' => '32px', - 'text' => 'Youtube', - ), - 3 => array( - 'type' => 'socialIcon', - 'iconType' => 'email', - 'link' => '', - 'image' => $this->social_icon_url . '/08-full-symbol-grey/Email.png', - 'height' => '32px', - 'width' => '32px', - 'text' => 'Email', - ), - ), - ), - 4 => array( - 'type' => 'spacer', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'height' => '20px', - ), - ), - ), - ), - ), - ), - ), - ), - ), - 'globalStyles' => array( - 'text' => array( - 'fontColor' => '#ffffff', - 'fontFamily' => 'Georgia', - 'fontSize' => '16px', - ), - 'h1' => array( - 'fontColor' => '#ffffff', - 'fontFamily' => 'Lucida', - 'fontSize' => '24px', - ), - 'h2' => array( - 'fontColor' => '#61cc5a', - 'fontFamily' => 'Lucida', - 'fontSize' => '22px', - ), - 'h3' => array( - 'fontColor' => '#333333', - 'fontFamily' => 'Lucida', - 'fontSize' => '20px', - ), - 'link' => array( - 'fontColor' => '#21759B', - 'textDecoration' => 'underline', - ), - 'wrapper' => array( - 'backgroundColor' => '#252525', - ), - 'body' => array( - 'backgroundColor' => '#eaeaea', - ), - ), - ); - } - - private function getThumbnail() { - return $this->template_image_url . '/sports.jpg'; - } - -} \ No newline at end of file diff --git a/lib/Config/PopulatorData/Templates/KidsClothing.php b/lib/Config/PopulatorData/Templates/KidsClothing.php new file mode 100644 index 0000000000..10c35ef14f --- /dev/null +++ b/lib/Config/PopulatorData/Templates/KidsClothing.php @@ -0,0 +1,1693 @@ +template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/kids-clothing'; + $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons'; + } + + function get() { + return array( + 'name' => __("Kids Clothing", 'mailpoet'), + 'categories' => json_encode(array('woocommerce', 'sample')), + 'readonly' => 1, + 'thumbnail' => $this->getThumbnail(), + 'body' => json_encode($this->getBody()), + ); + } + + private function getThumbnail() { + return $this->template_image_url . '/kids-clothing.jpg'; + } + + private function getBody() { + return array ( + 'content' => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'display' => 'scale', + 'src' => NULL, + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'display' => 'scale', + 'src' => NULL, + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#c3e1e8', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'display' => 'scale', + 'src' => NULL, + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'display' => 'scale', + 'src' => NULL, + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#c3e1e8', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'display' => 'scale', + 'src' => NULL, + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '40px', + ), + ), + ), + 1 => + array ( + 'type' => 'social', + 'iconSet' => 'circles', + 'icons' => + array ( + 0 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'facebook', + 'link' => 'http://www.facebook.com', + 'image' => $this->social_icon_url . '/03-circles/Facebook.png?mailpoet_version=3.0.0-rc.2.0.0', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Facebook', + ), + 1 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'twitter', + 'link' => 'http://www.twitter.com', + 'image' => $this->social_icon_url . '/03-circles/Twitter.png?mailpoet_version=3.0.0-rc.2.0.0', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Twitter', + ), + ), + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'display' => 'scale', + 'src' => NULL, + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Kids-Clothing-Logo.png', + 'alt' => 'Kids-Clothing-Logo', + 'fullWidth' => true, + 'width' => '250px', + 'height' => '121px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + ), + ), + 2 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'display' => 'scale', + 'src' => NULL, + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '40px', + ), + ), + ), + 1 => + array ( + 'type' => 'social', + 'iconSet' => 'circles', + 'icons' => + array ( + 0 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'google-plus', + 'link' => 'http://plus.google.com', + 'image' => $this->social_icon_url . '/03-circles/Google-Plus.png?mailpoet_version=3.0.0-rc.2.0.0', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Google Plus', + ), + 1 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'instagram', + 'link' => 'http://instagram.com', + 'image' => $this->social_icon_url . '/03-circles/Instagram.png?mailpoet_version=3.0.0-rc.2.0.0', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Instagram', + ), + ), + ), + ), + ), + ), + ), + 2 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'display' => 'scale', + 'src' => NULL, + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#9bd2e0', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'display' => 'scale', + 'src' => NULL, + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + 3 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'display' => 'scale', + 'src' => NULL, + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#9bd2e0', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'display' => 'scale', + 'src' => NULL, + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'text', + 'text' => '

Boys Clothes

', + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'display' => 'scale', + 'src' => NULL, + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'text', + 'text' => '

Girls Clothes

', + ), + ), + ), + 2 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'display' => 'scale', + 'src' => NULL, + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'text', + 'text' => '

Toys & Games

', + ), + ), + ), + ), + ), + 4 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => $this->template_image_url . '/Kids-Clothing-Header.jpg', + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#9cd1e1', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '80px', + ), + ), + ), + 1 => + array ( + 'type' => 'text', + 'text' => '

Wait!

+

You\'ve left something in your cart!

', + ), + 2 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '100px', + ), + ), + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + array( + "type" => "spacer", + "styles" => array( + "block" => array( + "backgroundColor" => "transparent", + "height" => "20px", + ), + ), + ), + ), + ), + ), + ), + 5 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'display' => 'scale', + 'src' => NULL, + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#9bd2e0', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'display' => 'scale', + 'src' => NULL, + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'text', + 'text' => '

Don\'t worry, we saved it for you...

', + ), + ), + ), + ), + ), + 6 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'display' => 'scale', + 'src' => NULL, + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'display' => 'scale', + 'src' => NULL, + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '40px', + ), + ), + ), + ), + ), + ), + ), + 7 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'display' => 'scale', + 'src' => NULL, + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'display' => 'scale', + 'src' => NULL, + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Kids-Clothing-Image.jpg', + 'alt' => 'Kids-Clothing-Image', + 'fullWidth' => false, + 'width' => '500px', + 'height' => '500px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'display' => 'scale', + 'src' => NULL, + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '25px', + ), + ), + ), + 1 => + array ( + 'type' => 'text', + 'text' => '

Kids Dinosaur Suit

+

$14.99

+

', + ), + 2 => + array ( + 'type' => 'divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'borderColor' => '#aaaaaa', + 'borderStyle' => 'solid', + 'borderWidth' => '3px', + 'padding' => '0px', + ), + ), + ), + 3 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 4 => + array ( + 'type' => 'text', + 'text' => '

Size: Small

+

Colour: Varied

', + ), + ), + ), + 2 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'display' => 'scale', + 'src' => NULL, + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '28px', + ), + ), + ), + 1 => + array ( + 'type' => 'button', + 'text' => 'Go To Cart', + 'url' => '', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#9bd2e0', + 'borderColor' => '#0074a2', + 'borderRadius' => '40px', + 'borderStyle' => 'solid', + 'borderWidth' => '0px', + 'fontColor' => '#4e4e4e', + 'fontFamily' => 'Arial', + 'fontSize' => '18px', + 'fontWeight' => 'bold', + 'lineHeight' => '40px', + 'textAlign' => 'left', + 'width' => '154px', + ), + ), + ), + ), + ), + ), + ), + 8 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'display' => 'scale', + 'src' => NULL, + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'display' => 'scale', + 'src' => NULL, + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + 9 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'display' => 'scale', + 'src' => NULL, + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#fceba5', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'display' => 'scale', + 'src' => NULL, + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 1 => + array ( + 'type' => 'text', + 'text' => '

YOU MIGHT ALSO LIKE...

', + ), + ), + ), + ), + ), + 10 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'display' => 'scale', + 'src' => NULL, + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'display' => 'scale', + 'src' => NULL, + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '40px', + ), + ), + ), + ), + ), + ), + ), + 11 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'display' => 'scale', + 'src' => NULL, + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'display' => 'scale', + 'src' => NULL, + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Kids-Clothing-Image-3.jpg', + 'alt' => 'Kids-Clothing-Image-3', + 'fullWidth' => false, + 'width' => '500px', + 'height' => '500px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + 1 => + array ( + 'type' => 'text', + 'text' => '

Cherry Dress

+

$10.99

', + ), + 2 => + array ( + 'type' => 'button', + 'text' => 'View', + 'url' => '', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#9bd2e0', + 'borderColor' => '#0074a2', + 'borderRadius' => '40px', + 'borderStyle' => 'solid', + 'borderWidth' => '0px', + 'fontColor' => '#4e4e4e', + 'fontFamily' => 'Arial', + 'fontSize' => '18px', + 'fontWeight' => 'bold', + 'lineHeight' => '40px', + 'textAlign' => 'left', + 'width' => '90px', + ), + ), + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'display' => 'scale', + 'src' => NULL, + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Kids-Clothing-Image-2.jpg', + 'alt' => 'Kids-Clothing-Image-2', + 'fullWidth' => false, + 'width' => '500px', + 'height' => '500px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + 1 => + array ( + 'type' => 'text', + 'text' => '

Red T-Shirt

+

$9.49

', + ), + 2 => + array ( + 'type' => 'button', + 'text' => 'View', + 'url' => '', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#9bd2e0', + 'borderColor' => '#0074a2', + 'borderRadius' => '40px', + 'borderStyle' => 'solid', + 'borderWidth' => '0px', + 'fontColor' => '#4e4e4e', + 'fontFamily' => 'Arial', + 'fontSize' => '18px', + 'fontWeight' => 'bold', + 'lineHeight' => '40px', + 'textAlign' => 'left', + 'width' => '90px', + ), + ), + ), + ), + ), + 2 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'display' => 'scale', + 'src' => NULL, + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Kids-Clothing-Image-4.jpg', + 'alt' => 'Kids-Clothing-Image-4', + 'fullWidth' => false, + 'width' => '500px', + 'height' => '500px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + 1 => + array ( + 'type' => 'text', + 'text' => '

Pink Dance Dress

+

$11.99

', + ), + 2 => + array ( + 'type' => 'button', + 'text' => 'View', + 'url' => '', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#9bd2e0', + 'borderColor' => '#0074a2', + 'borderRadius' => '40px', + 'borderStyle' => 'solid', + 'borderWidth' => '0px', + 'fontColor' => '#4e4e4e', + 'fontFamily' => 'Arial', + 'fontSize' => '18px', + 'fontWeight' => 'bold', + 'lineHeight' => '40px', + 'textAlign' => 'left', + 'width' => '90px', + ), + ), + ), + ), + ), + ), + ), + 12 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'display' => 'scale', + 'src' => NULL, + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#f8f8f8', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'display' => 'scale', + 'src' => NULL, + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Kids-Clothing-Footer.jpg', + 'alt' => 'Kids-Clothing-Footer', + 'fullWidth' => true, + 'width' => '1280px', + 'height' => '107px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + ), + ), + ), + ), + 13 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'display' => 'scale', + 'src' => NULL, + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#c3e1e8', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'display' => 'scale', + 'src' => NULL, + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 1 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Kids-Clothing-Logo-Footer-150x61.png', + 'alt' => 'Kids-Clothing-Logo-Footer', + 'fullWidth' => false, + 'width' => '150px', + 'height' => '61px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + 2 => + array ( + 'type' => 'footer', + 'text' => '

Unsubscribe | Manage subscription
Add your postal address here!

', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + 'link' => + array ( + 'fontColor' => '#6cb7d4', + 'textDecoration' => 'none', + ), + 'text' => + array ( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '12px', + 'textAlign' => 'center', + ), + ), + ), + ), + ), + ), + ), + ), + ), + 'globalStyles' => + array ( + 'text' => + array ( + 'fontColor' => '#4e4e4e', + 'fontFamily' => 'Arial', + 'fontSize' => '16px', + ), + 'h1' => + array ( + 'fontColor' => '#4e4e4e', + 'fontFamily' => 'Arial', + 'fontSize' => '40px', + ), + 'h2' => + array ( + 'fontColor' => '#4e4e4e', + 'fontFamily' => 'Arial', + 'fontSize' => '24px', + ), + 'h3' => + array ( + 'fontColor' => '#4e4e4e', + 'fontFamily' => 'Arial', + 'fontSize' => '26px', + ), + 'link' => + array ( + 'fontColor' => '#9bd2e0', + 'textDecoration' => 'underline', + ), + 'wrapper' => + array ( + 'backgroundColor' => '#ffffff', + ), + 'body' => + array ( + 'backgroundColor' => '#c3e1e8', + ), + ), + 'blockDefaults' => + array ( + 'automatedLatestContent' => + array ( + 'amount' => '5', + 'authorPrecededBy' => 'Author:', + 'backgroundColor' => '#ffffff', + 'backgroundColorAlternate' => '#eeeeee', + 'categoriesPrecededBy' => 'Categories:', + 'contentType' => 'post', + 'displayType' => 'excerpt', + 'divider' => + array ( + 'context' => 'automatedLatestContent.divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'borderColor' => '#aaaaaa', + 'borderStyle' => 'solid', + 'borderWidth' => '3px', + 'padding' => '13px', + ), + ), + ), + 'featuredImagePosition' => 'belowTitle', + 'imageFullWidth' => false, + 'inclusionType' => 'include', + 'readMoreButton' => + array ( + 'context' => 'automatedLatestContent.readMoreButton', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2ea1cd', + 'borderColor' => '#0074a2', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'borderWidth' => '1px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + 'fontWeight' => 'normal', + 'lineHeight' => '40px', + 'textAlign' => 'center', + 'width' => '180px', + ), + ), + 'text' => 'Read more', + 'url' => '[postLink]', + ), + 'readMoreText' => 'Read more', + 'readMoreType' => 'button', + 'showAuthor' => 'no', + 'showCategories' => 'no', + 'showDivider' => true, + 'sortBy' => 'newest', + 'titleAlignment' => 'left', + 'titleFormat' => 'h1', + 'titleIsLink' => false, + ), + 'automatedLatestContentLayout' => + array ( + 'amount' => '5', + 'authorPrecededBy' => 'Author:', + 'backgroundColor' => '#ffffff', + 'backgroundColorAlternate' => '#eeeeee', + 'categoriesPrecededBy' => 'Categories:', + 'contentType' => 'post', + 'displayType' => 'excerpt', + 'divider' => + array ( + 'context' => 'automatedLatestContentLayout.divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'borderColor' => '#aaaaaa', + 'borderStyle' => 'solid', + 'borderWidth' => '3px', + 'padding' => '13px', + ), + ), + ), + 'featuredImagePosition' => 'alternate', + 'imageFullWidth' => false, + 'inclusionType' => 'include', + 'readMoreButton' => + array ( + 'context' => 'automatedLatestContentLayout.readMoreButton', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2ea1cd', + 'borderColor' => '#0074a2', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'borderWidth' => '1px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + 'fontWeight' => 'normal', + 'lineHeight' => '40px', + 'textAlign' => 'center', + 'width' => '180px', + ), + ), + 'text' => 'Read more', + 'url' => '[postLink]', + ), + 'readMoreText' => 'Read more', + 'readMoreType' => 'button', + 'showAuthor' => 'no', + 'showCategories' => 'no', + 'showDivider' => true, + 'sortBy' => 'newest', + 'titleAlignment' => 'left', + 'titleFormat' => 'h1', + 'titleIsLink' => false, + 'withLayout' => true, + ), + 'button' => + array ( + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2ea1cd', + 'borderColor' => '#0074a2', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'borderWidth' => '1px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + 'fontWeight' => 'normal', + 'lineHeight' => '40px', + 'textAlign' => 'center', + 'width' => '180px', + ), + ), + 'text' => 'Button', + 'url' => '', + ), + 'divider' => + array ( + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'borderColor' => '#aaaaaa', + 'borderStyle' => 'solid', + 'borderWidth' => '3px', + 'padding' => '13px', + ), + ), + ), + 'footer' => + array ( + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + 'link' => + array ( + 'fontColor' => '#6cb7d4', + 'textDecoration' => 'none', + ), + 'text' => + array ( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '12px', + 'textAlign' => 'center', + ), + ), + 'text' => '

Unsubscribe | Manage subscription
Add your postal address here!

', + ), + 'posts' => + array ( + 'amount' => '10', + 'authorPrecededBy' => 'Author:', + 'backgroundColor' => '#ffffff', + 'backgroundColorAlternate' => '#eeeeee', + 'categoriesPrecededBy' => 'Categories:', + 'contentType' => 'post', + 'displayType' => 'excerpt', + 'divider' => + array ( + 'context' => 'posts.divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'borderColor' => '#aaaaaa', + 'borderStyle' => 'solid', + 'borderWidth' => '3px', + 'padding' => '13px', + ), + ), + ), + 'featuredImagePosition' => 'belowTitle', + 'imageFullWidth' => false, + 'inclusionType' => 'include', + 'postStatus' => 'publish', + 'readMoreButton' => + array ( + 'context' => 'posts.readMoreButton', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2ea1cd', + 'borderColor' => '#0074a2', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'borderWidth' => '1px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + 'fontWeight' => 'normal', + 'lineHeight' => '40px', + 'textAlign' => 'center', + 'width' => '180px', + ), + ), + 'text' => 'Read more', + 'url' => '[postLink]', + ), + 'readMoreText' => 'Read more', + 'readMoreType' => 'link', + 'showAuthor' => 'no', + 'showCategories' => 'no', + 'showDivider' => true, + 'sortBy' => 'newest', + 'titleAlignment' => 'left', + 'titleFormat' => 'h1', + 'titleIsLink' => false, + ), + 'social' => + array ( + 'iconSet' => 'default', + 'icons' => + array ( + 0 => + array ( + 'height' => '32px', + 'iconType' => 'facebook', + 'image' => $this->social_icon_url . '/01-social/Facebook.png?mailpoet_version=3.7.1', + 'link' => 'http://www.facebook.com', + 'text' => 'Facebook', + 'type' => 'socialIcon', + 'width' => '32px', + ), + 1 => + array ( + 'height' => '32px', + 'iconType' => 'twitter', + 'image' => $this->social_icon_url . '/01-social/Twitter.png?mailpoet_version=3.7.1', + 'link' => 'http://www.twitter.com', + 'text' => 'Twitter', + 'type' => 'socialIcon', + 'width' => '32px', + ), + ), + ), + 'spacer' => + array ( + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '80px', + ), + ), + 'type' => 'spacer', + ), + 'header' => + array ( + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + 'link' => + array ( + 'fontColor' => '#6cb7d4', + 'textDecoration' => 'underline', + ), + 'text' => + array ( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '12px', + 'textAlign' => 'center', + ), + ), + 'text' => 'Display problems? Open this email in your web browser.', + ), + ), + ); + } + +} diff --git a/lib/Config/PopulatorData/Templates/Minimal.php b/lib/Config/PopulatorData/Templates/Minimal.php new file mode 100644 index 0000000000..69a856ad6e --- /dev/null +++ b/lib/Config/PopulatorData/Templates/Minimal.php @@ -0,0 +1,1217 @@ +template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/minimal'; + $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons'; + } + + function get() { + return array( + 'name' => __("Minimal", 'mailpoet'), + 'categories' => json_encode(array('welcome', 'sample')), + 'readonly' => 1, + 'thumbnail' => $this->getThumbnail(), + 'body' => json_encode($this->getBody()), + ); + } + + private function getThumbnail() { + return $this->template_image_url . '/minimal.jpg'; + } + + private function getBody() { + return array ( + 'content' => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '29px', + ), + ), + ), + ), + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#303c54', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '60px', + ), + ), + ), + 1 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Minimal-Logo1.png', + 'alt' => 'Minimal-Logo1', + 'fullWidth' => false, + 'width' => '590px', + 'height' => '93px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + 2 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '60px', + ), + ), + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '80px', + ), + ), + ), + 1 => + array ( + 'type' => 'text', + 'text' => '

EST.2009

', + ), + ), + ), + ), + ), + 2 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#ffffff', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '41px', + ), + ), + ), + 1 => + array ( + 'type' => 'text', + 'text' => '

Welcome to Minimal, Kim.

', + ), + 2 => + array ( + 'type' => 'text', + 'text' => '

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur nec nisi quis ex pulvinar molestie. Sed pulvinar placerat justo eu viverra. Pellentesque in interdum eros, a venenatis velit. Fusce finibus convallis augue, ut viverra felis placerat in. Curabitur et commodo ipsum. Mauris tellus metus, tristique vel sollicitudin ut, malesuada in augue. Aliquam ultricies purus vel commodo vehicula. Cras sollicitudin nunc facilisis neque tristique sagittis.

+

+

Maecenas iaculis, lacus malesuada dictum dapibus, justo justo molestie lorem, ac dapibus magna urna vel arcu. Aliquam erat volutpat. Sed bibendum, ipsum sed ullamcorper blandit, eros odio interdum nibh, non venenatis metus lacus vitae lectus.

', + ), + 3 => + array ( + 'type' => 'divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '30px', + 'borderStyle' => 'dotted', + 'borderWidth' => '2px', + 'borderColor' => '#d9d9d9', + ), + ), + ), + 4 => + array ( + 'type' => 'text', + 'text' => '

Some of our recent stories

', + ), + ), + ), + ), + ), + 3 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/plasma-stingray111-800x533.jpg', + 'alt' => 'plasma-stingray111-800x533', + 'fullWidth' => false, + 'width' => '800px', + 'height' => '533px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'text', + 'text' => '

Story Title Goes Here

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur nec nisi quis ex pulvinar molestie. Sed pulvinar placerat justo eu viverra.

+

+

Read More

', + ), + ), + ), + ), + ), + 4 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/gettyimages-578313682-800x533.jpg', + 'alt' => 'gettyimages-578313682-800x533', + 'fullWidth' => false, + 'width' => '800px', + 'height' => '533px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'text', + 'text' => '

Story Title Goes Here

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur nec nisi quis ex pulvinar molestie. Sed pulvinar placerat justo eu viverra.

+

+

Read More

', + ), + ), + ), + ), + ), + 5 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/5_what_to_do_p352m1141746-800x533.jpg', + 'alt' => '5_what_to_do_p352m1141746-800x533', + 'fullWidth' => false, + 'width' => '800px', + 'height' => '533px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'text', + 'text' => '

Story Title Goes Here

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur nec nisi quis ex pulvinar molestie. Sed pulvinar placerat justo eu viverra.

+

+

Read More

', + ), + ), + ), + ), + ), + 6 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '35px', + ), + ), + ), + ), + ), + ), + ), + 7 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#f3f3f3', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '47px', + ), + ), + ), + 1 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Minimal-Logo-Small.png', + 'alt' => 'Minimal-Logo-Small', + 'fullWidth' => false, + 'width' => '120px', + 'height' => '23px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '40px', + ), + ), + ), + 1 => + array ( + 'type' => 'social', + 'iconSet' => 'full-symbol-color', + 'icons' => + array ( + 0 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'facebook', + 'link' => 'http://www.facebook.com', + 'image' => $this->social_icon_url . '/06-full-symbol-color/Facebook.png?mailpoet_version=3.0.0-rc.2.0.0', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Facebook', + ), + 1 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'twitter', + 'link' => 'http://www.twitter.com', + 'image' => $this->social_icon_url . '/06-full-symbol-color/Twitter.png?mailpoet_version=3.0.0-rc.2.0.0', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Twitter', + ), + 2 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'instagram', + 'link' => 'http://instagram.com', + 'image' => $this->social_icon_url . '/06-full-symbol-color/Instagram.png?mailpoet_version=3.0.0-rc.2.0.0', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Instagram', + ), + ), + ), + ), + ), + 2 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 1 => + array ( + 'type' => 'footer', + 'text' => '

Unsubscribe

+

Manage subscription
Add your postal address here!

', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + 'text' => + array ( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '12px', + 'textAlign' => 'left', + ), + 'link' => + array ( + 'fontColor' => '#6cb7d4', + 'textDecoration' => 'none', + ), + ), + ), + ), + ), + ), + ), + 8 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#f3f3f3', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + ), + ), + 'globalStyles' => + array ( + 'text' => + array ( + 'fontColor' => '#000000', + 'fontFamily' => 'Georgia', + 'fontSize' => '15px', + ), + 'h1' => + array ( + 'fontColor' => '#111111', + 'fontFamily' => 'Georgia', + 'fontSize' => '30px', + ), + 'h2' => + array ( + 'fontColor' => '#222222', + 'fontFamily' => 'Georgia', + 'fontSize' => '24px', + ), + 'h3' => + array ( + 'fontColor' => '#333333', + 'fontFamily' => 'Georgia', + 'fontSize' => '22px', + ), + 'link' => + array ( + 'fontColor' => '#303c54', + 'textDecoration' => 'underline', + ), + 'wrapper' => + array ( + 'backgroundColor' => '#ffffff', + ), + 'body' => + array ( + 'backgroundColor' => '#ffffff', + ), + ), + 'blockDefaults' => + array ( + 'automatedLatestContent' => + array ( + 'amount' => '5', + 'withLayout' => false, + 'contentType' => 'post', + 'inclusionType' => 'include', + 'displayType' => 'excerpt', + 'titleFormat' => 'h1', + 'titleAlignment' => 'left', + 'titleIsLink' => false, + 'imageFullWidth' => false, + 'featuredImagePosition' => 'belowTitle', + 'showAuthor' => 'no', + 'authorPrecededBy' => 'Author:', + 'showCategories' => 'no', + 'categoriesPrecededBy' => 'Categories:', + 'readMoreType' => 'button', + 'readMoreText' => 'Read more', + 'readMoreButton' => + array ( + 'text' => 'Read more', + 'url' => '[postLink]', + 'context' => 'automatedLatestContent.readMoreButton', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2ea1cd', + 'borderColor' => '#0074a2', + 'borderWidth' => '1px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + ), + 'sortBy' => 'newest', + 'showDivider' => true, + 'divider' => + array ( + 'context' => 'automatedLatestContent.divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '3px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 'backgroundColor' => '#ffffff', + 'backgroundColorAlternate' => '#eeeeee', + ), + 'automatedLatestContentLayout' => + array ( + 'amount' => '5', + 'withLayout' => true, + 'contentType' => 'post', + 'inclusionType' => 'include', + 'displayType' => 'excerpt', + 'titleFormat' => 'h1', + 'titleAlignment' => 'left', + 'titleIsLink' => false, + 'imageFullWidth' => false, + 'featuredImagePosition' => 'alternate', + 'showAuthor' => 'no', + 'authorPrecededBy' => 'Author:', + 'showCategories' => 'no', + 'categoriesPrecededBy' => 'Categories:', + 'readMoreType' => 'button', + 'readMoreText' => 'Read more', + 'readMoreButton' => + array ( + 'text' => 'Read more', + 'url' => '[postLink]', + 'context' => 'automatedLatestContentLayout.readMoreButton', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2ea1cd', + 'borderColor' => '#0074a2', + 'borderWidth' => '1px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + ), + 'sortBy' => 'newest', + 'showDivider' => true, + 'divider' => + array ( + 'context' => 'automatedLatestContentLayout.divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '3px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 'backgroundColor' => '#ffffff', + 'backgroundColorAlternate' => '#eeeeee', + ), + 'button' => + array ( + 'text' => 'Button', + 'url' => '', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2ea1cd', + 'borderColor' => '#0074a2', + 'borderWidth' => '1px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + ), + 'divider' => + array ( + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '30px', + 'borderStyle' => 'dotted', + 'borderWidth' => '2px', + 'borderColor' => '#d9d9d9', + ), + ), + 'type' => 'divider', + ), + 'footer' => + array ( + 'text' => '

Unsubscribe | Manage subscription
Add your postal address here!

', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + 'text' => + array ( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '12px', + 'textAlign' => 'center', + ), + 'link' => + array ( + 'fontColor' => '#6cb7d4', + 'textDecoration' => 'none', + ), + ), + ), + 'posts' => + array ( + 'amount' => '10', + 'withLayout' => true, + 'contentType' => 'post', + 'postStatus' => 'publish', + 'inclusionType' => 'include', + 'displayType' => 'excerpt', + 'titleFormat' => 'h1', + 'titleAlignment' => 'left', + 'titleIsLink' => false, + 'imageFullWidth' => false, + 'featuredImagePosition' => 'alternate', + 'showAuthor' => 'no', + 'authorPrecededBy' => 'Author:', + 'showCategories' => 'no', + 'categoriesPrecededBy' => 'Categories:', + 'readMoreType' => 'link', + 'readMoreText' => 'Read more', + 'readMoreButton' => + array ( + 'text' => 'Read more', + 'url' => '[postLink]', + 'context' => 'posts.readMoreButton', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2ea1cd', + 'borderColor' => '#0074a2', + 'borderWidth' => '1px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + ), + 'sortBy' => 'newest', + 'showDivider' => true, + 'divider' => + array ( + 'context' => 'posts.divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '3px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 'backgroundColor' => '#ffffff', + 'backgroundColorAlternate' => '#eeeeee', + ), + 'social' => + array ( + 'iconSet' => 'default', + 'icons' => + array ( + 0 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'facebook', + 'link' => 'http://www.facebook.com', + 'image' => $this->social_icon_url . '/01-social/Facebook.png?mailpoet_version=3.8.1', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Facebook', + ), + 1 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'twitter', + 'link' => 'http://www.twitter.com', + 'image' => $this->social_icon_url . '/01-social/Twitter.png?mailpoet_version=3.8.1', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Twitter', + ), + ), + ), + 'spacer' => + array ( + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '29px', + ), + ), + 'type' => 'spacer', + ), + 'header' => + array ( + 'text' => 'Display problems? Open this email in your web browser.', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + 'text' => + array ( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '12px', + 'textAlign' => 'center', + ), + 'link' => + array ( + 'fontColor' => '#6cb7d4', + 'textDecoration' => 'underline', + ), + ), + ), + ), + ); + } + + +} diff --git a/lib/Config/PopulatorData/Templates/ModularStyleStories.php b/lib/Config/PopulatorData/Templates/ModularStyleStories.php new file mode 100644 index 0000000000..3192b78bed --- /dev/null +++ b/lib/Config/PopulatorData/Templates/ModularStyleStories.php @@ -0,0 +1,1416 @@ +template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/modular-style-stories'; + $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons'; + } + + function get() { + return array( + 'name' => __("Modular Style Stories", 'mailpoet'), + 'categories' => json_encode(array('notification', 'sample')), + 'readonly' => 1, + 'thumbnail' => $this->getThumbnail(), + 'body' => json_encode($this->getBody()), + ); + } + + private function getThumbnail() { + return $this->template_image_url . '/modular-style-stories.jpg'; + } + + private function getBody() { + return array ( + 'content' => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#efe7f0', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#efe7f0', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 1 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Modular-Logo.png', + 'alt' => 'Modular-Logo', + 'fullWidth' => false, + 'width' => '271px', + 'height' => '37px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '26px', + ), + ), + ), + 1 => + array ( + 'type' => 'social', + 'iconSet' => 'full-symbol-color', + 'icons' => + array ( + 0 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'facebook', + 'link' => 'http://www.facebook.com', + 'image' => $this->social_icon_url . '/06-full-symbol-color/Facebook.png?mailpoet_version=3.0.0-rc.2.0.0', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Facebook', + ), + 1 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'twitter', + 'link' => 'http://www.twitter.com', + 'image' => $this->social_icon_url . '/06-full-symbol-color/Twitter.png?mailpoet_version=3.0.0-rc.2.0.0', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Twitter', + ), + 2 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'instagram', + 'link' => 'http://instagram.com', + 'image' => $this->social_icon_url . '/06-full-symbol-color/Instagram.png?mailpoet_version=3.0.0-rc.2.0.0', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Instagram', + ), + 3 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'pinterest', + 'link' => 'http://www.pinterest.com', + 'image' => $this->social_icon_url . '/06-full-symbol-color/Pinterest.png?mailpoet_version=3.0.0-rc.2.0.0', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Pinterest', + ), + ), + ), + ), + ), + ), + ), + 2 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#b956c5', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#efe7f0', + 'height' => '20px', + ), + ), + ), + 1 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 2 => + array ( + 'type' => 'automatedLatestContent', + 'withLayout' => false, + 'amount' => '1', + 'contentType' => 'post', + 'terms' => + array ( + ), + 'inclusionType' => 'include', + 'displayType' => 'excerpt', + 'titleFormat' => 'h3', + 'titleAlignment' => 'left', + 'titleIsLink' => false, + 'imageFullWidth' => true, + 'featuredImagePosition' => 'aboveTitle', + 'showAuthor' => 'no', + 'authorPrecededBy' => 'Author:', + 'showCategories' => 'no', + 'categoriesPrecededBy' => 'Categories:', + 'readMoreType' => 'button', + 'readMoreText' => 'Read more', + 'readMoreButton' => + array ( + 'type' => 'button', + 'text' => 'Read more', + 'url' => '[postLink]', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#ffffff', + 'borderColor' => '#0074a2', + 'borderWidth' => '0px', + 'borderRadius' => '0px', + 'borderStyle' => 'solid', + 'width' => '116px', + 'lineHeight' => '40px', + 'fontColor' => '#b956c5', + 'fontFamily' => 'Arial', + 'fontSize' => '18px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + 'context' => 'automatedLatestContent.readMoreButton', + ), + 'sortBy' => 'newest', + 'showDivider' => true, + 'divider' => + array ( + 'type' => 'divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '3px', + 'borderColor' => '#aaaaaa', + ), + ), + 'context' => 'automatedLatestContent.divider', + ), + 'backgroundColor' => '#ffffff', + 'backgroundColorAlternate' => '#eeeeee', + ), + ), + ), + ), + ), + 3 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '40px', + ), + ), + ), + ), + ), + ), + ), + 4 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#b956c5', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'image', + 'link' => 'http://mailpoet.info/ladybirds-transparent-shell-reveals-how-it-folds-its-wings/', + 'src' => $this->template_image_url . '/gettyimages-578313682-800x533.jpg', + 'alt' => 'Ladybird’s transparent shell reveals how it folds its wings', + 'fullWidth' => false, + 'width' => 660, + 'height' => 440, + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + 1 => + array ( + 'type' => 'text', + 'text' => '

Ladybird’s transparent shell reveals how it folds its wings

+

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.

', + ), + 2 => + array ( + 'type' => 'button', + 'text' => 'Read More', + 'url' => 'http://mailpoet.info/ladybirds-transparent-shell-reveals-how-it-folds-its-wings/', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#b956c5', + 'borderColor' => '#000000', + 'borderWidth' => '0px', + 'borderRadius' => '0px', + 'borderStyle' => 'solid', + 'width' => '103px', + 'lineHeight' => '34px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Arial', + 'fontSize' => '16px', + 'fontWeight' => 'normal', + 'textAlign' => 'left', + ), + ), + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'image', + 'link' => 'http://mailpoet.info/plasma-jet-engines-that-could-take-you-from-the-ground-to-space/', + 'src' => $this->template_image_url . '/plasma-stingray111-800x533.jpg', + 'alt' => 'Plasma jet engines that could take you from the ground to space', + 'fullWidth' => false, + 'width' => 660, + 'height' => 440, + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + 1 => + array ( + 'type' => 'text', + 'text' => '

Plasma jet engines that could take you from ground to space

+

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.

', + ), + 2 => + array ( + 'type' => 'button', + 'text' => 'Read More', + 'url' => 'http://mailpoet.info/plasma-jet-engines-that-could-take-you-from-the-ground-to-space/', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#b956c5', + 'borderColor' => '#000000', + 'borderWidth' => '0px', + 'borderRadius' => '0px', + 'borderStyle' => 'solid', + 'width' => '103px', + 'lineHeight' => '34px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Arial', + 'fontSize' => '16px', + 'fontWeight' => 'normal', + 'textAlign' => 'left', + ), + ), + ), + ), + ), + ), + ), + 5 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '30px', + ), + ), + ), + ), + ), + ), + ), + 6 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'image', + 'link' => 'http://mailpoet.info/cutting-through-the-smog-what-to-do-to-fight-air-pollution/', + 'src' => $this->template_image_url . '/5_what_to_do_p352m1141746-800x533.jpg', + 'alt' => 'Cutting through the smog: What to do to fight air pollution', + 'fullWidth' => false, + 'width' => 660, + 'height' => 440, + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + 1 => + array ( + 'type' => 'text', + 'text' => '

Cutting through the smog: What to do to fight air pollution

', + ), + 2 => + array ( + 'type' => 'button', + 'text' => 'Read More', + 'url' => 'http://mailpoet.info/cutting-through-the-smog-what-to-do-to-fight-air-pollution/', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#b956c5', + 'borderColor' => '#000000', + 'borderWidth' => '0px', + 'borderRadius' => '0px', + 'borderStyle' => 'solid', + 'width' => '103px', + 'lineHeight' => '34px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Arial', + 'fontSize' => '16px', + 'fontWeight' => 'normal', + 'textAlign' => 'left', + ), + ), + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'image', + 'link' => 'http://mailpoet.info/ladybirds-transparent-shell-reveals-how-it-folds-its-wings/', + 'src' => $this->template_image_url . '/gettyimages-578313682-800x533.jpg', + 'alt' => 'Ladybird’s transparent shell reveals how it folds its wings', + 'fullWidth' => false, + 'width' => 660, + 'height' => 440, + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + 1 => + array ( + 'type' => 'text', + 'text' => '

Ladybird’s transparent shell reveals how it folds its wings

', + ), + 2 => + array ( + 'type' => 'button', + 'text' => 'Read More', + 'url' => 'http://mailpoet.info/ladybirds-transparent-shell-reveals-how-it-folds-its-wings/', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#b956c5', + 'borderColor' => '#000000', + 'borderWidth' => '0px', + 'borderRadius' => '0px', + 'borderStyle' => 'solid', + 'width' => '103px', + 'lineHeight' => '34px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Arial', + 'fontSize' => '16px', + 'fontWeight' => 'normal', + 'textAlign' => 'left', + ), + ), + ), + ), + ), + 2 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'image', + 'link' => 'http://mailpoet.info/plasma-jet-engines-that-could-take-you-from-the-ground-to-space/', + 'src' => $this->template_image_url . '/plasma-stingray111-800x533.jpg', + 'alt' => 'Plasma jet engines that could take you from the ground to space', + 'fullWidth' => false, + 'width' => 660, + 'height' => 440, + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + 1 => + array ( + 'type' => 'text', + 'text' => '

Plasma jet engines that could take you from the ground to space

', + ), + 2 => + array ( + 'type' => 'button', + 'text' => 'Read More', + 'url' => 'http://mailpoet.info/plasma-jet-engines-that-could-take-you-from-the-ground-to-space/', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#b956c5', + 'borderColor' => '#000000', + 'borderWidth' => '0px', + 'borderRadius' => '0px', + 'borderStyle' => 'solid', + 'width' => '103px', + 'lineHeight' => '34px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Arial', + 'fontSize' => '16px', + 'fontWeight' => 'normal', + 'textAlign' => 'left', + ), + ), + ), + ), + ), + ), + ), + 7 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '40px', + ), + ), + ), + ), + ), + ), + ), + 8 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#b956c5', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '21px', + ), + ), + ), + 1 => + array ( + 'type' => 'social', + 'iconSet' => 'full-symbol-grey', + 'icons' => + array ( + 0 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'facebook', + 'link' => 'http://www.facebook.com', + 'image' => $this->social_icon_url . '/08-full-symbol-grey/Facebook.png?mailpoet_version=3.0.0-rc.2.0.0', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Facebook', + ), + 1 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'twitter', + 'link' => 'http://www.twitter.com', + 'image' => $this->social_icon_url . '/08-full-symbol-grey/Twitter.png?mailpoet_version=3.0.0-rc.2.0.0', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Twitter', + ), + 2 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'website', + 'link' => '', + 'image' => $this->social_icon_url . '/08-full-symbol-grey/Website.png?mailpoet_version=3.0.0-rc.2.0.0', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Website', + ), + 3 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'instagram', + 'link' => 'http://instagram.com', + 'image' => $this->social_icon_url . '/08-full-symbol-grey/Instagram.png?mailpoet_version=3.0.0-rc.2.0.0', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Instagram', + ), + ), + ), + 2 => + array ( + 'type' => 'footer', + 'text' => '

Unsubscribe | Manage subscription
Add your postal address here!

', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + 'text' => + array ( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '12px', + 'textAlign' => 'center', + ), + 'link' => + array ( + 'fontColor' => '#6cb7d4', + 'textDecoration' => 'none', + ), + ), + ), + 3 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + ), + ), + 'globalStyles' => + array ( + 'text' => + array ( + 'fontColor' => '#ffffff', + 'fontFamily' => 'Arial', + 'fontSize' => '14px', + ), + 'h1' => + array ( + 'fontColor' => '#111111', + 'fontFamily' => 'Arial', + 'fontSize' => '26px', + ), + 'h2' => + array ( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '22px', + ), + 'h3' => + array ( + 'fontColor' => '#ffffff', + 'fontFamily' => 'Arial', + 'fontSize' => '20px', + ), + 'link' => + array ( + 'fontColor' => '#ffffff', + 'textDecoration' => 'underline', + ), + 'wrapper' => + array ( + 'backgroundColor' => '#efe7f0', + ), + 'body' => + array ( + 'backgroundColor' => '#efe7f0', + ), + ), + 'blockDefaults' => + array ( + 'automatedLatestContent' => + array ( + 'amount' => '1', + 'contentType' => 'post', + 'inclusionType' => 'include', + 'displayType' => 'excerpt', + 'titleFormat' => 'h3', + 'titleAlignment' => 'left', + 'titleIsLink' => false, + 'imageFullWidth' => true, + 'featuredImagePosition' => 'aboveTitle', + 'showAuthor' => 'no', + 'authorPrecededBy' => 'Author:', + 'showCategories' => 'no', + 'categoriesPrecededBy' => 'Categories:', + 'readMoreType' => 'button', + 'readMoreText' => 'Read more', + 'readMoreButton' => + array ( + 'text' => 'Read more', + 'url' => '[postLink]', + 'context' => 'automatedLatestContent.readMoreButton', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#ffffff', + 'borderColor' => '#0074a2', + 'borderWidth' => '0px', + 'borderRadius' => '0px', + 'borderStyle' => 'solid', + 'width' => '116px', + 'lineHeight' => '40px', + 'fontColor' => '#b956c5', + 'fontFamily' => 'Arial', + 'fontSize' => '18px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + 'type' => 'button', + ), + 'sortBy' => 'newest', + 'showDivider' => true, + 'divider' => + array ( + 'context' => 'automatedLatestContent.divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '3px', + 'borderColor' => '#aaaaaa', + ), + ), + 'type' => 'divider', + ), + 'backgroundColor' => '#ffffff', + 'backgroundColorAlternate' => '#eeeeee', + 'type' => 'automatedLatestContent', + 'terms' => + array ( + ), + ), + 'automatedLatestContentLayout' => + array ( + 'amount' => '5', + 'withLayout' => true, + 'contentType' => 'post', + 'inclusionType' => 'include', + 'displayType' => 'excerpt', + 'titleFormat' => 'h1', + 'titleAlignment' => 'left', + 'titleIsLink' => false, + 'imageFullWidth' => false, + 'featuredImagePosition' => 'alternate', + 'showAuthor' => 'no', + 'authorPrecededBy' => 'Author:', + 'showCategories' => 'no', + 'categoriesPrecededBy' => 'Categories:', + 'readMoreType' => 'button', + 'readMoreText' => 'Read more', + 'readMoreButton' => + array ( + 'text' => 'Read more', + 'url' => '[postLink]', + 'context' => 'automatedLatestContentLayout.readMoreButton', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2ea1cd', + 'borderColor' => '#0074a2', + 'borderWidth' => '1px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + ), + 'sortBy' => 'newest', + 'showDivider' => true, + 'divider' => + array ( + 'context' => 'automatedLatestContentLayout.divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '3px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 'backgroundColor' => '#ffffff', + 'backgroundColorAlternate' => '#eeeeee', + ), + 'button' => + array ( + 'text' => 'Read more', + 'url' => '[postLink]', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2ea1cd', + 'borderColor' => '#0074a2', + 'borderWidth' => '1px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + 'type' => 'button', + ), + 'divider' => + array ( + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '3px', + 'borderColor' => '#aaaaaa', + ), + ), + 'type' => 'divider', + ), + 'footer' => + array ( + 'text' => '

Unsubscribe | Manage subscription
Add your postal address here!

', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + 'text' => + array ( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '12px', + 'textAlign' => 'center', + ), + 'link' => + array ( + 'fontColor' => '#6cb7d4', + 'textDecoration' => 'none', + ), + ), + ), + 'posts' => + array ( + 'amount' => '10', + 'contentType' => 'post', + 'postStatus' => 'publish', + 'inclusionType' => 'include', + 'displayType' => 'excerpt', + 'titleFormat' => 'h1', + 'titleAlignment' => 'left', + 'titleIsLink' => false, + 'imageFullWidth' => true, + 'featuredImagePosition' => 'aboveTitle', + 'showAuthor' => 'no', + 'authorPrecededBy' => 'Author:', + 'showCategories' => 'no', + 'categoriesPrecededBy' => 'Categories:', + 'readMoreType' => 'button', + 'readMoreText' => 'Read more', + 'readMoreButton' => + array ( + 'text' => 'Read more', + 'url' => '[postLink]', + 'context' => 'posts.readMoreButton', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#ffffff', + 'borderColor' => '#0074a2', + 'borderWidth' => '1px', + 'borderRadius' => '0px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Arial', + 'fontSize' => '18px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + 'type' => 'button', + ), + 'sortBy' => 'newest', + 'showDivider' => true, + 'divider' => + array ( + 'context' => 'posts.divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '3px', + 'borderColor' => '#aaaaaa', + ), + ), + 'type' => 'divider', + ), + 'backgroundColor' => '#ffffff', + 'backgroundColorAlternate' => '#eeeeee', + 'type' => 'posts', + 'offset' => 0, + 'terms' => + array ( + ), + 'search' => '', + ), + 'social' => + array ( + 'iconSet' => 'default', + 'icons' => + array ( + 0 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'facebook', + 'link' => 'http://www.facebook.com', + 'image' => $this->social_icon_url . '/01-social/Facebook.png?mailpoet_version=3.7.1', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Facebook', + ), + 1 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'twitter', + 'link' => 'http://www.twitter.com', + 'image' => $this->social_icon_url . '/01-social/Twitter.png?mailpoet_version=3.7.1', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Twitter', + ), + ), + ), + 'spacer' => + array ( + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '40px', + ), + ), + ), + 'header' => + array ( + 'text' => 'Display problems? Open this email in your web browser.', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + 'text' => + array ( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '12px', + 'textAlign' => 'center', + ), + 'link' => + array ( + 'fontColor' => '#6cb7d4', + 'textDecoration' => 'underline', + ), + ), + ), + ), + ); + } + +} diff --git a/lib/Config/PopulatorData/Templates/Music.php b/lib/Config/PopulatorData/Templates/Music.php new file mode 100644 index 0000000000..f9180c2008 --- /dev/null +++ b/lib/Config/PopulatorData/Templates/Music.php @@ -0,0 +1,1485 @@ +template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/music'; + $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons'; + } + + function get() { + return array( + 'name' => __("Music", 'mailpoet'), + 'categories' => json_encode(array('standard', 'sample')), + 'readonly' => 1, + 'thumbnail' => $this->getThumbnail(), + 'body' => json_encode($this->getBody()), + ); + } + + private function getThumbnail() { + return $this->template_image_url . '/music.jpg'; + } + + private function getBody() { + return array ( + 'content' => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2d2d2d', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 1 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Music-Logo.png', + 'alt' => 'Music-Logo', + 'fullWidth' => false, + 'width' => '496px', + 'height' => '78px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + ), + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => $this->template_image_url . '/music-header.jpg', + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '70px', + ), + ), + ), + 1 => + array ( + 'type' => 'text', + 'text' => '

You Play.

+

They Listen.

', + ), + 2 => + array ( + 'type' => 'text', + 'text' => '

Up to 50% off all of our instruments.

+

This week only.

', + ), + 3 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '176px', + ), + ), + ), + ), + ), + ), + ), + 2 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '35px', + ), + ), + ), + 1 => + array ( + 'type' => 'text', + 'text' => '

Choose a category and get playing

', + ), + ), + ), + ), + ), + 3 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'button', + 'text' => 'Electric Guitars', + 'url' => '', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#ffffff', + 'borderColor' => '#2d2d2d', + 'borderWidth' => '3px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '189px', + 'lineHeight' => '50px', + 'fontColor' => '#2d2d2d', + 'fontFamily' => 'Arial', + 'fontSize' => '18px', + 'fontWeight' => 'bold', + 'textAlign' => 'center', + ), + ), + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'button', + 'text' => 'Trumpets', + 'url' => '', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#ffffff', + 'borderColor' => '#2d2d2d', + 'borderWidth' => '3px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '189px', + 'lineHeight' => '50px', + 'fontColor' => '#2d2d2d', + 'fontFamily' => 'Arial', + 'fontSize' => '18px', + 'fontWeight' => 'bold', + 'textAlign' => 'center', + ), + ), + ), + ), + ), + 2 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'button', + 'text' => 'DJ Equipment', + 'url' => '', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#ffffff', + 'borderColor' => '#2d2d2d', + 'borderWidth' => '3px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '189px', + 'lineHeight' => '50px', + 'fontColor' => '#2d2d2d', + 'fontFamily' => 'Arial', + 'fontSize' => '18px', + 'fontWeight' => 'bold', + 'textAlign' => 'center', + ), + ), + ), + ), + ), + ), + ), + 4 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'button', + 'text' => 'Amps', + 'url' => '', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#ffffff', + 'borderColor' => '#2d2d2d', + 'borderWidth' => '3px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '189px', + 'lineHeight' => '50px', + 'fontColor' => '#2d2d2d', + 'fontFamily' => 'Arial', + 'fontSize' => '18px', + 'fontWeight' => 'bold', + 'textAlign' => 'center', + ), + ), + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'button', + 'text' => 'Drums', + 'url' => '', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#ffffff', + 'borderColor' => '#2d2d2d', + 'borderWidth' => '3px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '189px', + 'lineHeight' => '50px', + 'fontColor' => '#2d2d2d', + 'fontFamily' => 'Arial', + 'fontSize' => '18px', + 'fontWeight' => 'bold', + 'textAlign' => 'center', + ), + ), + ), + ), + ), + 2 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'button', + 'text' => 'Pianos', + 'url' => '', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#ffffff', + 'borderColor' => '#2d2d2d', + 'borderWidth' => '3px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '189px', + 'lineHeight' => '50px', + 'fontColor' => '#2d2d2d', + 'fontFamily' => 'Arial', + 'fontSize' => '18px', + 'fontWeight' => 'bold', + 'textAlign' => 'center', + ), + ), + ), + ), + ), + ), + ), + 5 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'button', + 'text' => 'Banjos', + 'url' => '', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#ffffff', + 'borderColor' => '#2d2d2d', + 'borderWidth' => '3px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '189px', + 'lineHeight' => '50px', + 'fontColor' => '#2d2d2d', + 'fontFamily' => 'Arial', + 'fontSize' => '18px', + 'fontWeight' => 'bold', + 'textAlign' => 'center', + ), + ), + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'button', + 'text' => 'Synthesizers', + 'url' => '', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#ffffff', + 'borderColor' => '#2d2d2d', + 'borderWidth' => '3px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '189px', + 'lineHeight' => '50px', + 'fontColor' => '#2d2d2d', + 'fontFamily' => 'Arial', + 'fontSize' => '18px', + 'fontWeight' => 'bold', + 'textAlign' => 'center', + ), + ), + ), + ), + ), + 2 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'button', + 'text' => 'Guitar Pedals', + 'url' => '', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#ffffff', + 'borderColor' => '#2d2d2d', + 'borderWidth' => '3px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '189px', + 'lineHeight' => '50px', + 'fontColor' => '#2d2d2d', + 'fontFamily' => 'Arial', + 'fontSize' => '18px', + 'fontWeight' => 'bold', + 'textAlign' => 'center', + ), + ), + ), + ), + ), + ), + ), + 6 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'button', + 'text' => 'Harmonicas', + 'url' => '', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#ffffff', + 'borderColor' => '#2d2d2d', + 'borderWidth' => '3px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '189px', + 'lineHeight' => '50px', + 'fontColor' => '#2d2d2d', + 'fontFamily' => 'Arial', + 'fontSize' => '18px', + 'fontWeight' => 'bold', + 'textAlign' => 'center', + ), + ), + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'button', + 'text' => 'Flutes', + 'url' => '', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#ffffff', + 'borderColor' => '#2d2d2d', + 'borderWidth' => '3px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '189px', + 'lineHeight' => '50px', + 'fontColor' => '#2d2d2d', + 'fontFamily' => 'Arial', + 'fontSize' => '18px', + 'fontWeight' => 'bold', + 'textAlign' => 'center', + ), + ), + ), + ), + ), + 2 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'button', + 'text' => 'Headphones', + 'url' => '', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#ffffff', + 'borderColor' => '#2d2d2d', + 'borderWidth' => '3px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '189px', + 'lineHeight' => '50px', + 'fontColor' => '#2d2d2d', + 'fontFamily' => 'Arial', + 'fontSize' => '18px', + 'fontWeight' => 'bold', + 'textAlign' => 'center', + ), + ), + ), + ), + ), + ), + ), + 7 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + 8 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2d2d2d', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '40px', + ), + ), + ), + ), + ), + ), + ), + 9 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2d2d2d', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Music-Logo.png', + 'alt' => 'Music-Logo', + 'fullWidth' => false, + 'width' => '496px', + 'height' => '78px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + 1 => + array ( + 'type' => 'social', + 'iconSet' => 'full-symbol-grey', + 'icons' => + array ( + 0 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'facebook', + 'link' => 'http://www.facebook.com', + 'image' => $this->social_icon_url . '/08-full-symbol-grey/Facebook.png', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Facebook', + ), + 1 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'twitter', + 'link' => 'http://www.twitter.com', + 'image' => $this->social_icon_url . '/08-full-symbol-grey/Twitter.png', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Twitter', + ), + 2 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'youtube', + 'link' => 'http://www.youtube.com', + 'image' => $this->social_icon_url . '/08-full-symbol-grey/Youtube.png', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Youtube', + ), + ), + ), + 2 => + array ( + 'type' => 'text', + 'text' => '

Unsubscribe

+

Manage subscription
Add your postal address here!

', + ), + ), + ), + 2 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + ), + ), + 'globalStyles' => + array ( + 'text' => + array ( + 'fontColor' => '#000000', + 'fontFamily' => 'Arial', + 'fontSize' => '14px', + ), + 'h1' => + array ( + 'fontColor' => '#111111', + 'fontFamily' => 'Tahoma', + 'fontSize' => '36px', + ), + 'h2' => + array ( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '22px', + ), + 'h3' => + array ( + 'fontColor' => '#333333', + 'fontFamily' => 'Arial', + 'fontSize' => '18px', + ), + 'link' => + array ( + 'fontColor' => '#2d2d2d', + 'textDecoration' => 'underline', + ), + 'wrapper' => + array ( + 'backgroundColor' => '#ffffff', + ), + 'body' => + array ( + 'backgroundColor' => '#2d2d2d', + ), + ), + 'blockDefaults' => + array ( + 'automatedLatestContent' => + array ( + 'amount' => '5', + 'withLayout' => false, + 'contentType' => 'post', + 'inclusionType' => 'include', + 'displayType' => 'excerpt', + 'titleFormat' => 'h1', + 'titleAlignment' => 'left', + 'titleIsLink' => false, + 'imageFullWidth' => false, + 'featuredImagePosition' => 'belowTitle', + 'showAuthor' => 'no', + 'authorPrecededBy' => 'Author:', + 'showCategories' => 'no', + 'categoriesPrecededBy' => 'Categories:', + 'readMoreType' => 'button', + 'readMoreText' => 'Read more', + 'readMoreButton' => + array ( + 'text' => 'Read more', + 'url' => '[postLink]', + 'context' => 'automatedLatestContent.readMoreButton', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2ea1cd', + 'borderColor' => '#0074a2', + 'borderWidth' => '1px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + ), + 'sortBy' => 'newest', + 'showDivider' => true, + 'divider' => + array ( + 'context' => 'automatedLatestContent.divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '3px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 'backgroundColor' => '#ffffff', + 'backgroundColorAlternate' => '#eeeeee', + ), + 'automatedLatestContentLayout' => + array ( + 'amount' => '5', + 'withLayout' => true, + 'contentType' => 'post', + 'inclusionType' => 'include', + 'displayType' => 'excerpt', + 'titleFormat' => 'h1', + 'titleAlignment' => 'left', + 'titleIsLink' => false, + 'imageFullWidth' => false, + 'featuredImagePosition' => 'alternate', + 'showAuthor' => 'no', + 'authorPrecededBy' => 'Author:', + 'showCategories' => 'no', + 'categoriesPrecededBy' => 'Categories:', + 'readMoreType' => 'button', + 'readMoreText' => 'Read more', + 'readMoreButton' => + array ( + 'text' => 'Read more', + 'url' => '[postLink]', + 'context' => 'automatedLatestContentLayout.readMoreButton', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2ea1cd', + 'borderColor' => '#0074a2', + 'borderWidth' => '1px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + ), + 'sortBy' => 'newest', + 'showDivider' => true, + 'divider' => + array ( + 'context' => 'automatedLatestContentLayout.divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '3px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 'backgroundColor' => '#ffffff', + 'backgroundColorAlternate' => '#eeeeee', + ), + 'button' => + array ( + 'text' => 'Button', + 'url' => '', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2ea1cd', + 'borderColor' => '#0074a2', + 'borderWidth' => '1px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + ), + 'divider' => + array ( + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '3px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 'footer' => + array ( + 'text' => '

Unsubscribe | Manage subscription
Add your postal address here!

', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + 'text' => + array ( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '12px', + 'textAlign' => 'center', + ), + 'link' => + array ( + 'fontColor' => '#6cb7d4', + 'textDecoration' => 'none', + ), + ), + ), + 'posts' => + array ( + 'amount' => '10', + 'withLayout' => true, + 'contentType' => 'post', + 'postStatus' => 'publish', + 'inclusionType' => 'include', + 'displayType' => 'excerpt', + 'titleFormat' => 'h1', + 'titleAlignment' => 'left', + 'titleIsLink' => false, + 'imageFullWidth' => false, + 'featuredImagePosition' => 'alternate', + 'showAuthor' => 'no', + 'authorPrecededBy' => 'Author:', + 'showCategories' => 'no', + 'categoriesPrecededBy' => 'Categories:', + 'readMoreType' => 'link', + 'readMoreText' => 'Read more', + 'readMoreButton' => + array ( + 'text' => 'Read more', + 'url' => '[postLink]', + 'context' => 'posts.readMoreButton', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2ea1cd', + 'borderColor' => '#0074a2', + 'borderWidth' => '1px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + ), + 'sortBy' => 'newest', + 'showDivider' => true, + 'divider' => + array ( + 'context' => 'posts.divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '3px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 'backgroundColor' => '#ffffff', + 'backgroundColorAlternate' => '#eeeeee', + ), + 'social' => + array ( + 'iconSet' => 'default', + 'icons' => + array ( + 0 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'facebook', + 'link' => 'http://www.facebook.com', + 'image' => $this->social_icon_url . '/01-social/Facebook.png', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Facebook', + ), + 1 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'twitter', + 'link' => 'http://www.twitter.com', + 'image' => $this->social_icon_url . '/01-social/Twitter.png', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Twitter', + ), + ), + ), + 'spacer' => + array ( + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '176px', + ), + ), + 'type' => 'spacer', + ), + 'header' => + array ( + 'text' => 'Display problems? Open this email in your web browser.', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + 'text' => + array ( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '12px', + 'textAlign' => 'center', + ), + 'link' => + array ( + 'fontColor' => '#6cb7d4', + 'textDecoration' => 'underline', + ), + ), + ), + ), + ); + } + +} diff --git a/lib/Config/PopulatorData/Templates/NewsDay.php b/lib/Config/PopulatorData/Templates/NewsDay.php index 38be5f997a..2f8c717796 100644 --- a/lib/Config/PopulatorData/Templates/NewsDay.php +++ b/lib/Config/PopulatorData/Templates/NewsDay.php @@ -23,528 +23,1073 @@ class NewsDay { } private function getBody() { - return array( - 'content' => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'container', - 'orientation' => 'horizontal', - 'styles' => array( - 'block' => array( - 'backgroundColor' => '#ffffff', - ), + return array ( + 'content' => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', ), - 'blocks' => array( - 0 => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', ), - 'blocks' => array( - 0 => array( - 'type' => 'spacer', - 'styles' => array( - 'block' => array( - 'backgroundColor' => '#f2f2f2', - 'height' => '20px', - ), - ), - ), - 1 => array( - 'type' => 'image', - 'link' => '', - 'src' => $this->template_image_url . '/News-Outlet-Title-2.jpg', - 'alt' => 'News-Outlet-Title-2', - 'fullWidth' => true, - 'width' => '1280px', - 'height' => '700px', - 'styles' => array( - 'block' => array( - 'textAlign' => 'center', - ), - ), - ), - ), - ), ), - ), - 1 => array( - 'type' => 'container', - 'orientation' => 'horizontal', - 'styles' => array( - 'block' => array( - 'backgroundColor' => '#ffffff', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'spacer', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'height' => '25px', - ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', ), - ), - ), - ), - ), - ), - 2 => array( - 'type' => 'container', - 'orientation' => 'horizontal', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'text', - 'text' => '

Top Story

', - ), - 1 => array( - 'type' => 'text', - 'text' => '

Plasma jet engines that could take you from the ground to space

', - ), - 2 => array( - 'type' => 'image', - 'link' => 'http://mailpoet.info/plasma-jet-engines-that-could-take-you-from-the-ground-to-space/', - 'src' => $this->template_image_url . '/plasma-stingray111-800x533.jpg', - 'alt' => 'Plasma jet engines that could take you from the ground to space', - 'fullWidth' => false, - 'width' => 660, - 'height' => 440, - 'styles' => array( - 'block' => array( - 'textAlign' => 'center', - ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#ffffff', + ), ), - ), - 3 => array( - 'type' => 'text', - 'text' => '

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. …

Read More

', - ), - 4 => array( - 'type' => 'divider', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'padding' => '13px', - 'borderStyle' => 'solid', - 'borderWidth' => '1px', - 'borderColor' => '#aaaaaa', - ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#f2f2f2', + 'height' => '20px', + ), + ), + ), + 1 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/News-Outlet-Title-2.jpg', + 'alt' => 'News-Outlet-Title-2', + 'fullWidth' => true, + 'width' => '1280px', + 'height' => '700px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + ), + ), ), - ), - 5 => array( - 'type' => 'spacer', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'height' => '20px', - ), - ), - ), - 6 => array( - 'type' => 'text', - 'text' => '

Popular Posts Today

', - ), - 7 => array( - 'type' => 'spacer', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'height' => '20px', - ), - ), - ), ), - ), - ), - ), - 3 => array( - 'type' => 'container', - 'orientation' => 'horizontal', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#ffffff', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '25px', + ), + ), + ), + ), + ), + ), ), - 'blocks' => array( - 0 => array( - 'type' => 'text', - 'text' => '

Cutting through the smog: What to do to fight air pollution

+ 2 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'text', + 'text' => '

Top Story

', + ), + 1 => + array ( + 'type' => 'text', + 'text' => '

Plasma jet engines that could take you from the ground to space

', + ), + 2 => + array ( + 'type' => 'image', + 'link' => 'http://mailpoet.info/plasma-jet-engines-that-could-take-you-from-the-ground-to-space/', + 'src' => $this->template_image_url . '/plasma-stingray111-800x533.jpg', + 'alt' => 'Plasma jet engines that could take you from the ground to space', + 'fullWidth' => false, + 'width' => '413.28125px', + 'height' => 440, + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + 3 => + array ( + 'type' => 'text', + 'text' => '

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. …

Read More

', + ), + 4 => + array ( + 'type' => 'divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '1px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 5 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 6 => + array ( + 'type' => 'text', + 'text' => '

Popular Posts Today

', + ), + 7 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + 3 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'text', + 'text' => '

Cutting through the smog: What to do to fight air pollution

Tackling our air problems starts with traffic control, but individual action to reduce energy use and intensive farming would also help clean our air.

Read More

', - ), - 1 => array( - 'type' => 'divider', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'padding' => '13px', - 'borderStyle' => 'solid', - 'borderWidth' => '1px', - 'borderColor' => '#aaaaaa', - ), - ), - ), - 2 => array( - 'type' => 'text', - 'text' => '

Ladybird’s transparent shell reveals how it moves

+ ), + 1 => + array ( + 'type' => 'divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '1px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 2 => + array ( + 'type' => 'text', + 'text' => '

Ladybird’s transparent shell reveals how it moves

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.

Read More

', - ), - 3 => array( - 'type' => 'divider', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'padding' => '13px', - 'borderStyle' => 'solid', - 'borderWidth' => '1px', - 'borderColor' => '#aaaaaa', - ), - ), - ), - 4 => array( - 'type' => 'text', - 'text' => '

Brazil’s history-making Hurricane

+ ), + 3 => + array ( + 'type' => 'divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '1px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 4 => + array ( + 'type' => 'text', + 'text' => '

Brazil’s history-making Hurricane

Jairzinho has just made history. In claiming the fourth goal of an unforgettable 1970 FIFA World Cup Mexico™ Final against Italy, he has maintained his record of scoring in every one of Brazil’s matches en route to the Trophy.

Read More

', - ), - ), - ), - 1 => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'text', - 'text' => '

Iceland’s dentist-coach defying convention and expectations

+ ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'text', + 'text' => '

Iceland’s dentist-coach defying convention and expectations

As Iceland’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...

Read More

', - ), - 1 => array( - 'type' => 'divider', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'padding' => '13px', - 'borderStyle' => 'solid', - 'borderWidth' => '1px', - 'borderColor' => '#aaaaaa', - ), - ), - ), - 2 => array( - 'type' => 'text', - 'text' => '

Impact and legacy of 2018 FIFA World Cup Russia

+ ), + 1 => + array ( + 'type' => 'divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '1px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 2 => + array ( + 'type' => 'text', + 'text' => '

Impact and legacy of 2018 FIFA World Cup Russia

Organising a FIFA World Cup™ in a sustainable manner is a major challenge. The scale of the event inevitably has an impact on the Host Country. 

Read More

', - ), - 3 => array( - 'type' => 'divider', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'padding' => '13px', - 'borderStyle' => 'solid', - 'borderWidth' => '1px', - 'borderColor' => '#aaaaaa', - ), - ), - ), - 4 => array( - 'type' => 'text', - 'text' => '

Lineker’s life-changing treble

+ ), + 3 => + array ( + 'type' => 'divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '1px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 4 => + array ( + 'type' => 'text', + 'text' => '

Lineker’s life-changing treble

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™ highlight. Yet the man who scored ten times...

Read More

', - ), - ), - ), - ), - ), - 4 => array( - 'type' => 'container', - 'orientation' => 'horizontal', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'spacer', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'height' => '40px', - ), + ), + ), + ), ), - ), - 1 => array( - 'type' => 'spacer', - 'styles' => array( - 'block' => array( - 'backgroundColor' => '#f2f2f2', - 'height' => '40px', - ), - ), - ), - 2 => array( - 'type' => 'spacer', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'height' => '20px', - ), - ), - ), ), - ), - ), - ), - 5 => array( - 'type' => 'container', - 'orientation' => 'horizontal', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), + 4 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '40px', + ), + ), + ), + 1 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#f2f2f2', + 'height' => '40px', + ), + ), + ), + 2 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + ), ), - 'blocks' => array( - 0 => array( - 'type' => 'footer', - 'text' => '

NewsDay

+ 5 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'footer', + 'text' => '

NewsDay

Unsubscribe | Manage subscription

', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - 'text' => array( - 'fontColor' => '#222222', - 'fontFamily' => 'Arial', - 'fontSize' => '12px', - 'textAlign' => 'left', - ), - 'link' => array( - 'fontColor' => '#6cb7d4', - 'textDecoration' => 'underline', - ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + 'text' => + array ( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '12px', + 'textAlign' => 'left', + ), + 'link' => + array ( + 'fontColor' => '#6cb7d4', + 'textDecoration' => 'underline', + ), + ), + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 1 => + array ( + 'type' => 'social', + 'iconSet' => 'circles', + 'icons' => + array ( + 0 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'facebook', + 'link' => 'http://www.facebook.com', + 'image' => $this->social_icon_url . '/03-circles/Facebook.png', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Facebook', + ), + 1 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'twitter', + 'link' => 'http://www.twitter.com', + 'image' => $this->social_icon_url . '/03-circles/Twitter.png', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Twitter', + ), + 2 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'youtube', + 'link' => 'http://www.youtube.com', + 'image' => $this->social_icon_url . '/03-circles/Youtube.png', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Youtube', + ), + 3 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'instagram', + 'link' => 'http://instagram.com', + 'image' => $this->social_icon_url . '/03-circles/Instagram.png', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Instagram', + ), + 4 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'linkedin', + 'link' => 'http://www.linkedin.com', + 'image' => $this->social_icon_url . '/03-circles/LinkedIn.png', + 'height' => '32px', + 'width' => '32px', + 'text' => 'LinkedIn', + ), + ), + ), + 2 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), ), - ), ), - ), - 1 => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), + 6 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#f2f2f2', + 'height' => '40px', + ), + ), + ), + ), + ), + ), ), - 'blocks' => array( - 0 => array( - 'type' => 'spacer', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'height' => '20px', - ), - ), - ), - 1 => array( - 'type' => 'social', - 'iconSet' => 'circles', - 'icons' => array( - 0 => array( - 'type' => 'socialIcon', - 'iconType' => 'facebook', - 'link' => 'http://www.facebook.com', - 'image' => $this->social_icon_url . '/03-circles/Facebook.png', - 'height' => '32px', - 'width' => '32px', - 'text' => 'Facebook', - ), - 1 => array( - 'type' => 'socialIcon', - 'iconType' => 'twitter', - 'link' => 'http://www.twitter.com', - 'image' => $this->social_icon_url . '/03-circles/Twitter.png', - 'height' => '32px', - 'width' => '32px', - 'text' => 'Twitter', - ), - 2 => array( - 'type' => 'socialIcon', - 'iconType' => 'youtube', - 'link' => 'http://www.youtube.com', - 'image' => $this->social_icon_url . '/03-circles/Youtube.png', - 'height' => '32px', - 'width' => '32px', - 'text' => 'Youtube', - ), - 3 => array( - 'type' => 'socialIcon', - 'iconType' => 'instagram', - 'link' => 'http://instagram.com', - 'image' => $this->social_icon_url . '/03-circles/Instagram.png', - 'height' => '32px', - 'width' => '32px', - 'text' => 'Instagram', - ), - 4 => array( - 'type' => 'socialIcon', - 'iconType' => 'linkedin', - 'link' => 'http://www.linkedin.com', - 'image' => $this->social_icon_url . '/03-circles/LinkedIn.png', - 'height' => '32px', - 'width' => '32px', - 'text' => 'LinkedIn', - ), - ), - ), - 2 => array( - 'type' => 'spacer', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'height' => '20px', - ), - ), - ), - ), - ), ), - ), - 6 => array( - 'type' => 'container', - 'orientation' => 'horizontal', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), + ), + 'globalStyles' => + array ( + 'text' => + array ( + 'fontColor' => '#000000', + 'fontFamily' => 'Arial', + 'fontSize' => '13px', ), - 'blocks' => array( - 0 => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'spacer', - 'styles' => array( - 'block' => array( - 'backgroundColor' => '#f2f2f2', - 'height' => '40px', - ), + 'h1' => + array ( + 'fontColor' => '#111111', + 'fontFamily' => 'Arial', + 'fontSize' => '30px', + ), + 'h2' => + array ( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '24px', + ), + 'h3' => + array ( + 'fontColor' => '#333333', + 'fontFamily' => 'Arial', + 'fontSize' => '22px', + ), + 'link' => + array ( + 'fontColor' => '#2ca5d2', + 'textDecoration' => 'underline', + ), + 'wrapper' => + array ( + 'backgroundColor' => '#ffffff', + ), + 'body' => + array ( + 'backgroundColor' => '#f2f2f2', + ), + ), + 'blockDefaults' => + array ( + 'automatedLatestContent' => + array ( + 'amount' => '5', + 'withLayout' => false, + 'contentType' => 'post', + 'inclusionType' => 'include', + 'displayType' => 'excerpt', + 'titleFormat' => 'h1', + 'titleAlignment' => 'left', + 'titleIsLink' => false, + 'imageFullWidth' => false, + 'featuredImagePosition' => 'belowTitle', + 'showAuthor' => 'no', + 'authorPrecededBy' => 'Author:', + 'showCategories' => 'no', + 'categoriesPrecededBy' => 'Categories:', + 'readMoreType' => 'button', + 'readMoreText' => 'Read more', + 'readMoreButton' => + array ( + 'text' => 'Read more', + 'url' => '[postLink]', + 'context' => 'automatedLatestContent.readMoreButton', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2ea1cd', + 'borderColor' => '#0074a2', + 'borderWidth' => '1px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + ), + 'sortBy' => 'newest', + 'showDivider' => true, + 'divider' => + array ( + 'context' => 'automatedLatestContent.divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '3px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 'backgroundColor' => '#ffffff', + 'backgroundColorAlternate' => '#eeeeee', + ), + 'automatedLatestContentLayout' => + array ( + 'amount' => '5', + 'withLayout' => true, + 'contentType' => 'post', + 'inclusionType' => 'include', + 'displayType' => 'excerpt', + 'titleFormat' => 'h1', + 'titleAlignment' => 'left', + 'titleIsLink' => false, + 'imageFullWidth' => false, + 'featuredImagePosition' => 'alternate', + 'showAuthor' => 'no', + 'authorPrecededBy' => 'Author:', + 'showCategories' => 'no', + 'categoriesPrecededBy' => 'Categories:', + 'readMoreType' => 'button', + 'readMoreText' => 'Read more', + 'readMoreButton' => + array ( + 'text' => 'Read more', + 'url' => '[postLink]', + 'context' => 'automatedLatestContentLayout.readMoreButton', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2ea1cd', + 'borderColor' => '#0074a2', + 'borderWidth' => '1px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + ), + 'sortBy' => 'newest', + 'showDivider' => true, + 'divider' => + array ( + 'context' => 'automatedLatestContentLayout.divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '3px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 'backgroundColor' => '#ffffff', + 'backgroundColorAlternate' => '#eeeeee', + ), + 'button' => + array ( + 'text' => 'Button', + 'url' => '', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2ea1cd', + 'borderColor' => '#0074a2', + 'borderWidth' => '1px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + ), + 'divider' => + array ( + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '3px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 'footer' => + array ( + 'text' => '

Unsubscribe | Manage subscription
Add your postal address here!

', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + 'text' => + array ( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '12px', + 'textAlign' => 'center', + ), + 'link' => + array ( + 'fontColor' => '#6cb7d4', + 'textDecoration' => 'none', + ), + ), + ), + 'posts' => + array ( + 'amount' => '10', + 'withLayout' => true, + 'contentType' => 'post', + 'postStatus' => 'publish', + 'inclusionType' => 'include', + 'displayType' => 'excerpt', + 'titleFormat' => 'h1', + 'titleAlignment' => 'left', + 'titleIsLink' => false, + 'imageFullWidth' => false, + 'featuredImagePosition' => 'alternate', + 'showAuthor' => 'no', + 'authorPrecededBy' => 'Author:', + 'showCategories' => 'no', + 'categoriesPrecededBy' => 'Categories:', + 'readMoreType' => 'link', + 'readMoreText' => 'Read more', + 'readMoreButton' => + array ( + 'text' => 'Read more', + 'url' => '[postLink]', + 'context' => 'posts.readMoreButton', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2ea1cd', + 'borderColor' => '#0074a2', + 'borderWidth' => '1px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + ), + 'sortBy' => 'newest', + 'showDivider' => true, + 'divider' => + array ( + 'context' => 'posts.divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '3px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 'backgroundColor' => '#ffffff', + 'backgroundColorAlternate' => '#eeeeee', + ), + 'social' => + array ( + 'iconSet' => 'default', + 'icons' => + array ( + 0 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'facebook', + 'link' => 'http://www.facebook.com', + 'image' => $this->social_icon_url . '/01-social/Facebook.png', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Facebook', + ), + 1 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'twitter', + 'link' => 'http://www.twitter.com', + 'image' => $this->social_icon_url . '/01-social/Twitter.png', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Twitter', + ), + ), + ), + 'spacer' => + array ( + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '40px', + ), + ), + ), + 'header' => + array ( + 'text' => 'Display problems? Open this email in your web browser.', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + 'text' => + array ( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '12px', + 'textAlign' => 'center', + ), + 'link' => + array ( + 'fontColor' => '#6cb7d4', + 'textDecoration' => 'underline', ), - ), ), - ), ), - ), ), - ), - 'globalStyles' => array( - 'text' => array( - 'fontColor' => '#000000', - 'fontFamily' => 'Arial', - 'fontSize' => '13px', - ), - 'h1' => array( - 'fontColor' => '#111111', - 'fontFamily' => 'Arial', - 'fontSize' => '30px', - ), - 'h2' => array( - 'fontColor' => '#222222', - 'fontFamily' => 'Arial', - 'fontSize' => '24px', - ), - 'h3' => array( - 'fontColor' => '#333333', - 'fontFamily' => 'Arial', - 'fontSize' => '22px', - ), - 'link' => array( - 'fontColor' => '#2ca5d2', - 'textDecoration' => 'underline', - ), - 'wrapper' => array( - 'backgroundColor' => '#ffffff', - ), - 'body' => array( - 'backgroundColor' => '#f2f2f2', - ), - ), ); } diff --git a/lib/Config/PopulatorData/Templates/NotSoMedium.php b/lib/Config/PopulatorData/Templates/NotSoMedium.php new file mode 100644 index 0000000000..07bce52776 --- /dev/null +++ b/lib/Config/PopulatorData/Templates/NotSoMedium.php @@ -0,0 +1,1049 @@ +template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/not-so-medium'; + $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons'; + } + + function get() { + return array( + 'name' => __("One Full Post In An Email", 'mailpoet'), + 'categories' => json_encode(array('notification', 'sample')), + 'readonly' => 1, + 'thumbnail' => $this->getThumbnail(), + 'body' => json_encode($this->getBody()), + ); + } + + private function getThumbnail() { + return $this->template_image_url . '/not-so-medium.jpg'; + } + + private function getBody() { + return array ( + 'content' => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#ffffff', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '30px', + ), + ), + ), + ), + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Not-So-Medium-Logo.png', + 'alt' => 'Not-So-Medium-Logo', + 'fullWidth' => false, + 'width' => '210px', + 'height' => '90px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '40px', + ), + ), + ), + ), + ), + 2 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 1 => + array ( + 'type' => 'social', + 'iconSet' => 'full-symbol-black', + 'icons' => + array ( + 0 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'facebook', + 'link' => 'http://www.facebook.com', + 'image' => $this->social_icon_url . '/07-full-symbol-black/Facebook.png?mailpoet_version=3.0.0-rc.2.0.0', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Facebook', + ), + 1 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'twitter', + 'link' => 'http://www.twitter.com', + 'image' => $this->social_icon_url . '/07-full-symbol-black/Twitter.png?mailpoet_version=3.0.0-rc.2.0.0', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Twitter', + ), + 2 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'website', + 'link' => '', + 'image' => $this->social_icon_url . '/07-full-symbol-black/Website.png?mailpoet_version=3.0.0-rc.2.0.0', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Website', + ), + ), + ), + ), + ), + ), + ), + 2 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#ebebeb', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 1 => + array ( + 'type' => 'text', + 'text' => '

Welcome to this week\'s post.

+

Every Friday, we send you the most interesting story of the week in full.

', + ), + 2 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#d6d6d6', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + 3 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '35px', + ), + ), + ), + 1 => + array ( + 'type' => 'text', + 'text' => '

Science busts the biggest myth ever about why bridges collapse

+
+

“At least six lamp posts were snapped off while I watched. A few minutes later, I saw a side girder bulge out. But, though the bridge was bucking up at an angle of 45 degrees, I thought she would be able to fight it out. But, that wasn’t to be.” -Bert Farquharson

+
+

The collapse of the Tacoma Narrows Bridge on the morning of November 7, 1940, is the most iconic example of a spectacular bridge failure in modern times. As the third largest suspension bridge in the world, behind only the George Washington and Golden Gate bridges, it connected Tacoma to the entire Kitsap Peninsula in Puget Sound, and opened to the public on July 1st, 1940. Just four months later, under the right wind conditions, the bridge was driven at its resonant frequency, causing it to oscillate and twist uncontrollably. After undulating for over an hour, the middle section collapsed, and the bridge was destroyed. It was a testimony to the power of resonance, and has been used as a classic example in physics and engineering classes across the country ever since. Unfortunately, the story is a complete myth.

+

Every physical system or object has a frequency that’s naturally inherent to it: its resonant frequency. A swing, for example, has a certain frequency you can drive it at; as a child you learn to pump yourself in time with the swing. Pump too slowly or too quickly, and you’ll never build up speed, but if you pump at just the right rate, you can swing as high as your muscles will take you. Resonant frequencies can also be disastrous if you build up too much vibrational energy in a system that can’t handle it, which is how sound alone at just the right pitch is capable of causing a wine glass to shatter.

', + ), + 2 => + array ( + 'type' => 'image', + 'link' => $this->template_image_url . '/0-w9nQeKIWx4fZbwPD.gif', + 'src' => $this->template_image_url . '/0-w9nQeKIWx4fZbwPD.gif', + 'alt' => '', + 'fullWidth' => true, + 'width' => '400', + 'height' => '225', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + 3 => + array ( + 'type' => 'text', + 'text' => '

A wine glass, stimulated by a continued sound at just the right pitch/frequency, will vibrate at such a frequency that the internal stresses will destroy it. Image credit: Marty33 of YouTube.

', + ), + 4 => + array ( + 'type' => 'text', + 'text' => '

It makes sense, looking at what happened to the bridge, that resonance would be the culprit. And that’s the easiest pitfall in science: when you come up with an explanation that’s simple, compelling, and appears obvious. Because in this case, it’s completely wrong. You can calculate what the resonant frequency of the bridge would be, and there was nothing driving at that frequency. All you had was a sustained, strong wind. In fact, the bridge itself wasn’t undulating at its resonant frequency at all!

+

But the story of what was actually happening was fascinating, and holds lessons — lessons we haven’t necessarily heeded — for all the bridges we’ve built ever since.

', + ), + 5 => + array ( + 'type' => 'image', + 'link' => $this->template_image_url . '/0-PpT1Hf-4dqFdvSxR.jpeg', + 'src' => $this->template_image_url . '/0-PpT1Hf-4dqFdvSxR.jpeg', + 'alt' => '', + 'fullWidth' => true, + 'width' => '800', + 'height' => '488', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + 6 => + array ( + 'type' => 'text', + 'text' => '

Capilano bridge in Vancouver, Canada, is one of the world’s largest pedestrian suspension bridges. If you walk across it, you’ll leave disoriented from the undulations. Image credit: Leonard G. of English Wikipedia.

', + ), + 7 => + array ( + 'type' => 'text', + 'text' => '

Whenever you have an object suspended between two points, it’s free to move, vibrate, oscillate, etc. It has its own response to outside stimuli, just like a guitar string vibrates in response to outside excitations. That’s what the bridge did most of the time: simply vibrated up-and-down as cars passed over it, as the wind blew, etc. It did what any suspension bridge would do, only slightly more severely due to the cost-saving measures implemented in its construction. Structures like bridges are particularly good at shedding this kind of energy, so that, on its own, posed no danger of collapse.

+

But as the wind passed over the bridge on November 7th, a stronger, more sustained wind than it had ever experienced before, causing vortices to form as the steady wind passed over the bridge. In small doses, this wouldn’t pose much of a problem, but take a look at the effects of these vortices on a structure in the video below.

+

Over time, they cause a aerodynamic phenomenon known as “flutter,” where the extremities in the direction of the wind get an extra rocking motion to them. This causes the outer portions to move perpendicular to the wind direction, but out-of-phase from the overall up-and-down motion of the bridge. This phenomenon of flutter has been known to be disastrous for aircraft, but it was never seen in a bridge before. At least, not to this extent.

', + ), + 8 => + array ( + 'type' => 'image', + 'link' => $this->template_image_url . '/0-IM2va2_e6Mzg1Et-.jpeg', + 'src' => $this->template_image_url . '/0-IM2va2_e6Mzg1Et-.jpeg', + 'alt' => '', + 'fullWidth' => true, + 'width' => '960', + 'height' => '517', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + 9 => + array ( + 'type' => 'text', + 'text' => '

Under the effects of flutter, aircraft wings can bend or even break off entirely. This has let to the demise of a number of pilots and numerous plane crashes over the years. Image credit: Netherlands Aerospace Center / NLR.

', + ), + 10 => + array ( + 'type' => 'text', + 'text' => '

When the flutter effect began, one of the steel suspension cables supporting the bridge snapped, removing the last major obstacle to this fluttering motion. That was when the additional undulations, where the two sides of the bridge rocked back-and-forth in harmony with one another, began in earnest. With the sustained, strong winds, the continued vortices, and no ability to dissipate those forces, the bridge’s rocking continued unabated, and even intensified. The last humans on the bridge, the photographers, fled the scene.

+

Don’t blame resonance for the most famous bridge-collapse of all. The true cause is much scarier, and could affect hundreds of bridges across the world if we ever forget to account for, and mitigate, the fluttering effects that brought this one down.

', + ), + 11 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + 4 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#ebebeb', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 1 => + array ( + 'type' => 'text', + 'text' => '

Share this with your friends

+

We promise not to spam anyone, and we only send our great articles to any email addresses in our list. Promise!

', + ), + 2 => + array ( + 'type' => 'social', + 'iconSet' => 'circles', + 'icons' => + array ( + 0 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'facebook', + 'link' => 'http://www.facebook.com', + 'image' => $this->social_icon_url . '/03-circles/Facebook.png?mailpoet_version=3.0.0-rc.2.0.0', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Facebook', + ), + 1 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'twitter', + 'link' => 'http://www.twitter.com', + 'image' => $this->social_icon_url . '/03-circles/Twitter.png?mailpoet_version=3.0.0-rc.2.0.0', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Twitter', + ), + 2 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'google-plus', + 'link' => 'http://plus.google.com', + 'image' => $this->social_icon_url . '/03-circles/Google-Plus.png?mailpoet_version=3.0.0-rc.2.0.0', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Google Plus', + ), + 3 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'linkedin', + 'link' => 'http://www.linkedin.com', + 'image' => $this->social_icon_url . '/03-circles/LinkedIn.png?mailpoet_version=3.0.0-rc.2.0.0', + 'height' => '32px', + 'width' => '32px', + 'text' => 'LinkedIn', + ), + 4 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'email', + 'link' => '', + 'image' => $this->social_icon_url . '/03-circles/Email.png?mailpoet_version=3.0.0-rc.2.0.0', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Email', + ), + ), + ), + 3 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#d6d6d6', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + 5 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#ffffff', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 1 => + array ( + 'type' => 'footer', + 'text' => '

Unsubscribe | Manage your subscription
Add your postal address here!

', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + 'text' => + array ( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '12px', + 'textAlign' => 'center', + ), + 'link' => + array ( + 'fontColor' => '#2c2c2c', + 'textDecoration' => 'none', + ), + ), + ), + ), + ), + ), + ), + ), + ), + 'globalStyles' => + array ( + 'text' => + array ( + 'fontColor' => '#000000', + 'fontFamily' => 'Georgia', + 'fontSize' => '18px', + ), + 'h1' => + array ( + 'fontColor' => '#111111', + 'fontFamily' => 'Arial', + 'fontSize' => '30px', + ), + 'h2' => + array ( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '24px', + ), + 'h3' => + array ( + 'fontColor' => '#333333', + 'fontFamily' => 'Arial', + 'fontSize' => '22px', + ), + 'link' => + array ( + 'fontColor' => '#21759B', + 'textDecoration' => 'underline', + ), + 'wrapper' => + array ( + 'backgroundColor' => '#ffffff', + ), + 'body' => + array ( + 'backgroundColor' => '#ffffff', + ), + ), + 'blockDefaults' => + array ( + 'automatedLatestContent' => + array ( + 'amount' => '5', + 'withLayout' => false, + 'contentType' => 'post', + 'inclusionType' => 'include', + 'displayType' => 'excerpt', + 'titleFormat' => 'h1', + 'titleAlignment' => 'left', + 'titleIsLink' => false, + 'imageFullWidth' => false, + 'featuredImagePosition' => 'belowTitle', + 'showAuthor' => 'no', + 'authorPrecededBy' => 'Author:', + 'showCategories' => 'no', + 'categoriesPrecededBy' => 'Categories:', + 'readMoreType' => 'button', + 'readMoreText' => 'Read more', + 'readMoreButton' => + array ( + 'text' => 'Read more', + 'url' => '[postLink]', + 'context' => 'automatedLatestContent.readMoreButton', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2ea1cd', + 'borderColor' => '#0074a2', + 'borderWidth' => '1px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + ), + 'sortBy' => 'newest', + 'showDivider' => true, + 'divider' => + array ( + 'context' => 'automatedLatestContent.divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '3px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 'backgroundColor' => '#ffffff', + 'backgroundColorAlternate' => '#eeeeee', + ), + 'automatedLatestContentLayout' => + array ( + 'amount' => '5', + 'withLayout' => true, + 'contentType' => 'post', + 'inclusionType' => 'include', + 'displayType' => 'excerpt', + 'titleFormat' => 'h1', + 'titleAlignment' => 'left', + 'titleIsLink' => false, + 'imageFullWidth' => false, + 'featuredImagePosition' => 'alternate', + 'showAuthor' => 'no', + 'authorPrecededBy' => 'Author:', + 'showCategories' => 'no', + 'categoriesPrecededBy' => 'Categories:', + 'readMoreType' => 'button', + 'readMoreText' => 'Read more', + 'readMoreButton' => + array ( + 'text' => 'Read more', + 'url' => '[postLink]', + 'context' => 'automatedLatestContentLayout.readMoreButton', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2ea1cd', + 'borderColor' => '#0074a2', + 'borderWidth' => '1px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + ), + 'sortBy' => 'newest', + 'showDivider' => true, + 'divider' => + array ( + 'context' => 'automatedLatestContentLayout.divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '3px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 'backgroundColor' => '#ffffff', + 'backgroundColorAlternate' => '#eeeeee', + ), + 'button' => + array ( + 'text' => 'Button', + 'url' => '', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2ea1cd', + 'borderColor' => '#0074a2', + 'borderWidth' => '1px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + ), + 'divider' => + array ( + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '3px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 'footer' => + array ( + 'text' => '

Unsubscribe | Manage subscription
Add your postal address here!

', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + 'text' => + array ( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '12px', + 'textAlign' => 'center', + ), + 'link' => + array ( + 'fontColor' => '#6cb7d4', + 'textDecoration' => 'none', + ), + ), + ), + 'posts' => + array ( + 'amount' => '10', + 'withLayout' => true, + 'contentType' => 'post', + 'postStatus' => 'publish', + 'inclusionType' => 'include', + 'displayType' => 'excerpt', + 'titleFormat' => 'h1', + 'titleAlignment' => 'left', + 'titleIsLink' => false, + 'imageFullWidth' => false, + 'featuredImagePosition' => 'alternate', + 'showAuthor' => 'no', + 'authorPrecededBy' => 'Author:', + 'showCategories' => 'no', + 'categoriesPrecededBy' => 'Categories:', + 'readMoreType' => 'link', + 'readMoreText' => 'Read more', + 'readMoreButton' => + array ( + 'text' => 'Read more', + 'url' => '[postLink]', + 'context' => 'posts.readMoreButton', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2ea1cd', + 'borderColor' => '#0074a2', + 'borderWidth' => '1px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + ), + 'sortBy' => 'newest', + 'showDivider' => true, + 'divider' => + array ( + 'context' => 'posts.divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '3px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 'backgroundColor' => '#ffffff', + 'backgroundColorAlternate' => '#eeeeee', + ), + 'social' => + array ( + 'iconSet' => 'default', + 'icons' => + array ( + 0 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'facebook', + 'link' => 'http://www.facebook.com', + 'image' => $this->social_icon_url . '/01-social/Facebook.png?mailpoet_version=3.9.1', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Facebook', + ), + 1 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'twitter', + 'link' => 'http://www.twitter.com', + 'image' => $this->social_icon_url . '/01-social/Twitter.png?mailpoet_version=3.9.1', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Twitter', + ), + ), + ), + 'spacer' => + array ( + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '40px', + ), + ), + ), + 'header' => + array ( + 'text' => 'Display problems? Open this email in your web browser.', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + 'text' => + array ( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '12px', + 'textAlign' => 'center', + ), + 'link' => + array ( + 'fontColor' => '#6cb7d4', + 'textDecoration' => 'underline', + ), + ), + ), + ), + ); + } + +} diff --git a/lib/Config/PopulatorData/Templates/Phone.php b/lib/Config/PopulatorData/Templates/Phone.php new file mode 100644 index 0000000000..f90e6f47c9 --- /dev/null +++ b/lib/Config/PopulatorData/Templates/Phone.php @@ -0,0 +1,778 @@ +template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/phone'; + $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons'; + } + + function get() { + return array( + 'name' => __("New Phone Purchase", 'mailpoet'), + 'categories' => json_encode(array('welcome', 'sample')), + 'readonly' => 1, + 'thumbnail' => $this->getThumbnail(), + 'body' => json_encode($this->getBody()), + ); + } + + private function getThumbnail() { + return $this->template_image_url . '/phone.jpg'; + } + + private function getBody() { + return array ( + 'content' => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#1b1821', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '40px', + ), + ), + ), + 1 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Phone-Logo.png', + 'alt' => 'Phone-Logo', + 'fullWidth' => true, + 'width' => '122px', + 'height' => '23px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + ), + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#1b1821', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Phone-Title.png', + 'alt' => 'Phone-Title', + 'fullWidth' => true, + 'width' => '1280px', + 'height' => '215px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + 1 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Phone-Header.jpg', + 'alt' => 'Phone-Header', + 'fullWidth' => true, + 'width' => '1280px', + 'height' => '920px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + 2 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '30px', + ), + ), + ), + 3 => + array ( + 'type' => 'text', + 'text' => '

Welcome to your brand new Casia 7200.

+

Let\'s get you all set up.

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur nec nisi quis ex pulvinar molestie. Sed pulvinar placerat justo eu viverra. Pellentesque in interdum eros, a venenatis velit. Fusce finibus convallis augue, ut viverra felis placerat in.

', + ), + 4 => + array ( + 'type' => 'button', + 'text' => 'Get Started', + 'url' => '', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#8748d5', + 'borderColor' => '#0074a2', + 'borderWidth' => '0px', + 'borderRadius' => '40px', + 'borderStyle' => 'solid', + 'width' => '159px', + 'lineHeight' => '45px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Arial', + 'fontSize' => '20px', + 'fontWeight' => 'bold', + 'textAlign' => 'center', + ), + ), + ), + 5 => + array ( + 'type' => 'divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'dashed', + 'borderWidth' => '2px', + 'borderColor' => '#2c2c2c', + ), + ), + ), + 6 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '30px', + ), + ), + ), + ), + ), + ), + ), + 2 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'text', + 'text' => '

Address Line 1

+

Address Line 2

+

City

+

Country

', + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Phone-Logo.png', + 'alt' => 'Phone-Logo', + 'fullWidth' => false, + 'width' => '122px', + 'height' => '23px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + 1 => + array ( + 'type' => 'social', + 'iconSet' => 'full-symbol-grey', + 'icons' => + array ( + 0 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'facebook', + 'link' => 'http://www.facebook.com', + 'image' => $this->social_icon_url . '/08-full-symbol-grey/Facebook.png?mailpoet_version=3.0.0-rc.2.0.0', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Facebook', + ), + 1 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'twitter', + 'link' => 'http://www.twitter.com', + 'image' => $this->social_icon_url . '/08-full-symbol-grey/Twitter.png?mailpoet_version=3.0.0-rc.2.0.0', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Twitter', + ), + 2 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'pinterest', + 'link' => 'http://www.pinterest.com', + 'image' => $this->social_icon_url . '/08-full-symbol-grey/Pinterest.png?mailpoet_version=3.0.0-rc.2.0.0', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Pinterest', + ), + 3 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'linkedin', + 'link' => 'http://www.linkedin.com', + 'image' => $this->social_icon_url . '/08-full-symbol-grey/LinkedIn.png?mailpoet_version=3.0.0-rc.2.0.0', + 'height' => '32px', + 'width' => '32px', + 'text' => 'LinkedIn', + ), + ), + ), + ), + ), + 2 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'text', + 'text' => '

Unsubscribe

+

Manage subscription

', + ), + ), + ), + ), + ), + ), + ), + 'globalStyles' => + array ( + 'text' => + array ( + 'fontColor' => '#000000', + 'fontFamily' => 'Arial', + 'fontSize' => '15px', + ), + 'h1' => + array ( + 'fontColor' => '#111111', + 'fontFamily' => 'Arial', + 'fontSize' => '30px', + ), + 'h2' => + array ( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '24px', + ), + 'h3' => + array ( + 'fontColor' => '#333333', + 'fontFamily' => 'Arial', + 'fontSize' => '22px', + ), + 'link' => + array ( + 'fontColor' => '#8748d5', + 'textDecoration' => 'underline', + ), + 'wrapper' => + array ( + 'backgroundColor' => '#1b1821', + ), + 'body' => + array ( + 'backgroundColor' => '#1b1821', + ), + ), + 'blockDefaults' => + array ( + 'automatedLatestContent' => + array ( + 'amount' => '5', + 'withLayout' => false, + 'contentType' => 'post', + 'inclusionType' => 'include', + 'displayType' => 'excerpt', + 'titleFormat' => 'h1', + 'titleAlignment' => 'left', + 'titleIsLink' => false, + 'imageFullWidth' => false, + 'featuredImagePosition' => 'belowTitle', + 'showAuthor' => 'no', + 'authorPrecededBy' => 'Author:', + 'showCategories' => 'no', + 'categoriesPrecededBy' => 'Categories:', + 'readMoreType' => 'button', + 'readMoreText' => 'Read more', + 'readMoreButton' => + array ( + 'text' => 'Read more', + 'url' => '[postLink]', + 'context' => 'automatedLatestContent.readMoreButton', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2ea1cd', + 'borderColor' => '#0074a2', + 'borderWidth' => '1px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + ), + 'sortBy' => 'newest', + 'showDivider' => true, + 'divider' => + array ( + 'context' => 'automatedLatestContent.divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '3px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 'backgroundColor' => '#ffffff', + 'backgroundColorAlternate' => '#eeeeee', + ), + 'automatedLatestContentLayout' => + array ( + 'amount' => '5', + 'withLayout' => true, + 'contentType' => 'post', + 'inclusionType' => 'include', + 'displayType' => 'excerpt', + 'titleFormat' => 'h1', + 'titleAlignment' => 'left', + 'titleIsLink' => false, + 'imageFullWidth' => false, + 'featuredImagePosition' => 'alternate', + 'showAuthor' => 'no', + 'authorPrecededBy' => 'Author:', + 'showCategories' => 'no', + 'categoriesPrecededBy' => 'Categories:', + 'readMoreType' => 'button', + 'readMoreText' => 'Read more', + 'readMoreButton' => + array ( + 'text' => 'Read more', + 'url' => '[postLink]', + 'context' => 'automatedLatestContentLayout.readMoreButton', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2ea1cd', + 'borderColor' => '#0074a2', + 'borderWidth' => '1px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + ), + 'sortBy' => 'newest', + 'showDivider' => true, + 'divider' => + array ( + 'context' => 'automatedLatestContentLayout.divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '3px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 'backgroundColor' => '#ffffff', + 'backgroundColorAlternate' => '#eeeeee', + ), + 'button' => + array ( + 'text' => 'Button', + 'url' => '', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2ea1cd', + 'borderColor' => '#0074a2', + 'borderWidth' => '1px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + ), + 'divider' => + array ( + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '3px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 'footer' => + array ( + 'text' => '

Unsubscribe | Manage subscription
Add your postal address here!

', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + 'text' => + array ( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '12px', + 'textAlign' => 'center', + ), + 'link' => + array ( + 'fontColor' => '#6cb7d4', + 'textDecoration' => 'none', + ), + ), + ), + 'posts' => + array ( + 'amount' => '10', + 'withLayout' => true, + 'contentType' => 'post', + 'postStatus' => 'publish', + 'inclusionType' => 'include', + 'displayType' => 'excerpt', + 'titleFormat' => 'h1', + 'titleAlignment' => 'left', + 'titleIsLink' => false, + 'imageFullWidth' => false, + 'featuredImagePosition' => 'alternate', + 'showAuthor' => 'no', + 'authorPrecededBy' => 'Author:', + 'showCategories' => 'no', + 'categoriesPrecededBy' => 'Categories:', + 'readMoreType' => 'link', + 'readMoreText' => 'Read more', + 'readMoreButton' => + array ( + 'text' => 'Read more', + 'url' => '[postLink]', + 'context' => 'posts.readMoreButton', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2ea1cd', + 'borderColor' => '#0074a2', + 'borderWidth' => '1px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + ), + 'sortBy' => 'newest', + 'showDivider' => true, + 'divider' => + array ( + 'context' => 'posts.divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '3px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 'backgroundColor' => '#ffffff', + 'backgroundColorAlternate' => '#eeeeee', + ), + 'social' => + array ( + 'iconSet' => 'default', + 'icons' => + array ( + 0 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'facebook', + 'link' => 'http://www.facebook.com', + 'image' => $this->social_icon_url . '/01-social/Facebook.png?mailpoet_version=3.9.1', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Facebook', + ), + 1 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'twitter', + 'link' => 'http://www.twitter.com', + 'image' => $this->social_icon_url . '/01-social/Twitter.png?mailpoet_version=3.9.1', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Twitter', + ), + ), + ), + 'spacer' => + array ( + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '40px', + ), + ), + ), + 'header' => + array ( + 'text' => 'Display problems? Open this email in your web browser.', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + 'text' => + array ( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '12px', + 'textAlign' => 'center', + ), + 'link' => + array ( + 'fontColor' => '#6cb7d4', + 'textDecoration' => 'underline', + ), + ), + ), + ), + ); + } + + +} diff --git a/lib/Config/PopulatorData/Templates/RealEstate.php b/lib/Config/PopulatorData/Templates/RealEstate.php new file mode 100644 index 0000000000..dfe0c82e72 --- /dev/null +++ b/lib/Config/PopulatorData/Templates/RealEstate.php @@ -0,0 +1,1117 @@ +template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/real-estate'; + $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons'; + } + + function get() { + return array( + 'name' => __("Real Estate", 'mailpoet'), + 'categories' => json_encode(['welcome', 'sample']), + 'readonly' => 1, + 'thumbnail' => $this->getThumbnail(), + 'body' => json_encode($this->getBody()), + ); + } + + private function getThumbnail() { + return $this->template_image_url . '/real-estate.jpg'; + } + + private function getBody() { + return array ( + 'content' => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#8691be', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + array( + "type" => "spacer", + "styles" => array( + "block" => array( + "backgroundColor" => "transparent", + "height" => "20px", + ), + ), + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Property-Logo-1-150x84.jpg', + 'alt' => 'Property-Logo-1', + 'fullWidth' => false, + 'width' => '150px', + 'height' => '84px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + ), + ), + 2 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '25px', + ), + ), + ), + 1 => + array ( + 'type' => 'social', + 'iconSet' => 'full-symbol-grey', + 'icons' => + array ( + 0 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'facebook', + 'link' => 'http://www.facebook.com', + 'image' => $this->social_icon_url . '/08-full-symbol-grey/Facebook.png?mailpoet_version=3.0.0-rc.2.0.0', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Facebook', + ), + 1 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'twitter', + 'link' => 'http://www.twitter.com', + 'image' => $this->social_icon_url . '/08-full-symbol-grey/Twitter.png?mailpoet_version=3.0.0-rc.2.0.0', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Twitter', + ), + 2 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'website', + 'link' => '', + 'image' => $this->social_icon_url . '/08-full-symbol-grey/Website.png?mailpoet_version=3.0.0-rc.2.0.0', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Website', + ), + 3 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'instagram', + 'link' => 'http://instagram.com', + 'image' => $this->social_icon_url . '/08-full-symbol-grey/Instagram.png?mailpoet_version=3.0.0-rc.2.0.0', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Instagram', + ), + ), + ), + ), + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#8691be', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '25px', + ), + ), + ), + 1 => + array ( + 'type' => 'text', + 'text' => '

TAKING THE WORRY OUT OF REAL ESTATE

', + ), + 2 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 3 => + array ( + 'type' => 'text', + 'text' => '

Welcome Home

', + ), + ), + ), + ), + ), + 2 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#ffffff', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Property-Header.jpg', + 'alt' => 'Property-Header', + 'fullWidth' => true, + 'width' => '1280px', + 'height' => '782px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + 1 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '35px', + ), + ), + ), + 2 => + array ( + 'type' => 'text', + 'text' => '

We\'re here to help you move

', + ), + 3 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + 3 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Property-Icon-1.png', + 'alt' => 'Property-Icon-1', + 'fullWidth' => false, + 'width' => '48px', + 'height' => '48px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + 1 => + array ( + 'type' => 'text', + 'text' => '

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur nec nisi quis ex.

', + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Property-Icon-2.png', + 'alt' => 'Property-Icon-2', + 'fullWidth' => false, + 'width' => '48px', + 'height' => '48px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + 1 => + array ( + 'type' => 'text', + 'text' => '

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur nec nisi quis ex.

', + ), + ), + ), + 2 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Property-Icon-3.png', + 'alt' => 'Property-Icon-3', + 'fullWidth' => false, + 'width' => '48px', + 'height' => '48px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + 1 => + array ( + 'type' => 'text', + 'text' => '

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur nec nisi quis ex.

', + ), + ), + ), + ), + ), + 4 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#ffffff', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '22.5px', + 'borderStyle' => 'solid', + 'borderWidth' => '1px', + 'borderColor' => '#8691be', + ), + ), + ), + 1 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + 5 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'text', + 'text' => '

We\'d love to keep you updated with our latest news.

+

Sign up to our newsletter now and you\'ll never miss a thing.

', + ), + 1 => + array ( + 'type' => 'button', + 'text' => 'Sign Up Now', + 'url' => '', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#8691be', + 'borderColor' => '#0074a2', + 'borderWidth' => '0px', + 'borderRadius' => '40px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Arial', + 'fontSize' => '18px', + 'fontWeight' => 'bold', + 'textAlign' => 'center', + ), + ), + ), + 2 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '24px', + ), + ), + ), + ), + ), + ), + ), + 6 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#6a7087', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '25px', + ), + ), + ), + 1 => + array ( + 'type' => 'footer', + 'text' => '

Unsubscribe | Manage subscription
Add your postal address here!

', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + 'text' => + array ( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '12px', + 'textAlign' => 'center', + ), + 'link' => + array ( + 'fontColor' => '#6cb7d4', + 'textDecoration' => 'none', + ), + ), + ), + 2 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '30px', + ), + ), + ), + ), + ), + ), + ), + ), + ), + 'globalStyles' => + array ( + 'text' => + array ( + 'fontColor' => '#000000', + 'fontFamily' => 'Arial', + 'fontSize' => '15px', + ), + 'h1' => + array ( + 'fontColor' => '#111111', + 'fontFamily' => 'Arial', + 'fontSize' => '40px', + ), + 'h2' => + array ( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '24px', + ), + 'h3' => + array ( + 'fontColor' => '#333333', + 'fontFamily' => 'Arial', + 'fontSize' => '22px', + ), + 'link' => + array ( + 'fontColor' => '#21759B', + 'textDecoration' => 'underline', + ), + 'wrapper' => + array ( + 'backgroundColor' => '#ffffff', + ), + 'body' => + array ( + 'backgroundColor' => '#6a7087', + ), + ), + 'blockDefaults' => + array ( + 'automatedLatestContent' => + array ( + 'amount' => '5', + 'withLayout' => false, + 'contentType' => 'post', + 'inclusionType' => 'include', + 'displayType' => 'excerpt', + 'titleFormat' => 'h1', + 'titleAlignment' => 'left', + 'titleIsLink' => false, + 'imageFullWidth' => false, + 'featuredImagePosition' => 'belowTitle', + 'showAuthor' => 'no', + 'authorPrecededBy' => 'Author:', + 'showCategories' => 'no', + 'categoriesPrecededBy' => 'Categories:', + 'readMoreType' => 'button', + 'readMoreText' => 'Read more', + 'readMoreButton' => + array ( + 'text' => 'Read more', + 'url' => '[postLink]', + 'context' => 'automatedLatestContent.readMoreButton', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2ea1cd', + 'borderColor' => '#0074a2', + 'borderWidth' => '1px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + ), + 'sortBy' => 'newest', + 'showDivider' => true, + 'divider' => + array ( + 'context' => 'automatedLatestContent.divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '3px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 'backgroundColor' => '#ffffff', + 'backgroundColorAlternate' => '#eeeeee', + ), + 'automatedLatestContentLayout' => + array ( + 'amount' => '5', + 'withLayout' => true, + 'contentType' => 'post', + 'inclusionType' => 'include', + 'displayType' => 'excerpt', + 'titleFormat' => 'h1', + 'titleAlignment' => 'left', + 'titleIsLink' => false, + 'imageFullWidth' => false, + 'featuredImagePosition' => 'alternate', + 'showAuthor' => 'no', + 'authorPrecededBy' => 'Author:', + 'showCategories' => 'no', + 'categoriesPrecededBy' => 'Categories:', + 'readMoreType' => 'button', + 'readMoreText' => 'Read more', + 'readMoreButton' => + array ( + 'text' => 'Read more', + 'url' => '[postLink]', + 'context' => 'automatedLatestContentLayout.readMoreButton', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2ea1cd', + 'borderColor' => '#0074a2', + 'borderWidth' => '1px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + ), + 'sortBy' => 'newest', + 'showDivider' => true, + 'divider' => + array ( + 'context' => 'automatedLatestContentLayout.divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '3px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 'backgroundColor' => '#ffffff', + 'backgroundColorAlternate' => '#eeeeee', + ), + 'button' => + array ( + 'text' => 'Button', + 'url' => '', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2ea1cd', + 'borderColor' => '#0074a2', + 'borderWidth' => '1px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + ), + 'divider' => + array ( + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '3px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 'footer' => + array ( + 'text' => '

Unsubscribe | Manage subscription
Add your postal address here!

', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + 'text' => + array ( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '12px', + 'textAlign' => 'center', + ), + 'link' => + array ( + 'fontColor' => '#6cb7d4', + 'textDecoration' => 'none', + ), + ), + ), + 'posts' => + array ( + 'amount' => '10', + 'withLayout' => true, + 'contentType' => 'post', + 'postStatus' => 'publish', + 'inclusionType' => 'include', + 'displayType' => 'excerpt', + 'titleFormat' => 'h1', + 'titleAlignment' => 'left', + 'titleIsLink' => false, + 'imageFullWidth' => false, + 'featuredImagePosition' => 'alternate', + 'showAuthor' => 'no', + 'authorPrecededBy' => 'Author:', + 'showCategories' => 'no', + 'categoriesPrecededBy' => 'Categories:', + 'readMoreType' => 'link', + 'readMoreText' => 'Read more', + 'readMoreButton' => + array ( + 'text' => 'Read more', + 'url' => '[postLink]', + 'context' => 'posts.readMoreButton', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2ea1cd', + 'borderColor' => '#0074a2', + 'borderWidth' => '1px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + ), + 'sortBy' => 'newest', + 'showDivider' => true, + 'divider' => + array ( + 'context' => 'posts.divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '3px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 'backgroundColor' => '#ffffff', + 'backgroundColorAlternate' => '#eeeeee', + ), + 'social' => + array ( + 'iconSet' => 'default', + 'icons' => + array ( + 0 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'facebook', + 'link' => 'http://www.facebook.com', + 'image' => $this->social_icon_url . '/01-social/Facebook.png?mailpoet_version=3.8.1', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Facebook', + ), + 1 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'twitter', + 'link' => 'http://www.twitter.com', + 'image' => $this->social_icon_url . '/01-social/Twitter.png?mailpoet_version=3.8.1', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Twitter', + ), + ), + ), + 'spacer' => + array ( + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + 'type' => 'spacer', + ), + 'header' => + array ( + 'text' => 'Display problems? Open this email in your web browser.', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + 'text' => + array ( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '12px', + 'textAlign' => 'center', + ), + 'link' => + array ( + 'fontColor' => '#6cb7d4', + 'textDecoration' => 'underline', + ), + ), + ), + ), + ); + } + + +} diff --git a/lib/Config/PopulatorData/Templates/Retro.php b/lib/Config/PopulatorData/Templates/Retro.php new file mode 100644 index 0000000000..ed05fa683f --- /dev/null +++ b/lib/Config/PopulatorData/Templates/Retro.php @@ -0,0 +1,1334 @@ +template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/retro'; + $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons'; + } + + function get() { + return array( + 'name' => __("Retro", 'mailpoet'), + 'categories' => json_encode(array('standard', 'sample')), + 'readonly' => 1, + 'thumbnail' => $this->getThumbnail(), + 'body' => json_encode($this->getBody()), + ); + } + + private function getThumbnail() { + return $this->template_image_url . '/retro.jpg'; + } + + private function getBody() { + return array ( + 'content' => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#f8f8f8', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/1980s-Header.jpg', + 'alt' => '1980s-Header', + 'fullWidth' => true, + 'width' => '1280px', + 'height' => '740px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + ), + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#ffffff', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '30px', + ), + ), + ), + 1 => + array ( + 'type' => 'text', + 'text' => '

Welcome back !

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

', + ), + 2 => + array ( + 'type' => 'divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '2px', + 'borderColor' => '#f36543', + ), + ), + ), + 3 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + 2 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/1980s-Download-1.jpg', + 'alt' => '1980s-Download-1', + 'fullWidth' => false, + 'width' => '364px', + 'height' => '291px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'text', + 'text' => '

Free Retro-Futuristic Font

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. In elementum nunc vel est congue, a venenatis nunc aliquet. Curabitur luctus, nulla et dignissim elementum, ipsum eros fermentum nulla, non cursus eros mi eu velit.

', + ), + 1 => + array ( + 'type' => 'button', + 'text' => 'Download Here', + 'url' => '', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#f36543', + 'borderColor' => '#f36543', + 'borderWidth' => '1px', + 'borderRadius' => '40px', + 'borderStyle' => 'solid', + 'width' => '150px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Arial', + 'fontSize' => '14px', + 'fontWeight' => 'bold', + 'textAlign' => 'left', + ), + ), + ), + ), + ), + ), + ), + 3 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + 4 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/1980s-Download-2.jpg', + 'alt' => '1980s-Download-2', + 'fullWidth' => false, + 'width' => '364px', + 'height' => '291px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'text', + 'text' => '

New UI Kit now available

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. In elementum nunc vel est congue, a venenatis nunc aliquet. Curabitur luctus, nulla et dignissim elementum, ipsum eros fermentum nulla, non cursus eros mi eu velit.

', + ), + 1 => + array ( + 'type' => 'button', + 'text' => 'Download Here', + 'url' => '', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#f36543', + 'borderColor' => '#f36543', + 'borderWidth' => '1px', + 'borderRadius' => '40px', + 'borderStyle' => 'solid', + 'width' => '150px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Arial', + 'fontSize' => '14px', + 'fontWeight' => 'bold', + 'textAlign' => 'left', + ), + ), + ), + ), + ), + ), + ), + 5 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + 6 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/1980s-Download-3.jpg', + 'alt' => '1980s-Download-3', + 'fullWidth' => false, + 'width' => '364px', + 'height' => '291px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'text', + 'text' => '

Free Retro Patterns

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. In elementum nunc vel est congue, a venenatis nunc aliquet. Curabitur luctus, nulla et dignissim elementum, ipsum eros fermentum nulla, non cursus eros mi eu velit.

', + ), + 1 => + array ( + 'type' => 'button', + 'text' => 'Download Here', + 'url' => '', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#f36543', + 'borderColor' => '#f36543', + 'borderWidth' => '1px', + 'borderRadius' => '40px', + 'borderStyle' => 'solid', + 'width' => '150px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Arial', + 'fontSize' => '14px', + 'fontWeight' => 'bold', + 'textAlign' => 'left', + ), + ), + ), + ), + ), + ), + ), + 7 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#12233c', + 'height' => '40px', + ), + ), + ), + ), + ), + ), + ), + 8 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => $this->template_image_url . '/1980s-Footer.jpg', + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '140px', + ), + ), + ), + 1 => + array ( + 'type' => 'text', + 'text' => '

Retro Downloads

+

To Your Inbox

+

Every Week

', + ), + 2 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '120px', + ), + ), + ), + ), + ), + ), + ), + 9 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#12233c', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + 10 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#12223b', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'footer', + 'text' => '

Unsubscribe | Manage your subscription
Add your postal address here!

', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + 'text' => + array ( + 'fontColor' => '#ffffff', + 'fontFamily' => 'Arial', + 'fontSize' => '12px', + 'textAlign' => 'left', + ), + 'link' => + array ( + 'fontColor' => '#f36543', + 'textDecoration' => 'underline', + ), + ), + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'social', + 'iconSet' => 'full-symbol-grey', + 'icons' => + array ( + 0 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'facebook', + 'link' => 'http://www.facebook.com', + 'image' => $this->social_icon_url . '/08-full-symbol-grey/Facebook.png', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Facebook', + ), + 1 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'twitter', + 'link' => 'http://www.twitter.com', + 'image' => $this->social_icon_url . '/08-full-symbol-grey/Twitter.png', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Twitter', + ), + 2 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'youtube', + 'link' => 'http://www.youtube.com', + 'image' => $this->social_icon_url . '/08-full-symbol-grey/Youtube.png', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Youtube', + ), + 3 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'email', + 'link' => '', + 'image' => $this->social_icon_url . '/08-full-symbol-grey/Email.png', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Email', + ), + ), + ), + ), + ), + ), + ), + 11 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#12233c', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + ), + ), + 'globalStyles' => + array ( + 'text' => + array ( + 'fontColor' => '#000000', + 'fontFamily' => 'Arial', + 'fontSize' => '14px', + ), + 'h1' => + array ( + 'fontColor' => '#111111', + 'fontFamily' => 'Verdana', + 'fontSize' => '30px', + ), + 'h2' => + array ( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '24px', + ), + 'h3' => + array ( + 'fontColor' => '#333333', + 'fontFamily' => 'Arial', + 'fontSize' => '18px', + ), + 'link' => + array ( + 'fontColor' => '#008282', + 'textDecoration' => 'underline', + ), + 'wrapper' => + array ( + 'backgroundColor' => '#ffffff', + ), + 'body' => + array ( + 'backgroundColor' => '#12233c', + ), + ), + 'blockDefaults' => + array ( + 'automatedLatestContent' => + array ( + 'amount' => '5', + 'withLayout' => false, + 'contentType' => 'post', + 'inclusionType' => 'include', + 'displayType' => 'excerpt', + 'titleFormat' => 'h1', + 'titleAlignment' => 'left', + 'titleIsLink' => false, + 'imageFullWidth' => false, + 'featuredImagePosition' => 'belowTitle', + 'showAuthor' => 'no', + 'authorPrecededBy' => 'Author:', + 'showCategories' => 'no', + 'categoriesPrecededBy' => 'Categories:', + 'readMoreType' => 'button', + 'readMoreText' => 'Read more', + 'readMoreButton' => + array ( + 'text' => 'Read more', + 'url' => '[postLink]', + 'context' => 'automatedLatestContent.readMoreButton', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2ea1cd', + 'borderColor' => '#0074a2', + 'borderWidth' => '1px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + ), + 'sortBy' => 'newest', + 'showDivider' => true, + 'divider' => + array ( + 'context' => 'automatedLatestContent.divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '3px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 'backgroundColor' => '#ffffff', + 'backgroundColorAlternate' => '#eeeeee', + ), + 'automatedLatestContentLayout' => + array ( + 'amount' => '5', + 'withLayout' => true, + 'contentType' => 'post', + 'inclusionType' => 'include', + 'displayType' => 'excerpt', + 'titleFormat' => 'h1', + 'titleAlignment' => 'left', + 'titleIsLink' => false, + 'imageFullWidth' => false, + 'featuredImagePosition' => 'alternate', + 'showAuthor' => 'no', + 'authorPrecededBy' => 'Author:', + 'showCategories' => 'no', + 'categoriesPrecededBy' => 'Categories:', + 'readMoreType' => 'button', + 'readMoreText' => 'Read more', + 'readMoreButton' => + array ( + 'text' => 'Read more', + 'url' => '[postLink]', + 'context' => 'automatedLatestContentLayout.readMoreButton', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2ea1cd', + 'borderColor' => '#0074a2', + 'borderWidth' => '1px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + ), + 'sortBy' => 'newest', + 'showDivider' => true, + 'divider' => + array ( + 'context' => 'automatedLatestContentLayout.divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '3px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 'backgroundColor' => '#ffffff', + 'backgroundColorAlternate' => '#eeeeee', + ), + 'button' => + array ( + 'text' => 'Button', + 'url' => '', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2ea1cd', + 'borderColor' => '#0074a2', + 'borderWidth' => '1px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + ), + 'divider' => + array ( + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '2px', + 'borderColor' => '#f36543', + ), + ), + 'type' => 'divider', + ), + 'footer' => + array ( + 'text' => '

Unsubscribe | Manage subscription
Add your postal address here!

', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + 'text' => + array ( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '12px', + 'textAlign' => 'center', + ), + 'link' => + array ( + 'fontColor' => '#6cb7d4', + 'textDecoration' => 'none', + ), + ), + ), + 'posts' => + array ( + 'amount' => '10', + 'withLayout' => true, + 'contentType' => 'post', + 'postStatus' => 'publish', + 'inclusionType' => 'include', + 'displayType' => 'excerpt', + 'titleFormat' => 'h1', + 'titleAlignment' => 'left', + 'titleIsLink' => false, + 'imageFullWidth' => false, + 'featuredImagePosition' => 'alternate', + 'showAuthor' => 'no', + 'authorPrecededBy' => 'Author:', + 'showCategories' => 'no', + 'categoriesPrecededBy' => 'Categories:', + 'readMoreType' => 'link', + 'readMoreText' => 'Read more', + 'readMoreButton' => + array ( + 'text' => 'Read more', + 'url' => '[postLink]', + 'context' => 'posts.readMoreButton', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2ea1cd', + 'borderColor' => '#0074a2', + 'borderWidth' => '1px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + ), + 'sortBy' => 'newest', + 'showDivider' => true, + 'divider' => + array ( + 'context' => 'posts.divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '3px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 'backgroundColor' => '#ffffff', + 'backgroundColorAlternate' => '#eeeeee', + ), + 'social' => + array ( + 'iconSet' => 'default', + 'icons' => + array ( + 0 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'facebook', + 'link' => 'http://www.facebook.com', + 'image' => $this->social_icon_url . '/01-social/Facebook.png', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Facebook', + ), + 1 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'twitter', + 'link' => 'http://www.twitter.com', + 'image' => $this->social_icon_url . '/01-social/Twitter.png', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Twitter', + ), + ), + ), + 'spacer' => + array ( + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '140px', + ), + ), + 'type' => 'spacer', + ), + 'header' => + array ( + 'text' => 'Display problems? Open this email in your web browser.', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + 'text' => + array ( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '12px', + 'textAlign' => 'center', + ), + 'link' => + array ( + 'fontColor' => '#6cb7d4', + 'textDecoration' => 'underline', + ), + ), + ), + ), + ); + } + + +} diff --git a/lib/Config/PopulatorData/Templates/RetroComputingMagazine.php b/lib/Config/PopulatorData/Templates/RetroComputingMagazine.php new file mode 100644 index 0000000000..ec95046f24 --- /dev/null +++ b/lib/Config/PopulatorData/Templates/RetroComputingMagazine.php @@ -0,0 +1,662 @@ +template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/retro_computing_magazine'; + $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons'; + } + + function get() { + return array( + 'name' => __("Retro Computing Magazine", 'mailpoet'), + 'categories' => json_encode(array('standard', 'sample')), + 'readonly' => 1, + 'thumbnail' => $this->getThumbnail(), + 'body' => json_encode($this->getBody()), + ); + } + + private function getThumbnail() { + return $this->template_image_url . '/retro_computing_magazine.jpg'; + } + + private function getBody() { + return array ( + 'content' => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#4473a1', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#008282', + 'height' => '40px', + ), + ), + ), + ), + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#f8f8f8', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Windows94-Header.png', + 'alt' => 'Windows94-Header', + 'fullWidth' => true, + 'width' => '1280px', + 'height' => '740px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + ), + ), + ), + ), + 2 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#ffffff', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'header', + 'text' => '

Display problems? Open this email in your web browser.

', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#008282', + ), + 'text' => + array ( + 'fontColor' => '#222222', + 'fontFamily' => 'Courier New', + 'fontSize' => '12px', + 'textAlign' => 'left', + ), + 'link' => + array ( + 'fontColor' => '#6cb7d4', + 'textDecoration' => 'underline', + ), + ), + ), + 1 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '30px', + ), + ), + ), + 2 => + array ( + 'type' => 'text', + 'text' => '

We\'re upgrading!

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. In elementum nunc vel est congue, a venenatis nunc aliquet. Curabitur luctus, nulla et dignissim elementum, ipsum eros fermentum nulla, non cursus eros mi eu velit. Nunc ex nibh, porta vulputate pharetra ac, placerat sed orci. Etiam enim enim, aliquet nec ligula in, ultrices iaculis dolor. Suspendisse potenti. Praesent fringilla augue ut lorem mattis, vitae fringilla nunc faucibus.

+

+

Quisque in leo felis. Etiam at libero et enim tincidunt scelerisque. Ut felis lectus, imperdiet quis justo quis, elementum sagittis tellus. Sed elementum, lacus at iaculis vestibulum, nunc leo gravida nisi, sed dapibus nisi odio ac ex. Aliquam id arcu dictum, cursus quam id, eleifend libero.

', + ), + 3 => + array ( + 'type' => 'divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'ridge', + 'borderWidth' => '3px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 4 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 5 => + array ( + 'type' => 'text', + 'text' => '

Latest News

', + ), + ), + ), + ), + ), + 3 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'text', + 'text' => '

What is it like to use a Windows 98 PC in 2017?

', + ), + 1 => + array ( + 'type' => 'text', + 'text' => '

Computers are much more advanced than they were even a few years ago, but of course we all like to complain about the dumb things they sometimes do. It’s easy to forget how clunky things used to be, though...

+

Read more

', + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'text', + 'text' => '

Windows 95 still finds life online

', + ), + 1 => + array ( + 'type' => 'text', + 'text' => '

Microsoft’s Windows 95 has reached the ripe old age of 22 this year and to commemorate this milestone, TheNextWeb goes into some details about the operating system that users may have missed over the years...

+

Read more

', + ), + ), + ), + 2 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'text', + 'text' => '

New Sinclair ZX Spectrum Fully Funded

', + ), + 1 => + array ( + 'type' => 'text', + 'text' => '

The new Sinclair ZX Spectrum Next home computer which was launched on Kickstarter to mark the 35th birthday of the original Spectrum produced by Sinclair Research has been fully funded in less than 48 hours...

+

Read more

', + ), + ), + ), + ), + ), + 4 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '35px', + ), + ), + ), + 1 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#008282', + 'height' => '50px', + ), + ), + ), + ), + ), + ), + ), + 5 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#008282', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'text', + 'text' => '

Did you know?

+

At the time of creation and development, the microcomputers in Japan were not powerful enough to handle the complex tasks related to the design and programming of Space Invaders. Nishikado then designed his own hardware and developmental tools to make the game a reality.

+

', + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Windows94-Today.png', + 'alt' => 'Windows94-Today', + 'fullWidth' => false, + 'width' => '364px', + 'height' => '291px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + ), + ), + ), + ), + 6 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#008282', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + 7 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#f8f8f8', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 1 => + array ( + 'type' => 'text', + 'text' => '

Let\'s get social!

', + ), + 2 => + array ( + 'type' => 'social', + 'iconSet' => 'grey', + 'icons' => + array ( + 0 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'facebook', + 'link' => 'http://www.facebook.com', + 'image' => $this->social_icon_url . '/02-grey/Facebook.png?mailpoet_version=3.0.0-rc.1.0.4', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Facebook', + ), + 1 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'twitter', + 'link' => 'http://www.twitter.com', + 'image' => $this->social_icon_url . '/02-grey/Twitter.png?mailpoet_version=3.0.0-rc.1.0.4', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Twitter', + ), + 2 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'youtube', + 'link' => 'http://www.youtube.com', + 'image' => $this->social_icon_url . '/02-grey/Youtube.png?mailpoet_version=3.0.0-rc.1.0.4', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Youtube', + ), + 3 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'email', + 'link' => '', + 'image' => $this->social_icon_url . '/02-grey/Email.png?mailpoet_version=3.0.0-rc.1.0.4', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Email', + ), + ), + ), + 3 => + array ( + 'type' => 'footer', + 'text' => '

Unsubscribe | Manage your subscription
Add your postal address here!

', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + 'text' => + array ( + 'fontColor' => '#222222', + 'fontFamily' => 'Courier New', + 'fontSize' => '12px', + 'textAlign' => 'center', + ), + 'link' => + array ( + 'fontColor' => '#008282', + 'textDecoration' => 'none', + ), + ), + ), + ), + ), + ), + ), + ), + ), + 'globalStyles' => + array ( + 'text' => + array ( + 'fontColor' => '#000000', + 'fontFamily' => 'Courier New', + 'fontSize' => '14px', + ), + 'h1' => + array ( + 'fontColor' => '#111111', + 'fontFamily' => 'Courier New', + 'fontSize' => '30px', + ), + 'h2' => + array ( + 'fontColor' => '#222222', + 'fontFamily' => 'Courier New', + 'fontSize' => '24px', + ), + 'h3' => + array ( + 'fontColor' => '#333333', + 'fontFamily' => 'Courier New', + 'fontSize' => '18px', + ), + 'link' => + array ( + 'fontColor' => '#008282', + 'textDecoration' => 'underline', + ), + 'wrapper' => + array ( + 'backgroundColor' => '#ffffff', + ), + 'body' => + array ( + 'backgroundColor' => '#008282', + ), + ), + ); + } + + +} \ No newline at end of file diff --git a/lib/Config/PopulatorData/Templates/RssSimpleNews.php b/lib/Config/PopulatorData/Templates/RssSimpleNews.php new file mode 100644 index 0000000000..08e0ebdf8f --- /dev/null +++ b/lib/Config/PopulatorData/Templates/RssSimpleNews.php @@ -0,0 +1,700 @@ +template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/rss-simple-news'; + $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons'; + } + + function get() { + return array( + 'name' => __("Stripped RSS Style Layout", 'mailpoet'), + 'categories' => json_encode(array('notification', 'sample')), + 'readonly' => 1, + 'thumbnail' => $this->getThumbnail(), + 'body' => json_encode($this->getBody()), + ); + } + + private function getThumbnail() { + return $this->template_image_url . '/rss-simple-news.jpg'; + } + + private function getBody() { + return array ( + 'content' => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#f4f4f4', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '25px', + ), + ), + ), + ), + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/RSS-Logo-2.png', + 'alt' => 'RSS-Logo-2', + 'fullWidth' => true, + 'width' => '210px', + 'height' => '90px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + 2 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '24px', + ), + ), + ), + 1 => + array ( + 'type' => 'social', + 'iconSet' => 'full-symbol-color', + 'icons' => + array ( + 0 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'facebook', + 'link' => 'http://www.facebook.com', + 'image' => $this->social_icon_url . '/06-full-symbol-color/Facebook.png?mailpoet_version=3.0.0-rc.2.0.0', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Facebook', + ), + 1 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'twitter', + 'link' => 'http://www.twitter.com', + 'image' => $this->social_icon_url . '/06-full-symbol-color/Twitter.png?mailpoet_version=3.0.0-rc.2.0.0', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Twitter', + ), + 2 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'website', + 'link' => '', + 'image' => $this->social_icon_url . '/06-full-symbol-color/Website.png?mailpoet_version=3.0.0-rc.2.0.0', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Website', + ), + ), + ), + ), + ), + ), + ), + 2 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#ffffff', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'text', + 'text' => '

Latest RSS Simple Posts

+

Week 23: 23/19/19

', + ), + 1 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 2 => + array ( + 'type' => 'automatedLatestContent', + 'amount' => '3', + 'contentType' => 'post', + 'terms' => + array ( + ), + 'inclusionType' => 'include', + 'displayType' => 'excerpt', + 'titleFormat' => 'h3', + 'titleAlignment' => 'left', + 'titleIsLink' => true, + 'imageFullWidth' => false, + 'featuredImagePosition' => 'belowTitle', + 'showAuthor' => 'no', + 'authorPrecededBy' => 'Author:', + 'showCategories' => 'no', + 'categoriesPrecededBy' => 'Categories:', + 'readMoreType' => 'link', + 'readMoreText' => 'Read more', + 'readMoreButton' => + array ( + 'type' => 'button', + 'text' => 'Read more', + 'url' => '[postLink]', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2ea1cd', + 'borderColor' => '#0074a2', + 'borderWidth' => '1px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + 'context' => 'automatedLatestContent.readMoreButton', + ), + 'sortBy' => 'newest', + 'showDivider' => true, + 'divider' => + array ( + 'type' => 'divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '1px', + 'borderColor' => '#efe7f0', + ), + ), + 'context' => 'automatedLatestContent.divider', + ), + 'backgroundColor' => '#ffffff', + 'backgroundColorAlternate' => '#eeeeee', + ), + 3 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + 3 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#f4f4f4', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '30px', + ), + ), + ), + 1 => + array ( + 'type' => 'text', + 'text' => '

RSS Simple

+

Unsubscribe | Manage subscription

+

Add your postal address here!

', + ), + ), + ), + ), + ), + ), + ), + 'globalStyles' => + array ( + 'text' => + array ( + 'fontColor' => '#000000', + 'fontFamily' => 'Arial', + 'fontSize' => '15px', + ), + 'h1' => + array ( + 'fontColor' => '#111111', + 'fontFamily' => 'Arial', + 'fontSize' => '30px', + ), + 'h2' => + array ( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '24px', + ), + 'h3' => + array ( + 'fontColor' => '#3478f5', + 'fontFamily' => 'Arial', + 'fontSize' => '20px', + ), + 'link' => + array ( + 'fontColor' => '#3478f5', + 'textDecoration' => 'none', + ), + 'wrapper' => + array ( + 'backgroundColor' => '#ffffff', + ), + 'body' => + array ( + 'backgroundColor' => '#f4f4f4', + ), + ), + 'blockDefaults' => + array ( + 'automatedLatestContent' => + array ( + 'amount' => '3', + 'contentType' => 'post', + 'inclusionType' => 'include', + 'displayType' => 'excerpt', + 'titleFormat' => 'h3', + 'titleAlignment' => 'left', + 'titleIsLink' => true, + 'imageFullWidth' => false, + 'featuredImagePosition' => 'belowTitle', + 'showAuthor' => 'no', + 'authorPrecededBy' => 'Author:', + 'showCategories' => 'no', + 'categoriesPrecededBy' => 'Categories:', + 'readMoreType' => 'link', + 'readMoreText' => 'Read more', + 'readMoreButton' => + array ( + 'text' => 'Read more', + 'url' => '[postLink]', + 'context' => 'automatedLatestContent.readMoreButton', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2ea1cd', + 'borderColor' => '#0074a2', + 'borderWidth' => '1px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + 'type' => 'button', + ), + 'sortBy' => 'newest', + 'showDivider' => true, + 'divider' => + array ( + 'context' => 'automatedLatestContent.divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '1px', + 'borderColor' => '#efe7f0', + ), + ), + 'type' => 'divider', + ), + 'backgroundColor' => '#ffffff', + 'backgroundColorAlternate' => '#eeeeee', + 'type' => 'automatedLatestContent', + 'terms' => + array ( + ), + ), + 'button' => + array ( + 'text' => 'Read more', + 'url' => '[postLink]', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2ea1cd', + 'borderColor' => '#0074a2', + 'borderWidth' => '1px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + 'type' => 'button', + ), + 'divider' => + array ( + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '3px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 'footer' => + array ( + 'text' => '

Unsubscribe | Manage subscription
Add your postal address here!

', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + 'text' => + array ( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '12px', + 'textAlign' => 'center', + ), + 'link' => + array ( + 'fontColor' => '#6cb7d4', + 'textDecoration' => 'none', + ), + ), + ), + 'posts' => + array ( + 'amount' => '10', + 'contentType' => 'post', + 'postStatus' => 'publish', + 'inclusionType' => 'include', + 'displayType' => 'excerpt', + 'titleFormat' => 'h1', + 'titleAlignment' => 'left', + 'titleIsLink' => false, + 'imageFullWidth' => false, + 'featuredImagePosition' => 'belowTitle', + 'showAuthor' => 'no', + 'authorPrecededBy' => 'Author:', + 'showCategories' => 'no', + 'categoriesPrecededBy' => 'Categories:', + 'readMoreType' => 'link', + 'readMoreText' => 'Read more', + 'readMoreButton' => + array ( + 'text' => 'Read more', + 'url' => '[postLink]', + 'context' => 'posts.readMoreButton', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2ea1cd', + 'borderColor' => '#0074a2', + 'borderWidth' => '1px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + ), + 'sortBy' => 'newest', + 'showDivider' => true, + 'divider' => + array ( + 'context' => 'posts.divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '3px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 'backgroundColor' => '#ffffff', + 'backgroundColorAlternate' => '#eeeeee', + ), + 'social' => + array ( + 'iconSet' => 'default', + 'icons' => + array ( + 0 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'facebook', + 'link' => 'http://www.facebook.com', + 'image' => $this->social_icon_url . '/01-social/Facebook.png?mailpoet_version=3.7.1', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Facebook', + ), + 1 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'twitter', + 'link' => 'http://www.twitter.com', + 'image' => $this->social_icon_url . '/01-social/Twitter.png?mailpoet_version=3.7.1', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Twitter', + ), + ), + ), + 'spacer' => + array ( + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '40px', + ), + ), + ), + 'header' => + array ( + 'text' => 'Display problems? Open this email in your web browser.', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + 'text' => + array ( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '12px', + 'textAlign' => 'center', + ), + 'link' => + array ( + 'fontColor' => '#6cb7d4', + 'textDecoration' => 'underline', + ), + ), + ), + ), + ); + } + +} diff --git a/lib/Config/PopulatorData/Templates/ScienceWeekly.php b/lib/Config/PopulatorData/Templates/ScienceWeekly.php index ecfe49b151..509b6f20ad 100644 --- a/lib/Config/PopulatorData/Templates/ScienceWeekly.php +++ b/lib/Config/PopulatorData/Templates/ScienceWeekly.php @@ -15,7 +15,7 @@ class ScienceWeekly { function get() { return array( 'name' => __("Science Weekly", 'mailpoet'), - 'categories' => json_encode(array('standard', 'sample')), + 'categories' => json_encode(array('notification', 'sample')), 'readonly' => 1, 'thumbnail' => $this->getThumbnail(), 'body' => json_encode($this->getBody()), @@ -23,655 +23,1207 @@ class ScienceWeekly { } private function getBody() { - return array( - 'content' => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'container', - 'orientation' => 'horizontal', - 'styles' => array( - 'block' => array( - 'backgroundColor' => '#ffffff', - ), + return array ( + 'content' => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', ), - 'blocks' => array( - 0 => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', ), - 'blocks' => array( - 0 => array( - 'type' => 'image', - 'link' => '', - 'src' => $this->template_image_url . '/Science-Logo.png', - 'alt' => 'Science-Logo', - 'fullWidth' => true, - 'width' => '1280px', - 'height' => '300px', - 'styles' => array( - 'block' => array( - 'textAlign' => 'center', - ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', ), - ), - 1 => array( - 'type' => 'image', - 'link' => '', - 'src' => $this->template_image_url . '/Health-Mag-Title-2.png', - 'alt' => 'Health-Mag-Title-2', - 'fullWidth' => true, - 'width' => '1280px', - 'height' => '300px', - 'styles' => array( - 'block' => array( - 'textAlign' => 'center', - ), - ), - ), - ), - ), - ), - ), - 1 => array( - 'type' => 'container', - 'orientation' => 'horizontal', - 'styles' => array( - 'block' => array( - 'backgroundColor' => '#b1b6d1', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'text', - 'text' => '

Display problems? Open this email in your web browser.

', - ), - ), - ), - ), - ), - 2 => array( - 'type' => 'container', - 'orientation' => 'horizontal', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'spacer', - 'styles' => array( - 'block' => array( - 'backgroundColor' => '#b1b6d1', - 'height' => '20px', - ), - ), - ), - ), - ), - ), - ), - 3 => array( - 'type' => 'container', - 'orientation' => 'horizontal', - 'styles' => array( - 'block' => array( - 'backgroundColor' => '#ffffff', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'spacer', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'height' => '20px', - ), - ), - ), - 1 => array( - 'type' => 'automatedLatestContent', - 'amount' => '2', - 'contentType' => 'post', - 'terms' => array(), - 'inclusionType' => 'include', - 'displayType' => 'excerpt', - 'titleFormat' => 'h1', - 'titleAlignment' => 'left', - 'titleIsLink' => false, - 'imageFullWidth' => false, - 'featuredImagePosition' => 'belowTitle', - 'showAuthor' => 'no', - 'authorPrecededBy' => 'Author:', - 'showCategories' => 'no', - 'categoriesPrecededBy' => 'Categories:', - 'readMoreType' => 'button', - 'readMoreText' => 'Read more', - 'readMoreButton' => array( - 'type' => 'button', - 'text' => 'Read more', - 'url' => '[postLink]', - 'styles' => array( - 'block' => array( - 'backgroundColor' => '#2b2d37', - 'borderColor' => '#112d31', - 'borderWidth' => '1px', - 'borderRadius' => '21px', - 'borderStyle' => 'solid', - 'width' => '114px', - 'lineHeight' => '33px', - 'fontColor' => '#ffffff', - 'fontFamily' => 'Arial', - 'fontSize' => '16px', - 'fontWeight' => 'normal', - 'textAlign' => 'left', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#ffffff', ), - ), ), - 'sortBy' => 'newest', - 'showDivider' => true, - 'divider' => array( - 'type' => 'divider', - 'styles' => array( - 'block' => array( + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Science-Logo.png', + 'alt' => 'Science-Logo', + 'fullWidth' => true, + 'width' => '1280px', + 'height' => '300px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + 1 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Health-Mag-Title-22.png', + 'alt' => 'Health-Mag-Title-2', + 'fullWidth' => true, + 'width' => '1280px', + 'height' => '214px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + ), + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#b1b6d1', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'text', + 'text' => '

The latest news from the world of science

', + ), + ), + ), + ), + ), + 2 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#ffffff', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 1 => + array ( + 'type' => 'automatedLatestContent', + 'withLayout' => false, + 'amount' => '2', + 'contentType' => 'post', + 'terms' => + array ( + ), + 'inclusionType' => 'include', + 'displayType' => 'excerpt', + 'titleFormat' => 'h1', + 'titleAlignment' => 'left', + 'titleIsLink' => false, + 'imageFullWidth' => false, + 'featuredImagePosition' => 'belowTitle', + 'showAuthor' => 'no', + 'authorPrecededBy' => 'Author:', + 'showCategories' => 'no', + 'categoriesPrecededBy' => 'Categories:', + 'readMoreType' => 'button', + 'readMoreText' => 'Read more', + 'readMoreButton' => + array ( + 'type' => 'button', + 'text' => 'Read more', + 'url' => '[postLink]', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2b2d37', + 'borderColor' => '#112d31', + 'borderWidth' => '1px', + 'borderRadius' => '21px', + 'borderStyle' => 'solid', + 'width' => '114px', + 'lineHeight' => '33px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Arial', + 'fontSize' => '16px', + 'fontWeight' => 'normal', + 'textAlign' => 'left', + ), + ), + ), + 'sortBy' => 'newest', + 'showDivider' => true, + 'divider' => + array ( + 'type' => 'divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '3px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 'backgroundColor' => '#ffffff', + 'backgroundColorAlternate' => '#eeeeee', + ), + ), + ), + ), + ), + 3 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#b1b6d1', + 'height' => '20px', + ), + ), + ), + 1 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Health-Mag-End-1.png', + 'alt' => 'Health-Mag-End', + 'fullWidth' => true, + 'width' => '1280px', + 'height' => '50px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + 2 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2b2d37', + 'height' => '35px', + ), + ), + ), + ), + ), + ), + ), + 4 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Health-Mag-Promo-Start.png', + 'alt' => 'Health-Mag-Promo-Start', + 'fullWidth' => true, + 'width' => '1280px', + 'height' => '50px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + ), + ), + ), + ), + 5 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '50px', + ), + ), + ), + 1 => + array ( + 'type' => 'text', + 'text' => '

Download our app!

+

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.

+

+

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.

+

', + ), + 2 => + array ( + 'type' => 'button', + 'text' => 'Download Now', + 'url' => '', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2b2d37', + 'borderColor' => '#2b2d37', + 'borderWidth' => '1px', + 'borderRadius' => '40px', + 'borderStyle' => 'solid', + 'width' => '144px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Arial', + 'fontSize' => '16px', + 'fontWeight' => 'normal', + 'textAlign' => 'left', + ), + ), + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Health-Mag-Phone.png', + 'alt' => 'Health-Mag-Phone', + 'fullWidth' => false, + 'width' => '400px', + 'height' => '573px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + ), + ), + ), + ), + 6 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Health-Mag-Promo-End.png', + 'alt' => 'Health-Mag-Promo-End', + 'fullWidth' => true, + 'width' => '1280px', + 'height' => '50px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + ), + ), + ), + ), + 7 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2b2d37', + 'height' => '35px', + ), + ), + ), + 1 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Health-Mag-Promo-Start.png', + 'alt' => 'Health-Mag-Promo-Start', + 'fullWidth' => true, + 'width' => '1280px', + 'height' => '50px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + ), + ), + ), + ), + 8 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'text', + 'text' => '

Keep In Touch With Us

', + ), + 1 => + array ( + 'type' => 'social', + 'iconSet' => 'circles', + 'icons' => + array ( + 0 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'facebook', + 'link' => 'http://www.facebook.com', + 'image' => $this->social_icon_url . '/03-circles/Facebook.png', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Facebook', + ), + 1 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'twitter', + 'link' => 'http://www.twitter.com', + 'image' => $this->social_icon_url . '/03-circles/Twitter.png', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Twitter', + ), + 2 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'youtube', + 'link' => 'http://www.youtube.com', + 'image' => $this->social_icon_url . '/03-circles/Youtube.png', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Youtube', + ), + 3 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'instagram', + 'link' => 'http://instagram.com', + 'image' => $this->social_icon_url . '/03-circles/Instagram.png', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Instagram', + ), + ), + ), + ), + ), + ), + ), + 9 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Health-Mag-Promo-End.png', + 'alt' => 'Health-Mag-Promo-End', + 'fullWidth' => true, + 'width' => '1280px', + 'height' => '50px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + 1 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2b2d37', + 'height' => '26px', + ), + ), + ), + 2 => + array ( + 'type' => 'footer', + 'text' => '

Unsubscribe | Manage subscription
Add your postal address here!

', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2b2d37', + ), + 'text' => + array ( + 'fontColor' => '#d6d6d6', + 'fontFamily' => 'Arial', + 'fontSize' => '12px', + 'textAlign' => 'center', + ), + 'link' => + array ( + 'fontColor' => '#6cb7d4', + 'textDecoration' => 'none', + ), + ), + ), + 3 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2b2d37', + 'height' => '40px', + ), + ), + ), + ), + ), + ), + ), + ), + ), + 'globalStyles' => + array ( + 'text' => + array ( + 'fontColor' => '#000000', + 'fontFamily' => 'Arial', + 'fontSize' => '15px', + ), + 'h1' => + array ( + 'fontColor' => '#111111', + 'fontFamily' => 'Arial', + 'fontSize' => '26px', + ), + 'h2' => + array ( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '22px', + ), + 'h3' => + array ( + 'fontColor' => '#333333', + 'fontFamily' => 'Arial', + 'fontSize' => '20px', + ), + 'link' => + array ( + 'fontColor' => '#21759B', + 'textDecoration' => 'underline', + ), + 'wrapper' => + array ( + 'backgroundColor' => '#ffffff', + ), + 'body' => + array ( + 'backgroundColor' => '#2b2d37', + ), + ), + 'blockDefaults' => + array ( + 'automatedLatestContent' => + array ( + 'amount' => '5', + 'withLayout' => false, + 'contentType' => 'post', + 'inclusionType' => 'include', + 'displayType' => 'excerpt', + 'titleFormat' => 'h1', + 'titleAlignment' => 'left', + 'titleIsLink' => false, + 'imageFullWidth' => false, + 'featuredImagePosition' => 'belowTitle', + 'showAuthor' => 'no', + 'authorPrecededBy' => 'Author:', + 'showCategories' => 'no', + 'categoriesPrecededBy' => 'Categories:', + 'readMoreType' => 'button', + 'readMoreText' => 'Read more', + 'readMoreButton' => + array ( + 'text' => 'Read more', + 'url' => '[postLink]', + 'context' => 'automatedLatestContent.readMoreButton', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2ea1cd', + 'borderColor' => '#0074a2', + 'borderWidth' => '1px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + ), + 'sortBy' => 'newest', + 'showDivider' => true, + 'divider' => + array ( + 'context' => 'automatedLatestContent.divider', + 'styles' => + array ( + 'block' => + array ( 'backgroundColor' => 'transparent', 'padding' => '13px', 'borderStyle' => 'solid', 'borderWidth' => '3px', 'borderColor' => '#aaaaaa', ), - ), ), - 'backgroundColor' => '#ffffff', - 'backgroundColorAlternate' => '#eeeeee', - ), ), - ), + 'backgroundColor' => '#ffffff', + 'backgroundColorAlternate' => '#eeeeee', ), - ), - 4 => array( - 'type' => 'container', - 'orientation' => 'horizontal', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), + 'automatedLatestContentLayout' => + array ( + 'amount' => '5', + 'withLayout' => true, + 'contentType' => 'post', + 'inclusionType' => 'include', + 'displayType' => 'excerpt', + 'titleFormat' => 'h1', + 'titleAlignment' => 'left', + 'titleIsLink' => false, + 'imageFullWidth' => false, + 'featuredImagePosition' => 'alternate', + 'showAuthor' => 'no', + 'authorPrecededBy' => 'Author:', + 'showCategories' => 'no', + 'categoriesPrecededBy' => 'Categories:', + 'readMoreType' => 'button', + 'readMoreText' => 'Read more', + 'readMoreButton' => + array ( + 'text' => 'Read more', + 'url' => '[postLink]', + 'context' => 'automatedLatestContentLayout.readMoreButton', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2ea1cd', + 'borderColor' => '#0074a2', + 'borderWidth' => '1px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + ), + 'sortBy' => 'newest', + 'showDivider' => true, + 'divider' => + array ( + 'context' => 'automatedLatestContentLayout.divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '3px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 'backgroundColor' => '#ffffff', + 'backgroundColorAlternate' => '#eeeeee', ), - 'blocks' => array( - 0 => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), + 'button' => + array ( + 'text' => 'Read more', + 'url' => '[postLink]', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2ea1cd', + 'borderColor' => '#0074a2', + 'borderWidth' => '1px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), ), - 'blocks' => array( - 0 => array( - 'type' => 'spacer', - 'styles' => array( - 'block' => array( - 'backgroundColor' => '#ffffff', - 'height' => '30px', - ), - ), - ), - 1 => array( - 'type' => 'spacer', - 'styles' => array( - 'block' => array( - 'backgroundColor' => '#b1b6d1', - 'height' => '20px', - ), - ), - ), - 2 => array( - 'type' => 'image', - 'link' => '', - 'src' => $this->template_image_url . '/Health-Mag-End-1.png', - 'alt' => 'Health-Mag-End', - 'fullWidth' => true, - 'width' => '1280px', - 'height' => '50px', - 'styles' => array( - 'block' => array( - 'textAlign' => 'center', - ), - ), - ), - 3 => array( - 'type' => 'spacer', - 'styles' => array( - 'block' => array( - 'backgroundColor' => '#2b2d37', - 'height' => '35px', - ), - ), - ), - ), - ), + 'type' => 'button', ), - ), - 5 => array( - 'type' => 'container', - 'orientation' => 'horizontal', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'image', - 'link' => '', - 'src' => $this->template_image_url . '/Health-Mag-Promo-Start.png', - 'alt' => 'Health-Mag-Promo-Start', - 'fullWidth' => true, - 'width' => '1280px', - 'height' => '50px', - 'styles' => array( - 'block' => array( - 'textAlign' => 'center', - ), + 'divider' => + array ( + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '3px', + 'borderColor' => '#aaaaaa', ), - ), ), - ), + 'type' => 'divider', ), - ), - 6 => array( - 'type' => 'container', - 'orientation' => 'horizontal', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), + 'footer' => + array ( + 'text' => '

Unsubscribe | Manage subscription
Add your postal address here!

', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + 'text' => + array ( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '12px', + 'textAlign' => 'center', + ), + 'link' => + array ( + 'fontColor' => '#6cb7d4', + 'textDecoration' => 'none', + ), + ), ), - 'blocks' => array( - 0 => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'spacer', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'height' => '50px', - ), + 'posts' => + array ( + 'amount' => '10', + 'withLayout' => true, + 'contentType' => 'post', + 'postStatus' => 'publish', + 'inclusionType' => 'include', + 'displayType' => 'excerpt', + 'titleFormat' => 'h1', + 'titleAlignment' => 'left', + 'titleIsLink' => false, + 'imageFullWidth' => false, + 'featuredImagePosition' => 'alternate', + 'showAuthor' => 'no', + 'authorPrecededBy' => 'Author:', + 'showCategories' => 'no', + 'categoriesPrecededBy' => 'Categories:', + 'readMoreType' => 'link', + 'readMoreText' => 'Read more', + 'readMoreButton' => + array ( + 'text' => 'Read more', + 'url' => '[postLink]', + 'context' => 'posts.readMoreButton', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2ea1cd', + 'borderColor' => '#0074a2', + 'borderWidth' => '1px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), ), - ), - 1 => array( - 'type' => 'text', - 'text' => '

Download our app!

-

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.

-

-

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.

-

', - ), - 2 => array( - 'type' => 'button', - 'text' => 'Download Now', - 'url' => '', - 'styles' => array( - 'block' => array( - 'backgroundColor' => '#2b2d37', - 'borderColor' => '#2b2d37', - 'borderWidth' => '1px', - 'borderRadius' => '40px', - 'borderStyle' => 'solid', - 'width' => '144px', - 'lineHeight' => '40px', - 'fontColor' => '#ffffff', - 'fontFamily' => 'Arial', - 'fontSize' => '16px', - 'fontWeight' => 'normal', - 'textAlign' => 'left', - ), + ), + 'sortBy' => 'newest', + 'showDivider' => true, + 'divider' => + array ( + 'context' => 'posts.divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '3px', + 'borderColor' => '#aaaaaa', + ), ), - ), ), - ), - 1 => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'image', - 'link' => '', - 'src' => $this->template_image_url . '/Health-Mag-Phone.png', - 'alt' => 'Health-Mag-Phone', - 'fullWidth' => false, - 'width' => '400px', - 'height' => '573px', - 'styles' => array( - 'block' => array( - 'textAlign' => 'center', - ), - ), - ), - ), - ), + 'backgroundColor' => '#ffffff', + 'backgroundColorAlternate' => '#eeeeee', ), - ), - 7 => array( - 'type' => 'container', - 'orientation' => 'horizontal', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'image', - 'link' => '', - 'src' => $this->template_image_url . '/Health-Mag-Promo-End.png', - 'alt' => 'Health-Mag-Promo-End', - 'fullWidth' => true, - 'width' => '1280px', - 'height' => '50px', - 'styles' => array( - 'block' => array( - 'textAlign' => 'center', - ), + 'social' => + array ( + 'iconSet' => 'default', + 'icons' => + array ( + 0 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'facebook', + 'link' => 'http://www.facebook.com', + 'image' => $this->social_icon_url . '/01-social/Facebook.png?mailpoet_version=3.8.1', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Facebook', ), - ), - ), - ), - ), - ), - 8 => array( - 'type' => 'container', - 'orientation' => 'horizontal', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'spacer', - 'styles' => array( - 'block' => array( - 'backgroundColor' => '#2b2d37', - 'height' => '35px', - ), + 1 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'twitter', + 'link' => 'http://www.twitter.com', + 'image' => $this->social_icon_url . '/01-social/Twitter.png?mailpoet_version=3.8.1', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Twitter', ), - ), - 1 => array( - 'type' => 'image', - 'link' => '', - 'src' => $this->template_image_url . '/Health-Mag-Promo-Start.png', - 'alt' => 'Health-Mag-Promo-Start', - 'fullWidth' => true, - 'width' => '1280px', - 'height' => '50px', - 'styles' => array( - 'block' => array( - 'textAlign' => 'center', - ), - ), - ), ), - ), ), - ), - 9 => array( - 'type' => 'container', - 'orientation' => 'horizontal', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), + 'spacer' => + array ( + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '40px', + ), ), - 'blocks' => array( - 0 => array( - 'type' => 'text', - 'text' => '

Keep In Touch With Us

', - ), - 1 => array( - 'type' => 'social', - 'iconSet' => 'circles', - 'icons' => array( - 0 => array( - 'type' => 'socialIcon', - 'iconType' => 'facebook', - 'link' => 'http://www.facebook.com', - 'image' => $this->social_icon_url . '/03-circles/Facebook.png', - 'height' => '32px', - 'width' => '32px', - 'text' => 'Facebook', - ), - 1 => array( - 'type' => 'socialIcon', - 'iconType' => 'twitter', - 'link' => 'http://www.twitter.com', - 'image' => $this->social_icon_url . '/03-circles/Twitter.png', - 'height' => '32px', - 'width' => '32px', - 'text' => 'Twitter', - ), - 2 => array( - 'type' => 'socialIcon', - 'iconType' => 'youtube', - 'link' => 'http://www.youtube.com', - 'image' => $this->social_icon_url . '/03-circles/Youtube.png', - 'height' => '32px', - 'width' => '32px', - 'text' => 'Youtube', - ), - 3 => array( - 'type' => 'socialIcon', - 'iconType' => 'instagram', - 'link' => 'http://instagram.com', - 'image' => $this->social_icon_url . '/03-circles/Instagram.png', - 'height' => '32px', - 'width' => '32px', - 'text' => 'Instagram', - ), - ), - ), - ), - ), ), - ), - 10 => array( - 'type' => 'container', - 'orientation' => 'horizontal', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), + 'header' => + array ( + 'text' => 'Display problems? Open this email in your web browser.', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + 'text' => + array ( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '12px', + 'textAlign' => 'center', + ), + 'link' => + array ( + 'fontColor' => '#6cb7d4', + 'textDecoration' => 'underline', + ), ), - 'blocks' => array( - 0 => array( - 'type' => 'image', - 'link' => '', - 'src' => $this->template_image_url . '/Health-Mag-Promo-End.png', - 'alt' => 'Health-Mag-Promo-End', - 'fullWidth' => true, - 'width' => '1280px', - 'height' => '50px', - 'styles' => array( - 'block' => array( - 'textAlign' => 'center', - ), - ), - ), - 1 => array( - 'type' => 'spacer', - 'styles' => array( - 'block' => array( - 'backgroundColor' => '#2b2d37', - 'height' => '26px', - ), - ), - ), - 2 => array( - 'type' => 'footer', - 'text' => '

Unsubscribe | Manage subscription
Add your postal address here!

', - 'styles' => array( - 'block' => array( - 'backgroundColor' => '#2b2d37', - ), - 'text' => array( - 'fontColor' => '#d6d6d6', - 'fontFamily' => 'Arial', - 'fontSize' => '12px', - 'textAlign' => 'center', - ), - 'link' => array( - 'fontColor' => '#6cb7d4', - 'textDecoration' => 'none', - ), - ), - ), - 3 => array( - 'type' => 'spacer', - 'styles' => array( - 'block' => array( - 'backgroundColor' => '#2b2d37', - 'height' => '40px', - ), - ), - ), - ), - ), + 'type' => 'header', ), - ), ), - ), - 'globalStyles' => array( - 'text' => array( - 'fontColor' => '#000000', - 'fontFamily' => 'Arial', - 'fontSize' => '15px', - ), - 'h1' => array( - 'fontColor' => '#111111', - 'fontFamily' => 'Arial', - 'fontSize' => '26px', - ), - 'h2' => array( - 'fontColor' => '#222222', - 'fontFamily' => 'Arial', - 'fontSize' => '22px', - ), - 'h3' => array( - 'fontColor' => '#333333', - 'fontFamily' => 'Arial', - 'fontSize' => '20px', - ), - 'link' => array( - 'fontColor' => '#21759B', - 'textDecoration' => 'underline', - ), - 'wrapper' => array( - 'backgroundColor' => '#ffffff', - ), - 'body' => array( - 'backgroundColor' => '#2b2d37', - ), - ), ); } private function getThumbnail() { - return $this->template_image_url . '/science-weekly.jpg'; + return $this->template_image_url . '/science-weekly-new.jpg'; } -} \ No newline at end of file +} diff --git a/lib/Config/PopulatorData/Templates/Sunglasses.php b/lib/Config/PopulatorData/Templates/Sunglasses.php new file mode 100644 index 0000000000..33be5c52cc --- /dev/null +++ b/lib/Config/PopulatorData/Templates/Sunglasses.php @@ -0,0 +1,712 @@ +template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/sunglasses'; + $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons'; + } + + function get() { + return array( + 'name' => __("Sunglasses", 'mailpoet'), + 'categories' => json_encode(array('welcome', 'sample')), + 'readonly' => 1, + 'thumbnail' => $this->getThumbnail(), + 'body' => json_encode($this->getBody()), + ); + } + + private function getThumbnail() { + return $this->template_image_url . '/sunglasses.jpg'; + } + + private function getBody() { + return array ( + 'content' => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '30px', + ), + ), + ), + 1 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Glasses-Logo.jpg', + 'alt' => 'Glasses-Logo', + 'fullWidth' => false, + 'width' => '250px', + 'height' => '66px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + 2 => + array ( + 'type' => 'divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#ffffff', + 'padding' => '17px', + 'borderStyle' => 'solid', + 'borderWidth' => '2px', + 'borderColor' => '#f8b849', + ), + ), + ), + 3 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '30px', + ), + ), + ), + 4 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Glasses-Header-2.jpg', + 'alt' => 'Glasses-Header-2', + 'fullWidth' => true, + 'width' => '1280px', + 'height' => '116px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + 5 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '30px', + ), + ), + ), + ), + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'text', + 'text' => '

Here\'s what we sent you

', + ), + ), + ), + ), + ), + 2 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Glasses-Images-1.jpg', + 'alt' => 'Glasses-Images-1', + 'fullWidth' => true, + 'width' => '1280px', + 'height' => '650px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + 1 => + array ( + 'type' => 'text', + 'text' => '

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur nec nisi quis ex pulvinar molestie. Sed pulvinar placerat justo eu viverra.

', + ), + 2 => + array ( + 'type' => 'button', + 'text' => 'Choose These Frames', + 'url' => '', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#f8b849', + 'borderColor' => '#0074a2', + 'borderWidth' => '0px', + 'borderRadius' => '0px', + 'borderStyle' => 'solid', + 'width' => '195px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Arial', + 'fontSize' => '16px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + ), + 3 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Glasses-Images-2.jpg', + 'alt' => 'Glasses-Images-2', + 'fullWidth' => true, + 'width' => '1280px', + 'height' => '650px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + 4 => + array ( + 'type' => 'text', + 'text' => '

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur nec nisi quis ex pulvinar molestie. Sed pulvinar placerat justo eu viverra.

', + ), + 5 => + array ( + 'type' => 'button', + 'text' => 'Choose These Frames', + 'url' => '', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#f8b849', + 'borderColor' => '#0074a2', + 'borderWidth' => '0px', + 'borderRadius' => '0px', + 'borderStyle' => 'solid', + 'width' => '195px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Arial', + 'fontSize' => '16px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + ), + 6 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Glasses-Images-3.jpg', + 'alt' => 'Glasses-Images-3', + 'fullWidth' => true, + 'width' => '1280px', + 'height' => '650px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + 7 => + array ( + 'type' => 'text', + 'text' => '

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur nec nisi quis ex pulvinar molestie. Sed pulvinar placerat justo eu viverra.

', + ), + 8 => + array ( + 'type' => 'button', + 'text' => 'Choose These Frames', + 'url' => '', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#f8b849', + 'borderColor' => '#0074a2', + 'borderWidth' => '0px', + 'borderRadius' => '0px', + 'borderStyle' => 'solid', + 'width' => '195px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Arial', + 'fontSize' => '16px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + ), + 9 => + array ( + 'type' => 'divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#ffffff', + 'padding' => '34.5px', + 'borderStyle' => 'solid', + 'borderWidth' => '2px', + 'borderColor' => '#f8b849', + ), + ), + ), + ), + ), + ), + ), + 3 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Glasses-Header.jpg', + 'alt' => 'Glasses-Header', + 'fullWidth' => true, + 'width' => '640px', + 'height' => '920px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '60px', + ), + ), + ), + 1 => + array ( + 'type' => 'text', + 'text' => '

Our Summer Range Is Here

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur nec nisi quis ex pulvinar molestie. Sed pulvinar placerat justo eu viverra. Pellentesque in interdum eros, a venenatis velit.

+

+

Fusce finibus convallis augue, ut viverra felis placerat in. Curabitur et commodo ipsum. Mauris tellus metus, tristique vel sollicitudin ut, malesuada in augue. 

', + ), + 2 => + array ( + 'type' => 'button', + 'text' => 'Find Out More', + 'url' => '', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#f8b849', + 'borderColor' => '#0074a2', + 'borderWidth' => '0px', + 'borderRadius' => '0px', + 'borderStyle' => 'solid', + 'width' => '137px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Arial', + 'fontSize' => '16px', + 'fontWeight' => 'normal', + 'textAlign' => 'left', + ), + ), + ), + ), + ), + ), + ), + 4 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#ffffff', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#ffffff', + 'padding' => '34.5px', + 'borderStyle' => 'solid', + 'borderWidth' => '2px', + 'borderColor' => '#f8b849', + ), + ), + ), + ), + ), + ), + ), + 5 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'text', + 'text' => '

Got any questions or need some help?

+

We\'re just a click or a phone call away.

+

+

Call Us: 08856877854

+

', + ), + 1 => + array ( + 'type' => 'divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#ffffff', + 'padding' => '23.5px', + 'borderStyle' => 'solid', + 'borderWidth' => '2px', + 'borderColor' => '#f8b849', + ), + ), + ), + ), + ), + ), + ), + 6 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#ffffff', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'social', + 'iconSet' => 'full-symbol-black', + 'icons' => + array ( + 0 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'facebook', + 'link' => 'http://www.facebook.com', + 'image' => $this->social_icon_url . '/07-full-symbol-black/Facebook.png?mailpoet_version=3.0.0-rc.2.0.0', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Facebook', + ), + 1 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'twitter', + 'link' => 'http://www.twitter.com', + 'image' => $this->social_icon_url . '/07-full-symbol-black/Twitter.png?mailpoet_version=3.0.0-rc.2.0.0', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Twitter', + ), + 2 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'instagram', + 'link' => 'http://instagram.com', + 'image' => $this->social_icon_url . '/07-full-symbol-black/Instagram.png?mailpoet_version=3.0.0-rc.2.0.0', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Instagram', + ), + 3 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'email', + 'link' => '', + 'image' => $this->social_icon_url . '/07-full-symbol-black/Email.png?mailpoet_version=3.0.0-rc.2.0.0', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Email', + ), + ), + ), + 1 => + array ( + 'type' => 'text', + 'text' => '

Unsubscribe | Manage your subscription
Add your postal address here!

', + ), + ), + ), + ), + ), + ), + ), + 'globalStyles' => + array ( + 'text' => + array ( + 'fontColor' => '#000000', + 'fontFamily' => 'Arial', + 'fontSize' => '15px', + ), + 'h1' => + array ( + 'fontColor' => '#111111', + 'fontFamily' => 'Arial', + 'fontSize' => '30px', + ), + 'h2' => + array ( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '24px', + ), + 'h3' => + array ( + 'fontColor' => '#333333', + 'fontFamily' => 'Arial', + 'fontSize' => '22px', + ), + 'link' => + array ( + 'fontColor' => '#21759B', + 'textDecoration' => 'underline', + ), + 'wrapper' => + array ( + 'backgroundColor' => '#ffffff', + ), + 'body' => + array ( + 'backgroundColor' => '#ffffff', + ), + ), + ); + } + + +} diff --git a/lib/Config/PopulatorData/Templates/TravelNomads.php b/lib/Config/PopulatorData/Templates/TravelNomads.php deleted file mode 100644 index 2c578c5664..0000000000 --- a/lib/Config/PopulatorData/Templates/TravelNomads.php +++ /dev/null @@ -1,603 +0,0 @@ -template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/travel_nomads'; - $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons'; - } - - function get() { - return array( - 'name' => __("Travel Nomads", 'mailpoet'), - 'categories' => json_encode(array('standard', 'sample')), - 'readonly' => 1, - 'thumbnail' => $this->getThumbnail(), - 'body' => json_encode($this->getBody()), - ); - } - - private function getBody() { - return array( - 'content' => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'container', - 'orientation' => 'horizontal', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'image', - 'link' => 'http://example.org', - 'src' => $this->template_image_url . '/header-1.png', - 'alt' => 'Travelling Tales with Jane & Steven', - 'fullWidth' => true, - 'width' => '660px', - 'height' => '165px', - 'styles' => array( - 'block' => array( - 'textAlign' => 'center', - ), - ), - ), - 1 => array( - 'type' => 'spacer', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'height' => '30px', - ), - ), - ), - 2 => array( - 'type' => 'text', - 'text' => '

Hi [subscriber:firstname | default:reader]!

-

-

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.

', - ), - 3 => array( - 'type' => 'social', - 'iconSet' => 'circles', - 'icons' => array( - 0 => array( - 'type' => 'socialIcon', - 'iconType' => 'twitter', - 'link' => 'http://example.com', - 'image' => $this->social_icon_url . '/03-circles/Twitter.png', - 'height' => '32px', - 'width' => '32px', - 'text' => 'Twitter', - ), - ), - ), - 4 => array( - 'type' => 'text', - 'text' => '

Photos from Rotarua

', - ), - 5 => array( - 'type' => 'spacer', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'height' => '20px', - ), - ), - ), - ), - ), - ), - ), - 1 => array( - 'type' => 'container', - 'orientation' => 'horizontal', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'image', - 'link' => 'http://example.org', - 'src' => $this->template_image_url . '/hot-thermals-1.jpg', - 'alt' => 'hot thermals', - 'fullWidth' => false, - 'width' => '640px', - 'height' => '425px', - 'styles' => array( - 'block' => array( - 'textAlign' => 'center', - ), - ), - ), - 1 => array( - 'type' => 'spacer', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'height' => '40px', - ), - ), - ), - ), - ), - 1 => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'image', - 'link' => 'http://example.org', - 'src' => $this->template_image_url . '/5398660557_e5e338357e_z.jpg', - 'alt' => 'The view from our campsite', - 'fullWidth' => false, - 'width' => '640px', - 'height' => '425px', - 'styles' => array( - 'block' => array( - 'textAlign' => 'center', - ), - ), - ), - 1 => array( - 'type' => 'spacer', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'height' => '40px', - ), - ), - ), - ), - ), - ), - ), - 2 => array( - 'type' => 'container', - 'orientation' => 'horizontal', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'image', - 'link' => 'http://example.org', - 'src' => $this->template_image_url . '/5399212952_b3fea8fffb_z.jpg', - 'alt' => 'Red sky at night', - 'fullWidth' => false, - 'width' => '640px', - 'height' => '425px', - 'styles' => array( - 'block' => array( - 'textAlign' => 'center', - ), - ), - ), - ), - ), - 1 => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'image', - 'link' => 'http://example.org', - 'src' => $this->template_image_url . '/5399283298_0d2cd66e9f_z.jpg', - 'alt' => 'Don\'t go chasing waterfalls', - 'fullWidth' => false, - 'width' => '640px', - 'height' => '425px', - 'styles' => array( - 'block' => array( - 'textAlign' => 'center', - ), - ), - ), - ), - ), - ), - ), - 3 => array( - 'type' => 'container', - 'orientation' => 'horizontal', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'spacer', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'height' => '20px', - ), - ), - ), - 1 => array( - 'type' => 'button', - 'text' => 'View NZ Photo Gallery', - 'url' => 'http://example.org', - 'styles' => array( - 'block' => array( - 'backgroundColor' => '#f16161', - 'borderColor' => '#ffffff', - 'borderWidth' => '3px', - 'borderRadius' => '5px', - 'borderStyle' => 'solid', - 'width' => '288px', - 'lineHeight' => '48px', - 'fontColor' => '#ffffff', - 'fontFamily' => 'Verdana', - 'fontSize' => '18px', - 'fontWeight' => 'normal', - 'textAlign' => 'center', - ), - ), - ), - ), - ), - ), - ), - 4 => array( - 'type' => 'container', - 'orientation' => 'horizontal', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'divider', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'padding' => '23px', - 'borderStyle' => 'double', - 'borderWidth' => '3px', - 'borderColor' => '#aaaaaa', - ), - ), - ), - 1 => array( - 'type' => 'text', - 'text' => '

Here\'s our top recommendations in Rotarua

', - ), - 2 => array( - 'type' => 'spacer', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'height' => '20px', - ), - ), - ), - ), - ), - ), - ), - 5 => array( - 'type' => 'container', - 'orientation' => 'horizontal', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'image', - 'link' => 'http://example.org', - 'src' => $this->template_image_url . '/glow-worms.jpg', - 'alt' => 'Glow worms, Waitomo Caves', - 'fullWidth' => true, - 'width' => '640px', - 'height' => '428px', - 'styles' => array( - 'block' => array( - 'textAlign' => 'center', - ), - ), - ), - 1 => array( - 'type' => 'text', - 'text' => '

Waitomo Glow Worm Caves

', - ), - ), - ), - 1 => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'image', - 'link' => 'http://example.org', - 'src' => $this->template_image_url . '/luge.jpg', - 'alt' => 'luge', - 'fullWidth' => false, - 'width' => '375px', - 'height' => '500px', - 'styles' => array( - 'block' => array( - 'textAlign' => 'center', - ), - ), - ), - 1 => array( - 'type' => 'text', - 'text' => '

Luge!

', - ), - ), - ), - 2 => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'image', - 'link' => 'http://example.org', - 'src' => $this->template_image_url . '/holiday-park.jpg', - 'alt' => 'holiday-park', - 'fullWidth' => true, - 'width' => '640px', - 'height' => '425px', - 'styles' => array( - 'block' => array( - 'textAlign' => 'center', - ), - ), - ), - 1 => array( - 'type' => 'text', - 'text' => '

Roturua Thermal Holiday Park

', - ), - ), - ), - ), - ), - 6 => array( - 'type' => 'container', - 'orientation' => 'horizontal', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'spacer', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'height' => '21px', - ), - ), - ), - 1 => array( - 'type' => 'text', - 'text' => '

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.

-

-

Morbi sit amet,

-

Jane & Steven

', - ), - ), - ), - ), - ), - 7 => array( - 'type' => 'container', - 'orientation' => 'horizontal', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'container', - 'orientation' => 'vertical', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - ), - 'blocks' => array( - 0 => array( - 'type' => 'divider', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - 'padding' => '13px', - 'borderStyle' => 'dotted', - 'borderWidth' => '2px', - 'borderColor' => '#aaaaaa', - ), - ), - ), - 1 => array( - 'type' => 'header', - 'text' => 'Display problems? Open this email in your web browser', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - 'text' => array( - 'fontColor' => '#222222', - 'fontFamily' => 'Courier New', - 'fontSize' => '12px', - 'textAlign' => 'center', - ), - 'link' => array( - 'fontColor' => '#343434', - 'textDecoration' => 'underline', - ), - ), - ), - 2 => array( - 'type' => 'footer', - 'text' => '

Unsubscribe | Manage subscription

', - 'styles' => array( - 'block' => array( - 'backgroundColor' => 'transparent', - ), - 'text' => array( - 'fontColor' => '#343434', - 'fontFamily' => 'Courier New', - 'fontSize' => '12px', - 'textAlign' => 'center', - ), - 'link' => array( - 'fontColor' => '#343434', - 'textDecoration' => 'underline', - ), - ), - ), - ), - ), - ), - ), - ), - ), - 'globalStyles' => array( - 'text' => array( - 'fontColor' => '#343434', - 'fontFamily' => 'Courier New', - 'fontSize' => '16px', - ), - 'h1' => array( - 'fontColor' => '#180d6b', - 'fontFamily' => 'Trebuchet MS', - 'fontSize' => '26px', - ), - 'h2' => array( - 'fontColor' => '#180d6b', - 'fontFamily' => 'Trebuchet MS', - 'fontSize' => '22px', - ), - 'h3' => array( - 'fontColor' => '#343434', - 'fontFamily' => 'Trebuchet MS', - 'fontSize' => '18px', - ), - 'link' => array( - 'fontColor' => '#f16161', - 'textDecoration' => 'underline', - ), - 'wrapper' => array( - 'backgroundColor' => '#daf3ff', - ), - 'body' => array( - 'backgroundColor' => '#ffffff', - ), - ), - ); - } - - private function getThumbnail() { - return $this->template_image_url . '/travel-nomads.jpg'; - } - -} diff --git a/lib/Config/PopulatorData/Templates/WideStoryLayout.php b/lib/Config/PopulatorData/Templates/WideStoryLayout.php new file mode 100644 index 0000000000..ccca127384 --- /dev/null +++ b/lib/Config/PopulatorData/Templates/WideStoryLayout.php @@ -0,0 +1,677 @@ +template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/wide-story-layout'; + $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons'; + } + + function get() { + return array( + 'name' => __("Wide Story Layout", 'mailpoet'), + 'categories' => json_encode(array('notification', 'sample')), + 'readonly' => 1, + 'thumbnail' => $this->getThumbnail(), + 'body' => json_encode($this->getBody()), + ); + } + + private function getThumbnail() { + return $this->template_image_url . '/wide-story-layout.jpg'; + } + + private function getBody() { + return array ( + 'content' => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#f0f0f0', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '50px', + ), + ), + ), + 1 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Wide-Logo.png', + 'alt' => 'Wide-Logo', + 'fullWidth' => false, + 'width' => '200px', + 'height' => '37px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + 2 => + array ( + 'type' => 'text', + 'text' => '

Our Latest Posts

', + ), + 3 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'image', + 'link' => 'http://mailpoet.info/cutting-through-the-smog-what-to-do-to-fight-air-pollution/', + 'src' => $this->template_image_url . '/5_what_to_do_p352m1141746-800x533.jpg', + 'alt' => 'Cutting through the smog: What to do to fight air pollution', + 'fullWidth' => true, + 'width' => 660, + 'height' => 440, + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + 1 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '30px', + ), + ), + ), + 2 => + array ( + 'type' => 'text', + 'text' => '

Cutting through the smog: What to do to fight air pollution

+

Tackling our air problems starts with traffic control, but individual action to reduce energy use and intensive farming would also help clean our air.

', + ), + 3 => + array ( + 'type' => 'button', + 'text' => 'Read The Post', + 'url' => 'http://mailpoet.info/cutting-through-the-smog-what-to-do-to-fight-air-pollution/', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#5ecd39', + 'borderColor' => '#000000', + 'borderWidth' => '0px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '288px', + 'lineHeight' => '36px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Lucida', + 'fontSize' => '16px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + ), + 4 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + 2 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#f0f0f0', + 'height' => '40px', + ), + ), + ), + 1 => + array ( + 'type' => 'image', + 'link' => 'http://mailpoet.info/cutting-through-the-smog-what-to-do-to-fight-air-pollution/', + 'src' => $this->template_image_url . '/gettyimages-578313682-800x533.jpg', + 'alt' => 'gettyimages-578313682-800x533', + 'fullWidth' => true, + 'width' => '800px', + 'height' => '533px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + 2 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '30px', + ), + ), + ), + 3 => + array ( + 'type' => 'text', + 'text' => '

Ladybird’s transparent shell reveals how it folds its wings

+

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.

', + ), + 4 => + array ( + 'type' => 'button', + 'text' => 'Read The Post', + 'url' => '', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#5ecd39', + 'borderColor' => '#000000', + 'borderWidth' => '0px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '288px', + 'lineHeight' => '36px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Lucida', + 'fontSize' => '16px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + ), + 5 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 6 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#f0f0f0', + 'height' => '40px', + ), + ), + ), + ), + ), + ), + ), + 3 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'image', + 'link' => 'http://mailpoet.info/cutting-through-the-smog-what-to-do-to-fight-air-pollution/', + 'src' => $this->template_image_url . '/plasma-stingray111-800x533.jpg', + 'alt' => 'plasma-stingray111-800x533', + 'fullWidth' => true, + 'width' => '800px', + 'height' => '533px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + 1 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '30px', + ), + ), + ), + 2 => + array ( + 'type' => 'text', + 'text' => '

Plasma jet engines that could take you from the ground to space

+

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.

', + ), + 3 => + array ( + 'type' => 'button', + 'text' => 'Read The Post', + 'url' => '', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#5ecd39', + 'borderColor' => '#000000', + 'borderWidth' => '0px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '288px', + 'lineHeight' => '36px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Lucida', + 'fontSize' => '16px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + ), + 4 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 5 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#f0f0f0', + 'height' => '40px', + ), + ), + ), + ), + ), + ), + ), + 4 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Wide-Footer.jpg', + 'alt' => 'Wide-Footer', + 'fullWidth' => true, + 'width' => '1280px', + 'height' => '721px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'center', + ), + ), + ), + ), + ), + ), + ), + 5 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#5ecd39', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '21px', + ), + ), + ), + 1 => + array ( + 'type' => 'social', + 'iconSet' => 'full-symbol-grey', + 'icons' => + array ( + 0 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'facebook', + 'link' => 'http://www.facebook.com', + 'image' => $this->social_icon_url . '/08-full-symbol-grey/Facebook.png?mailpoet_version=3.0.0-rc.2.0.0', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Facebook', + ), + 1 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'twitter', + 'link' => 'http://www.twitter.com', + 'image' => $this->social_icon_url . '/08-full-symbol-grey/Twitter.png?mailpoet_version=3.0.0-rc.2.0.0', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Twitter', + ), + 2 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'website', + 'link' => '', + 'image' => $this->social_icon_url . '/08-full-symbol-grey/Website.png?mailpoet_version=3.0.0-rc.2.0.0', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Website', + ), + 3 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'instagram', + 'link' => 'http://instagram.com', + 'image' => $this->social_icon_url . '/08-full-symbol-grey/Instagram.png?mailpoet_version=3.0.0-rc.2.0.0', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Instagram', + ), + ), + ), + 2 => + array ( + 'type' => 'footer', + 'text' => '

Unsubscribe | Manage subscription
Add your postal address here!

', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + 'text' => + array ( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '12px', + 'textAlign' => 'center', + ), + 'link' => + array ( + 'fontColor' => '#6cb7d4', + 'textDecoration' => 'none', + ), + ), + ), + 3 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '40px', + ), + ), + ), + ), + ), + ), + ), + ), + ), + 'globalStyles' => + array ( + 'text' => + array ( + 'fontColor' => '#000000', + 'fontFamily' => 'Arial', + 'fontSize' => '15px', + ), + 'h1' => + array ( + 'fontColor' => '#111111', + 'fontFamily' => 'Lucida', + 'fontSize' => '30px', + ), + 'h2' => + array ( + 'fontColor' => '#222222', + 'fontFamily' => 'Lucida', + 'fontSize' => '24px', + ), + 'h3' => + array ( + 'fontColor' => '#333333', + 'fontFamily' => 'Lucida', + 'fontSize' => '18px', + ), + 'link' => + array ( + 'fontColor' => '#5ecd39', + 'textDecoration' => 'underline', + ), + 'wrapper' => + array ( + 'backgroundColor' => '#ffffff', + ), + 'body' => + array ( + 'backgroundColor' => '#f0f0f0', + ), + ), + ); + } + +} \ No newline at end of file diff --git a/lib/Config/PopulatorData/Templates/WineCity.php b/lib/Config/PopulatorData/Templates/WineCity.php new file mode 100644 index 0000000000..f1bda2bd3b --- /dev/null +++ b/lib/Config/PopulatorData/Templates/WineCity.php @@ -0,0 +1,961 @@ +template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/wine-city'; + $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons'; + } + + function get() { + return array( + 'name' => __("Wine City", 'mailpoet'), + 'categories' => json_encode(array('woocommerce', 'sample')), + 'readonly' => 1, + 'thumbnail' => $this->getThumbnail(), + 'body' => json_encode($this->getBody()), + ); + } + + private function getThumbnail() { + return $this->template_image_url . '/wine-city.jpg'; + } + + private function getBody() { + return array ( + 'content' => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '37px', + ), + ), + ), + 1 => + array ( + 'type' => 'image', + 'link' => '', + 'src' => $this->template_image_url . '/Wine-Logo.png', + 'alt' => 'Wine-Logo', + 'fullWidth' => false, + 'width' => '136px', + 'height' => '67px', + 'styles' => + array ( + 'block' => + array ( + 'textAlign' => 'left', + ), + ), + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '31px', + ), + ), + ), + 1 => + array ( + 'type' => 'social', + 'iconSet' => 'circles', + 'icons' => + array ( + 0 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'facebook', + 'link' => 'http://www.facebook.com', + 'image' => $this->social_icon_url . '/03-circles/Facebook.png?mailpoet_version=3.7.3', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Facebook', + ), + 1 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'twitter', + 'link' => 'http://www.twitter.com', + 'image' => $this->social_icon_url . '/03-circles/Twitter.png?mailpoet_version=3.7.3', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Twitter', + ), + 2 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'instagram', + 'link' => 'http://instagram.com', + 'image' => $this->social_icon_url . '/03-circles/Instagram.png?mailpoet_version=3.7.3', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Instagram', + ), + ), + ), + ), + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '1px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + ), + ), + ), + ), + 2 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'text', + 'text' => '

Red Wine

', + ), + ), + ), + 1 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'text', + 'text' => '

White Wine

', + ), + ), + ), + 2 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'text', + 'text' => '

Rose Wine

', + ), + ), + ), + ), + ), + 3 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => $this->template_image_url . '/Wine-Header-1.jpg', + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + 1 => + array ( + 'type' => 'text', + 'text' => '

Have a drink on us

', + ), + 2 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '231px', + ), + ), + ), + ), + ), + ), + ), + 4 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#ffffff', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '34px', + ), + ), + ), + 1 => + array ( + 'type' => 'text', + 'text' => '

You\'re our VIP - now it\'s time to celebrate! 

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam a elementum ex. Aliquam mollis metus ac nisl luctus pulvinar. Donec tincidunt pharetra sem, nec eleifend augue.

', + ), + 2 => + array ( + 'type' => 'button', + 'text' => 'CoUponCoDE', + 'url' => '', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#ffffff', + 'borderColor' => '#6d6d6d', + 'borderWidth' => '2px', + 'borderRadius' => '0px', + 'borderStyle' => 'solid', + 'width' => '219px', + 'lineHeight' => '50px', + 'fontColor' => '#6d6d6d', + 'fontFamily' => 'Courier New', + 'fontSize' => '30px', + 'fontWeight' => 'bold', + 'textAlign' => 'center', + ), + ), + ), + 3 => + array ( + 'type' => 'divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '17px', + 'borderStyle' => 'solid', + 'borderWidth' => '1px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 4 => + array ( + 'type' => 'footer', + 'text' => '

Unsubscribe | Manage your subscription
Add your postal address here!

', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + 'text' => + array ( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '12px', + 'textAlign' => 'center', + ), + 'link' => + array ( + 'fontColor' => '#6cb7d4', + 'textDecoration' => 'none', + ), + ), + ), + 5 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + 5 => + array ( + 'type' => 'container', + 'orientation' => 'horizontal', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#eeeeee', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'container', + 'orientation' => 'vertical', + 'image' => + array ( + 'src' => NULL, + 'display' => 'scale', + ), + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + ), + 'blocks' => + array ( + 0 => + array ( + 'type' => 'spacer', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '20px', + ), + ), + ), + ), + ), + ), + ), + ), + ), + 'globalStyles' => + array ( + 'text' => + array ( + 'fontColor' => '#000000', + 'fontFamily' => 'Arial', + 'fontSize' => '14px', + ), + 'h1' => + array ( + 'fontColor' => '#111111', + 'fontFamily' => 'Arial', + 'fontSize' => '40px', + ), + 'h2' => + array ( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '24px', + ), + 'h3' => + array ( + 'fontColor' => '#333333', + 'fontFamily' => 'Arial', + 'fontSize' => '22px', + ), + 'link' => + array ( + 'fontColor' => '#21759B', + 'textDecoration' => 'underline', + ), + 'wrapper' => + array ( + 'backgroundColor' => '#ffffff', + ), + 'body' => + array ( + 'backgroundColor' => '#eeeeee', + ), + ), + 'blockDefaults' => + array ( + 'automatedLatestContent' => + array ( + 'amount' => '5', + 'contentType' => 'post', + 'inclusionType' => 'include', + 'displayType' => 'excerpt', + 'titleFormat' => 'h1', + 'titleAlignment' => 'left', + 'titleIsLink' => false, + 'imageFullWidth' => false, + 'featuredImagePosition' => 'belowTitle', + 'showAuthor' => 'no', + 'authorPrecededBy' => 'Author:', + 'showCategories' => 'no', + 'categoriesPrecededBy' => 'Categories:', + 'readMoreType' => 'button', + 'readMoreText' => 'Read more', + 'readMoreButton' => + array ( + 'text' => 'Read more', + 'url' => '[postLink]', + 'context' => 'automatedLatestContent.readMoreButton', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2ea1cd', + 'borderColor' => '#0074a2', + 'borderWidth' => '1px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + ), + 'sortBy' => 'newest', + 'showDivider' => true, + 'divider' => + array ( + 'context' => 'automatedLatestContent.divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '3px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 'backgroundColor' => '#ffffff', + 'backgroundColorAlternate' => '#eeeeee', + ), + 'automatedLatestContentLayout' => + array ( + 'amount' => '5', + 'withLayout' => true, + 'contentType' => 'post', + 'inclusionType' => 'include', + 'displayType' => 'excerpt', + 'titleFormat' => 'h1', + 'titleAlignment' => 'left', + 'titleIsLink' => false, + 'imageFullWidth' => false, + 'featuredImagePosition' => 'alternate', + 'showAuthor' => 'no', + 'authorPrecededBy' => 'Author:', + 'showCategories' => 'no', + 'categoriesPrecededBy' => 'Categories:', + 'readMoreType' => 'button', + 'readMoreText' => 'Read more', + 'readMoreButton' => + array ( + 'text' => 'Read more', + 'url' => '[postLink]', + 'context' => 'automatedLatestContentLayout.readMoreButton', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2ea1cd', + 'borderColor' => '#0074a2', + 'borderWidth' => '1px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + ), + 'sortBy' => 'newest', + 'showDivider' => true, + 'divider' => + array ( + 'context' => 'automatedLatestContentLayout.divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '3px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 'backgroundColor' => '#ffffff', + 'backgroundColorAlternate' => '#eeeeee', + ), + 'button' => + array ( + 'text' => 'CoUponCoDE', + 'url' => '', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#ffffff', + 'borderColor' => '#6d6d6d', + 'borderWidth' => '2px', + 'borderRadius' => '0px', + 'borderStyle' => 'solid', + 'width' => '219px', + 'lineHeight' => '50px', + 'fontColor' => '#6d6d6d', + 'fontFamily' => 'Courier New', + 'fontSize' => '30px', + 'fontWeight' => 'bold', + 'textAlign' => 'center', + ), + ), + 'type' => 'button', + ), + 'divider' => + array ( + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '17px', + 'borderStyle' => 'solid', + 'borderWidth' => '1px', + 'borderColor' => '#aaaaaa', + ), + ), + 'type' => 'divider', + ), + 'footer' => + array ( + 'text' => '

Unsubscribe | Manage subscription
Add your postal address here!

', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + 'text' => + array ( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '12px', + 'textAlign' => 'center', + ), + 'link' => + array ( + 'fontColor' => '#6cb7d4', + 'textDecoration' => 'none', + ), + ), + 'type' => 'footer', + ), + 'posts' => + array ( + 'amount' => '10', + 'contentType' => 'post', + 'postStatus' => 'publish', + 'inclusionType' => 'include', + 'displayType' => 'excerpt', + 'titleFormat' => 'h1', + 'titleAlignment' => 'left', + 'titleIsLink' => false, + 'imageFullWidth' => false, + 'featuredImagePosition' => 'belowTitle', + 'showAuthor' => 'no', + 'authorPrecededBy' => 'Author:', + 'showCategories' => 'no', + 'categoriesPrecededBy' => 'Categories:', + 'readMoreType' => 'link', + 'readMoreText' => 'Read more', + 'readMoreButton' => + array ( + 'text' => 'Read more', + 'url' => '[postLink]', + 'context' => 'posts.readMoreButton', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => '#2ea1cd', + 'borderColor' => '#0074a2', + 'borderWidth' => '1px', + 'borderRadius' => '5px', + 'borderStyle' => 'solid', + 'width' => '180px', + 'lineHeight' => '40px', + 'fontColor' => '#ffffff', + 'fontFamily' => 'Verdana', + 'fontSize' => '18px', + 'fontWeight' => 'normal', + 'textAlign' => 'center', + ), + ), + ), + 'sortBy' => 'newest', + 'showDivider' => true, + 'divider' => + array ( + 'context' => 'posts.divider', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'padding' => '13px', + 'borderStyle' => 'solid', + 'borderWidth' => '3px', + 'borderColor' => '#aaaaaa', + ), + ), + ), + 'backgroundColor' => '#ffffff', + 'backgroundColorAlternate' => '#eeeeee', + ), + 'social' => + array ( + 'iconSet' => 'circles', + 'icons' => + array ( + 0 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'facebook', + 'link' => 'http://www.facebook.com', + 'image' => $this->social_icon_url . '/03-circles/Facebook.png?mailpoet_version=3.7.3', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Facebook', + ), + 1 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'twitter', + 'link' => 'http://www.twitter.com', + 'image' => $this->social_icon_url . '/03-circles/Twitter.png?mailpoet_version=3.7.3', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Twitter', + ), + 2 => + array ( + 'type' => 'socialIcon', + 'iconType' => 'instagram', + 'link' => 'http://instagram.com', + 'image' => $this->social_icon_url . '/03-circles/Instagram.png?mailpoet_version=3.7.3', + 'height' => '32px', + 'width' => '32px', + 'text' => 'Instagram', + ), + ), + 'type' => 'social', + ), + 'spacer' => + array ( + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + 'height' => '231px', + ), + ), + 'type' => 'spacer', + ), + 'header' => + array ( + 'text' => 'Display problems? Open this email in your web browser.', + 'styles' => + array ( + 'block' => + array ( + 'backgroundColor' => 'transparent', + ), + 'text' => + array ( + 'fontColor' => '#222222', + 'fontFamily' => 'Arial', + 'fontSize' => '12px', + 'textAlign' => 'center', + ), + 'link' => + array ( + 'fontColor' => '#6cb7d4', + 'textDecoration' => 'underline', + ), + ), + ), + ), + ); + } + +} diff --git a/plugin_repository/assets/newsletter-templates/avocado/Avocado-Coupon.jpg b/plugin_repository/assets/newsletter-templates/avocado/Avocado-Coupon.jpg new file mode 100644 index 0000000000..2251d3a122 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/avocado/Avocado-Coupon.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/avocado/Avocado-Header-1.jpg b/plugin_repository/assets/newsletter-templates/avocado/Avocado-Header-1.jpg new file mode 100644 index 0000000000..f85493198f Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/avocado/Avocado-Header-1.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/avocado/Avocado-Logo-2.png b/plugin_repository/assets/newsletter-templates/avocado/Avocado-Logo-2.png new file mode 100644 index 0000000000..61d67b0910 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/avocado/Avocado-Logo-2.png differ diff --git a/plugin_repository/assets/newsletter-templates/avocado/Avocado-Recipe.jpg b/plugin_repository/assets/newsletter-templates/avocado/Avocado-Recipe.jpg new file mode 100644 index 0000000000..2e90c5001d Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/avocado/Avocado-Recipe.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/avocado/avocado.jpg b/plugin_repository/assets/newsletter-templates/avocado/avocado.jpg new file mode 100644 index 0000000000..2a4a8a4c7e Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/avocado/avocado.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/charity/Charity-Child.png b/plugin_repository/assets/newsletter-templates/charity/Charity-Child.png new file mode 100644 index 0000000000..b855a1ebc9 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/charity/Charity-Child.png differ diff --git a/plugin_repository/assets/newsletter-templates/charity/Charity-Logo-Small.png b/plugin_repository/assets/newsletter-templates/charity/Charity-Logo-Small.png new file mode 100644 index 0000000000..71828c3cb9 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/charity/Charity-Logo-Small.png differ diff --git a/plugin_repository/assets/newsletter-templates/charity/Charity-Video.jpg b/plugin_repository/assets/newsletter-templates/charity/Charity-Video.jpg new file mode 100644 index 0000000000..17478a24a0 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/charity/Charity-Video.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/charity/charity-header.jpg b/plugin_repository/assets/newsletter-templates/charity/charity-header.jpg new file mode 100644 index 0000000000..e1bbdf6688 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/charity/charity-header.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/charity/charity-logo.png b/plugin_repository/assets/newsletter-templates/charity/charity-logo.png new file mode 100644 index 0000000000..ca6b8a9e88 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/charity/charity-logo.png differ diff --git a/plugin_repository/assets/newsletter-templates/charity/charity.jpg b/plugin_repository/assets/newsletter-templates/charity/charity.jpg new file mode 100644 index 0000000000..f4eda79ed6 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/charity/charity.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/charity/header-bg.jpg b/plugin_repository/assets/newsletter-templates/charity/header-bg.jpg new file mode 100644 index 0000000000..a29dee9846 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/charity/header-bg.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/coffee/Coffee-Cup.jpg b/plugin_repository/assets/newsletter-templates/coffee/Coffee-Cup.jpg new file mode 100644 index 0000000000..0195374b97 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/coffee/Coffee-Cup.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/coffee/Coffee-Header.jpg b/plugin_repository/assets/newsletter-templates/coffee/Coffee-Header.jpg new file mode 100644 index 0000000000..bd03be05cb Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/coffee/Coffee-Header.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/coffee/Coffee-Logo-1.png b/plugin_repository/assets/newsletter-templates/coffee/Coffee-Logo-1.png new file mode 100644 index 0000000000..9e49a3c329 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/coffee/Coffee-Logo-1.png differ diff --git a/plugin_repository/assets/newsletter-templates/coffee/Coffee-Mid.jpg b/plugin_repository/assets/newsletter-templates/coffee/Coffee-Mid.jpg new file mode 100644 index 0000000000..0c523f84b4 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/coffee/Coffee-Mid.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/coffee/coffee.gif b/plugin_repository/assets/newsletter-templates/coffee/coffee.gif new file mode 100644 index 0000000000..adfe795929 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/coffee/coffee.gif differ diff --git a/plugin_repository/assets/newsletter-templates/coffee/coffee.jpg b/plugin_repository/assets/newsletter-templates/coffee/coffee.jpg new file mode 100644 index 0000000000..e77b4ab644 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/coffee/coffee.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/dog-food/Dog-Header-1024x409.jpg b/plugin_repository/assets/newsletter-templates/dog-food/Dog-Header-1024x409.jpg new file mode 100644 index 0000000000..ddb681c959 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/dog-food/Dog-Header-1024x409.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/dog-food/Dog-Logo.png b/plugin_repository/assets/newsletter-templates/dog-food/Dog-Logo.png new file mode 100644 index 0000000000..86efb42dcc Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/dog-food/Dog-Logo.png differ diff --git a/plugin_repository/assets/newsletter-templates/dog-food/Dog-Product-1.jpg b/plugin_repository/assets/newsletter-templates/dog-food/Dog-Product-1.jpg new file mode 100644 index 0000000000..09912c24e5 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/dog-food/Dog-Product-1.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/dog-food/Dog-Product-2.jpg b/plugin_repository/assets/newsletter-templates/dog-food/Dog-Product-2.jpg new file mode 100644 index 0000000000..f44f25c30f Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/dog-food/Dog-Product-2.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/dog-food/Dog-Product-3.jpg b/plugin_repository/assets/newsletter-templates/dog-food/Dog-Product-3.jpg new file mode 100644 index 0000000000..eb48259cae Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/dog-food/Dog-Product-3.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/dog-food/dog-food.jpg b/plugin_repository/assets/newsletter-templates/dog-food/dog-food.jpg new file mode 100644 index 0000000000..3d3b4bf78c Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/dog-food/dog-food.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/drone/Drone-Header.jpg b/plugin_repository/assets/newsletter-templates/drone/Drone-Header.jpg new file mode 100644 index 0000000000..63a87ab0bf Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/drone/Drone-Header.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/drone/Drone-Image-1.jpg b/plugin_repository/assets/newsletter-templates/drone/Drone-Image-1.jpg new file mode 100644 index 0000000000..f59c07198a Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/drone/Drone-Image-1.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/drone/Drone-Logo-Light-1.png b/plugin_repository/assets/newsletter-templates/drone/Drone-Logo-Light-1.png new file mode 100644 index 0000000000..3dcfd1221a Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/drone/Drone-Logo-Light-1.png differ diff --git a/plugin_repository/assets/newsletter-templates/drone/Drone-Logo.png b/plugin_repository/assets/newsletter-templates/drone/Drone-Logo.png new file mode 100644 index 0000000000..2a7482dcf3 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/drone/Drone-Logo.png differ diff --git a/plugin_repository/assets/newsletter-templates/drone/Drone-Video.jpg b/plugin_repository/assets/newsletter-templates/drone/Drone-Video.jpg new file mode 100644 index 0000000000..10cdbe1acd Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/drone/Drone-Video.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/drone/drone.jpg b/plugin_repository/assets/newsletter-templates/drone/drone.jpg new file mode 100644 index 0000000000..69f1729110 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/drone/drone.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/fashion/Fashion-Header.jpg b/plugin_repository/assets/newsletter-templates/fashion/Fashion-Header.jpg new file mode 100644 index 0000000000..be567bd451 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/fashion/Fashion-Header.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/fashion/Fashion-Items-1.jpg b/plugin_repository/assets/newsletter-templates/fashion/Fashion-Items-1.jpg new file mode 100644 index 0000000000..f425f9901f Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/fashion/Fashion-Items-1.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/fashion/Fashion-Items-2.jpg b/plugin_repository/assets/newsletter-templates/fashion/Fashion-Items-2.jpg new file mode 100644 index 0000000000..1c67cf3375 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/fashion/Fashion-Items-2.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/fashion/Fashion-Items-3.jpg b/plugin_repository/assets/newsletter-templates/fashion/Fashion-Items-3.jpg new file mode 100644 index 0000000000..a070ba9cc7 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/fashion/Fashion-Items-3.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/fashion/Fashion-Items-4.jpg b/plugin_repository/assets/newsletter-templates/fashion/Fashion-Items-4.jpg new file mode 100644 index 0000000000..df6995a03c Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/fashion/Fashion-Items-4.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/fashion/Fashion-Items-5.jpg b/plugin_repository/assets/newsletter-templates/fashion/Fashion-Items-5.jpg new file mode 100644 index 0000000000..0d84045fa5 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/fashion/Fashion-Items-5.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/fashion/Fashion-Items-6.jpg b/plugin_repository/assets/newsletter-templates/fashion/Fashion-Items-6.jpg new file mode 100644 index 0000000000..b3c6318e53 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/fashion/Fashion-Items-6.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/fashion/fashion.jpeg b/plugin_repository/assets/newsletter-templates/fashion/fashion.jpeg new file mode 100644 index 0000000000..95e3ee70b9 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/fashion/fashion.jpeg differ diff --git a/plugin_repository/assets/newsletter-templates/fashion/tulip-2.png b/plugin_repository/assets/newsletter-templates/fashion/tulip-2.png new file mode 100644 index 0000000000..d6f48acd78 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/fashion/tulip-2.png differ diff --git a/plugin_repository/assets/newsletter-templates/fitness/Fitness-Header.jpg b/plugin_repository/assets/newsletter-templates/fitness/Fitness-Header.jpg new file mode 100644 index 0000000000..46f82c1663 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/fitness/Fitness-Header.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/fitness/Fitness-Images.jpg b/plugin_repository/assets/newsletter-templates/fitness/Fitness-Images.jpg new file mode 100644 index 0000000000..dcbef8dc92 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/fitness/Fitness-Images.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/fitness/Fitness-Logo-1.jpg b/plugin_repository/assets/newsletter-templates/fitness/Fitness-Logo-1.jpg new file mode 100644 index 0000000000..118f2d594f Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/fitness/Fitness-Logo-1.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/fitness/Fitness-Logo-Footer-1.png b/plugin_repository/assets/newsletter-templates/fitness/Fitness-Logo-Footer-1.png new file mode 100644 index 0000000000..73eef89d05 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/fitness/Fitness-Logo-Footer-1.png differ diff --git a/plugin_repository/assets/newsletter-templates/fitness/fitness.jpg b/plugin_repository/assets/newsletter-templates/fitness/fitness.jpg new file mode 100644 index 0000000000..df181e288f Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/fitness/fitness.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/gift/Gift-Footer.jpg b/plugin_repository/assets/newsletter-templates/gift/Gift-Footer.jpg new file mode 100644 index 0000000000..39641e86dc Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/gift/Gift-Footer.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/gift/Gift-Header-1.jpg b/plugin_repository/assets/newsletter-templates/gift/Gift-Header-1.jpg new file mode 100644 index 0000000000..a496c96567 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/gift/Gift-Header-1.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/gift/Gift-Header.jpg b/plugin_repository/assets/newsletter-templates/gift/Gift-Header.jpg new file mode 100644 index 0000000000..4caf632c2a Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/gift/Gift-Header.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/gift/gift.jpg b/plugin_repository/assets/newsletter-templates/gift/gift.jpg new file mode 100644 index 0000000000..ea26fdd3a2 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/gift/gift.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/hotels/Hotel-Header.jpg b/plugin_repository/assets/newsletter-templates/hotels/Hotel-Header.jpg new file mode 100644 index 0000000000..ef306cb53f Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/hotels/Hotel-Header.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/hotels/Hotel-Logo-1.png b/plugin_repository/assets/newsletter-templates/hotels/Hotel-Logo-1.png new file mode 100644 index 0000000000..593c9ef282 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/hotels/Hotel-Logo-1.png differ diff --git a/plugin_repository/assets/newsletter-templates/hotels/Hotel-Logo-Small.png b/plugin_repository/assets/newsletter-templates/hotels/Hotel-Logo-Small.png new file mode 100644 index 0000000000..31a4c2db21 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/hotels/Hotel-Logo-Small.png differ diff --git a/plugin_repository/assets/newsletter-templates/hotels/dubai-paris.jpg b/plugin_repository/assets/newsletter-templates/hotels/dubai-paris.jpg new file mode 100644 index 0000000000..d4ac2cb35a Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/hotels/dubai-paris.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/hotels/hotels.jpg b/plugin_repository/assets/newsletter-templates/hotels/hotels.jpg new file mode 100644 index 0000000000..ca9d4777fb Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/hotels/hotels.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/hotels/rio-london.jpg b/plugin_repository/assets/newsletter-templates/hotels/rio-london.jpg new file mode 100644 index 0000000000..5e6810b115 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/hotels/rio-london.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/hotels/toronto-delhi.jpg b/plugin_repository/assets/newsletter-templates/hotels/toronto-delhi.jpg new file mode 100644 index 0000000000..3a703d0a96 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/hotels/toronto-delhi.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/kids-clothing/Kids-Clothing-Footer.jpg b/plugin_repository/assets/newsletter-templates/kids-clothing/Kids-Clothing-Footer.jpg new file mode 100644 index 0000000000..a65a05aff0 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/kids-clothing/Kids-Clothing-Footer.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/kids-clothing/Kids-Clothing-Header.jpg b/plugin_repository/assets/newsletter-templates/kids-clothing/Kids-Clothing-Header.jpg new file mode 100644 index 0000000000..520eca6ee9 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/kids-clothing/Kids-Clothing-Header.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/kids-clothing/Kids-Clothing-Image-2.jpg b/plugin_repository/assets/newsletter-templates/kids-clothing/Kids-Clothing-Image-2.jpg new file mode 100644 index 0000000000..d3e4769009 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/kids-clothing/Kids-Clothing-Image-2.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/kids-clothing/Kids-Clothing-Image-3.jpg b/plugin_repository/assets/newsletter-templates/kids-clothing/Kids-Clothing-Image-3.jpg new file mode 100644 index 0000000000..2dc2c58921 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/kids-clothing/Kids-Clothing-Image-3.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/kids-clothing/Kids-Clothing-Image-4.jpg b/plugin_repository/assets/newsletter-templates/kids-clothing/Kids-Clothing-Image-4.jpg new file mode 100644 index 0000000000..152c721663 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/kids-clothing/Kids-Clothing-Image-4.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/kids-clothing/Kids-Clothing-Image.jpg b/plugin_repository/assets/newsletter-templates/kids-clothing/Kids-Clothing-Image.jpg new file mode 100644 index 0000000000..045301ce16 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/kids-clothing/Kids-Clothing-Image.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/kids-clothing/Kids-Clothing-Logo-Footer-150x61.png b/plugin_repository/assets/newsletter-templates/kids-clothing/Kids-Clothing-Logo-Footer-150x61.png new file mode 100644 index 0000000000..78b4ff9dae Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/kids-clothing/Kids-Clothing-Logo-Footer-150x61.png differ diff --git a/plugin_repository/assets/newsletter-templates/kids-clothing/Kids-Clothing-Logo.png b/plugin_repository/assets/newsletter-templates/kids-clothing/Kids-Clothing-Logo.png new file mode 100644 index 0000000000..af1ed8736e Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/kids-clothing/Kids-Clothing-Logo.png differ diff --git a/plugin_repository/assets/newsletter-templates/kids-clothing/kids-clothing.jpg b/plugin_repository/assets/newsletter-templates/kids-clothing/kids-clothing.jpg new file mode 100644 index 0000000000..b5f20248bc Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/kids-clothing/kids-clothing.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/minimal/5_what_to_do_p352m1141746-800x533.jpg b/plugin_repository/assets/newsletter-templates/minimal/5_what_to_do_p352m1141746-800x533.jpg new file mode 100644 index 0000000000..0c5ef0c32e Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/minimal/5_what_to_do_p352m1141746-800x533.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/minimal/Minimal-Logo-Small.png b/plugin_repository/assets/newsletter-templates/minimal/Minimal-Logo-Small.png new file mode 100644 index 0000000000..3a613edf40 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/minimal/Minimal-Logo-Small.png differ diff --git a/plugin_repository/assets/newsletter-templates/minimal/Minimal-Logo1.png b/plugin_repository/assets/newsletter-templates/minimal/Minimal-Logo1.png new file mode 100644 index 0000000000..e0c20cd1ea Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/minimal/Minimal-Logo1.png differ diff --git a/plugin_repository/assets/newsletter-templates/minimal/gettyimages-578313682-800x533.jpg b/plugin_repository/assets/newsletter-templates/minimal/gettyimages-578313682-800x533.jpg new file mode 100644 index 0000000000..fda65affda Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/minimal/gettyimages-578313682-800x533.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/minimal/minimal.jpg b/plugin_repository/assets/newsletter-templates/minimal/minimal.jpg new file mode 100644 index 0000000000..1b3433d06d Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/minimal/minimal.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/minimal/plasma-stingray111-800x533.jpg b/plugin_repository/assets/newsletter-templates/minimal/plasma-stingray111-800x533.jpg new file mode 100644 index 0000000000..2f6d0934c7 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/minimal/plasma-stingray111-800x533.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/modular-style-stories/5_what_to_do_p352m1141746-800x533.jpg b/plugin_repository/assets/newsletter-templates/modular-style-stories/5_what_to_do_p352m1141746-800x533.jpg new file mode 100644 index 0000000000..0c5ef0c32e Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/modular-style-stories/5_what_to_do_p352m1141746-800x533.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/modular-style-stories/Modular-Logo.png b/plugin_repository/assets/newsletter-templates/modular-style-stories/Modular-Logo.png new file mode 100644 index 0000000000..dd588644e6 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/modular-style-stories/Modular-Logo.png differ diff --git a/plugin_repository/assets/newsletter-templates/modular-style-stories/gettyimages-578313682-800x533.jpg b/plugin_repository/assets/newsletter-templates/modular-style-stories/gettyimages-578313682-800x533.jpg new file mode 100644 index 0000000000..fda65affda Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/modular-style-stories/gettyimages-578313682-800x533.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/modular-style-stories/modular-style-stories.jpg b/plugin_repository/assets/newsletter-templates/modular-style-stories/modular-style-stories.jpg new file mode 100644 index 0000000000..db53e0ac9f Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/modular-style-stories/modular-style-stories.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/modular-style-stories/plasma-stingray111-800x533.jpg b/plugin_repository/assets/newsletter-templates/modular-style-stories/plasma-stingray111-800x533.jpg new file mode 100644 index 0000000000..2f6d0934c7 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/modular-style-stories/plasma-stingray111-800x533.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/music/Music-Logo.png b/plugin_repository/assets/newsletter-templates/music/Music-Logo.png new file mode 100644 index 0000000000..73e330198b Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/music/Music-Logo.png differ diff --git a/plugin_repository/assets/newsletter-templates/music/music-header.jpg b/plugin_repository/assets/newsletter-templates/music/music-header.jpg new file mode 100644 index 0000000000..ee49032540 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/music/music-header.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/music/music.jpg b/plugin_repository/assets/newsletter-templates/music/music.jpg new file mode 100644 index 0000000000..89036b3f9d Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/music/music.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/not-so-medium/0-IM2va2_e6Mzg1Et-.jpeg b/plugin_repository/assets/newsletter-templates/not-so-medium/0-IM2va2_e6Mzg1Et-.jpeg new file mode 100644 index 0000000000..f1431722fd Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/not-so-medium/0-IM2va2_e6Mzg1Et-.jpeg differ diff --git a/plugin_repository/assets/newsletter-templates/not-so-medium/0-PpT1Hf-4dqFdvSxR.jpeg b/plugin_repository/assets/newsletter-templates/not-so-medium/0-PpT1Hf-4dqFdvSxR.jpeg new file mode 100644 index 0000000000..e257858c87 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/not-so-medium/0-PpT1Hf-4dqFdvSxR.jpeg differ diff --git a/plugin_repository/assets/newsletter-templates/not-so-medium/0-w9nQeKIWx4fZbwPD.gif b/plugin_repository/assets/newsletter-templates/not-so-medium/0-w9nQeKIWx4fZbwPD.gif new file mode 100644 index 0000000000..ad6cebadb3 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/not-so-medium/0-w9nQeKIWx4fZbwPD.gif differ diff --git a/plugin_repository/assets/newsletter-templates/not-so-medium/Not-So-Medium-Logo.png b/plugin_repository/assets/newsletter-templates/not-so-medium/Not-So-Medium-Logo.png new file mode 100644 index 0000000000..0d31b1dddb Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/not-so-medium/Not-So-Medium-Logo.png differ diff --git a/plugin_repository/assets/newsletter-templates/not-so-medium/not-so-medium.jpg b/plugin_repository/assets/newsletter-templates/not-so-medium/not-so-medium.jpg new file mode 100644 index 0000000000..47026728c6 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/not-so-medium/not-so-medium.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/phone/Phone-Header.jpg b/plugin_repository/assets/newsletter-templates/phone/Phone-Header.jpg new file mode 100644 index 0000000000..dc3fa313bf Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/phone/Phone-Header.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/phone/Phone-Logo.png b/plugin_repository/assets/newsletter-templates/phone/Phone-Logo.png new file mode 100644 index 0000000000..c75356df95 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/phone/Phone-Logo.png differ diff --git a/plugin_repository/assets/newsletter-templates/phone/Phone-Title.png b/plugin_repository/assets/newsletter-templates/phone/Phone-Title.png new file mode 100644 index 0000000000..6ba2cc942d Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/phone/Phone-Title.png differ diff --git a/plugin_repository/assets/newsletter-templates/phone/phone.jpg b/plugin_repository/assets/newsletter-templates/phone/phone.jpg new file mode 100644 index 0000000000..096fc40223 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/phone/phone.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/real-estate/Property-Header.jpg b/plugin_repository/assets/newsletter-templates/real-estate/Property-Header.jpg new file mode 100644 index 0000000000..d8f2ed4236 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/real-estate/Property-Header.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/real-estate/Property-Icon-1.png b/plugin_repository/assets/newsletter-templates/real-estate/Property-Icon-1.png new file mode 100644 index 0000000000..d97614581c Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/real-estate/Property-Icon-1.png differ diff --git a/plugin_repository/assets/newsletter-templates/real-estate/Property-Icon-2.png b/plugin_repository/assets/newsletter-templates/real-estate/Property-Icon-2.png new file mode 100644 index 0000000000..c4404a5862 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/real-estate/Property-Icon-2.png differ diff --git a/plugin_repository/assets/newsletter-templates/real-estate/Property-Icon-3.png b/plugin_repository/assets/newsletter-templates/real-estate/Property-Icon-3.png new file mode 100644 index 0000000000..f639cf2e20 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/real-estate/Property-Icon-3.png differ diff --git a/plugin_repository/assets/newsletter-templates/real-estate/Property-Logo-1-150x84.jpg b/plugin_repository/assets/newsletter-templates/real-estate/Property-Logo-1-150x84.jpg new file mode 100644 index 0000000000..a7c85c74aa Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/real-estate/Property-Logo-1-150x84.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/real-estate/real-estate.jpg b/plugin_repository/assets/newsletter-templates/real-estate/real-estate.jpg new file mode 100644 index 0000000000..63a61e096d Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/real-estate/real-estate.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/retro/1980s-Download-1.jpg b/plugin_repository/assets/newsletter-templates/retro/1980s-Download-1.jpg new file mode 100644 index 0000000000..9a2c81204c Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/retro/1980s-Download-1.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/retro/1980s-Download-2.jpg b/plugin_repository/assets/newsletter-templates/retro/1980s-Download-2.jpg new file mode 100644 index 0000000000..65e35f0033 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/retro/1980s-Download-2.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/retro/1980s-Download-3.jpg b/plugin_repository/assets/newsletter-templates/retro/1980s-Download-3.jpg new file mode 100644 index 0000000000..0ffdbc201c Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/retro/1980s-Download-3.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/retro/1980s-Footer.jpg b/plugin_repository/assets/newsletter-templates/retro/1980s-Footer.jpg new file mode 100644 index 0000000000..3ea53ea416 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/retro/1980s-Footer.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/retro/1980s-Header.jpg b/plugin_repository/assets/newsletter-templates/retro/1980s-Header.jpg new file mode 100644 index 0000000000..b7ed999d17 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/retro/1980s-Header.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/retro/retro.jpg b/plugin_repository/assets/newsletter-templates/retro/retro.jpg new file mode 100644 index 0000000000..7bb0ddad3b Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/retro/retro.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/retro_computing_magazine/Windows94-Header.png b/plugin_repository/assets/newsletter-templates/retro_computing_magazine/Windows94-Header.png new file mode 100644 index 0000000000..9df873f063 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/retro_computing_magazine/Windows94-Header.png differ diff --git a/plugin_repository/assets/newsletter-templates/retro_computing_magazine/Windows94-Today.png b/plugin_repository/assets/newsletter-templates/retro_computing_magazine/Windows94-Today.png new file mode 100644 index 0000000000..e4b379aea2 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/retro_computing_magazine/Windows94-Today.png differ diff --git a/plugin_repository/assets/newsletter-templates/retro_computing_magazine/retro_computing_magazine.jpg b/plugin_repository/assets/newsletter-templates/retro_computing_magazine/retro_computing_magazine.jpg new file mode 100644 index 0000000000..f0b5775f32 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/retro_computing_magazine/retro_computing_magazine.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/rss-simple-news/RSS-Logo-1.png b/plugin_repository/assets/newsletter-templates/rss-simple-news/RSS-Logo-1.png new file mode 100644 index 0000000000..8fb0a3c31d Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/rss-simple-news/RSS-Logo-1.png differ diff --git a/plugin_repository/assets/newsletter-templates/rss-simple-news/RSS-Logo-2.png b/plugin_repository/assets/newsletter-templates/rss-simple-news/RSS-Logo-2.png new file mode 100644 index 0000000000..faf533903a Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/rss-simple-news/RSS-Logo-2.png differ diff --git a/plugin_repository/assets/newsletter-templates/rss-simple-news/rss-simple-news.jpg b/plugin_repository/assets/newsletter-templates/rss-simple-news/rss-simple-news.jpg new file mode 100644 index 0000000000..7d823a70f3 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/rss-simple-news/rss-simple-news.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/science_weekly/Health-Mag-Title-22.png b/plugin_repository/assets/newsletter-templates/science_weekly/Health-Mag-Title-22.png new file mode 100644 index 0000000000..84caf16c61 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/science_weekly/Health-Mag-Title-22.png differ diff --git a/plugin_repository/assets/newsletter-templates/science_weekly/science-weekly-new.jpg b/plugin_repository/assets/newsletter-templates/science_weekly/science-weekly-new.jpg new file mode 100644 index 0000000000..0d48ddeca6 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/science_weekly/science-weekly-new.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/sunglasses/Glasses-Header-2.jpg b/plugin_repository/assets/newsletter-templates/sunglasses/Glasses-Header-2.jpg new file mode 100644 index 0000000000..cf42fbfffe Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/sunglasses/Glasses-Header-2.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/sunglasses/Glasses-Header.jpg b/plugin_repository/assets/newsletter-templates/sunglasses/Glasses-Header.jpg new file mode 100644 index 0000000000..7bdccf52a5 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/sunglasses/Glasses-Header.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/sunglasses/Glasses-Images-1.jpg b/plugin_repository/assets/newsletter-templates/sunglasses/Glasses-Images-1.jpg new file mode 100644 index 0000000000..aea646b167 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/sunglasses/Glasses-Images-1.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/sunglasses/Glasses-Images-2.jpg b/plugin_repository/assets/newsletter-templates/sunglasses/Glasses-Images-2.jpg new file mode 100644 index 0000000000..8fe43b09ea Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/sunglasses/Glasses-Images-2.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/sunglasses/Glasses-Images-3.jpg b/plugin_repository/assets/newsletter-templates/sunglasses/Glasses-Images-3.jpg new file mode 100644 index 0000000000..ee86dc8648 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/sunglasses/Glasses-Images-3.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/sunglasses/Glasses-Logo.jpg b/plugin_repository/assets/newsletter-templates/sunglasses/Glasses-Logo.jpg new file mode 100644 index 0000000000..3829f02006 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/sunglasses/Glasses-Logo.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/sunglasses/sunglasses.jpg b/plugin_repository/assets/newsletter-templates/sunglasses/sunglasses.jpg new file mode 100644 index 0000000000..3b3ff186e2 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/sunglasses/sunglasses.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/wide-story-layout/5_what_to_do_p352m1141746-800x533.jpg b/plugin_repository/assets/newsletter-templates/wide-story-layout/5_what_to_do_p352m1141746-800x533.jpg new file mode 100644 index 0000000000..0c5ef0c32e Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/wide-story-layout/5_what_to_do_p352m1141746-800x533.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/wide-story-layout/Wide-Footer.jpg b/plugin_repository/assets/newsletter-templates/wide-story-layout/Wide-Footer.jpg new file mode 100644 index 0000000000..739e1cece3 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/wide-story-layout/Wide-Footer.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/wide-story-layout/Wide-Header.jpg b/plugin_repository/assets/newsletter-templates/wide-story-layout/Wide-Header.jpg new file mode 100644 index 0000000000..5bc25d574a Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/wide-story-layout/Wide-Header.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/wide-story-layout/Wide-Logo.png b/plugin_repository/assets/newsletter-templates/wide-story-layout/Wide-Logo.png new file mode 100644 index 0000000000..acff57a8eb Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/wide-story-layout/Wide-Logo.png differ diff --git a/plugin_repository/assets/newsletter-templates/wide-story-layout/gettyimages-578313682-800x533.jpg b/plugin_repository/assets/newsletter-templates/wide-story-layout/gettyimages-578313682-800x533.jpg new file mode 100644 index 0000000000..fda65affda Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/wide-story-layout/gettyimages-578313682-800x533.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/wide-story-layout/plasma-stingray111-800x533.jpg b/plugin_repository/assets/newsletter-templates/wide-story-layout/plasma-stingray111-800x533.jpg new file mode 100644 index 0000000000..2f6d0934c7 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/wide-story-layout/plasma-stingray111-800x533.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/wide-story-layout/wide-story-layout.jpg b/plugin_repository/assets/newsletter-templates/wide-story-layout/wide-story-layout.jpg new file mode 100644 index 0000000000..e0c4e26258 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/wide-story-layout/wide-story-layout.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/wine-city/Wine-Header-1.jpg b/plugin_repository/assets/newsletter-templates/wine-city/Wine-Header-1.jpg new file mode 100644 index 0000000000..3ac675406c Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/wine-city/Wine-Header-1.jpg differ diff --git a/plugin_repository/assets/newsletter-templates/wine-city/Wine-Logo.png b/plugin_repository/assets/newsletter-templates/wine-city/Wine-Logo.png new file mode 100644 index 0000000000..b80758f8b6 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/wine-city/Wine-Logo.png differ diff --git a/plugin_repository/assets/newsletter-templates/wine-city/wine-city.jpg b/plugin_repository/assets/newsletter-templates/wine-city/wine-city.jpg new file mode 100644 index 0000000000..b9d96b2ee7 Binary files /dev/null and b/plugin_repository/assets/newsletter-templates/wine-city/wine-city.jpg differ diff --git a/tests/_data/acceptanceDump.sql b/tests/_data/acceptanceDump.sql index bdcdfbd432..5a5670e033 100644 --- a/tests/_data/acceptanceDump.sql +++ b/tests/_data/acceptanceDump.sql @@ -148,7 +148,8 @@ CREATE TABLE `mp_mailpoet_newsletter_links` ( `hash` varchar(20) COLLATE utf8mb4_unicode_520_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - PRIMARY KEY (`id`) + PRIMARY KEY (`id`), + KEY queue_id (queue_id) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci; @@ -198,7 +199,8 @@ CREATE TABLE `mp_mailpoet_newsletter_posts` ( `post_id` int(11) unsigned NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - PRIMARY KEY (`id`) + PRIMARY KEY (`id`), + KEY newsletter_id (newsletter_id) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci; @@ -218,6 +220,7 @@ DROP TABLE IF EXISTS `mp_mailpoet_newsletter_templates`; CREATE TABLE `mp_mailpoet_newsletter_templates` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(250) COLLATE utf8mb4_unicode_520_ci NOT NULL, + `newsletter_id` int NULL DEFAULT 0, `description` varchar(250) COLLATE utf8mb4_unicode_520_ci NOT NULL, `body` longtext COLLATE utf8mb4_unicode_520_ci, `thumbnail` longtext COLLATE utf8mb4_unicode_520_ci, @@ -227,33 +230,6 @@ CREATE TABLE `mp_mailpoet_newsletter_templates` ( PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci; -INSERT INTO `mp_mailpoet_newsletter_templates` (`id`, `name`, `description`, `body`, `thumbnail`, `readonly`, `created_at`, `updated_at`) VALUES -(1, 'Newsletter: Blank 1 Column', 'A blank Newsletter template with a 1 column layout.', '{\"content\":{\"type\":\"container\",\"orientation\":\"vertical\",\"styles\":{\"block\":{\"backgroundColor\":\"transparent\"}},\"blocks\":[{\"type\":\"container\",\"orientation\":\"horizontal\",\"styles\":{\"block\":{\"backgroundColor\":\"#f8f8f8\"}},\"blocks\":[{\"type\":\"container\",\"orientation\":\"vertical\",\"styles\":{\"block\":{\"backgroundColor\":\"transparent\"}},\"blocks\":[{\"type\":\"header\",\"text\":\"Display problems? Open this email in your web browser.<\\/a>\",\"styles\":{\"block\":{\"backgroundColor\":\"transparent\"},\"text\":{\"fontColor\":\"#222222\",\"fontFamily\":\"Arial\",\"fontSize\":\"12px\",\"textAlign\":\"center\"},\"link\":{\"fontColor\":\"#6cb7d4\",\"textDecoration\":\"underline\"}}}]}]},{\"type\":\"container\",\"orientation\":\"horizontal\",\"styles\":{\"block\":{\"backgroundColor\":\"#ffffff\"}},\"blocks\":[{\"type\":\"container\",\"orientation\":\"vertical\",\"styles\":{\"block\":{\"backgroundColor\":\"transparent\"}},\"blocks\":[{\"type\":\"spacer\",\"styles\":{\"block\":{\"backgroundColor\":\"transparent\",\"height\":\"30px\"}}},{\"type\":\"image\",\"link\":\"\",\"src\":\"http:\\/\\/wordpress\\/wp-content\\/plugins\\/mailpoet\\/assets\\/img\\/blank_templates\\/fake-logo.png\",\"alt\":\"Fake logo\",\"fullWidth\":false,\"width\":\"598px\",\"height\":\"71px\",\"styles\":{\"block\":{\"textAlign\":\"center\"}}},{\"type\":\"text\",\"text\":\"

Let\'s Get Started! <\\/strong><\\/h1>\\n

 <\\/p>\\n

It\'s time to design your newsletter! In the right sidebar, you\'ll find 4 menu items that will help you customize your newsletter:<\\/p>\\n

    \\n
  1. Content<\\/li>\\n
  2. Columns<\\/li>\\n
  3. Styles<\\/li>\\n
  4. Preview<\\/li>\\n<\\/ol>\"}]}]},{\"type\":\"container\",\"orientation\":\"horizontal\",\"styles\":{\"block\":{\"backgroundColor\":\"#f8f8f8\"}},\"blocks\":[{\"type\":\"container\",\"orientation\":\"vertical\",\"styles\":{\"block\":{\"backgroundColor\":\"transparent\"}},\"blocks\":[{\"type\":\"divider\",\"styles\":{\"block\":{\"backgroundColor\":\"transparent\",\"padding\":\"24.5px\",\"borderStyle\":\"solid\",\"borderWidth\":\"3px\",\"borderColor\":\"#aaaaaa\"}}},{\"type\":\"social\",\"iconSet\":\"grey\",\"icons\":[{\"type\":\"socialIcon\",\"iconType\":\"facebook\",\"link\":\"http:\\/\\/www.facebook.com\",\"image\":\"http:\\/\\/wordpress\\/wp-content\\/plugins\\/mailpoet\\/assets\\/img\\/newsletter_editor\\/social-icons\\/02-grey\\/Facebook.png\",\"height\":\"32px\",\"width\":\"32px\",\"text\":\"Facebook\"},{\"type\":\"socialIcon\",\"iconType\":\"twitter\",\"link\":\"http:\\/\\/www.twitter.com\",\"image\":\"http:\\/\\/wordpress\\/wp-content\\/plugins\\/mailpoet\\/assets\\/img\\/newsletter_editor\\/social-icons\\/02-grey\\/Twitter.png\",\"height\":\"32px\",\"width\":\"32px\",\"text\":\"Twitter\"}]},{\"type\":\"divider\",\"styles\":{\"block\":{\"backgroundColor\":\"transparent\",\"padding\":\"7.5px\",\"borderStyle\":\"solid\",\"borderWidth\":\"3px\",\"borderColor\":\"#aaaaaa\"}}},{\"type\":\"footer\",\"text\":\"

    Unsubscribe<\\/a> | Manage your subscription<\\/a>
    Add your postal address here!<\\/p>\",\"styles\":{\"block\":{\"backgroundColor\":\"transparent\"},\"text\":{\"fontColor\":\"#222222\",\"fontFamily\":\"Arial\",\"fontSize\":\"12px\",\"textAlign\":\"center\"},\"link\":{\"fontColor\":\"#6cb7d4\",\"textDecoration\":\"none\"}}}]}]}]},\"globalStyles\":{\"text\":{\"fontColor\":\"#000000\",\"fontFamily\":\"Arial\",\"fontSize\":\"16px\"},\"h1\":{\"fontColor\":\"#111111\",\"fontFamily\":\"Trebuchet MS\",\"fontSize\":\"30px\"},\"h2\":{\"fontColor\":\"#222222\",\"fontFamily\":\"Trebuchet MS\",\"fontSize\":\"24px\"},\"h3\":{\"fontColor\":\"#333333\",\"fontFamily\":\"Trebuchet MS\",\"fontSize\":\"22px\"},\"link\":{\"fontColor\":\"#21759B\",\"textDecoration\":\"underline\"},\"wrapper\":{\"backgroundColor\":\"#ffffff\"},\"body\":{\"backgroundColor\":\"#eeeeee\"}}}', 'https://ps.w.org/mailpoet/assets/newsletter-templates/newsletter-blank-1-column/screenshot.jpg', 1, NULL, '2017-10-30 00:57:38'), -(2, 'Newsletter: Blank 1:2 Column', 'A blank Newsletter template with a 1:2 column layout.', '{\"content\":{\"type\":\"container\",\"orientation\":\"vertical\",\"styles\":{\"block\":{\"backgroundColor\":\"transparent\"}},\"blocks\":[{\"type\":\"container\",\"orientation\":\"horizontal\",\"styles\":{\"block\":{\"backgroundColor\":\"#f8f8f8\"}},\"blocks\":[{\"type\":\"container\",\"orientation\":\"vertical\",\"styles\":{\"block\":{\"backgroundColor\":\"transparent\"}},\"blocks\":[{\"type\":\"header\",\"text\":\"Display problems?
    Open this email in your web browser.<\\/a>\",\"styles\":{\"block\":{\"backgroundColor\":\"transparent\"},\"text\":{\"fontColor\":\"#222222\",\"fontFamily\":\"Arial\",\"fontSize\":\"12px\",\"textAlign\":\"center\"},\"link\":{\"fontColor\":\"#6cb7d4\",\"textDecoration\":\"underline\"}}}]}]},{\"type\":\"container\",\"orientation\":\"horizontal\",\"styles\":{\"block\":{\"backgroundColor\":\"#ffffff\"}},\"blocks\":[{\"type\":\"container\",\"orientation\":\"vertical\",\"styles\":{\"block\":{\"backgroundColor\":\"transparent\"}},\"blocks\":[{\"type\":\"spacer\",\"styles\":{\"block\":{\"backgroundColor\":\"transparent\",\"height\":\"30px\"}}},{\"type\":\"image\",\"link\":\"\",\"src\":\"http:\\/\\/wordpress\\/wp-content\\/plugins\\/mailpoet\\/assets\\/img\\/blank_templates\\/fake-logo.png\",\"alt\":\"Fake Logo\",\"fullWidth\":false,\"width\":\"598px\",\"height\":\"71px\",\"styles\":{\"block\":{\"textAlign\":\"center\"}}},{\"type\":\"text\",\"text\":\"

    Let\'s Get Started!<\\/strong><\\/h1>\\n

     <\\/p>\\n

    It\'s time to design your newsletter! In the right sidebar, you\'ll find 4 menu items that will help you customize your newsletter:<\\/p>\\n

      \\n
    1. Content<\\/li>\\n
    2. Columns<\\/li>\\n
    3. Styles<\\/li>\\n
    4. Preview<\\/li>\\n<\\/ol>\"},{\"type\":\"divider\",\"styles\":{\"block\":{\"backgroundColor\":\"transparent\",\"padding\":\"13px\",\"borderStyle\":\"dotted\",\"borderWidth\":\"3px\",\"borderColor\":\"#aaaaaa\"}}}]}]},{\"type\":\"container\",\"orientation\":\"horizontal\",\"styles\":{\"block\":{\"backgroundColor\":\"transparent\"}},\"blocks\":[{\"type\":\"container\",\"orientation\":\"vertical\",\"styles\":{\"block\":{\"backgroundColor\":\"transparent\"}},\"blocks\":[{\"type\":\"text\",\"text\":\"

      This template has...<\\/h2>\"},{\"type\":\"text\",\"text\":\"

      In the right sidebar, you can add these layout blocks to your email:<\\/p>\\n