ActionEmailSettings.php 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. <?php if ( ! defined( 'ABSPATH' ) ) exit;
  2. return apply_filters( 'ninja_forms_action_email_settings', array(
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Primary Settings
  6. |--------------------------------------------------------------------------
  7. */
  8. /*
  9. * To
  10. */
  11. 'to' => array(
  12. 'name' => 'to',
  13. 'type' => 'textbox',
  14. 'group' => 'primary',
  15. 'label' => __( 'To', 'ninja-forms' ),
  16. 'placeholder' => __( 'Email address or search for a field', 'ninja-forms' ),
  17. 'value' => '{wp:admin_email}',
  18. 'width' => 'one-half',
  19. 'use_merge_tags' => TRUE,
  20. ),
  21. /*
  22. * Reply To
  23. */
  24. 'reply_to' => array(
  25. 'name' => 'reply_to',
  26. 'type' => 'textbox',
  27. 'group' => 'primary',
  28. 'label' => __( 'Reply To', 'ninja-forms' ),
  29. 'placeholder' => '',
  30. 'value' => '',
  31. 'width' => 'one-half',
  32. 'use_merge_tags' => TRUE,
  33. ),
  34. /*
  35. * Subject
  36. */
  37. 'email_subject' => array(
  38. 'name' => 'email_subject',
  39. 'type' => 'textbox',
  40. 'group' => 'primary',
  41. 'label' => __( 'Subject', 'ninja-forms' ),
  42. 'placeholder' => __( 'Subject Text or seach for a field', 'ninja-forms' ),
  43. 'value' => __( 'Ninja Forms Submission', 'ninja-forms' ),
  44. 'width' => 'full',
  45. 'use_merge_tags' => TRUE,
  46. ),
  47. /*
  48. * Email Message
  49. */
  50. 'email_message' => array(
  51. 'name' => 'email_message',
  52. 'type' => 'rte',
  53. 'group' => 'primary',
  54. 'label' => __( 'Email Message', 'ninja-forms' ),
  55. 'placeholder' => '',
  56. 'value' => '{fields_table}',
  57. 'width' => 'full',
  58. 'use_merge_tags' => array(
  59. 'include' => array(
  60. 'calcs',
  61. ),
  62. ),
  63. 'deps' => array(
  64. 'email_format' => 'html'
  65. )
  66. ),
  67. 'email_message_plain' => array(
  68. 'name' => 'email_message_plain',
  69. 'type' => 'textarea',
  70. 'group' => 'primary',
  71. 'label' => __( 'Email Message', 'ninja-forms' ),
  72. 'placeholder' => '',
  73. 'value' => '',
  74. 'width' => 'full',
  75. 'use_merge_tags' => TRUE,
  76. 'deps' => array(
  77. 'email_format' => 'plain'
  78. )
  79. ),
  80. /*
  81. |--------------------------------------------------------------------------
  82. | Advanced Settings
  83. |--------------------------------------------------------------------------
  84. */
  85. /*
  86. * From Name
  87. */
  88. 'from_name' => array(
  89. 'name' => 'from_name',
  90. 'type' => 'textbox',
  91. 'group' => 'advanced',
  92. 'label' => __( 'From Name', 'ninja-forms' ),
  93. 'placeholder' => __( 'Name or fields', 'ninja-forms' ),
  94. 'value' => '',
  95. 'width' => 'one-half',
  96. 'use_merge_tags' => TRUE,
  97. ),
  98. /*
  99. * From Address
  100. */
  101. 'from_address' => array(
  102. 'name' => 'from_address',
  103. 'type' => 'textbox',
  104. 'group' => 'advanced',
  105. 'label' => __( 'From Address', 'ninja-forms' ),
  106. 'placeholder' => __( 'One email address or field', 'ninja-forms' ),
  107. 'value' => '',
  108. 'use_merge_tags' => TRUE,
  109. ),
  110. /*
  111. * Format
  112. */
  113. 'email_format' => array(
  114. 'name' => 'email_format',
  115. 'type' => 'select',
  116. 'options' => array(
  117. array( 'label' => __( 'HTML', 'ninja-forms' ), 'value' => 'html' ),
  118. array( 'label' => __( 'Plain Text', 'ninja-forms' ), 'value' => 'plain' )
  119. ),
  120. 'group' => 'advanced',
  121. 'label' => __( 'Format', 'ninja-forms' ),
  122. 'value' => 'html',
  123. ),
  124. /*
  125. * Cc
  126. */
  127. 'cc' => array(
  128. 'name' => 'cc',
  129. 'type' => 'textbox',
  130. 'group' => 'advanced',
  131. 'label' => __( 'Cc', 'ninja-forms' ),
  132. 'placeholder' => '',
  133. 'value' => '',
  134. 'use_merge_tags' => TRUE,
  135. ),
  136. /*
  137. * Bcc
  138. */
  139. 'bcc' => array(
  140. 'name' => 'bcc',
  141. 'type' => 'textbox',
  142. 'group' => 'advanced',
  143. 'label' => __( 'Bcc', 'ninja-forms' ),
  144. 'placeholder' => '',
  145. 'value' => '',
  146. 'use_merge_tags' => TRUE,
  147. ),
  148. /*
  149. * Attach CSV
  150. */
  151. 'attach_csv' => array(
  152. 'name' => 'attach_csv',
  153. 'type' => 'toggle',
  154. 'group' => 'advanced',
  155. 'label' => __( 'Attach CSV', 'ninja-forms' ),
  156. ),
  157. ));