assets_url = $assets_url; $this->external_template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/welcome-email-blank-1-2-column'; $this->template_image_url = $this->assets_url . '/img/blank_templates'; $this->social_icon_url = $this->assets_url . '/img/newsletter_editor/social-icons'; } function get() { return array( 'name' => __("Welcome Email: Blank 1:2 Column", 'mailpoet'), 'description' => __("A blank Welcome Email template with a 1:2 column layout.", '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" => "#f8f8f8" ) ), "blocks" => array( array( "type" => "container", "orientation" => "vertical", "styles" => array( "block" => array( "backgroundColor" => "transparent" ) ), "blocks" => array( array( "type" => "header", "text" => __("Display problems? Open this email in your web browser.", 'mailpoet'), "styles" => array( "block" => array( "backgroundColor" => "transparent" ), "text" => array( "fontColor" => "#222222", "fontFamily" => "Arial", "fontSize" => "12px", "textAlign" => "center" ), "link" => array( "fontColor" => "#6cb7d4", "textDecoration" => "underline" ) ) ) ) ) ) ), array( "type" => "container", "orientation" => "horizontal", "styles" => array( "block" => array( "backgroundColor" => "#ffffff" ) ), "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" => "30px" ) ) ), array( "type" => "image", "link" => "", "src" => $this->template_image_url . "/fake-logo.png", "alt" => __("Fake logo", 'mailpoet'), "fullWidth" => false, "width" => "598px", "height" => "71px", "styles" => array( "block" => array( "textAlign" => "center" ) ) ), array( "type" => "text", "text" => __("
\n
[subscriber:firstname | default:Subscriber],
\n\n
You recently joined our list and we'd like to give you a warm welcome!
", 'mailpoet') ), array( "type" => "divider", "styles" => array( "block" => array( "backgroundColor" => "transparent", "padding" => "13px", "borderStyle" => "solid", "borderWidth" => "3px", "borderColor" => "#aaaaaa" ) ) ), 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" => "text", "text" => __("Add a single button to your newsletter in order to have one clear call-to-action, which will increase your click rates.
", 'mailpoet') ), array( "type" => "button", "text" => __("Read up!", 'mailpoet'), "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" ) ) ) ) ) ) ), array( "type" => "container", "orientation" => "horizontal", "styles" => array( "block" => array( "backgroundColor" => "#f8f8f8" ) ), "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" => "24.5px", "borderStyle" => "solid", "borderWidth" => "3px", "borderColor" => "#aaaaaa" ) ) ), array( "type" => "social", "iconSet" => "grey", "icons" => array( array( "type" => "socialIcon", "iconType" => "facebook", "link" => "http://www.facebook.com", "image" => $this->social_icon_url . "/02-grey/Facebook.png", "height" => "32px", "width" => "32px", "text" => "Facebook" ), array( "type" => "socialIcon", "iconType" => "twitter", "link" => "http://www.twitter.com", "image" => $this->social_icon_url . "/02-grey/Twitter.png", "height" => "32px", "width" => "32px", "text" => "Twitter" ) ) ), array( "type" => "divider", "styles" => array( "block" => array( "backgroundColor" => "transparent", "padding" => "7.5px", "borderStyle" => "solid", "borderWidth" => "3px", "borderColor" => "#aaaaaa" ) ) ), array( "type" => "footer", "text" => __("Unsubscribe | Manage your subscription
Add your postal address here!