| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183 |
- <?php if ( ! defined( 'ABSPATH' ) ) exit;
- return apply_filters( 'ninja_forms_action_email_settings', array(
- /*
- |--------------------------------------------------------------------------
- | Primary Settings
- |--------------------------------------------------------------------------
- */
- /*
- * To
- */
- 'to' => array(
- 'name' => 'to',
- 'type' => 'textbox',
- 'group' => 'primary',
- 'label' => __( 'To', 'ninja-forms' ),
- 'placeholder' => __( 'Email address or search for a field', 'ninja-forms' ),
- 'value' => '{wp:admin_email}',
- 'width' => 'one-half',
- 'use_merge_tags' => TRUE,
- ),
- /*
- * Reply To
- */
- 'reply_to' => array(
- 'name' => 'reply_to',
- 'type' => 'textbox',
- 'group' => 'primary',
- 'label' => __( 'Reply To', 'ninja-forms' ),
- 'placeholder' => '',
- 'value' => '',
- 'width' => 'one-half',
- 'use_merge_tags' => TRUE,
- ),
- /*
- * Subject
- */
- 'email_subject' => array(
- 'name' => 'email_subject',
- 'type' => 'textbox',
- 'group' => 'primary',
- 'label' => __( 'Subject', 'ninja-forms' ),
- 'placeholder' => __( 'Subject Text or seach for a field', 'ninja-forms' ),
- 'value' => __( 'Ninja Forms Submission', 'ninja-forms' ),
- 'width' => 'full',
- 'use_merge_tags' => TRUE,
- ),
- /*
- * Email Message
- */
- 'email_message' => array(
- 'name' => 'email_message',
- 'type' => 'rte',
- 'group' => 'primary',
- 'label' => __( 'Email Message', 'ninja-forms' ),
- 'placeholder' => '',
- 'value' => '{fields_table}',
- 'width' => 'full',
- 'use_merge_tags' => array(
- 'include' => array(
- 'calcs',
- ),
- ),
- 'deps' => array(
- 'email_format' => 'html'
- )
- ),
- 'email_message_plain' => array(
- 'name' => 'email_message_plain',
- 'type' => 'textarea',
- 'group' => 'primary',
- 'label' => __( 'Email Message', 'ninja-forms' ),
- 'placeholder' => '',
- 'value' => '',
- 'width' => 'full',
- 'use_merge_tags' => TRUE,
- 'deps' => array(
- 'email_format' => 'plain'
- )
- ),
- /*
- |--------------------------------------------------------------------------
- | Advanced Settings
- |--------------------------------------------------------------------------
- */
- /*
- * From Name
- */
- 'from_name' => array(
- 'name' => 'from_name',
- 'type' => 'textbox',
- 'group' => 'advanced',
- 'label' => __( 'From Name', 'ninja-forms' ),
- 'placeholder' => __( 'Name or fields', 'ninja-forms' ),
- 'value' => '',
- 'width' => 'one-half',
- 'use_merge_tags' => TRUE,
- ),
- /*
- * From Address
- */
- 'from_address' => array(
- 'name' => 'from_address',
- 'type' => 'textbox',
- 'group' => 'advanced',
- 'label' => __( 'From Address', 'ninja-forms' ),
- 'placeholder' => __( 'One email address or field', 'ninja-forms' ),
- 'value' => '',
- 'use_merge_tags' => TRUE,
- ),
- /*
- * Format
- */
- 'email_format' => array(
- 'name' => 'email_format',
- 'type' => 'select',
- 'options' => array(
- array( 'label' => __( 'HTML', 'ninja-forms' ), 'value' => 'html' ),
- array( 'label' => __( 'Plain Text', 'ninja-forms' ), 'value' => 'plain' )
- ),
- 'group' => 'advanced',
- 'label' => __( 'Format', 'ninja-forms' ),
- 'value' => 'html',
-
- ),
- /*
- * Cc
- */
- 'cc' => array(
- 'name' => 'cc',
- 'type' => 'textbox',
- 'group' => 'advanced',
- 'label' => __( 'Cc', 'ninja-forms' ),
- 'placeholder' => '',
- 'value' => '',
- 'use_merge_tags' => TRUE,
- ),
- /*
- * Bcc
- */
- 'bcc' => array(
- 'name' => 'bcc',
- 'type' => 'textbox',
- 'group' => 'advanced',
- 'label' => __( 'Bcc', 'ninja-forms' ),
- 'placeholder' => '',
- 'value' => '',
- 'use_merge_tags' => TRUE,
- ),
- /*
- * Attach CSV
- */
- 'attach_csv' => array(
- 'name' => 'attach_csv',
- 'type' => 'toggle',
- 'group' => 'advanced',
- 'label' => __( 'Attach CSV', 'ninja-forms' ),
- ),
- ));
|