@@ -126,19 +126,19 @@ |
||
126 | 126 | } |
127 | 127 | |
128 | 128 | /** |
129 | - * Flatten multi-dimensional array for multi-file upload fields |
|
130 | - * @since 2.0.9 |
|
131 | - */ |
|
129 | + * Flatten multi-dimensional array for multi-file upload fields |
|
130 | + * @since 2.0.9 |
|
131 | + */ |
|
132 | 132 | public static function flatten_multi_file_upload( $field, &$val ) { |
133 | 133 | if ( $field->type == 'file' && FrmField::is_option_true( $field, 'multiple' ) ) { |
134 | 134 | $val = FrmAppHelper::array_flatten( $val ); |
135 | 135 | } |
136 | 136 | } |
137 | 137 | |
138 | - /** |
|
139 | - * Replace returns with HTML line breaks for display |
|
140 | - * @since 2.0.9 |
|
141 | - */ |
|
138 | + /** |
|
139 | + * Replace returns with HTML line breaks for display |
|
140 | + * @since 2.0.9 |
|
141 | + */ |
|
142 | 142 | public static function textarea_display_value( $type, $plain_text, &$value ) { |
143 | 143 | if ( $type == 'textarea' && ! $plain_text ) { |
144 | 144 | $value = str_replace( array( "\r\n", "\r", "\n" ), ' <br/>', $value ); |
@@ -1,12 +1,12 @@ |
||
1 | 1 | <?php |
2 | 2 | if ( ! isset( $entry) ) { |
3 | - $entry = $record; |
|
3 | + $entry = $record; |
|
4 | 4 | } ?> |
5 | 5 | |
6 | 6 | <div class="misc-pub-section curtime misc-pub-curtime"> |
7 | 7 | <span id="timestamp"> |
8 | 8 | <?php |
9 | - $date_format = __( 'M j, Y @ G:i' ); |
|
9 | + $date_format = __( 'M j, Y @ G:i' ); |
|
10 | 10 | printf( __( 'Published on: <b>%1$s</b>' ), FrmAppHelper::get_localized_date( $date_format, $entry->created_at ) ); ?> |
11 | 11 | </span> |
12 | 12 | </div> |
@@ -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 | - FrmFormsHelper::get_scroll_js($form->id); |
|
10 | + FrmFormsHelper::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="frm_error_style"> |
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' ) ); |
@@ -5,7 +5,7 @@ discard block |
||
5 | 5 | </div> |
6 | 6 | </div> |
7 | 7 | <?php |
8 | - return; |
|
8 | + return; |
|
9 | 9 | } |
10 | 10 | |
11 | 11 | global $frm_vars; |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | } else { |
39 | 39 | do_action( 'frm_show_other_field_type', $field, $form, array( 'action' => $form_action ) ); |
40 | 40 | } |
41 | - do_action('frm_get_field_scripts', $field, $form, $form->id); |
|
41 | + do_action('frm_get_field_scripts', $field, $form, $form->id); |
|
42 | 42 | } |
43 | 43 | } |
44 | 44 | |
@@ -63,8 +63,8 @@ discard block |
||
63 | 63 | |
64 | 64 | // close open collapsible toggle div |
65 | 65 | if ( isset($frm_vars['collapse_div']) && $frm_vars['collapse_div'] ) { |
66 | - echo "</div>\n"; |
|
67 | - unset($frm_vars['collapse_div']); |
|
66 | + echo "</div>\n"; |
|
67 | + unset($frm_vars['collapse_div']); |
|
68 | 68 | } |
69 | 69 | |
70 | 70 | echo FrmFormsHelper::replace_shortcodes($values['after_html'], $form); |
@@ -77,8 +77,8 @@ discard block |
||
77 | 77 | } |
78 | 78 | |
79 | 79 | if ( FrmForm::show_submit( $form ) ) { |
80 | - unset($values['fields']); |
|
81 | - FrmFormsHelper::get_custom_submit($values['submit_html'], $form, $submit, $form_action, $values); |
|
80 | + unset($values['fields']); |
|
81 | + FrmFormsHelper::get_custom_submit($values['submit_html'], $form, $submit, $form_action, $values); |
|
82 | 82 | } |
83 | 83 | ?> |
84 | 84 | </fieldset> |
@@ -15,43 +15,43 @@ |
||
15 | 15 | <div class="inside"> |
16 | 16 | <table class="form-table"><tbody> |
17 | 17 | <?php |
18 | - $first_h3 = 'frm_first_h3'; |
|
19 | - foreach ( $fields as $field ) { |
|
18 | + $first_h3 = 'frm_first_h3'; |
|
19 | + foreach ( $fields as $field ) { |
|
20 | 20 | if ( in_array( $field->type, array( 'captcha', 'html', 'end_divider', 'form' ) ) ) { |
21 | - continue; |
|
22 | - } |
|
21 | + continue; |
|
22 | + } |
|
23 | 23 | |
24 | - if ( in_array($field->type, array( 'break', 'divider' ) ) ) { |
|
25 | - ?> |
|
24 | + if ( in_array($field->type, array( 'break', 'divider' ) ) ) { |
|
25 | + ?> |
|
26 | 26 | </tbody></table> |
27 | 27 | <br/><h3 class="<?php echo esc_attr( $first_h3 ) ?>"><?php echo esc_html( $field->name ) ?></h3> |
28 | 28 | <table class="form-table"><tbody> |
29 | 29 | <?php |
30 | - $first_h3 = ''; |
|
31 | - } else { |
|
32 | - ?> |
|
30 | + $first_h3 = ''; |
|
31 | + } else { |
|
32 | + ?> |
|
33 | 33 | <tr> |
34 | 34 | <th scope="row"><?php echo esc_html( $field->name ) ?>:</th> |
35 | 35 | <td> |
36 | 36 | <?php |
37 | 37 | $embedded_field_id = ( $entry->form_id != $field->form_id ) ? 'form' . $field->form_id : 0; |
38 | - $atts = array( |
|
39 | - 'type' => $field->type, 'post_id' => $entry->post_id, |
|
40 | - 'show_filename' => true, 'show_icon' => true, 'entry_id' => $entry->id, |
|
41 | - 'embedded_field_id' => $embedded_field_id, |
|
42 | - ); |
|
43 | - echo $display_value = FrmEntriesHelper::prepare_display_value($entry, $field, $atts); |
|
38 | + $atts = array( |
|
39 | + 'type' => $field->type, 'post_id' => $entry->post_id, |
|
40 | + 'show_filename' => true, 'show_icon' => true, 'entry_id' => $entry->id, |
|
41 | + 'embedded_field_id' => $embedded_field_id, |
|
42 | + ); |
|
43 | + echo $display_value = FrmEntriesHelper::prepare_display_value($entry, $field, $atts); |
|
44 | 44 | |
45 | - if ( is_email($display_value) && ! in_array($display_value, $to_emails) ) { |
|
46 | - $to_emails[] = $display_value; |
|
47 | - } |
|
48 | - ?> |
|
45 | + if ( is_email($display_value) && ! in_array($display_value, $to_emails) ) { |
|
46 | + $to_emails[] = $display_value; |
|
47 | + } |
|
48 | + ?> |
|
49 | 49 | </td> |
50 | 50 | </tr> |
51 | 51 | <?php } |
52 | - } |
|
52 | + } |
|
53 | 53 | |
54 | - ?> |
|
54 | + ?> |
|
55 | 55 | |
56 | 56 | <?php if ( $entry->parent_item_id ) { ?> |
57 | 57 | <tr><th><?php _e( 'Parent Entry ID', 'formidable' ) ?>:</th> |
@@ -66,18 +66,18 @@ |
||
66 | 66 | <?php } ?> |
67 | 67 | |
68 | 68 | <?php |
69 | - foreach ( (array) $data as $k => $d ) { |
|
69 | + foreach ( (array) $data as $k => $d ) { |
|
70 | 70 | if ( in_array( $k, array( 'browser', 'referrer' ) ) ) { |
71 | - continue; |
|
72 | - } |
|
73 | - ?> |
|
71 | + continue; |
|
72 | + } |
|
73 | + ?> |
|
74 | 74 | <div class="misc-pub-section"> |
75 | 75 | <b><?php echo sanitize_text_field( ucfirst( str_replace( '-', ' ', $k ) ) ); ?></b>: |
76 | 76 | <?php echo wp_kses_post( implode( ', ', (array) $d ) ); ?> |
77 | 77 | </div> |
78 | 78 | <?php |
79 | - unset($k, $d); |
|
80 | - } |
|
81 | - ?> |
|
79 | + unset($k, $d); |
|
80 | + } |
|
81 | + ?> |
|
82 | 82 | </div> |
83 | 83 | </div> |
@@ -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_bcc_button <?php |
9 | - echo ( ! empty($form_action->post_content['bcc']) ? 'frm_hidden' : '' ); |
|
10 | - ?>" data-emailrow="bcc"><?php _e( 'BCC', 'formidable' ) ?></a> |
|
9 | + echo ( ! empty($form_action->post_content['bcc']) ? 'frm_hidden' : '' ); |
|
10 | + ?>" data-emailrow="bcc"><?php _e( 'BCC', 'formidable' ) ?></a> |
|
11 | 11 | <a href="javascript:void(0)" class="button frm_email_buttons frm_cc_button <?php |
12 | - echo ( ! empty($form_action->post_content['cc']) ? 'frm_hidden' : '' ); |
|
13 | - ?>" data-emailrow="cc"><?php _e( 'CC', 'formidable' ) ?></a> |
|
12 | + echo ( ! empty($form_action->post_content['cc']) ? 'frm_hidden' : '' ); |
|
13 | + ?>" data-emailrow="cc"><?php _e( 'CC', 'formidable' ) ?></a> |
|
14 | 14 | </td> |
15 | 15 | </tr> |
16 | 16 | <tr id="frm_cc_row" class="<?php echo empty( $form_action->post_content['cc'] ) ? 'frm_hidden' : ''; ?>" > |
@@ -3,7 +3,7 @@ |
||
3 | 3 | class FrmDefPostAction extends FrmFormAction { |
4 | 4 | public function __construct() { |
5 | 5 | $action_ops = FrmFormAction::default_action_opts(); |
6 | - $action_ops['classes'] = 'ab-icon frm_dashicon_font dashicons-before'; |
|
6 | + $action_ops['classes'] = 'ab-icon frm_dashicon_font dashicons-before'; |
|
7 | 7 | |
8 | 8 | parent::__construct( 'wppost', __( 'Create Post', 'formidable' ), $action_ops ); |
9 | 9 | } |
@@ -12,15 +12,15 @@ discard block |
||
12 | 12 | <?php } ?> |
13 | 13 | <div id="preview-action"> |
14 | 14 | <?php |
15 | - if ( ! isset($hide_preview) || ! $hide_preview ) { |
|
15 | + if ( ! isset($hide_preview) || ! $hide_preview ) { |
|
16 | 16 | |
17 | - if ( isset($values['form_key']) ) { |
|
18 | - $frm_settings = FrmAppHelper::get_settings(); |
|
19 | - if ( empty($frm_settings->preview_page_id) ) { ?> |
|
17 | + if ( isset($values['form_key']) ) { |
|
18 | + $frm_settings = FrmAppHelper::get_settings(); |
|
19 | + if ( empty($frm_settings->preview_page_id) ) { ?> |
|
20 | 20 | <a href="<?php echo esc_url( FrmFormsHelper::get_direct_link($values['form_key']) ); ?>" class="preview button" target="wp-frm-preview-<?php echo esc_attr( $id ) ?>"><?php _e( 'Preview', 'formidable' ) ?></a> |
21 | 21 | <?php |
22 | - } else { |
|
23 | - ?> |
|
22 | + } else { |
|
23 | + ?> |
|
24 | 24 | <div class="preview dropdown"> |
25 | 25 | <a href="#" id="frm-previewDrop" class="frm-dropdown-toggle button" data-toggle="dropdown"><?php _e( 'Preview', 'formidable' ) ?> <b class="caret"></b></a> |
26 | 26 | |
@@ -30,8 +30,8 @@ discard block |
||
30 | 30 | </ul> |
31 | 31 | </div> |
32 | 32 | <?php } |
33 | - } |
|
34 | - } ?> |
|
33 | + } |
|
34 | + } ?> |
|
35 | 35 | </div> |
36 | 36 | <?php if ( 'draft' == $values['status'] ) { ?> |
37 | 37 | <div class="clear"></div> |