assets_url = $assets_url; $this->external_template_image_url = '//ps.w.org/mailpoet/assets/newsletter-templates/store-discount'; $this->template_image_url = $this->assets_url . '/img/sample_templates/discount'; $this->social_icon_url = $this->assets_url . '/img/newsletter_editor/social-icons'; } function get() { return array( 'name' => __("Store Discount", 'mailpoet'), 'description' => __("Store discount email with coupon and shopping suggestions", 'mailpoet'), 'readonly' => 1, 'thumbnail' => $this->getThumbnail(), 'body' => json_encode($this->getBody()), ); } private function getBody() { return array( "content" => array( "type" => "container", "orientation" => "vertical", "styles" => array( "block" => array( "backgroundColor" => "transparent" ) ), "blocks" => array(array( "type" => "container", "orientation" => "horizontal", "styles" => array( "block" => array( "backgroundColor" => "transparent" ) ), "blocks" => array(array( "type" => "container", "orientation" => "vertical", "styles" => array( "block" => array( "backgroundColor" => "transparent" ) ), "blocks" => array(array( "type" => "spacer", "styles" => array( "block" => array( "backgroundColor" => "transparent", "height" => "20px" ) ) ), array( "type" => "image", "link" => "", "src" => $this->external_template_image_url . "/bicycle-header3.png", "alt" => __("bicycle-header3", 'mailpoet'), "fullWidth" => false, "width" => "423px", "height" => "135px", "styles" => array( "block" => array( "textAlign" => "center" ) ) ), array( "type" => "text", "text" => __("

\n

Hi [subscriber:firstname | default:reader]

\n

\n

Fancy 15% off your next order? Use this coupon on any product in our store. Expires Wednesday! To apply the discount, enter the code on the payments page.

", 'mailpoet') ), array( "type" => "spacer", "styles" => array( "block" => array( "backgroundColor" => "transparent", "height" => "20px" ) ) )) )) ), array( "type" => "container", "orientation" => "horizontal", "styles" => array( "block" => array( "backgroundColor" => "#ebdddd" ) ), "blocks" => array(array( "type" => "container", "orientation" => "vertical", "styles" => array( "block" => array( "backgroundColor" => "transparent" ) ), "blocks" => array(array( "type" => "divider", "styles" => array( "block" => array( "backgroundColor" => "transparent", "padding" => "16px", "borderStyle" => "dashed", "borderWidth" => "2px", "borderColor" => "#9a5fa1" ) ) ), array( "type" => "text", "text" => __("

Get a 15% off your next order

", 'mailpoet') ), array( "type" => "text", "text" => __("

USE CODE: WELOVEMAILPOET

", 'mailpoet') ), array( "type" => "divider", "styles" => array( "block" => array( "backgroundColor" => "transparent", "padding" => "16px", "borderStyle" => "dashed", "borderWidth" => "2px", "borderColor" => "#9a5fa1" ) ) )) )) ), array( "type" => "container", "orientation" => "horizontal", "styles" => array( "block" => array( "backgroundColor" => "transparent" ) ), "blocks" => array(array( "type" => "container", "orientation" => "vertical", "styles" => array( "block" => array( "backgroundColor" => "transparent" ) ), "blocks" => array(array( "type" => "spacer", "styles" => array( "block" => array( "backgroundColor" => "transparent", "height" => "20px" ) ) ), array( "type" => "button", "text" => __("SHOP NOW", 'mailpoet'), "url" => "", "styles" => array( "block" => array( "backgroundColor" => "#9a5fa1", "borderColor" => "#854f8b", "borderWidth" => "3px", "borderRadius" => "5px", "borderStyle" => "solid", "width" => "288px", "lineHeight" => "50px", "fontColor" => "#ffffff", "fontFamily" => "Verdana", "fontSize" => "18px", "fontWeight" => "normal", "textAlign" => "center" ) ) ), array( "type" => "text", "text" => __("

Use your discount on these great products...

", 'mailpoet') ), array( "type" => "spacer", "styles" => array( "block" => array( "backgroundColor" => "transparent", "height" => "20px" ) ) )) )) ), array( "type" => "container", "orientation" => "horizontal", "styles" => array( "block" => array( "backgroundColor" => "transparent" ) ), "blocks" => array(array( "type" => "container", "orientation" => "vertical", "styles" => array( "block" => array( "backgroundColor" => "transparent" ) ), "blocks" => array(array( "type" => "image", "link" => "", "src" => $this->external_template_image_url . "/red-icycle.jpg", "alt" => __("red-bicycle", 'mailpoet'), "fullWidth" => false, "width" => "558px", "height" => "399px", "styles" => array( "block" => array( "textAlign" => "center" ) ) ), array( "type" => "text", "text" => __("

Lovely Red Bicycle

\n

What can we say? It's a totally awesome red bike, and it's the first of its kind in our collection. No sweat!

\n

$289.99

", 'mailpoet') ), array( "type" => "button", "text" => __("Buy", 'mailpoet'), "url" => "", "styles" => array( "block" => array( "backgroundColor" => "#9a5fa1", "borderColor" => "#854f8b", "borderWidth" => "3px", "borderRadius" => "5px", "borderStyle" => "solid", "width" => "180px", "lineHeight" => "40px", "fontColor" => "#ffffff", "fontFamily" => "Verdana", "fontSize" => "18px", "fontWeight" => "normal", "textAlign" => "center" ) ) )) ), array( "type" => "container", "orientation" => "vertical", "styles" => array( "block" => array( "backgroundColor" => "transparent" ) ), "blocks" => array(array( "type" => "image", "link" => "", "src" => $this->external_template_image_url . "/orange-bicycle.jpg", "alt" => __("orange-bicycle", 'mailpoet'), "fullWidth" => false, "width" => "639px", "height" => "457px", "styles" => array( "block" => array( "textAlign" => "center" ) ) ), array( "type" => "text", "text" => __("

Little Orange Bicycle

\n

Another product that's just as awesome but it's the second type, and more orange, with some blue. Cool beans!

\n

$209.99

", 'mailpoet') ), array( "type" => "button", "text" => __("Buy", 'mailpoet'), "url" => "", "styles" => array( "block" => array( "backgroundColor" => "#9a5fa1", "borderColor" => "#854f8b", "borderWidth" => "3px", "borderRadius" => "5px", "borderStyle" => "solid", "width" => "180px", "lineHeight" => "40px", "fontColor" => "#ffffff", "fontFamily" => "Verdana", "fontSize" => "18px", "fontWeight" => "normal", "textAlign" => "center" ) ) )) )) ), array( "type" => "container", "orientation" => "horizontal", "styles" => array( "block" => array( "backgroundColor" => "transparent" ) ), "blocks" => array(array( "type" => "container", "orientation" => "vertical", "styles" => array( "block" => array( "backgroundColor" => "transparent" ) ), "blocks" => array(array( "type" => "spacer", "styles" => array( "block" => array( "backgroundColor" => "transparent", "height" => "22px" ) ) ), array( "type" => "divider", "styles" => array( "block" => array( "backgroundColor" => "transparent", "padding" => "20px", "borderStyle" => "solid", "borderWidth" => "1px", "borderColor" => "#9e9e9e" ) ) ), array( "type" => "text", "text" => __("

Terms and Conditions:

\n", 'mailpoet') ), array( "type" => "social", "iconSet" => "grey", "icons" => array(array( "type" => "socialIcon", "iconType" => "facebook", "link" => "", "image" => $this->social_icon_url . "/02-grey/Facebook.png", "height" => "32px", "width" => "32px", "text" => __("Facebook", 'mailpoet') ), array( "type" => "socialIcon", "iconType" => "twitter", "link" => "", "image" => $this->social_icon_url . "/02-grey/Twitter.png", "height" => "32px", "width" => "32px", "text" => __("Twitter", 'mailpoet') )) ), array( "type" => "footer", "text" => __("

Unsubscribe | Manage subscription

\n

1 Store Street, Shopville, CA 1345

", 'mailpoet'), "styles" => array( "block" => array( "backgroundColor" => "transparent" ), "text" => array( "fontColor" => "#343434", "fontFamily" => "Verdana", "fontSize" => "12px", "textAlign" => "center" ), "link" => array( "fontColor" => "#488e88", "textDecoration" => "none" ) ) )) )) )) ), "globalStyles" => array( "text" => array( "fontColor" => "#343434", "fontFamily" => "Verdana", "fontSize" => "14px" ), "h1" => array( "fontColor" => "#488e88", "fontFamily" => "Trebuchet MS", "fontSize" => "22px" ), "h2" => array( "fontColor" => "#9a5fa1", "fontFamily" => "Verdana", "fontSize" => "24px" ), "h3" => array( "fontColor" => "#9a5fa1", "fontFamily" => "Trebuchet MS", "fontSize" => "18px" ), "link" => array( "fontColor" => "#488e88", "textDecoration" => "underline" ), "wrapper" => array( "backgroundColor" => "#afe3de" ), "body" => array( "backgroundColor" => "#afe3de" ) ) ); } private function getThumbnail() { return $this->external_template_image_url . '/screenshot.jpg'; } }