Merge pull request #963 from mailpoet/new-templates
New templates [MAILPOET-922]
This commit is contained in:
@ -26,7 +26,6 @@ class Populator {
|
||||
'newsletter_templates',
|
||||
);
|
||||
$this->templates = array(
|
||||
"FranksRoastHouseTemplate",
|
||||
"NewsletterBlank1Column",
|
||||
"NewsletterBlank12Column",
|
||||
"NewsletterBlank121Column",
|
||||
@ -35,9 +34,23 @@ class Populator {
|
||||
"WelcomeBlank1Column",
|
||||
"WelcomeBlank12Column",
|
||||
"SimpleText",
|
||||
"Restaurant",
|
||||
"StoreDiscount",
|
||||
"TravelEmail"
|
||||
"BurgerJoint",
|
||||
"AppWelcome",
|
||||
"WorldCup",
|
||||
"FoodBox",
|
||||
"Discount",
|
||||
"KickOff",
|
||||
"TakeAHike",
|
||||
"FestivalEvent",
|
||||
"PieceOfCake",
|
||||
"Shoes",
|
||||
"ScienceWeekly",
|
||||
"ChocolateStore",
|
||||
"Faith",
|
||||
"TravelNomads",
|
||||
"CoffeeShop",
|
||||
"NewsDay",
|
||||
"YogaStudio",
|
||||
);
|
||||
}
|
||||
|
||||
|
415
lib/Config/PopulatorData/Templates/AppWelcome.php
Normal file
415
lib/Config/PopulatorData/Templates/AppWelcome.php
Normal file
@ -0,0 +1,415 @@
|
||||
<?php
|
||||
|
||||
namespace MailPoet\Config\PopulatorData\Templates;
|
||||
|
||||
class AppWelcome {
|
||||
|
||||
private $template_image_url;
|
||||
private $social_icon_url;
|
||||
|
||||
function __construct($assets_url) {
|
||||
$this->template_image_url = '//ps.w.org/mailpoet/assets/newsletter-templates/app_welcome';
|
||||
$this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons';
|
||||
}
|
||||
|
||||
function get() {
|
||||
return array(
|
||||
'name' => __("App Welcome", 'mailpoet'),
|
||||
'description' => __("A welcome email template for your app.", 'mailpoet'),
|
||||
'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' => '#eeeeee',
|
||||
),
|
||||
),
|
||||
'blocks' => array(
|
||||
array(
|
||||
'type' => 'container',
|
||||
'orientation' => 'vertical',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
),
|
||||
),
|
||||
'blocks' => array(
|
||||
array(
|
||||
'type' => 'spacer',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => '#eeeeee',
|
||||
'height' => '30px',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
array(
|
||||
'type' => 'container',
|
||||
'orientation' => 'horizontal',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => '#32b6c6',
|
||||
),
|
||||
),
|
||||
'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' => '40px',
|
||||
),
|
||||
),
|
||||
),
|
||||
array(
|
||||
'type' => 'image',
|
||||
'link' => '',
|
||||
'src' => $this->template_image_url . '/App-Signup-Logo-1.png',
|
||||
'alt' => 'App-Signup-Logo',
|
||||
'fullWidth' => false,
|
||||
'width' => '80px',
|
||||
'height' => '80px',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'textAlign' => 'center',
|
||||
),
|
||||
),
|
||||
),
|
||||
array(
|
||||
'type' => 'text',
|
||||
'text' => '<h1 style="text-align: center; margin: 0;"><strong>Welcome to Appy</strong></h1><p style="text-align: center; margin: 0;"><span style="color: #ffffff;">Let\'s get started!</span></p>',
|
||||
),
|
||||
|
||||
array(
|
||||
'type' => 'image',
|
||||
'link' => '',
|
||||
'src' => $this->template_image_url . '/App-Signup-Header.png',
|
||||
'alt' => 'App-Signup-Header',
|
||||
'fullWidth' => false,
|
||||
'width' => '1280px',
|
||||
'height' => '500px',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'textAlign' => 'center',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
array(
|
||||
'type' => 'container',
|
||||
'orientation' => 'horizontal',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => '#ffffff',
|
||||
),
|
||||
),
|
||||
'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' => '40px',
|
||||
),
|
||||
),
|
||||
),
|
||||
array(
|
||||
'type' => 'text',
|
||||
'text' => '<p style="text-align: center;">Hi [subscriber:firstname | default:subscriber],</p>
|
||||
<p style="text-align: center;"></p>
|
||||
<p style="text-align: center;">In MailPoet, you can write emails in plain text, just like in a regular email. This can make your email newsletters more personal and attention-grabbing.</p>
|
||||
<p style="text-align: center;"></p>
|
||||
<p style="text-align: center;">Is this too simple? You can still style your text with basic formatting, like <strong>bold</strong> or <em>italics.</em></p>
|
||||
<p style="text-align: center;"></p>
|
||||
<p style="text-align: center;">Finally, you can also add a call-to-action button between 2 blocks of text, like this:</p>',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
array(
|
||||
'type' => 'container',
|
||||
'orientation' => 'horizontal',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => '#ffffff',
|
||||
),
|
||||
),
|
||||
'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' => '23px',
|
||||
),
|
||||
),
|
||||
),
|
||||
array(
|
||||
'type' => 'button',
|
||||
'text' => 'Get Started Here',
|
||||
'url' => '',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => '#32b6c6',
|
||||
'borderColor' => '#32b6c6',
|
||||
'borderWidth' => '0px',
|
||||
'borderRadius' => '40px',
|
||||
'borderStyle' => 'solid',
|
||||
'width' => '188px',
|
||||
'lineHeight' => '50px',
|
||||
'fontColor' => '#ffffff',
|
||||
'fontFamily' => 'Arial',
|
||||
'fontSize' => '18px',
|
||||
'fontWeight' => 'normal',
|
||||
'textAlign' => 'center',
|
||||
),
|
||||
),
|
||||
),
|
||||
array(
|
||||
'type' => 'spacer',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
'height' => '35px',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
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' => '',
|
||||
'src' => $this->template_image_url . '/App-Signup-Team.jpg',
|
||||
'alt' => 'App-Signup-Team',
|
||||
'fullWidth' => true,
|
||||
'width' => '1280px',
|
||||
'height' => '700px',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'textAlign' => 'center',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
array(
|
||||
'type' => 'container',
|
||||
'orientation' => 'horizontal',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => '#eeeeee',
|
||||
),
|
||||
),
|
||||
'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' => 'image',
|
||||
'link' => '',
|
||||
'src' => $this->template_image_url . '/App-Signup-Logo-Footer.png',
|
||||
'alt' => 'App-Signup-Logo-Footer',
|
||||
'fullWidth' => false,
|
||||
'width' => '50px',
|
||||
'height' => '50px',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'textAlign' => 'center',
|
||||
),
|
||||
),
|
||||
),
|
||||
array(
|
||||
'type' => 'text',
|
||||
'text' => '<p style="text-align: center; font-size: 12px;"><strong>Appy</strong></p>
|
||||
<p style="text-align: center; font-size: 12px;"><span>Address Line 1</span></p>
|
||||
<p style="text-align: center; font-size: 12px;"><span>Address Line 2</span></p>
|
||||
<p style="text-align: center; font-size: 12px;"><span>City</span></p>
|
||||
<p style="text-align: center; font-size: 12px;"><a href="[link:subscription_unsubscribe_url]">Unsubscribe</a><span> | </span><a href="[link:subscription_manage_url]">Manage subscription</a></p>',
|
||||
),
|
||||
array(
|
||||
'type' => 'social',
|
||||
'iconSet' => 'full-symbol-color',
|
||||
'icons' => array(
|
||||
array(
|
||||
'type' => 'socialIcon',
|
||||
'iconType' => 'facebook',
|
||||
'link' => 'http://www.facebook.com',
|
||||
'image' => $this->social_icon_url . '/06-full-symbol-color/Facebook.png',
|
||||
'height' => '32px',
|
||||
'width' => '32px',
|
||||
'text' => 'Facebook',
|
||||
),
|
||||
array(
|
||||
'type' => 'socialIcon',
|
||||
'iconType' => 'twitter',
|
||||
'link' => 'http://www.twitter.com',
|
||||
'image' => $this->social_icon_url . '/06-full-symbol-color/Twitter.png',
|
||||
'height' => '32px',
|
||||
'width' => '32px',
|
||||
'text' => 'Twitter',
|
||||
),
|
||||
array(
|
||||
'type' => 'socialIcon',
|
||||
'iconType' => 'youtube',
|
||||
'link' => 'http://www.youtube.com',
|
||||
'image' => $this->social_icon_url . '/06-full-symbol-color/Youtube.png',
|
||||
'height' => '32px',
|
||||
'width' => '32px',
|
||||
'text' => 'Youtube',
|
||||
),
|
||||
array(
|
||||
'type' => 'socialIcon',
|
||||
'iconType' => 'instagram',
|
||||
'link' => 'http://instagram.com',
|
||||
'image' => $this->social_icon_url . '/06-full-symbol-color/Instagram.png',
|
||||
'height' => '32px',
|
||||
'width' => '32px',
|
||||
'text' => 'Instagram',
|
||||
),
|
||||
),
|
||||
),
|
||||
array(
|
||||
'type' => 'spacer',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
'height' => '40px',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
'globalStyles' => array(
|
||||
'text' => array(
|
||||
'fontColor' => '#404040',
|
||||
'fontFamily' => 'Arial',
|
||||
'fontSize' => '15px',
|
||||
),
|
||||
'h1' => array(
|
||||
'fontColor' => '#ffffff',
|
||||
'fontFamily' => 'Arial',
|
||||
'fontSize' => '26px',
|
||||
),
|
||||
'h2' => array(
|
||||
'fontColor' => '#404040',
|
||||
'fontFamily' => 'Arial',
|
||||
'fontSize' => '22px',
|
||||
),
|
||||
'h3' => array(
|
||||
'fontColor' => '#32b6c6',
|
||||
'fontFamily' => 'Arial',
|
||||
'fontSize' => '18px',
|
||||
),
|
||||
'link' => array(
|
||||
'fontColor' => '#32b6c6',
|
||||
'textDecoration' => 'underline',
|
||||
),
|
||||
'wrapper' => array(
|
||||
'backgroundColor' => '#ffffff',
|
||||
),
|
||||
'body' => array(
|
||||
'backgroundColor' => '#eeeeee',
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
private function getThumbnail() {
|
||||
return $this->template_image_url . '/app-welcome-email.jpg';
|
||||
}
|
||||
|
||||
}
|
497
lib/Config/PopulatorData/Templates/BurgerJoint.php
Normal file
497
lib/Config/PopulatorData/Templates/BurgerJoint.php
Normal file
@ -0,0 +1,497 @@
|
||||
<?php
|
||||
|
||||
namespace MailPoet\Config\PopulatorData\Templates;
|
||||
|
||||
class BurgerJoint {
|
||||
|
||||
private $template_image_url;
|
||||
private $social_icon_url;
|
||||
|
||||
function __construct($assets_url) {
|
||||
$this->template_image_url = 'http://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'),
|
||||
'description' => __("Add more or less ketchup or mayo to this restaurant template.", 'mailpoet'),
|
||||
'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' => '<h1 style="text-align: center;"><em>Upgrade! Add these sides</em></h1>',
|
||||
),
|
||||
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' => '<blockquote><p>Cras cursus viverra nulla non tempus. Curabitur sed neque vel sapien! - Morbi ullamcorper, Tellus Diam</p></blockquote>',
|
||||
),
|
||||
),
|
||||
),
|
||||
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' => '<blockquote><p>Morbi ex diam, venenatis a efficitur et, iaculis at nibh. - Quis Ullamcorper, Tortor Ligula</p></blockquote>',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
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' => '<h2 style="text-align: center;">Find us at these locations</h2>',
|
||||
),
|
||||
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' => '<h3><span style="text-decoration: underline;"><em>Denver</em></span></h3><p>1263 Schoville Street</p><p>53355 DENVER</p><p>CO</p>',
|
||||
),
|
||||
),
|
||||
),
|
||||
array(
|
||||
'type' => 'container',
|
||||
'orientation' => 'vertical',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
),
|
||||
),
|
||||
'blocks' => array(
|
||||
array(
|
||||
'type' => 'text',
|
||||
'text' => '<h3><span style="text-decoration: underline;"><em>Fort Collins</em></span></h3><p><em></em>157 Maine Street</p><p>86432 FORT COLLINS<br />CO</p><p></p>',
|
||||
),
|
||||
),
|
||||
),
|
||||
array(
|
||||
'type' => 'container',
|
||||
'orientation' => 'vertical',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
),
|
||||
),
|
||||
'blocks' => array(
|
||||
array(
|
||||
'type' => 'text',
|
||||
'text' => '<h3><span style="text-decoration: underline;"><em>Pueblo</em></span></h3><p><em></em>5390 York Avenue</p><p>64297 Pueblo</p><p>CO</p>',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
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' => '<p><a href="[link:newsletter_view_in_browser_url]">View this email in your web browser</a></p>',
|
||||
'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' => '<p><a href="[link:subscription_unsubscribe_url]">Unsubscribe</a> | <a href="[link:subscription_manage_url]">Manage subscription</a><br />Address: Colorado</p>',
|
||||
'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';
|
||||
}
|
||||
|
||||
}
|
846
lib/Config/PopulatorData/Templates/ChocolateStore.php
Normal file
846
lib/Config/PopulatorData/Templates/ChocolateStore.php
Normal file
@ -0,0 +1,846 @@
|
||||
<?php
|
||||
|
||||
namespace MailPoet\Config\PopulatorData\Templates;
|
||||
|
||||
class ChocolateStore {
|
||||
|
||||
private $template_image_url;
|
||||
private $social_icon_url;
|
||||
|
||||
function __construct($assets_url) {
|
||||
$this->template_image_url = '//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'),
|
||||
'description' => __("A classy black store template.", 'mailpoet'),
|
||||
'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' => '<h1 style="text-align: center;">SEASONAL SPECIAL: RUM TRUFFLE</h1>
|
||||
<p style="text-align: left;">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.</p>',
|
||||
),
|
||||
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' => '<h2 style="text-align: center;">Store News</h2>',
|
||||
),
|
||||
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' => '<p><span style="font-family: \'Open Sans\', Arial, sans-serif;"><span style="font-size: 14px;">Duis pellentesque nibh in lectus blandit.</span></span></p>',
|
||||
'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' => '<p>Phasellus feugiat laoreet ex ac elementum.</p>',
|
||||
'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' => '<p>Mauris lacinia venenatis luctus. </p>',
|
||||
'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' => '<h1 style="text-align: center;">Cocoa Blogs...</h1>',
|
||||
),
|
||||
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' => '<p>Add your postal address here!</p>',
|
||||
),
|
||||
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' => '<p><em>Praesent metus ante, venenatis egestas nisl ac, molestie viverra ante. </em></p>
|
||||
<p><em> </em></p>
|
||||
<p><a href="[link:subscription_unsubscribe_url]">Unsubscribe<br /></a><a href="[link:subscription_manage_url]">Manage subscription</a></p>',
|
||||
'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' => '<p><em>Aliquam feugiat nisl eget eleifend congue.</em></p>',
|
||||
),
|
||||
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';
|
||||
}
|
||||
|
||||
}
|
425
lib/Config/PopulatorData/Templates/CoffeeShop.php
Normal file
425
lib/Config/PopulatorData/Templates/CoffeeShop.php
Normal file
@ -0,0 +1,425 @@
|
||||
<?php
|
||||
|
||||
namespace MailPoet\Config\PopulatorData\Templates;
|
||||
|
||||
class CoffeeShop {
|
||||
|
||||
private $social_icon_url;
|
||||
private $template_image_url;
|
||||
|
||||
function __construct($assets_url) {
|
||||
$this->template_image_url = '//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'),
|
||||
'description' => __("Coffee and sugar in your coffee?", 'mailpoet'),
|
||||
'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' => '<p>Hi there [subscriber:firstname | default:coffee drinker]</p>
|
||||
<p></p>
|
||||
<p>Sit back and enjoy your favorite roast as you read this week\'s newsletter. </p>',
|
||||
),
|
||||
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' => '<h1 style="text-align: center;">--- Guest Roaster: <em>Brew Bros. ---</em></h1>
|
||||
<p><em></em></p>
|
||||
<p>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.</p>
|
||||
<p></p>
|
||||
<blockquote>
|
||||
<p><span style="color: #ff6600;"><em><strong>Tasting notes:</strong> A rich, caramel flavor with subtle hints of molasses. The perfect wake-up morning espresso!</em></span></p>
|
||||
</blockquote>',
|
||||
),
|
||||
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' => '<h2>Sandwich Competition</h2>',
|
||||
),
|
||||
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' => '<p>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.</p>
|
||||
<p></p>
|
||||
<p>Simply tweet your ideas to <a href="http://www.example.com" title="This isn\'t a real twitter account">@franksroasthouse</a> and use #sandwichcomp and we\'ll let you know if you\'re a winner.</p>',
|
||||
),
|
||||
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' => '<h3 style="text-align: center;">Follow Us</h3>',
|
||||
),
|
||||
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' => '<h2>New Store Opening!</h2>',
|
||||
),
|
||||
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' => '<p>Watch out Broad Street, we\'re coming to you very soon! </p>
|
||||
<p></p>
|
||||
<p>Keep an eye on your inbox, as we\'ll have some special offers for our email subscribers plus an exclusive launch party invite!<br /><br /></p>',
|
||||
),
|
||||
4 => array(
|
||||
'type' => 'text',
|
||||
'text' => '<h2>New and Improved Hours!</h2>
|
||||
<p></p>
|
||||
<p>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:</p>
|
||||
<p></p>
|
||||
<ul>
|
||||
<li>Monday - Thursday: 6am - 12am</li>
|
||||
<li>Friday - Saturday: 6am - 1:30am</li>
|
||||
<li>Sunday: 7:30am - 11pm</li>
|
||||
</ul>',
|
||||
),
|
||||
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' => '<p><a href="[link:subscription_unsubscribe_url]">Unsubscribe</a> | <a href="[link:subscription_manage_url]">Manage subscription</a><br />12345 MailPoet Drive, EmailVille, 76543</p>',
|
||||
'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';
|
||||
}
|
||||
|
||||
}
|
467
lib/Config/PopulatorData/Templates/Discount.php
Normal file
467
lib/Config/PopulatorData/Templates/Discount.php
Normal file
@ -0,0 +1,467 @@
|
||||
<?php
|
||||
|
||||
namespace MailPoet\Config\PopulatorData\Templates;
|
||||
|
||||
class Discount {
|
||||
|
||||
private $template_image_url;
|
||||
private $social_icon_url;
|
||||
|
||||
function __construct($assets_url) {
|
||||
$this->template_image_url = '//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'),
|
||||
'description' => __("A useful layout for a simple discount email.", 'mailpoet'),
|
||||
'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' => '<p></p>
|
||||
<p>Hi [subscriber:firstname | default:reader]</p>
|
||||
<p class=""></p>
|
||||
<p>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.</p>',
|
||||
),
|
||||
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' => '<h1 style="text-align: center;"><em><strong>15% odio felis fringilla eget enim</strong></em></h1>',
|
||||
),
|
||||
2 => array(
|
||||
'type' => 'text',
|
||||
'text' => '<h2 style="text-align: center;">FUSCE LOBORTIS<strong>: WELOVEMAILPOET</strong></h2>',
|
||||
),
|
||||
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' => '<h1 style="text-align: center;"><strong><em>Use your discount on these great products...</em></strong></h1>',
|
||||
),
|
||||
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' => '<h3 style="text-align: center;">Lovely Red Bicycle</h3>
|
||||
<p>Quisque nec vulputate velit, non sagittis ex. Suspendisse ligula urna, tempus sed iaculis sit amet, convallis at arcu.</p>
|
||||
<h3 style="text-align: center;"><strong><span style="color: #488e88;">$289.99</span></strong></h3>',
|
||||
),
|
||||
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' => '<h3 style="text-align: center;">Little Orange Bicycle</h3>
|
||||
<p>Praesent molestie mollis sapien vel dignissim. Maecenas ultrices, odio eget dapibus iaculis, ligula ex aliquet leo.</p>
|
||||
<h3 style="line-height: 22.4px; text-align: center;"><span style="color: #488e88;"><strong>$209.99</strong></span></h3>',
|
||||
),
|
||||
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' => '<p><em>Diam et vestibulum facilisis:</em></p>
|
||||
<ul>
|
||||
<li>Massa justo tincidunt magna, a volutpat dolor leo vel mi.</li>
|
||||
<li>Curabitur ornare tellus libero, nec porta dolor elementum et.</li>
|
||||
<li>Vestibulum sodales congue ex quis euismod.</li>
|
||||
</ul>',
|
||||
),
|
||||
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' => '<p><a href="[link:subscription_unsubscribe_url]">Unsubscribe</a> | <a href="[link:subscription_manage_url]">Manage subscription</a></p><p>1 Store Street, Shopville, CA 1345</p>',
|
||||
'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';
|
||||
}
|
||||
|
||||
}
|
488
lib/Config/PopulatorData/Templates/Faith.php
Normal file
488
lib/Config/PopulatorData/Templates/Faith.php
Normal file
@ -0,0 +1,488 @@
|
||||
<?php
|
||||
|
||||
namespace MailPoet\Config\PopulatorData\Templates;
|
||||
|
||||
class Faith {
|
||||
|
||||
private $template_image_url;
|
||||
private $social_icon_url;
|
||||
|
||||
function __construct($assets_url) {
|
||||
$this->template_image_url = '//ps.w.org/mailpoet/assets/newsletter-templates/faith';
|
||||
$this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons';
|
||||
}
|
||||
|
||||
function get() {
|
||||
return array(
|
||||
'name' => __("Faith", 'mailpoet'),
|
||||
'description' => __("A calm and muted faith template.", 'mailpoet'),
|
||||
'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 . '/church-header.jpg',
|
||||
'alt' => 'church-header',
|
||||
'fullWidth' => true,
|
||||
'width' => '1036px',
|
||||
'height' => '563px',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'textAlign' => 'center',
|
||||
),
|
||||
),
|
||||
),
|
||||
1 => array(
|
||||
'type' => 'spacer',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
'height' => '20px',
|
||||
),
|
||||
),
|
||||
),
|
||||
2 => array(
|
||||
'type' => 'text',
|
||||
'text' => '<h1 style="text-align: center;">Spreading Love & Hope...</h1><p>Duis id molestie ex. Quisque finibus magna in justo tristique pellentesque. Nulla sed leo facilisis arcu malesuada molestie vel quis dolor. Donec imperdiet condimentum odio ut elementum. Aenean nisl massa, rutrum a ullamcorper eget, molestie non erat. </p>',
|
||||
),
|
||||
3 => array(
|
||||
'type' => 'spacer',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
'height' => '20px',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
1 => array(
|
||||
'type' => 'container',
|
||||
'orientation' => 'horizontal',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => '#f3f4f4',
|
||||
),
|
||||
),
|
||||
'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' => '<h2 style="text-align: left;">Family Faith Events</h2>',
|
||||
),
|
||||
2 => array(
|
||||
'type' => 'image',
|
||||
'link' => '',
|
||||
'src' => $this->template_image_url . '/family.jpg',
|
||||
'alt' => 'family',
|
||||
'fullWidth' => false,
|
||||
'width' => '660px',
|
||||
'height' => '880px',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'textAlign' => 'center',
|
||||
),
|
||||
),
|
||||
),
|
||||
3 => array(
|
||||
'type' => 'text',
|
||||
'text' => '<p>In maximus tempus pellentesque. Nunc scelerisque ante odio, vel placerat dui fermentum efficitur. Integer vitae ex suscipit, aliquet eros vitae, ornare est. <a href="http://www.example.com">Aenean vel dapibus nisi</a>.</p>',
|
||||
),
|
||||
4 => 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' => 'text',
|
||||
'text' => '<h2>Thoughts & Prayers</h2>',
|
||||
),
|
||||
2 => array(
|
||||
'type' => 'image',
|
||||
'link' => '',
|
||||
'src' => $this->template_image_url . '/pray.jpg',
|
||||
'alt' => 'pray',
|
||||
'fullWidth' => false,
|
||||
'width' => '660px',
|
||||
'height' => '880px',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'textAlign' => 'center',
|
||||
),
|
||||
),
|
||||
),
|
||||
3 => array(
|
||||
'type' => 'text',
|
||||
'text' => '<p>Donec sed vulputate ipsum. In scelerisque rutrum interdum. Donec imperdiet dignissim erat, in dictum lectus accumsan ut. <a href="http://www.example.com">Aliquam erat volutpat.</a></p>',
|
||||
),
|
||||
4 => 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' => 'transparent',
|
||||
'height' => '20px',
|
||||
),
|
||||
),
|
||||
),
|
||||
1 => array(
|
||||
'type' => 'text',
|
||||
'text' => '<h1 style="text-align: center;">Latest News</h1>',
|
||||
),
|
||||
2 => array(
|
||||
'type' => 'divider',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
'padding' => '7px',
|
||||
'borderStyle' => 'dotted',
|
||||
'borderWidth' => '1px',
|
||||
'borderColor' => '#dcdcdc',
|
||||
),
|
||||
),
|
||||
),
|
||||
3 => array(
|
||||
'type' => 'automatedLatestContent',
|
||||
'amount' => '3',
|
||||
'contentType' => 'post',
|
||||
'terms' => array(),
|
||||
'inclusionType' => 'include',
|
||||
'displayType' => 'excerpt',
|
||||
'titleFormat' => 'h3',
|
||||
'titleAlignment' => 'left',
|
||||
'titleIsLink' => false,
|
||||
'imageFullWidth' => false,
|
||||
'featuredImagePosition' => 'belowTitle',
|
||||
'showAuthor' => 'no',
|
||||
'authorPrecededBy' => 'Author:',
|
||||
'showCategories' => 'no',
|
||||
'categoriesPrecededBy' => 'Categories:',
|
||||
'readMoreType' => 'button',
|
||||
'readMoreText' => 'Read more',
|
||||
'readMoreButton' => array(
|
||||
'type' => 'button',
|
||||
'text' => 'Read more',
|
||||
'url' => '[postLink]',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => '#dfeaf3',
|
||||
'borderColor' => '#00ddff',
|
||||
'borderWidth' => '0px',
|
||||
'borderRadius' => '5px',
|
||||
'borderStyle' => 'solid',
|
||||
'width' => '160px',
|
||||
'lineHeight' => '45px',
|
||||
'fontColor' => '#597890',
|
||||
'fontFamily' => 'Tahoma',
|
||||
'fontSize' => '16px',
|
||||
'fontWeight' => 'normal',
|
||||
'textAlign' => 'center',
|
||||
),
|
||||
),
|
||||
),
|
||||
'sortBy' => 'newest',
|
||||
'showDivider' => true,
|
||||
'divider' => array(
|
||||
'type' => 'divider',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
'padding' => '13px',
|
||||
'borderStyle' => 'dotted',
|
||||
'borderWidth' => '2px',
|
||||
'borderColor' => '#dfeaf3',
|
||||
),
|
||||
),
|
||||
),
|
||||
'backgroundColor' => '#ffffff',
|
||||
'backgroundColorAlternate' => '#eeeeee',
|
||||
),
|
||||
4 => array(
|
||||
'type' => 'spacer',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
'height' => '20px',
|
||||
),
|
||||
),
|
||||
),
|
||||
5 => array(
|
||||
'type' => 'divider',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => '#e7eff6',
|
||||
'padding' => '13px',
|
||||
'borderStyle' => 'ridge',
|
||||
'borderWidth' => '6px',
|
||||
'borderColor' => '#597890',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
3 => array(
|
||||
'type' => 'container',
|
||||
'orientation' => 'horizontal',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => '#e7eff6',
|
||||
),
|
||||
),
|
||||
'blocks' => array(
|
||||
0 => array(
|
||||
'type' => 'container',
|
||||
'orientation' => 'vertical',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
),
|
||||
),
|
||||
'blocks' => array(
|
||||
0 => array(
|
||||
'type' => 'footer',
|
||||
'text' => '<a href="[link:subscription_unsubscribe_url]">Unsubscribe</a> | <a href="[link:subscription_manage_url]">Manage subscription</a><br /><b>Add your postal address here!</b>',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => '#e7eff6',
|
||||
),
|
||||
'text' => array(
|
||||
'fontColor' => '#787878',
|
||||
'fontFamily' => 'Tahoma',
|
||||
'fontSize' => '14px',
|
||||
'textAlign' => 'left',
|
||||
),
|
||||
'link' => array(
|
||||
'fontColor' => '#787878',
|
||||
'textDecoration' => 'none',
|
||||
),
|
||||
),
|
||||
),
|
||||
1 => 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' => '<p style="text-align: center;">Find us socially:</p>',
|
||||
),
|
||||
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' => 'email',
|
||||
'link' => '',
|
||||
'image' => $this->social_icon_url . '/07-full-symbol-black/Email.png',
|
||||
'height' => '32px',
|
||||
'width' => '32px',
|
||||
'text' => 'Email',
|
||||
),
|
||||
3 => array(
|
||||
'type' => 'socialIcon',
|
||||
'iconType' => 'website',
|
||||
'link' => '',
|
||||
'image' => $this->social_icon_url . '/07-full-symbol-black/Website.png',
|
||||
'height' => '32px',
|
||||
'width' => '32px',
|
||||
'text' => 'Website',
|
||||
),
|
||||
),
|
||||
),
|
||||
2 => array(
|
||||
'type' => 'spacer',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
'height' => '20px',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
'globalStyles' => array(
|
||||
'text' => array(
|
||||
'fontColor' => '#787878',
|
||||
'fontFamily' => 'Tahoma',
|
||||
'fontSize' => '16px',
|
||||
),
|
||||
'h1' => array(
|
||||
'fontColor' => '#597890',
|
||||
'fontFamily' => 'Comic Sans MS',
|
||||
'fontSize' => '26px',
|
||||
),
|
||||
'h2' => array(
|
||||
'fontColor' => '#597890',
|
||||
'fontFamily' => 'Comic Sans MS',
|
||||
'fontSize' => '18px',
|
||||
),
|
||||
'h3' => array(
|
||||
'fontColor' => '#787878',
|
||||
'fontFamily' => 'Tahoma',
|
||||
'fontSize' => '18px',
|
||||
),
|
||||
'link' => array(
|
||||
'fontColor' => '#597890',
|
||||
'textDecoration' => 'underline',
|
||||
),
|
||||
'wrapper' => array(
|
||||
'backgroundColor' => '#ffffff',
|
||||
),
|
||||
'body' => array(
|
||||
'backgroundColor' => '#e7eff6',
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
private function getThumbnail() {
|
||||
return $this->template_image_url . '/faith.jpg';
|
||||
}
|
||||
|
||||
}
|
524
lib/Config/PopulatorData/Templates/FestivalEvent.php
Normal file
524
lib/Config/PopulatorData/Templates/FestivalEvent.php
Normal file
@ -0,0 +1,524 @@
|
||||
<?php
|
||||
|
||||
namespace MailPoet\Config\PopulatorData\Templates;
|
||||
|
||||
class FestivalEvent {
|
||||
|
||||
private $template_image_url;
|
||||
private $social_icon_url;
|
||||
|
||||
function __construct($assets_url) {
|
||||
$this->template_image_url = '//ps.w.org/mailpoet/assets/newsletter-templates/festival_event';
|
||||
$this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons';
|
||||
}
|
||||
|
||||
function get() {
|
||||
return array(
|
||||
'name' => __("Festival Event", 'mailpoet'),
|
||||
'description' => __("A colourful festival event template.", 'mailpoet'),
|
||||
'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' => '#0a5388',
|
||||
'height' => '20px',
|
||||
),
|
||||
),
|
||||
),
|
||||
1 => array(
|
||||
'type' => 'image',
|
||||
'link' => '',
|
||||
'src' => $this->template_image_url . '/festival-header.jpg',
|
||||
'alt' => 'festival-header',
|
||||
'fullWidth' => true,
|
||||
'width' => '1320px',
|
||||
'height' => '879px',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'textAlign' => 'center',
|
||||
),
|
||||
),
|
||||
),
|
||||
2 => array(
|
||||
'type' => 'spacer',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
'height' => '36px',
|
||||
),
|
||||
),
|
||||
),
|
||||
3 => array(
|
||||
'type' => 'text',
|
||||
'text' => '<h1 style="text-align: center;">Pack your glowsticks, <br />Boomfest is back! </h1>
|
||||
<p></p>
|
||||
<p style="text-align: center;">Duis tempor nisl in risus hendrerit venenatis. <br />Curabitur ornare venenatis nisl non ullamcorper. </p>',
|
||||
),
|
||||
4 => array(
|
||||
'type' => 'button',
|
||||
'text' => 'Duis id tincidunt',
|
||||
'url' => '',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => '#0a5388',
|
||||
'borderColor' => '#0074a2',
|
||||
'borderWidth' => '0px',
|
||||
'borderRadius' => '5px',
|
||||
'borderStyle' => 'solid',
|
||||
'width' => '260px',
|
||||
'lineHeight' => '50px',
|
||||
'fontColor' => '#ffffff',
|
||||
'fontFamily' => 'Courier New',
|
||||
'fontSize' => '18px',
|
||||
'fontWeight' => 'bold',
|
||||
'textAlign' => 'center',
|
||||
),
|
||||
),
|
||||
),
|
||||
5 => array(
|
||||
'type' => 'text',
|
||||
'text' => '<p style="text-align: center;">Maecenas scelerisque nisi sit amet metus efficitur dapibus! <br />Ut eros risus, facilisis ac aliquet vel, posuere ut urna.</p>',
|
||||
),
|
||||
6 => 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',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
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' => 'divider',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
'padding' => '13px',
|
||||
'borderStyle' => 'dashed',
|
||||
'borderWidth' => '2px',
|
||||
'borderColor' => '#ffffff',
|
||||
),
|
||||
),
|
||||
),
|
||||
1 => array(
|
||||
'type' => 'spacer',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
'height' => '28px',
|
||||
),
|
||||
),
|
||||
),
|
||||
2 => array(
|
||||
'type' => 'text',
|
||||
'text' => '<h2 style="text-align: center;">Confirmed Lineup</h2>',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
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' => '<h3><em><span style="color: #bae2ff;">Main Stage</span></em></h3><p>Quisque libero<br />Nulla convallis<br />Vestibulum Ornare<br />Consectetur Odio</p>',
|
||||
),
|
||||
),
|
||||
),
|
||||
1 => array(
|
||||
'type' => 'container',
|
||||
'orientation' => 'vertical',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
),
|
||||
),
|
||||
'blocks' => array(
|
||||
0 => array(
|
||||
'type' => 'text',
|
||||
'text' => '<h3><em><span style="color: #bae2ff;">New Acts Stage</span></em></h3><p>Nulla interdum<br />Massa nec<br />Pharetra<br />Varius</p>',
|
||||
),
|
||||
),
|
||||
),
|
||||
2 => array(
|
||||
'type' => 'container',
|
||||
'orientation' => 'vertical',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
),
|
||||
),
|
||||
'blocks' => array(
|
||||
0 => array(
|
||||
'type' => 'text',
|
||||
'text' => '<h3><em><span style="color: #bae2ff;">Comedy Stage</span></em></h3><p>In pulvinar<br />Risus sed<br />Condimentum<br />Feugiat</p>',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
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' => 'divider',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
'padding' => '13px',
|
||||
'borderStyle' => 'dashed',
|
||||
'borderWidth' => '2px',
|
||||
'borderColor' => '#ffffff',
|
||||
),
|
||||
),
|
||||
),
|
||||
2 => array(
|
||||
'type' => 'spacer',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
'height' => '20px',
|
||||
),
|
||||
),
|
||||
),
|
||||
3 => array(
|
||||
'type' => 'text',
|
||||
'text' => '<h2 style="text-align: center;">New to the festival this year</h2>',
|
||||
),
|
||||
4 => array(
|
||||
'type' => 'divider',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
'padding' => '9px',
|
||||
'borderStyle' => 'dashed',
|
||||
'borderWidth' => '2px',
|
||||
'borderColor' => '#ffffff',
|
||||
),
|
||||
),
|
||||
),
|
||||
5 => 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 . '/street-food.jpg',
|
||||
'alt' => 'street food',
|
||||
'fullWidth' => true,
|
||||
'width' => '499px',
|
||||
'height' => '750px',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'textAlign' => 'center',
|
||||
),
|
||||
),
|
||||
),
|
||||
1 => array(
|
||||
'type' => 'spacer',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
'height' => '20px',
|
||||
),
|
||||
),
|
||||
),
|
||||
2 => array(
|
||||
'type' => 'text',
|
||||
'text' => '<h3>Award-winning Street Food</h3><p>Nullam pharetra lectus id porta pulvinar. Proin ac massa nibh. Nullam ac mi pharetra, lobortis nunc et, placerat leo. Mauris eu feugiat elit. Pellentesque eget turpis eu diam vehicula convallis non <a href="http://www.mailpoet.com">luctus enim.</a></p>',
|
||||
),
|
||||
),
|
||||
),
|
||||
1 => array(
|
||||
'type' => 'container',
|
||||
'orientation' => 'vertical',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
),
|
||||
),
|
||||
'blocks' => array(
|
||||
0 => array(
|
||||
'type' => 'image',
|
||||
'link' => '',
|
||||
'src' => $this->template_image_url . '/happy.jpeg',
|
||||
'alt' => 'happy',
|
||||
'fullWidth' => true,
|
||||
'width' => '499px',
|
||||
'height' => '750px',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'textAlign' => 'center',
|
||||
),
|
||||
),
|
||||
),
|
||||
1 => array(
|
||||
'type' => 'spacer',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
'height' => '20px',
|
||||
),
|
||||
),
|
||||
),
|
||||
2 => array(
|
||||
'type' => 'text',
|
||||
'text' => '<h3>Prepare to dazzle with our Glitter Run</h3><p>Donec quis orci at metus finibus tincidunt. Sed vel urna sed urna maximus congue eu et turpis. Nulla tempus hendrerit justo eget molestie. Vivamus quis molestie lacus. Donec commodo odio a nisi feugiat, vitae egestas mi.</p>',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
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' => 'spacer',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
'height' => '20px',
|
||||
),
|
||||
),
|
||||
),
|
||||
1 => array(
|
||||
'type' => 'divider',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
'padding' => '13px',
|
||||
'borderStyle' => 'dashed',
|
||||
'borderWidth' => '2px',
|
||||
'borderColor' => '#ffffff',
|
||||
),
|
||||
),
|
||||
),
|
||||
2 => array(
|
||||
'type' => 'footer',
|
||||
'text' => '<p>Mauris tristique ultricies ullamcorper. <br />Don\'t want to hear from us? <a href="[link:subscription_unsubscribe_url]">Unsubscribe</a></p><p></p><p>Add your postal address here. </p>',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
),
|
||||
'text' => array(
|
||||
'fontColor' => '#ffffff',
|
||||
'fontFamily' => 'Courier New',
|
||||
'fontSize' => '13px',
|
||||
'textAlign' => 'center',
|
||||
),
|
||||
'link' => array(
|
||||
'fontColor' => '#ffffff',
|
||||
'textDecoration' => 'underline',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
'globalStyles' => array(
|
||||
'text' => array(
|
||||
'fontColor' => '#ffffff',
|
||||
'fontFamily' => 'Courier New',
|
||||
'fontSize' => '16px',
|
||||
),
|
||||
'h1' => array(
|
||||
'fontColor' => '#ffffff',
|
||||
'fontFamily' => 'Georgia',
|
||||
'fontSize' => '36px',
|
||||
),
|
||||
'h2' => array(
|
||||
'fontColor' => '#ffffff',
|
||||
'fontFamily' => 'Georgia',
|
||||
'fontSize' => '26px',
|
||||
),
|
||||
'h3' => array(
|
||||
'fontColor' => '#ffffff',
|
||||
'fontFamily' => 'Georgia',
|
||||
'fontSize' => '24px',
|
||||
),
|
||||
'link' => array(
|
||||
'fontColor' => '#ffffff',
|
||||
'textDecoration' => 'underline',
|
||||
),
|
||||
'wrapper' => array(
|
||||
'backgroundColor' => '#8d062b',
|
||||
),
|
||||
'body' => array(
|
||||
'backgroundColor' => '#0a5388',
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
private function getThumbnail() {
|
||||
return $this->template_image_url . '/festival-event.jpg';
|
||||
}
|
||||
|
||||
}
|
757
lib/Config/PopulatorData/Templates/FoodBox.php
Normal file
757
lib/Config/PopulatorData/Templates/FoodBox.php
Normal file
@ -0,0 +1,757 @@
|
||||
<?php
|
||||
|
||||
namespace MailPoet\Config\PopulatorData\Templates;
|
||||
|
||||
|
||||
class FoodBox {
|
||||
|
||||
private $template_image_url;
|
||||
private $social_icon_url;
|
||||
|
||||
function __construct($assets_url) {
|
||||
$this->template_image_url = '//ps.w.org/mailpoet/assets/newsletter-templates/food_box';
|
||||
$this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons';
|
||||
}
|
||||
|
||||
function get() {
|
||||
return array(
|
||||
'name' => __("Welcome to FoodBox", 'mailpoet'),
|
||||
'description' => __("A welcome email template for your takeaway.", 'mailpoet'),
|
||||
'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' => '#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' => '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' => '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' => 'image',
|
||||
'link' => '',
|
||||
'src' => $this->template_image_url . '/Food-Delivery-Logo.png',
|
||||
'alt' => 'Food-Delivery-Logo',
|
||||
'fullWidth' => false,
|
||||
'width' => '640px',
|
||||
'height' => '180px',
|
||||
'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' => '',
|
||||
'src' => $this->template_image_url . '/Food-Delivery-App.png',
|
||||
'alt' => 'Food-Delivery-App',
|
||||
'fullWidth' => false,
|
||||
'width' => '640px',
|
||||
'height' => '180px',
|
||||
'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',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
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' => 'text',
|
||||
'text' => '<h1><strong>Welcome to FoodBox</strong></h1>
|
||||
<h2><strong>Lorem ipsum dolor sit amet</strong></h2>
|
||||
<p>Curabitur sollicitudin eros eu cursus sollicitudin. Suspendisse laoreet sollicitudin urna, ut lacinia risus dictum a. Integer a neque eu magna commodo sodales eu eget ante.</p>',
|
||||
),
|
||||
2 => array(
|
||||
'type' => 'button',
|
||||
'text' => 'Get Started',
|
||||
'url' => '',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => '#7cc119',
|
||||
'borderColor' => '#7cc119',
|
||||
'borderWidth' => '0px',
|
||||
'borderRadius' => '5px',
|
||||
'borderStyle' => 'solid',
|
||||
'width' => '100px',
|
||||
'lineHeight' => '40px',
|
||||
'fontColor' => '#ffffff',
|
||||
'fontFamily' => 'Arial',
|
||||
'fontSize' => '14px',
|
||||
'fontWeight' => 'bold',
|
||||
'textAlign' => 'left',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
1 => array(
|
||||
'type' => 'container',
|
||||
'orientation' => 'vertical',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
),
|
||||
),
|
||||
'blocks' => array(
|
||||
0 => array(
|
||||
'type' => 'image',
|
||||
'link' => '',
|
||||
'src' => $this->template_image_url . '/Food-Delivery-Focus.jpg',
|
||||
'alt' => 'Food-Delivery-Focus',
|
||||
'fullWidth' => false,
|
||||
'width' => '800px',
|
||||
'height' => '800px',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'textAlign' => 'center',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
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' => 'divider',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
'padding' => '31.5px',
|
||||
'borderStyle' => 'solid',
|
||||
'borderWidth' => '2px',
|
||||
'borderColor' => '#e5e5e5',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
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' => 'text',
|
||||
'text' => '<h2 style="text-align: center;">Get started in 3 simple steps</h2>',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
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' => 'image',
|
||||
'link' => '',
|
||||
'src' => $this->template_image_url . '/Food-Delivery-1-1.png',
|
||||
'alt' => 'Food-Delivery-1',
|
||||
'fullWidth' => false,
|
||||
'width' => '800px',
|
||||
'height' => '250px',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'textAlign' => 'center',
|
||||
),
|
||||
),
|
||||
),
|
||||
2 => array(
|
||||
'type' => 'text',
|
||||
'text' => '<p style="text-align: center;">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur sollicitudin eros eu cursus sollicitudin.</p>',
|
||||
),
|
||||
),
|
||||
),
|
||||
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 . '/Food-Delivery-2-1.png',
|
||||
'alt' => 'Food-Delivery-2',
|
||||
'fullWidth' => false,
|
||||
'width' => '800px',
|
||||
'height' => '250px',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'textAlign' => 'center',
|
||||
),
|
||||
),
|
||||
),
|
||||
2 => array(
|
||||
'type' => 'text',
|
||||
'text' => '<p style="text-align: center;"><span style="text-align: center;">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur sollicitudin eros eu cursus sollicitudin.</span></p>',
|
||||
),
|
||||
),
|
||||
),
|
||||
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 . '/Food-Delivery-3-1.png',
|
||||
'alt' => 'Food-Delivery-3',
|
||||
'fullWidth' => false,
|
||||
'width' => '800px',
|
||||
'height' => '250px',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'textAlign' => 'center',
|
||||
),
|
||||
),
|
||||
),
|
||||
2 => array(
|
||||
'type' => 'text',
|
||||
'text' => '<p style="text-align: center;"><span style="text-align: center;">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur sollicitudin eros eu cursus sollicitudin.</span></p>',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
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' => 'transparent',
|
||||
'height' => '30px',
|
||||
),
|
||||
),
|
||||
),
|
||||
1 => array(
|
||||
'type' => 'button',
|
||||
'text' => 'Get Started',
|
||||
'url' => '',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => '#7cc119',
|
||||
'borderColor' => '#7cc119',
|
||||
'borderWidth' => '0px',
|
||||
'borderRadius' => '5px',
|
||||
'borderStyle' => 'solid',
|
||||
'width' => '100px',
|
||||
'lineHeight' => '40px',
|
||||
'fontColor' => '#ffffff',
|
||||
'fontFamily' => 'Arial',
|
||||
'fontSize' => '14px',
|
||||
'fontWeight' => 'bold',
|
||||
'textAlign' => 'center',
|
||||
),
|
||||
),
|
||||
),
|
||||
2 => array(
|
||||
'type' => 'spacer',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
'height' => '25px',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
9 => array(
|
||||
'type' => 'container',
|
||||
'orientation' => 'horizontal',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => '#4599da',
|
||||
),
|
||||
),
|
||||
'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' => '<p style="text-align: center; font-size: 14px;"><strong><span style="color: #ffffff;">Link 1 - Link 2 - Link 3 - Link 4</span></strong></p>',
|
||||
),
|
||||
),
|
||||
),
|
||||
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' => '24px',
|
||||
),
|
||||
),
|
||||
),
|
||||
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',
|
||||
),
|
||||
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',
|
||||
),
|
||||
4 => array(
|
||||
'type' => 'socialIcon',
|
||||
'iconType' => 'website',
|
||||
'link' => '',
|
||||
'image' => $this->social_icon_url . '/08-full-symbol-grey/Website.png',
|
||||
'height' => '32px',
|
||||
'width' => '32px',
|
||||
'text' => 'Website',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
10 => array(
|
||||
'type' => 'container',
|
||||
'orientation' => 'horizontal',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => '#4599da',
|
||||
),
|
||||
),
|
||||
'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',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
11 => 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' => '20px',
|
||||
),
|
||||
),
|
||||
),
|
||||
1 => array(
|
||||
'type' => 'footer',
|
||||
'text' => '<p><a href="[link:subscription_unsubscribe_url]">Unsubscribe</a> | <a href="[link:subscription_manage_url]">Manage subscription</a><br />Add your postal address here!</p>',
|
||||
'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' => '40px',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
'globalStyles' => array(
|
||||
'text' => array(
|
||||
'fontColor' => '#000000',
|
||||
'fontFamily' => 'Arial',
|
||||
'fontSize' => '12px',
|
||||
),
|
||||
'h1' => array(
|
||||
'fontColor' => '#4599da',
|
||||
'fontFamily' => 'Arial',
|
||||
'fontSize' => '26px',
|
||||
),
|
||||
'h2' => array(
|
||||
'fontColor' => '#878787',
|
||||
'fontFamily' => 'Arial',
|
||||
'fontSize' => '18px',
|
||||
),
|
||||
'h3' => array(
|
||||
'fontColor' => '#333333',
|
||||
'fontFamily' => 'Arial',
|
||||
'fontSize' => '14px',
|
||||
),
|
||||
'link' => array(
|
||||
'fontColor' => '#4599da',
|
||||
'textDecoration' => 'underline',
|
||||
),
|
||||
'wrapper' => array(
|
||||
'backgroundColor' => '#ffffff',
|
||||
),
|
||||
'body' => array(
|
||||
'backgroundColor' => '#f4f4f4',
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
private function getThumbnail() {
|
||||
return $this->template_image_url . '/welcome-to-foodbox.jpg';
|
||||
}
|
||||
|
||||
}
|
@ -1,351 +0,0 @@
|
||||
<?php
|
||||
namespace MailPoet\Config\PopulatorData\Templates;
|
||||
|
||||
if(!defined('ABSPATH')) exit;
|
||||
|
||||
class FranksRoastHouseTemplate {
|
||||
|
||||
function __construct($assets_url) {
|
||||
$this->assets_url = $assets_url;
|
||||
$this->external_template_image_url = '//ps.w.org/mailpoet/assets/newsletter-templates/franks-roast-house';
|
||||
$this->social_icon_url = $this->assets_url . '/img/newsletter_editor/social-icons';
|
||||
}
|
||||
|
||||
function get() {
|
||||
return array(
|
||||
'name' => __("Frank's Roast House", 'mailpoet'),
|
||||
'description' => __("Think of this as your sandbox. Play around with this example newsletter to see what MailPoet can do for you.", 'mailpoet'),
|
||||
'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(
|
||||
"orientation" => "horizontal",
|
||||
"blocks" => array(
|
||||
array(
|
||||
"type" => "container",
|
||||
"orientation" => "vertical",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
)
|
||||
),
|
||||
"blocks" => array(
|
||||
array(
|
||||
"type" => "header",
|
||||
"text" => __("<a href=\"[link:newsletter_view_in_browser_url]\">Open this email in your web browser.</a>", 'mailpoet'),
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "#ccc6c6"
|
||||
),
|
||||
"text" => array(
|
||||
"fontColor" => "#222222",
|
||||
"fontFamily" => "Arial",
|
||||
"fontSize" => "12px",
|
||||
"textAlign" => "center"
|
||||
),
|
||||
"link" => array(
|
||||
"fontColor" => "#36251e",
|
||||
"textDecoration" => "underline"
|
||||
)
|
||||
)
|
||||
),
|
||||
array(
|
||||
"type" => "image",
|
||||
"link" => "http://www.example.com",
|
||||
"src" => $this->external_template_image_url . "/header-v2.jpg",
|
||||
"alt" => __("Frank's Café", 'mailpoet'),
|
||||
"fullWidth" => true,
|
||||
"width" => "600px",
|
||||
"height" => "220px",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"textAlign" => "center"
|
||||
)
|
||||
)
|
||||
),
|
||||
array(
|
||||
"type" => "spacer",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent",
|
||||
"height" => "30px"
|
||||
)
|
||||
)
|
||||
),
|
||||
array(
|
||||
"type" => "text",
|
||||
"text" => __("<p>Hi there [subscriber:firstname | default:coffee drinker]</p>\n<p></p>\n<p>Sit back and enjoy your favorite roast as you read this week's newsletter. </p>", 'mailpoet')
|
||||
),
|
||||
array(
|
||||
"type" => "image",
|
||||
"link" => "http://example.org",
|
||||
"src" => $this->external_template_image_url . "/coffee-grain.jpg",
|
||||
"alt" => __('Coffee grain', 'mailpoet'),
|
||||
"fullWidth" => false,
|
||||
"width" => "1599px",
|
||||
"height" => "777px",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"textAlign" => "center"
|
||||
)
|
||||
)
|
||||
),
|
||||
array(
|
||||
"type" => "text",
|
||||
"text" => __("<h1 style=\"text-align: center;\">--- Guest Coffee Roaster: <em>Brew Bros. ---</em></h1>\n<p><em></em></p>\n<p>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.</p>\n<p></p>\n<blockquote>\n<p><span style=\"color: #ff6600;\"><em>Tasting notes: A rich, caramel flavor with subtle hints of molasses. The perfect wake-up morning espresso!</em></span></p>\n</blockquote>", 'mailpoet')
|
||||
)
|
||||
)
|
||||
)
|
||||
),
|
||||
"type" => "container",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
)
|
||||
)
|
||||
),
|
||||
array(
|
||||
"orientation" => "horizontal",
|
||||
"blocks" => array(
|
||||
array(
|
||||
"type" => "container",
|
||||
"orientation" => "vertical",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
)
|
||||
),
|
||||
"blocks" => array(
|
||||
array(
|
||||
"type" => "text",
|
||||
"text" => __("<h2>Sandwich Competition</h2>", 'mailpoet')
|
||||
),
|
||||
array(
|
||||
"type" => "image",
|
||||
"link" => "http://example.org",
|
||||
"src" => $this->external_template_image_url . "/sandwich.jpg",
|
||||
"alt" => __('Sandwich', 'mailpoet'),
|
||||
"fullWidth" => false,
|
||||
"width" => "640px",
|
||||
"height" => "344px",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"textAlign" => "center"
|
||||
)
|
||||
)
|
||||
),
|
||||
array(
|
||||
"type" => "text",
|
||||
"text" => __("<p>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.</p>\n<p></p>\n<p></p>\n<p>Simply tweet your ideas to <a href=\"http://www.example.com\" title=\"This isn't a real twitter account\">@franksroasthouse</a> and use #sandwichcomp and we'll let you know if you're a winner.</p>", 'mailpoet')
|
||||
),
|
||||
array(
|
||||
"type" => "button",
|
||||
"text" => ("Find out more"),
|
||||
"url" => "http://example.org",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "#047da7",
|
||||
"borderColor" => "#004a68",
|
||||
"borderWidth" => "1px",
|
||||
"borderRadius" => "3px",
|
||||
"borderStyle" => "solid",
|
||||
"width" => "180px",
|
||||
"lineHeight" => "34px",
|
||||
"fontColor" => "#ffffff",
|
||||
"fontFamily" => "Arial",
|
||||
"fontSize" => "14px",
|
||||
"fontWeight" => "normal",
|
||||
"textAlign" => "center"
|
||||
)
|
||||
)
|
||||
),
|
||||
array(
|
||||
"type" => "text",
|
||||
"text" => __("<h3 style=\"text-align: center;\">Follow Us</h3>", 'mailpoet')
|
||||
),
|
||||
array(
|
||||
"type" => "social",
|
||||
"iconSet" => "full-symbol-black",
|
||||
"icons" => array(
|
||||
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"
|
||||
),
|
||||
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"
|
||||
),
|
||||
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"
|
||||
),
|
||||
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"
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
),
|
||||
array(
|
||||
"type" => "container",
|
||||
"orientation" => "vertical",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
)
|
||||
),
|
||||
"blocks" => array(
|
||||
array(
|
||||
"type" => "text",
|
||||
"text" => __("<h2>New Store Opening!</h2>", 'mailpoet')
|
||||
),
|
||||
array(
|
||||
"type" => "image",
|
||||
"link" => "http://example.org",
|
||||
"src" => $this->external_template_image_url . "/map-v2.jpg",
|
||||
"alt" => __('Map', 'mailpoet'),
|
||||
"fullWidth" => false,
|
||||
"width" => "636px",
|
||||
"height" => "342px",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"textAlign" => "center"
|
||||
)
|
||||
)
|
||||
),
|
||||
array(
|
||||
"type" => "text",
|
||||
"text" => __("<p>Watch out Broad Street, we're coming to you very soon! </p>\n<p></p>\n<p>Keep an eye on your inbox, as we'll have some special offers for our email subscribers plus an exclusive launch party invite!<br /><br /></p>", 'mailpoet')
|
||||
),
|
||||
array(
|
||||
"type" => "text",
|
||||
"text" => __("<h2>New and Improved Hours!</h2>\n<p></p>\n<p>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:</p>\n<p></p>\n<ul>\n<li>Monday - Thursday: 6am - 12am</li>\n<li>Friday - Saturday: 6am - 1:30am</li>\n<li>Sunday: 7:30am - 11pm</li>\n</ul>", 'mailpoet')
|
||||
)
|
||||
)
|
||||
)
|
||||
),
|
||||
"type" => "container",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "#ebebeb"
|
||||
)
|
||||
)
|
||||
),
|
||||
array(
|
||||
"orientation" => "horizontal",
|
||||
"blocks" => array(
|
||||
array(
|
||||
"type" => "container",
|
||||
"orientation" => "vertical",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
)
|
||||
),
|
||||
"blocks" => array(
|
||||
array(
|
||||
"type" => "footer",
|
||||
"text" => __("<p><a href=\"[link:subscription_unsubscribe_url]\">Unsubscribe</a> | <a href=\"[link:subscription_manage_url]\">Manage subscription</a><br />12345 MailPoet Drive, EmailVille, 76543</p>", 'mailpoet'),
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "#a9a7a7"
|
||||
),
|
||||
"text" => array(
|
||||
"fontColor" => "#000000",
|
||||
"fontFamily" => "Arial",
|
||||
"fontSize" => "12px",
|
||||
"textAlign" => "center"
|
||||
),
|
||||
"link" => array(
|
||||
"fontColor" => "#000000",
|
||||
"textDecoration" => "underline"
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
),
|
||||
"type" => "container",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
),
|
||||
"globalStyles" => array(
|
||||
"text" => array(
|
||||
"fontColor" => "#000000",
|
||||
"fontFamily" => "Arial",
|
||||
"fontSize" => "14px"
|
||||
),
|
||||
"h1" => array(
|
||||
"fontColor" => "#604b4b",
|
||||
"fontFamily" => "Lucida",
|
||||
"fontSize" => "30px"
|
||||
),
|
||||
"h2" => array(
|
||||
"fontColor" => "#047da7",
|
||||
"fontFamily" => "Lucida",
|
||||
"fontSize" => "22px"
|
||||
),
|
||||
"h3" => array(
|
||||
"fontColor" => "#333333",
|
||||
"fontFamily" => "Georgia",
|
||||
"fontSize" => "20px"
|
||||
),
|
||||
"link" => array(
|
||||
"fontColor" => "#047da7",
|
||||
"textDecoration" => "underline"
|
||||
),
|
||||
"wrapper" => array(
|
||||
"backgroundColor" => "#ffffff"
|
||||
),
|
||||
"body" => array(
|
||||
"backgroundColor" => "#ccc6c6"
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
private function getThumbnail() {
|
||||
return $this->external_template_image_url . '/screenshot.jpg';
|
||||
}
|
||||
|
||||
}
|
721
lib/Config/PopulatorData/Templates/KickOff.php
Normal file
721
lib/Config/PopulatorData/Templates/KickOff.php
Normal file
@ -0,0 +1,721 @@
|
||||
<?php
|
||||
|
||||
namespace MailPoet\Config\PopulatorData\Templates;
|
||||
|
||||
class KickOff {
|
||||
|
||||
private $template_image_url;
|
||||
private $social_icon_url;
|
||||
|
||||
function __construct($assets_url) {
|
||||
$this->template_image_url = '//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'),
|
||||
'description' => __("Sporty green template for your team or sport event.", 'mailpoet'),
|
||||
'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' => '<h1 style="text-align: center;"><strong>ALL THE LATEST MATCH RESULTS & NEWS FROM THE SUNDAYS CLUB</strong></h1>',
|
||||
),
|
||||
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' => '<p><em>Nam convallis lorem tellus, eget sodales magna semper quis.</em></p>',
|
||||
),
|
||||
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' => '<h2>North</h2>
|
||||
<p>Nottington 0-1 East Lettersley</p>
|
||||
<p>Little Bickburgh 2-1 Rockingham</p>
|
||||
<p></p>
|
||||
<h2>South</h2>
|
||||
<p>Richmond West 1-0 Offington</p>
|
||||
<p>Shorleton 5-2 Garphingham</p>
|
||||
<p>Westwood 1-3 Chesham</p>
|
||||
<p></p>
|
||||
<h2>West</h2>
|
||||
<p>Millham 4-2 Dunn Village</p>
|
||||
<p>Emmington 1-1 Finham</p>
|
||||
<p>Little Forest 0-2 Winton</p>
|
||||
<p></p>
|
||||
<h2>East</h2>
|
||||
<p>Southfield 2-1 Fincham</p>
|
||||
<p>High Ridlington 0-1 Benham</p>
|
||||
<p>Tinton 4-6 Dortington</p>',
|
||||
),
|
||||
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' => '<h1 style="text-align: center;">MATCH REPORTS</h1>',
|
||||
),
|
||||
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' => '<h2>Branham United vs Finkley</h2>
|
||||
<p>Vestibulum consectetur, quam sed tristique feugiat, elit sapien molestie mi, eu dapibus eros sapien ut risus. Nullam non scelerisque ligula.</p>
|
||||
<p></p>
|
||||
<p>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.</p>',
|
||||
),
|
||||
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' => '<h2 style="text-align: center;">Champton Albion vs Swanhall</h2>
|
||||
<p>Aenean a arcu egestas, tincidunt nisi ut, mollis arcu. Sed eget dapibus nisi. Quisque tortor mi, consequat ut erat et, porta imperdiet dui.</p>
|
||||
<p></p>
|
||||
<p>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.</p>',
|
||||
),
|
||||
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' => '<h1 style="text-align: center;"><strong><span style="color: #333333;">FROM OUR ONLINE STORE</span></strong></h1>',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
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' => '<h3 style="text-align: center;"><strong>Team Colours Laces</strong></h3><p style="text-align: center;"><span style="color: #333333;">Donec imperdiet<em><br /></em>Tortor tincidunt, luctus libero vel, dapibus quam</span></p>',
|
||||
),
|
||||
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' => '<h3 style="text-align: center;"><strong>Match Quality Balls</strong></h3><p style="text-align: center;"><span style="color: #333333;">Donec vulputate tempor auctor purus sit amet cursus ultricies</span></p>',
|
||||
),
|
||||
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' => '<h3 style="text-align: center;"><strong>Football Plant Pots</strong></h3><p style="text-align: center;"><span style="color: #333333;">Libero tortor aliquet metus eget efficitur est lorem sit amet purus</span></p>',
|
||||
),
|
||||
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' => '<a href="[link:subscription_unsubscribe_url]">Unsubscribe</a> | <a href="[link:subscription_manage_url]">Manage subscription</a><br /><b>Add your postal address here!</b>',
|
||||
'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';
|
||||
}
|
||||
|
||||
}
|
555
lib/Config/PopulatorData/Templates/NewsDay.php
Normal file
555
lib/Config/PopulatorData/Templates/NewsDay.php
Normal file
@ -0,0 +1,555 @@
|
||||
<?php
|
||||
|
||||
namespace MailPoet\Config\PopulatorData\Templates;
|
||||
|
||||
class NewsDay {
|
||||
|
||||
private $template_image_url;
|
||||
private $social_icon_url;
|
||||
|
||||
function __construct($assets_url) {
|
||||
$this->template_image_url = '//ps.w.org/mailpoet/assets/newsletter-templates/news_day';
|
||||
$this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons';
|
||||
}
|
||||
|
||||
function get() {
|
||||
return array(
|
||||
'name' => __("News Day", 'mailpoet'),
|
||||
'description' => __("Media ready template. ", 'mailpoet'),
|
||||
'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' => '#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' => '#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',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
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' => '<h1 style="text-align: left;"><span style="color: #2ca5d2;"><strong>Top Story</strong></span></h1>',
|
||||
),
|
||||
1 => array(
|
||||
'type' => 'text',
|
||||
'text' => '<h2 style="text-align: left;" data-post-id="1991"><strong>Plasma jet engines that could take you from the ground to space</strong></h2>',
|
||||
),
|
||||
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',
|
||||
),
|
||||
),
|
||||
),
|
||||
3 => array(
|
||||
'type' => 'text',
|
||||
'text' => '<p class="mailpoet_wp_post">FORGET fuel-powered jet engines. We’re on the verge of having aircraft that can fly from the ground up to the edge of space using air and electricity alone. Traditional jet engines create thrust by mixing compressed air with fuel and igniting it. The burning mixture expands rapidly and is blasted out of the back of the engine, pushing it forwards. …</p><p><a href="http://mailpoet.info/plasma-jet-engines-that-could-take-you-from-the-ground-to-space/">Read More</a></p>',
|
||||
),
|
||||
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' => '<h3><span style="color: #2ca5d2;"><strong>Popular Posts Today</strong></span></h3>',
|
||||
),
|
||||
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',
|
||||
),
|
||||
),
|
||||
'blocks' => array(
|
||||
0 => array(
|
||||
'type' => 'text',
|
||||
'text' => '<h3 style="text-align: left; font-size: 18px; line-height: 1.4;" data-post-id="1997"><strong>Cutting through the smog: What to do to fight air pollution</strong></h3>
|
||||
<p class="mailpoet_wp_post">Tackling our air problems starts with traffic control, but individual action to reduce energy use and intensive farming would also help clean our air.</p>
|
||||
<p><a href="http://mailpoet.info/cutting-through-the-smog-what-to-do-to-fight-air-pollution/">Read More</a></p>',
|
||||
),
|
||||
1 => array(
|
||||
'type' => 'divider',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
'padding' => '13px',
|
||||
'borderStyle' => 'solid',
|
||||
'borderWidth' => '1px',
|
||||
'borderColor' => '#aaaaaa',
|
||||
),
|
||||
),
|
||||
),
|
||||
2 => array(
|
||||
'type' => 'text',
|
||||
'text' => '<h3 style="text-align: left; font-size: 18px; line-height: 1.4;" data-post-id="1994"><strong>Ladybird’s transparent shell reveals how it moves</strong></h3>
|
||||
<p class="mailpoet_wp_post">They certainly know how to fold. A see-through artificial wing case has been used to watch for the first time as ladybirds put away their wings after flight.</p>
|
||||
<p><a href="http://mailpoet.info/ladybirds-transparent-shell-reveals-how-it-folds-its-wings/">Read More</a></p>',
|
||||
),
|
||||
3 => array(
|
||||
'type' => 'divider',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
'padding' => '13px',
|
||||
'borderStyle' => 'solid',
|
||||
'borderWidth' => '1px',
|
||||
'borderColor' => '#aaaaaa',
|
||||
),
|
||||
),
|
||||
),
|
||||
4 => array(
|
||||
'type' => 'text',
|
||||
'text' => '<h3 style="text-align: left; font-size: 18px; line-height: 1.4;" data-post-id="1938"><strong>Brazil’s history-making Hurricane</strong></h3>
|
||||
<p class="mailpoet_wp_post">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.</p>
|
||||
<p><a href="http://mailpoet.info/brazils-history-making-hurricane/">Read More</a></p>',
|
||||
),
|
||||
),
|
||||
),
|
||||
1 => array(
|
||||
'type' => 'container',
|
||||
'orientation' => 'vertical',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
),
|
||||
),
|
||||
'blocks' => array(
|
||||
0 => array(
|
||||
'type' => 'text',
|
||||
'text' => '<h3 style="text-align: left; font-size: 18px; line-height: 1.4;" data-post-id="1935"><strong>Iceland’s dentist-coach defying convention and expectations</strong></h3>
|
||||
<p class="mailpoet_wp_post">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...</p>
|
||||
<p><a href="http://mailpoet.info/icelands-dentist-coach-defying-convention-and-expectations/">Read More</a></p>',
|
||||
),
|
||||
1 => array(
|
||||
'type' => 'divider',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
'padding' => '13px',
|
||||
'borderStyle' => 'solid',
|
||||
'borderWidth' => '1px',
|
||||
'borderColor' => '#aaaaaa',
|
||||
),
|
||||
),
|
||||
),
|
||||
2 => array(
|
||||
'type' => 'text',
|
||||
'text' => '<h3 style="text-align: left; font-size: 18px; line-height: 1.4;" data-post-id="1932"><strong>Impact and legacy of 2018 FIFA World Cup Russia</strong></h3>
|
||||
<p class="mailpoet_wp_post">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. </p>
|
||||
<p><a href="http://mailpoet.info/impact-and-legacy-of-2018-fifa-world-cup-russia-facts-and-figures/">Read More</a></p>',
|
||||
),
|
||||
3 => array(
|
||||
'type' => 'divider',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
'padding' => '13px',
|
||||
'borderStyle' => 'solid',
|
||||
'borderWidth' => '1px',
|
||||
'borderColor' => '#aaaaaa',
|
||||
),
|
||||
),
|
||||
),
|
||||
4 => array(
|
||||
'type' => 'text',
|
||||
'text' => '<h3 style="text-align: left; font-size: 18px; line-height: 1.4;" data-post-id="1929"><strong>Lineker’s life-changing treble</strong></h3>
|
||||
<p class="mailpoet_wp_post">Given that he won the Golden Boot in his first and came within a whisker of the Final in his second, one might expect Gary Lineker to have a tough time picking his FIFA World Cup™ highlight. Yet the man who scored ten times...</p>
|
||||
<p><a href="http://mailpoet.info/linekers-life-changing-treble/">Read More</a></p>',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
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',
|
||||
),
|
||||
),
|
||||
'blocks' => array(
|
||||
0 => array(
|
||||
'type' => 'footer',
|
||||
'text' => '<p><strong>NewsDay</strong></p>
|
||||
<p><a href="[link:subscription_unsubscribe_url]">Unsubscribe</a> | <a href="[link:subscription_manage_url]">Manage subscription</a><br /><br /></p>
|
||||
<p></p>',
|
||||
'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',
|
||||
'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',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
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' => '#f2f2f2',
|
||||
'height' => '40px',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
'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',
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
private function getThumbnail() {
|
||||
return $this->template_image_url . '/news-day.jpg';
|
||||
}
|
||||
|
||||
}
|
444
lib/Config/PopulatorData/Templates/PieceOfCake.php
Normal file
444
lib/Config/PopulatorData/Templates/PieceOfCake.php
Normal file
@ -0,0 +1,444 @@
|
||||
<?php
|
||||
|
||||
namespace MailPoet\Config\PopulatorData\Templates;
|
||||
|
||||
class PieceOfCake {
|
||||
|
||||
private $template_image_url;
|
||||
private $social_icon_url;
|
||||
|
||||
function __construct($assets_url) {
|
||||
$this->template_image_url = '//ps.w.org/mailpoet/assets/newsletter-templates/piece_of_cake';
|
||||
$this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons';
|
||||
}
|
||||
|
||||
function get() {
|
||||
return array(
|
||||
'name' => __("Piece of cake", 'mailpoet'),
|
||||
'description' => __("Baked with plenty of images.", 'mailpoet'),
|
||||
'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' => '#ffffff',
|
||||
),
|
||||
),
|
||||
'blocks' => array(
|
||||
0 => array(
|
||||
'type' => 'container',
|
||||
'orientation' => 'vertical',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
),
|
||||
),
|
||||
'blocks' => array(
|
||||
0 => array(
|
||||
'type' => 'header',
|
||||
'text' => '<p><strong>Open daily from 9am to 9pm | <a href="[link:newsletter_view_in_browser_url]">View Online</a></strong></p>',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => '#ececeb',
|
||||
),
|
||||
'text' => array(
|
||||
'fontColor' => '#606060',
|
||||
'fontFamily' => 'Arial',
|
||||
'fontSize' => '13px',
|
||||
'textAlign' => 'right',
|
||||
),
|
||||
'link' => array(
|
||||
'fontColor' => '#d42b2b',
|
||||
'textDecoration' => 'none',
|
||||
),
|
||||
),
|
||||
),
|
||||
1 => array(
|
||||
'type' => 'spacer',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
'height' => '30px',
|
||||
),
|
||||
),
|
||||
),
|
||||
2 => array(
|
||||
'type' => 'image',
|
||||
'link' => '',
|
||||
'src' => $this->template_image_url . '/Restaurant-Bakery-Logo-1.png',
|
||||
'alt' => 'Restaurant-Bakery-Logo-1',
|
||||
'fullWidth' => true,
|
||||
'width' => '1280px',
|
||||
'height' => '180px',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'textAlign' => 'center',
|
||||
),
|
||||
),
|
||||
),
|
||||
3 => array(
|
||||
'type' => 'spacer',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
'height' => '30px',
|
||||
),
|
||||
),
|
||||
),
|
||||
4 => array(
|
||||
'type' => 'image',
|
||||
'link' => '',
|
||||
'src' => $this->template_image_url . '/Restaurant-Bakery-Header.jpg',
|
||||
'alt' => 'Restaurant-Bakery-Header',
|
||||
'fullWidth' => true,
|
||||
'width' => '1280px',
|
||||
'height' => '1600px',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'textAlign' => 'center',
|
||||
),
|
||||
),
|
||||
),
|
||||
5 => array(
|
||||
'type' => 'spacer',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
'height' => '40px',
|
||||
),
|
||||
),
|
||||
),
|
||||
6 => array(
|
||||
'type' => 'text',
|
||||
'text' => '<h1 style="text-align: center;"><strong>It\'s our Birthday!</strong></h1>',
|
||||
),
|
||||
7 => array(
|
||||
'type' => 'text',
|
||||
'text' => '<h3 style="text-align: center; line-height: 1.4;">To celebrate, we\'re adding a slice of our Birthday cake to every order. Pop in this weekend to use our special offer code and enjoy!</h3>',
|
||||
),
|
||||
8 => 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' => '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' => '<p style="text-align: center; border: 3px dashed #d42b2b; color: #d42b2b; padding: 10px; font-size: 24px;"><strong>HAPPYBDAY</strong></p>',
|
||||
),
|
||||
),
|
||||
),
|
||||
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',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
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' => '50px',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
3 => array(
|
||||
'type' => 'container',
|
||||
'orientation' => 'horizontal',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => '#ececeb',
|
||||
),
|
||||
),
|
||||
'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',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
4 => array(
|
||||
'type' => 'container',
|
||||
'orientation' => 'horizontal',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => '#ececeb',
|
||||
),
|
||||
),
|
||||
'blocks' => array(
|
||||
0 => array(
|
||||
'type' => 'container',
|
||||
'orientation' => 'vertical',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
),
|
||||
),
|
||||
'blocks' => array(
|
||||
0 => array(
|
||||
'type' => 'text',
|
||||
'text' => '<p style="background-color: #ececeb; line-height: 1.3;"><span style="font-weight: 600;"><span style="font-size: 12px; text-align: center;">Add your postal address here.</span></span></p>',
|
||||
),
|
||||
),
|
||||
),
|
||||
1 => array(
|
||||
'type' => 'container',
|
||||
'orientation' => 'vertical',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
),
|
||||
),
|
||||
'blocks' => array(
|
||||
0 => 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',
|
||||
'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',
|
||||
'height' => '32px',
|
||||
'width' => '32px',
|
||||
'text' => 'Twitter',
|
||||
),
|
||||
2 => array(
|
||||
'type' => 'socialIcon',
|
||||
'iconType' => 'youtube',
|
||||
'link' => 'http://www.youtube.com',
|
||||
'image' => $this->social_icon_url . '/06-full-symbol-color/Youtube.png',
|
||||
'height' => '32px',
|
||||
'width' => '32px',
|
||||
'text' => 'Youtube',
|
||||
),
|
||||
3 => array(
|
||||
'type' => 'socialIcon',
|
||||
'iconType' => 'instagram',
|
||||
'link' => 'http://instagram.com',
|
||||
'image' => $this->social_icon_url . '/06-full-symbol-color/Instagram.png',
|
||||
'height' => '32px',
|
||||
'width' => '32px',
|
||||
'text' => 'Instagram',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
2 => array(
|
||||
'type' => 'container',
|
||||
'orientation' => 'vertical',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
),
|
||||
),
|
||||
'blocks' => array(
|
||||
0 => array(
|
||||
'type' => 'text',
|
||||
'text' => '<p style="text-align: right; line-height: 1.3;"><strong><a href="[link:subscription_unsubscribe_url]" style="color: #d42b2b; text-decoration: none; font-size: 12px; text-align: center;">Unsubscribe</a></strong></p>
|
||||
<p style="text-align: right; line-height: 1.3;"><strong><a href="[link:subscription_manage_url]" style="color: #d42b2b; text-decoration: none; font-size: 12px; text-align: center;">Manage Subscription</a></strong></p>',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
5 => array(
|
||||
'type' => 'container',
|
||||
'orientation' => 'horizontal',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => '#ececeb',
|
||||
),
|
||||
),
|
||||
'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',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
'globalStyles' => array(
|
||||
'text' => array(
|
||||
'fontColor' => '#606060',
|
||||
'fontFamily' => 'Arial',
|
||||
'fontSize' => '16px',
|
||||
),
|
||||
'h1' => array(
|
||||
'fontColor' => '#606060',
|
||||
'fontFamily' => 'Arial',
|
||||
'fontSize' => '30px',
|
||||
),
|
||||
'h2' => array(
|
||||
'fontColor' => '#d42b2b',
|
||||
'fontFamily' => 'Arial',
|
||||
'fontSize' => '24px',
|
||||
),
|
||||
'h3' => array(
|
||||
'fontColor' => '#606060',
|
||||
'fontFamily' => 'Arial',
|
||||
'fontSize' => '20px',
|
||||
),
|
||||
'link' => array(
|
||||
'fontColor' => '#d42b2b',
|
||||
'textDecoration' => 'underline',
|
||||
),
|
||||
'wrapper' => array(
|
||||
'backgroundColor' => '#ffffff',
|
||||
),
|
||||
'body' => array(
|
||||
'backgroundColor' => '#ececeb',
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
private function getThumbnail() {
|
||||
return $this->template_image_url . '/piece-of-cake.jpg';
|
||||
}
|
||||
|
||||
}
|
@ -1,413 +0,0 @@
|
||||
<?php
|
||||
namespace MailPoet\Config\PopulatorData\Templates;
|
||||
|
||||
if(!defined('ABSPATH')) exit;
|
||||
|
||||
class Restaurant {
|
||||
|
||||
function __construct($assets_url) {
|
||||
$this->assets_url = $assets_url;
|
||||
$this->external_template_image_url = '//ps.w.org/mailpoet/assets/newsletter-templates/restaurant';
|
||||
$this->template_image_url = $this->assets_url . '/img/sample_templates/restaurant';
|
||||
$this->social_icon_url = $this->assets_url . '/img/newsletter_editor/social-icons';
|
||||
}
|
||||
|
||||
function get() {
|
||||
return array(
|
||||
'name' => __("Restaurant", 'mailpoet'),
|
||||
'description' => __("What's fresh on the menu?", 'mailpoet'),
|
||||
'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" => "",
|
||||
"src" => $this->external_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" => "",
|
||||
"src" => $this->external_template_image_url . "/burger.jpg",
|
||||
"alt" => "burger",
|
||||
"fullWidth" => true,
|
||||
"width" => "1127px",
|
||||
"height" => "945px",
|
||||
"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" => "",
|
||||
"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" => "<h1 style=\"text-align: center;\"><em>Upgrade! Add these sides</em></h1>"
|
||||
))
|
||||
))
|
||||
), 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" => "",
|
||||
"src" => $this->external_template_image_url . "/boyga-1329911-639x852.jpg",
|
||||
"alt" => "boyga-1329911-639x852",
|
||||
"fullWidth" => false,
|
||||
"width" => "639px",
|
||||
"height" => "852px",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"textAlign" => "center"
|
||||
)
|
||||
)
|
||||
), array(
|
||||
"type" => "text",
|
||||
"text" => "<blockquote>\n<p>These onion rings have the perfect crispy batter! - Hayley King, Daily News</p>\n</blockquote>"
|
||||
))
|
||||
), array(
|
||||
"type" => "container",
|
||||
"orientation" => "vertical",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
)
|
||||
),
|
||||
"blocks" => array(array(
|
||||
"type" => "image",
|
||||
"link" => "",
|
||||
"src" => $this->external_template_image_url . "/macaroni-w-salad-1323787.jpg",
|
||||
"alt" => "Macaroni salad",
|
||||
"fullWidth" => false,
|
||||
"width" => "600px",
|
||||
"height" => "800px",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"textAlign" => "center"
|
||||
)
|
||||
)
|
||||
), array(
|
||||
"type" => "text",
|
||||
"text" => "<blockquote>\n<p>NEW! Ultimate Mac & Cheese Salad. Available at all locations</p>\n</blockquote>"
|
||||
))
|
||||
))
|
||||
), 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" => "29px",
|
||||
"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" => "text",
|
||||
"text" => "<h2 style=\"text-align: center;\">Find us at these locations</h2>"
|
||||
))
|
||||
))
|
||||
), 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" => "<h3><span style=\"text-decoration: underline;\"><em>Denver</em></span></h3>\n<p>1263 Schoville Street</p>\n<p>53355 DENVER</p>\n<p>CO</p>"
|
||||
))
|
||||
), array(
|
||||
"type" => "container",
|
||||
"orientation" => "vertical",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
)
|
||||
),
|
||||
"blocks" => array(array(
|
||||
"type" => "text",
|
||||
"text" => "<h3><span style=\"text-decoration: underline;\"><em>Fort Collins</em></span></h3>\n<p><em></em>157 Maine Street</p>\n<p>86432 FORT COLLINS<br />CO</p>\n<p></p>"
|
||||
))
|
||||
), array(
|
||||
"type" => "container",
|
||||
"orientation" => "vertical",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
)
|
||||
),
|
||||
"blocks" => array(array(
|
||||
"type" => "text",
|
||||
"text" => "<h3><span style=\"text-decoration: underline;\"><em>Pueblo</em></span></h3>\n<p><em></em>5390 York Avenue</p>\n<p>64297 Pueblo</p>\n<p>CO</p>"
|
||||
))
|
||||
))
|
||||
), 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" => "",
|
||||
"image" => $this->social_icon_url . "/07-full-symbol-black/Facebook.png",
|
||||
"height" => "32px",
|
||||
"width" => "32px",
|
||||
"text" => "Facebook"
|
||||
), array(
|
||||
"type" => "socialIcon",
|
||||
"iconType" => "twitter",
|
||||
"link" => "",
|
||||
"image" => $this->social_icon_url . "/07-full-symbol-black/Twitter.png",
|
||||
"height" => "32px",
|
||||
"width" => "32px",
|
||||
"text" => "Twitter"
|
||||
), array(
|
||||
"type" => "socialIcon",
|
||||
"iconType" => "instagram",
|
||||
"link" => "",
|
||||
"image" => $this->social_icon_url . "/07-full-symbol-black/Instagram.png",
|
||||
"height" => "32px",
|
||||
"width" => "32px",
|
||||
"text" => "Instagram"
|
||||
))
|
||||
), array(
|
||||
"type" => "header",
|
||||
"text" => "<p><a href=\"[link:newsletter_view_in_browser_url]\">View this email in your web browser</a></p>",
|
||||
"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" => "<p><a href=\"[link:subscription_unsubscribe_url]\">Unsubscribe</a> | <a href=\"[link:subscription_manage_url]\">Manage subscription</a><br />Address: Colorado</p>",
|
||||
"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->external_template_image_url . '/screenshot.jpg';
|
||||
}
|
||||
|
||||
}
|
677
lib/Config/PopulatorData/Templates/ScienceWeekly.php
Normal file
677
lib/Config/PopulatorData/Templates/ScienceWeekly.php
Normal file
@ -0,0 +1,677 @@
|
||||
<?php
|
||||
|
||||
namespace MailPoet\Config\PopulatorData\Templates;
|
||||
|
||||
class ScienceWeekly {
|
||||
|
||||
private $template_image_url;
|
||||
private $social_icon_url;
|
||||
|
||||
function __construct($assets_url) {
|
||||
$this->template_image_url = '//ps.w.org/mailpoet/assets/newsletter-templates/science_weekly';
|
||||
$this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons';
|
||||
}
|
||||
|
||||
function get() {
|
||||
return array(
|
||||
'name' => __("Science Weekly", 'mailpoet'),
|
||||
'description' => __("The right chemistry to send your weekly posts.", 'mailpoet'),
|
||||
'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' => '#ffffff',
|
||||
),
|
||||
),
|
||||
'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 . '/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-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' => '<p style="text-align: center; font-size: 12px;"><span style="color: #ffffff;">Display problems? <a href="[link:newsletter_view_in_browser_url]" style="color: #ffffff;">Open this email in your web browser.</a></span></p>',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
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',
|
||||
),
|
||||
),
|
||||
),
|
||||
'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',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
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' => '#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',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
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',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
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' => '50px',
|
||||
),
|
||||
),
|
||||
),
|
||||
1 => array(
|
||||
'type' => 'text',
|
||||
'text' => '<h2><strong>Download our app!</strong></h2>
|
||||
<p><span>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. </span></p>
|
||||
<p><span></span></p>
|
||||
<p><span>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. </span></p>
|
||||
<p><span></span></p>',
|
||||
),
|
||||
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',
|
||||
'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',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
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',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
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' => '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',
|
||||
),
|
||||
),
|
||||
'blocks' => array(
|
||||
0 => array(
|
||||
'type' => 'text',
|
||||
'text' => '<h3 style="text-align: center;">Keep In Touch With Us</h3>',
|
||||
),
|
||||
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',
|
||||
),
|
||||
),
|
||||
'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' => '<p><span style="color: #b1b6d1;"><a href="[link:subscription_unsubscribe_url]" style="color: #b1b6d1;">Unsubscribe</a> | <a href="[link:subscription_manage_url]" style="color: #b1b6d1;">Manage subscription</a></span><br />Add your postal address here!</p>',
|
||||
'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',
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
private function getThumbnail() {
|
||||
return $this->template_image_url . '/science-weekly.jpg';
|
||||
}
|
||||
|
||||
}
|
579
lib/Config/PopulatorData/Templates/Shoes.php
Normal file
579
lib/Config/PopulatorData/Templates/Shoes.php
Normal file
@ -0,0 +1,579 @@
|
||||
<?php
|
||||
|
||||
namespace MailPoet\Config\PopulatorData\Templates;
|
||||
|
||||
class Shoes {
|
||||
|
||||
private $template_image_url;
|
||||
private $social_icon_url;
|
||||
|
||||
function __construct($assets_url) {
|
||||
$this->template_image_url = '//ps.w.org/mailpoet/assets/newsletter-templates/shoes';
|
||||
$this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons';
|
||||
}
|
||||
|
||||
function get() {
|
||||
return array(
|
||||
'name' => __("Shoes", 'mailpoet'),
|
||||
'description' => __("Nothing like a pair that fits perfectly.", 'mailpoet'),
|
||||
'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' => '#f6f6f6',
|
||||
),
|
||||
),
|
||||
'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 . '/Retail-Shoes-Logo.png',
|
||||
'alt' => 'Retail-Shoes-Logo',
|
||||
'fullWidth' => true,
|
||||
'width' => '1280px',
|
||||
'height' => '220px',
|
||||
'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' => 'image',
|
||||
'link' => '',
|
||||
'src' => $this->template_image_url . '/Retail-Shoes-Header.jpg',
|
||||
'alt' => 'Retail-Shoes-Header',
|
||||
'fullWidth' => true,
|
||||
'width' => '1280px',
|
||||
'height' => '700px',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'textAlign' => 'center',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
2 => array(
|
||||
'type' => 'container',
|
||||
'orientation' => 'horizontal',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => '#f1b512',
|
||||
),
|
||||
),
|
||||
'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' => '<h2 style="text-align: center;"><span style="color: #614a0d;">Our New Range</span></h2>
|
||||
<p style="text-align: center;"><span style="color: #614a0d;">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque cursus aliquam urna, non ultricies diam sagittis sit amet. Etiam tempus a metus sed tincidunt.</span></p>
|
||||
<p style="text-align: center;"><span style="color: #614a0d;">Curabitur fermentum ligula eget lacus aliquam volutpat. Integer sapien neque, laoreet quis lobortis sed, semper eget magna. Suspendisse potentiu.</span></p>',
|
||||
),
|
||||
2 => array(
|
||||
'type' => 'button',
|
||||
'text' => 'Find Out More',
|
||||
'url' => '',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => '#41c7bf',
|
||||
'borderColor' => '#28a9a2',
|
||||
'borderWidth' => '2px',
|
||||
'borderRadius' => '5px',
|
||||
'borderStyle' => 'solid',
|
||||
'width' => '160px',
|
||||
'lineHeight' => '40px',
|
||||
'fontColor' => '#ffffff',
|
||||
'fontFamily' => 'Arial',
|
||||
'fontSize' => '16px',
|
||||
'fontWeight' => 'normal',
|
||||
'textAlign' => 'center',
|
||||
),
|
||||
),
|
||||
),
|
||||
3 => array(
|
||||
'type' => 'spacer',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
'height' => '30px',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
3 => array(
|
||||
'type' => 'container',
|
||||
'orientation' => 'horizontal',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => '#36b0a9',
|
||||
),
|
||||
),
|
||||
'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' => '70px',
|
||||
),
|
||||
),
|
||||
),
|
||||
1 => array(
|
||||
'type' => 'text',
|
||||
'text' => '<h2><span style="color: #ffffff;">Handcrafted Shoes</span></h2>
|
||||
<p style="font-size: 14px;"><span><span style="color: #ffffff;">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque cursus aliquam urna, non ultricies diam sagittis sit amet. Etiam tempus a metus sed tincidunt. Curabitur fermentum ligula eget lacus aliquam volutpat.</span></span></p>',
|
||||
),
|
||||
2 => 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' => '',
|
||||
'src' => $this->template_image_url . '/Retail-Shoes-Boxes-1.jpg',
|
||||
'alt' => 'Retail-Shoes-Boxes-1',
|
||||
'fullWidth' => true,
|
||||
'width' => '700px',
|
||||
'height' => '700px',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'textAlign' => 'center',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
4 => array(
|
||||
'type' => 'container',
|
||||
'orientation' => 'horizontal',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => '#36b0a9',
|
||||
),
|
||||
),
|
||||
'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 . '/Retail-Shoes-Boxes-2.jpg',
|
||||
'alt' => 'Retail-Shoes-Boxes-2',
|
||||
'fullWidth' => true,
|
||||
'width' => '700px',
|
||||
'height' => '700px',
|
||||
'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' => '70px',
|
||||
),
|
||||
),
|
||||
),
|
||||
1 => array(
|
||||
'type' => 'text',
|
||||
'text' => '<h2><span style="color: #ffffff;">Perfect For Any Occasion</span></h2>
|
||||
<p style="font-size: 14px;"><span><span style="color: #ffffff;">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque cursus aliquam urna, non ultricies diam sagittis sit amet. Etiam tempus a metus sed tincidunt. Curabitur fermentum ligula eget lacus aliquam volutpat.</span></span></p>',
|
||||
),
|
||||
2 => array(
|
||||
'type' => 'spacer',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
'height' => '40px',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
5 => array(
|
||||
'type' => 'container',
|
||||
'orientation' => 'horizontal',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => '#f6f6f6',
|
||||
),
|
||||
),
|
||||
'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' => '<h3 style="text-align: center;"><strong>We\'re open every day!</strong></h3>
|
||||
<p style="text-align: center;">Call in any time and we\'ll help you pick the best shoes for any occasion.</p>
|
||||
<p style="text-align: center;">If you\'re not happy, just bring them back to us and we\'ll give you a full refund.</p>',
|
||||
),
|
||||
2 => array(
|
||||
'type' => 'button',
|
||||
'text' => 'Check Out Our Website',
|
||||
'url' => '',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => '#41c7bf',
|
||||
'borderColor' => '#28a9a2',
|
||||
'borderWidth' => '2px',
|
||||
'borderRadius' => '5px',
|
||||
'borderStyle' => 'solid',
|
||||
'width' => '220px',
|
||||
'lineHeight' => '40px',
|
||||
'fontColor' => '#ffffff',
|
||||
'fontFamily' => 'Arial',
|
||||
'fontSize' => '16px',
|
||||
'fontWeight' => 'normal',
|
||||
'textAlign' => 'center',
|
||||
),
|
||||
),
|
||||
),
|
||||
3 => array(
|
||||
'type' => 'spacer',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
'height' => '30px',
|
||||
),
|
||||
),
|
||||
),
|
||||
4 => array(
|
||||
'type' => 'divider',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
'padding' => '13px',
|
||||
'borderStyle' => 'solid',
|
||||
'borderWidth' => '2px',
|
||||
'borderColor' => '#d3d3d3',
|
||||
),
|
||||
),
|
||||
),
|
||||
5 => array(
|
||||
'type' => 'spacer',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
'height' => '20px',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
6 => array(
|
||||
'type' => 'container',
|
||||
'orientation' => 'horizontal',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => '#f6f6f6',
|
||||
),
|
||||
),
|
||||
'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 . '/Retail-Shoes-Logo-Footer.png',
|
||||
'alt' => 'Retail-Shoes-Logo-Footer',
|
||||
'fullWidth' => true,
|
||||
'width' => '1280px',
|
||||
'height' => '60px',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'textAlign' => 'center',
|
||||
),
|
||||
),
|
||||
),
|
||||
1 => array(
|
||||
'type' => 'spacer',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
'height' => '20px',
|
||||
),
|
||||
),
|
||||
),
|
||||
2 => array(
|
||||
'type' => 'text',
|
||||
'text' => '<p style="text-align: center; font-size: 12px;"><span style="color: #999999;">Address Line 1</span></p>
|
||||
<p style="text-align: center; font-size: 12px;"><span style="color: #999999;">Address Line 2</span></p>
|
||||
<p style="text-align: center; font-size: 12px;"><span style="color: #999999;">City</span></p>
|
||||
<p style="text-align: center; font-size: 12px;"><span style="color: #999999;">Country</span></p>',
|
||||
),
|
||||
3 => 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',
|
||||
'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',
|
||||
'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',
|
||||
'height' => '32px',
|
||||
'width' => '32px',
|
||||
'text' => 'Instagram',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
7 => array(
|
||||
'type' => 'container',
|
||||
'orientation' => 'horizontal',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => '#f6f6f6',
|
||||
),
|
||||
),
|
||||
'blocks' => array(
|
||||
0 => array(
|
||||
'type' => 'container',
|
||||
'orientation' => 'vertical',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
),
|
||||
),
|
||||
'blocks' => array(
|
||||
0 => array(
|
||||
'type' => 'footer',
|
||||
'text' => '<p><a href="[link:subscription_unsubscribe_url]">Unsubscribe</a> | <a href="[link:subscription_manage_url]">Manage your subscription</a></p>',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
),
|
||||
'text' => array(
|
||||
'fontColor' => '#222222',
|
||||
'fontFamily' => 'Arial',
|
||||
'fontSize' => '12px',
|
||||
'textAlign' => 'center',
|
||||
),
|
||||
'link' => array(
|
||||
'fontColor' => '#41c7bf',
|
||||
'textDecoration' => 'none',
|
||||
),
|
||||
),
|
||||
),
|
||||
1 => 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' => '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' => '#f6f6f6',
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
private function getThumbnail() {
|
||||
return $this->template_image_url . '/shoes.jpg';
|
||||
}
|
||||
|
||||
}
|
@ -1,406 +0,0 @@
|
||||
<?php
|
||||
namespace MailPoet\Config\PopulatorData\Templates;
|
||||
|
||||
if(!defined('ABSPATH')) exit;
|
||||
|
||||
class StoreDiscount {
|
||||
|
||||
function __construct($assets_url) {
|
||||
$this->assets_url = $assets_url;
|
||||
$this->external_template_image_url = '//ps.w.org/mailpoet/assets/newsletter-templates/store-discount';
|
||||
$this->template_image_url = $this->assets_url . '/img/sample_templates/discount';
|
||||
$this->social_icon_url = $this->assets_url . '/img/newsletter_editor/social-icons';
|
||||
}
|
||||
|
||||
function get() {
|
||||
return array(
|
||||
'name' => __("Store Discount", 'mailpoet'),
|
||||
'description' => __("Store discount email with coupon and shopping suggestions", 'mailpoet'),
|
||||
'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" => "spacer",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent",
|
||||
"height" => "20px"
|
||||
)
|
||||
)
|
||||
), array(
|
||||
"type" => "image",
|
||||
"link" => "",
|
||||
"src" => $this->external_template_image_url . "/bicycle-header3.png",
|
||||
"alt" => __("bicycle-header3", 'mailpoet'),
|
||||
"fullWidth" => false,
|
||||
"width" => "423px",
|
||||
"height" => "135px",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"textAlign" => "center"
|
||||
)
|
||||
)
|
||||
), array(
|
||||
"type" => "text",
|
||||
"text" => __("<p></p>\n<p>Hi [subscriber:firstname | default:reader]</p>\n<p class=\"\"></p>\n<p>Fancy 15% off your next order? Use this coupon on any product in our store. Expires Wednesday! To apply the discount, enter the code on the payments page.</p>", 'mailpoet')
|
||||
), array(
|
||||
"type" => "spacer",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent",
|
||||
"height" => "20px"
|
||||
)
|
||||
)
|
||||
))
|
||||
))
|
||||
), array(
|
||||
"type" => "container",
|
||||
"orientation" => "horizontal",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "#ebdddd"
|
||||
)
|
||||
),
|
||||
"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" => "16px",
|
||||
"borderStyle" => "dashed",
|
||||
"borderWidth" => "2px",
|
||||
"borderColor" => "#9a5fa1"
|
||||
)
|
||||
)
|
||||
), array(
|
||||
"type" => "text",
|
||||
"text" => __("<h1 style=\"text-align: center;\"><em><strong>Get a 15% off your next order</strong></em></h1>", 'mailpoet')
|
||||
), array(
|
||||
"type" => "text",
|
||||
"text" => __("<h2 style=\"text-align: center;\"><strong>USE CODE: WELOVEMAILPOET</strong></h2>", 'mailpoet')
|
||||
), array(
|
||||
"type" => "divider",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent",
|
||||
"padding" => "16px",
|
||||
"borderStyle" => "dashed",
|
||||
"borderWidth" => "2px",
|
||||
"borderColor" => "#9a5fa1"
|
||||
)
|
||||
)
|
||||
))
|
||||
))
|
||||
), 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" => "20px"
|
||||
)
|
||||
)
|
||||
), array(
|
||||
"type" => "button",
|
||||
"text" => __("SHOP NOW", 'mailpoet'),
|
||||
"url" => "",
|
||||
"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"
|
||||
)
|
||||
)
|
||||
), array(
|
||||
"type" => "text",
|
||||
"text" => __("<h1 style=\"text-align: center;\"><strong><em>Use your discount on these great products...</em></strong></h1>", 'mailpoet')
|
||||
), 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" => "",
|
||||
"src" => $this->external_template_image_url . "/red-icycle.jpg",
|
||||
"alt" => __("red-bicycle", 'mailpoet'),
|
||||
"fullWidth" => false,
|
||||
"width" => "558px",
|
||||
"height" => "399px",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"textAlign" => "center"
|
||||
)
|
||||
)
|
||||
), array(
|
||||
"type" => "text",
|
||||
"text" => __("<h3 style=\"text-align: center;\">Lovely Red Bicycle</h3>\n<p>What can we say? It's a totally awesome red bike, and it's the first of its kind in our collection. No sweat!</p>\n<h3 style=\"text-align: center;\"><strong><span style=\"color: #488e88;\">$289.99</span></strong></h3>", 'mailpoet')
|
||||
), array(
|
||||
"type" => "button",
|
||||
"text" => __("Buy", 'mailpoet'),
|
||||
"url" => "",
|
||||
"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"
|
||||
)
|
||||
)
|
||||
))
|
||||
), array(
|
||||
"type" => "container",
|
||||
"orientation" => "vertical",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
)
|
||||
),
|
||||
"blocks" => array(array(
|
||||
"type" => "image",
|
||||
"link" => "",
|
||||
"src" => $this->external_template_image_url . "/orange-bicycle.jpg",
|
||||
"alt" => __("orange-bicycle", 'mailpoet'),
|
||||
"fullWidth" => false,
|
||||
"width" => "639px",
|
||||
"height" => "457px",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"textAlign" => "center"
|
||||
)
|
||||
)
|
||||
), array(
|
||||
"type" => "text",
|
||||
"text" => __("<h3 style=\"text-align: center;\">Little Orange Bicycle</h3>\n<p>Another product that's just as awesome but it's the second type, and more orange, with some blue. Cool beans!</p>\n<h3 style=\"line-height: 22.4px; text-align: center;\"><span style=\"color: #488e88;\"><strong>$209.99</strong></span></h3>", 'mailpoet')
|
||||
), array(
|
||||
"type" => "button",
|
||||
"text" => __("Buy", 'mailpoet'),
|
||||
"url" => "",
|
||||
"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"
|
||||
)
|
||||
)
|
||||
))
|
||||
))
|
||||
), 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" => "22px"
|
||||
)
|
||||
)
|
||||
), array(
|
||||
"type" => "divider",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent",
|
||||
"padding" => "20px",
|
||||
"borderStyle" => "solid",
|
||||
"borderWidth" => "1px",
|
||||
"borderColor" => "#9e9e9e"
|
||||
)
|
||||
)
|
||||
), array(
|
||||
"type" => "text",
|
||||
"text" => __("<p><em>Terms and Conditions:</em></p>\n<ul>\n<li><span style=\"line-height: 1.6em; background-color: inherit;\">Must be used by midnight EST December 15 2036.</span></li>\n<li><span style=\"line-height: 1.6em; background-color: inherit;\">Discount does not include shipping.</span></li>\n<li><span style=\"line-height: 1.6em; background-color: inherit;\">Cannot be used in conjunction with any other offer.</span></li>\n</ul>", 'mailpoet')
|
||||
), array(
|
||||
"type" => "social",
|
||||
"iconSet" => "grey",
|
||||
"icons" => array(array(
|
||||
"type" => "socialIcon",
|
||||
"iconType" => "facebook",
|
||||
"link" => "",
|
||||
"image" => $this->social_icon_url . "/02-grey/Facebook.png",
|
||||
"height" => "32px",
|
||||
"width" => "32px",
|
||||
"text" => __("Facebook", 'mailpoet')
|
||||
), array(
|
||||
"type" => "socialIcon",
|
||||
"iconType" => "twitter",
|
||||
"link" => "",
|
||||
"image" => $this->social_icon_url . "/02-grey/Twitter.png",
|
||||
"height" => "32px",
|
||||
"width" => "32px",
|
||||
"text" => __("Twitter", 'mailpoet')
|
||||
))
|
||||
), array(
|
||||
"type" => "footer",
|
||||
"text" => __("<p><a href=\"[link:subscription_unsubscribe_url]\">Unsubscribe</a> | <a href=\"[link:subscription_manage_url]\">Manage subscription</a></p>\n<p>1 Store Street, Shopville, CA 1345</p>", 'mailpoet'),
|
||||
"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->external_template_image_url . '/screenshot.jpg';
|
||||
}
|
||||
|
||||
}
|
769
lib/Config/PopulatorData/Templates/TakeAHike.php
Normal file
769
lib/Config/PopulatorData/Templates/TakeAHike.php
Normal file
@ -0,0 +1,769 @@
|
||||
<?php
|
||||
|
||||
namespace MailPoet\Config\PopulatorData\Templates;
|
||||
|
||||
class TakeAHike {
|
||||
|
||||
private $template_image_url;
|
||||
private $social_icon_url;
|
||||
|
||||
function __construct($assets_url) {
|
||||
$this->template_image_url = '//ps.w.org/mailpoet/assets/newsletter-templates/take_a_hike';
|
||||
$this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons';
|
||||
}
|
||||
|
||||
function get() {
|
||||
return array(
|
||||
'name' => __("Take a Hike", 'mailpoet'),
|
||||
'description' => __("Can you climb to the top?", 'mailpoet'),
|
||||
'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 . '/header.jpg',
|
||||
'alt' => 'header',
|
||||
'fullWidth' => true,
|
||||
'width' => '1320px',
|
||||
'height' => '483px',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'textAlign' => 'center',
|
||||
),
|
||||
),
|
||||
),
|
||||
1 => array(
|
||||
'type' => 'spacer',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
'height' => '20px',
|
||||
),
|
||||
),
|
||||
),
|
||||
2 => array(
|
||||
'type' => 'text',
|
||||
'text' => '<p>Hi [subscriber:firstname | default:explorer]</p>
|
||||
<p></p>
|
||||
<p>Aliquam feugiat nisl eget eleifend congue. Nullam neque tellus, elementum vel elit dictum, tempus sagittis nunc. Phasellus quis commodo odio. Vestibulum vitae mi vel quam rhoncus egestas eget vitae eros. </p>',
|
||||
),
|
||||
3 => array(
|
||||
'type' => 'spacer',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
'height' => '20px',
|
||||
),
|
||||
),
|
||||
),
|
||||
4 => array(
|
||||
'type' => 'spacer',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => '#843c15',
|
||||
'height' => '40px',
|
||||
),
|
||||
),
|
||||
),
|
||||
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' => 'text',
|
||||
'text' => '<h1><strong>How to plan your hiking route</strong></h1>
|
||||
<p>Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Aliquam dictum urna ac lacus dapibus rhoncus.</p>',
|
||||
),
|
||||
1 => array(
|
||||
'type' => 'button',
|
||||
'text' => 'Read More',
|
||||
'url' => 'https://www.google.co.uk',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => '#64a1af',
|
||||
'borderColor' => '#0074a2',
|
||||
'borderWidth' => '0px',
|
||||
'borderRadius' => '5px',
|
||||
'borderStyle' => 'solid',
|
||||
'width' => '150px',
|
||||
'lineHeight' => '34px',
|
||||
'fontColor' => '#ffffff',
|
||||
'fontFamily' => 'Courier New',
|
||||
'fontSize' => '18px',
|
||||
'fontWeight' => 'bold',
|
||||
'textAlign' => 'left',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
1 => array(
|
||||
'type' => 'container',
|
||||
'orientation' => 'vertical',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
),
|
||||
),
|
||||
'blocks' => array(
|
||||
0 => array(
|
||||
'type' => 'image',
|
||||
'link' => '',
|
||||
'src' => $this->template_image_url . '/map.jpg',
|
||||
'alt' => 'map',
|
||||
'fullWidth' => false,
|
||||
'width' => '330px',
|
||||
'height' => '227px',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'textAlign' => 'center',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
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' => 'spacer',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => '#843c15',
|
||||
'height' => '40px',
|
||||
),
|
||||
),
|
||||
),
|
||||
2 => 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' => '',
|
||||
'src' => $this->template_image_url . '/boots.jpg',
|
||||
'alt' => 'boots',
|
||||
'fullWidth' => false,
|
||||
'width' => '600px',
|
||||
'height' => '400px',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'textAlign' => 'center',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
1 => array(
|
||||
'type' => 'container',
|
||||
'orientation' => 'vertical',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
),
|
||||
),
|
||||
'blocks' => array(
|
||||
0 => array(
|
||||
'type' => 'text',
|
||||
'text' => '<h2><strong>Tried & tested: Our favourite walking boots</strong></h2>
|
||||
<p>Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. </p>',
|
||||
),
|
||||
1 => array(
|
||||
'type' => 'button',
|
||||
'text' => 'See Reviews',
|
||||
'url' => '',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => '#64a1af',
|
||||
'borderColor' => '#0074a2',
|
||||
'borderWidth' => '0px',
|
||||
'borderRadius' => '5px',
|
||||
'borderStyle' => 'solid',
|
||||
'width' => '150px',
|
||||
'lineHeight' => '34px',
|
||||
'fontColor' => '#ffffff',
|
||||
'fontFamily' => 'Courier New',
|
||||
'fontSize' => '18px',
|
||||
'fontWeight' => 'bold',
|
||||
'textAlign' => 'left',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
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' => '20px',
|
||||
),
|
||||
),
|
||||
),
|
||||
1 => array(
|
||||
'type' => 'spacer',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => '#843c15',
|
||||
'height' => '40px',
|
||||
),
|
||||
),
|
||||
),
|
||||
2 => array(
|
||||
'type' => 'spacer',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
'height' => '20px',
|
||||
),
|
||||
),
|
||||
),
|
||||
3 => array(
|
||||
'type' => 'text',
|
||||
'text' => '<h3 style="text-align: center;"><strong>Hikers Gallery</strong></h3>',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
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 . '/gallery3.jpg',
|
||||
'alt' => 'gallery3',
|
||||
'fullWidth' => true,
|
||||
'width' => '1000px',
|
||||
'height' => '750px',
|
||||
'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' => '',
|
||||
'src' => $this->template_image_url . '/gallery1-300x225.jpg',
|
||||
'alt' => 'gallery1',
|
||||
'fullWidth' => true,
|
||||
'width' => '300px',
|
||||
'height' => '225px',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'textAlign' => 'center',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
2 => array(
|
||||
'type' => 'container',
|
||||
'orientation' => 'vertical',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
),
|
||||
),
|
||||
'blocks' => array(
|
||||
0 => array(
|
||||
'type' => 'image',
|
||||
'link' => '',
|
||||
'src' => $this->template_image_url . '/gallery2-1.jpg',
|
||||
'alt' => 'gallery2',
|
||||
'fullWidth' => true,
|
||||
'width' => '1000px',
|
||||
'height' => '750px',
|
||||
'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' => 'transparent',
|
||||
'height' => '20px',
|
||||
),
|
||||
),
|
||||
),
|
||||
1 => array(
|
||||
'type' => 'text',
|
||||
'text' => '<p style="text-align: center;">Edit this to insert text</p>',
|
||||
),
|
||||
2 => array(
|
||||
'type' => 'button',
|
||||
'text' => 'View More Photos',
|
||||
'url' => '',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => '#64a1af',
|
||||
'borderColor' => '#0074a2',
|
||||
'borderWidth' => '0px',
|
||||
'borderRadius' => '5px',
|
||||
'borderStyle' => 'solid',
|
||||
'width' => '214px',
|
||||
'lineHeight' => '34px',
|
||||
'fontColor' => '#ffffff',
|
||||
'fontFamily' => 'Courier New',
|
||||
'fontSize' => '18px',
|
||||
'fontWeight' => 'bold',
|
||||
'textAlign' => 'center',
|
||||
),
|
||||
),
|
||||
),
|
||||
3 => array(
|
||||
'type' => 'spacer',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => '#843c15',
|
||||
'height' => '40px',
|
||||
),
|
||||
),
|
||||
),
|
||||
4 => array(
|
||||
'type' => 'spacer',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
'height' => '20px',
|
||||
),
|
||||
),
|
||||
),
|
||||
5 => array(
|
||||
'type' => 'text',
|
||||
'text' => '<h3 style="text-align: center;"><strong>Hiking goes social...</strong></h3>',
|
||||
),
|
||||
6 => 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' => 'instagram',
|
||||
'link' => 'http://instagram.com',
|
||||
'image' => $this->social_icon_url . '/03-circles/Instagram.png',
|
||||
'height' => '32px',
|
||||
'width' => '32px',
|
||||
'text' => 'Instagram',
|
||||
),
|
||||
3 => array(
|
||||
'type' => 'socialIcon',
|
||||
'iconType' => 'google-plus',
|
||||
'link' => 'http://plus.google.com',
|
||||
'image' => $this->social_icon_url . '/03-circles/Google-Plus.png',
|
||||
'height' => '32px',
|
||||
'width' => '32px',
|
||||
'text' => 'Google Plus',
|
||||
),
|
||||
4 => 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',
|
||||
),
|
||||
),
|
||||
),
|
||||
7 => array(
|
||||
'type' => 'spacer',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
'height' => '20px',
|
||||
),
|
||||
),
|
||||
),
|
||||
8 => array(
|
||||
'type' => 'spacer',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => '#843c15',
|
||||
'height' => '40px',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
7 => array(
|
||||
'type' => 'container',
|
||||
'orientation' => 'horizontal',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => '#64a1af',
|
||||
),
|
||||
),
|
||||
'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',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
8 => array(
|
||||
'type' => 'container',
|
||||
'orientation' => 'horizontal',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => '#64a1af',
|
||||
),
|
||||
),
|
||||
'blocks' => array(
|
||||
0 => array(
|
||||
'type' => 'container',
|
||||
'orientation' => 'vertical',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
),
|
||||
),
|
||||
'blocks' => array(
|
||||
0 => array(
|
||||
'type' => 'footer',
|
||||
'text' => '<p><a href="[link:subscription_unsubscribe_url]">Unsubscribe</a> | <a href="[link:subscription_manage_url]">Manage subscription</a></p>',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
),
|
||||
'text' => array(
|
||||
'fontColor' => '#ffffff',
|
||||
'fontFamily' => 'Arial',
|
||||
'fontSize' => '13px',
|
||||
'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' => 'footer',
|
||||
'text' => '<p>Add your postal address here!</p>',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
),
|
||||
'text' => array(
|
||||
'fontColor' => '#ffffff',
|
||||
'fontFamily' => 'Arial',
|
||||
'fontSize' => '13px',
|
||||
'textAlign' => 'right',
|
||||
),
|
||||
'link' => array(
|
||||
'fontColor' => '#ffffff',
|
||||
'textDecoration' => 'underline',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
9 => array(
|
||||
'type' => 'container',
|
||||
'orientation' => 'horizontal',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => '#64a1af',
|
||||
),
|
||||
),
|
||||
'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',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
'globalStyles' => array(
|
||||
'text' => array(
|
||||
'fontColor' => '#4f230c',
|
||||
'fontFamily' => 'Arial',
|
||||
'fontSize' => '16px',
|
||||
),
|
||||
'h1' => array(
|
||||
'fontColor' => '#423c39',
|
||||
'fontFamily' => 'Courier New',
|
||||
'fontSize' => '24px',
|
||||
),
|
||||
'h2' => array(
|
||||
'fontColor' => '#265f6d',
|
||||
'fontFamily' => 'Courier New',
|
||||
'fontSize' => '24px',
|
||||
),
|
||||
'h3' => array(
|
||||
'fontColor' => '#423c39',
|
||||
'fontFamily' => 'Courier New',
|
||||
'fontSize' => '20px',
|
||||
),
|
||||
'link' => array(
|
||||
'fontColor' => '#843c15',
|
||||
'textDecoration' => 'underline',
|
||||
),
|
||||
'wrapper' => array(
|
||||
'backgroundColor' => '#ffffff',
|
||||
),
|
||||
'body' => array(
|
||||
'backgroundColor' => '#843c15',
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
private function getThumbnail() {
|
||||
return $this->template_image_url . '/take-a-hike.jpg';
|
||||
}
|
||||
|
||||
}
|
@ -1,527 +0,0 @@
|
||||
<?php
|
||||
namespace MailPoet\Config\PopulatorData\Templates;
|
||||
|
||||
if(!defined('ABSPATH')) exit;
|
||||
|
||||
class TravelEmail {
|
||||
|
||||
function __construct($assets_url) {
|
||||
$this->assets_url = $assets_url;
|
||||
$this->external_template_image_url = '//ps.w.org/mailpoet/assets/newsletter-templates/travel-email';
|
||||
$this->template_image_url = $this->assets_url . '/img/sample_templates/travel';
|
||||
$this->social_icon_url = $this->assets_url . '/img/newsletter_editor/social-icons';
|
||||
}
|
||||
|
||||
function get() {
|
||||
return array(
|
||||
'name' => __("Travel email", 'mailpoet'),
|
||||
'description' => __("A little postcard from your trip", 'mailpoet'),
|
||||
'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" => "",
|
||||
"src" => $this->external_template_image_url . "/header.png",
|
||||
"alt" => __("Travelling Tales with Jane & Steven", 'mailpoet'),
|
||||
"fullWidth" => true,
|
||||
"width" => "660px",
|
||||
"height" => "165px",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"textAlign" => "center"
|
||||
)
|
||||
)
|
||||
), array(
|
||||
"type" => "spacer",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent",
|
||||
"height" => "30px"
|
||||
)
|
||||
)
|
||||
), array(
|
||||
"type" => "text",
|
||||
"text" => __("<h1 style=\"text-align: center;\">Hi [subscriber:firstname | default:reader]!</h1>\n<p></p>\n<p>Greetings from New Zealand! We're here enjoying the sights, sounds, and smells of Rotarua! Yesterday, we visited the local hot springs, and today, we're going swimming.</p>\n<p>Don't forget to stay updated with Twitter!</p>", 'mailpoet')
|
||||
), array(
|
||||
"type" => "social",
|
||||
"iconSet" => "circles",
|
||||
"icons" => array(array(
|
||||
"type" => "socialIcon",
|
||||
"iconType" => "twitter",
|
||||
"link" => "",
|
||||
"image" => $this->social_icon_url . "/03-circles/Twitter.png",
|
||||
"height" => "32px",
|
||||
"width" => "32px",
|
||||
"text" => __("Twitter", 'mailpoet')
|
||||
))
|
||||
), array(
|
||||
"type" => "text",
|
||||
"text" => __("<h1 style=\"text-align: center;\"><strong>Photos from Rotarua</strong></h1>", 'mailpoet')
|
||||
), 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" => "",
|
||||
"src" => $this->external_template_image_url . "/gallery1.jpg",
|
||||
"alt" => __("hot thermals", 'mailpoet'),
|
||||
"fullWidth" => false,
|
||||
"width" => "640px",
|
||||
"height" => "425px",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"textAlign" => "center"
|
||||
)
|
||||
)
|
||||
), array(
|
||||
"type" => "spacer",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent",
|
||||
"height" => "40px"
|
||||
)
|
||||
)
|
||||
))
|
||||
), array(
|
||||
"type" => "container",
|
||||
"orientation" => "vertical",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
)
|
||||
),
|
||||
"blocks" => array(array(
|
||||
"type" => "image",
|
||||
"link" => "",
|
||||
"src" => $this->external_template_image_url . "/gallery2.jpg",
|
||||
"alt" => __("The view from our campsite", 'mailpoet'),
|
||||
"fullWidth" => false,
|
||||
"width" => "640px",
|
||||
"height" => "425px",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"textAlign" => "center"
|
||||
)
|
||||
)
|
||||
), array(
|
||||
"type" => "spacer",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent",
|
||||
"height" => "40px"
|
||||
)
|
||||
)
|
||||
))
|
||||
))
|
||||
), 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" => "",
|
||||
"src" => $this->external_template_image_url . "/gallery3.jpg",
|
||||
"alt" => __("Red sky at night", 'mailpoet'),
|
||||
"fullWidth" => false,
|
||||
"width" => "640px",
|
||||
"height" => "425px",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"textAlign" => "center"
|
||||
)
|
||||
)
|
||||
))
|
||||
), array(
|
||||
"type" => "container",
|
||||
"orientation" => "vertical",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
)
|
||||
),
|
||||
"blocks" => array(array(
|
||||
"type" => "image",
|
||||
"link" => "",
|
||||
"src" => $this->external_template_image_url . "/gallery4.jpg",
|
||||
"alt" => __("Don't go chasing waterfalls", 'mailpoet'),
|
||||
"fullWidth" => false,
|
||||
"width" => "640px",
|
||||
"height" => "425px",
|
||||
"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" => "spacer",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent",
|
||||
"height" => "20px"
|
||||
)
|
||||
)
|
||||
), array(
|
||||
"type" => "button",
|
||||
"text" => __("View NZ Photo Gallery", 'mailpoet'),
|
||||
"url" => "",
|
||||
"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"
|
||||
)
|
||||
)
|
||||
))
|
||||
))
|
||||
), 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" => "23px",
|
||||
"borderStyle" => "double",
|
||||
"borderWidth" => "3px",
|
||||
"borderColor" => "#aaaaaa"
|
||||
)
|
||||
)
|
||||
), array(
|
||||
"type" => "text",
|
||||
"text" => __("<h2><em>Here's our top recommendations in Rotarua</em></h2>", 'mailpoet')
|
||||
), 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" => "",
|
||||
"src" => $this->external_template_image_url . "/glow-worms.jpg",
|
||||
"alt" => __("Glowworms, Waitomo Caves", 'mailpoet'),
|
||||
"fullWidth" => true,
|
||||
"width" => "640px",
|
||||
"height" => "428px",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"textAlign" => "center"
|
||||
)
|
||||
)
|
||||
), array(
|
||||
"type" => "text",
|
||||
"text" => __("<p><em><a href=\"http://www.waitomo.com/Waitomo-Glowworm-Caves/Pages/default.aspx\"><strong>Waitomo GlowWorm Caves</strong></a></em></p>", 'mailpoet')
|
||||
))
|
||||
), array(
|
||||
"type" => "container",
|
||||
"orientation" => "vertical",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
)
|
||||
),
|
||||
"blocks" => array(array(
|
||||
"type" => "image",
|
||||
"link" => "",
|
||||
"src" => $this->external_template_image_url . "/luge.jpg",
|
||||
"alt" => __("luge", 'mailpoet'),
|
||||
"fullWidth" => false,
|
||||
"width" => "375px",
|
||||
"height" => "500px",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"textAlign" => "center"
|
||||
)
|
||||
)
|
||||
), array(
|
||||
"type" => "text",
|
||||
"text" => __("<p><em><strong><a href=\"http://www.skyline.co.nz/rotorua/ssr_luge/\">Luge!</a></strong></em></p>", 'mailpoet')
|
||||
))
|
||||
), array(
|
||||
"type" => "container",
|
||||
"orientation" => "vertical",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
)
|
||||
),
|
||||
"blocks" => array(array(
|
||||
"type" => "image",
|
||||
"link" => "",
|
||||
"src" => $this->external_template_image_url . "/holiday-park.jpg",
|
||||
"alt" => __("holiday-park", 'mailpoet'),
|
||||
"fullWidth" => true,
|
||||
"width" => "640px",
|
||||
"height" => "425px",
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"textAlign" => "center"
|
||||
)
|
||||
)
|
||||
), array(
|
||||
"type" => "text",
|
||||
"text" => __("<p><em><strong><a href=\"http://rotoruathermal.co.nz/\">Roturua Thermal Holiday Park</a></strong></em></p>", 'mailpoet')
|
||||
))
|
||||
))
|
||||
), 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" => "21px"
|
||||
)
|
||||
)
|
||||
), array(
|
||||
"type" => "text",
|
||||
"text" => __("<p>Tomorrow we're heading towards Taupo where we'll visit the 'Craters of the moon' and go prawn fishing! Hopefully the weather will stay good.</p>\n<p></p>\n<p>Keep on travellin'</p>\n<p>Jane & Steven</p>", 'mailpoet')
|
||||
))
|
||||
))
|
||||
), 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" => "13px",
|
||||
"borderStyle" => "dotted",
|
||||
"borderWidth" => "2px",
|
||||
"borderColor" => "#aaaaaa"
|
||||
)
|
||||
)
|
||||
), array(
|
||||
"type" => "header",
|
||||
"text" => ("Display problems? <a href=\"[link:newsletter_view_in_browser_url]\">Open this email in your web browser.</a>"),
|
||||
"styles" => array(
|
||||
"block" => array(
|
||||
"backgroundColor" => "transparent"
|
||||
),
|
||||
"text" => array(
|
||||
"fontColor" => "#222222",
|
||||
"fontFamily" => "Courier New",
|
||||
"fontSize" => "12px",
|
||||
"textAlign" => "center"
|
||||
),
|
||||
"link" => array(
|
||||
"fontColor" => "#343434",
|
||||
"textDecoration" => "underline"
|
||||
)
|
||||
)
|
||||
), array(
|
||||
"type" => "footer",
|
||||
"text" => __("<p><a href=\"[link:subscription_unsubscribe_url]\">Unsubscribe</a> | <a href=\"[link:subscription_manage_url]\">Manage subscription</a></p>", 'mailpoet'),
|
||||
"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" => "24px"
|
||||
),
|
||||
"h2" => array(
|
||||
"fontColor" => "#180d6b",
|
||||
"fontFamily" => "Trebuchet MS",
|
||||
"fontSize" => "20px"
|
||||
),
|
||||
"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->external_template_image_url . '/screenshot.jpg';
|
||||
}
|
||||
|
||||
}
|
603
lib/Config/PopulatorData/Templates/TravelNomads.php
Normal file
603
lib/Config/PopulatorData/Templates/TravelNomads.php
Normal file
@ -0,0 +1,603 @@
|
||||
<?php
|
||||
|
||||
namespace MailPoet\Config\PopulatorData\Templates;
|
||||
|
||||
class TravelNomads {
|
||||
|
||||
private $template_image_url;
|
||||
private $social_icon_url;
|
||||
|
||||
function __construct($assets_url) {
|
||||
$this->template_image_url = '//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'),
|
||||
'description' => __("Ideal for sharing your travel adventures.", 'mailpoet'),
|
||||
'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' => '<h1 style="text-align: center;">Hi [subscriber:firstname | default:reader]!</h1>
|
||||
<p></p>
|
||||
<p>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.</p>',
|
||||
),
|
||||
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' => '<h1 style="text-align: center;"><strong>Photos from Rotarua</strong></h1>',
|
||||
),
|
||||
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' => '<h2><em>Here\'s our top recommendations in Rotarua</em></h2>',
|
||||
),
|
||||
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' => '<p><em><a href="http://www.waitomo.com/Waitomo-Glowworm-Caves/Pages/default.aspx"><strong>Waitomo Glow Worm Caves</strong></a></em></p>',
|
||||
),
|
||||
),
|
||||
),
|
||||
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' => '<p><em><strong><a href="http://www.skyline.co.nz/rotorua/ssr_luge/">Luge!</a></strong></em></p>',
|
||||
),
|
||||
),
|
||||
),
|
||||
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' => '<p><em><strong><a href="http://rotoruathermal.co.nz/">Roturua Thermal Holiday Park</a></strong></em></p>',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
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' => '<p>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.</p>
|
||||
<p></p>
|
||||
<p>Morbi sit amet,</p>
|
||||
<p>Jane & Steven</p>',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
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? <a href="[link:newsletter_view_in_browser_url]">Open this email in your web browser</a>',
|
||||
'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' => '<p><a href="[link:subscription_unsubscribe_url]">Unsubscribe</a> | <a href="[link:subscription_manage_url]">Manage subscription</a></p>',
|
||||
'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';
|
||||
}
|
||||
|
||||
}
|
785
lib/Config/PopulatorData/Templates/WorldCup.php
Normal file
785
lib/Config/PopulatorData/Templates/WorldCup.php
Normal file
@ -0,0 +1,785 @@
|
||||
<?php
|
||||
|
||||
namespace MailPoet\Config\PopulatorData\Templates;
|
||||
|
||||
class WorldCup {
|
||||
|
||||
private $template_image_url;
|
||||
private $social_icon_url;
|
||||
|
||||
function __construct($assets_url) {
|
||||
$this->template_image_url = '//ps.w.org/mailpoet/assets/newsletter-templates/world_cup';
|
||||
$this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons';
|
||||
}
|
||||
|
||||
function get() {
|
||||
return array(
|
||||
'name' => __("World Cup", 'mailpoet'),
|
||||
'description' => __("Always a winner. ", 'mailpoet'),
|
||||
'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' => '#222222',
|
||||
),
|
||||
),
|
||||
'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' => '20px',
|
||||
),
|
||||
),
|
||||
),
|
||||
array(
|
||||
'type' => 'image',
|
||||
'link' => '',
|
||||
'src' => $this->template_image_url . '/Sports-Football-Header.png',
|
||||
'alt' => 'Sports-Football-Header',
|
||||
'fullWidth' => true,
|
||||
'width' => '1280px',
|
||||
'height' => '220px',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'textAlign' => 'center',
|
||||
),
|
||||
),
|
||||
),
|
||||
array(
|
||||
'type' => 'image',
|
||||
'link' => '',
|
||||
'src' => $this->template_image_url . '/Sports-Football-Divider-1.png',
|
||||
'alt' => 'Sports-Football-Divider-1',
|
||||
'fullWidth' => true,
|
||||
'width' => '1280px',
|
||||
'height' => '50px',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'textAlign' => 'center',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
array(
|
||||
'type' => 'container',
|
||||
'orientation' => 'horizontal',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => '#da6110',
|
||||
),
|
||||
),
|
||||
'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' => '20px',
|
||||
),
|
||||
),
|
||||
),
|
||||
array(
|
||||
'type' => 'text',
|
||||
'text' => '<p><strong><span style="color: #ffffff; font-size: 14px;">Issue #1</span></strong></p>',
|
||||
),
|
||||
),
|
||||
),
|
||||
array(
|
||||
'type' => 'container',
|
||||
'orientation' => 'vertical',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
),
|
||||
),
|
||||
'blocks' => array(
|
||||
array(
|
||||
'type' => 'text',
|
||||
'text' => '<p style="text-align: right;"><a href="[link:newsletter_view_in_browser_url]" target="_blank" style="color: #ffffff; font-size: 14px; text-align: center;">View In Browser</a></p>
|
||||
<p style="text-align: right;"><span style="color: #ffffff; text-align: start;">Monday 1st January 2017</span></p>',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
array(
|
||||
'type' => 'container',
|
||||
'orientation' => 'horizontal',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => '#ffffff',
|
||||
),
|
||||
),
|
||||
'blocks' => array(
|
||||
array(
|
||||
'type' => 'container',
|
||||
'orientation' => 'vertical',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
),
|
||||
),
|
||||
'blocks' => array(
|
||||
array(
|
||||
'type' => 'spacer',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => '#da6110',
|
||||
'height' => '20px',
|
||||
),
|
||||
),
|
||||
),
|
||||
array(
|
||||
'type' => 'image',
|
||||
'link' => '',
|
||||
'src' => $this->template_image_url . '/Sports-Football-Header-1.png',
|
||||
'alt' => 'Sports-Football-Header',
|
||||
'fullWidth' => true,
|
||||
'width' => '1280px',
|
||||
'height' => '580px',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'textAlign' => 'center',
|
||||
),
|
||||
),
|
||||
),
|
||||
array(
|
||||
'type' => 'spacer',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
'height' => '30px',
|
||||
),
|
||||
),
|
||||
),
|
||||
array(
|
||||
'type' => 'text',
|
||||
'text' => '<h2 style="text-align: left;"><strong>Welcome Back!</strong></h2>
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam consequat lorem at est congue, non consequat lacus iaculis. Integer euismod mauris velit, vel ultrices nibh bibendum quis. Donec eget fermentum magna.</p>
|
||||
<p></p>
|
||||
<p>Nullam congue dui lectus, quis pellentesque orci placerat eu. Fusce semper neque a mi aliquet vulputate sed sit amet nisi. Etiam sed nisl nec orci pretium lacinia eget in turpis. Maecenas in posuere justo. Vestibulum et sapien vestibulum, imperdiet neque in, maximus velit.</p>
|
||||
<p></p>
|
||||
<p>Proin dignissim elit magna, viverra scelerisque libero vehicula sed</p>',
|
||||
),
|
||||
array(
|
||||
'type' => 'image',
|
||||
'link' => '',
|
||||
'src' => $this->template_image_url . '/Sports-Football-Divider-3.png',
|
||||
'alt' => 'Sports-Football-Divider-3',
|
||||
'fullWidth' => true,
|
||||
'width' => '1280px',
|
||||
'height' => '50px',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'textAlign' => 'center',
|
||||
),
|
||||
),
|
||||
),
|
||||
array(
|
||||
'type' => 'spacer',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => '#efefef',
|
||||
'height' => '20px',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
array(
|
||||
'type' => 'container',
|
||||
'orientation' => 'horizontal',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => '#efefef',
|
||||
),
|
||||
),
|
||||
'blocks' => array(
|
||||
array(
|
||||
'type' => 'container',
|
||||
'orientation' => 'vertical',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
),
|
||||
),
|
||||
'blocks' => array(
|
||||
|
||||
array(
|
||||
'type' => 'text',
|
||||
'text' => '<h2 style="padding-bottom: 0;"><span style="font-weight: 600;">Latest News</span></h2>',
|
||||
),
|
||||
),
|
||||
),
|
||||
array(
|
||||
'type' => 'container',
|
||||
'orientation' => 'vertical',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
),
|
||||
),
|
||||
'blocks' => array(
|
||||
array(
|
||||
'type' => 'button',
|
||||
'text' => 'View All News',
|
||||
'url' => '',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => '#d35400',
|
||||
'borderColor' => '#d35400',
|
||||
'borderWidth' => '1px',
|
||||
'borderRadius' => '5px',
|
||||
'borderStyle' => 'solid',
|
||||
'width' => '110px',
|
||||
'lineHeight' => '36px',
|
||||
'fontColor' => '#ffffff',
|
||||
'fontFamily' => 'Tahoma',
|
||||
'fontSize' => '14px',
|
||||
'fontWeight' => 'normal',
|
||||
'textAlign' => 'right',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
array(
|
||||
'type' => 'container',
|
||||
'orientation' => 'horizontal',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => '#efefef',
|
||||
),
|
||||
),
|
||||
'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' => '20px',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
array(
|
||||
'type' => 'container',
|
||||
'orientation' => 'horizontal',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => '#efefef',
|
||||
),
|
||||
),
|
||||
'blocks' => array(
|
||||
array(
|
||||
'type' => 'container',
|
||||
'orientation' => 'vertical',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
),
|
||||
),
|
||||
'blocks' => array(
|
||||
array(
|
||||
'type' => 'image',
|
||||
'link' => 'http://mailpoet.info/brazils-history-making-hurricane/',
|
||||
'src' => $this->template_image_url . '/2865897_full-lnd.jpg',
|
||||
'alt' => 'Brazil’s history-making Hurricane',
|
||||
'fullWidth' => false,
|
||||
'width' => 652,
|
||||
'height' => 366,
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'textAlign' => 'center',
|
||||
),
|
||||
),
|
||||
),
|
||||
array(
|
||||
'type' => 'text',
|
||||
'text' => '<h3 style="text-align: left;" data-post-id="1938"><strong>Brazil’s history-making Hurricane</strong></h3>
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam consequat lorem at est congue, non consequat lacus iaculis. Integer euismod mauris velit, vel ultrices nibh bibendum quis. Donec eget fermentum magna. Nullam congue dui lectus, quis pellentesque orci placerat eu. Fusce semper neque a mi aliquet vulputate sed sit amet nisi...</p>
|
||||
<p><a href="http://mailpoet.info/brazils-history-making-hurricane/">Read More</a></p>',
|
||||
),
|
||||
array(
|
||||
'type' => 'spacer',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
'height' => '20px',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
array(
|
||||
'type' => 'container',
|
||||
'orientation' => 'horizontal',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => '#efefef',
|
||||
),
|
||||
),
|
||||
'blocks' => array(
|
||||
|
||||
array(
|
||||
'type' => 'container',
|
||||
'orientation' => 'vertical',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
),
|
||||
),
|
||||
'blocks' => array(
|
||||
array(
|
||||
'type' => 'image',
|
||||
'link' => 'http://mailpoet.info/icelands-dentist-coach-defying-convention-and-expectations/',
|
||||
'src' => $this->template_image_url . '/2866107_full-lnd.jpg',
|
||||
'alt' => 'Iceland’s dentist-coach defying convention and expectations',
|
||||
'fullWidth' => false,
|
||||
'width' => 652,
|
||||
'height' => 366,
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'textAlign' => 'center',
|
||||
),
|
||||
),
|
||||
),
|
||||
array(
|
||||
'type' => 'text',
|
||||
'text' => '<h3><strong>Iceland’s dentist-coach defying convention and expectations</strong></h3>
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam consequat lorem at est congue, non consequat lacus iaculis. Integer euismod mauris velit...</p>
|
||||
<p><a href="http://mailpoet.info/icelands-dentist-coach-defying-convention-and-expectations/">Read More</a></p>',
|
||||
),
|
||||
),
|
||||
),
|
||||
array(
|
||||
'type' => 'container',
|
||||
'orientation' => 'vertical',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
),
|
||||
),
|
||||
'blocks' => array(
|
||||
array(
|
||||
'type' => 'image',
|
||||
'link' => 'http://mailpoet.info/impact-and-legacy-of-2018-fifa-world-cup-russia-facts-and-figures/',
|
||||
'src' => $this->template_image_url . '/2709222_full-lnd.jpg',
|
||||
'alt' => 'Impact and legacy of 2018 FIFA World Cup Russia: facts and figures',
|
||||
'fullWidth' => false,
|
||||
'width' => 652,
|
||||
'height' => 366,
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'textAlign' => 'center',
|
||||
),
|
||||
),
|
||||
),
|
||||
array(
|
||||
'type' => 'text',
|
||||
'text' => '<h3 style="text-align: left;" data-post-id="1932"><strong>Impact and legacy of 2018 FIFA World Cup Russia: facts and figures</strong></h3>
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam consequat lorem at est congue, non consequat lacus iaculis. Integer euismod...</p>
|
||||
<p><a href="http://mailpoet.info/impact-and-legacy-of-2018-fifa-world-cup-russia-facts-and-figures/">Read More</a></p>',
|
||||
),
|
||||
),
|
||||
),
|
||||
array(
|
||||
'type' => 'container',
|
||||
'orientation' => 'vertical',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
),
|
||||
),
|
||||
'blocks' => array(
|
||||
array(
|
||||
'type' => 'image',
|
||||
'link' => 'http://mailpoet.info/linekers-life-changing-treble/',
|
||||
'src' => $this->template_image_url . '/2867790_full-lnd.jpg',
|
||||
'alt' => 'Lineker’s life-changing treble',
|
||||
'fullWidth' => false,
|
||||
'width' => 652,
|
||||
'height' => 366,
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'textAlign' => 'center',
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
array(
|
||||
'type' => 'text',
|
||||
'text' => '<h3 style="text-align: left;" data-post-id="1929"><strong>Lineker’s life-changing treble</strong></h3>
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam consequat lorem at est congue, non consequat lacus iaculis. Integer euismod mauris velit <span style="background-color: inherit;">consequat lorem at est congue...</span></p>
|
||||
<p><a href="http://mailpoet.info/linekers-life-changing-treble/">Read More</a></p>',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
array(
|
||||
'type' => 'container',
|
||||
'orientation' => 'horizontal',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => '#f8f8f8',
|
||||
),
|
||||
),
|
||||
'blocks' => array(
|
||||
array(
|
||||
'type' => 'container',
|
||||
'orientation' => 'vertical',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
),
|
||||
),
|
||||
'blocks' => array(
|
||||
array(
|
||||
'type' => 'spacer',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => '#efefef',
|
||||
'height' => '20px',
|
||||
),
|
||||
),
|
||||
),
|
||||
array(
|
||||
'type' => 'image',
|
||||
'link' => '',
|
||||
'src' => $this->template_image_url . '/Sports-Football-Divider-2.png',
|
||||
'alt' => 'Sports-Football-Divider-2',
|
||||
'fullWidth' => true,
|
||||
'width' => '1280px',
|
||||
'height' => '50px',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'textAlign' => 'center',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
array(
|
||||
'type' => 'container',
|
||||
'orientation' => 'horizontal',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => '#222222',
|
||||
),
|
||||
),
|
||||
'blocks' => array(
|
||||
array(
|
||||
'type' => 'container',
|
||||
'orientation' => 'vertical',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
),
|
||||
),
|
||||
'blocks' => array(
|
||||
array(
|
||||
'type' => 'image',
|
||||
'link' => '',
|
||||
'src' => $this->template_image_url . '/Sports-Football-Footer-1.png',
|
||||
'alt' => 'Sports-Football-Footer',
|
||||
'fullWidth' => true,
|
||||
'width' => '1280px',
|
||||
'height' => '500px',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'textAlign' => 'center',
|
||||
),
|
||||
),
|
||||
),
|
||||
array(
|
||||
'type' => 'spacer',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => '#da6110',
|
||||
'height' => '20px',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
array(
|
||||
'type' => 'container',
|
||||
'orientation' => 'horizontal',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => '#da6110',
|
||||
),
|
||||
),
|
||||
'blocks' => array(
|
||||
array(
|
||||
'type' => 'container',
|
||||
'orientation' => 'vertical',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
),
|
||||
),
|
||||
'blocks' => array(
|
||||
array(
|
||||
'type' => 'social',
|
||||
'iconSet' => 'full-symbol-grey',
|
||||
'icons' => array(
|
||||
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',
|
||||
),
|
||||
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',
|
||||
),
|
||||
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',
|
||||
),
|
||||
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',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
array(
|
||||
'type' => 'container',
|
||||
'orientation' => 'horizontal',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => '#b55311',
|
||||
),
|
||||
),
|
||||
'blocks' => array(
|
||||
array(
|
||||
'type' => 'container',
|
||||
'orientation' => 'vertical',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
),
|
||||
),
|
||||
'blocks' => array(
|
||||
array(
|
||||
'type' => 'spacer',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => '#da6110',
|
||||
'height' => '20px',
|
||||
),
|
||||
),
|
||||
),
|
||||
array(
|
||||
'type' => 'spacer',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
'height' => '20px',
|
||||
),
|
||||
),
|
||||
),
|
||||
array(
|
||||
'type' => 'image',
|
||||
'link' => '',
|
||||
'src' => $this->template_image_url . '/Sports-Football-Logo-Small.png',
|
||||
'alt' => 'Sports-Football-Logo-Small',
|
||||
'fullWidth' => false,
|
||||
'width' => '772px',
|
||||
'height' => '171px',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'textAlign' => 'center',
|
||||
),
|
||||
),
|
||||
),
|
||||
array(
|
||||
'type' => 'spacer',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
'height' => '20px',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
array(
|
||||
'type' => 'container',
|
||||
'orientation' => 'vertical',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
),
|
||||
),
|
||||
'blocks' => array(
|
||||
array(
|
||||
'type' => 'spacer',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => '#da6110',
|
||||
'height' => '20px',
|
||||
),
|
||||
),
|
||||
),
|
||||
array(
|
||||
'type' => 'spacer',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
'height' => '20px',
|
||||
),
|
||||
),
|
||||
),
|
||||
array(
|
||||
'type' => 'footer',
|
||||
'text' => '<p><a href="[link:subscription_unsubscribe_url]">Unsubscribe</a> | <a href="[link:subscription_manage_url]">Manage subscription</a><br />Add your postal address here!</p>',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
),
|
||||
'text' => array(
|
||||
'fontColor' => '#ffffff',
|
||||
'fontFamily' => 'Tahoma',
|
||||
'fontSize' => '12px',
|
||||
'textAlign' => 'right',
|
||||
),
|
||||
'link' => array(
|
||||
'fontColor' => '#ffffff',
|
||||
'textDecoration' => 'underline',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
'globalStyles' => array(
|
||||
'text' => array(
|
||||
'fontColor' => '#000000',
|
||||
'fontFamily' => 'Tahoma',
|
||||
'fontSize' => '14px',
|
||||
),
|
||||
'h1' => array(
|
||||
'fontColor' => '#111111',
|
||||
'fontFamily' => 'Tahoma',
|
||||
'fontSize' => '30px',
|
||||
),
|
||||
'h2' => array(
|
||||
'fontColor' => '#da6110',
|
||||
'fontFamily' => 'Tahoma',
|
||||
'fontSize' => '24px',
|
||||
),
|
||||
'h3' => array(
|
||||
'fontColor' => '#333333',
|
||||
'fontFamily' => 'Tahoma',
|
||||
'fontSize' => '18px',
|
||||
),
|
||||
'link' => array(
|
||||
'fontColor' => '#da6110',
|
||||
'textDecoration' => 'underline',
|
||||
),
|
||||
'wrapper' => array(
|
||||
'backgroundColor' => '#ffffff',
|
||||
),
|
||||
'body' => array(
|
||||
'backgroundColor' => '#222222',
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
private function getThumbnail() {
|
||||
return $this->template_image_url . '/world-cup.jpg';
|
||||
}
|
||||
|
||||
}
|
793
lib/Config/PopulatorData/Templates/YogaStudio.php
Normal file
793
lib/Config/PopulatorData/Templates/YogaStudio.php
Normal file
@ -0,0 +1,793 @@
|
||||
<?php
|
||||
|
||||
namespace MailPoet\Config\PopulatorData\Templates;
|
||||
|
||||
class YogaStudio {
|
||||
|
||||
private $template_image_url;
|
||||
private $social_icon_url;
|
||||
|
||||
function __construct($assets_url) {
|
||||
$this->template_image_url = '//ps.w.org/mailpoet/assets/newsletter-templates/yoga_studio';
|
||||
$this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons';
|
||||
}
|
||||
|
||||
function get() {
|
||||
return array(
|
||||
'name' => __("Yoga Studio", 'mailpoet'),
|
||||
'description' => __("Salute the sun and your subscribers.", 'mailpoet'),
|
||||
'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' => '#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' => '#1e2937',
|
||||
'height' => '20px',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
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' => 'image',
|
||||
'link' => '',
|
||||
'src' => $this->template_image_url . '/yoga-1.png',
|
||||
'alt' => 'yoga-1',
|
||||
'fullWidth' => true,
|
||||
'width' => '1280px',
|
||||
'height' => '740px',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'textAlign' => 'center',
|
||||
),
|
||||
),
|
||||
),
|
||||
1 => array(
|
||||
'type' => 'spacer',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
'height' => '30px',
|
||||
),
|
||||
),
|
||||
),
|
||||
2 => array(
|
||||
'type' => 'text',
|
||||
'text' => '<h2 style="text-align: center;"><strong>Here\'s your classes for this week:</strong></h2>',
|
||||
),
|
||||
3 => 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' => 'text',
|
||||
'text' => '<h3><strong><span style="color: #83bd31;"><em>Weekdays</em></span></strong></h3>
|
||||
<p><strong>Monday</strong>: 7am, 9am, 11am, 3pm and 5pm.</p>
|
||||
<p><strong>Tuesday</strong>: 7am, 9am, 11am, 3pm and 5pm.</p>
|
||||
<p><strong>Wednesday</strong>: 7am, 9am, 11am, 3pm and 5pm.</p>
|
||||
<p><strong>Thursday</strong>: CLOSED FOR PRIVATE CLASS.</p>
|
||||
<p><strong>Friday</strong>: 7am, 9am, 11am, and 3pm.</p>',
|
||||
),
|
||||
),
|
||||
),
|
||||
1 => array(
|
||||
'type' => 'container',
|
||||
'orientation' => 'vertical',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
),
|
||||
),
|
||||
'blocks' => array(
|
||||
0 => array(
|
||||
'type' => 'text',
|
||||
'text' => '<h3><strong><span style="color: #83bd31;"><em>Weekend</em></span></strong></h3>
|
||||
<p><strong>Saturday</strong>: 7am, 9am, 11am, 3pm and 5pm.</p>
|
||||
<p><strong>Sunday</strong>: 7am, 9am, 11am, 3pm and 5pm.</p>
|
||||
<p></p>',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
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' => 'divider',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
'padding' => '22px',
|
||||
'borderStyle' => 'solid',
|
||||
'borderWidth' => '1px',
|
||||
'borderColor' => '#d5d5d5',
|
||||
),
|
||||
),
|
||||
),
|
||||
2 => array(
|
||||
'type' => 'text',
|
||||
'text' => '<h3 style="text-align: center;"><span style="font-weight: 600;">Meet the instructors</span></h3>',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
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' => '20px',
|
||||
),
|
||||
),
|
||||
),
|
||||
1 => array(
|
||||
'type' => 'image',
|
||||
'link' => '',
|
||||
'src' => $this->template_image_url . '/yoga-person-1.png',
|
||||
'alt' => 'yoga-person-1',
|
||||
'fullWidth' => false,
|
||||
'width' => '400px',
|
||||
'height' => '400px',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'textAlign' => 'center',
|
||||
),
|
||||
),
|
||||
),
|
||||
2 => array(
|
||||
'type' => 'text',
|
||||
'text' => '<h3 style="text-align: center;"><span style="color: #83bd31;"><span style="font-weight: 600;">Maria Smith</span></span></h3>
|
||||
<p style="text-align: center;">Nullam hendrerit feugiat feugiat. Praesent mollis ante lacus, quis tempor leo sagittis vel. Donec sagittis eros at felis venenatis ultricies.</p>',
|
||||
),
|
||||
3 => array(
|
||||
'type' => 'button',
|
||||
'text' => 'Find Out More',
|
||||
'url' => '',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => '#83bd31',
|
||||
'borderColor' => '#83bd31',
|
||||
'borderWidth' => '1px',
|
||||
'borderRadius' => '40px',
|
||||
'borderStyle' => 'solid',
|
||||
'width' => '180px',
|
||||
'lineHeight' => '30px',
|
||||
'fontColor' => '#ffffff',
|
||||
'fontFamily' => 'Arial',
|
||||
'fontSize' => '14px',
|
||||
'fontWeight' => 'normal',
|
||||
'textAlign' => 'center',
|
||||
),
|
||||
),
|
||||
),
|
||||
4 => array(
|
||||
'type' => 'spacer',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
'height' => '30px',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
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 . '/yoga-person-2.png',
|
||||
'alt' => 'yoga-person-2',
|
||||
'fullWidth' => false,
|
||||
'width' => '400px',
|
||||
'height' => '400px',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'textAlign' => 'center',
|
||||
),
|
||||
),
|
||||
),
|
||||
2 => array(
|
||||
'type' => 'text',
|
||||
'text' => '<h3 style="text-align: center;"><span style="color: #83bd31;"><span style="font-weight: 600;">Fiona Davies</span></span></h3>
|
||||
<p style="text-align: center;">Nullam hendrerit feugiat feugiat. Praesent mollis ante lacus, quis tempor leo sagittis vel. Donec sagittis eros at felis venenatis ultricies.</p>',
|
||||
),
|
||||
3 => array(
|
||||
'type' => 'button',
|
||||
'text' => 'Find Out More',
|
||||
'url' => '',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => '#83bd31',
|
||||
'borderColor' => '#83bd31',
|
||||
'borderWidth' => '1px',
|
||||
'borderRadius' => '40px',
|
||||
'borderStyle' => 'solid',
|
||||
'width' => '180px',
|
||||
'lineHeight' => '30px',
|
||||
'fontColor' => '#ffffff',
|
||||
'fontFamily' => 'Arial',
|
||||
'fontSize' => '14px',
|
||||
'fontWeight' => 'normal',
|
||||
'textAlign' => 'center',
|
||||
),
|
||||
),
|
||||
),
|
||||
4 => array(
|
||||
'type' => 'spacer',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
'height' => '30px',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
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 . '/yoga-person-3.png',
|
||||
'alt' => 'yoga-person-3',
|
||||
'fullWidth' => false,
|
||||
'width' => '400px',
|
||||
'height' => '400px',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'textAlign' => 'center',
|
||||
),
|
||||
),
|
||||
),
|
||||
2 => array(
|
||||
'type' => 'text',
|
||||
'text' => '<h3 style="text-align: center;"><span style="color: #83bd31;"><span style="font-weight: 600;">Matthew Johnson</span></span></h3>
|
||||
<p style="text-align: center;">Nullam hendrerit feugiat feugiat. Praesent mollis ante lacus, quis tempor leo sagittis vel. Donec sagittis eros at felis venenatis ultricies.</p>',
|
||||
),
|
||||
3 => array(
|
||||
'type' => 'button',
|
||||
'text' => 'Find Out More',
|
||||
'url' => '',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => '#83bd31',
|
||||
'borderColor' => '#83bd31',
|
||||
'borderWidth' => '1px',
|
||||
'borderRadius' => '40px',
|
||||
'borderStyle' => 'solid',
|
||||
'width' => '180px',
|
||||
'lineHeight' => '31px',
|
||||
'fontColor' => '#ffffff',
|
||||
'fontFamily' => 'Arial',
|
||||
'fontSize' => '14px',
|
||||
'fontWeight' => 'normal',
|
||||
'textAlign' => 'center',
|
||||
),
|
||||
),
|
||||
),
|
||||
4 => array(
|
||||
'type' => 'spacer',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
'height' => '30px',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
5 => array(
|
||||
'type' => 'container',
|
||||
'orientation' => 'horizontal',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => '#83bd31',
|
||||
),
|
||||
),
|
||||
'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' => '<p><strong>Pose of the week:</strong></p>
|
||||
<h2>Virabhadrasana I</h2>
|
||||
<p>The myth is that the powerful priest Daksha made a great yagna (ritual sacrifice) but did not invite his youngest daughter Sati and her husband Shiva, the supreme ruler of the universe. Sati found out and decided to go alone to the yagna.</p>
|
||||
<p></p>
|
||||
<p>When she arrived, Sati entered into an argument with her father. Unable to withstand his insults, she spoke a vow to her father, “Since it was you who gave me this body, I no longer wish to be associated with it.”</p>',
|
||||
),
|
||||
2 => 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' => 'spacer',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
'height' => '40px',
|
||||
),
|
||||
),
|
||||
),
|
||||
1 => array(
|
||||
'type' => 'image',
|
||||
'link' => '',
|
||||
'src' => $this->template_image_url . '/yoga-pose.png',
|
||||
'alt' => 'yoga-pose',
|
||||
'fullWidth' => false,
|
||||
'width' => '400px',
|
||||
'height' => '400px',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'textAlign' => 'center',
|
||||
),
|
||||
),
|
||||
),
|
||||
2 => array(
|
||||
'type' => 'spacer',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
'height' => '35px',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
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' => 'spacer',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
'height' => '40px',
|
||||
),
|
||||
),
|
||||
),
|
||||
1 => array(
|
||||
'type' => 'text',
|
||||
'text' => '<h3 style="text-align: center;"><span style="font-weight: 600;">Quote of the week</span></h3>',
|
||||
),
|
||||
2 => array(
|
||||
'type' => 'text',
|
||||
'text' => '<h2 style="text-align: center;"><em>Be a lamp to yourself. Be your own confidence. Hold on to the truth within yourself as to the only truth.</em></h2>
|
||||
<p style="text-align: center;"><span style="font-family: Arial, sans-serif; font-size: 14px; text-align: center; color: #999999;">Buddha</span><em></em></p>',
|
||||
),
|
||||
3 => array(
|
||||
'type' => 'spacer',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => '#ffffff',
|
||||
'height' => '20px',
|
||||
),
|
||||
),
|
||||
),
|
||||
4 => array(
|
||||
'type' => 'divider',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => '#d5d5d5',
|
||||
'padding' => '15px',
|
||||
'borderStyle' => 'solid',
|
||||
'borderWidth' => '1px',
|
||||
'borderColor' => '#b3b3b3',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
7 => array(
|
||||
'type' => 'container',
|
||||
'orientation' => 'horizontal',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => '#d5d5d5',
|
||||
),
|
||||
),
|
||||
'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 . '/yoga-logo-small.png',
|
||||
'alt' => 'yoga-logo-small',
|
||||
'fullWidth' => false,
|
||||
'width' => '50px',
|
||||
'height' => '50px',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'textAlign' => 'center',
|
||||
),
|
||||
),
|
||||
),
|
||||
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',
|
||||
),
|
||||
3 => array(
|
||||
'type' => 'socialIcon',
|
||||
'iconType' => 'youtube',
|
||||
'link' => 'http://www.youtube.com',
|
||||
'image' => $this->social_icon_url . '/07-full-symbol-black/Youtube.png',
|
||||
'height' => '32px',
|
||||
'width' => '32px',
|
||||
'text' => 'Youtube',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
1 => array(
|
||||
'type' => 'container',
|
||||
'orientation' => 'vertical',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
),
|
||||
),
|
||||
'blocks' => array(
|
||||
0 => array(
|
||||
'type' => 'text',
|
||||
'text' => '<p style="font-size: 13px; text-align: center;"><strong>Yoga Studio</strong></p>
|
||||
<p style="font-size: 11px; text-align: center;">Address Line 1</p>
|
||||
<p style="font-size: 11px; text-align: center;">Address Line 2</p>
|
||||
<p style="font-size: 11px; text-align: center;">City/Town</p>
|
||||
<p style="font-size: 11px; text-align: center;">Country</p>',
|
||||
),
|
||||
),
|
||||
),
|
||||
2 => array(
|
||||
'type' => 'container',
|
||||
'orientation' => 'vertical',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
),
|
||||
),
|
||||
'blocks' => array(
|
||||
0 => array(
|
||||
'type' => 'footer',
|
||||
'text' => '<p><a href="[link:subscription_unsubscribe_url]">Unsubscribe</a></p><p><a href="[link:subscription_manage_url]">Manage subscription</a></p>',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => 'transparent',
|
||||
),
|
||||
'text' => array(
|
||||
'fontColor' => '#222222',
|
||||
'fontFamily' => 'Arial',
|
||||
'fontSize' => '11px',
|
||||
'textAlign' => 'center',
|
||||
),
|
||||
'link' => array(
|
||||
'fontColor' => '#000000',
|
||||
'textDecoration' => 'underline',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
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' => 'divider',
|
||||
'styles' => array(
|
||||
'block' => array(
|
||||
'backgroundColor' => '#d5d5d5',
|
||||
'padding' => '13px',
|
||||
'borderStyle' => 'solid',
|
||||
'borderWidth' => '1px',
|
||||
'borderColor' => '#aaaaaa',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
'globalStyles' => array(
|
||||
'text' => array(
|
||||
'fontColor' => '#1e2937',
|
||||
'fontFamily' => 'Arial',
|
||||
'fontSize' => '13px',
|
||||
),
|
||||
'h1' => array(
|
||||
'fontColor' => '#1e2937',
|
||||
'fontFamily' => 'Arial',
|
||||
'fontSize' => '30px',
|
||||
),
|
||||
'h2' => array(
|
||||
'fontColor' => '#1e2937',
|
||||
'fontFamily' => 'Arial',
|
||||
'fontSize' => '24px',
|
||||
),
|
||||
'h3' => array(
|
||||
'fontColor' => '#1e2937',
|
||||
'fontFamily' => 'Arial',
|
||||
'fontSize' => '20px',
|
||||
),
|
||||
'link' => array(
|
||||
'fontColor' => '#83bd31',
|
||||
'textDecoration' => 'underline',
|
||||
),
|
||||
'wrapper' => array(
|
||||
'backgroundColor' => '#ffffff',
|
||||
),
|
||||
'body' => array(
|
||||
'backgroundColor' => '#1e2937',
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
private function getThumbnail() {
|
||||
return $this->template_image_url . '/yoga-studio.jpg';
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user