template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/not-so-medium'; $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons'; } function get() { return array( 'name' => __("One Full Post In An Email", 'mailpoet'), 'categories' => json_encode(array('notification', 'all')), 'readonly' => 1, 'thumbnail' => $this->getThumbnail(), 'body' => json_encode($this->getBody()), ); } private function getThumbnail() { return $this->template_image_url . '/not-so-medium-1558.jpg'; } private function getBody() { return array ( 'content' => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', 'image' => array ( 'src' => NULL, 'display' => 'scale', ), 'styles' => array ( 'block' => array ( 'backgroundColor' => 'transparent', ), ), 'blocks' => array ( 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', 'image' => array ( 'src' => NULL, 'display' => 'scale', ), 'styles' => array ( 'block' => array ( 'backgroundColor' => '#ffffff', ), ), 'blocks' => array ( 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', 'image' => array ( 'src' => NULL, 'display' => 'scale', ), 'styles' => array ( 'block' => array ( 'backgroundColor' => 'transparent', ), ), 'blocks' => array ( 0 => array ( 'type' => 'spacer', 'styles' => array ( 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '30px', ), ), ), ), ), ), ), 1 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', 'image' => array ( 'src' => NULL, 'display' => 'scale', ), 'styles' => array ( 'block' => array ( 'backgroundColor' => 'transparent', ), ), 'blocks' => array ( 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', 'image' => array ( 'src' => NULL, 'display' => 'scale', ), 'styles' => array ( 'block' => array ( 'backgroundColor' => 'transparent', ), ), 'blocks' => array ( 0 => array ( 'type' => 'image', 'link' => '', 'src' => $this->template_image_url . '/Not-So-Medium-Logo.png', 'alt' => 'Not-So-Medium-Logo', 'fullWidth' => false, 'width' => '210px', 'height' => '90px', 'styles' => array ( 'block' => array ( 'textAlign' => 'center', ), ), ), ), ), 1 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', 'image' => array ( 'src' => NULL, 'display' => 'scale', ), 'styles' => array ( 'block' => array ( 'backgroundColor' => 'transparent', ), ), 'blocks' => array ( 0 => array ( 'type' => 'spacer', 'styles' => array ( 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '40px', ), ), ), ), ), 2 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', 'image' => array ( 'src' => NULL, 'display' => 'scale', ), 'styles' => array ( 'block' => array ( 'backgroundColor' => 'transparent', ), ), 'blocks' => array ( 0 => array ( 'type' => 'spacer', 'styles' => array ( 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '20px', ), ), ), 1 => array ( 'type' => 'social', 'iconSet' => 'full-symbol-black', 'icons' => array ( 0 => array ( 'type' => 'socialIcon', 'iconType' => 'facebook', 'link' => 'http://www.facebook.com', 'image' => $this->social_icon_url . '/07-full-symbol-black/Facebook.png?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 . '/07-full-symbol-black/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 . '/07-full-symbol-black/Website.png?mailpoet_version=3.0.0-rc.2.0.0', 'height' => '32px', 'width' => '32px', 'text' => 'Website', ), ), ), ), ), ), ), 2 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', 'image' => array ( 'src' => NULL, 'display' => 'scale', ), 'styles' => array ( 'block' => array ( 'backgroundColor' => '#ebebeb', ), ), 'blocks' => array ( 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', 'image' => array ( 'src' => NULL, 'display' => 'scale', ), 'styles' => array ( 'block' => array ( 'backgroundColor' => 'transparent', ), ), 'blocks' => array ( 0 => array ( 'type' => 'spacer', 'styles' => array ( 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '20px', ), ), ), 1 => array ( 'type' => 'text', 'text' => '
Welcome to this week\'s post.
Every Friday, we send you the most interesting story of the week in full.
', ), 2 => array ( 'type' => 'spacer', 'styles' => array ( 'block' => array ( 'backgroundColor' => '#d6d6d6', 'height' => '20px', ), ), ), 3 => array ( 'type' => 'spacer', 'styles' => array ( 'block' => array ( 'backgroundColor' => '#ffffff', 'height' => '63px', ), ), ), ), ), ), ), 3 => array ( 'type' => 'automatedLatestContentLayout', 'withLayout' => true, 'amount' => '1', 'contentType' => 'post', 'terms' => array ( ), 'inclusionType' => 'include', 'displayType' => 'full', 'titleFormat' => 'h1', 'titleAlignment' => 'center', 'titleIsLink' => true, 'imageFullWidth' => false, 'featuredImagePosition' => 'alternate', 'showAuthor' => 'aboveText', 'authorPrecededBy' => 'Author:', 'showCategories' => 'aboveText', 'categoriesPrecededBy' => 'Categories:', 'readMoreType' => 'link', 'readMoreText' => 'View this post online & share!', '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' => 'automatedLatestContentLayout.readMoreButton', ), 'sortBy' => 'newest', 'showDivider' => true, 'divider' => array ( 'type' => 'divider', 'styles' => array ( 'block' => array ( 'backgroundColor' => 'transparent', 'padding' => '13px', 'borderStyle' => 'solid', 'borderWidth' => '1px', 'borderColor' => '#aaaaaa', ), ), 'context' => 'automatedLatestContentLayout.divider', ), 'backgroundColor' => '#ffffff', 'backgroundColorAlternate' => '#eeeeee', ), 4 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', 'image' => array ( 'src' => NULL, 'display' => 'scale', ), 'styles' => array ( 'block' => array ( 'backgroundColor' => '#ebebeb', ), ), 'blocks' => array ( 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', 'image' => array ( 'src' => NULL, 'display' => 'scale', ), 'styles' => array ( 'block' => array ( 'backgroundColor' => 'transparent', ), ), 'blocks' => array ( 0 => array ( 'type' => 'spacer', 'styles' => array ( 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '20px', ), ), ), 1 => array ( 'type' => 'text', 'text' => 'Share this with your friends
We promise not to spam anyone, and we only send our great articles to any email addresses in our list. Promise!
', ), 2 => array ( 'type' => 'social', 'iconSet' => 'circles', 'icons' => array ( 0 => array ( 'type' => 'socialIcon', 'iconType' => 'facebook', 'link' => 'http://www.facebook.com', 'image' => $this->social_icon_url . '/03-circles/Facebook.png?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 . '/03-circles/Twitter.png?mailpoet_version=3.0.0-rc.2.0.0', 'height' => '32px', 'width' => '32px', 'text' => 'Twitter', ), 2 => array ( 'type' => 'socialIcon', 'iconType' => 'google-plus', 'link' => 'http://plus.google.com', 'image' => $this->social_icon_url . '/03-circles/Google-Plus.png?mailpoet_version=3.0.0-rc.2.0.0', 'height' => '32px', 'width' => '32px', 'text' => 'Google Plus', ), 3 => array ( 'type' => 'socialIcon', 'iconType' => 'linkedin', 'link' => 'http://www.linkedin.com', 'image' => $this->social_icon_url . '/03-circles/LinkedIn.png?mailpoet_version=3.0.0-rc.2.0.0', 'height' => '32px', 'width' => '32px', 'text' => 'LinkedIn', ), 4 => array ( 'type' => 'socialIcon', 'iconType' => 'email', 'link' => '', 'image' => $this->social_icon_url . '/03-circles/Email.png?mailpoet_version=3.0.0-rc.2.0.0', 'height' => '32px', 'width' => '32px', 'text' => 'Email', ), ), ), 3 => array ( 'type' => 'spacer', 'styles' => array ( 'block' => array ( 'backgroundColor' => '#d6d6d6', 'height' => '20px', ), ), ), ), ), ), ), 5 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'horizontal', 'image' => array ( 'src' => NULL, 'display' => 'scale', ), 'styles' => array ( 'block' => array ( 'backgroundColor' => '#ffffff', ), ), 'blocks' => array ( 0 => array ( 'type' => 'container', 'columnLayout' => false, 'orientation' => 'vertical', 'image' => array ( 'src' => NULL, 'display' => 'scale', ), 'styles' => array ( 'block' => array ( 'backgroundColor' => 'transparent', ), ), 'blocks' => array ( 0 => array ( 'type' => 'spacer', 'styles' => array ( 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '20px', ), ), ), 1 => array ( 'type' => 'footer', 'text' => 'Unsubscribe | Manage your subscription
Add your postal address here!
Unsubscribe | Manage subscription
Add your postal address here!