assets_url = $assets_url; $this->external_template_image_url = 'https://ps.w.org/mailpoet/assets/newsletter-templates/newsletter-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'; } public function get() { return [ 'name' => __("Newsletter: Blank 1:2 Column", 'mailpoet'), 'categories' => json_encode(['standard', 'blank']), 'readonly' => 1, 'thumbnail' => $this->getThumbnail(), 'body' => json_encode($this->getBody()), ]; } private function getBody() { return [ "content" => [ "type" => "container", "orientation" => "vertical", "styles" => [ "block" => [ "backgroundColor" => "transparent", ], ], "blocks" => [ [ "type" => "container", "orientation" => "horizontal", "styles" => [ "block" => [ "backgroundColor" => "#f8f8f8", ], ], "blocks" => [ [ "type" => "container", "orientation" => "vertical", "styles" => [ "block" => [ "backgroundColor" => "transparent", ], ], "blocks" => [ [ "type" => "header", "text" => '' . __("View this in your browser.", 'mailpoet') . '', "styles" => [ "block" => [ "backgroundColor" => "transparent", ], "text" => [ "fontColor" => "#222222", "fontFamily" => "Arial", "fontSize" => "12px", "textAlign" => "center", ], "link" => [ "fontColor" => "#6cb7d4", "textDecoration" => "underline", ], ], ], ], ], ], ], [ "type" => "container", "orientation" => "horizontal", "styles" => [ "block" => [ "backgroundColor" => "#ffffff", ], ], "blocks" => [ [ "type" => "container", "orientation" => "vertical", "styles" => [ "block" => [ "backgroundColor" => "transparent", ], ], "blocks" => [ [ "type" => "spacer", "styles" => [ "block" => [ "backgroundColor" => "transparent", "height" => "30px", ], ], ], [ "type" => "image", "link" => "", "src" => $this->template_image_url . "/fake-logo.png", "alt" => __("Fake logo", 'mailpoet'), "fullWidth" => false, "width" => "598px", "height" => "71px", "styles" => [ "block" => [ "textAlign" => "center", ], ], ], [ "type" => "text", "text" => __("
\n
It's time to design your newsletter! In the right sidebar, you'll find 4 menu items that will help you customize your newsletter:
\nIn the right sidebar, you can add these layout blocks to your email:
\nYou can change a layout's background color by clicking on the settings icon on the right edge of the Designer. Simply hover over this area to see the Settings (gear) icon.
", 'mailpoet'), ], ], ], ], ], [ "type" => "container", "orientation" => "horizontal", "styles" => [ "block" => [ "backgroundColor" => "#f8f8f8", ], ], "blocks" => [ [ "type" => "container", "orientation" => "vertical", "styles" => [ "block" => [ "backgroundColor" => "transparent", ], ], "blocks" => [ [ "type" => "divider", "styles" => [ "block" => [ "backgroundColor" => "transparent", "padding" => "24.5px", "borderStyle" => "solid", "borderWidth" => "3px", "borderColor" => "#aaaaaa", ], ], ], [ "type" => "social", "iconSet" => "grey", "icons" => [ [ "type" => "socialIcon", "iconType" => "facebook", "link" => "http://www.facebook.com", "image" => $this->social_icon_url . "/02-grey/Facebook.png", "height" => "32px", "width" => "32px", "text" => "Facebook", ], [ "type" => "socialIcon", "iconType" => "twitter", "link" => "http://www.twitter.com", "image" => $this->social_icon_url . "/02-grey/Twitter.png", "height" => "32px", "width" => "32px", "text" => "Twitter", ], ], ], [ "type" => "divider", "styles" => [ "block" => [ "backgroundColor" => "transparent", "padding" => "7.5px", "borderStyle" => "solid", "borderWidth" => "3px", "borderColor" => "#aaaaaa", ], ], ], [ "type" => "footer", "text" => '' . __("Unsubscribe", 'mailpoet') . ' | ' . __("Manage your subscription", 'mailpoet') . '
' . __("Add your postal address here!", 'mailpoet') . '