Add Notifications templates
[MAILPOET-1480]
@ -63,6 +63,10 @@ class Populator {
|
||||
'Minimal',
|
||||
'Phone',
|
||||
'Sunglasses',
|
||||
'ModularStyleStories',
|
||||
'NotSoMedium',
|
||||
'RssSimpleNews',
|
||||
'WideStoryLayout',
|
||||
);
|
||||
}
|
||||
|
||||
|
1426
lib/Config/PopulatorData/Templates/ModularStyleStories.php
Normal file
1064
lib/Config/PopulatorData/Templates/NotSoMedium.php
Normal file
710
lib/Config/PopulatorData/Templates/RssSimpleNews.php
Normal file
@ -0,0 +1,710 @@
|
||||
<?php
|
||||
|
||||
namespace MailPoet\Config\PopulatorData\Templates;
|
||||
|
||||
class RssSimpleNews {
|
||||
|
||||
private $template_image_url;
|
||||
private $social_icon_url;
|
||||
|
||||
function __construct($assets_url) {
|
||||
$this->template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/rss-simple-news';
|
||||
$this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons';
|
||||
}
|
||||
|
||||
function get() {
|
||||
return array(
|
||||
'name' => __("Stripped RSS Style Layout", 'mailpoet'),
|
||||
'categories' => json_encode(array('notification', 'sample')),
|
||||
'readonly' => 1,
|
||||
'thumbnail' => $this->getThumbnail(),
|
||||
'body' => json_encode($this->getBody()),
|
||||
);
|
||||
}
|
||||
|
||||
private function getThumbnail() {
|
||||
return $this->template_image_url . '/rss-simple-news.jpg';
|
||||
}
|
||||
|
||||
private function getBody() {
|
||||
return array (
|
||||
'content' =>
|
||||
array (
|
||||
'type' => 'container',
|
||||
'orientation' => 'vertical',
|
||||
'styles' =>
|
||||
array (
|
||||
'block' =>
|
||||
array (
|
||||
'backgroundColor' => 'transparent',
|
||||
),
|
||||
),
|
||||
'blocks' =>
|
||||
array (
|
||||
0 =>
|
||||
array (
|
||||
'type' => 'container',
|
||||
'orientation' => 'horizontal',
|
||||
'styles' =>
|
||||
array (
|
||||
'block' =>
|
||||
array (
|
||||
'backgroundColor' => '#f4f4f4',
|
||||
),
|
||||
),
|
||||
'blocks' =>
|
||||
array (
|
||||
0 =>
|
||||
array (
|
||||
'type' => 'container',
|
||||
'orientation' => 'vertical',
|
||||
'styles' =>
|
||||
array (
|
||||
'block' =>
|
||||
array (
|
||||
'backgroundColor' => 'transparent',
|
||||
),
|
||||
),
|
||||
'blocks' =>
|
||||
array (
|
||||
0 =>
|
||||
array (
|
||||
'type' => 'spacer',
|
||||
'styles' =>
|
||||
array (
|
||||
'block' =>
|
||||
array (
|
||||
'backgroundColor' => 'transparent',
|
||||
'height' => '25px',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
1 =>
|
||||
array (
|
||||
'type' => 'container',
|
||||
'orientation' => 'horizontal',
|
||||
'styles' =>
|
||||
array (
|
||||
'block' =>
|
||||
array (
|
||||
'backgroundColor' => 'transparent',
|
||||
),
|
||||
),
|
||||
'blocks' =>
|
||||
array (
|
||||
0 =>
|
||||
array (
|
||||
'type' => 'container',
|
||||
'orientation' => 'vertical',
|
||||
'styles' =>
|
||||
array (
|
||||
'block' =>
|
||||
array (
|
||||
'backgroundColor' => 'transparent',
|
||||
),
|
||||
),
|
||||
'blocks' =>
|
||||
array (
|
||||
0 =>
|
||||
array (
|
||||
'type' => 'image',
|
||||
'link' => '',
|
||||
'src' => $this->template_image_url . '/RSS-Logo-2.png',
|
||||
'alt' => 'RSS-Logo-2',
|
||||
'fullWidth' => true,
|
||||
'width' => '210px',
|
||||
'height' => '90px',
|
||||
'styles' =>
|
||||
array (
|
||||
'block' =>
|
||||
array (
|
||||
'textAlign' => 'center',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
1 =>
|
||||
array (
|
||||
'type' => 'container',
|
||||
'orientation' => 'vertical',
|
||||
'styles' =>
|
||||
array (
|
||||
'block' =>
|
||||
array (
|
||||
'backgroundColor' => 'transparent',
|
||||
),
|
||||
),
|
||||
'blocks' =>
|
||||
array (
|
||||
0 =>
|
||||
array (
|
||||
'type' => 'spacer',
|
||||
'styles' =>
|
||||
array (
|
||||
'block' =>
|
||||
array (
|
||||
'backgroundColor' => 'transparent',
|
||||
'height' => '20px',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
2 =>
|
||||
array (
|
||||
'type' => 'container',
|
||||
'orientation' => 'vertical',
|
||||
'styles' =>
|
||||
array (
|
||||
'block' =>
|
||||
array (
|
||||
'backgroundColor' => 'transparent',
|
||||
),
|
||||
),
|
||||
'blocks' =>
|
||||
array (
|
||||
0 =>
|
||||
array (
|
||||
'type' => 'spacer',
|
||||
'styles' =>
|
||||
array (
|
||||
'block' =>
|
||||
array (
|
||||
'backgroundColor' => 'transparent',
|
||||
'height' => '24px',
|
||||
),
|
||||
),
|
||||
),
|
||||
1 =>
|
||||
array (
|
||||
'type' => 'social',
|
||||
'iconSet' => 'full-symbol-color',
|
||||
'icons' =>
|
||||
array (
|
||||
0 =>
|
||||
array (
|
||||
'type' => 'socialIcon',
|
||||
'iconType' => 'facebook',
|
||||
'link' => 'http://www.facebook.com',
|
||||
'image' => $this->social_icon_url . '/06-full-symbol-color/Facebook.png?mailpoet_version=3.0.0-rc.2.0.0',
|
||||
'height' => '32px',
|
||||
'width' => '32px',
|
||||
'text' => 'Facebook',
|
||||
),
|
||||
1 =>
|
||||
array (
|
||||
'type' => 'socialIcon',
|
||||
'iconType' => 'twitter',
|
||||
'link' => 'http://www.twitter.com',
|
||||
'image' => $this->social_icon_url . '/06-full-symbol-color/Twitter.png?mailpoet_version=3.0.0-rc.2.0.0',
|
||||
'height' => '32px',
|
||||
'width' => '32px',
|
||||
'text' => 'Twitter',
|
||||
),
|
||||
2 =>
|
||||
array (
|
||||
'type' => 'socialIcon',
|
||||
'iconType' => 'website',
|
||||
'link' => '',
|
||||
'image' => $this->social_icon_url . '/06-full-symbol-color/Website.png?mailpoet_version=3.0.0-rc.2.0.0',
|
||||
'height' => '32px',
|
||||
'width' => '32px',
|
||||
'text' => 'Website',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
2 =>
|
||||
array (
|
||||
'type' => 'container',
|
||||
'orientation' => 'horizontal',
|
||||
'styles' =>
|
||||
array (
|
||||
'block' =>
|
||||
array (
|
||||
'backgroundColor' => '#ffffff',
|
||||
),
|
||||
),
|
||||
'blocks' =>
|
||||
array (
|
||||
0 =>
|
||||
array (
|
||||
'type' => 'container',
|
||||
'orientation' => 'vertical',
|
||||
'styles' =>
|
||||
array (
|
||||
'block' =>
|
||||
array (
|
||||
'backgroundColor' => 'transparent',
|
||||
),
|
||||
),
|
||||
'blocks' =>
|
||||
array (
|
||||
0 =>
|
||||
array (
|
||||
'type' => 'text',
|
||||
'text' => '<h3 style="text-align: left;"><strong><span style="color: #333333;">Latest RSS Simple Posts</span></strong></h3>
|
||||
<p><span style="color: #999999;">Week 23: 23/19/19</span></p>',
|
||||
),
|
||||
1 =>
|
||||
array (
|
||||
'type' => 'spacer',
|
||||
'styles' =>
|
||||
array (
|
||||
'block' =>
|
||||
array (
|
||||
'backgroundColor' => 'transparent',
|
||||
'height' => '20px',
|
||||
),
|
||||
),
|
||||
),
|
||||
2 =>
|
||||
array (
|
||||
'type' => 'automatedLatestContent',
|
||||
'amount' => '3',
|
||||
'contentType' => 'post',
|
||||
'terms' =>
|
||||
array (
|
||||
),
|
||||
'inclusionType' => 'include',
|
||||
'displayType' => 'excerpt',
|
||||
'titleFormat' => 'h3',
|
||||
'titleAlignment' => 'left',
|
||||
'titleIsLink' => true,
|
||||
'imageFullWidth' => false,
|
||||
'featuredImagePosition' => 'belowTitle',
|
||||
'showAuthor' => 'no',
|
||||
'authorPrecededBy' => 'Author:',
|
||||
'showCategories' => 'no',
|
||||
'categoriesPrecededBy' => 'Categories:',
|
||||
'readMoreType' => 'link',
|
||||
'readMoreText' => 'Read more',
|
||||
'readMoreButton' =>
|
||||
array (
|
||||
'type' => 'button',
|
||||
'text' => 'Read more',
|
||||
'url' => '[postLink]',
|
||||
'styles' =>
|
||||
array (
|
||||
'block' =>
|
||||
array (
|
||||
'backgroundColor' => '#2ea1cd',
|
||||
'borderColor' => '#0074a2',
|
||||
'borderWidth' => '1px',
|
||||
'borderRadius' => '5px',
|
||||
'borderStyle' => 'solid',
|
||||
'width' => '180px',
|
||||
'lineHeight' => '40px',
|
||||
'fontColor' => '#ffffff',
|
||||
'fontFamily' => 'Verdana',
|
||||
'fontSize' => '18px',
|
||||
'fontWeight' => 'normal',
|
||||
'textAlign' => 'center',
|
||||
),
|
||||
),
|
||||
'context' => 'automatedLatestContent.readMoreButton',
|
||||
),
|
||||
'sortBy' => 'newest',
|
||||
'showDivider' => true,
|
||||
'divider' =>
|
||||
array (
|
||||
'type' => 'divider',
|
||||
'styles' =>
|
||||
array (
|
||||
'block' =>
|
||||
array (
|
||||
'backgroundColor' => 'transparent',
|
||||
'padding' => '13px',
|
||||
'borderStyle' => 'solid',
|
||||
'borderWidth' => '1px',
|
||||
'borderColor' => '#efe7f0',
|
||||
),
|
||||
),
|
||||
'context' => 'automatedLatestContent.divider',
|
||||
),
|
||||
'backgroundColor' => '#ffffff',
|
||||
'backgroundColorAlternate' => '#eeeeee',
|
||||
),
|
||||
3 =>
|
||||
array (
|
||||
'type' => 'spacer',
|
||||
'styles' =>
|
||||
array (
|
||||
'block' =>
|
||||
array (
|
||||
'backgroundColor' => 'transparent',
|
||||
'height' => '20px',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
3 =>
|
||||
array (
|
||||
'type' => 'container',
|
||||
'orientation' => 'horizontal',
|
||||
'styles' =>
|
||||
array (
|
||||
'block' =>
|
||||
array (
|
||||
'backgroundColor' => '#f4f4f4',
|
||||
),
|
||||
),
|
||||
'blocks' =>
|
||||
array (
|
||||
0 =>
|
||||
array (
|
||||
'type' => 'container',
|
||||
'orientation' => 'vertical',
|
||||
'styles' =>
|
||||
array (
|
||||
'block' =>
|
||||
array (
|
||||
'backgroundColor' => 'transparent',
|
||||
),
|
||||
),
|
||||
'blocks' =>
|
||||
array (
|
||||
0 =>
|
||||
array (
|
||||
'type' => 'spacer',
|
||||
'styles' =>
|
||||
array (
|
||||
'block' =>
|
||||
array (
|
||||
'backgroundColor' => 'transparent',
|
||||
'height' => '30px',
|
||||
),
|
||||
),
|
||||
),
|
||||
1 =>
|
||||
array (
|
||||
'type' => 'text',
|
||||
'text' => '<p><span style="color: #808080;"><strong>RSS Simple</strong></span></p>
|
||||
<p><span style="color: #808080; font-size: 11px;"><strong><a href="[link:subscription_unsubscribe_url]">Unsubscribe</a><span> | </span><a href="[link:subscription_manage_url]">Manage subscription</a></strong></span></p>
|
||||
<p><span style="color: #808080; font-size: 11px;"><strong><span>Add your postal address here!</span></strong></span></p>',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
'globalStyles' =>
|
||||
array (
|
||||
'text' =>
|
||||
array (
|
||||
'fontColor' => '#000000',
|
||||
'fontFamily' => 'Arial',
|
||||
'fontSize' => '15px',
|
||||
),
|
||||
'h1' =>
|
||||
array (
|
||||
'fontColor' => '#111111',
|
||||
'fontFamily' => 'Arial',
|
||||
'fontSize' => '30px',
|
||||
),
|
||||
'h2' =>
|
||||
array (
|
||||
'fontColor' => '#222222',
|
||||
'fontFamily' => 'Arial',
|
||||
'fontSize' => '24px',
|
||||
),
|
||||
'h3' =>
|
||||
array (
|
||||
'fontColor' => '#3478f5',
|
||||
'fontFamily' => 'Arial',
|
||||
'fontSize' => '20px',
|
||||
),
|
||||
'link' =>
|
||||
array (
|
||||
'fontColor' => '#3478f5',
|
||||
'textDecoration' => 'none',
|
||||
),
|
||||
'wrapper' =>
|
||||
array (
|
||||
'backgroundColor' => '#ffffff',
|
||||
),
|
||||
'body' =>
|
||||
array (
|
||||
'backgroundColor' => '#f4f4f4',
|
||||
),
|
||||
),
|
||||
'blockDefaults' =>
|
||||
array (
|
||||
'automatedLatestContent' =>
|
||||
array (
|
||||
'amount' => '3',
|
||||
'contentType' => 'post',
|
||||
'inclusionType' => 'include',
|
||||
'displayType' => 'excerpt',
|
||||
'titleFormat' => 'h3',
|
||||
'titleAlignment' => 'left',
|
||||
'titleIsLink' => true,
|
||||
'imageFullWidth' => false,
|
||||
'featuredImagePosition' => 'belowTitle',
|
||||
'showAuthor' => 'no',
|
||||
'authorPrecededBy' => 'Author:',
|
||||
'showCategories' => 'no',
|
||||
'categoriesPrecededBy' => 'Categories:',
|
||||
'readMoreType' => 'link',
|
||||
'readMoreText' => 'Read more',
|
||||
'readMoreButton' =>
|
||||
array (
|
||||
'text' => 'Read more',
|
||||
'url' => '[postLink]',
|
||||
'context' => 'automatedLatestContent.readMoreButton',
|
||||
'styles' =>
|
||||
array (
|
||||
'block' =>
|
||||
array (
|
||||
'backgroundColor' => '#2ea1cd',
|
||||
'borderColor' => '#0074a2',
|
||||
'borderWidth' => '1px',
|
||||
'borderRadius' => '5px',
|
||||
'borderStyle' => 'solid',
|
||||
'width' => '180px',
|
||||
'lineHeight' => '40px',
|
||||
'fontColor' => '#ffffff',
|
||||
'fontFamily' => 'Verdana',
|
||||
'fontSize' => '18px',
|
||||
'fontWeight' => 'normal',
|
||||
'textAlign' => 'center',
|
||||
),
|
||||
),
|
||||
'type' => 'button',
|
||||
),
|
||||
'sortBy' => 'newest',
|
||||
'showDivider' => true,
|
||||
'divider' =>
|
||||
array (
|
||||
'context' => 'automatedLatestContent.divider',
|
||||
'styles' =>
|
||||
array (
|
||||
'block' =>
|
||||
array (
|
||||
'backgroundColor' => 'transparent',
|
||||
'padding' => '13px',
|
||||
'borderStyle' => 'solid',
|
||||
'borderWidth' => '1px',
|
||||
'borderColor' => '#efe7f0',
|
||||
),
|
||||
),
|
||||
'type' => 'divider',
|
||||
),
|
||||
'backgroundColor' => '#ffffff',
|
||||
'backgroundColorAlternate' => '#eeeeee',
|
||||
'type' => 'automatedLatestContent',
|
||||
'terms' =>
|
||||
array (
|
||||
),
|
||||
),
|
||||
'button' =>
|
||||
array (
|
||||
'text' => 'Read more',
|
||||
'url' => '[postLink]',
|
||||
'styles' =>
|
||||
array (
|
||||
'block' =>
|
||||
array (
|
||||
'backgroundColor' => '#2ea1cd',
|
||||
'borderColor' => '#0074a2',
|
||||
'borderWidth' => '1px',
|
||||
'borderRadius' => '5px',
|
||||
'borderStyle' => 'solid',
|
||||
'width' => '180px',
|
||||
'lineHeight' => '40px',
|
||||
'fontColor' => '#ffffff',
|
||||
'fontFamily' => 'Verdana',
|
||||
'fontSize' => '18px',
|
||||
'fontWeight' => 'normal',
|
||||
'textAlign' => 'center',
|
||||
),
|
||||
),
|
||||
'type' => 'button',
|
||||
),
|
||||
'container' =>
|
||||
array (
|
||||
'styles' =>
|
||||
array (
|
||||
'block' =>
|
||||
array (
|
||||
'backgroundColor' => 'transparent',
|
||||
),
|
||||
),
|
||||
),
|
||||
'divider' =>
|
||||
array (
|
||||
'styles' =>
|
||||
array (
|
||||
'block' =>
|
||||
array (
|
||||
'backgroundColor' => 'transparent',
|
||||
'padding' => '13px',
|
||||
'borderStyle' => 'solid',
|
||||
'borderWidth' => '3px',
|
||||
'borderColor' => '#aaaaaa',
|
||||
),
|
||||
),
|
||||
),
|
||||
'footer' =>
|
||||
array (
|
||||
'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',
|
||||
),
|
||||
),
|
||||
),
|
||||
'posts' =>
|
||||
array (
|
||||
'amount' => '10',
|
||||
'contentType' => 'post',
|
||||
'postStatus' => 'publish',
|
||||
'inclusionType' => 'include',
|
||||
'displayType' => 'excerpt',
|
||||
'titleFormat' => 'h1',
|
||||
'titleAlignment' => 'left',
|
||||
'titleIsLink' => false,
|
||||
'imageFullWidth' => false,
|
||||
'featuredImagePosition' => 'belowTitle',
|
||||
'showAuthor' => 'no',
|
||||
'authorPrecededBy' => 'Author:',
|
||||
'showCategories' => 'no',
|
||||
'categoriesPrecededBy' => 'Categories:',
|
||||
'readMoreType' => 'link',
|
||||
'readMoreText' => 'Read more',
|
||||
'readMoreButton' =>
|
||||
array (
|
||||
'text' => 'Read more',
|
||||
'url' => '[postLink]',
|
||||
'context' => 'posts.readMoreButton',
|
||||
'styles' =>
|
||||
array (
|
||||
'block' =>
|
||||
array (
|
||||
'backgroundColor' => '#2ea1cd',
|
||||
'borderColor' => '#0074a2',
|
||||
'borderWidth' => '1px',
|
||||
'borderRadius' => '5px',
|
||||
'borderStyle' => 'solid',
|
||||
'width' => '180px',
|
||||
'lineHeight' => '40px',
|
||||
'fontColor' => '#ffffff',
|
||||
'fontFamily' => 'Verdana',
|
||||
'fontSize' => '18px',
|
||||
'fontWeight' => 'normal',
|
||||
'textAlign' => 'center',
|
||||
),
|
||||
),
|
||||
),
|
||||
'sortBy' => 'newest',
|
||||
'showDivider' => true,
|
||||
'divider' =>
|
||||
array (
|
||||
'context' => 'posts.divider',
|
||||
'styles' =>
|
||||
array (
|
||||
'block' =>
|
||||
array (
|
||||
'backgroundColor' => 'transparent',
|
||||
'padding' => '13px',
|
||||
'borderStyle' => 'solid',
|
||||
'borderWidth' => '3px',
|
||||
'borderColor' => '#aaaaaa',
|
||||
),
|
||||
),
|
||||
),
|
||||
'backgroundColor' => '#ffffff',
|
||||
'backgroundColorAlternate' => '#eeeeee',
|
||||
),
|
||||
'social' =>
|
||||
array (
|
||||
'iconSet' => 'default',
|
||||
'icons' =>
|
||||
array (
|
||||
0 =>
|
||||
array (
|
||||
'type' => 'socialIcon',
|
||||
'iconType' => 'facebook',
|
||||
'link' => 'http://www.facebook.com',
|
||||
'image' => $this->social_icon_url . '/01-social/Facebook.png?mailpoet_version=3.7.1',
|
||||
'height' => '32px',
|
||||
'width' => '32px',
|
||||
'text' => 'Facebook',
|
||||
),
|
||||
1 =>
|
||||
array (
|
||||
'type' => 'socialIcon',
|
||||
'iconType' => 'twitter',
|
||||
'link' => 'http://www.twitter.com',
|
||||
'image' => $this->social_icon_url . '/01-social/Twitter.png?mailpoet_version=3.7.1',
|
||||
'height' => '32px',
|
||||
'width' => '32px',
|
||||
'text' => 'Twitter',
|
||||
),
|
||||
),
|
||||
),
|
||||
'spacer' =>
|
||||
array (
|
||||
'styles' =>
|
||||
array (
|
||||
'block' =>
|
||||
array (
|
||||
'backgroundColor' => 'transparent',
|
||||
'height' => '40px',
|
||||
),
|
||||
),
|
||||
),
|
||||
'header' =>
|
||||
array (
|
||||
'text' => 'Display problems? <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' => 'Arial',
|
||||
'fontSize' => '12px',
|
||||
'textAlign' => 'center',
|
||||
),
|
||||
'link' =>
|
||||
array (
|
||||
'fontColor' => '#6cb7d4',
|
||||
'textDecoration' => 'underline',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
}
|
677
lib/Config/PopulatorData/Templates/WideStoryLayout.php
Normal file
@ -0,0 +1,677 @@
|
||||
<?php
|
||||
|
||||
namespace MailPoet\Config\PopulatorData\Templates;
|
||||
|
||||
class WideStoryLayout {
|
||||
|
||||
private $template_image_url;
|
||||
private $social_icon_url;
|
||||
|
||||
function __construct($assets_url) {
|
||||
$this->template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/wide-story-layout';
|
||||
$this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons';
|
||||
}
|
||||
|
||||
function get() {
|
||||
return array(
|
||||
'name' => __("Wide Story Layout", 'mailpoet'),
|
||||
'categories' => json_encode(array('notification', 'sample')),
|
||||
'readonly' => 1,
|
||||
'thumbnail' => $this->getThumbnail(),
|
||||
'body' => json_encode($this->getBody()),
|
||||
);
|
||||
}
|
||||
|
||||
private function getThumbnail() {
|
||||
return $this->template_image_url . '/wide-story-layout.jpg';
|
||||
}
|
||||
|
||||
private function getBody() {
|
||||
return array (
|
||||
'content' =>
|
||||
array (
|
||||
'type' => 'container',
|
||||
'orientation' => 'vertical',
|
||||
'styles' =>
|
||||
array (
|
||||
'block' =>
|
||||
array (
|
||||
'backgroundColor' => 'transparent',
|
||||
),
|
||||
),
|
||||
'blocks' =>
|
||||
array (
|
||||
0 =>
|
||||
array (
|
||||
'type' => 'container',
|
||||
'orientation' => 'horizontal',
|
||||
'styles' =>
|
||||
array (
|
||||
'block' =>
|
||||
array (
|
||||
'backgroundColor' => '#f0f0f0',
|
||||
),
|
||||
),
|
||||
'blocks' =>
|
||||
array (
|
||||
0 =>
|
||||
array (
|
||||
'type' => 'container',
|
||||
'orientation' => 'vertical',
|
||||
'styles' =>
|
||||
array (
|
||||
'block' =>
|
||||
array (
|
||||
'backgroundColor' => 'transparent',
|
||||
),
|
||||
),
|
||||
'blocks' =>
|
||||
array (
|
||||
0 =>
|
||||
array (
|
||||
'type' => 'spacer',
|
||||
'styles' =>
|
||||
array (
|
||||
'block' =>
|
||||
array (
|
||||
'backgroundColor' => 'transparent',
|
||||
'height' => '50px',
|
||||
),
|
||||
),
|
||||
),
|
||||
1 =>
|
||||
array (
|
||||
'type' => 'image',
|
||||
'link' => '',
|
||||
'src' => $this->template_image_url . '/Wide-Logo.png',
|
||||
'alt' => 'Wide-Logo',
|
||||
'fullWidth' => false,
|
||||
'width' => '200px',
|
||||
'height' => '37px',
|
||||
'styles' =>
|
||||
array (
|
||||
'block' =>
|
||||
array (
|
||||
'textAlign' => 'center',
|
||||
),
|
||||
),
|
||||
),
|
||||
2 =>
|
||||
array (
|
||||
'type' => 'text',
|
||||
'text' => '<h3 style="text-align: center;"><span style="color: #808080;">Our Latest Posts</span></h3>',
|
||||
),
|
||||
3 =>
|
||||
array (
|
||||
'type' => 'spacer',
|
||||
'styles' =>
|
||||
array (
|
||||
'block' =>
|
||||
array (
|
||||
'backgroundColor' => 'transparent',
|
||||
'height' => '20px',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
1 =>
|
||||
array (
|
||||
'type' => 'container',
|
||||
'orientation' => 'horizontal',
|
||||
'styles' =>
|
||||
array (
|
||||
'block' =>
|
||||
array (
|
||||
'backgroundColor' => 'transparent',
|
||||
),
|
||||
),
|
||||
'blocks' =>
|
||||
array (
|
||||
0 =>
|
||||
array (
|
||||
'type' => 'container',
|
||||
'orientation' => 'vertical',
|
||||
'styles' =>
|
||||
array (
|
||||
'block' =>
|
||||
array (
|
||||
'backgroundColor' => 'transparent',
|
||||
),
|
||||
),
|
||||
'blocks' =>
|
||||
array (
|
||||
0 =>
|
||||
array (
|
||||
'type' => 'image',
|
||||
'link' => 'http://mailpoet.info/cutting-through-the-smog-what-to-do-to-fight-air-pollution/',
|
||||
'src' => $this->template_image_url . '/5_what_to_do_p352m1141746-800x533.jpg',
|
||||
'alt' => 'Cutting through the smog: What to do to fight air pollution',
|
||||
'fullWidth' => true,
|
||||
'width' => 660,
|
||||
'height' => 440,
|
||||
'styles' =>
|
||||
array (
|
||||
'block' =>
|
||||
array (
|
||||
'textAlign' => 'center',
|
||||
),
|
||||
),
|
||||
),
|
||||
1 =>
|
||||
array (
|
||||
'type' => 'spacer',
|
||||
'styles' =>
|
||||
array (
|
||||
'block' =>
|
||||
array (
|
||||
'backgroundColor' => 'transparent',
|
||||
'height' => '30px',
|
||||
),
|
||||
),
|
||||
),
|
||||
2 =>
|
||||
array (
|
||||
'type' => 'text',
|
||||
'text' => '<h3 style="text-align: center;" data-post-id="1997">Cutting through the smog: What to do to fight air pollution</h3>
|
||||
<p class="mailpoet_wp_post" style="text-align: center;">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>',
|
||||
),
|
||||
3 =>
|
||||
array (
|
||||
'type' => 'button',
|
||||
'text' => 'Read The Post',
|
||||
'url' => 'http://mailpoet.info/cutting-through-the-smog-what-to-do-to-fight-air-pollution/',
|
||||
'styles' =>
|
||||
array (
|
||||
'block' =>
|
||||
array (
|
||||
'backgroundColor' => '#5ecd39',
|
||||
'borderColor' => '#000000',
|
||||
'borderWidth' => '0px',
|
||||
'borderRadius' => '5px',
|
||||
'borderStyle' => 'solid',
|
||||
'width' => '288px',
|
||||
'lineHeight' => '36px',
|
||||
'fontColor' => '#ffffff',
|
||||
'fontFamily' => 'Lucida',
|
||||
'fontSize' => '16px',
|
||||
'fontWeight' => 'normal',
|
||||
'textAlign' => 'center',
|
||||
),
|
||||
),
|
||||
),
|
||||
4 =>
|
||||
array (
|
||||
'type' => 'spacer',
|
||||
'styles' =>
|
||||
array (
|
||||
'block' =>
|
||||
array (
|
||||
'backgroundColor' => 'transparent',
|
||||
'height' => '20px',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
2 =>
|
||||
array (
|
||||
'type' => 'container',
|
||||
'orientation' => 'horizontal',
|
||||
'styles' =>
|
||||
array (
|
||||
'block' =>
|
||||
array (
|
||||
'backgroundColor' => 'transparent',
|
||||
),
|
||||
),
|
||||
'blocks' =>
|
||||
array (
|
||||
0 =>
|
||||
array (
|
||||
'type' => 'container',
|
||||
'orientation' => 'vertical',
|
||||
'styles' =>
|
||||
array (
|
||||
'block' =>
|
||||
array (
|
||||
'backgroundColor' => 'transparent',
|
||||
),
|
||||
),
|
||||
'blocks' =>
|
||||
array (
|
||||
0 =>
|
||||
array (
|
||||
'type' => 'spacer',
|
||||
'styles' =>
|
||||
array (
|
||||
'block' =>
|
||||
array (
|
||||
'backgroundColor' => '#f0f0f0',
|
||||
'height' => '40px',
|
||||
),
|
||||
),
|
||||
),
|
||||
1 =>
|
||||
array (
|
||||
'type' => 'image',
|
||||
'link' => 'http://mailpoet.info/cutting-through-the-smog-what-to-do-to-fight-air-pollution/',
|
||||
'src' => $this->template_image_url . '/gettyimages-578313682-800x533.jpg',
|
||||
'alt' => 'gettyimages-578313682-800x533',
|
||||
'fullWidth' => true,
|
||||
'width' => '800px',
|
||||
'height' => '533px',
|
||||
'styles' =>
|
||||
array (
|
||||
'block' =>
|
||||
array (
|
||||
'textAlign' => 'center',
|
||||
),
|
||||
),
|
||||
),
|
||||
2 =>
|
||||
array (
|
||||
'type' => 'spacer',
|
||||
'styles' =>
|
||||
array (
|
||||
'block' =>
|
||||
array (
|
||||
'backgroundColor' => 'transparent',
|
||||
'height' => '30px',
|
||||
),
|
||||
),
|
||||
),
|
||||
3 =>
|
||||
array (
|
||||
'type' => 'text',
|
||||
'text' => '<h3 style="text-align: center;" data-post-id="1997">Ladybird’s transparent shell reveals how it folds its wings</h3>
|
||||
<p class="mailpoet_wp_post" style="text-align: center;">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>',
|
||||
),
|
||||
4 =>
|
||||
array (
|
||||
'type' => 'button',
|
||||
'text' => 'Read The Post',
|
||||
'url' => '',
|
||||
'styles' =>
|
||||
array (
|
||||
'block' =>
|
||||
array (
|
||||
'backgroundColor' => '#5ecd39',
|
||||
'borderColor' => '#000000',
|
||||
'borderWidth' => '0px',
|
||||
'borderRadius' => '5px',
|
||||
'borderStyle' => 'solid',
|
||||
'width' => '288px',
|
||||
'lineHeight' => '36px',
|
||||
'fontColor' => '#ffffff',
|
||||
'fontFamily' => 'Lucida',
|
||||
'fontSize' => '16px',
|
||||
'fontWeight' => 'normal',
|
||||
'textAlign' => 'center',
|
||||
),
|
||||
),
|
||||
),
|
||||
5 =>
|
||||
array (
|
||||
'type' => 'spacer',
|
||||
'styles' =>
|
||||
array (
|
||||
'block' =>
|
||||
array (
|
||||
'backgroundColor' => 'transparent',
|
||||
'height' => '20px',
|
||||
),
|
||||
),
|
||||
),
|
||||
6 =>
|
||||
array (
|
||||
'type' => 'spacer',
|
||||
'styles' =>
|
||||
array (
|
||||
'block' =>
|
||||
array (
|
||||
'backgroundColor' => '#f0f0f0',
|
||||
'height' => '40px',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
3 =>
|
||||
array (
|
||||
'type' => 'container',
|
||||
'orientation' => 'horizontal',
|
||||
'styles' =>
|
||||
array (
|
||||
'block' =>
|
||||
array (
|
||||
'backgroundColor' => 'transparent',
|
||||
),
|
||||
),
|
||||
'blocks' =>
|
||||
array (
|
||||
0 =>
|
||||
array (
|
||||
'type' => 'container',
|
||||
'orientation' => 'vertical',
|
||||
'styles' =>
|
||||
array (
|
||||
'block' =>
|
||||
array (
|
||||
'backgroundColor' => 'transparent',
|
||||
),
|
||||
),
|
||||
'blocks' =>
|
||||
array (
|
||||
0 =>
|
||||
array (
|
||||
'type' => 'image',
|
||||
'link' => 'http://mailpoet.info/cutting-through-the-smog-what-to-do-to-fight-air-pollution/',
|
||||
'src' => $this->template_image_url . '/plasma-stingray111-800x533.jpg',
|
||||
'alt' => 'plasma-stingray111-800x533',
|
||||
'fullWidth' => true,
|
||||
'width' => '800px',
|
||||
'height' => '533px',
|
||||
'styles' =>
|
||||
array (
|
||||
'block' =>
|
||||
array (
|
||||
'textAlign' => 'center',
|
||||
),
|
||||
),
|
||||
),
|
||||
1 =>
|
||||
array (
|
||||
'type' => 'spacer',
|
||||
'styles' =>
|
||||
array (
|
||||
'block' =>
|
||||
array (
|
||||
'backgroundColor' => 'transparent',
|
||||
'height' => '30px',
|
||||
),
|
||||
),
|
||||
),
|
||||
2 =>
|
||||
array (
|
||||
'type' => 'text',
|
||||
'text' => '<h3 style="text-align: center;" data-post-id="1997">Plasma jet engines that could take you from the ground to space</h3>
|
||||
<p class="mailpoet_wp_post" style="text-align: center;">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.</p>',
|
||||
),
|
||||
3 =>
|
||||
array (
|
||||
'type' => 'button',
|
||||
'text' => 'Read The Post',
|
||||
'url' => '',
|
||||
'styles' =>
|
||||
array (
|
||||
'block' =>
|
||||
array (
|
||||
'backgroundColor' => '#5ecd39',
|
||||
'borderColor' => '#000000',
|
||||
'borderWidth' => '0px',
|
||||
'borderRadius' => '5px',
|
||||
'borderStyle' => 'solid',
|
||||
'width' => '288px',
|
||||
'lineHeight' => '36px',
|
||||
'fontColor' => '#ffffff',
|
||||
'fontFamily' => 'Lucida',
|
||||
'fontSize' => '16px',
|
||||
'fontWeight' => 'normal',
|
||||
'textAlign' => 'center',
|
||||
),
|
||||
),
|
||||
),
|
||||
4 =>
|
||||
array (
|
||||
'type' => 'spacer',
|
||||
'styles' =>
|
||||
array (
|
||||
'block' =>
|
||||
array (
|
||||
'backgroundColor' => 'transparent',
|
||||
'height' => '20px',
|
||||
),
|
||||
),
|
||||
),
|
||||
5 =>
|
||||
array (
|
||||
'type' => 'spacer',
|
||||
'styles' =>
|
||||
array (
|
||||
'block' =>
|
||||
array (
|
||||
'backgroundColor' => '#f0f0f0',
|
||||
'height' => '40px',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
4 =>
|
||||
array (
|
||||
'type' => 'container',
|
||||
'orientation' => 'horizontal',
|
||||
'styles' =>
|
||||
array (
|
||||
'block' =>
|
||||
array (
|
||||
'backgroundColor' => 'transparent',
|
||||
),
|
||||
),
|
||||
'blocks' =>
|
||||
array (
|
||||
0 =>
|
||||
array (
|
||||
'type' => 'container',
|
||||
'orientation' => 'vertical',
|
||||
'styles' =>
|
||||
array (
|
||||
'block' =>
|
||||
array (
|
||||
'backgroundColor' => 'transparent',
|
||||
),
|
||||
),
|
||||
'blocks' =>
|
||||
array (
|
||||
0 =>
|
||||
array (
|
||||
'type' => 'image',
|
||||
'link' => '',
|
||||
'src' => $this->template_image_url . '/Wide-Footer.jpg',
|
||||
'alt' => 'Wide-Footer',
|
||||
'fullWidth' => true,
|
||||
'width' => '1280px',
|
||||
'height' => '721px',
|
||||
'styles' =>
|
||||
array (
|
||||
'block' =>
|
||||
array (
|
||||
'textAlign' => 'center',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
5 =>
|
||||
array (
|
||||
'type' => 'container',
|
||||
'orientation' => 'horizontal',
|
||||
'styles' =>
|
||||
array (
|
||||
'block' =>
|
||||
array (
|
||||
'backgroundColor' => '#5ecd39',
|
||||
),
|
||||
),
|
||||
'blocks' =>
|
||||
array (
|
||||
0 =>
|
||||
array (
|
||||
'type' => 'container',
|
||||
'orientation' => 'vertical',
|
||||
'styles' =>
|
||||
array (
|
||||
'block' =>
|
||||
array (
|
||||
'backgroundColor' => 'transparent',
|
||||
),
|
||||
),
|
||||
'blocks' =>
|
||||
array (
|
||||
0 =>
|
||||
array (
|
||||
'type' => 'spacer',
|
||||
'styles' =>
|
||||
array (
|
||||
'block' =>
|
||||
array (
|
||||
'backgroundColor' => 'transparent',
|
||||
'height' => '21px',
|
||||
),
|
||||
),
|
||||
),
|
||||
1 =>
|
||||
array (
|
||||
'type' => 'social',
|
||||
'iconSet' => 'full-symbol-grey',
|
||||
'icons' =>
|
||||
array (
|
||||
0 =>
|
||||
array (
|
||||
'type' => 'socialIcon',
|
||||
'iconType' => 'facebook',
|
||||
'link' => 'http://www.facebook.com',
|
||||
'image' => $this->social_icon_url . '/08-full-symbol-grey/Facebook.png?mailpoet_version=3.0.0-rc.2.0.0',
|
||||
'height' => '32px',
|
||||
'width' => '32px',
|
||||
'text' => 'Facebook',
|
||||
),
|
||||
1 =>
|
||||
array (
|
||||
'type' => 'socialIcon',
|
||||
'iconType' => 'twitter',
|
||||
'link' => 'http://www.twitter.com',
|
||||
'image' => $this->social_icon_url . '/08-full-symbol-grey/Twitter.png?mailpoet_version=3.0.0-rc.2.0.0',
|
||||
'height' => '32px',
|
||||
'width' => '32px',
|
||||
'text' => 'Twitter',
|
||||
),
|
||||
2 =>
|
||||
array (
|
||||
'type' => 'socialIcon',
|
||||
'iconType' => 'website',
|
||||
'link' => '',
|
||||
'image' => $this->social_icon_url . '/08-full-symbol-grey/Website.png?mailpoet_version=3.0.0-rc.2.0.0',
|
||||
'height' => '32px',
|
||||
'width' => '32px',
|
||||
'text' => 'Website',
|
||||
),
|
||||
3 =>
|
||||
array (
|
||||
'type' => 'socialIcon',
|
||||
'iconType' => 'instagram',
|
||||
'link' => 'http://instagram.com',
|
||||
'image' => $this->social_icon_url . '/08-full-symbol-grey/Instagram.png?mailpoet_version=3.0.0-rc.2.0.0',
|
||||
'height' => '32px',
|
||||
'width' => '32px',
|
||||
'text' => 'Instagram',
|
||||
),
|
||||
),
|
||||
),
|
||||
2 =>
|
||||
array (
|
||||
'type' => 'footer',
|
||||
'text' => '<p><span style="color: #ffffff;"><a href="[link:subscription_unsubscribe_url]" style="color: #ffffff;">Unsubscribe</a> | <a href="[link:subscription_manage_url]" style="color: #ffffff;">Manage subscription</a></span><br /><span style="color: #ffffff;">Add your postal address here!</span></p>',
|
||||
'styles' =>
|
||||
array (
|
||||
'block' =>
|
||||
array (
|
||||
'backgroundColor' => 'transparent',
|
||||
),
|
||||
'text' =>
|
||||
array (
|
||||
'fontColor' => '#222222',
|
||||
'fontFamily' => 'Arial',
|
||||
'fontSize' => '12px',
|
||||
'textAlign' => 'center',
|
||||
),
|
||||
'link' =>
|
||||
array (
|
||||
'fontColor' => '#6cb7d4',
|
||||
'textDecoration' => 'none',
|
||||
),
|
||||
),
|
||||
),
|
||||
3 =>
|
||||
array (
|
||||
'type' => 'spacer',
|
||||
'styles' =>
|
||||
array (
|
||||
'block' =>
|
||||
array (
|
||||
'backgroundColor' => 'transparent',
|
||||
'height' => '40px',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
'globalStyles' =>
|
||||
array (
|
||||
'text' =>
|
||||
array (
|
||||
'fontColor' => '#000000',
|
||||
'fontFamily' => 'Arial',
|
||||
'fontSize' => '15px',
|
||||
),
|
||||
'h1' =>
|
||||
array (
|
||||
'fontColor' => '#111111',
|
||||
'fontFamily' => 'Lucida',
|
||||
'fontSize' => '30px',
|
||||
),
|
||||
'h2' =>
|
||||
array (
|
||||
'fontColor' => '#222222',
|
||||
'fontFamily' => 'Lucida',
|
||||
'fontSize' => '24px',
|
||||
),
|
||||
'h3' =>
|
||||
array (
|
||||
'fontColor' => '#333333',
|
||||
'fontFamily' => 'Lucida',
|
||||
'fontSize' => '18px',
|
||||
),
|
||||
'link' =>
|
||||
array (
|
||||
'fontColor' => '#5ecd39',
|
||||
'textDecoration' => 'underline',
|
||||
),
|
||||
'wrapper' =>
|
||||
array (
|
||||
'backgroundColor' => '#ffffff',
|
||||
),
|
||||
'body' =>
|
||||
array (
|
||||
'backgroundColor' => '#f0f0f0',
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
}
|
After Width: | Height: | Size: 121 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 72 KiB |
After Width: | Height: | Size: 184 KiB |
After Width: | Height: | Size: 56 KiB |
After Width: | Height: | Size: 46 KiB |
After Width: | Height: | Size: 178 KiB |
After Width: | Height: | Size: 3.3 MiB |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 842 KiB |
After Width: | Height: | Size: 3.0 KiB |
After Width: | Height: | Size: 3.0 KiB |
After Width: | Height: | Size: 296 KiB |
After Width: | Height: | Size: 18 KiB |
After Width: | Height: | Size: 612 KiB |
After Width: | Height: | Size: 58 KiB |
After Width: | Height: | Size: 4.1 KiB |
After Width: | Height: | Size: 2.7 KiB |
After Width: | Height: | Size: 352 KiB |