| @@ -6,14 +6,14 @@ | ||
| 6 | 6 | class FrmEmailAction extends FrmFormAction { |
| 7 | 7 | |
| 8 | 8 | public function __construct() { |
| 9 | 9 | $action_ops = array( |
| 10 | - 'classes' => 'frm_icon_font frm_email_solid_icon', | |
| 11 | - 'active' => true, | |
| 12 | - 'event' => array( 'create' ), | |
| 13 | - 'limit' => 99, | |
| 14 | - 'priority' => 10, | |
| 15 | - 'color' => 'rgb(49, 119, 199)', | |
| 10 | + 'classes' => 'frmfont frm_email_solid_icon', | |
| 11 | + 'active' => true, | |
| 12 | + 'event' => array( 'create' ), | |
| 13 | + 'limit' => 99, | |
| 14 | + 'priority' => 10, | |
| 15 | + 'color' => '#3177C7', | |
| 16 | 16 | ); |
| 17 | 17 | $action_ops = apply_filters( 'frm_email_control_settings', $action_ops ); |
| 18 | 18 | |
| 19 | 19 | parent::__construct( 'email', __( 'Send Email', 'formidable' ), $action_ops ); |
| @@ -19,9 +19,10 @@ | ||
| 19 | 19 | parent::__construct( 'email', __( 'Send Email', 'formidable' ), $action_ops ); |
| 20 | 20 | } |
| 21 | 21 | |
| 22 | 22 | /** |
| 23 | - * @return void | |
| 23 | + * @param object $form_action | |
| 24 | + * @param array $args | |
| 24 | 25 | */ |
| 25 | 26 | public function form( $form_action, $args = array() ) { |
| 26 | 27 | extract( $args ); // phpcs:ignore WordPress.PHP.DontExtract |
| 27 | 28 | |
| @@ -27,19 +28,23 @@ | ||
| 27 | 28 | |
| 28 | 29 | include FrmAppHelper::plugin_path() . '/classes/views/frm-form-actions/_email_settings.php'; |
| 29 | 30 | } |
| 30 | 31 | |
| 32 | + /** | |
| 33 | + * @return array | |
| 34 | + */ | |
| 31 | 35 | public function get_defaults() { |
| 32 | 36 | return array( |
| 33 | - 'email_to' => '[admin_email]', | |
| 37 | + 'email_to' => '[default-email]', | |
| 34 | 38 | 'cc' => '', |
| 35 | 39 | 'bcc' => '', |
| 36 | - 'from' => '[sitename] <[admin_email]>', | |
| 40 | + 'from' => '[sitename] <[default-from-email]>', | |
| 37 | 41 | 'reply_to' => '', |
| 38 | 42 | 'email_subject' => '', |
| 39 | 43 | 'email_message' => '[default-message]', |
| 40 | 44 | 'inc_user_info' => 0, |
| 41 | 45 | 'plain_text' => 0, |
| 46 | + 'email_style' => '', | |
| 42 | 47 | 'event' => array( 'create' ), |
| 43 | 48 | ); |
| 44 | 49 | } |
| 45 | 50 | |