PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.32.1
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.32.1
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
formidable / classes / views / frm-form-actions / email_action.php

email_action.php in Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More 6.32.1, at classes/views/frm-form-actions/email_action.php

58 lines 1.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) {
3 die( 'You are not allowed to call this page directly.' );
4 }
5
6 class FrmEmailAction extends FrmFormAction {
7
8 public function __construct() {
9 $action_ops = array(
10 'classes' => 'frmfont frm_email_solid_icon',
11 'active' => true,
12 'event' => array( 'create' ),
13 'limit' => 99,
14 'priority' => 10,
15 'color' => '#3177C7',
16 );
17 $action_ops = apply_filters( 'frm_email_control_settings', $action_ops );
18
19 parent::__construct( 'email', __( 'Send Email', 'formidable' ), $action_ops );
20 }
21
22 /**
23 * @param object $form_action
24 * @param array $args
25 */
26 public function form( $form_action, $args = array() ) {
27 extract( $args ); // phpcs:ignore WordPress.PHP.DontExtract
28
29 include FrmAppHelper::plugin_path() . '/classes/views/frm-form-actions/_email_settings.php';
30 }
31
32 /**
33 * @return array
34 */
35 public function get_defaults() {
36 return array(
37 'email_to' => '[default-email]',
38 'cc' => '',
39 'bcc' => '',
40 'from' => '[sitename] <[default-from-email]>',
41 'reply_to' => '',
42 'email_subject' => '',
43 'email_message' => '[default-message]',
44 'inc_user_info' => 0,
45 'plain_text' => 0,
46 'email_style' => '',
47 'event' => array( 'create' ),
48 );
49 }
50
51 /**
52 * @return string
53 */
54 protected function get_upgrade_text() {
55 return __( 'Conditional emails', 'formidable' );
56 }
57 }
58