'text', 'name' => _x('First name', 'Form label', 'mailpoet'), 'id' => 'first_name', 'unique' => '1', 'static' => '0', 'params' => ['label' => _x('First name', 'Form label', 'mailpoet')], 'position' => '1', ], [ 'type' => 'text', 'name' => _x('Email', 'Form label', 'mailpoet'), 'id' => 'email', 'unique' => '0', 'static' => '1', 'params' => ['label' => _x('Email', 'Form label', 'mailpoet'), 'required' => 'true'], 'position' => '2', ], [ 'type' => 'html', 'name' => _x('Custom text or HTML', 'Form label', 'mailpoet'), 'id' => 'html', 'unique' => '0', 'static' => '0', 'params' => [ 'text' => __('We keep your data private and share your data only with third parties that make this service possible. Read our Privacy Policy.', 'mailpoet'), 'nl2br' => '0', ], 'position' => '3', ], [ 'type' => 'submit', 'name' => _x('Submit', 'Form label', 'mailpoet'), 'id' => 'submit', 'unique' => '0', 'static' => '1', 'params' => ['label' => _x('Subscribe!', 'Form label', 'mailpoet')], 'position' => '4', ], ]; } public function getSettings(Segment $default_segment) { return [ 'segments' => [$default_segment->id()], 'on_success' => 'message', 'success_message' => __('Check your inbox or spam folder to confirm your subscription.', 'mailpoet'), 'success_page' => '5', 'segments_selected_by' => 'admin', ]; } public function getStyles() { return Styles::$default_styles; } }