assets_url = $assets_url; $this->external_template_image_url = '//ps.w.org/mailpoet/assets/newsletter-templates/franks-roast-house'; $this->social_icon_url = $this->assets_url . '/img/newsletter_editor/social-icons'; } function get() { return array( 'name' => __("Frank's Roast House", 'mailpoet'), 'description' => __("Think of this as your sandbox. Play around with this example newsletter to see what MailPoet can do for you.", '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( "orientation" => "horizontal", "blocks" => array( array( "type" => "container", "orientation" => "vertical", "styles" => array( "block" => array( "backgroundColor" => "transparent" ) ), "blocks" => array( array( "type" => "header", "text" => __("Open this email in your web browser.", 'mailpoet'), "styles" => array( "block" => array( "backgroundColor" => "#ccc6c6" ), "text" => array( "fontColor" => "#222222", "fontFamily" => "Arial", "fontSize" => "12px", "textAlign" => "center" ), "link" => array( "fontColor" => "#36251e", "textDecoration" => "underline" ) ) ), array( "type" => "image", "link" => "http://www.example.com", "src" => $this->external_template_image_url . "/header-v2.jpg", "alt" => __("Frank's Café", 'mailpoet'), "fullWidth" => true, "width" => "600px", "height" => "220px", "styles" => array( "block" => array( "textAlign" => "center" ) ) ), array( "type" => "spacer", "styles" => array( "block" => array( "backgroundColor" => "transparent", "height" => "30px" ) ) ), array( "type" => "text", "text" => __("
Hi there [subscriber:firstname | default:coffee drinker]
\n\nSit back and enjoy your favorite roast as you read this week's newsletter.
", 'mailpoet') ), array( "type" => "image", "link" => "http://example.org", "src" => $this->external_template_image_url . "/coffee-grain.jpg", "alt" => __('Coffee grain', 'mailpoet'), "fullWidth" => false, "width" => "1599px", "height" => "777px", "styles" => array( "block" => array( "textAlign" => "center" ) ) ), array( "type" => "text", "text" => __("\n
Visit our Center Avenue store to try the latest guest coffee from Brew Bros, a local coffee roaster. This young duo started only two years ago, but have quickly gained popularity through pop-up shops, local events, and collaborations with food trucks.
\n\n\n", 'mailpoet') ) ) ) ), "type" => "container", "styles" => array( "block" => array( "backgroundColor" => "transparent" ) ) ), array( "orientation" => "horizontal", "blocks" => array( array( "type" => "container", "orientation" => "vertical", "styles" => array( "block" => array( "backgroundColor" => "transparent" ) ), "blocks" => array( array( "type" => "text", "text" => __("Tasting notes: A rich, caramel flavor with subtle hints of molasses. The perfect wake-up morning espresso!
\n
Have an idea for the Next Great Sandwich? Tell us! We're offering free lunch for a month if you can invent an awesome new sandwich for our menu.
\n\n\nSimply tweet your ideas to @franksroasthouse and use #sandwichcomp and we'll let you know if you're a winner.
", 'mailpoet') ), array( "type" => "button", "text" => ("Find out more"), "url" => "http://example.org", "styles" => array( "block" => array( "backgroundColor" => "#047da7", "borderColor" => "#004a68", "borderWidth" => "1px", "borderRadius" => "3px", "borderStyle" => "solid", "width" => "180px", "lineHeight" => "34px", "fontColor" => "#ffffff", "fontFamily" => "Arial", "fontSize" => "14px", "fontWeight" => "normal", "textAlign" => "center" ) ) ), array( "type" => "text", "text" => __("Watch out Broad Street, we're coming to you very soon!
\n\nKeep an eye on your inbox, as we'll have some special offers for our email subscribers plus an exclusive launch party invite!
Frank's is now open even later, so you can get your caffeine fix all day (and night) long! Here's our new opening hours:
\n\nUnsubscribe | Manage subscription
12345 MailPoet Drive, EmailVille, 76543