Update template data

[MAILPOET-1558]
This commit is contained in:
Rostislav Wolny
2018-10-29 17:36:32 +01:00
parent c13974ad82
commit 7f31f0888e
5 changed files with 1045 additions and 857 deletions

View File

@@ -32,6 +32,11 @@ class WideStoryLayout {
array (
'type' => 'container',
'orientation' => 'vertical',
'image' =>
array (
'src' => NULL,
'display' => 'scale',
),
'styles' =>
array (
'block' =>
@@ -45,6 +50,11 @@ class WideStoryLayout {
array (
'type' => 'container',
'orientation' => 'horizontal',
'image' =>
array (
'src' => NULL,
'display' => 'scale',
),
'styles' =>
array (
'block' =>
@@ -58,6 +68,11 @@ class WideStoryLayout {
array (
'type' => 'container',
'orientation' => 'vertical',
'image' =>
array (
'src' => NULL,
'display' => 'scale',
),
'styles' =>
array (
'block' =>
@@ -83,7 +98,7 @@ class WideStoryLayout {
array (
'type' => 'image',
'link' => '',
'src' => $this->template_image_url . '/Wide-Logo.png',
'src' => 'https://ps.w.org/mailpoet/assets/newsletter-templates/wide-story-layout/Wide-Logo.png',
'alt' => 'Wide-Logo',
'fullWidth' => false,
'width' => '200px',
@@ -119,109 +134,81 @@ class WideStoryLayout {
),
1 =>
array (
'type' => 'container',
'orientation' => 'horizontal',
'styles' =>
'type' => 'automatedLatestContentLayout',
'withLayout' => true,
'amount' => '3',
'contentType' => 'post',
'terms' =>
array (
'block' =>
array (
'backgroundColor' => 'transparent',
),
),
'blocks' =>
'inclusionType' => 'include',
'displayType' => 'excerpt',
'titleFormat' => 'h3',
'titleAlignment' => 'left',
'titleIsLink' => false,
'imageFullWidth' => false,
'featuredImagePosition' => 'alternate',
'showAuthor' => 'no',
'authorPrecededBy' => 'Author:',
'showCategories' => 'no',
'categoriesPrecededBy' => 'Categories:',
'readMoreType' => 'button',
'readMoreText' => 'Read more',
'readMoreButton' =>
array (
0 =>
'type' => 'button',
'text' => 'Read The Post',
'url' => '[postLink]',
'styles' =>
array (
'type' => 'container',
'orientation' => 'vertical',
'styles' =>
'block' =>
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',
),
),
),
'backgroundColor' => '#5ecd39',
'borderColor' => '#000000',
'borderWidth' => '0px',
'borderRadius' => '5px',
'borderStyle' => 'solid',
'width' => '288px',
'lineHeight' => '36px',
'fontColor' => '#ffffff',
'fontFamily' => 'Lucida',
'fontSize' => '16px',
'fontWeight' => 'normal',
'textAlign' => 'center',
),
),
'context' => 'automatedLatestContentLayout.readMoreButton',
),
'sortBy' => 'newest',
'showDivider' => true,
'divider' =>
array (
'type' => 'divider',
'styles' =>
array (
'block' =>
array (
'backgroundColor' => '#f0f0f0',
'padding' => '13px',
'borderStyle' => 'solid',
'borderWidth' => '30px',
'borderColor' => '#f0f0f0',
),
),
'context' => 'automatedLatestContentLayout.divider',
),
'backgroundColor' => '#ffffff',
'backgroundColorAlternate' => '#eeeeee',
),
2 =>
array (
'type' => 'container',
'orientation' => 'horizontal',
'image' =>
array (
'src' => NULL,
'display' => 'scale',
),
'styles' =>
array (
'block' =>
@@ -235,244 +222,11 @@ class WideStoryLayout {
array (
'type' => 'container',
'orientation' => 'vertical',
'styles' =>
'image' =>
array (
'block' =>
array (
'backgroundColor' => 'transparent',
),
'src' => NULL,
'display' => 'scale',
),
'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&rsquo;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&rsquo;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' =>
@@ -486,7 +240,7 @@ class WideStoryLayout {
array (
'type' => 'image',
'link' => '',
'src' => $this->template_image_url . '/Wide-Footer.jpg',
'src' => 'https://ps.w.org/mailpoet/assets/newsletter-templates/wide-story-layout/Wide-Footer.jpg',
'alt' => 'Wide-Footer',
'fullWidth' => true,
'width' => '1280px',
@@ -503,10 +257,15 @@ class WideStoryLayout {
),
),
),
5 =>
3 =>
array (
'type' => 'container',
'orientation' => 'horizontal',
'image' =>
array (
'src' => NULL,
'display' => 'scale',
),
'styles' =>
array (
'block' =>
@@ -520,6 +279,11 @@ class WideStoryLayout {
array (
'type' => 'container',
'orientation' => 'vertical',
'image' =>
array (
'src' => NULL,
'display' => 'scale',
),
'styles' =>
array (
'block' =>
@@ -552,7 +316,7 @@ class WideStoryLayout {
'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',
'image' => 'http://mailpoet-sg.com/wp-content/plugins/mailpoet/assets/img/newsletter_editor/social-icons/08-full-symbol-grey/Facebook.png?mailpoet_version=3.0.0-rc.2.0.0',
'height' => '32px',
'width' => '32px',
'text' => 'Facebook',
@@ -562,7 +326,7 @@ class WideStoryLayout {
'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',
'image' => 'http://mailpoet-sg.com/wp-content/plugins/mailpoet/assets/img/newsletter_editor/social-icons/08-full-symbol-grey/Twitter.png?mailpoet_version=3.0.0-rc.2.0.0',
'height' => '32px',
'width' => '32px',
'text' => 'Twitter',
@@ -572,7 +336,7 @@ class WideStoryLayout {
'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',
'image' => 'http://mailpoet-sg.com/wp-content/plugins/mailpoet/assets/img/newsletter_editor/social-icons/08-full-symbol-grey/Website.png?mailpoet_version=3.0.0-rc.2.0.0',
'height' => '32px',
'width' => '32px',
'text' => 'Website',
@@ -582,7 +346,7 @@ class WideStoryLayout {
'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',
'image' => 'http://mailpoet-sg.com/wp-content/plugins/mailpoet/assets/img/newsletter_editor/social-icons/08-full-symbol-grey/Instagram.png?mailpoet_version=3.0.0-rc.2.0.0',
'height' => '32px',
'width' => '32px',
'text' => 'Instagram',
@@ -671,7 +435,341 @@ class WideStoryLayout {
'backgroundColor' => '#f0f0f0',
),
),
'blockDefaults' =>
array (
'automatedLatestContent' =>
array (
'amount' => '5',
'withLayout' => false,
'contentType' => 'post',
'inclusionType' => 'include',
'displayType' => 'excerpt',
'titleFormat' => 'h1',
'titleAlignment' => 'left',
'titleIsLink' => false,
'imageFullWidth' => false,
'featuredImagePosition' => 'belowTitle',
'showAuthor' => 'no',
'authorPrecededBy' => 'Author:',
'showCategories' => 'no',
'categoriesPrecededBy' => 'Categories:',
'readMoreType' => 'button',
'readMoreText' => 'Read more',
'readMoreButton' =>
array (
'text' => 'Read more',
'url' => '[postLink]',
'context' => 'automatedLatestContent.readMoreButton',
'styles' =>
array (
'block' =>
array (
'backgroundColor' => '#2ea1cd',
'borderColor' => '#0074a2',
'borderWidth' => '1px',
'borderRadius' => '5px',
'borderStyle' => 'solid',
'width' => '180px',
'lineHeight' => '40px',
'fontColor' => '#ffffff',
'fontFamily' => 'Verdana',
'fontSize' => '18px',
'fontWeight' => 'normal',
'textAlign' => 'center',
),
),
),
'sortBy' => 'newest',
'showDivider' => true,
'divider' =>
array (
'context' => 'automatedLatestContent.divider',
'styles' =>
array (
'block' =>
array (
'backgroundColor' => 'transparent',
'padding' => '13px',
'borderStyle' => 'solid',
'borderWidth' => '3px',
'borderColor' => '#aaaaaa',
),
),
),
'backgroundColor' => '#ffffff',
'backgroundColorAlternate' => '#eeeeee',
),
'automatedLatestContentLayout' =>
array (
'amount' => '3',
'withLayout' => true,
'contentType' => 'post',
'inclusionType' => 'include',
'displayType' => 'excerpt',
'titleFormat' => 'h3',
'titleAlignment' => 'left',
'titleIsLink' => false,
'imageFullWidth' => false,
'featuredImagePosition' => 'alternate',
'showAuthor' => 'no',
'authorPrecededBy' => 'Author:',
'showCategories' => 'no',
'categoriesPrecededBy' => 'Categories:',
'readMoreType' => 'button',
'readMoreText' => 'Read more',
'readMoreButton' =>
array (
'text' => 'Read The Post',
'url' => '[postLink]',
'context' => 'automatedLatestContentLayout.readMoreButton',
'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',
),
),
'type' => 'button',
),
'sortBy' => 'newest',
'showDivider' => true,
'divider' =>
array (
'context' => 'automatedLatestContentLayout.divider',
'styles' =>
array (
'block' =>
array (
'backgroundColor' => '#f0f0f0',
'padding' => '13px',
'borderStyle' => 'solid',
'borderWidth' => '30px',
'borderColor' => '#f0f0f0',
),
),
'type' => 'divider',
),
'backgroundColor' => '#ffffff',
'backgroundColorAlternate' => '#eeeeee',
'type' => 'automatedLatestContentLayout',
'terms' =>
array (
),
),
'button' =>
array (
'text' => 'Read The Post',
'url' => '[postLink]',
'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',
),
),
'type' => 'button',
),
'container' =>
array (
'image' =>
array (
'src' => NULL,
'display' => 'scale',
),
'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',
'withLayout' => true,
'contentType' => 'post',
'postStatus' => 'publish',
'inclusionType' => 'include',
'displayType' => 'excerpt',
'titleFormat' => 'h1',
'titleAlignment' => 'left',
'titleIsLink' => false,
'imageFullWidth' => false,
'featuredImagePosition' => 'alternate',
'showAuthor' => 'no',
'authorPrecededBy' => 'Author:',
'showCategories' => 'no',
'categoriesPrecededBy' => 'Categories:',
'readMoreType' => 'link',
'readMoreText' => 'Read more',
'readMoreButton' =>
array (
'text' => 'Read more',
'url' => '[postLink]',
'context' => 'posts.readMoreButton',
'styles' =>
array (
'block' =>
array (
'backgroundColor' => '#2ea1cd',
'borderColor' => '#0074a2',
'borderWidth' => '1px',
'borderRadius' => '5px',
'borderStyle' => 'solid',
'width' => '180px',
'lineHeight' => '40px',
'fontColor' => '#ffffff',
'fontFamily' => 'Verdana',
'fontSize' => '18px',
'fontWeight' => 'normal',
'textAlign' => 'center',
),
),
),
'sortBy' => 'newest',
'showDivider' => true,
'divider' =>
array (
'context' => 'posts.divider',
'styles' =>
array (
'block' =>
array (
'backgroundColor' => 'transparent',
'padding' => '13px',
'borderStyle' => 'solid',
'borderWidth' => '3px',
'borderColor' => '#aaaaaa',
),
),
),
'backgroundColor' => '#ffffff',
'backgroundColorAlternate' => '#eeeeee',
),
'social' =>
array (
'iconSet' => 'default',
'icons' =>
array (
0 =>
array (
'type' => 'socialIcon',
'iconType' => 'facebook',
'link' => 'http://www.facebook.com',
'image' => 'http://mailpoet-sg.com/wp-content/plugins/mailpoet/assets/img/newsletter_editor/social-icons/01-social/Facebook.png?mailpoet_version=3.11.1',
'height' => '32px',
'width' => '32px',
'text' => 'Facebook',
),
1 =>
array (
'type' => 'socialIcon',
'iconType' => 'twitter',
'link' => 'http://www.twitter.com',
'image' => 'http://mailpoet-sg.com/wp-content/plugins/mailpoet/assets/img/newsletter_editor/social-icons/01-social/Twitter.png?mailpoet_version=3.11.1',
'height' => '32px',
'width' => '32px',
'text' => 'Twitter',
),
),
),
'spacer' =>
array (
'styles' =>
array (
'block' =>
array (
'backgroundColor' => '#ffffff',
'height' => '40px',
),
),
'type' => 'spacer',
),
'header' =>
array (
'text' => 'Display problems?&nbsp;<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',
),
),
),
),
);
}
}
}