1318 lines
40 KiB
PHP
1318 lines
40 KiB
PHP
<?php // phpcs:ignore SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing
|
|
|
|
namespace MailPoet\Config\PopulatorData\Templates;
|
|
|
|
if (!defined('ABSPATH')) exit;
|
|
|
|
|
|
class Software {
|
|
|
|
private $template_image_url;
|
|
private $social_icon_url;
|
|
|
|
public function __construct(
|
|
$assets_url
|
|
) {
|
|
$this->template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/software';
|
|
$this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons';
|
|
}
|
|
|
|
public function get() {
|
|
return [
|
|
'name' => __("Software", 'mailpoet'),
|
|
'categories' => json_encode(['standard', 'all']),
|
|
'readonly' => 1,
|
|
'thumbnail' => $this->getThumbnail(),
|
|
'body' => json_encode($this->getBody()),
|
|
];
|
|
}
|
|
|
|
private function getThumbnail() {
|
|
return $this->template_image_url . '/thumbnail.20190411-1500.jpg';
|
|
}
|
|
|
|
private function getBody() {
|
|
return [
|
|
'content' =>
|
|
[
|
|
'type' => 'container',
|
|
'columnLayout' => false,
|
|
'orientation' => 'vertical',
|
|
'image' =>
|
|
[
|
|
'src' => null,
|
|
'display' => 'scale',
|
|
],
|
|
'styles' =>
|
|
[
|
|
'block' =>
|
|
[
|
|
'backgroundColor' => 'transparent',
|
|
],
|
|
],
|
|
'blocks' =>
|
|
[
|
|
0 =>
|
|
[
|
|
'type' => 'container',
|
|
'columnLayout' => false,
|
|
'orientation' => 'horizontal',
|
|
'image' =>
|
|
[
|
|
'src' => null,
|
|
'display' => 'scale',
|
|
],
|
|
'styles' =>
|
|
[
|
|
'block' =>
|
|
[
|
|
'backgroundColor' => 'transparent',
|
|
],
|
|
],
|
|
'blocks' =>
|
|
[
|
|
0 =>
|
|
[
|
|
'type' => 'container',
|
|
'columnLayout' => false,
|
|
'orientation' => 'vertical',
|
|
'image' =>
|
|
[
|
|
'src' => null,
|
|
'display' => 'scale',
|
|
],
|
|
'styles' =>
|
|
[
|
|
'block' =>
|
|
[
|
|
'backgroundColor' => 'transparent',
|
|
],
|
|
],
|
|
'blocks' =>
|
|
[
|
|
0 =>
|
|
[
|
|
'type' => 'spacer',
|
|
'styles' =>
|
|
[
|
|
'block' =>
|
|
[
|
|
'backgroundColor' => 'transparent',
|
|
'height' => '60px',
|
|
],
|
|
],
|
|
],
|
|
],
|
|
],
|
|
],
|
|
],
|
|
1 =>
|
|
[
|
|
'type' => 'container',
|
|
'columnLayout' => false,
|
|
'orientation' => 'horizontal',
|
|
'image' =>
|
|
[
|
|
'src' => null,
|
|
'display' => 'scale',
|
|
],
|
|
'styles' =>
|
|
[
|
|
'block' =>
|
|
[
|
|
'backgroundColor' => 'transparent',
|
|
],
|
|
],
|
|
'blocks' =>
|
|
[
|
|
0 =>
|
|
[
|
|
'type' => 'container',
|
|
'columnLayout' => false,
|
|
'orientation' => 'vertical',
|
|
'image' =>
|
|
[
|
|
'src' => null,
|
|
'display' => 'scale',
|
|
],
|
|
'styles' =>
|
|
[
|
|
'block' =>
|
|
[
|
|
'backgroundColor' => 'transparent',
|
|
],
|
|
],
|
|
'blocks' =>
|
|
[
|
|
0 =>
|
|
[
|
|
'type' => 'image',
|
|
'link' => '',
|
|
'src' => $this->template_image_url . '/Software-Logo.png',
|
|
'alt' => 'Software-Logo',
|
|
'fullWidth' => false,
|
|
'width' => '140px',
|
|
'height' => '122px',
|
|
'styles' =>
|
|
[
|
|
'block' =>
|
|
[
|
|
'textAlign' => 'left',
|
|
],
|
|
],
|
|
],
|
|
],
|
|
],
|
|
1 =>
|
|
[
|
|
'type' => 'container',
|
|
'columnLayout' => false,
|
|
'orientation' => 'vertical',
|
|
'image' =>
|
|
[
|
|
'src' => null,
|
|
'display' => 'scale',
|
|
],
|
|
'styles' =>
|
|
[
|
|
'block' =>
|
|
[
|
|
'backgroundColor' => 'transparent',
|
|
],
|
|
],
|
|
'blocks' =>
|
|
[
|
|
0 =>
|
|
[
|
|
'type' => 'header',
|
|
'text' => '<p><strong><a href="[link:newsletter_view_in_browser_url]">View online</a></strong></p>',
|
|
'styles' =>
|
|
[
|
|
'block' =>
|
|
[
|
|
'backgroundColor' => 'transparent',
|
|
],
|
|
'text' =>
|
|
[
|
|
'fontColor' => '#222222',
|
|
'fontFamily' => 'Merriweather Sans',
|
|
'fontSize' => '12px',
|
|
'textAlign' => 'right',
|
|
],
|
|
'link' =>
|
|
[
|
|
'fontColor' => '#212327',
|
|
'textDecoration' => 'underline',
|
|
],
|
|
],
|
|
],
|
|
],
|
|
],
|
|
],
|
|
],
|
|
2 =>
|
|
[
|
|
'type' => 'container',
|
|
'columnLayout' => false,
|
|
'orientation' => 'horizontal',
|
|
'image' =>
|
|
[
|
|
'src' => null,
|
|
'display' => 'scale',
|
|
],
|
|
'styles' =>
|
|
[
|
|
'block' =>
|
|
[
|
|
'backgroundColor' => 'transparent',
|
|
],
|
|
],
|
|
'blocks' =>
|
|
[
|
|
0 =>
|
|
[
|
|
'type' => 'container',
|
|
'columnLayout' => false,
|
|
'orientation' => 'vertical',
|
|
'image' =>
|
|
[
|
|
'src' => null,
|
|
'display' => 'scale',
|
|
],
|
|
'styles' =>
|
|
[
|
|
'block' =>
|
|
[
|
|
'backgroundColor' => 'transparent',
|
|
],
|
|
],
|
|
'blocks' =>
|
|
[
|
|
0 =>
|
|
[
|
|
'type' => 'spacer',
|
|
'styles' =>
|
|
[
|
|
'block' =>
|
|
[
|
|
'backgroundColor' => 'transparent',
|
|
'height' => '30px',
|
|
],
|
|
],
|
|
],
|
|
1 =>
|
|
[
|
|
'type' => 'text',
|
|
'text' => '<h1 style="text-align: center; line-height: 46px;"><span style="color: #212327;"><strong>Your music.<br />Your way.</strong></span></h1>',
|
|
],
|
|
2 =>
|
|
[
|
|
'type' => 'spacer',
|
|
'styles' =>
|
|
[
|
|
'block' =>
|
|
[
|
|
'backgroundColor' => 'transparent',
|
|
'height' => '40px',
|
|
],
|
|
],
|
|
],
|
|
3 =>
|
|
[
|
|
'type' => 'image',
|
|
'link' => '',
|
|
'src' => $this->template_image_url . '/Software-Header.jpg',
|
|
'alt' => 'Software-Header',
|
|
'fullWidth' => true,
|
|
'width' => '1200px',
|
|
'height' => '800px',
|
|
'styles' =>
|
|
[
|
|
'block' =>
|
|
[
|
|
'textAlign' => 'center',
|
|
],
|
|
],
|
|
],
|
|
],
|
|
],
|
|
],
|
|
],
|
|
3 =>
|
|
[
|
|
'type' => 'container',
|
|
'columnLayout' => false,
|
|
'orientation' => 'horizontal',
|
|
'image' =>
|
|
[
|
|
'src' => null,
|
|
'display' => 'scale',
|
|
],
|
|
'styles' =>
|
|
[
|
|
'block' =>
|
|
[
|
|
'backgroundColor' => 'transparent',
|
|
],
|
|
],
|
|
'blocks' =>
|
|
[
|
|
0 =>
|
|
[
|
|
'type' => 'container',
|
|
'columnLayout' => false,
|
|
'orientation' => 'vertical',
|
|
'image' =>
|
|
[
|
|
'src' => null,
|
|
'display' => 'scale',
|
|
],
|
|
'styles' =>
|
|
[
|
|
'block' =>
|
|
[
|
|
'backgroundColor' => 'transparent',
|
|
],
|
|
],
|
|
'blocks' =>
|
|
[
|
|
0 =>
|
|
[
|
|
'type' => 'spacer',
|
|
'styles' =>
|
|
[
|
|
'block' =>
|
|
[
|
|
'backgroundColor' => 'transparent',
|
|
'height' => '40px',
|
|
],
|
|
],
|
|
],
|
|
],
|
|
],
|
|
],
|
|
],
|
|
4 =>
|
|
[
|
|
'type' => 'container',
|
|
'columnLayout' => false,
|
|
'orientation' => 'horizontal',
|
|
'image' =>
|
|
[
|
|
'src' => null,
|
|
'display' => 'scale',
|
|
],
|
|
'styles' =>
|
|
[
|
|
'block' =>
|
|
[
|
|
'backgroundColor' => 'transparent',
|
|
],
|
|
],
|
|
'blocks' =>
|
|
[
|
|
0 =>
|
|
[
|
|
'type' => 'container',
|
|
'columnLayout' => false,
|
|
'orientation' => 'vertical',
|
|
'image' =>
|
|
[
|
|
'src' => null,
|
|
'display' => 'scale',
|
|
],
|
|
'styles' =>
|
|
[
|
|
'block' =>
|
|
[
|
|
'backgroundColor' => 'transparent',
|
|
],
|
|
],
|
|
'blocks' =>
|
|
[
|
|
0 =>
|
|
[
|
|
'type' => 'spacer',
|
|
'styles' =>
|
|
[
|
|
'block' =>
|
|
[
|
|
'backgroundColor' => 'transparent',
|
|
'height' => '50px',
|
|
],
|
|
],
|
|
],
|
|
1 =>
|
|
[
|
|
'type' => 'text',
|
|
'text' => '<h2 style="text-align: left;"><strong>Find music fast</strong></h2>
|
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat feugiat est, malesuada varius sem finibus a. Nunc feugiat sollicitudin gravida. In eu vestibulum orci, sit amet ultrices mauris.</p>',
|
|
],
|
|
2 =>
|
|
[
|
|
'type' => 'button',
|
|
'text' => 'Find out more',
|
|
'url' => '',
|
|
'styles' =>
|
|
[
|
|
'block' =>
|
|
[
|
|
'backgroundColor' => '#212327',
|
|
'borderColor' => '#212327',
|
|
'borderWidth' => '0px',
|
|
'borderRadius' => '5px',
|
|
'borderStyle' => 'solid',
|
|
'width' => '124px',
|
|
'lineHeight' => '39px',
|
|
'fontColor' => '#cacaca',
|
|
'fontFamily' => 'Merriweather Sans',
|
|
'fontSize' => '14px',
|
|
'fontWeight' => 'bold',
|
|
'textAlign' => 'left',
|
|
],
|
|
],
|
|
],
|
|
],
|
|
],
|
|
1 =>
|
|
[
|
|
'type' => 'container',
|
|
'columnLayout' => false,
|
|
'orientation' => 'vertical',
|
|
'image' =>
|
|
[
|
|
'src' => null,
|
|
'display' => 'scale',
|
|
],
|
|
'styles' =>
|
|
[
|
|
'block' =>
|
|
[
|
|
'backgroundColor' => 'transparent',
|
|
],
|
|
],
|
|
'blocks' =>
|
|
[
|
|
0 =>
|
|
[
|
|
'type' => 'image',
|
|
'link' => '',
|
|
'src' => $this->template_image_url . '/Software-Image-1.jpg',
|
|
'alt' => 'Software-Image-1',
|
|
'fullWidth' => true,
|
|
'width' => '800px',
|
|
'height' => '800px',
|
|
'styles' =>
|
|
[
|
|
'block' =>
|
|
[
|
|
'textAlign' => 'center',
|
|
],
|
|
],
|
|
],
|
|
],
|
|
],
|
|
],
|
|
],
|
|
5 =>
|
|
[
|
|
'type' => 'container',
|
|
'columnLayout' => false,
|
|
'orientation' => 'horizontal',
|
|
'image' =>
|
|
[
|
|
'src' => null,
|
|
'display' => 'scale',
|
|
],
|
|
'styles' =>
|
|
[
|
|
'block' =>
|
|
[
|
|
'backgroundColor' => 'transparent',
|
|
],
|
|
],
|
|
'blocks' =>
|
|
[
|
|
0 =>
|
|
[
|
|
'type' => 'container',
|
|
'columnLayout' => false,
|
|
'orientation' => 'vertical',
|
|
'image' =>
|
|
[
|
|
'src' => null,
|
|
'display' => 'scale',
|
|
],
|
|
'styles' =>
|
|
[
|
|
'block' =>
|
|
[
|
|
'backgroundColor' => 'transparent',
|
|
],
|
|
],
|
|
'blocks' =>
|
|
[
|
|
0 =>
|
|
[
|
|
'type' => 'spacer',
|
|
'styles' =>
|
|
[
|
|
'block' =>
|
|
[
|
|
'backgroundColor' => 'transparent',
|
|
'height' => '40px',
|
|
],
|
|
],
|
|
],
|
|
],
|
|
],
|
|
],
|
|
],
|
|
6 =>
|
|
[
|
|
'type' => 'container',
|
|
'columnLayout' => false,
|
|
'orientation' => 'horizontal',
|
|
'image' =>
|
|
[
|
|
'src' => null,
|
|
'display' => 'scale',
|
|
],
|
|
'styles' =>
|
|
[
|
|
'block' =>
|
|
[
|
|
'backgroundColor' => 'transparent',
|
|
],
|
|
],
|
|
'blocks' =>
|
|
[
|
|
0 =>
|
|
[
|
|
'type' => 'container',
|
|
'columnLayout' => false,
|
|
'orientation' => 'vertical',
|
|
'image' =>
|
|
[
|
|
'src' => null,
|
|
'display' => 'scale',
|
|
],
|
|
'styles' =>
|
|
[
|
|
'block' =>
|
|
[
|
|
'backgroundColor' => 'transparent',
|
|
],
|
|
],
|
|
'blocks' =>
|
|
[
|
|
0 =>
|
|
[
|
|
'type' => 'image',
|
|
'link' => '',
|
|
'src' => $this->template_image_url . '/Software-Image-2.jpg',
|
|
'alt' => 'Software-Image-2',
|
|
'fullWidth' => true,
|
|
'width' => '800px',
|
|
'height' => '800px',
|
|
'styles' =>
|
|
[
|
|
'block' =>
|
|
[
|
|
'textAlign' => 'center',
|
|
],
|
|
],
|
|
],
|
|
],
|
|
],
|
|
1 =>
|
|
[
|
|
'type' => 'container',
|
|
'columnLayout' => false,
|
|
'orientation' => 'vertical',
|
|
'image' =>
|
|
[
|
|
'src' => null,
|
|
'display' => 'scale',
|
|
],
|
|
'styles' =>
|
|
[
|
|
'block' =>
|
|
[
|
|
'backgroundColor' => 'transparent',
|
|
],
|
|
],
|
|
'blocks' =>
|
|
[
|
|
0 =>
|
|
[
|
|
'type' => 'spacer',
|
|
'styles' =>
|
|
[
|
|
'block' =>
|
|
[
|
|
'backgroundColor' => 'transparent',
|
|
'height' => '50px',
|
|
],
|
|
],
|
|
],
|
|
1 =>
|
|
[
|
|
'type' => 'text',
|
|
'text' => '<h2 style="text-align: left;"><strong>Keep up with the trend</strong></h2>
|
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat feugiat est, malesuada varius sem finibus a. Nunc feugiat sollicitudin gravida. In eu vestibulum orci, sit amet ultrices mauris.</p>',
|
|
],
|
|
2 =>
|
|
[
|
|
'type' => 'button',
|
|
'text' => 'Find out more',
|
|
'url' => '',
|
|
'styles' =>
|
|
[
|
|
'block' =>
|
|
[
|
|
'backgroundColor' => '#212327',
|
|
'borderColor' => '#212327',
|
|
'borderWidth' => '0px',
|
|
'borderRadius' => '5px',
|
|
'borderStyle' => 'solid',
|
|
'width' => '124px',
|
|
'lineHeight' => '39px',
|
|
'fontColor' => '#cacaca',
|
|
'fontFamily' => 'Merriweather Sans',
|
|
'fontSize' => '14px',
|
|
'fontWeight' => 'bold',
|
|
'textAlign' => 'left',
|
|
],
|
|
],
|
|
],
|
|
],
|
|
],
|
|
],
|
|
],
|
|
7 =>
|
|
[
|
|
'type' => 'container',
|
|
'columnLayout' => false,
|
|
'orientation' => 'horizontal',
|
|
'image' =>
|
|
[
|
|
'src' => null,
|
|
'display' => 'scale',
|
|
],
|
|
'styles' =>
|
|
[
|
|
'block' =>
|
|
[
|
|
'backgroundColor' => 'transparent',
|
|
],
|
|
],
|
|
'blocks' =>
|
|
[
|
|
0 =>
|
|
[
|
|
'type' => 'container',
|
|
'columnLayout' => false,
|
|
'orientation' => 'vertical',
|
|
'image' =>
|
|
[
|
|
'src' => null,
|
|
'display' => 'scale',
|
|
],
|
|
'styles' =>
|
|
[
|
|
'block' =>
|
|
[
|
|
'backgroundColor' => 'transparent',
|
|
],
|
|
],
|
|
'blocks' =>
|
|
[
|
|
0 =>
|
|
[
|
|
'type' => 'spacer',
|
|
'styles' =>
|
|
[
|
|
'block' =>
|
|
[
|
|
'backgroundColor' => 'transparent',
|
|
'height' => '50px',
|
|
],
|
|
],
|
|
],
|
|
],
|
|
],
|
|
],
|
|
],
|
|
8 =>
|
|
[
|
|
'type' => 'container',
|
|
'columnLayout' => false,
|
|
'orientation' => 'horizontal',
|
|
'image' =>
|
|
[
|
|
'src' => null,
|
|
'display' => 'scale',
|
|
],
|
|
'styles' =>
|
|
[
|
|
'block' =>
|
|
[
|
|
'backgroundColor' => '#ffffff',
|
|
],
|
|
],
|
|
'blocks' =>
|
|
[
|
|
0 =>
|
|
[
|
|
'type' => 'container',
|
|
'columnLayout' => false,
|
|
'orientation' => 'vertical',
|
|
'image' =>
|
|
[
|
|
'src' => null,
|
|
'display' => 'scale',
|
|
],
|
|
'styles' =>
|
|
[
|
|
'block' =>
|
|
[
|
|
'backgroundColor' => 'transparent',
|
|
],
|
|
],
|
|
'blocks' =>
|
|
[
|
|
0 =>
|
|
[
|
|
'type' => 'spacer',
|
|
'styles' =>
|
|
[
|
|
'block' =>
|
|
[
|
|
'backgroundColor' => 'transparent',
|
|
'height' => '40px',
|
|
],
|
|
],
|
|
],
|
|
1 =>
|
|
[
|
|
'type' => 'text',
|
|
'text' => '<h2 style="text-align: center;"><strong>Get the app now for free</strong></h2>
|
|
<p style="text-align: center;">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin placerat feugiat est, malesuada varius sem finibus a. Nunc feugiat sollicitudin gravida.</p>',
|
|
],
|
|
2 =>
|
|
[
|
|
'type' => 'button',
|
|
'text' => 'Download for free',
|
|
'url' => '',
|
|
'styles' =>
|
|
[
|
|
'block' =>
|
|
[
|
|
'backgroundColor' => '#dbbb00',
|
|
'borderColor' => '#212327',
|
|
'borderWidth' => '0px',
|
|
'borderRadius' => '5px',
|
|
'borderStyle' => 'solid',
|
|
'width' => '199px',
|
|
'lineHeight' => '50px',
|
|
'fontColor' => '#212327',
|
|
'fontFamily' => 'Merriweather Sans',
|
|
'fontSize' => '18px',
|
|
'fontWeight' => 'bold',
|
|
'textAlign' => 'center',
|
|
],
|
|
],
|
|
],
|
|
3 =>
|
|
[
|
|
'type' => 'spacer',
|
|
'styles' =>
|
|
[
|
|
'block' =>
|
|
[
|
|
'backgroundColor' => 'transparent',
|
|
'height' => '20px',
|
|
],
|
|
],
|
|
],
|
|
],
|
|
],
|
|
],
|
|
],
|
|
9 =>
|
|
[
|
|
'type' => 'container',
|
|
'columnLayout' => false,
|
|
'orientation' => 'horizontal',
|
|
'image' =>
|
|
[
|
|
'src' => null,
|
|
'display' => 'scale',
|
|
],
|
|
'styles' =>
|
|
[
|
|
'block' =>
|
|
[
|
|
'backgroundColor' => 'transparent',
|
|
],
|
|
],
|
|
'blocks' =>
|
|
[
|
|
0 =>
|
|
[
|
|
'type' => 'container',
|
|
'columnLayout' => false,
|
|
'orientation' => 'vertical',
|
|
'image' =>
|
|
[
|
|
'src' => null,
|
|
'display' => 'scale',
|
|
],
|
|
'styles' =>
|
|
[
|
|
'block' =>
|
|
[
|
|
'backgroundColor' => 'transparent',
|
|
],
|
|
],
|
|
'blocks' =>
|
|
[
|
|
0 =>
|
|
[
|
|
'type' => 'spacer',
|
|
'styles' =>
|
|
[
|
|
'block' =>
|
|
[
|
|
'backgroundColor' => 'transparent',
|
|
'height' => '50px',
|
|
],
|
|
],
|
|
],
|
|
1 =>
|
|
[
|
|
'type' => 'image',
|
|
'link' => '',
|
|
'src' => $this->template_image_url . '/Software-Logo.png',
|
|
'alt' => 'Software-Logo',
|
|
'fullWidth' => false,
|
|
'width' => '140px',
|
|
'height' => '122px',
|
|
'styles' =>
|
|
[
|
|
'block' =>
|
|
[
|
|
'textAlign' => 'center',
|
|
],
|
|
],
|
|
],
|
|
2 =>
|
|
[
|
|
'type' => 'social',
|
|
'iconSet' => 'full-symbol-black',
|
|
'icons' =>
|
|
[
|
|
0 =>
|
|
[
|
|
'type' => 'socialIcon',
|
|
'iconType' => 'facebook',
|
|
'link' => 'http://www.facebook.com',
|
|
'image' => $this->social_icon_url . '/07-full-symbol-black/Facebook.png',
|
|
'height' => '32px',
|
|
'width' => '32px',
|
|
'text' => 'Facebook',
|
|
],
|
|
1 =>
|
|
[
|
|
'type' => 'socialIcon',
|
|
'iconType' => 'twitter',
|
|
'link' => 'http://www.twitter.com',
|
|
'image' => $this->social_icon_url . '/07-full-symbol-black/Twitter.png',
|
|
'height' => '32px',
|
|
'width' => '32px',
|
|
'text' => 'Twitter',
|
|
],
|
|
2 =>
|
|
[
|
|
'type' => 'socialIcon',
|
|
'iconType' => 'youtube',
|
|
'link' => 'http://www.youtube.com',
|
|
'image' => $this->social_icon_url . '/07-full-symbol-black/Youtube.png',
|
|
'height' => '32px',
|
|
'width' => '32px',
|
|
'text' => 'Youtube',
|
|
],
|
|
],
|
|
],
|
|
3 =>
|
|
[
|
|
'type' => 'footer',
|
|
'text' => '<p><a href="[link:subscription_unsubscribe_url]">' . __("Unsubscribe", 'mailpoet') . '</a> | <a href="[link:subscription_manage_url]">' . __("Manage your subscription", 'mailpoet') . '</a><br />' . __("Add your postal address here!", 'mailpoet') . '</p>',
|
|
'styles' =>
|
|
[
|
|
'block' =>
|
|
[
|
|
'backgroundColor' => 'transparent',
|
|
],
|
|
'text' =>
|
|
[
|
|
'fontColor' => '#222222',
|
|
'fontFamily' => 'Merriweather Sans',
|
|
'fontSize' => '12px',
|
|
'textAlign' => 'center',
|
|
],
|
|
'link' =>
|
|
[
|
|
'fontColor' => '#212327',
|
|
'textDecoration' => 'underline',
|
|
],
|
|
],
|
|
],
|
|
4 =>
|
|
[
|
|
'type' => 'spacer',
|
|
'styles' =>
|
|
[
|
|
'block' =>
|
|
[
|
|
'backgroundColor' => 'transparent',
|
|
'height' => '20px',
|
|
],
|
|
],
|
|
],
|
|
],
|
|
],
|
|
],
|
|
],
|
|
],
|
|
],
|
|
'globalStyles' =>
|
|
[
|
|
'text' =>
|
|
[
|
|
'fontColor' => '#212327',
|
|
'fontFamily' => 'Merriweather Sans',
|
|
'fontSize' => '14px',
|
|
],
|
|
'h1' =>
|
|
[
|
|
'fontColor' => '#212327',
|
|
'fontFamily' => 'Merriweather Sans',
|
|
'fontSize' => '40px',
|
|
],
|
|
'h2' =>
|
|
[
|
|
'fontColor' => '#212327',
|
|
'fontFamily' => 'Merriweather Sans',
|
|
'fontSize' => '26px',
|
|
],
|
|
'h3' =>
|
|
[
|
|
'fontColor' => '#212327',
|
|
'fontFamily' => 'Merriweather Sans',
|
|
'fontSize' => '22px',
|
|
],
|
|
'link' =>
|
|
[
|
|
'fontColor' => '#212327',
|
|
'textDecoration' => 'underline',
|
|
],
|
|
'wrapper' =>
|
|
[
|
|
'backgroundColor' => '#dbbb00',
|
|
],
|
|
'body' =>
|
|
[
|
|
'backgroundColor' => '#dbbb00',
|
|
],
|
|
],
|
|
'blockDefaults' =>
|
|
[
|
|
'automatedLatestContent' =>
|
|
[
|
|
'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' =>
|
|
[
|
|
'text' => 'Read more',
|
|
'url' => '[postLink]',
|
|
'context' => 'automatedLatestContent.readMoreButton',
|
|
'styles' =>
|
|
[
|
|
'block' =>
|
|
[
|
|
'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' =>
|
|
[
|
|
'context' => 'automatedLatestContent.divider',
|
|
'styles' =>
|
|
[
|
|
'block' =>
|
|
[
|
|
'backgroundColor' => 'transparent',
|
|
'padding' => '13px',
|
|
'borderStyle' => 'solid',
|
|
'borderWidth' => '3px',
|
|
'borderColor' => '#aaaaaa',
|
|
],
|
|
],
|
|
],
|
|
'backgroundColor' => '#ffffff',
|
|
'backgroundColorAlternate' => '#eeeeee',
|
|
],
|
|
'automatedLatestContentLayout' =>
|
|
[
|
|
'amount' => '5',
|
|
'withLayout' => true,
|
|
'contentType' => 'post',
|
|
'inclusionType' => 'include',
|
|
'displayType' => 'excerpt',
|
|
'titleFormat' => 'h1',
|
|
'titleAlignment' => 'left',
|
|
'titleIsLink' => false,
|
|
'imageFullWidth' => false,
|
|
'featuredImagePosition' => 'alternate',
|
|
'showAuthor' => 'no',
|
|
'authorPrecededBy' => 'Author:',
|
|
'showCategories' => 'no',
|
|
'categoriesPrecededBy' => 'Categories:',
|
|
'readMoreType' => 'button',
|
|
'readMoreText' => 'Read more',
|
|
'readMoreButton' =>
|
|
[
|
|
'text' => 'Read more',
|
|
'url' => '[postLink]',
|
|
'context' => 'automatedLatestContentLayout.readMoreButton',
|
|
'styles' =>
|
|
[
|
|
'block' =>
|
|
[
|
|
'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' =>
|
|
[
|
|
'context' => 'automatedLatestContentLayout.divider',
|
|
'styles' =>
|
|
[
|
|
'block' =>
|
|
[
|
|
'backgroundColor' => 'transparent',
|
|
'padding' => '13px',
|
|
'borderStyle' => 'solid',
|
|
'borderWidth' => '3px',
|
|
'borderColor' => '#aaaaaa',
|
|
],
|
|
],
|
|
],
|
|
'backgroundColor' => '#ffffff',
|
|
'backgroundColorAlternate' => '#eeeeee',
|
|
],
|
|
'button' =>
|
|
[
|
|
'text' => 'Find out more',
|
|
'url' => '',
|
|
'styles' =>
|
|
[
|
|
'block' =>
|
|
[
|
|
'backgroundColor' => '#212327',
|
|
'borderColor' => '#212327',
|
|
'borderWidth' => '0px',
|
|
'borderRadius' => '5px',
|
|
'borderStyle' => 'solid',
|
|
'width' => '124px',
|
|
'lineHeight' => '39px',
|
|
'fontColor' => '#cacaca',
|
|
'fontFamily' => 'Merriweather Sans',
|
|
'fontSize' => '14px',
|
|
'fontWeight' => 'bold',
|
|
'textAlign' => 'left',
|
|
],
|
|
],
|
|
'type' => 'button',
|
|
],
|
|
'divider' =>
|
|
[
|
|
'styles' =>
|
|
[
|
|
'block' =>
|
|
[
|
|
'backgroundColor' => 'transparent',
|
|
'padding' => '13px',
|
|
'borderStyle' => 'solid',
|
|
'borderWidth' => '3px',
|
|
'borderColor' => '#aaaaaa',
|
|
],
|
|
],
|
|
],
|
|
'footer' =>
|
|
[
|
|
'text' => '<p><a href="[link:subscription_unsubscribe_url]">' . __("Unsubscribe", 'mailpoet') . '</a> | <a href="[link:subscription_manage_url]">' . __("Manage your subscription", 'mailpoet') . '</a><br />' . __("Add your postal address here!", 'mailpoet') . '</p>',
|
|
'styles' =>
|
|
[
|
|
'block' =>
|
|
[
|
|
'backgroundColor' => 'transparent',
|
|
],
|
|
'text' =>
|
|
[
|
|
'fontColor' => '#222222',
|
|
'fontFamily' => 'Merriweather Sans',
|
|
'fontSize' => '12px',
|
|
'textAlign' => 'center',
|
|
],
|
|
'link' =>
|
|
[
|
|
'fontColor' => '#212327',
|
|
'textDecoration' => 'underline',
|
|
],
|
|
],
|
|
'type' => 'footer',
|
|
],
|
|
'posts' =>
|
|
[
|
|
'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' =>
|
|
[
|
|
'text' => 'Read more',
|
|
'url' => '[postLink]',
|
|
'context' => 'posts.readMoreButton',
|
|
'styles' =>
|
|
[
|
|
'block' =>
|
|
[
|
|
'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' =>
|
|
[
|
|
'context' => 'posts.divider',
|
|
'styles' =>
|
|
[
|
|
'block' =>
|
|
[
|
|
'backgroundColor' => 'transparent',
|
|
'padding' => '13px',
|
|
'borderStyle' => 'solid',
|
|
'borderWidth' => '3px',
|
|
'borderColor' => '#aaaaaa',
|
|
],
|
|
],
|
|
],
|
|
'backgroundColor' => '#ffffff',
|
|
'backgroundColorAlternate' => '#eeeeee',
|
|
],
|
|
'social' =>
|
|
[
|
|
'iconSet' => 'full-symbol-black',
|
|
'icons' =>
|
|
[
|
|
0 =>
|
|
[
|
|
'type' => 'socialIcon',
|
|
'iconType' => 'facebook',
|
|
'link' => 'http://www.facebook.com',
|
|
'image' => $this->social_icon_url . '/07-full-symbol-black/Facebook.png',
|
|
'height' => '32px',
|
|
'width' => '32px',
|
|
'text' => 'Facebook',
|
|
],
|
|
1 =>
|
|
[
|
|
'type' => 'socialIcon',
|
|
'iconType' => 'twitter',
|
|
'link' => 'http://www.twitter.com',
|
|
'image' => $this->social_icon_url . '/07-full-symbol-black/Twitter.png',
|
|
'height' => '32px',
|
|
'width' => '32px',
|
|
'text' => 'Twitter',
|
|
],
|
|
2 =>
|
|
[
|
|
'type' => 'socialIcon',
|
|
'iconType' => 'youtube',
|
|
'link' => 'http://www.youtube.com',
|
|
'image' => $this->social_icon_url . '/07-full-symbol-black/Youtube.png',
|
|
'height' => '32px',
|
|
'width' => '32px',
|
|
'text' => 'Youtube',
|
|
],
|
|
],
|
|
'type' => 'social',
|
|
],
|
|
'spacer' =>
|
|
[
|
|
'styles' =>
|
|
[
|
|
'block' =>
|
|
[
|
|
'backgroundColor' => 'transparent',
|
|
'height' => '20px',
|
|
],
|
|
],
|
|
'type' => 'spacer',
|
|
],
|
|
'header' =>
|
|
[
|
|
'text' => '<a href="[link:newsletter_view_in_browser_url]">' . __("View this in your browser.", 'mailpoet') . '</a>',
|
|
'styles' =>
|
|
[
|
|
'block' =>
|
|
[
|
|
'backgroundColor' => 'transparent',
|
|
],
|
|
'text' =>
|
|
[
|
|
'fontColor' => '#222222',
|
|
'fontFamily' => 'Merriweather Sans',
|
|
'fontSize' => '12px',
|
|
'textAlign' => 'right',
|
|
],
|
|
'link' =>
|
|
[
|
|
'fontColor' => '#212327',
|
|
'textDecoration' => 'underline',
|
|
],
|
|
],
|
|
'type' => 'header',
|
|
],
|
|
],
|
|
];
|
|
}
|
|
}
|