template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/fitness'; $this->social_icon_url = $assets_url . '/img/newsletter_editor/social-icons'; } function get() { return array( 'name' => __("Fitness", 'mailpoet'), 'categories' => json_encode(array('woocommerce', 'sample')), 'readonly' => 1, 'thumbnail' => $this->getThumbnail(), 'body' => json_encode($this->getBody()), ); } private function getThumbnail() { return $this->template_image_url . '/fitness.jpg'; } private function getBody() { return array ( 'content' => array ( 'type' => 'container', 'orientation' => 'vertical', 'image' => array ( 'src' => NULL, 'display' => 'scale', ), 'styles' => array ( 'block' => array ( 'backgroundColor' => 'transparent', ), ), 'blocks' => array ( 0 => array ( 'type' => 'container', 'orientation' => 'horizontal', 'image' => array ( 'src' => NULL, 'display' => 'scale', ), 'styles' => array ( 'block' => array ( 'backgroundColor' => '#e6e1e5', ), ), 'blocks' => array ( 0 => array ( 'type' => 'container', '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 . '/Fitness-Logo-1.jpg', 'alt' => 'Fitness-Logo-1', 'fullWidth' => true, 'width' => '180px', 'height' => '96px', 'styles' => array ( 'block' => array ( 'textAlign' => 'center', ), ), ), ), ), ), ), 1 => array ( 'type' => 'container', 'orientation' => 'horizontal', 'image' => array ( 'src' => NULL, 'display' => 'scale', ), 'styles' => array ( 'block' => array ( 'backgroundColor' => '#e6e1e5', ), ), 'blocks' => array ( 0 => array ( 'type' => 'container', '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-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' => 'instagram', 'link' => 'http://instagram.com', 'image' => $this->social_icon_url . '/06-full-symbol-color/Instagram.png?mailpoet_version=3.0.0-rc.2.0.0', 'height' => '32px', 'width' => '32px', 'text' => 'Instagram', ), ), ), ), ), ), ), 2 => array ( 'type' => 'container', 'orientation' => 'horizontal', 'image' => array ( 'src' => NULL, 'display' => 'scale', ), 'styles' => array ( 'block' => array ( 'backgroundColor' => '#e6e1e5', ), ), 'blocks' => array ( 0 => array ( 'type' => 'container', 'orientation' => 'vertical', 'image' => array ( 'src' => NULL, 'display' => 'scale', ), 'styles' => array ( 'block' => array ( 'backgroundColor' => 'transparent', ), ), 'blocks' => array ( 0 => array ( 'type' => 'text', 'text' => '
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce in purus risus. Praesent lacinia suscipit maximus. Maecenas nec facilisis lectus.
Size: Medium
Colour: Lime Green
', ), 2 => array ( 'type' => 'button', 'text' => 'Recover Cart', 'url' => '', 'styles' => array ( 'block' => array ( 'backgroundColor' => '#ffffff', 'borderColor' => '#343434', 'borderWidth' => '3px', 'borderRadius' => '0px', 'borderStyle' => 'solid', 'width' => '146px', 'lineHeight' => '37px', 'fontColor' => '#343434', 'fontFamily' => 'Arial', 'fontSize' => '18px', 'fontWeight' => 'bold', 'textAlign' => 'left', ), ), ), ), ), ), ), 6 => array ( 'type' => 'container', 'orientation' => 'horizontal', 'image' => array ( 'src' => NULL, 'display' => 'scale', ), 'styles' => array ( 'block' => array ( 'backgroundColor' => 'transparent', ), ), 'blocks' => array ( 0 => array ( 'type' => 'container', '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', ), ), ), ), ), ), ), 7 => array ( 'type' => 'container', 'orientation' => 'horizontal', 'image' => array ( 'src' => NULL, 'display' => 'scale', ), 'styles' => array ( 'block' => array ( 'backgroundColor' => '#afd147', ), ), 'blocks' => array ( 0 => array ( 'type' => 'container', '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' => 'text', 'text' => 'Here\'s 20% off your order if you complete it right now. We\'re nice like that.
', ), 2 => array ( 'type' => 'button', 'text' => 'COUPONCODE', 'url' => '', 'styles' => array ( 'block' => array ( 'backgroundColor' => '#afd147', 'borderColor' => '#56741d', 'borderWidth' => '3px', 'borderRadius' => '5px', 'borderStyle' => 'solid', 'width' => '219px', 'lineHeight' => '50px', 'fontColor' => '#56741d', 'fontFamily' => 'Courier New', 'fontSize' => '26px', 'fontWeight' => 'bold', 'textAlign' => 'center', ), ), ), 3 => array ( 'type' => 'spacer', 'styles' => array ( 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '20px', ), ), ), ), ), ), ), 8 => array ( 'type' => 'container', 'orientation' => 'horizontal', 'image' => array ( 'src' => NULL, 'display' => 'scale', ), 'styles' => array ( 'block' => array ( 'backgroundColor' => '#222222', ), ), 'blocks' => array ( 0 => array ( 'type' => 'container', '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', ), ), ), 1 => array ( 'type' => 'image', 'link' => '', 'src' => $this->template_image_url . '/Fitness-Logo-Footer-1.png', 'alt' => 'Fitness-Logo-Footer-1', 'fullWidth' => false, 'width' => '180px', 'height' => '52px', 'styles' => array ( 'block' => array ( 'textAlign' => 'center', ), ), ), 2 => array ( 'type' => 'social', 'iconSet' => 'grey', 'icons' => array ( 0 => array ( 'type' => 'socialIcon', 'iconType' => 'facebook', 'link' => 'http://www.facebook.com', 'image' => $this->social_icon_url . '/02-grey/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 . '/02-grey/Twitter.png?mailpoet_version=3.0.0-rc.2.0.0', 'height' => '32px', 'width' => '32px', 'text' => 'Twitter', ), 2 => array ( 'type' => 'socialIcon', 'iconType' => 'instagram', 'link' => 'http://instagram.com', 'image' => $this->social_icon_url . '/02-grey/Instagram.png?mailpoet_version=3.0.0-rc.2.0.0', 'height' => '32px', 'width' => '32px', 'text' => 'Instagram', ), ), ), 3 => array ( 'type' => 'text', 'text' => 'Address Line 1, Address Line 2, City, Country
Unsubscribe | Manage subscription
', ), 4 => array ( 'type' => 'spacer', 'styles' => array ( 'block' => array ( 'backgroundColor' => 'transparent', 'height' => '40px', ), ), ), ), ), ), ), ), ), 'globalStyles' => array ( 'text' => array ( 'fontColor' => '#4e4e4e', 'fontFamily' => 'Arial', 'fontSize' => '14px', ), 'h1' => array ( 'fontColor' => '#4e4e4e', 'fontFamily' => 'Arial', 'fontSize' => '40px', ), 'h2' => array ( 'fontColor' => '#4e4e4e', 'fontFamily' => 'Arial', 'fontSize' => '24px', ), 'h3' => array ( 'fontColor' => '#4e4e4e', 'fontFamily' => 'Arial', 'fontSize' => '22px', ), 'link' => array ( 'fontColor' => '#3c3c3c', 'textDecoration' => 'underline', ), 'wrapper' => array ( 'backgroundColor' => '#ffffff', ), 'body' => array ( 'backgroundColor' => '#222222', ), ), 'blockDefaults' => array ( 'automatedLatestContent' => array ( 'amount' => '5', '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' => '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' => array ( 'text' => 'Read more', 'url' => '[postLink]', 'context' => 'automatedLatestContentLayout.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' => 'automatedLatestContentLayout.divider', 'styles' => array ( 'block' => array ( 'backgroundColor' => 'transparent', 'padding' => '13px', 'borderStyle' => 'solid', 'borderWidth' => '3px', 'borderColor' => '#aaaaaa', ), ), ), 'backgroundColor' => '#ffffff', 'backgroundColorAlternate' => '#eeeeee', ), 'button' => array ( 'text' => 'Button', 'url' => '', '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', ), ), ), '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!