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' => '
Week 23: 23/19/19
', ), 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' => 'RSS Simple
Unsubscribe | Manage subscription
Add your postal address here!
', ), ), ), ), ), ), ), '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', ), 'divider' => array ( 'styles' => array ( 'block' => array ( 'backgroundColor' => 'transparent', 'padding' => '13px', 'borderStyle' => 'solid', 'borderWidth' => '3px', 'borderColor' => '#aaaaaa', ), ), ), 'footer' => array ( 'text' => 'Unsubscribe | Manage subscription
Add your postal address here!