@@ -6,11 +6,11 @@ |
||
| 6 | 6 | </td> |
| 7 | 7 | <td class="frm_bcc_cc_container"> |
| 8 | 8 | <a href="javascript:void(0)" class="button frm_email_buttons frm_cc_button <?php |
| 9 | - echo ( ! empty($form_action->post_content['cc']) ? 'frm_hidden' : '' ); |
|
| 10 | - ?>" data-emailrow="cc"><?php _e( 'CC', 'formidable' ) ?></a> |
|
| 9 | + echo ( ! empty($form_action->post_content['cc']) ? 'frm_hidden' : '' ); |
|
| 10 | + ?>" data-emailrow="cc"><?php _e( 'CC', 'formidable' ) ?></a> |
|
| 11 | 11 | <a href="javascript:void(0)" class="button frm_email_buttons frm_bcc_button <?php |
| 12 | - echo ( ! empty($form_action->post_content['bcc']) ? 'frm_hidden' : '' ); |
|
| 13 | - ?>" data-emailrow="bcc"><?php _e( 'BCC', 'formidable' ) ?></a> |
|
| 12 | + echo ( ! empty($form_action->post_content['bcc']) ? 'frm_hidden' : '' ); |
|
| 13 | + ?>" data-emailrow="bcc"><?php _e( 'BCC', 'formidable' ) ?></a> |
|
| 14 | 14 | </td> |
| 15 | 15 | </tr> |
| 16 | 16 | <tr class="frm_cc_row<?php echo empty( $form_action->post_content['cc'] ) ? ' frm_hidden' : ''; ?>" > |
@@ -1,63 +1,63 @@ |
||
| 1 | 1 | <table class="form-table frm-no-margin"> |
| 2 | 2 | <tr> |
| 3 | - <th><label <?php FrmAppHelper::maybe_add_tooltip('email_to') ?>><?php _e( 'To', 'formidable' ) ?></label> |
|
| 3 | + <th><label <?php FrmAppHelper::maybe_add_tooltip( 'email_to' ) ?>><?php _e( 'To', 'formidable' ) ?></label> |
|
| 4 | 4 | </th> |
| 5 | - <td><input type="text" name="<?php echo esc_attr( $this->get_field_name('email_to') ) ?>" value="<?php echo esc_attr( $form_action->post_content['email_to'] ); ?>" class="frm_not_email_to frm_email_blur large-text <?php FrmAppHelper::maybe_add_tooltip('email_to', 'open') ?>" id="<?php echo esc_attr( $this->get_field_id('email_to') ) ?>" /> |
|
| 5 | + <td><input type="text" name="<?php echo esc_attr( $this->get_field_name( 'email_to' ) ) ?>" value="<?php echo esc_attr( $form_action->post_content['email_to'] ); ?>" class="frm_not_email_to frm_email_blur large-text <?php FrmAppHelper::maybe_add_tooltip( 'email_to', 'open' ) ?>" id="<?php echo esc_attr( $this->get_field_id( 'email_to' ) ) ?>" /> |
|
| 6 | 6 | </td> |
| 7 | 7 | <td class="frm_bcc_cc_container"> |
| 8 | 8 | <a href="javascript:void(0)" class="button frm_email_buttons frm_cc_button <?php |
| 9 | - echo ( ! empty($form_action->post_content['cc']) ? 'frm_hidden' : '' ); |
|
| 9 | + echo ( ! empty( $form_action->post_content['cc'] ) ? 'frm_hidden' : '' ); |
|
| 10 | 10 | ?>" data-emailrow="cc"><?php _e( 'CC', 'formidable' ) ?></a> |
| 11 | 11 | <a href="javascript:void(0)" class="button frm_email_buttons frm_bcc_button <?php |
| 12 | - echo ( ! empty($form_action->post_content['bcc']) ? 'frm_hidden' : '' ); |
|
| 12 | + echo ( ! empty( $form_action->post_content['bcc'] ) ? 'frm_hidden' : '' ); |
|
| 13 | 13 | ?>" data-emailrow="bcc"><?php _e( 'BCC', 'formidable' ) ?></a> |
| 14 | 14 | </td> |
| 15 | 15 | </tr> |
| 16 | -<tr class="frm_cc_row<?php echo empty( $form_action->post_content['cc'] ) ? ' frm_hidden' : ''; ?>" > |
|
| 17 | - <th><label <?php FrmAppHelper::maybe_add_tooltip('cc') ?>><?php _e( 'CC', 'formidable' ) ?></label> |
|
| 16 | +<tr class="frm_cc_row<?php echo empty( $form_action->post_content['cc'] ) ? ' frm_hidden' : ''; ?>" > |
|
| 17 | + <th><label <?php FrmAppHelper::maybe_add_tooltip( 'cc' ) ?>><?php _e( 'CC', 'formidable' ) ?></label> |
|
| 18 | 18 | </th> |
| 19 | 19 | <td class="frm_right_addon"> |
| 20 | - <input type="text" name="<?php echo esc_attr( $this->get_field_name('cc') ) ?>" value="<?php echo esc_attr( $form_action->post_content['cc'] ); ?>" class="frm_not_email_to large-text <?php FrmAppHelper::maybe_add_tooltip('cc', 'open') ?>" id="<?php echo esc_attr( $this->get_field_id('cc') ) ?>" /> |
|
| 20 | + <input type="text" name="<?php echo esc_attr( $this->get_field_name( 'cc' ) ) ?>" value="<?php echo esc_attr( $form_action->post_content['cc'] ); ?>" class="frm_not_email_to large-text <?php FrmAppHelper::maybe_add_tooltip( 'cc', 'open' ) ?>" id="<?php echo esc_attr( $this->get_field_id( 'cc' ) ) ?>" /> |
|
| 21 | 21 | <a href="javascript:void(0)" class="frm_icon_font frm_remove_field frm_cancel1_icon" data-emailrow="cc"></a> |
| 22 | 22 | </td> |
| 23 | 23 | <td></td> |
| 24 | 24 | </tr> |
| 25 | -<tr class="frm_bcc_row<?php echo empty( $form_action->post_content['bcc'] ) ? ' frm_hidden' : ''; ?>" > |
|
| 26 | - <th><label <?php FrmAppHelper::maybe_add_tooltip('bcc') ?>><?php _e( 'BCC', 'formidable' ) ?></label> |
|
| 25 | +<tr class="frm_bcc_row<?php echo empty( $form_action->post_content['bcc'] ) ? ' frm_hidden' : ''; ?>" > |
|
| 26 | + <th><label <?php FrmAppHelper::maybe_add_tooltip( 'bcc' ) ?>><?php _e( 'BCC', 'formidable' ) ?></label> |
|
| 27 | 27 | </th> |
| 28 | 28 | <td class="frm_right_addon"> |
| 29 | - <input type="text" name="<?php echo esc_attr( $this->get_field_name('bcc') ) ?>" value="<?php echo esc_attr( $form_action->post_content['bcc'] ); ?>" class="frm_not_email_to large-text <?php FrmAppHelper::maybe_add_tooltip('bcc', 'open') ?>" id="<?php echo esc_attr( $this->get_field_id('bcc') ) ?>" /> |
|
| 29 | + <input type="text" name="<?php echo esc_attr( $this->get_field_name( 'bcc' ) ) ?>" value="<?php echo esc_attr( $form_action->post_content['bcc'] ); ?>" class="frm_not_email_to large-text <?php FrmAppHelper::maybe_add_tooltip( 'bcc', 'open' ) ?>" id="<?php echo esc_attr( $this->get_field_id( 'bcc' ) ) ?>" /> |
|
| 30 | 30 | <a href="javascript:void(0)" class="frm_icon_font frm_remove_field frm_cancel1_icon" data-emailrow="bcc"></a> |
| 31 | 31 | </td> |
| 32 | 32 | <td></td> |
| 33 | 33 | </tr> |
| 34 | -<tr class="frm_reply_to_row<?php echo empty( $form_action->post_content['reply_to'] ) ? ' frm_hidden' : ''; ?>"> |
|
| 35 | - <th><label <?php FrmAppHelper::maybe_add_tooltip('reply_to') ?>><?php _e( 'Reply to', 'formidable' ) ?></label> |
|
| 34 | +<tr class="frm_reply_to_row<?php echo empty( $form_action->post_content['reply_to'] ) ? ' frm_hidden' : ''; ?>"> |
|
| 35 | + <th><label <?php FrmAppHelper::maybe_add_tooltip( 'reply_to' ) ?>><?php _e( 'Reply to', 'formidable' ) ?></label> |
|
| 36 | 36 | </th> |
| 37 | 37 | <td class="frm_right_addon"> |
| 38 | - <input type="text" name="<?php echo esc_attr( $this->get_field_name('reply_to') ) ?>" value="<?php echo esc_attr( $form_action->post_content['reply_to'] ); ?>" class="frm_not_email_to large-text <?php FrmAppHelper::maybe_add_tooltip('reply_to', 'open') ?>" id="<?php echo esc_attr( $this->get_field_id('reply_to') ) ?>" /> |
|
| 38 | + <input type="text" name="<?php echo esc_attr( $this->get_field_name( 'reply_to' ) ) ?>" value="<?php echo esc_attr( $form_action->post_content['reply_to'] ); ?>" class="frm_not_email_to large-text <?php FrmAppHelper::maybe_add_tooltip( 'reply_to', 'open' ) ?>" id="<?php echo esc_attr( $this->get_field_id( 'reply_to' ) ) ?>" /> |
|
| 39 | 39 | <a href="javascript:void(0)" class="frm_icon_font frm_remove_field frm_cancel1_icon" data-emailrow="reply_to"></a> |
| 40 | 40 | </td> |
| 41 | 41 | <td></td> |
| 42 | 42 | </tr> |
| 43 | 43 | <tr> |
| 44 | - <th><label <?php FrmAppHelper::maybe_add_tooltip('from') ?>><?php _e( 'From', 'formidable' ) ?></label></th> |
|
| 45 | - <td><input type="text" name="<?php echo esc_attr( $this->get_field_name('from') ) ?>" value="<?php echo esc_attr( $form_action->post_content['from'] ); ?>" class="frm_not_email_to frm_email_blur large-text <?php FrmAppHelper::maybe_add_tooltip('from', 'open') ?>" id="<?php echo esc_attr( $this->get_field_id('from') ) ?>" /> |
|
| 44 | + <th><label <?php FrmAppHelper::maybe_add_tooltip( 'from' ) ?>><?php _e( 'From', 'formidable' ) ?></label></th> |
|
| 45 | + <td><input type="text" name="<?php echo esc_attr( $this->get_field_name( 'from' ) ) ?>" value="<?php echo esc_attr( $form_action->post_content['from'] ); ?>" class="frm_not_email_to frm_email_blur large-text <?php FrmAppHelper::maybe_add_tooltip( 'from', 'open' ) ?>" id="<?php echo esc_attr( $this->get_field_id( 'from' ) ) ?>" /> |
|
| 46 | 46 | </td> |
| 47 | - <td><a href="javascript:void(0)" class="button frm_email_buttons frm_reply_to_button <?php echo ( ! empty( $form_action->post_content['reply_to'] ) ? 'frm_hidden' : '' ) ?>" data-emailrow="reply_to"><?php _e( 'Reply To', 'formidable' ) ?></a></td> |
|
| 47 | + <td><a href="javascript:void(0)" class="button frm_email_buttons frm_reply_to_button <?php echo ( ! empty( $form_action->post_content['reply_to'] ) ? 'frm_hidden' : '' ) ?>" data-emailrow="reply_to"><?php _e( 'Reply To', 'formidable' ) ?></a></td> |
|
| 48 | 48 | </tr> |
| 49 | 49 | <tr> |
| 50 | 50 | <td colspan="3" class="frm_no_top_padding"> |
| 51 | - <p><label <?php FrmAppHelper::maybe_add_tooltip('email_subject', '', $form->name) ?>><?php _e( 'Subject', 'formidable' ) ?></label><br/> |
|
| 52 | - <input type="text" name="<?php echo esc_attr( $this->get_field_name('email_subject') ) ?>" class="frm_not_email_subject large-text <?php FrmAppHelper::maybe_add_tooltip('email_subject', 'open', $form->name) ?>" id="<?php echo esc_attr( $this->get_field_id('email_subject') ) ?>" size="55" value="<?php echo esc_attr( $form_action->post_content['email_subject'] ); ?>" /></p> |
|
| 51 | + <p><label <?php FrmAppHelper::maybe_add_tooltip( 'email_subject', '', $form->name ) ?>><?php _e( 'Subject', 'formidable' ) ?></label><br/> |
|
| 52 | + <input type="text" name="<?php echo esc_attr( $this->get_field_name( 'email_subject' ) ) ?>" class="frm_not_email_subject large-text <?php FrmAppHelper::maybe_add_tooltip( 'email_subject', 'open', $form->name ) ?>" id="<?php echo esc_attr( $this->get_field_id( 'email_subject' ) ) ?>" size="55" value="<?php echo esc_attr( $form_action->post_content['email_subject'] ); ?>" /></p> |
|
| 53 | 53 | |
| 54 | 54 | <p><label><?php _e( 'Message', 'formidable' ) ?> </label><br/> |
| 55 | - <textarea name="<?php echo esc_attr( $this->get_field_name('email_message') ) ?>" class="frm_not_email_message large-text" id="<?php echo esc_attr( $this->get_field_id('email_message') ) ?>" cols="50" rows="5"><?php echo FrmAppHelper::esc_textarea($form_action->post_content['email_message']) ?></textarea></p> |
|
| 55 | + <textarea name="<?php echo esc_attr( $this->get_field_name( 'email_message' ) ) ?>" class="frm_not_email_message large-text" id="<?php echo esc_attr( $this->get_field_id( 'email_message' ) ) ?>" cols="50" rows="5"><?php echo FrmAppHelper::esc_textarea( $form_action->post_content['email_message'] ) ?></textarea></p> |
|
| 56 | 56 | |
| 57 | 57 | <h4><?php _e( 'Options', 'formidable' ) ?> </h4> |
| 58 | - <label for="<?php echo esc_attr( $this->get_field_id('inc_user_info') ) ?>"><input type="checkbox" name="<?php echo esc_attr( $this->get_field_name('inc_user_info') ) ?>" class="frm_not_inc_user_info" id="<?php echo esc_attr( $this->get_field_id('inc_user_info') ) ?>" value="1" <?php checked( $form_action->post_content['inc_user_info'], 1 ); ?> /> <?php _e( 'Append IP Address, Browser, and Referring URL to message', 'formidable' ) ?></label> |
|
| 58 | + <label for="<?php echo esc_attr( $this->get_field_id( 'inc_user_info' ) ) ?>"><input type="checkbox" name="<?php echo esc_attr( $this->get_field_name( 'inc_user_info' ) ) ?>" class="frm_not_inc_user_info" id="<?php echo esc_attr( $this->get_field_id( 'inc_user_info' ) ) ?>" value="1" <?php checked( $form_action->post_content['inc_user_info'], 1 ); ?> /> <?php _e( 'Append IP Address, Browser, and Referring URL to message', 'formidable' ) ?></label> |
|
| 59 | 59 | |
| 60 | - <p><label for="<?php echo esc_attr( $this->get_field_id('plain_text') ) ?>"><input type="checkbox" name="<?php echo esc_attr( $this->get_field_name('plain_text') ) ?>" id="<?php echo esc_attr( $this->get_field_id('plain_text') ) ?>" value="1" <?php checked( $form_action->post_content['plain_text'], 1 ); ?> /> <?php _e( 'Send Emails in Plain Text', 'formidable' ) ?></label></p> |
|
| 60 | + <p><label for="<?php echo esc_attr( $this->get_field_id( 'plain_text' ) ) ?>"><input type="checkbox" name="<?php echo esc_attr( $this->get_field_name( 'plain_text' ) ) ?>" id="<?php echo esc_attr( $this->get_field_id( 'plain_text' ) ) ?>" value="1" <?php checked( $form_action->post_content['plain_text'], 1 ); ?> /> <?php _e( 'Send Emails in Plain Text', 'formidable' ) ?></label></p> |
|
| 61 | 61 | </td> |
| 62 | 62 | </tr> |
| 63 | 63 | </table> |
@@ -4,30 +4,30 @@ |
||
| 4 | 4 | <?php |
| 5 | 5 | } |
| 6 | 6 | if ( isset( $message ) && $message != '' ) { |
| 7 | - if ( FrmAppHelper::is_admin() ) { |
|
| 7 | + if ( FrmAppHelper::is_admin() ) { |
|
| 8 | 8 | ?><div id="message" class="frm_message updated frm_msg_padding"><?php echo wp_kses_post( $message ) ?></div><?php |
| 9 | 9 | } else { |
| 10 | 10 | FrmFormsHelper::maybe_get_scroll_js( $form->id ); |
| 11 | 11 | |
| 12 | 12 | // we need to allow scripts here for javascript in the success message |
| 13 | 13 | echo $message; |
| 14 | - } |
|
| 14 | + } |
|
| 15 | 15 | } |
| 16 | 16 | |
| 17 | 17 | if ( isset($errors) && is_array( $errors ) && ! empty( $errors ) ) { |
| 18 | 18 | |
| 19 | 19 | if ( isset( $form ) && is_object( $form ) ) { |
| 20 | - FrmFormsHelper::get_scroll_js( $form->id ); |
|
| 20 | + FrmFormsHelper::get_scroll_js( $form->id ); |
|
| 21 | 21 | } ?> |
| 22 | 22 | <div class="<?php echo esc_attr( FrmFormsHelper::form_error_class() ) ?>"> |
| 23 | 23 | <?php |
| 24 | 24 | $img = ''; |
| 25 | 25 | if ( ! FrmAppHelper::is_admin() ) { |
| 26 | - $img = apply_filters('frm_error_icon', $img); |
|
| 27 | - if ( $img && ! empty($img) ) { |
|
| 28 | - ?><img src="<?php echo esc_attr( $img ) ?>" alt="" /> |
|
| 26 | + $img = apply_filters('frm_error_icon', $img); |
|
| 27 | + if ( $img && ! empty($img) ) { |
|
| 28 | + ?><img src="<?php echo esc_attr( $img ) ?>" alt="" /> |
|
| 29 | 29 | <?php |
| 30 | - } |
|
| 30 | + } |
|
| 31 | 31 | } |
| 32 | 32 | |
| 33 | 33 | FrmFormsHelper::show_errors( compact( 'img', 'errors', 'form' ) ); |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -if ( isset($include_extra_container) ) { ?> |
|
| 2 | +if ( isset( $include_extra_container ) ) { ?> |
|
| 3 | 3 | <div class="<?php echo esc_attr( $include_extra_container ) ?>" id="frm_form_<?php echo esc_attr( $form->id ) ?>_container"> |
| 4 | 4 | <?php |
| 5 | 5 | } |
@@ -14,7 +14,7 @@ discard block |
||
| 14 | 14 | } |
| 15 | 15 | } |
| 16 | 16 | |
| 17 | -if ( isset($errors) && is_array( $errors ) && ! empty( $errors ) ) { |
|
| 17 | +if ( isset( $errors ) && is_array( $errors ) && ! empty( $errors ) ) { |
|
| 18 | 18 | |
| 19 | 19 | if ( isset( $form ) && is_object( $form ) ) { |
| 20 | 20 | FrmFormsHelper::get_scroll_js( $form->id ); |
@@ -23,8 +23,8 @@ discard block |
||
| 23 | 23 | <?php |
| 24 | 24 | $img = ''; |
| 25 | 25 | if ( ! FrmAppHelper::is_admin() ) { |
| 26 | - $img = apply_filters('frm_error_icon', $img); |
|
| 27 | - if ( $img && ! empty($img) ) { |
|
| 26 | + $img = apply_filters( 'frm_error_icon', $img ); |
|
| 27 | + if ( $img && ! empty( $img ) ) { |
|
| 28 | 28 | ?><img src="<?php echo esc_attr( $img ) ?>" alt="" /> |
| 29 | 29 | <?php |
| 30 | 30 | } |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | <?php |
| 38 | 38 | } |
| 39 | 39 | |
| 40 | -if ( isset($include_extra_container) ) { ?> |
|
| 40 | +if ( isset( $include_extra_container ) ) { ?> |
|
| 41 | 41 | </div> |
| 42 | 42 | <?php |
| 43 | 43 | } |