@@ -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,9 +9,9 @@ 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 | |
@@ -22,7 +22,7 @@ discard block |
||
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> |
@@ -12,14 +12,14 @@ discard block |
||
12 | 12 | <ul> |
13 | 13 | <?php |
14 | 14 | foreach ( $opts as $opt => $val ) { |
15 | - if ( isset( $val['type'] ) && 'text' == $val['type'] ) { ?> |
|
15 | + if ( isset( $val['type'] ) && 'text' == $val['type'] ) { ?> |
|
16 | 16 | <li><label class="setting" for="frmsc_<?php echo esc_attr( $shortcode .'_'. $opt ) ?>"> |
17 | 17 | <span><?php echo esc_html( $val['label'] ) ?></span> |
18 | 18 | <input type="text" id="frmsc_<?php echo esc_attr( $shortcode .'_'. $opt ) ?>" value="<?php echo esc_attr( $val['val'] ) ?>" /> |
19 | 19 | </label> |
20 | 20 | </li> |
21 | 21 | <?php |
22 | - } else if ( isset( $val['type'] ) && 'select' == $val['type'] ) { ?> |
|
22 | + } else if ( isset( $val['type'] ) && 'select' == $val['type'] ) { ?> |
|
23 | 23 | <li><label class="setting" for="frmsc_<?php echo esc_attr( $shortcode .'_'. $opt ) ?>"> |
24 | 24 | <span><?php echo esc_html( $val['label'] ) ?></span> |
25 | 25 | <select id="frmsc_<?php echo esc_attr( $shortcode .'_'. $opt ) ?>"> |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | </label> |
31 | 31 | </li> |
32 | 32 | <?php |
33 | - } else { ?> |
|
33 | + } else { ?> |
|
34 | 34 | <li><label class="setting" for="frmsc_<?php echo esc_attr( $shortcode .'_'. $opt ) ?>"><input type="checkbox" id="frmsc_<?php echo esc_attr( $shortcode .'_'. $opt ) ?>" value="<?php echo esc_attr( $val['val'] ) ?>" /> <?php echo esc_html( $val['label'] ) ?></label></li> |
35 | 35 | <?php |
36 | 36 | } |
@@ -1,28 +1,28 @@ discard block |
||
1 | 1 | <?php |
2 | -if ( ! empty($form_id) ) { |
|
2 | +if ( ! empty( $form_id ) ) { |
|
3 | 3 | ?> |
4 | 4 | <h4 class="frm_left_label"><?php _e( 'Select a form:', 'formidable' ) ?></h4> |
5 | - <?php FrmFormsHelper::forms_dropdown( 'frmsc_'. $shortcode .'_'. $form_id ); ?> |
|
5 | + <?php FrmFormsHelper::forms_dropdown( 'frmsc_' . $shortcode . '_' . $form_id ); ?> |
|
6 | 6 | <div class="frm_box_line"></div> |
7 | 7 | <?php |
8 | 8 | } |
9 | 9 | |
10 | -if ( ! empty($opts) ) { ?> |
|
10 | +if ( ! empty( $opts ) ) { ?> |
|
11 | 11 | <h4><?php _e( 'Options', 'formidable' ) ?></h4> |
12 | 12 | <ul> |
13 | 13 | <?php |
14 | 14 | foreach ( $opts as $opt => $val ) { |
15 | 15 | if ( isset( $val['type'] ) && 'text' == $val['type'] ) { ?> |
16 | - <li><label class="setting" for="frmsc_<?php echo esc_attr( $shortcode .'_'. $opt ) ?>"> |
|
16 | + <li><label class="setting" for="frmsc_<?php echo esc_attr( $shortcode . '_' . $opt ) ?>"> |
|
17 | 17 | <span><?php echo esc_html( $val['label'] ) ?></span> |
18 | - <input type="text" id="frmsc_<?php echo esc_attr( $shortcode .'_'. $opt ) ?>" value="<?php echo esc_attr( $val['val'] ) ?>" /> |
|
18 | + <input type="text" id="frmsc_<?php echo esc_attr( $shortcode . '_' . $opt ) ?>" value="<?php echo esc_attr( $val['val'] ) ?>" /> |
|
19 | 19 | </label> |
20 | 20 | </li> |
21 | 21 | <?php |
22 | 22 | } else if ( isset( $val['type'] ) && 'select' == $val['type'] ) { ?> |
23 | - <li><label class="setting" for="frmsc_<?php echo esc_attr( $shortcode .'_'. $opt ) ?>"> |
|
23 | + <li><label class="setting" for="frmsc_<?php echo esc_attr( $shortcode . '_' . $opt ) ?>"> |
|
24 | 24 | <span><?php echo esc_html( $val['label'] ) ?></span> |
25 | - <select id="frmsc_<?php echo esc_attr( $shortcode .'_'. $opt ) ?>"> |
|
25 | + <select id="frmsc_<?php echo esc_attr( $shortcode . '_' . $opt ) ?>"> |
|
26 | 26 | <?php foreach ( $val['opts'] as $select_opt => $select_label ) { ?> |
27 | 27 | <option value="<?php echo esc_attr( $select_opt ) ?>"><?php echo esc_html( $select_label ) ?></option> |
28 | 28 | <?php } ?> |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | </li> |
32 | 32 | <?php |
33 | 33 | } else { ?> |
34 | - <li><label class="setting" for="frmsc_<?php echo esc_attr( $shortcode .'_'. $opt ) ?>"><input type="checkbox" id="frmsc_<?php echo esc_attr( $shortcode .'_'. $opt ) ?>" value="<?php echo esc_attr( $val['val'] ) ?>" /> <?php echo esc_html( $val['label'] ) ?></label></li> |
|
34 | + <li><label class="setting" for="frmsc_<?php echo esc_attr( $shortcode . '_' . $opt ) ?>"><input type="checkbox" id="frmsc_<?php echo esc_attr( $shortcode . '_' . $opt ) ?>" value="<?php echo esc_attr( $val['val'] ) ?>" /> <?php echo esc_html( $val['label'] ) ?></label></li> |
|
35 | 35 | <?php |
36 | 36 | } |
37 | 37 | } |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <div id="postbox-container-1" class="postbox-container"> |
2 | 2 | <?php |
3 | 3 | |
4 | - if ( ! isset($hide_preview) || ! $hide_preview ) { |
|
5 | - include(FrmAppHelper::plugin_path() .'/classes/views/frm-forms/_publish_box.php'); |
|
6 | - } |
|
4 | + if ( ! isset($hide_preview) || ! $hide_preview ) { |
|
5 | + include(FrmAppHelper::plugin_path() .'/classes/views/frm-forms/_publish_box.php'); |
|
6 | + } |
|
7 | 7 | |
8 | - include(FrmAppHelper::plugin_path() .'/classes/views/frm-forms/mb_insert_fields.php'); |
|
8 | + include(FrmAppHelper::plugin_path() .'/classes/views/frm-forms/mb_insert_fields.php'); |
|
9 | 9 | |
10 | - ?> |
|
10 | + ?> |
|
11 | 11 | </div> |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <div id="postbox-container-1" class="postbox-container"> |
2 | 2 | <?php |
3 | 3 | |
4 | - if ( ! isset($hide_preview) || ! $hide_preview ) { |
|
5 | - include(FrmAppHelper::plugin_path() .'/classes/views/frm-forms/_publish_box.php'); |
|
4 | + if ( ! isset( $hide_preview ) || ! $hide_preview ) { |
|
5 | + include( FrmAppHelper::plugin_path() . '/classes/views/frm-forms/_publish_box.php' ); |
|
6 | 6 | } |
7 | 7 | |
8 | - include(FrmAppHelper::plugin_path() .'/classes/views/frm-forms/mb_insert_fields.php'); |
|
8 | + include( FrmAppHelper::plugin_path() . '/classes/views/frm-forms/mb_insert_fields.php' ); |
|
9 | 9 | |
10 | 10 | ?> |
11 | 11 | </div> |
@@ -157,10 +157,10 @@ |
||
157 | 157 | call_user_func( array( $section['class'], $section['function'] ) ); |
158 | 158 | } else { |
159 | 159 | call_user_func( ( isset( $section['function'] ) ? $section['function'] : $section ) ); |
160 | - } ?> |
|
160 | + } ?> |
|
161 | 161 | </div> |
162 | 162 | <?php |
163 | - } ?> |
|
163 | + } ?> |
|
164 | 164 | |
165 | 165 | <p class="alignright frm_uninstall"> |
166 | 166 | <a href="javascript:void(0)" id="frm_uninstall_now"><?php _e( 'Uninstall Formidable', 'formidable' ) ?></a> |
@@ -2,7 +2,7 @@ discard block |
||
2 | 2 | <div class="frmicon icon32"><br/></div> |
3 | 3 | <h1><?php _e( 'Global Settings', 'formidable' ); ?></h1> |
4 | 4 | |
5 | - <?php require(FrmAppHelper::plugin_path() .'/classes/views/shared/errors.php'); ?> |
|
5 | + <?php require( FrmAppHelper::plugin_path() . '/classes/views/shared/errors.php' ); ?> |
|
6 | 6 | |
7 | 7 | <div id="poststuff" class="metabox-holder"> |
8 | 8 | <div id="post-body"> |
@@ -15,21 +15,21 @@ discard block |
||
15 | 15 | <div class="contextual-help-tabs"> |
16 | 16 | <ul class="frm-category-tabs"> |
17 | 17 | <?php $a = FrmAppHelper::simple_get( 't', 'sanitize_title', 'general_settings' ); ?> |
18 | - <li <?php echo ($a == 'general_settings') ? 'class="tabs active"' : '' ?>><a href="#general_settings" class="frm_cursor_pointer"><?php _e( 'General', 'formidable' ) ?></a></li> |
|
18 | + <li <?php echo ( $a == 'general_settings' ) ? 'class="tabs active"' : '' ?>><a href="#general_settings" class="frm_cursor_pointer"><?php _e( 'General', 'formidable' ) ?></a></li> |
|
19 | 19 | <?php foreach ( $sections as $sec_name => $section ) { ?> |
20 | - <li <?php echo ($a == $sec_name .'_settings') ? 'class="tabs active"' : '' ?>><a href="#<?php echo esc_attr( $sec_name ) ?>_settings"><?php echo isset($section['name']) ? $section['name'] : ucfirst($sec_name) ?></a></li> |
|
20 | + <li <?php echo ( $a == $sec_name . '_settings' ) ? 'class="tabs active"' : '' ?>><a href="#<?php echo esc_attr( $sec_name ) ?>_settings"><?php echo isset( $section['name'] ) ? $section['name'] : ucfirst( $sec_name ) ?></a></li> |
|
21 | 21 | <?php } ?> |
22 | 22 | </ul> |
23 | 23 | </div> |
24 | 24 | |
25 | - <?php do_action('frm_before_settings'); ?> |
|
25 | + <?php do_action( 'frm_before_settings' ); ?> |
|
26 | 26 | |
27 | 27 | <form name="frm_settings_form" method="post" class="frm_settings_form" action="?page=formidable-settings<?php echo ( $a ? '&t=' . $a : '' ); ?>"> |
28 | 28 | <input type="hidden" name="frm_action" value="process-form" /> |
29 | 29 | <input type="hidden" name="action" value="process-form" /> |
30 | - <?php wp_nonce_field('process_form_nonce', 'process_form'); ?> |
|
30 | + <?php wp_nonce_field( 'process_form_nonce', 'process_form' ); ?> |
|
31 | 31 | |
32 | - <div class="general_settings tabs-panel <?php echo ($a == 'general_settings') ? 'frm_block' : 'frm_hidden'; ?>"> |
|
32 | + <div class="general_settings tabs-panel <?php echo ( $a == 'general_settings' ) ? 'frm_block' : 'frm_hidden'; ?>"> |
|
33 | 33 | <p class="submit"> |
34 | 34 | <input class="button-primary" type="submit" value="<?php esc_attr_e( 'Update Options', 'formidable' ) ?>" /> |
35 | 35 | </p> |
@@ -38,20 +38,20 @@ discard block |
||
38 | 38 | |
39 | 39 | <p><label class="frm_left_label"><?php _e( 'Load Formidable styling', 'formidable' ) ?></label> |
40 | 40 | <select id="frm_load_style" name="frm_load_style"> |
41 | - <option value="all" <?php selected($frm_settings->load_style, 'all') ?>><?php _e( 'on every page of your site', 'formidable' ) ?></option> |
|
42 | - <option value="dynamic" <?php selected($frm_settings->load_style, 'dynamic') ?>><?php _e( 'only on applicable pages', 'formidable' ) ?></option> |
|
43 | - <option value="none" <?php selected($frm_settings->load_style, 'none') ?>><?php _e( 'Don\'t use Formidable styling on any page', 'formidable' ) ?></option> |
|
41 | + <option value="all" <?php selected( $frm_settings->load_style, 'all' ) ?>><?php _e( 'on every page of your site', 'formidable' ) ?></option> |
|
42 | + <option value="dynamic" <?php selected( $frm_settings->load_style, 'dynamic' ) ?>><?php _e( 'only on applicable pages', 'formidable' ) ?></option> |
|
43 | + <option value="none" <?php selected( $frm_settings->load_style, 'none' ) ?>><?php _e( 'Don\'t use Formidable styling on any page', 'formidable' ) ?></option> |
|
44 | 44 | </select> |
45 | 45 | </p> |
46 | 46 | |
47 | 47 | <p> |
48 | 48 | <label for="frm_use_html"> |
49 | - <input type="checkbox" id="frm_use_html" name="frm_use_html" value="1" <?php checked($frm_settings->use_html, 1) ?> > <?php _e( 'Use HTML5 in forms', 'formidable' ) ?> |
|
49 | + <input type="checkbox" id="frm_use_html" name="frm_use_html" value="1" <?php checked( $frm_settings->use_html, 1 ) ?> > <?php _e( 'Use HTML5 in forms', 'formidable' ) ?> |
|
50 | 50 | </label> |
51 | 51 | <span class="frm_help frm_icon_font frm_tooltip_icon" title="<?php esc_attr_e( 'We recommend using HTML 5 for your forms. It adds some nifty options like placeholders, patterns, and autocomplete.', 'formidable' ) ?>"></span> |
52 | 52 | </p> |
53 | 53 | |
54 | - <?php do_action('frm_style_general_settings', $frm_settings); ?> |
|
54 | + <?php do_action( 'frm_style_general_settings', $frm_settings ); ?> |
|
55 | 55 | |
56 | 56 | <h3><?php _e( 'User Permissions', 'formidable' ); ?> |
57 | 57 | <span class="frm_help frm_icon_font frm_tooltip_icon" title="<?php esc_attr_e( 'Select users that are allowed access to Formidable. Without access to View Forms, users will be unable to see the Formidable menu.', 'formidable' ) ?>"></span> |
@@ -74,15 +74,15 @@ discard block |
||
74 | 74 | </p> |
75 | 75 | |
76 | 76 | <p><label class="frm_left_label"><?php _e( 'Site Key', 'formidable' ) ?></label> |
77 | - <input type="text" name="frm_pubkey" id="frm_pubkey" size="42" value="<?php echo esc_attr($frm_settings->pubkey) ?>" placeholder="<?php esc_attr_e( 'Optional', 'formidable' ) ?>" /></p> |
|
77 | + <input type="text" name="frm_pubkey" id="frm_pubkey" size="42" value="<?php echo esc_attr( $frm_settings->pubkey ) ?>" placeholder="<?php esc_attr_e( 'Optional', 'formidable' ) ?>" /></p> |
|
78 | 78 | |
79 | 79 | <p><label class="frm_left_label"><?php _e( 'Private Key', 'formidable' ) ?></label> |
80 | - <input type="text" name="frm_privkey" id="frm_privkey" size="42" value="<?php echo esc_attr($frm_settings->privkey) ?>" placeholder="<?php esc_attr_e( 'Optional', 'formidable' ) ?>" /></p> |
|
80 | + <input type="text" name="frm_privkey" id="frm_privkey" size="42" value="<?php echo esc_attr( $frm_settings->privkey ) ?>" placeholder="<?php esc_attr_e( 'Optional', 'formidable' ) ?>" /></p> |
|
81 | 81 | |
82 | 82 | <p><label class="frm_left_label"><?php _e( 'reCAPTCHA Language', 'formidable' ) ?></label> |
83 | 83 | <select name="frm_re_lang" id="frm_re_lang"> |
84 | 84 | <?php foreach ( $captcha_lang as $lang => $lang_name ) { ?> |
85 | - <option value="<?php echo esc_attr($lang) ?>" <?php selected($frm_settings->re_lang, $lang) ?>><?php echo esc_html( $lang_name ) ?></option> |
|
85 | + <option value="<?php echo esc_attr( $lang ) ?>" <?php selected( $frm_settings->re_lang, $lang ) ?>><?php echo esc_html( $lang_name ) ?></option> |
|
86 | 86 | <?php } ?> |
87 | 87 | </select></p> |
88 | 88 | |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | <label class="frm_left_label"><?php _e( 'Success Message', 'formidable' ); ?> |
128 | 128 | <span class="frm_help frm_icon_font frm_tooltip_icon" title="<?php esc_attr_e( 'The default message seen after a form is submitted.', 'formidable' ) ?>" ></span> |
129 | 129 | </label> |
130 | - <input type="text" id="frm_success_msg" name="frm_success_msg" class="frm_with_left_label" value="<?php echo esc_attr($frm_settings->success_msg) ?>" /> |
|
130 | + <input type="text" id="frm_success_msg" name="frm_success_msg" class="frm_with_left_label" value="<?php echo esc_attr( $frm_settings->success_msg ) ?>" /> |
|
131 | 131 | </p> |
132 | 132 | |
133 | 133 | <p> |
@@ -135,30 +135,30 @@ discard block |
||
135 | 135 | <input type="text" value="<?php echo esc_attr( $frm_settings->submit_value ) ?>" id="frm_submit_value" name="frm_submit_value" class="frm_with_left_label" /> |
136 | 136 | </p> |
137 | 137 | |
138 | - <?php do_action('frm_settings_form', $frm_settings); ?> |
|
138 | + <?php do_action( 'frm_settings_form', $frm_settings ); ?> |
|
139 | 139 | |
140 | 140 | <?php if ( ! FrmAppHelper::pro_is_installed() ) { ?> |
141 | 141 | <div class="clear"></div> |
142 | 142 | <h3><?php _e( 'Miscellaneous', 'formidable' ) ?></h3> |
143 | 143 | <?php } ?> |
144 | 144 | <p><label class="frm_left_label"><?php _e( 'Admin menu label', 'formidable' ); ?></label> |
145 | - <input type="text" name="frm_menu" id="frm_menu" value="<?php echo esc_attr($frm_settings->menu) ?>" /> |
|
145 | + <input type="text" name="frm_menu" id="frm_menu" value="<?php echo esc_attr( $frm_settings->menu ) ?>" /> |
|
146 | 146 | <?php if ( is_multisite() && is_super_admin() ) { ?> |
147 | - <label for="frm_mu_menu"><input type="checkbox" name="frm_mu_menu" id="frm_mu_menu" value="1" <?php checked($frm_settings->mu_menu, 1) ?> /> <?php _e( 'Use this menu name site-wide', 'formidable' ); ?></label> |
|
147 | + <label for="frm_mu_menu"><input type="checkbox" name="frm_mu_menu" id="frm_mu_menu" value="1" <?php checked( $frm_settings->mu_menu, 1 ) ?> /> <?php _e( 'Use this menu name site-wide', 'formidable' ); ?></label> |
|
148 | 148 | <?php } ?> |
149 | 149 | </p> |
150 | 150 | |
151 | 151 | <p><label class="frm_left_label"><?php _e( 'Preview Page', 'formidable' ); ?></label> |
152 | - <?php FrmAppHelper::wp_pages_dropdown('frm-preview-page-id', $frm_settings->preview_page_id ) ?> |
|
152 | + <?php FrmAppHelper::wp_pages_dropdown( 'frm-preview-page-id', $frm_settings->preview_page_id ) ?> |
|
153 | 153 | </p> |
154 | 154 | |
155 | 155 | </div> |
156 | 156 | |
157 | 157 | <?php |
158 | 158 | foreach ( $sections as $sec_name => $section ) { |
159 | - if ( $a == $sec_name .'_settings' ) { ?> |
|
159 | + if ( $a == $sec_name . '_settings' ) { ?> |
|
160 | 160 | <style type="text/css">.<?php echo esc_attr( $sec_name ) ?>_settings{display:block;}</style><?php }?> |
161 | - <div id="<?php echo esc_attr( $sec_name ) ?>_settings" class="<?php echo esc_attr( $sec_name ) ?>_settings tabs-panel <?php echo ( $a == $sec_name .'_settings' ) ? 'frm_block' : 'frm_hidden'; ?>"><?php |
|
161 | + <div id="<?php echo esc_attr( $sec_name ) ?>_settings" class="<?php echo esc_attr( $sec_name ) ?>_settings tabs-panel <?php echo ( $a == $sec_name . '_settings' ) ? 'frm_block' : 'frm_hidden'; ?>"><?php |
|
162 | 162 | if ( isset( $section['class'] ) ) { |
163 | 163 | call_user_func( array( $section['class'], $section['function'] ) ); |
164 | 164 | } else { |
@@ -1,23 +1,23 @@ |
||
1 | 1 | <div class="clear"></div> |
2 | 2 | <?php |
3 | 3 | if ( isset($message) && $message != '' ) { |
4 | - if ( FrmAppHelper::is_admin() ) { |
|
5 | - ?><div id="message" class="updated frm_msg_padding"><?php |
|
6 | - echo $message; |
|
7 | - ?></div><?php |
|
8 | - } else { |
|
9 | - echo $message; |
|
10 | - } |
|
4 | + if ( FrmAppHelper::is_admin() ) { |
|
5 | + ?><div id="message" class="updated frm_msg_padding"><?php |
|
6 | + echo $message; |
|
7 | + ?></div><?php |
|
8 | + } else { |
|
9 | + echo $message; |
|
10 | + } |
|
11 | 11 | } |
12 | 12 | |
13 | 13 | if ( isset($errors) && is_array($errors) && count($errors) > 0 ) { ?> |
14 | 14 | <div class="error"> |
15 | 15 | <ul id="frm_errors"> |
16 | 16 | <?php |
17 | - foreach ( $errors as $error ) { |
|
18 | - echo '<li>' . $error . '</li>'; |
|
19 | - } |
|
20 | - ?> |
|
17 | + foreach ( $errors as $error ) { |
|
18 | + echo '<li>' . $error . '</li>'; |
|
19 | + } |
|
20 | + ?> |
|
21 | 21 | </ul> |
22 | 22 | </div> |
23 | 23 | <?php |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <div class="clear"></div> |
2 | 2 | <?php |
3 | -if ( isset($message) && $message != '' ) { |
|
3 | +if ( isset( $message ) && $message != '' ) { |
|
4 | 4 | if ( FrmAppHelper::is_admin() ) { |
5 | 5 | ?><div id="message" class="updated frm_msg_padding"><?php |
6 | 6 | echo $message; |
@@ -10,7 +10,7 @@ discard block |
||
10 | 10 | } |
11 | 11 | } |
12 | 12 | |
13 | -if ( isset($errors) && is_array($errors) && count($errors) > 0 ) { ?> |
|
13 | +if ( isset( $errors ) && is_array( $errors ) && count( $errors ) > 0 ) { ?> |
|
14 | 14 | <div class="error"> |
15 | 15 | <ul id="frm_errors"> |
16 | 16 | <?php |
@@ -1,2 +1,2 @@ |
||
1 | 1 | <?php |
2 | -_deprecated_file( basename(__FILE__), '2.0', null, __( 'Use wp_enqueue_script and wp_enqueue_style.', 'formidable' ) ); |
|
2 | +_deprecated_file( basename( __FILE__ ), '2.0', null, __( 'Use wp_enqueue_script and wp_enqueue_style.', 'formidable' ) ); |
@@ -1,14 +1,14 @@ discard block |
||
1 | 1 | <p class="frm_no_top_margin"> |
2 | - <label for="frm_submit_style"><input type="checkbox" name="<?php echo esc_attr( $frm_style->get_field_name('submit_style') ) ?>" id="frm_submit_style" <?php echo $style->post_content['submit_style'] ? 'checked="checked"': ''; ?> value="1" /> <?php _e( 'Disable submit button styling', 'formidable' ); ?> <span class="frm_help frm_icon_font frm_tooltip_icon" title="<?php esc_attr_e( 'Note: If disabled, you may not see the change take effect until you make 2 more styling changes or click "Update Options".', 'formidable' ) ?>" ></span></label> |
|
2 | + <label for="frm_submit_style"><input type="checkbox" name="<?php echo esc_attr( $frm_style->get_field_name( 'submit_style' ) ) ?>" id="frm_submit_style" <?php echo $style->post_content['submit_style'] ? 'checked="checked"' : ''; ?> value="1" /> <?php _e( 'Disable submit button styling', 'formidable' ); ?> <span class="frm_help frm_icon_font frm_tooltip_icon" title="<?php esc_attr_e( 'Note: If disabled, you may not see the change take effect until you make 2 more styling changes or click "Update Options".', 'formidable' ) ?>" ></span></label> |
|
3 | 3 | </p> |
4 | 4 | |
5 | 5 | <div class="posttypediv"> |
6 | 6 | <ul class="posttype-tabs add-menu-item-tabs"> |
7 | 7 | <li <?php echo ( 'default' == $current_tab ? ' class="tabs"' : '' ); ?>> |
8 | - <a href="<?php echo esc_url('?page=formidable-styles&page-tab=default#tabs-panel-button-default') ?>" class="nav-tab-link" data-type="tabs-panel-button-default" ><?php _e( 'Default', 'formidable' ) ?></a> |
|
8 | + <a href="<?php echo esc_url( '?page=formidable-styles&page-tab=default#tabs-panel-button-default' ) ?>" class="nav-tab-link" data-type="tabs-panel-button-default" ><?php _e( 'Default', 'formidable' ) ?></a> |
|
9 | 9 | </li> |
10 | 10 | <li <?php echo ( 'button-hover' == $current_tab ? ' class="tabs"' : '' ); ?>> |
11 | - <a href="<?php echo esc_url('?page=formidable-styles&page-tab=button-hover#page-button-hover') ?>" class="nav-tab-link" data-type="tabs-panel-button-hover" ><?php _e( 'Hover', 'formidable' ) ?></a> |
|
11 | + <a href="<?php echo esc_url( '?page=formidable-styles&page-tab=button-hover#page-button-hover' ) ?>" class="nav-tab-link" data-type="tabs-panel-button-hover" ><?php _e( 'Hover', 'formidable' ) ?></a> |
|
12 | 12 | </li> |
13 | 13 | <li <?php echo ( 'button-click' == $current_tab ? ' class="tabs"' : '' ); ?>> |
14 | 14 | <a href="?page=formidable-styles&page-tab=button-click#tabs-panel-button-click" class="nav-tab-link" data-type="tabs-panel-button-click"><?php _e( 'Click', 'formidable' ) ?></a> |
@@ -20,22 +20,22 @@ discard block |
||
20 | 20 | ?>"> |
21 | 21 | <div class="field-group field-group-border clearfix"> |
22 | 22 | <label><?php _e( 'Size', 'formidable' ) ?></label> |
23 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('submit_font_size') ) ?>" id="frm_submit_font_size" value="<?php echo esc_attr( $style->post_content['submit_font_size'] ) ?>" size="3" /> |
|
23 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'submit_font_size' ) ) ?>" id="frm_submit_font_size" value="<?php echo esc_attr( $style->post_content['submit_font_size'] ) ?>" size="3" /> |
|
24 | 24 | </div> |
25 | 25 | |
26 | 26 | <div class="field-group clearfix"> |
27 | 27 | <label><?php _e( 'Width', 'formidable' ) ?></label> |
28 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('submit_width') ) ?>" id="frm_submit_width" value="<?php echo esc_attr( $style->post_content['submit_width'] ) ?>" size="5" /> |
|
28 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'submit_width' ) ) ?>" id="frm_submit_width" value="<?php echo esc_attr( $style->post_content['submit_width'] ) ?>" size="5" /> |
|
29 | 29 | </div> |
30 | 30 | |
31 | 31 | <div class="field-group clearfix"> |
32 | 32 | <label><?php _e( 'Height', 'formidable' ) ?></label> |
33 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('submit_height') ) ?>" id="frm_submit_height" value="<?php echo esc_attr( $style->post_content['submit_height'] ) ?>" size="5" /> |
|
33 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'submit_height' ) ) ?>" id="frm_submit_height" value="<?php echo esc_attr( $style->post_content['submit_height'] ) ?>" size="5" /> |
|
34 | 34 | </div> |
35 | 35 | |
36 | 36 | <div class="field-group clearfix"> |
37 | 37 | <label><?php _e( 'Weight', 'formidable' ) ?></label> |
38 | - <select name="<?php echo esc_attr( $frm_style->get_field_name('submit_weight') ) ?>" id="frm_submit_weight"> |
|
38 | + <select name="<?php echo esc_attr( $frm_style->get_field_name( 'submit_weight' ) ) ?>" id="frm_submit_weight"> |
|
39 | 39 | <?php foreach ( FrmStyle::get_bold_options() as $value => $name ) { ?> |
40 | 40 | <option value="<?php echo esc_attr( $value ) ?>" <?php selected( $style->post_content['submit_weight'], $value ) ?>><?php echo $name ?></option> |
41 | 41 | <?php } ?> |
@@ -44,48 +44,48 @@ discard block |
||
44 | 44 | |
45 | 45 | <div class="field-group clearfix"> |
46 | 46 | <label><?php _e( 'Corners', 'formidable' ) ?></label> |
47 | - <input type="text" value="<?php echo esc_attr( $style->post_content['submit_border_radius'] ) ?>" name="<?php echo esc_attr( $frm_style->get_field_name('submit_border_radius') ) ?>" id="frm_submit_border_radius" size="4"/> |
|
47 | + <input type="text" value="<?php echo esc_attr( $style->post_content['submit_border_radius'] ) ?>" name="<?php echo esc_attr( $frm_style->get_field_name( 'submit_border_radius' ) ) ?>" id="frm_submit_border_radius" size="4"/> |
|
48 | 48 | </div> |
49 | 49 | |
50 | 50 | <div class="field-group field-group-border clearfix"> |
51 | 51 | <label><?php _e( 'BG Color', 'formidable' ) ?></label> |
52 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('submit_bg_color') ) ?>" id="frm_submit_bg_color" class="hex" value="<?php echo esc_attr( $style->post_content['submit_bg_color'] ) ?>" /> |
|
52 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'submit_bg_color' ) ) ?>" id="frm_submit_bg_color" class="hex" value="<?php echo esc_attr( $style->post_content['submit_bg_color'] ) ?>" /> |
|
53 | 53 | </div> |
54 | 54 | |
55 | 55 | <div class="field-group clearfix"> |
56 | 56 | <label><?php _e( 'Text', 'formidable' ) ?></label> |
57 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('submit_text_color') ) ?>" id="frm_submit_text_color" class="hex" value="<?php echo esc_attr( $style->post_content['submit_text_color'] ) ?>" /> |
|
57 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'submit_text_color' ) ) ?>" id="frm_submit_text_color" class="hex" value="<?php echo esc_attr( $style->post_content['submit_text_color'] ) ?>" /> |
|
58 | 58 | </div> |
59 | 59 | |
60 | 60 | <div class="field-group field-group-border clearfix"> |
61 | 61 | <label><?php _e( 'Border', 'formidable' ) ?></label> |
62 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('submit_border_color') ) ?>" id="frm_submit_border_color" class="hex" value="<?php echo esc_attr( $style->post_content['submit_border_color'] ) ?>" /> |
|
62 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'submit_border_color' ) ) ?>" id="frm_submit_border_color" class="hex" value="<?php echo esc_attr( $style->post_content['submit_border_color'] ) ?>" /> |
|
63 | 63 | </div> |
64 | 64 | |
65 | 65 | <div class="field-group clearfix"> |
66 | 66 | <label><?php _e( 'Thickness', 'formidable' ) ?></label> |
67 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('submit_border_width') ) ?>" id="frm_submit_border_width" value="<?php echo esc_attr( $style->post_content['submit_border_width'] ) ?>" size="4" /> |
|
67 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'submit_border_width' ) ) ?>" id="frm_submit_border_width" value="<?php echo esc_attr( $style->post_content['submit_border_width'] ) ?>" size="4" /> |
|
68 | 68 | </div> |
69 | 69 | |
70 | 70 | <div class="field-group clearfix"> |
71 | 71 | <label><?php _e( 'Shadow', 'formidable' ) ?></label> |
72 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('submit_shadow_color') ) ?>" id="frm_submit_shadow_color" class="hex" value="<?php echo esc_attr( $style->post_content['submit_shadow_color'] ) ?>" /> |
|
72 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'submit_shadow_color' ) ) ?>" id="frm_submit_shadow_color" class="hex" value="<?php echo esc_attr( $style->post_content['submit_shadow_color'] ) ?>" /> |
|
73 | 73 | </div> |
74 | 74 | |
75 | 75 | <div class="clear"></div> |
76 | 76 | <div class="field-group field-group-border frm-full"> |
77 | 77 | <label><?php _e( 'BG Image', 'formidable' ) ?></label> |
78 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('submit_bg_img') ) ?>" id="frm_submit_bg_img" value="<?php echo esc_attr( $style->post_content['submit_bg_img'] ) ?>" /> |
|
78 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'submit_bg_img' ) ) ?>" id="frm_submit_bg_img" value="<?php echo esc_attr( $style->post_content['submit_bg_img'] ) ?>" /> |
|
79 | 79 | </div> |
80 | 80 | |
81 | 81 | <div class="field-group field-group-border clearfix"> |
82 | 82 | <label><?php _e( 'Margin', 'formidable' ) ?></label> |
83 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('submit_margin') ) ?>" id="frm_submit_margin" value="<?php echo esc_attr( $style->post_content['submit_margin'] ) ?>" size="6" /> |
|
83 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'submit_margin' ) ) ?>" id="frm_submit_margin" value="<?php echo esc_attr( $style->post_content['submit_margin'] ) ?>" size="6" /> |
|
84 | 84 | </div> |
85 | 85 | |
86 | 86 | <div class="field-group clearfix"> |
87 | 87 | <label><?php _e( 'Padding', 'formidable' ) ?></label> |
88 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('submit_padding') ) ?>" id="frm_submit_padding" value="<?php echo esc_attr( $style->post_content['submit_padding'] ) ?>" size="6" /> |
|
88 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'submit_padding' ) ) ?>" id="frm_submit_padding" value="<?php echo esc_attr( $style->post_content['submit_padding'] ) ?>" size="6" /> |
|
89 | 89 | </div> |
90 | 90 | <div class="clear"></div> |
91 | 91 | </div><!-- /.tabs-panel --> |
@@ -95,17 +95,17 @@ discard block |
||
95 | 95 | ?>"> |
96 | 96 | <div class="field-group clearfix"> |
97 | 97 | <label><?php _e( 'BG Color', 'formidable' ) ?></label> |
98 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('submit_hover_bg_color') ) ?>" id="frm_submit_hover_bg_color" class="hex" value="<?php echo esc_attr( $style->post_content['submit_hover_bg_color'] ) ?>" /> |
|
98 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'submit_hover_bg_color' ) ) ?>" id="frm_submit_hover_bg_color" class="hex" value="<?php echo esc_attr( $style->post_content['submit_hover_bg_color'] ) ?>" /> |
|
99 | 99 | </div> |
100 | 100 | |
101 | 101 | <div class="field-group clearfix"> |
102 | 102 | <label><?php _e( 'Text', 'formidable' ) ?></label> |
103 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('submit_hover_color') ) ?>" id="frm_submit_hover_color" class="hex" value="<?php echo esc_attr( $style->post_content['submit_hover_color'] ) ?>" /> |
|
103 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'submit_hover_color' ) ) ?>" id="frm_submit_hover_color" class="hex" value="<?php echo esc_attr( $style->post_content['submit_hover_color'] ) ?>" /> |
|
104 | 104 | </div> |
105 | 105 | |
106 | 106 | <div class="field-group clearfix"> |
107 | 107 | <label><?php _e( 'Border', 'formidable' ) ?></label> |
108 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('submit_hover_border_color') ) ?>" id="frm_submit_hover_border_color" class="hex" value="<?php echo esc_attr( $style->post_content['submit_hover_border_color'] ) ?>" /> |
|
108 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'submit_hover_border_color' ) ) ?>" id="frm_submit_hover_border_color" class="hex" value="<?php echo esc_attr( $style->post_content['submit_hover_border_color'] ) ?>" /> |
|
109 | 109 | </div> |
110 | 110 | |
111 | 111 | <div class="clear"></div> |
@@ -116,17 +116,17 @@ discard block |
||
116 | 116 | ?>"> |
117 | 117 | <div class="field-group clearfix"> |
118 | 118 | <label><?php _e( 'BG Color', 'formidable' ) ?></label> |
119 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('submit_active_bg_color') ) ?>" id="frm_submit_active_bg_color" class="hex" value="<?php echo esc_attr( $style->post_content['submit_active_bg_color'] ) ?>" /> |
|
119 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'submit_active_bg_color' ) ) ?>" id="frm_submit_active_bg_color" class="hex" value="<?php echo esc_attr( $style->post_content['submit_active_bg_color'] ) ?>" /> |
|
120 | 120 | </div> |
121 | 121 | |
122 | 122 | <div class="field-group clearfix"> |
123 | 123 | <label><?php _e( 'Text', 'formidable' ) ?></label> |
124 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('submit_active_color') ) ?>" id="frm_submit_active_color" class="hex" value="<?php echo esc_attr( $style->post_content['submit_active_color'] ) ?>" /> |
|
124 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'submit_active_color' ) ) ?>" id="frm_submit_active_color" class="hex" value="<?php echo esc_attr( $style->post_content['submit_active_color'] ) ?>" /> |
|
125 | 125 | </div> |
126 | 126 | |
127 | 127 | <div class="field-group clearfix"> |
128 | 128 | <label><?php _e( 'Border', 'formidable' ) ?></label> |
129 | - <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('submit_active_border_color') ) ?>" id="frm_submit_active_border_color" class="hex" value="<?php echo esc_attr( $style->post_content['submit_active_border_color'] ) ?>" /> |
|
129 | + <input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'submit_active_border_color' ) ) ?>" id="frm_submit_active_border_color" class="hex" value="<?php echo esc_attr( $style->post_content['submit_active_border_color'] ) ?>" /> |
|
130 | 130 | </div> |
131 | 131 | |
132 | 132 | <div class="clear"></div> |