getAssetUrl('slidein.png'); } public function getBody(): array { return [ [ 'type' => 'heading', 'id' => 'heading', 'params' => [ 'content' => '' . _x('LET’S KEEP IN TOUCH!', 'Text in a web form', 'mailpoet') . '', 'level' => '2', 'align' => 'center', 'font_size' => '50', 'text_color' => '#ffffff', 'line_height' => '1', 'background_color' => '', 'anchor' => '', 'class_name' => '', ], ], [ 'type' => 'paragraph', 'id' => 'paragraph', 'params' => [ 'content' => '' . _x('We’d love to keep you updated with our latest news and offers', 'Text in a web form.', 'mailpoet') . ' ' . $this->wp->wpStaticizeEmoji('😎'), 'drop_cap' => '0', 'align' => 'center', 'font_size' => '20', 'line_height' => '1', 'text_color' => '#ffffff', 'background_color' => '', 'class_name' => '', ], ], [ 'type' => 'text', 'params' => [ 'label' => _x('What’s your name?', 'Form label', 'mailpoet'), 'class_name' => '', 'label_within' => '1', ], 'id' => 'first_name', 'name' => 'First name', 'styles' => [ 'full_width' => '1', 'bold' => '0', 'background_color' => '#ffffff', 'font_color' => '#5b8ba7', 'border_size' => '0', 'border_radius' => '4', ], ], [ 'type' => 'text', 'params' => [ 'label' => _x('And your surname?', 'Form label', 'mailpoet'), 'class_name' => '', 'label_within' => '1', ], 'id' => 'last_name', 'name' => 'Last name', 'styles' => [ 'full_width' => '1', 'bold' => '0', 'background_color' => '#ffffff', 'font_color' => '#5b8ba7', 'border_size' => '0', 'border_radius' => '4', ], ], [ 'type' => 'text', 'params' => [ 'label' => _x('Email Address', 'Form label', 'mailpoet'), 'class_name' => '', 'required' => '1', 'label_within' => '1', ], 'id' => 'email', 'name' => 'Email', 'styles' => [ 'full_width' => '1', 'bold' => '0', 'background_color' => '#ffffff', 'font_color' => '#5b8ba7', 'border_size' => '0', 'border_radius' => '4', ], ], [ 'type' => 'submit', 'params' => [ 'label' => _x('Keep me posted!', 'Form label', 'mailpoet'), 'class_name' => '', ], 'id' => 'submit', 'name' => 'Submit', 'styles' => [ 'full_width' => '1', 'bold' => '1', 'background_color' => '#ff6900', 'font_size' => '24', 'font_color' => '#ffffff', 'border_size' => '0', 'border_radius' => '40', 'padding' => '12', 'font_family' => 'Ubuntu', ], ], [ 'type' => 'paragraph', 'id' => 'paragraph', 'params' => [ 'content' => '' . $this->replacePrivacyLinkTags(_x('We don’t spam! Read our [link]privacy policy[/link] for more info.', 'Text in a web form.', 'mailpoet'), '#') . '', 'drop_cap' => '0', 'align' => 'center', 'font_size' => '14', 'line_height' => '1.2', 'text_color' => '', 'background_color' => '', 'class_name' => '', ], ], ]; } public function getSettings(): array { return [ 'success_message' => '', 'segments' => [], 'alignment' => 'left', 'fontSize' => '20', 'form_placement' => [ 'popup' => ['enabled' => ''], 'below_posts' => ['enabled' => ''], 'fixed_bar' => ['enabled' => ''], 'slide_in' => [ 'enabled' => '1', 'form_position' => 'right', 'styles' => [ 'width' => [ 'unit' => 'pixel', 'value' => '420', ], ], ], 'others' => [], ], 'border_radius' => '24', 'border_size' => '0', 'form_padding' => '40', 'input_padding' => '12', 'background_image_url' => '', 'background_image_display' => 'scale', 'close_button' => 'classic_white', 'segments_selected_by' => 'admin', 'fontColor' => '#ffffff', 'gradient' => 'linear-gradient(180deg,rgb(70,219,232) 0%,rgb(197,222,213) 100%)', 'success_validation_color' => '#00d084', 'error_validation_color' => '#cf2e2e', 'font_family' => 'Ubuntu', ]; } public function getStyles(): string { return << span { width: 5px; height: 5px; background-color: #5b5b5b; } EOL; } }