@@ -21,15 +21,15 @@ |
||
21 | 21 | </div> |
22 | 22 | <div class="widget-inside frm_hidden"> |
23 | 23 | <?php |
24 | - if ( defined('DOING_AJAX') || ! $action_control->action_options['ajax_load'] ) { |
|
25 | - // only load settings if they are just added or are open |
|
26 | - include(dirname(__FILE__) .'/_action_inside.php'); |
|
27 | - } else { |
|
28 | - // include hidden settings so action won't get lost on update ?> |
|
24 | + if ( defined('DOING_AJAX') || ! $action_control->action_options['ajax_load'] ) { |
|
25 | + // only load settings if they are just added or are open |
|
26 | + include(dirname(__FILE__) .'/_action_inside.php'); |
|
27 | + } else { |
|
28 | + // include hidden settings so action won't get lost on update ?> |
|
29 | 29 | <input type="hidden" name="<?php echo esc_attr( $action_control->get_field_name('post_excerpt', '') ) ?>" class="frm_action_name" value="<?php echo esc_attr( $form_action->post_excerpt ); ?>" /> |
30 | 30 | <input type="hidden" name="<?php echo esc_attr( $action_control->get_field_name('ID', '') ) ?>" value="<?php echo esc_attr( $form_action->ID ); ?>" /> |
31 | 31 | <?php |
32 | - } ?> |
|
32 | + } ?> |
|
33 | 33 | </div> |
34 | 34 | <style type="text/css"> |
35 | 35 | .frm_no_actions{ |
@@ -1,8 +1,8 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | $a = FrmAppHelper::simple_get( 't', 'sanitize_title', 'advanced_settings' ); |
3 | 3 | |
4 | -$form_action = apply_filters('frm_form_action_settings', $form_action, $form_action->post_excerpt); |
|
5 | -$form_action = apply_filters('frm_form_'. $form_action->post_excerpt .'_action_settings', $form_action); |
|
4 | +$form_action = apply_filters( 'frm_form_action_settings', $form_action, $form_action->post_excerpt ); |
|
5 | +$form_action = apply_filters( 'frm_form_' . $form_action->post_excerpt . '_action_settings', $form_action ); |
|
6 | 6 | |
7 | 7 | ?> |
8 | 8 | <div id="frm_form_action_<?php echo esc_attr( $action_key ) ?>" class="widget frm_form_action_settings frm_single_<?php echo esc_attr( $form_action->post_excerpt ) ?>_settings" data-actionkey="<?php echo esc_attr( $action_key ) ?>"> |
@@ -21,13 +21,13 @@ discard block |
||
21 | 21 | </div> |
22 | 22 | <div class="widget-inside frm_hidden"> |
23 | 23 | <?php |
24 | - if ( defined('DOING_AJAX') || ! $action_control->action_options['ajax_load'] ) { |
|
24 | + if ( defined( 'DOING_AJAX' ) || ! $action_control->action_options['ajax_load'] ) { |
|
25 | 25 | // only load settings if they are just added or are open |
26 | - include(dirname(__FILE__) .'/_action_inside.php'); |
|
26 | + include( dirname( __FILE__ ) . '/_action_inside.php' ); |
|
27 | 27 | } else { |
28 | 28 | // include hidden settings so action won't get lost on update ?> |
29 | - <input type="hidden" name="<?php echo esc_attr( $action_control->get_field_name('post_excerpt', '') ) ?>" class="frm_action_name" value="<?php echo esc_attr( $form_action->post_excerpt ); ?>" /> |
|
30 | - <input type="hidden" name="<?php echo esc_attr( $action_control->get_field_name('ID', '') ) ?>" value="<?php echo esc_attr( $form_action->ID ); ?>" /> |
|
29 | + <input type="hidden" name="<?php echo esc_attr( $action_control->get_field_name( 'post_excerpt', '' ) ) ?>" class="frm_action_name" value="<?php echo esc_attr( $form_action->post_excerpt ); ?>" /> |
|
30 | + <input type="hidden" name="<?php echo esc_attr( $action_control->get_field_name( 'ID', '' ) ) ?>" value="<?php echo esc_attr( $form_action->ID ); ?>" /> |
|
31 | 31 | <?php |
32 | 32 | } ?> |
33 | 33 | </div> |
@@ -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> |
@@ -6,18 +6,18 @@ discard block |
||
6 | 6 | <div id="minor-publishing-actions"> |
7 | 7 | <?php if ( 'draft' == $values['status'] ) { ?> |
8 | 8 | <div id="save-action"> |
9 | - <input type="button" value="<?php esc_html_e( 'Save Draft', 'formidable' ); ?>" class="frm_submit_form frm_submit_<?php echo ( isset($values['ajax_load']) && $values['ajax_load'] ) ? '': 'no_'; ?>ajax button-secondary button-large" id="save-post" /> |
|
9 | + <input type="button" value="<?php esc_html_e( 'Save Draft', 'formidable' ); ?>" class="frm_submit_form frm_submit_<?php echo ( isset( $values['ajax_load'] ) && $values['ajax_load'] ) ? '' : 'no_'; ?>ajax button-secondary button-large" id="save-post" /> |
|
10 | 10 | <span class="spinner"></span> |
11 | 11 | </div> |
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']) ) { |
|
17 | + if ( isset( $values['form_key'] ) ) { |
|
18 | 18 | $frm_settings = FrmAppHelper::get_settings(); |
19 | - if ( empty($frm_settings->preview_page_id) ) { ?> |
|
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> |
|
19 | + if ( empty( $frm_settings->preview_page_id ) ) { ?> |
|
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 | 22 | } else { |
23 | 23 | ?> |
@@ -25,8 +25,8 @@ discard block |
||
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 | |
27 | 27 | <ul class="frm-dropdown-menu pull-right" role="menu" aria-labelledby="frm-previewDrop"> |
28 | - <li><a href="<?php echo esc_url( FrmFormsHelper::get_direct_link($values['form_key']) ); ?>" target="_blank"><?php _e( 'On Blank Page', 'formidable' ) ?></a></li> |
|
29 | - <li><a href="<?php echo esc_url( add_query_arg('form', $values['form_key'], get_permalink( $frm_settings->preview_page_id )) ) ?>" target="_blank"><?php _e( 'In Theme', 'formidable' ) ?></a></li> |
|
28 | + <li><a href="<?php echo esc_url( FrmFormsHelper::get_direct_link( $values['form_key'] ) ); ?>" target="_blank"><?php _e( 'On Blank Page', 'formidable' ) ?></a></li> |
|
29 | + <li><a href="<?php echo esc_url( add_query_arg( 'form', $values['form_key'], get_permalink( $frm_settings->preview_page_id ) ) ) ?>" target="_blank"><?php _e( 'In Theme', 'formidable' ) ?></a></li> |
|
30 | 30 | </ul> |
31 | 31 | </div> |
32 | 32 | <?php } |
@@ -62,24 +62,24 @@ discard block |
||
62 | 62 | |
63 | 63 | |
64 | 64 | <div class="misc-pub-section misc-pub-post-status"><label for="post_status"><?php _e( 'Status', 'formidable' ) ?>:</label> |
65 | - <span id="form-status-display"><?php echo FrmFormsHelper::status_nice_name($values['status']); ?></span> |
|
65 | + <span id="form-status-display"><?php echo FrmFormsHelper::status_nice_name( $values['status'] ); ?></span> |
|
66 | 66 | <?php if ( 'draft' != $values['status'] && ( ! isset( $_GET['frm_action'] ) || 'settings' != FrmAppHelper::simple_get( 'frm_action', 'sanitize_title' ) ) ) { ?> |
67 | - <a href="#post_status" class="edit-form-status hide-if-no-js" data-slidedown="form-status-select"><span aria-hidden="true"><?php _e( 'Edit') ?></span> <span class="screen-reader-text"><?php _e( 'Edit status') ?></span></a> |
|
67 | + <a href="#post_status" class="edit-form-status hide-if-no-js" data-slidedown="form-status-select"><span aria-hidden="true"><?php _e( 'Edit' ) ?></span> <span class="screen-reader-text"><?php _e( 'Edit status' ) ?></span></a> |
|
68 | 68 | |
69 | 69 | <div id="form-status-select" class="frm_hidden"> |
70 | 70 | <select name="frm_change_status" id="form_change_status"> |
71 | - <option value="published" <?php selected($values['status'], 'published') ?>><?php _e( 'Published' ) ?></option> |
|
72 | - <option value="draft" <?php selected($values['status'], 'draft') ?>><?php _e( 'Draft' ) ?></option> |
|
71 | + <option value="published" <?php selected( $values['status'], 'published' ) ?>><?php _e( 'Published' ) ?></option> |
|
72 | + <option value="draft" <?php selected( $values['status'], 'draft' ) ?>><?php _e( 'Draft' ) ?></option> |
|
73 | 73 | </select> |
74 | - <a href="#post_status" class="save-form-status hide-if-no-js button"><?php _e( 'OK') ?></a> |
|
75 | - <a href="#post_status" class="cancel-form-status hide-if-no-js button-cancel" data-slideup="form-status-select"><?php _e( 'Cancel') ?></a> |
|
74 | + <a href="#post_status" class="save-form-status hide-if-no-js button"><?php _e( 'OK' ) ?></a> |
|
75 | + <a href="#post_status" class="cancel-form-status hide-if-no-js button-cancel" data-slideup="form-status-select"><?php _e( 'Cancel' ) ?></a> |
|
76 | 76 | </div> |
77 | 77 | <?php } ?> |
78 | 78 | </div><!-- .misc-pub-section --> |
79 | 79 | |
80 | - <?php if ( has_action('frm_settings_buttons') ) { ?> |
|
80 | + <?php if ( has_action( 'frm_settings_buttons' ) ) { ?> |
|
81 | 81 | <div class="misc-pub-section"> |
82 | - <?php do_action('frm_settings_buttons', $values); ?> |
|
82 | + <?php do_action( 'frm_settings_buttons', $values ); ?> |
|
83 | 83 | <div class="clear"></div> |
84 | 84 | </div> |
85 | 85 | <?php } ?> |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | |
91 | 91 | <div id="major-publishing-actions"> |
92 | 92 | <div id="delete-action"> |
93 | - <?php echo FrmFormsHelper::delete_trash_link($id, $values['status']); ?> |
|
93 | + <?php echo FrmFormsHelper::delete_trash_link( $id, $values['status'] ); ?> |
|
94 | 94 | </div> |
95 | 95 | |
96 | 96 | <div id="publishing-action"> |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | <?php if ( 'settings' == FrmAppHelper::simple_get( 'frm_action', 'sanitize_title' ) ) { ?> |
99 | 99 | <input type="button" value="<?php esc_attr_e( 'Update', 'formidable' ); ?>" class="frm_submit_form frm_submit_settings_btn button-primary button-large" id="frm_submit_side_top" /> |
100 | 100 | <?php } else { ?> |
101 | - <input type="button" value="<?php echo isset($button) ? esc_attr($button) : __( 'Update', 'formidable' ); ?>" class="frm_submit_form frm_submit_<?php echo ( isset($values['ajax_load']) && $values['ajax_load'] ) ? '': 'no_'; ?>ajax button-primary button-large" id="frm_submit_side_top" /> |
|
101 | + <input type="button" value="<?php echo isset( $button ) ? esc_attr( $button ) : __( 'Update', 'formidable' ); ?>" class="frm_submit_form frm_submit_<?php echo ( isset( $values['ajax_load'] ) && $values['ajax_load'] ) ? '' : 'no_'; ?>ajax button-primary button-large" id="frm_submit_side_top" /> |
|
102 | 102 | <?php } ?> |
103 | 103 | </div> |
104 | 104 |
@@ -62,16 +62,16 @@ discard block |
||
62 | 62 | </ul> |
63 | 63 | </li> |
64 | 64 | <?php |
65 | - } else { |
|
66 | - $field_label = $field_type; |
|
67 | - ?> |
|
65 | + } else { |
|
66 | + $field_label = $field_type; |
|
67 | + ?> |
|
68 | 68 | <li class="frmbutton button <?php echo esc_attr( $col_class .' '. $no_allow_class .' frm_t'. $field_key ) ?>" id="<?php echo esc_attr( $field_key ) ?>"><?php echo apply_filters( 'frmpro_field_links', $field_label, $id, $field_key ) ?></li> |
69 | 69 | <?php |
70 | - } |
|
70 | + } |
|
71 | 71 | |
72 | - $col_class = empty($col_class) ? 'frm_col_one' : ''; |
|
73 | - unset($field_key, $field_type, $field_label); |
|
74 | - } ?> |
|
72 | + $col_class = empty($col_class) ? 'frm_col_one' : ''; |
|
73 | + unset($field_key, $field_type, $field_label); |
|
74 | + } ?> |
|
75 | 75 | </ul> |
76 | 76 | <div class="clear"></div> |
77 | 77 | </div> |
@@ -81,33 +81,33 @@ discard block |
||
81 | 81 | <p class="howto"><?php _e( 'Add classes in the "CSS layout classes" field option', 'formidable' ) ?></p> |
82 | 82 | <ul class="frm_code_list"> |
83 | 83 | <?php $classes = array( |
84 | - 'frm_first' => array( |
|
85 | - 'label' => __( 'First', 'formidable' ), |
|
86 | - 'title' => __( 'Add this to the first field in each row along with a width. ie frm_first frm_third', 'formidable' ), |
|
87 | - ), |
|
88 | - 'frm_half' => __( '1/2', 'formidable' ), |
|
89 | - 'frm_third' => __( '1/3', 'formidable' ), |
|
90 | - 'frm_two_thirds' => __( '2/3', 'formidable' ), |
|
91 | - 'frm_fourth' => __( '1/4', 'formidable' ), |
|
84 | + 'frm_first' => array( |
|
85 | + 'label' => __( 'First', 'formidable' ), |
|
86 | + 'title' => __( 'Add this to the first field in each row along with a width. ie frm_first frm_third', 'formidable' ), |
|
87 | + ), |
|
88 | + 'frm_half' => __( '1/2', 'formidable' ), |
|
89 | + 'frm_third' => __( '1/3', 'formidable' ), |
|
90 | + 'frm_two_thirds' => __( '2/3', 'formidable' ), |
|
91 | + 'frm_fourth' => __( '1/4', 'formidable' ), |
|
92 | 92 | 'frm_three_fourths' => __( '3/4', 'formidable' ), |
93 | - 'frm_fifth' => __( '1/5', 'formidable' ), |
|
93 | + 'frm_fifth' => __( '1/5', 'formidable' ), |
|
94 | 94 | 'frm_two_fifths' => __( '2/5', 'formidable' ), |
95 | - 'frm_sixth' => __( '1/6', 'formidable' ), |
|
96 | - 'frm_seventh' => __( '1/7', 'formidable' ), |
|
95 | + 'frm_sixth' => __( '1/6', 'formidable' ), |
|
96 | + 'frm_seventh' => __( '1/7', 'formidable' ), |
|
97 | 97 | 'frm_eighth' => __( '1/8', 'formidable' ), |
98 | 98 | 'frm_alignright' => __( 'Right', 'formidable' ), |
99 | - 'frm_inline' => array( |
|
100 | - 'label' => __( 'Inline', 'formidable' ), |
|
99 | + 'frm_inline' => array( |
|
100 | + 'label' => __( 'Inline', 'formidable' ), |
|
101 | 101 | 'title' => __( 'Align fields in a row without a specific width.', 'formidable' ), |
102 | - ), |
|
102 | + ), |
|
103 | 103 | |
104 | - 'frm_full' => array( |
|
105 | - 'label' => __( '100% width', 'formidable' ), |
|
104 | + 'frm_full' => array( |
|
105 | + 'label' => __( '100% width', 'formidable' ), |
|
106 | 106 | 'title' => __( 'Force the field to fill the full space with 100% width.', 'formidable' ), |
107 | - ), |
|
108 | - 'frm_grid_first' => __( 'First Grid Row', 'formidable' ), |
|
109 | - 'frm_grid' => __( 'Even Grid Row', 'formidable' ), |
|
110 | - 'frm_grid_odd' => __( 'Odd Grid Row', 'formidable' ), |
|
107 | + ), |
|
108 | + 'frm_grid_first' => __( 'First Grid Row', 'formidable' ), |
|
109 | + 'frm_grid' => __( 'Even Grid Row', 'formidable' ), |
|
110 | + 'frm_grid_odd' => __( 'Odd Grid Row', 'formidable' ), |
|
111 | 111 | 'frm_two_col' => array( 'label' => __( '2 Col Options', 'formidable' ), 'title' => __( 'Put your radio button or checkbox options into two columns.', 'formidable' ) ), |
112 | 112 | 'frm_three_col' => array( 'label' => __( '3 Col Options', 'formidable' ), 'title' => __( 'Put your radio button or checkbox options into three columns.', 'formidable' ) ), |
113 | 113 | 'frm_four_col' => array( 'label' => __( '4 Col Options', 'formidable' ), 'title' => __( 'Put your radio button or checkbox options into four columns.', 'formidable' ) ), |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | 'frm_scroll_box' => array( 'label' => __( 'Scroll Box', 'formidable' ), 'title' => __( 'If you have many checkbox or radio button options, you may add this class to allow your user to easily scroll through the options.', 'formidable' ) ), |
116 | 116 | 'frm_text_block' => array( 'label' => __( 'Align Option Text', 'formidable' ), 'title' => __( 'If you have a large amount of text in a checkbox or radio button field, use this class to align all the text in a block.', 'formidable' ) ), |
117 | 117 | 'frm_capitalize' => array( 'label' => __( 'Capitalize', 'formidable' ), 'title' => __( 'Automatically capitalize the first letter in each word.', 'formidable' ) ), |
118 | - ); |
|
118 | + ); |
|
119 | 119 | |
120 | 120 | $classes = apply_filters( 'frm_layout_classes', $classes ); |
121 | 121 | $col = 'one'; |
@@ -132,11 +132,11 @@ discard block |
||
132 | 132 | } ?>> |
133 | 133 | <?php |
134 | 134 | if ( empty( $d ) ) { |
135 | - echo $c; |
|
135 | + echo $c; |
|
136 | 136 | } else if ( ! is_array( $d ) ) { |
137 | - echo $d; |
|
137 | + echo $d; |
|
138 | 138 | } else if ( isset( $d['label'] ) ) { |
139 | - echo $d['label']; |
|
139 | + echo $d['label']; |
|
140 | 140 | } |
141 | 141 | ?> |
142 | 142 | </a> |
@@ -5,7 +5,7 @@ discard block |
||
5 | 5 | $action = FrmAppHelper::get_param( $action, '', 'get', 'sanitize_title' ); |
6 | 6 | $button = ( $action == 'new' || $action == 'duplicate' ) ? __( 'Create', 'formidable' ) : __( 'Update', 'formidable' ); |
7 | 7 | |
8 | -include(FrmAppHelper::plugin_path() .'/classes/views/frm-forms/_publish_box.php'); |
|
8 | +include( FrmAppHelper::plugin_path() . '/classes/views/frm-forms/_publish_box.php' ); |
|
9 | 9 | ?> |
10 | 10 | |
11 | 11 | <div id="frm_position_ele"></div> |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | <ul id="category-tabs" class="category-tabs frm-category-tabs"> |
18 | 18 | <li class="tabs" ><a href="#frm-insert-fields" id="frm_insert_fields_tab"><?php _e( 'Fields', 'formidable' ); ?></a></li> |
19 | 19 | <li class="hide-if-no-js"><a href="#frm-layout-classes" id="frm_layout_classes_tab" class="frm_help" title="<?php esc_attr_e( 'Open the Field Options and click on the CSS Layout Classes option to enable this tab', 'formidable' ) ?>"><?php _e( 'Layout', 'formidable' ); ?></a></li> |
20 | -<?php do_action('frm_extra_form_instruction_tabs'); ?> |
|
20 | +<?php do_action( 'frm_extra_form_instruction_tabs' ); ?> |
|
21 | 21 | </ul> |
22 | 22 | |
23 | 23 | <div id="frm-insert-fields" class="tabs-panel"> |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | <?php |
26 | 26 | $col_class = 'frm_col_one'; |
27 | 27 | foreach ( $frm_field_selection as $field_key => $field_type ) { ?> |
28 | - <li class="frmbutton button <?php echo esc_attr( $col_class .' frm_t'. $field_key ) ?>" id="<?php echo esc_attr( $field_key ) ?>"><a href="#" class="frm_add_field"><?php echo esc_html( $field_type ) ?></a></li> |
|
28 | + <li class="frmbutton button <?php echo esc_attr( $col_class . ' frm_t' . $field_key ) ?>" id="<?php echo esc_attr( $field_key ) ?>"><a href="#" class="frm_add_field"><?php echo esc_html( $field_type ) ?></a></li> |
|
29 | 29 | <?php |
30 | 30 | $col_class = empty( $col_class ) ? 'frm_col_one' : ''; |
31 | 31 | unset( $field_key, $field_type ); |
@@ -44,19 +44,19 @@ discard block |
||
44 | 44 | $field_label = $field_type['name']; |
45 | 45 | |
46 | 46 | if ( isset( $field_type['switch_from'] ) ) { ?> |
47 | - <li class="frmbutton button <?php echo esc_attr( $col_class .' '. $no_allow_class .' frm_t'. $field_key ) ?>" id="<?php echo esc_attr( $field_key ) ?>" data-switchto="<?php echo esc_attr( $field_type['switch_from'] ) ?>" style="display:none !important;"><?php echo apply_filters( 'frmpro_field_links', $field_label, $id, $field_key ) ?></li> |
|
47 | + <li class="frmbutton button <?php echo esc_attr( $col_class . ' ' . $no_allow_class . ' frm_t' . $field_key ) ?>" id="<?php echo esc_attr( $field_key ) ?>" data-switchto="<?php echo esc_attr( $field_type['switch_from'] ) ?>" style="display:none !important;"><?php echo apply_filters( 'frmpro_field_links', $field_label, $id, $field_key ) ?></li> |
|
48 | 48 | <?php |
49 | 49 | continue; |
50 | 50 | } |
51 | 51 | |
52 | 52 | ?> |
53 | - <li class="frmbutton button <?php echo esc_attr( $col_class .' '. $no_allow_class .' frm_t'. $field_key ) ?> dropdown" id="<?php echo esc_attr( $field_key ) ?>" <?php echo ( isset( $field_type['switch_to'] ) ) ? 'data-switchto="'. esc_attr( $field_type['switch_to'] ) .'"' : ''; ?>> |
|
53 | + <li class="frmbutton button <?php echo esc_attr( $col_class . ' ' . $no_allow_class . ' frm_t' . $field_key ) ?> dropdown" id="<?php echo esc_attr( $field_key ) ?>" <?php echo ( isset( $field_type['switch_to'] ) ) ? 'data-switchto="' . esc_attr( $field_type['switch_to'] ) . '"' : ''; ?>> |
|
54 | 54 | <a href="#" id="frm-<?php echo esc_attr( $field_key ) ?>Drop" class="frm-dropdown-toggle" data-toggle="dropdown"><?php echo esc_html( $field_label ) ?> <b class="caret"></b></a> |
55 | 55 | |
56 | 56 | <ul class="frm-dropdown-menu" role="menu" aria-labelledby="frm-<?php echo esc_attr( $field_key ) ?>Drop"> |
57 | 57 | <?php |
58 | 58 | foreach ( $field_type['types'] as $k => $type ) { ?> |
59 | - <li class="frm_t<?php echo esc_attr( $field_key ) ?>" id="<?php echo esc_attr( $field_key ) ?>|<?php echo esc_attr( $k ) ?>"><?php echo apply_filters( 'frmpro_field_links', $type, $id, $field_key .'|'. $k ) ?></li> |
|
59 | + <li class="frm_t<?php echo esc_attr( $field_key ) ?>" id="<?php echo esc_attr( $field_key ) ?>|<?php echo esc_attr( $k ) ?>"><?php echo apply_filters( 'frmpro_field_links', $type, $id, $field_key . '|' . $k ) ?></li> |
|
60 | 60 | <?php |
61 | 61 | unset( $k, $type ); |
62 | 62 | } ?> |
@@ -66,17 +66,17 @@ discard block |
||
66 | 66 | } else { |
67 | 67 | $field_label = $field_type; |
68 | 68 | ?> |
69 | - <li class="frmbutton button <?php echo esc_attr( $col_class .' '. $no_allow_class .' frm_t'. $field_key ) ?>" id="<?php echo esc_attr( $field_key ) ?>"><?php echo apply_filters( 'frmpro_field_links', $field_label, $id, $field_key ) ?></li> |
|
69 | + <li class="frmbutton button <?php echo esc_attr( $col_class . ' ' . $no_allow_class . ' frm_t' . $field_key ) ?>" id="<?php echo esc_attr( $field_key ) ?>"><?php echo apply_filters( 'frmpro_field_links', $field_label, $id, $field_key ) ?></li> |
|
70 | 70 | <?php |
71 | 71 | } |
72 | 72 | |
73 | - $col_class = empty($col_class) ? 'frm_col_one' : ''; |
|
74 | - unset($field_key, $field_type, $field_label); |
|
73 | + $col_class = empty( $col_class ) ? 'frm_col_one' : ''; |
|
74 | + unset( $field_key, $field_type, $field_label ); |
|
75 | 75 | } ?> |
76 | 76 | </ul> |
77 | 77 | <div class="clear"></div> |
78 | 78 | </div> |
79 | - <?php do_action('frm_extra_form_instructions'); ?> |
|
79 | + <?php do_action( 'frm_extra_form_instructions' ); ?> |
|
80 | 80 | |
81 | 81 | <div id="frm-layout-classes" class="tabs-panel"> |
82 | 82 | <p class="howto"><?php _e( 'Add classes in the "CSS layout classes" field option', 'formidable' ) ?></p> |
@@ -127,9 +127,9 @@ discard block |
||
127 | 127 | <a href="javascript:void(0);" class="frmbutton frm_insert_code button show_frm_classes<?php |
128 | 128 | if ( ! empty( $title ) ) { |
129 | 129 | echo ' frm_help'; |
130 | - } ?>" data-code="<?php echo esc_attr($c) ?>" <?php |
|
130 | + } ?>" data-code="<?php echo esc_attr( $c ) ?>" <?php |
|
131 | 131 | if ( ! empty( $title ) ) { |
132 | - ?>title="<?php echo esc_attr($title); ?>"<?php |
|
132 | + ?>title="<?php echo esc_attr( $title ); ?>"<?php |
|
133 | 133 | } ?>> |
134 | 134 | <?php |
135 | 135 | if ( empty( $d ) ) { |
@@ -154,14 +154,14 @@ discard block |
||
154 | 154 | |
155 | 155 | <div class="submitbox" id="major-publishing-actions"> |
156 | 156 | <div id="delete-action"> |
157 | - <?php echo FrmFormsHelper::delete_trash_link($id, $values['status']); ?> |
|
157 | + <?php echo FrmFormsHelper::delete_trash_link( $id, $values['status'] ); ?> |
|
158 | 158 | </div> |
159 | 159 | |
160 | 160 | <div id="publishing-action"> |
161 | 161 | <form method="post" id="frm_js_build_form"> |
162 | 162 | <span class="spinner"></span> |
163 | 163 | <input type="hidden" id="frm_compact_fields" name="frm_compact_fields" value="" /> |
164 | - <input type="button" value="<?php echo esc_attr($button) ?>" class="frm_submit_form frm_submit_<?php echo ( isset($values['ajax_load']) && $values['ajax_load'] ) ? '': 'no_'; ?>ajax button-primary button-large" id="frm_submit_side" /> |
|
164 | + <input type="button" value="<?php echo esc_attr( $button ) ?>" class="frm_submit_form frm_submit_<?php echo ( isset( $values['ajax_load'] ) && $values['ajax_load'] ) ? '' : 'no_'; ?>ajax button-primary button-large" id="frm_submit_side" /> |
|
165 | 165 | </form> |
166 | 166 | </div> |
167 | 167 | <div class="clear"></div> |
@@ -20,7 +20,7 @@ |
||
20 | 20 | FrmAppController::get_form_nav( $id, true, 'hide' ); |
21 | 21 | } |
22 | 22 | |
23 | - ?> |
|
23 | + ?> |
|
24 | 24 | <div class="frm_form_builder<?php echo FrmFormsHelper::get_form_style_class($form); ?>"> |
25 | 25 | |
26 | 26 | <p class="frm_hidden frm-no-margin"> |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <div class="wrap"> |
2 | 2 | <div class="frmicon icon32"><br/></div> |
3 | - <h2><?php echo ( $form->is_template ? __( 'Templates', 'formidable' ) : __( 'Build', 'formidable' )); ?> |
|
3 | + <h2><?php echo ( $form->is_template ? __( 'Templates', 'formidable' ) : __( 'Build', 'formidable' ) ); ?> |
|
4 | 4 | <a href="?page=formidable&frm_action=new" class="add-new-h2"><?php _e( 'Add New', 'formidable' ); ?></a> |
5 | 5 | </h2> |
6 | 6 | |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | } |
22 | 22 | |
23 | 23 | ?> |
24 | - <div class="frm_form_builder<?php echo FrmFormsHelper::get_form_style_class($form); ?>"> |
|
24 | + <div class="frm_form_builder<?php echo FrmFormsHelper::get_form_style_class( $form ); ?>"> |
|
25 | 25 | |
26 | 26 | <p class="frm_hidden frm-no-margin"> |
27 | 27 | <input type="button" value="<?php esc_attr_e( 'Update', 'formidable' ) ?>" class="frm_submit_<?php echo ( isset( $values['ajax_load'] ) && $values['ajax_load'] ) ? '' : 'no_'; ?>ajax button-primary" /> |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | <input type="hidden" name="action" value="update" /> |
34 | 34 | <input type="hidden" name="id" id="form_id" value="<?php echo (int) $id; ?>" /> |
35 | 35 | |
36 | - <?php require(FrmAppHelper::plugin_path() .'/classes/views/frm-forms/form.php'); ?> |
|
36 | + <?php require( FrmAppHelper::plugin_path() . '/classes/views/frm-forms/form.php' ); ?> |
|
37 | 37 | |
38 | 38 | <p> |
39 | 39 | <input type="button" value="<?php esc_attr_e( 'Update', 'formidable' ) ?>" class="frm_submit_<?php echo ( isset( $values['ajax_load'] ) && $values['ajax_load'] ) ? '' : 'no_'; ?>ajax button-primary" /> |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | </form> |
43 | 43 | </div> |
44 | 44 | </div> |
45 | - <?php require(FrmAppHelper::plugin_path() .'/classes/views/frm-forms/add_field_links.php'); ?> |
|
45 | + <?php require( FrmAppHelper::plugin_path() . '/classes/views/frm-forms/add_field_links.php' ); ?> |
|
46 | 46 | </div> |
47 | 47 | </div> |
48 | 48 | </div> |
@@ -51,15 +51,15 @@ |
||
51 | 51 | <ul id="new_fields" class="frm_sorting <?php echo version_compare( $GLOBALS['wp_version'], '3.7.2', '>') ? 'inside' : ''; ?>"> |
52 | 52 | <?php |
53 | 53 | if ( isset($values['fields']) && ! empty($values['fields']) ) { |
54 | - $count = 0; |
|
55 | - foreach ( $values['fields'] as $field ) { |
|
56 | - $count++; |
|
57 | - $field_name = 'item_meta['. $field['id'] .']'; |
|
58 | - $html_id = FrmFieldsHelper::get_html_id($field); |
|
59 | - require(FrmAppHelper::plugin_path() .'/classes/views/frm-forms/add_field.php'); |
|
60 | - unset($field, $field_name); |
|
61 | - } |
|
62 | - unset($count); |
|
54 | + $count = 0; |
|
55 | + foreach ( $values['fields'] as $field ) { |
|
56 | + $count++; |
|
57 | + $field_name = 'item_meta['. $field['id'] .']'; |
|
58 | + $html_id = FrmFieldsHelper::get_html_id($field); |
|
59 | + require(FrmAppHelper::plugin_path() .'/classes/views/frm-forms/add_field.php'); |
|
60 | + unset($field, $field_name); |
|
61 | + } |
|
62 | + unset($count); |
|
63 | 63 | } ?> |
64 | 64 | </ul> |
65 | 65 | </div> |
@@ -1,10 +1,10 @@ discard block |
||
1 | -<?php wp_nonce_field('frm_save_form_nonce', 'frm_save_form'); ?> |
|
1 | +<?php wp_nonce_field( 'frm_save_form_nonce', 'frm_save_form' ); ?> |
|
2 | 2 | <input type="hidden" name="status" value="<?php echo esc_attr( $values['status'] ); ?>" /> |
3 | 3 | <input type="hidden" name="new_status" value="" /> |
4 | 4 | |
5 | 5 | <div id="frm_form_editor_container"> |
6 | 6 | <div id="titlediv"> |
7 | - <input type="text" name="name" value="<?php echo esc_attr($form->name); ?>" id="title" placeholder="<?php esc_attr_e( 'Enter title here') ?>" /> |
|
7 | + <input type="text" name="name" value="<?php echo esc_attr( $form->name ); ?>" id="title" placeholder="<?php esc_attr_e( 'Enter title here' ) ?>" /> |
|
8 | 8 | <div id="edit-slug-box" class="hide-if-no-js"> |
9 | 9 | <div id="frm_form_key_box" class="alignright"> |
10 | 10 | <strong><?php _e( 'Form Key:', 'formidable' ) ?></strong> |
@@ -15,10 +15,10 @@ discard block |
||
15 | 15 | </div> |
16 | 16 | </div> |
17 | 17 | |
18 | -<div <?php echo version_compare( $GLOBALS['wp_version'], '3.7.2', '>') ? 'class="postbox"' : ''; ?>> |
|
19 | - <div class="frm_no_fields <?php echo ( isset($values['fields']) && ! empty($values['fields']) ) ? 'frm_hidden' : ''; ?>"> |
|
18 | +<div <?php echo version_compare( $GLOBALS['wp_version'], '3.7.2', '>' ) ? 'class="postbox"' : ''; ?>> |
|
19 | + <div class="frm_no_fields <?php echo ( isset( $values['fields'] ) && ! empty( $values['fields'] ) ) ? 'frm_hidden' : ''; ?>"> |
|
20 | 20 | <div class="alignleft sketch1"> |
21 | - <img src="<?php echo FrmAppHelper::plugin_url() .'/images/sketch_arrow1.png'; ?>" alt="" /> |
|
21 | + <img src="<?php echo FrmAppHelper::plugin_url() . '/images/sketch_arrow1.png'; ?>" alt="" /> |
|
22 | 22 | </div> |
23 | 23 | <div class="alignleft sketch1_text"> |
24 | 24 | <?php _e( '1. Name your form', 'formidable' ) ?> |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | <div class="alignright sketch2"> |
28 | 28 | <?php _e( '2. Click or drag a field to<br/>add it to your form', 'formidable' ) ?> |
29 | 29 | <div class="clear"></div> |
30 | - <img src="<?php echo FrmAppHelper::plugin_url() .'/images/sketch_arrow2.png'; ?>" alt="" /> |
|
30 | + <img src="<?php echo FrmAppHelper::plugin_url() . '/images/sketch_arrow2.png'; ?>" alt="" /> |
|
31 | 31 | </div> |
32 | 32 | <div class="clear"></div> |
33 | 33 | |
@@ -44,22 +44,22 @@ discard block |
||
44 | 44 | |
45 | 45 | <div class="alignleft sketch3"> |
46 | 46 | <div class="alignright"><?php _e( '3. Save your form', 'formidable' ) ?></div> |
47 | - <img src="<?php echo FrmAppHelper::plugin_url() .'/images/sketch_arrow3.png'; ?>" alt="" /> |
|
47 | + <img src="<?php echo FrmAppHelper::plugin_url() . '/images/sketch_arrow3.png'; ?>" alt="" /> |
|
48 | 48 | </div> |
49 | 49 | <div class="clear"></div> |
50 | 50 | </div> |
51 | -<ul id="new_fields" class="frm_sorting <?php echo version_compare( $GLOBALS['wp_version'], '3.7.2', '>') ? 'inside' : ''; ?>"> |
|
51 | +<ul id="new_fields" class="frm_sorting <?php echo version_compare( $GLOBALS['wp_version'], '3.7.2', '>' ) ? 'inside' : ''; ?>"> |
|
52 | 52 | <?php |
53 | -if ( isset($values['fields']) && ! empty($values['fields']) ) { |
|
53 | +if ( isset( $values['fields'] ) && ! empty( $values['fields'] ) ) { |
|
54 | 54 | $count = 0; |
55 | 55 | foreach ( $values['fields'] as $field ) { |
56 | - $count++; |
|
57 | - $field_name = 'item_meta['. $field['id'] .']'; |
|
58 | - $html_id = FrmFieldsHelper::get_html_id($field); |
|
59 | - require(FrmAppHelper::plugin_path() .'/classes/views/frm-forms/add_field.php'); |
|
60 | - unset($field, $field_name); |
|
56 | + $count ++; |
|
57 | + $field_name = 'item_meta[' . $field['id'] . ']'; |
|
58 | + $html_id = FrmFieldsHelper::get_html_id( $field ); |
|
59 | + require( FrmAppHelper::plugin_path() . '/classes/views/frm-forms/add_field.php' ); |
|
60 | + unset( $field, $field_name ); |
|
61 | 61 | } |
62 | - unset($count); |
|
62 | + unset( $count ); |
|
63 | 63 | } ?> |
64 | 64 | </ul> |
65 | 65 | </div> |
@@ -1,53 +1,53 @@ |
||
1 | 1 | <div id="frm-html-tags" class="tabs-panel"> |
2 | 2 | <ul class="frm_code_list"> |
3 | 3 | <?php |
4 | - $col = 'one'; |
|
5 | - $entry_shortcodes = array( |
|
6 | - 'id' => __( 'Field ID', 'formidable' ), |
|
7 | - 'key' => __( 'Field Key', 'formidable' ), |
|
8 | - 'field_name' => __( 'Field Name', 'formidable' ), |
|
9 | - 'description' => __( 'Field Description', 'formidable' ), |
|
10 | - 'label_position' => __( 'Label Position', 'formidable' ), |
|
11 | - 'required_label' => __( 'Required Label', 'formidable' ), |
|
12 | - 'input' => __( 'Input Field', 'formidable' ), |
|
4 | + $col = 'one'; |
|
5 | + $entry_shortcodes = array( |
|
6 | + 'id' => __( 'Field ID', 'formidable' ), |
|
7 | + 'key' => __( 'Field Key', 'formidable' ), |
|
8 | + 'field_name' => __( 'Field Name', 'formidable' ), |
|
9 | + 'description' => __( 'Field Description', 'formidable' ), |
|
10 | + 'label_position' => __( 'Label Position', 'formidable' ), |
|
11 | + 'required_label' => __( 'Required Label', 'formidable' ), |
|
12 | + 'input' => __( 'Input Field', 'formidable' ), |
|
13 | 13 | 'input opt=1' => array( 'label' => __( 'Single Option', 'formidable' ), 'title' => __( 'Show a single radio or checkbox option by replacing 1 with the order of the option', 'formidable' ) ), |
14 | - 'input label=0' => __( 'Hide Option Label', 'formidable' ), |
|
14 | + 'input label=0' => __( 'Hide Option Label', 'formidable' ), |
|
15 | 15 | 'required_class' => array( 'label' => __( 'Required Class', 'formidable' ), 'title' => __( 'Add class name if field is required', 'formidable' ) ), |
16 | 16 | 'error_class' => array( 'label' => __( 'Error Class', 'formidable' ), 'title' => __( 'Add class name if field has an error on form submit', 'formidable' ) ), |
17 | - ); |
|
17 | + ); |
|
18 | 18 | |
19 | 19 | foreach ( $entry_shortcodes as $skey => $sname ) { |
20 | - ?> |
|
20 | + ?> |
|
21 | 21 | <li class="frm_col_<?php echo esc_attr( $col ) ?>"> |
22 | 22 | <a href="javascript:void(0)" class="show_field_custom_html frmbutton button frm_insert_code <?php echo is_array( $sname ) ? 'frm_help' : ''; ?>" data-code="<?php echo esc_attr( $skey ) ?>" <?php echo is_array( $sname ) ? 'title="' . esc_attr( $sname['title'] ) . '"' : ''; ?>><?php echo is_array( $sname ) ? $sname['label'] : $sname; ?></a> |
23 | 23 | </li> |
24 | 24 | <?php |
25 | - $col = ($col == 'one') ? 'two' : 'one'; |
|
26 | - unset($skey, $sname); |
|
27 | - } |
|
28 | - ?> |
|
25 | + $col = ($col == 'one') ? 'two' : 'one'; |
|
26 | + unset($skey, $sname); |
|
27 | + } |
|
28 | + ?> |
|
29 | 29 | </ul> |
30 | 30 | |
31 | 31 | <ul class="frm_code_list frm_clear"> |
32 | 32 | <?php |
33 | - $col = 'one'; |
|
33 | + $col = 'one'; |
|
34 | 34 | foreach ( array( |
35 | - 'form_name' => __( 'Form Name', 'formidable' ), 'form_description' => __( 'Form Description', 'formidable' ), |
|
36 | - 'form_key' => __( 'Form Key', 'formidable' ), 'deletelink' => __( 'Delete Entry Link', 'formidable' ), |
|
35 | + 'form_name' => __( 'Form Name', 'formidable' ), 'form_description' => __( 'Form Description', 'formidable' ), |
|
36 | + 'form_key' => __( 'Form Key', 'formidable' ), 'deletelink' => __( 'Delete Entry Link', 'formidable' ), |
|
37 | 37 | ) as $skey => $sname ) { ?> |
38 | 38 | <li class="frm_col_<?php echo esc_attr( $col ) ?>"> |
39 | 39 | <a href="javascript:void(0)" class="show_before_html show_after_html frmbutton button frm_insert_code" data-code="<?php echo esc_attr($skey) ?>"><?php echo $sname; ?></a> |
40 | 40 | </li> |
41 | 41 | <?php |
42 | - $col = ($col == 'one') ? 'two' : 'one'; |
|
43 | - } |
|
42 | + $col = ($col == 'one') ? 'two' : 'one'; |
|
43 | + } |
|
44 | 44 | |
45 | - foreach ( array( 'button_label' => __( 'Button Label', 'formidable' ), 'button_action' => __( 'Button Hook', 'formidable' ) ) as $skey => $sname ) { ?> |
|
45 | + foreach ( array( 'button_label' => __( 'Button Label', 'formidable' ), 'button_action' => __( 'Button Hook', 'formidable' ) ) as $skey => $sname ) { ?> |
|
46 | 46 | <li class="frm_col_<?php echo esc_attr( $col ) ?>"> |
47 | 47 | <a href="javascript:void(0)" class="show_submit_html frmbutton button frm_insert_code" data-code="<?php echo esc_attr($skey) ?>"><?php echo $sname; ?></a> |
48 | 48 | </li> |
49 | 49 | <?php |
50 | - $col = ($col == 'one') ? 'two' : 'one'; |
|
51 | - } ?> |
|
50 | + $col = ($col == 'one') ? 'two' : 'one'; |
|
51 | + } ?> |
|
52 | 52 | </ul> |
53 | 53 | </div> |
@@ -22,8 +22,8 @@ discard block |
||
22 | 22 | <a href="javascript:void(0)" class="show_field_custom_html frmbutton button frm_insert_code <?php echo is_array( $sname ) ? 'frm_help' : ''; ?>" data-code="<?php echo esc_attr( $skey ) ?>" <?php echo is_array( $sname ) ? 'title="' . esc_attr( $sname['title'] ) . '"' : ''; ?>><?php echo is_array( $sname ) ? $sname['label'] : $sname; ?></a> |
23 | 23 | </li> |
24 | 24 | <?php |
25 | - $col = ($col == 'one') ? 'two' : 'one'; |
|
26 | - unset($skey, $sname); |
|
25 | + $col = ( $col == 'one' ) ? 'two' : 'one'; |
|
26 | + unset( $skey, $sname ); |
|
27 | 27 | } |
28 | 28 | ?> |
29 | 29 | </ul> |
@@ -36,18 +36,18 @@ discard block |
||
36 | 36 | 'form_key' => __( 'Form Key', 'formidable' ), 'deletelink' => __( 'Delete Entry Link', 'formidable' ), |
37 | 37 | ) as $skey => $sname ) { ?> |
38 | 38 | <li class="frm_col_<?php echo esc_attr( $col ) ?>"> |
39 | - <a href="javascript:void(0)" class="show_before_html show_after_html frmbutton button frm_insert_code" data-code="<?php echo esc_attr($skey) ?>"><?php echo $sname; ?></a> |
|
39 | + <a href="javascript:void(0)" class="show_before_html show_after_html frmbutton button frm_insert_code" data-code="<?php echo esc_attr( $skey ) ?>"><?php echo $sname; ?></a> |
|
40 | 40 | </li> |
41 | 41 | <?php |
42 | - $col = ($col == 'one') ? 'two' : 'one'; |
|
42 | + $col = ( $col == 'one' ) ? 'two' : 'one'; |
|
43 | 43 | } |
44 | 44 | |
45 | 45 | foreach ( array( 'button_label' => __( 'Button Label', 'formidable' ), 'button_action' => __( 'Button Hook', 'formidable' ) ) as $skey => $sname ) { ?> |
46 | 46 | <li class="frm_col_<?php echo esc_attr( $col ) ?>"> |
47 | - <a href="javascript:void(0)" class="show_submit_html frmbutton button frm_insert_code" data-code="<?php echo esc_attr($skey) ?>"><?php echo $sname; ?></a> |
|
47 | + <a href="javascript:void(0)" class="show_submit_html frmbutton button frm_insert_code" data-code="<?php echo esc_attr( $skey ) ?>"><?php echo $sname; ?></a> |
|
48 | 48 | </li> |
49 | 49 | <?php |
50 | - $col = ($col == 'one') ? 'two' : 'one'; |
|
50 | + $col = ( $col == 'one' ) ? 'two' : 'one'; |
|
51 | 51 | } ?> |
52 | 52 | </ul> |
53 | 53 | </div> |
@@ -2,6 +2,6 @@ |
||
2 | 2 | <div class="handlediv" title="<?php esc_attr_e( 'Click to toggle', 'formidable' ) ?>"><br/></div> |
3 | 3 | <h3 class="hndle"><span><?php _e( 'Customization', 'formidable' ) ?></span></h3> |
4 | 4 | <div class="inside"> |
5 | - <?php FrmFormsController::mb_tags_box($id); ?> |
|
5 | + <?php FrmFormsController::mb_tags_box( $id ); ?> |
|
6 | 6 | </div> |
7 | 7 | </div> |
@@ -8,12 +8,12 @@ |
||
8 | 8 | <div id="post-body" class="metabox-holder columns-2"> |
9 | 9 | <div id="post-body-content"> |
10 | 10 | <?php |
11 | - if ( ! $values['is_template'] ) { |
|
12 | - FrmAppController::get_form_nav($id, true, 'hide'); |
|
13 | - } |
|
14 | - require(FrmAppHelper::plugin_path() .'/classes/views/shared/errors.php'); |
|
11 | + if ( ! $values['is_template'] ) { |
|
12 | + FrmAppController::get_form_nav($id, true, 'hide'); |
|
13 | + } |
|
14 | + require(FrmAppHelper::plugin_path() .'/classes/views/shared/errors.php'); |
|
15 | 15 | |
16 | - ?> |
|
16 | + ?> |
|
17 | 17 | |
18 | 18 | <div class="frm_form_builder<?php echo FrmFormsHelper::get_form_style_class($form); ?>"> |
19 | 19 |
@@ -9,20 +9,20 @@ discard block |
||
9 | 9 | <div id="post-body-content"> |
10 | 10 | <?php |
11 | 11 | if ( ! $values['is_template'] ) { |
12 | - FrmAppController::get_form_nav($id, true, 'hide'); |
|
12 | + FrmAppController::get_form_nav( $id, true, 'hide' ); |
|
13 | 13 | } |
14 | - require(FrmAppHelper::plugin_path() .'/classes/views/shared/errors.php'); |
|
14 | + require( FrmAppHelper::plugin_path() . '/classes/views/shared/errors.php' ); |
|
15 | 15 | |
16 | 16 | ?> |
17 | 17 | |
18 | - <div class="frm_form_builder<?php echo FrmFormsHelper::get_form_style_class($form); ?>"> |
|
18 | + <div class="frm_form_builder<?php echo FrmFormsHelper::get_form_style_class( $form ); ?>"> |
|
19 | 19 | |
20 | 20 | <form method="post" id="frm_build_form"> |
21 | 21 | <input type="hidden" name="frm_action" value="create" /> |
22 | 22 | <input type="hidden" name="action" value="create" /> |
23 | 23 | <input type="hidden" name="id" id="form_id" value="<?php echo (int) $id; ?>" /> |
24 | 24 | |
25 | - <?php require(FrmAppHelper::plugin_path() .'/classes/views/frm-forms/form.php'); ?> |
|
25 | + <?php require( FrmAppHelper::plugin_path() . '/classes/views/frm-forms/form.php' ); ?> |
|
26 | 26 | |
27 | 27 | <p> |
28 | 28 | <input type="button" value="<?php esc_attr_e( 'Create', 'formidable' ) ?>" class="frm_submit_<?php echo ( isset( $values['ajax_load'] ) && $values['ajax_load'] ) ? '' : 'no_'; ?>ajax button-primary" /> |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | |
33 | 33 | </div> |
34 | 34 | </div> |
35 | - <?php require(FrmAppHelper::plugin_path() .'/classes/views/frm-forms/add_field_links.php'); ?> |
|
35 | + <?php require( FrmAppHelper::plugin_path() . '/classes/views/frm-forms/add_field_links.php' ); ?> |
|
36 | 36 | </div> |
37 | 37 | </div> |
38 | 38 | </div> |
@@ -13,8 +13,8 @@ discard block |
||
13 | 13 | <div id="post-body" class="metabox-holder columns-2"> |
14 | 14 | <div id="post-body-content"> |
15 | 15 | <?php |
16 | - FrmAppController::get_form_nav($id, true); |
|
17 | - ?> |
|
16 | + FrmAppController::get_form_nav($id, true); |
|
17 | + ?> |
|
18 | 18 | |
19 | 19 | <form method="post" class="frm_form_settings"> |
20 | 20 | <input type="hidden" name="id" id="form_id" value="<?php echo (int) $id; ?>" /> |
@@ -59,14 +59,14 @@ discard block |
||
59 | 59 | <option value="message" <?php selected($values['success_action'], 'message') ?>><?php _e( 'Show Message', 'formidable' )?></option> |
60 | 60 | <?php if ( FrmAppHelper::pro_is_installed() ) { ?> |
61 | 61 | <option value="redirect" <?php selected($values['success_action'], 'redirect'); |
62 | - ?>><?php _e( 'Redirect to URL', 'formidable' ) ?></option> |
|
62 | + ?>><?php _e( 'Redirect to URL', 'formidable' ) ?></option> |
|
63 | 63 | <option value="page" <?php selected($values['success_action'], 'page'); |
64 | 64 | ?>><?php _e( 'Show Page Content', 'formidable' ) ?></option> |
65 | 65 | <?php } else { ?> |
66 | 66 | <option value="redirect" disabled="disabled" <?php selected($values['success_action'], 'redirect'); |
67 | - ?>><?php _e( 'Redirect to URL', 'formidable' ); echo ' '. __( '(Premium feature)', 'formidable' ); ?></option> |
|
67 | + ?>><?php _e( 'Redirect to URL', 'formidable' ); echo ' '. __( '(Premium feature)', 'formidable' ); ?></option> |
|
68 | 68 | <option value="page" disabled="disabled" <?php selected($values['success_action'], 'page'); |
69 | - ?>><?php _e( 'Show Page Content', 'formidable' ); echo ' '. __( '(Premium feature)', 'formidable' ); ?></option> |
|
69 | + ?>><?php _e( 'Show Page Content', 'formidable' ); echo ' '. __( '(Premium feature)', 'formidable' ); ?></option> |
|
70 | 70 | <?php } ?> |
71 | 71 | </select> |
72 | 72 | </td> |
@@ -182,17 +182,17 @@ discard block |
||
182 | 182 | <ul class="frm_actions_list"> |
183 | 183 | <?php |
184 | 184 | |
185 | - //For each add-on, add an li, class, and javascript function. If active, add an additional class. |
|
186 | - foreach ( $action_controls as $action_control ) { |
|
187 | - ?> |
|
185 | + //For each add-on, add an li, class, and javascript function. If active, add an additional class. |
|
186 | + foreach ( $action_controls as $action_control ) { |
|
187 | + ?> |
|
188 | 188 | <li><a href="javascript:void(0)" class="frm_<?php echo esc_attr( $action_control->id_base ) ?>_action frm_bstooltip <?php |
189 | - echo ( isset($action_control->action_options['active']) && $action_control->action_options['active']) ? 'frm_active_action ' : 'frm_inactive_action '; |
|
190 | - echo esc_attr( $action_control->action_options['classes'] ); |
|
191 | - ?>" title="<?php echo esc_attr($action_control->action_options['tooltip']) ?>" data-limit="<?php echo isset($action_control->action_options['limit']) ? esc_attr( $action_control->action_options['limit'] ) : '99' ?>" data-actiontype="<?php echo esc_attr($action_control->id_base) ?>"></a></li> |
|
189 | + echo ( isset($action_control->action_options['active']) && $action_control->action_options['active']) ? 'frm_active_action ' : 'frm_inactive_action '; |
|
190 | + echo esc_attr( $action_control->action_options['classes'] ); |
|
191 | + ?>" title="<?php echo esc_attr($action_control->action_options['tooltip']) ?>" data-limit="<?php echo isset($action_control->action_options['limit']) ? esc_attr( $action_control->action_options['limit'] ) : '99' ?>" data-actiontype="<?php echo esc_attr($action_control->id_base) ?>"></a></li> |
|
192 | 192 | <?php |
193 | - unset($actions_icon); |
|
194 | - } |
|
195 | - ?> |
|
193 | + unset($actions_icon); |
|
194 | + } |
|
195 | + ?> |
|
196 | 196 | </ul> |
197 | 197 | </div> |
198 | 198 | <div class="frm_no_actions"> |
@@ -224,9 +224,9 @@ discard block |
||
224 | 224 | <p><label><?php echo esc_html( $field['name'] ) ?></label> |
225 | 225 | <textarea name="field_options[custom_html_<?php echo esc_attr( $field['id'] ) ?>]" rows="7" id="custom_html_<?php echo esc_attr( $field['id'] ) ?>" class="field_custom_html frm_long_input"><?php echo FrmAppHelper::esc_textarea($field['custom_html']) ?></textarea></p> |
226 | 226 | <?php } |
227 | - unset($field); |
|
228 | - } |
|
229 | - } ?> |
|
227 | + unset($field); |
|
228 | + } |
|
229 | + } ?> |
|
230 | 230 | </div> |
231 | 231 | |
232 | 232 | <p><label><?php _e( 'After Fields', 'formidable' ) ?></label> |
@@ -248,7 +248,7 @@ discard block |
||
248 | 248 | call_user_func( array( $section['class'], $section['function'] ), $values ); |
249 | 249 | } else { |
250 | 250 | call_user_func( ( isset( $section['function'] ) ? $section['function'] : $section ), $values ); |
251 | - } ?> |
|
251 | + } ?> |
|
252 | 252 | </div> |
253 | 253 | <?php } ?> |
254 | 254 |
@@ -6,14 +6,14 @@ discard block |
||
6 | 6 | |
7 | 7 | <?php |
8 | 8 | // Add form messages |
9 | - require(FrmAppHelper::plugin_path() .'/classes/views/shared/errors.php'); |
|
9 | + require( FrmAppHelper::plugin_path() . '/classes/views/shared/errors.php' ); |
|
10 | 10 | ?> |
11 | 11 | |
12 | 12 | <div id="poststuff"> |
13 | 13 | <div id="post-body" class="metabox-holder columns-2"> |
14 | 14 | <div id="post-body-content"> |
15 | 15 | <?php |
16 | - FrmAppController::get_form_nav($id, true); |
|
16 | + FrmAppController::get_form_nav( $id, true ); |
|
17 | 17 | ?> |
18 | 18 | |
19 | 19 | <form method="post" class="frm_form_settings"> |
@@ -29,9 +29,9 @@ discard block |
||
29 | 29 | <div class="contextual-help-tabs"> |
30 | 30 | <ul class="frm-category-tabs frm-form-setting-tabs"> |
31 | 31 | <?php $a = FrmAppHelper::simple_get( 't', 'sanitize_title', 'advanced_settings' ); ?> |
32 | - <li <?php echo ($a == 'advanced_settings') ? 'class="tabs active"' : '' ?>><a href="#advanced_settings"><?php _e( 'General', 'formidable' ) ?></a></li> |
|
33 | - <li <?php echo ($a == 'email_settings') ? 'class="tabs active"' : '' ?>><a href="#email_settings"><?php _e( 'Form Actions', 'formidable' ); ?></a></li> |
|
34 | - <li <?php echo ($a == 'html_settings') ? 'class="tabs active"' : '' ?>><a href="#html_settings"><?php _e( 'Customize HTML', 'formidable' ) ?></a></li> |
|
32 | + <li <?php echo ( $a == 'advanced_settings' ) ? 'class="tabs active"' : '' ?>><a href="#advanced_settings"><?php _e( 'General', 'formidable' ) ?></a></li> |
|
33 | + <li <?php echo ( $a == 'email_settings' ) ? 'class="tabs active"' : '' ?>><a href="#email_settings"><?php _e( 'Form Actions', 'formidable' ); ?></a></li> |
|
34 | + <li <?php echo ( $a == 'html_settings' ) ? 'class="tabs active"' : '' ?>><a href="#html_settings"><?php _e( 'Customize HTML', 'formidable' ) ?></a></li> |
|
35 | 35 | <?php foreach ( $sections as $key => $section ) { |
36 | 36 | if ( isset( $section['name'] ) ) { |
37 | 37 | $sec_name = $section['name']; |
@@ -39,11 +39,11 @@ discard block |
||
39 | 39 | } else { |
40 | 40 | $sec_anchor = $sec_name = $key; |
41 | 41 | } ?> |
42 | - <li <?php echo ($a == $sec_anchor .'_settings') ? 'class="tabs active"' : '' ?>><a href="#<?php echo esc_attr( $sec_anchor ) ?>_settings"><?php echo ucfirst($sec_name) ?></a></li> |
|
42 | + <li <?php echo ( $a == $sec_anchor . '_settings' ) ? 'class="tabs active"' : '' ?>><a href="#<?php echo esc_attr( $sec_anchor ) ?>_settings"><?php echo ucfirst( $sec_name ) ?></a></li> |
|
43 | 43 | <?php } ?> |
44 | 44 | </ul> |
45 | 45 | </div> |
46 | - <div class="advanced_settings tabs-panel <?php echo ($a == 'advanced_settings') ? 'frm_block' : 'frm_hidden' ?>"> |
|
46 | + <div class="advanced_settings tabs-panel <?php echo ( $a == 'advanced_settings' ) ? 'frm_block' : 'frm_hidden' ?>"> |
|
47 | 47 | <h3 class="frm_first_h3"><?php _e( 'On Submit', 'formidable' ); ?> |
48 | 48 | <span class="frm_help frm_icon_font frm_tooltip_icon" title="<?php esc_attr_e( 'Choose what will happen after the user submits this form.', 'formidable' ); |
49 | 49 | if ( ! FrmAppHelper::pro_is_installed() ) { |
@@ -56,22 +56,22 @@ discard block |
||
56 | 56 | <tr> |
57 | 57 | <td class="frm_175_width"> |
58 | 58 | <select name="options[success_action]" id="success_action"> |
59 | - <option value="message" <?php selected($values['success_action'], 'message') ?>><?php _e( 'Show Message', 'formidable' )?></option> |
|
59 | + <option value="message" <?php selected( $values['success_action'], 'message' ) ?>><?php _e( 'Show Message', 'formidable' )?></option> |
|
60 | 60 | <?php if ( FrmAppHelper::pro_is_installed() ) { ?> |
61 | - <option value="redirect" <?php selected($values['success_action'], 'redirect'); |
|
61 | + <option value="redirect" <?php selected( $values['success_action'], 'redirect' ); |
|
62 | 62 | ?>><?php _e( 'Redirect to URL', 'formidable' ) ?></option> |
63 | - <option value="page" <?php selected($values['success_action'], 'page'); |
|
63 | + <option value="page" <?php selected( $values['success_action'], 'page' ); |
|
64 | 64 | ?>><?php _e( 'Show Page Content', 'formidable' ) ?></option> |
65 | 65 | <?php } else { ?> |
66 | - <option value="redirect" disabled="disabled" <?php selected($values['success_action'], 'redirect'); |
|
67 | - ?>><?php _e( 'Redirect to URL', 'formidable' ); echo ' '. __( '(Premium feature)', 'formidable' ); ?></option> |
|
68 | - <option value="page" disabled="disabled" <?php selected($values['success_action'], 'page'); |
|
69 | - ?>><?php _e( 'Show Page Content', 'formidable' ); echo ' '. __( '(Premium feature)', 'formidable' ); ?></option> |
|
66 | + <option value="redirect" disabled="disabled" <?php selected( $values['success_action'], 'redirect' ); |
|
67 | + ?>><?php _e( 'Redirect to URL', 'formidable' ); echo ' ' . __( '(Premium feature)', 'formidable' ); ?></option> |
|
68 | + <option value="page" disabled="disabled" <?php selected( $values['success_action'], 'page' ); |
|
69 | + ?>><?php _e( 'Show Page Content', 'formidable' ); echo ' ' . __( '(Premium feature)', 'formidable' ); ?></option> |
|
70 | 70 | <?php } ?> |
71 | 71 | </select> |
72 | 72 | </td> |
73 | 73 | <td> |
74 | - <span class="success_action_redirect_box success_action_box<?php echo ($values['success_action'] == 'redirect') ? '' : ' frm_hidden'; ?>"> |
|
74 | + <span class="success_action_redirect_box success_action_box<?php echo ( $values['success_action'] == 'redirect' ) ? '' : ' frm_hidden'; ?>"> |
|
75 | 75 | <input type="text" name="options[success_url]" id="success_url" value="<?php |
76 | 76 | if ( isset( $values['success_url'] ) ) { |
77 | 77 | echo esc_attr( $values['success_url'] ); |
@@ -79,23 +79,23 @@ discard block |
||
79 | 79 | </span> |
80 | 80 | |
81 | 81 | <?php if ( FrmAppHelper::pro_is_installed() ) { ?> |
82 | - <span class="success_action_page_box success_action_box<?php echo ($values['success_action'] == 'page') ? '' : ' frm_hidden'; ?>"> |
|
82 | + <span class="success_action_page_box success_action_box<?php echo ( $values['success_action'] == 'page' ) ? '' : ' frm_hidden'; ?>"> |
|
83 | 83 | <label><?php _e( 'Use Content from Page', 'formidable' ) ?></label> |
84 | 84 | <?php FrmAppHelper::wp_pages_dropdown( 'options[success_page_id]', $values['success_page_id'] ) ?> |
85 | 85 | </span> |
86 | 86 | <?php } ?> |
87 | 87 | </td> |
88 | 88 | </tr> |
89 | - <tr class="frm_show_form_opt success_action_message_box success_action_box<?php echo ($values['success_action'] == 'message') ? '' : ' frm_hidden'; ?>"> |
|
89 | + <tr class="frm_show_form_opt success_action_message_box success_action_box<?php echo ( $values['success_action'] == 'message' ) ? '' : ' frm_hidden'; ?>"> |
|
90 | 90 | <td colspan="2"> |
91 | 91 | <label for="show_form"><input type="checkbox" name="options[show_form]" id="show_form" value="1" <?php checked( $values['show_form'], 1 ) ?> /> <?php _e( 'Show the form with the confirmation message', 'formidable' ) ?></label> |
92 | 92 | </td> |
93 | 93 | </tr> |
94 | 94 | <tr> |
95 | - <td colspan="2"><label for="no_save"><input type="checkbox" name="options[no_save]" id="no_save" value="1" <?php checked($values['no_save'], 1); ?> /> <?php _e( 'Do not store entries submitted from this form', 'formidable' ) ?></label> |
|
95 | + <td colspan="2"><label for="no_save"><input type="checkbox" name="options[no_save]" id="no_save" value="1" <?php checked( $values['no_save'], 1 ); ?> /> <?php _e( 'Do not store entries submitted from this form', 'formidable' ) ?></label> |
|
96 | 96 | </td> |
97 | 97 | </tr> |
98 | - <?php if ( function_exists( 'akismet_http_post') ) { ?> |
|
98 | + <?php if ( function_exists( 'akismet_http_post' ) ) { ?> |
|
99 | 99 | <tr> |
100 | 100 | <td colspan="2"><?php _e( 'Use Akismet to check entries for spam for', 'formidable' ) ?> |
101 | 101 | <select name="options[akismet]"> |
@@ -121,12 +121,12 @@ discard block |
||
121 | 121 | <span class="frm_help frm_icon_font frm_tooltip_icon" title="<?php esc_attr_e( 'Recommended for long forms.', 'formidable' ) ?>" ></span> |
122 | 122 | </td> |
123 | 123 | </tr> |
124 | - <?php do_action('frm_add_form_ajax_options', $values); ?> |
|
124 | + <?php do_action( 'frm_add_form_ajax_options', $values ); ?> |
|
125 | 125 | </table> |
126 | 126 | |
127 | 127 | <!--Permissions Section--> |
128 | 128 | <table class="form-table"> |
129 | - <?php do_action('frm_add_form_perm_options', $values); ?> |
|
129 | + <?php do_action( 'frm_add_form_perm_options', $values ); ?> |
|
130 | 130 | </table> |
131 | 131 | |
132 | 132 | <!--Styling & Buttons Section--> |
@@ -139,14 +139,14 @@ discard block |
||
139 | 139 | <td><select name="options[custom_style]" id="custom_style"> |
140 | 140 | <option value="1" <?php selected( $values['custom_style'], 1 ) ?>><?php _e( 'Always use default', 'formidable' ) ?></option> |
141 | 141 | <?php foreach ( $styles as $s ) { ?> |
142 | - <option value="<?php echo esc_attr( $s->ID ) ?>" <?php selected( $s->ID, $values['custom_style'] ) ?>><?php echo esc_html( $s->post_title . ( empty( $s->menu_order ) ? '' : ' ('. __( 'default', 'formidable' ) .')' ) ) ?></option> |
|
142 | + <option value="<?php echo esc_attr( $s->ID ) ?>" <?php selected( $s->ID, $values['custom_style'] ) ?>><?php echo esc_html( $s->post_title . ( empty( $s->menu_order ) ? '' : ' (' . __( 'default', 'formidable' ) . ')' ) ) ?></option> |
|
143 | 143 | <?php } ?> |
144 | 144 | <option value="0" <?php selected( $values['custom_style'], 0 ); selected( $values['custom_style'], '' ) ?>><?php _e( 'Do not use Formidable styling', 'formidable' ) ?></option> |
145 | 145 | </select></td> |
146 | 146 | </tr> |
147 | 147 | <tr> |
148 | 148 | <td><label><?php _e( 'Submit Button Text', 'formidable' ) ?></label></td> |
149 | - <td><input type="text" name="options[submit_value]" value="<?php echo esc_attr($values['submit_value']); ?>" /></td> |
|
149 | + <td><input type="text" name="options[submit_value]" value="<?php echo esc_attr( $values['submit_value'] ); ?>" /></td> |
|
150 | 150 | </tr> |
151 | 151 | <?php do_action( 'frm_add_form_button_options', $values ); ?> |
152 | 152 | </table> |
@@ -156,27 +156,27 @@ discard block |
||
156 | 156 | <span class="frm_help frm_icon_font frm_tooltip_icon" title="<?php esc_attr_e( 'Set up your confirmation messages.', 'formidable' ) ?>" ></span> |
157 | 157 | </h3> |
158 | 158 | <table class="form-table"> |
159 | - <tr class="success_action_message_box success_action_box<?php echo ($values['success_action'] == 'message') ? '' : ' frm_hidden'; ?>"> |
|
159 | + <tr class="success_action_message_box success_action_box<?php echo ( $values['success_action'] == 'message' ) ? '' : ' frm_hidden'; ?>"> |
|
160 | 160 | <td> |
161 | 161 | <div><?php _e( 'On Submit', 'formidable' ) ?></div> |
162 | - <textarea id="success_msg" name="options[success_msg]" cols="50" rows="2" class="frm_long_input"><?php echo FrmAppHelper::esc_textarea($values['success_msg']); ?></textarea> |
|
162 | + <textarea id="success_msg" name="options[success_msg]" cols="50" rows="2" class="frm_long_input"><?php echo FrmAppHelper::esc_textarea( $values['success_msg'] ); ?></textarea> |
|
163 | 163 | </td> |
164 | 164 | </tr> |
165 | - <?php do_action('frm_add_form_msg_options', $values); ?> |
|
165 | + <?php do_action( 'frm_add_form_msg_options', $values ); ?> |
|
166 | 166 | </table> |
167 | 167 | |
168 | 168 | <!--Misc Section--> |
169 | 169 | <?php if ( has_action( 'frm_additional_form_options' ) ) { ?> |
170 | 170 | <h3><?php _e( 'Miscellaneous', 'formidable' ); ?></h3> |
171 | 171 | <table class="form-table"> |
172 | - <?php do_action('frm_additional_form_options', $values); ?> |
|
172 | + <?php do_action( 'frm_additional_form_options', $values ); ?> |
|
173 | 173 | </table> |
174 | 174 | <?php } ?> |
175 | 175 | |
176 | 176 | </div> |
177 | 177 | |
178 | 178 | |
179 | - <div id="frm_notification_settings" class="frm_email_settings email_settings tabs-panel widgets-holder-wrap <?php echo ($a == 'email_settings') ? ' frm_block' : ' frm_hidden'; ?>"> |
|
179 | + <div id="frm_notification_settings" class="frm_email_settings email_settings tabs-panel widgets-holder-wrap <?php echo ( $a == 'email_settings' ) ? ' frm_block' : ' frm_hidden'; ?>"> |
|
180 | 180 | <div id="frm_email_addon_menu" class="manage-menus"> |
181 | 181 | <h3><?php _e( 'Add New Action', 'formidable' ) ?></h3> |
182 | 182 | <ul class="frm_actions_list"> |
@@ -186,35 +186,35 @@ discard block |
||
186 | 186 | foreach ( $action_controls as $action_control ) { |
187 | 187 | ?> |
188 | 188 | <li><a href="javascript:void(0)" class="frm_<?php echo esc_attr( $action_control->id_base ) ?>_action frm_bstooltip <?php |
189 | - echo ( isset($action_control->action_options['active']) && $action_control->action_options['active']) ? 'frm_active_action ' : 'frm_inactive_action '; |
|
189 | + echo ( isset( $action_control->action_options['active'] ) && $action_control->action_options['active'] ) ? 'frm_active_action ' : 'frm_inactive_action '; |
|
190 | 190 | echo esc_attr( $action_control->action_options['classes'] ); |
191 | - ?>" title="<?php echo esc_attr($action_control->action_options['tooltip']) ?>" data-limit="<?php echo isset($action_control->action_options['limit']) ? esc_attr( $action_control->action_options['limit'] ) : '99' ?>" data-actiontype="<?php echo esc_attr($action_control->id_base) ?>"></a></li> |
|
191 | + ?>" title="<?php echo esc_attr( $action_control->action_options['tooltip'] ) ?>" data-limit="<?php echo isset( $action_control->action_options['limit'] ) ? esc_attr( $action_control->action_options['limit'] ) : '99' ?>" data-actiontype="<?php echo esc_attr( $action_control->id_base ) ?>"></a></li> |
|
192 | 192 | <?php |
193 | - unset($actions_icon); |
|
193 | + unset( $actions_icon ); |
|
194 | 194 | } |
195 | 195 | ?> |
196 | 196 | </ul> |
197 | 197 | </div> |
198 | 198 | <div class="frm_no_actions"> |
199 | 199 | <div class="inner_actions"> |
200 | - <img src="<?php echo FrmAppHelper::plugin_url() .'/images/sketch_arrow1.png'; ?>" alt=""/> |
|
200 | + <img src="<?php echo FrmAppHelper::plugin_url() . '/images/sketch_arrow1.png'; ?>" alt=""/> |
|
201 | 201 | <div class="clear"></div> |
202 | 202 | <?php _e( 'Click an action to add it to this form', 'formidable' ) ?> |
203 | 203 | </div> |
204 | 204 | </div> |
205 | - <?php FrmFormActionsController::list_actions($form, $values); ?> |
|
205 | + <?php FrmFormActionsController::list_actions( $form, $values ); ?> |
|
206 | 206 | </div> |
207 | 207 | |
208 | - <div id="html_settings" class="tabs-panel <?php echo ($a == 'html_settings') ? ' frm_block' : ' frm_hidden'; ?>"> |
|
208 | + <div id="html_settings" class="tabs-panel <?php echo ( $a == 'html_settings' ) ? ' frm_block' : ' frm_hidden'; ?>"> |
|
209 | 209 | |
210 | 210 | <div class="frm_field_html_box frm_top_container"> |
211 | 211 | <p><label><?php _e( 'Form Classes', 'formidable' ) ?></label> |
212 | - <input type="text" name="options[form_class]" value="<?php echo esc_attr($values['form_class']) ?>" /> |
|
212 | + <input type="text" name="options[form_class]" value="<?php echo esc_attr( $values['form_class'] ) ?>" /> |
|
213 | 213 | </p> |
214 | 214 | <div class="clear"></div> |
215 | 215 | |
216 | 216 | <p><label><?php _e( 'Before Fields', 'formidable' ) ?></label> |
217 | - <textarea name="options[before_html]" rows="4" id="before_html" class="frm_long_input"><?php echo FrmAppHelper::esc_textarea($values['before_html']) ?></textarea></p> |
|
217 | + <textarea name="options[before_html]" rows="4" id="before_html" class="frm_long_input"><?php echo FrmAppHelper::esc_textarea( $values['before_html'] ) ?></textarea></p> |
|
218 | 218 | |
219 | 219 | <div id="add_html_fields"> |
220 | 220 | <?php |
@@ -222,18 +222,18 @@ discard block |
||
222 | 222 | foreach ( $values['fields'] as $field ) { |
223 | 223 | if ( apply_filters( 'frm_show_custom_html', true, $field['type'] ) ) { ?> |
224 | 224 | <p><label><?php echo esc_html( $field['name'] ) ?></label> |
225 | - <textarea name="field_options[custom_html_<?php echo esc_attr( $field['id'] ) ?>]" rows="7" id="custom_html_<?php echo esc_attr( $field['id'] ) ?>" class="field_custom_html frm_long_input"><?php echo FrmAppHelper::esc_textarea($field['custom_html']) ?></textarea></p> |
|
225 | + <textarea name="field_options[custom_html_<?php echo esc_attr( $field['id'] ) ?>]" rows="7" id="custom_html_<?php echo esc_attr( $field['id'] ) ?>" class="field_custom_html frm_long_input"><?php echo FrmAppHelper::esc_textarea( $field['custom_html'] ) ?></textarea></p> |
|
226 | 226 | <?php } |
227 | - unset($field); |
|
227 | + unset( $field ); |
|
228 | 228 | } |
229 | 229 | } ?> |
230 | 230 | </div> |
231 | 231 | |
232 | 232 | <p><label><?php _e( 'After Fields', 'formidable' ) ?></label> |
233 | - <textarea name="options[after_html]" rows="3" id="after_html" class="frm_long_input"><?php echo FrmAppHelper::esc_textarea($values['after_html']) ?></textarea></p> |
|
233 | + <textarea name="options[after_html]" rows="3" id="after_html" class="frm_long_input"><?php echo FrmAppHelper::esc_textarea( $values['after_html'] ) ?></textarea></p> |
|
234 | 234 | |
235 | 235 | <p><label><?php _e( 'Submit Button', 'formidable' ) ?></label> |
236 | - <textarea name="options[submit_html]" rows="3" id="submit_html" class="frm_long_input"><?php echo FrmAppHelper::esc_textarea($values['submit_html']) ?></textarea></p> |
|
236 | + <textarea name="options[submit_html]" rows="3" id="submit_html" class="frm_long_input"><?php echo FrmAppHelper::esc_textarea( $values['submit_html'] ) ?></textarea></p> |
|
237 | 237 | </div> |
238 | 238 | </div> |
239 | 239 | |
@@ -243,7 +243,7 @@ discard block |
||
243 | 243 | } else { |
244 | 244 | $sec_anchor = $key; |
245 | 245 | } ?> |
246 | - <div id="<?php echo esc_attr( $sec_anchor ) ?>_settings" class="tabs-panel <?php echo ($a == $sec_anchor .'_settings') ? ' frm_block' : ' frm_hidden'; ?>"><?php |
|
246 | + <div id="<?php echo esc_attr( $sec_anchor ) ?>_settings" class="tabs-panel <?php echo ( $a == $sec_anchor . '_settings' ) ? ' frm_block' : ' frm_hidden'; ?>"><?php |
|
247 | 247 | if ( isset( $section['class'] ) ) { |
248 | 248 | call_user_func( array( $section['class'], $section['function'] ), $values ); |
249 | 249 | } else { |
@@ -252,7 +252,7 @@ discard block |
||
252 | 252 | </div> |
253 | 253 | <?php } ?> |
254 | 254 | |
255 | - <?php do_action('frm_add_form_option_section', $values); ?> |
|
255 | + <?php do_action( 'frm_add_form_option_section', $values ); ?> |
|
256 | 256 | <div class="clear"></div> |
257 | 257 | </div> |
258 | 258 | </div> |
@@ -267,7 +267,7 @@ discard block |
||
267 | 267 | |
268 | 268 | |
269 | 269 | </div> |
270 | - <?php require(FrmAppHelper::plugin_path() .'/classes/views/frm-forms/sidebar-settings.php'); ?> |
|
270 | + <?php require( FrmAppHelper::plugin_path() . '/classes/views/frm-forms/sidebar-settings.php' ); ?> |
|
271 | 271 | </div> |
272 | 272 | </div> |
273 | 273 | </div> |