<?php namespace MailPoet\Config\PopulatorData\Templates; if (!defined('ABSPATH')) exit; use MailPoet\WP\Functions as WPFunctions; class College { 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/college'; $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons'; } public function get() { return [ 'name' => __("College", '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' => '#eeeeee', ], ], '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' => '20px', ], ], ], ], ], ], ], 1 => [ 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', 'image' => [ 'src' => null, 'display' => 'scale', ], 'styles' => [ 'block' => [ 'backgroundColor' => '#eeeeee', ], ], '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 . '/College-Logo.png', 'alt' => 'College-Logo', 'fullWidth' => false, 'width' => '106px', 'height' => '652px', 'styles' => [ 'block' => [ 'textAlign' => 'left', ], ], ], ], ], 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' => '36px', ], ], ], 1 => [ 'type' => 'social', 'iconSet' => 'circles', 'icons' => [ 0 => [ 'type' => 'socialIcon', 'iconType' => 'facebook', 'link' => 'http://www.facebook.com', 'image' => $this->social_icon_url . '/03-circles/Facebook.png?mailpoet_version=3.15.0', 'height' => '32px', 'width' => '32px', 'text' => 'Facebook', ], 1 => [ 'type' => 'socialIcon', 'iconType' => 'twitter', 'link' => 'http://www.twitter.com', 'image' => $this->social_icon_url . '/03-circles/Twitter.png?mailpoet_version=3.15.0', 'height' => '32px', 'width' => '32px', 'text' => 'Twitter', ], 2 => [ 'type' => 'socialIcon', 'iconType' => 'instagram', 'link' => 'http://instagram.com', 'image' => $this->social_icon_url . '/03-circles/Instagram.png?mailpoet_version=3.15.0', 'height' => '32px', 'width' => '32px', 'text' => 'Instagram', ], 3 => [ 'type' => 'socialIcon', 'iconType' => 'youtube', 'link' => 'http://www.youtube.com', 'image' => $this->social_icon_url . '/03-circles/Youtube.png?mailpoet_version=3.15.0', 'height' => '32px', 'width' => '32px', 'text' => 'Youtube', ], ], ], ], ], 2 => [ 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', 'image' => [ 'src' => null, 'display' => 'scale', ], 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', ], ], 'blocks' => [ 0 => [ 'type' => 'spacer', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', 'height' => '33px', ], ], ], 1 => [ 'type' => 'header', 'text' => '<p><a href="[link:newsletter_view_in_browser_url]">' . __("View this in your browser.", 'mailpoet') . '</a></p>', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', ], 'text' => [ 'fontColor' => '#222222', 'fontFamily' => 'Arial', 'fontSize' => '12px', 'textAlign' => 'right', ], 'link' => [ 'fontColor' => '#6cb7d4', 'textDecoration' => 'underline', ], ], ], ], ], ], ], 2 => [ 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', 'image' => [ 'src' => $this->template_image_url . '/College-Header.jpg', 'display' => 'scale', ], 'styles' => [ 'block' => [ 'backgroundColor' => '#333333', ], ], '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' => 'text', 'text' => '<p style="text-align: left;"><span style="color: #ffcc00;"><strong>S U M M E R&nbsp; &nbsp;E D I T I O N</strong></span></p> <h1 style="text-align: left;"><span style="color: #ffffff;">Graduation Day is Coming</span></h1> <p style="text-align: left;"><span style="color: #ffffff;"><span>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce dapibus iaculis risus ut tincidunt. Integer gravida mauris erat, vehicula blandit velit ultrices ut.&nbsp;</span></span></p>', ], 2 => [ 'type' => 'spacer', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', 'height' => '35px', ], ], ], ], ], ], ], 3 => [ 'type' => 'container', 'columnLayout' => '2_1', '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' => '54px', ], ], ], 1 => [ 'type' => 'text', 'text' => '<p style="text-align: left;"><span style="color: #999999;"><strong>H E A D M A S T E R \' S&nbsp; &nbsp;B L O G</strong></span></p> <h2 style="text-align: left;"><strong><span style="color: #333333;">Your hard work pays off in the future to come</span></strong></h2> <p></p>', ], 2 => [ 'type' => 'divider', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', 'padding' => '18.5px', 'borderStyle' => 'solid', 'borderWidth' => '2px', 'borderColor' => '#ffcc00', ], ], ], 3 => [ 'type' => 'text', 'text' => '<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur purus quam, semper eget nisl at, pretium fermentum ligula. Ut augue elit, congue non nisl eget, venenatis ornare ante. Aliquam erat volutpat. Maecenas facilisis eget risus vel scelerisque.</p> <p></p> <p>Etiam eros arcu, vestibulum at iaculis ut, iaculis nec est. Ut ut malesuada purus. Etiam sed accumsan eros, eu aliquam nisl. Nam faucibus sit amet felis at euismod. Sed efficitur varius tincidunt. Curabitur varius, nunc id interdum sodales, felis purus congue nulla, at semper orci est id mauris. Ut euismod vel dui sed mollis. Aliquam vestibulum id leo eu tristique. Etiam sit amet lacus vitae mi dignissim iaculis id ac nulla.</p> <p></p>', ], 4 => [ 'type' => 'image', 'link' => '', 'src' => $this->template_image_url . '/College-Image.jpg', 'alt' => 'College-Image', 'fullWidth' => false, 'width' => '1200px', 'height' => '800px', 'styles' => [ 'block' => [ 'textAlign' => 'center', ], ], ], 5 => [ 'type' => 'text', 'text' => '<p></p> <p>Praesent mi lorem, varius sit amet mattis at, sollicitudin ac enim. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam rhoncus tellus eleifend, accumsan magna in, imperdiet mauris. Cras a justo in lectus semper fermentum. Integer porta vel risus a varius. Aliquam nec nulla dui. Nulla congue ornare fringilla.</p> <p></p> <p>Nulla gravida interdum velit, nec pretium lacus placerat vel. Curabitur vitae arcu condimentum, iaculis nisl ac, viverra augue.</p> <p></p> <p>Etiam tincidunt justo quam, ac suscipit lectus hendrerit ac.</p>', ], ], ], 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 . '/College-Avatar.jpg', 'alt' => 'College-Avatar', 'fullWidth' => true, 'width' => '500px', 'height' => '500px', 'styles' => [ 'block' => [ 'textAlign' => 'center', ], ], ], 1 => [ 'type' => 'text', 'text' => '<p></p> <p></p> <p><strong>Mr George Chalk</strong></p> <p>Headmaster &amp; Director</p>', ], 2 => [ 'type' => 'spacer', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', 'height' => '44px', ], ], ], 3 => [ 'type' => 'text', 'text' => '<p><strong>Need some tips and advice?&nbsp;</strong></p> <p>Here\'s the latest updates from our blog:</p> <p></p> <p><a href="http://mailpoet-sg.com">7 ways to destress before an exam even starts</a></p> <p></p> <p><a href="http://mailpoet-sg.com">Focussing on the right content is key to being successful</a></p> <p></p> <p><a href="http://mailpoet-sg.com">Getting a degree is only the start of the battle</a></p>', ], ], ], ], ], 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' => '20px', ], ], ], ], ], ], ], 5 => [ 'type' => 'container', 'columnLayout' => '2_1', 'orientation' => 'horizontal', 'image' => [ 'src' => null, 'display' => 'scale', ], 'styles' => [ 'block' => [ 'backgroundColor' => '#eeeeee', ], ], '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' => '35px', ], ], ], 1 => [ 'type' => 'social', 'iconSet' => 'circles', 'icons' => [ 0 => [ 'type' => 'socialIcon', 'iconType' => 'facebook', 'link' => 'http://www.facebook.com', 'image' => $this->social_icon_url . '/03-circles/Facebook.png?mailpoet_version=3.15.0', 'height' => '32px', 'width' => '32px', 'text' => 'Facebook', ], 1 => [ 'type' => 'socialIcon', 'iconType' => 'twitter', 'link' => 'http://www.twitter.com', 'image' => $this->social_icon_url . '/03-circles/Twitter.png?mailpoet_version=3.15.0', 'height' => '32px', 'width' => '32px', 'text' => 'Twitter', ], 2 => [ 'type' => 'socialIcon', 'iconType' => 'instagram', 'link' => 'http://instagram.com', 'image' => $this->social_icon_url . '/03-circles/Instagram.png?mailpoet_version=3.15.0', 'height' => '32px', 'width' => '32px', 'text' => 'Instagram', ], 3 => [ 'type' => 'socialIcon', 'iconType' => 'youtube', 'link' => 'http://www.youtube.com', 'image' => $this->social_icon_url . '/03-circles/Youtube.png?mailpoet_version=3.15.0', 'height' => '32px', 'width' => '32px', 'text' => 'Youtube', ], ], ], 2 => [ 'type' => 'text', 'text' => '<p style="text-align: center;"><span style="color: #ffcc00;"><strong></strong></span><a href="[link:subscription_unsubscribe_url]">' . __("Unsubscribe", 'mailpoet') . '</a><span>&nbsp;|&nbsp;</span><a href="[link:subscription_manage_url]">' . __("Manage your subscription", 'mailpoet') . '</a><br /><span>' . __("Add your postal address here!", 'mailpoet') . '</span></p>', ], ], ], 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' => '20px', ], ], ], 1 => [ 'type' => 'image', 'link' => '', 'src' => $this->template_image_url . '/College-Logo.png', 'alt' => 'College-Logo', 'fullWidth' => false, 'width' => '106px', 'height' => '652px', 'styles' => [ 'block' => [ 'textAlign' => 'center', ], ], ], ], ], ], ], ], ], 'globalStyles' => [ 'text' => [ 'fontColor' => '#000000', 'fontFamily' => 'Source Sans Pro', 'fontSize' => '14px', ], 'h1' => [ 'fontColor' => '#111111', 'fontFamily' => 'Playfair Display', 'fontSize' => '40px', ], 'h2' => [ 'fontColor' => '#222222', 'fontFamily' => 'Playfair Display', 'fontSize' => '30px', ], 'h3' => [ 'fontColor' => '#333333', 'fontFamily' => 'Open Sans', 'fontSize' => '24px', ], 'link' => [ 'fontColor' => '#447c9d', 'textDecoration' => 'underline', ], 'wrapper' => [ 'backgroundColor' => '#ffffff', ], 'body' => [ 'backgroundColor' => '#eeeeee', ], ], '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' => 'Button', 'url' => '', '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', ], ], ], 'divider' => [ 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', 'padding' => '18.5px', 'borderStyle' => 'solid', 'borderWidth' => '2px', 'borderColor' => '#ffcc00', ], ], 'type' => 'divider', ], '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' => 'Arial', 'fontSize' => '12px', 'textAlign' => 'center', ], 'link' => [ 'fontColor' => '#6cb7d4', 'textDecoration' => 'none', ], ], ], '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' => 'circles', 'icons' => [ 0 => [ '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 => [ '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 => [ 'type' => 'socialIcon', 'iconType' => 'instagram', 'link' => 'http://instagram.com', 'image' => $this->social_icon_url . '/03-circles/Instagram.png', 'height' => '32px', 'width' => '32px', 'text' => 'Instagram', ], 3 => [ 'type' => 'socialIcon', 'iconType' => 'youtube', 'link' => 'http://www.youtube.com', 'image' => $this->social_icon_url . '/03-circles/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' => 'Arial', 'fontSize' => '12px', 'textAlign' => 'right', ], 'link' => [ 'fontColor' => '#6cb7d4', 'textDecoration' => 'underline', ], ], 'type' => 'header', ], ], ]; } }