Completed
Push — master ( 21ab07...7286a7 )
by Jamie
02:58
created
classes/views/frm-forms/settings.php 1 patch
Spacing   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -26,9 +26,9 @@  discard block
 block discarded – undo
26 26
         <div class="contextual-help-tabs">
27 27
         <ul class="frm-category-tabs frm-form-setting-tabs">
28 28
 			<?php $a = FrmAppHelper::simple_get( 't', 'sanitize_title', 'advanced_settings' ); ?>
29
-        	<li <?php echo ($a == 'advanced_settings') ? 'class="tabs active"' : '' ?>><a href="#advanced_settings"><?php _e( 'General', 'formidable' ) ?></a></li>
30
-        	<li <?php echo ($a == 'email_settings') ? 'class="tabs active"' : '' ?>><a href="#email_settings"><?php _e( 'Form Actions', 'formidable' ); ?></a></li>
31
-            <li <?php echo ($a == 'html_settings') ? 'class="tabs active"' : '' ?>><a href="#html_settings"><?php _e( 'Customize HTML', 'formidable' ) ?></a></li>
29
+        	<li <?php echo ( $a == 'advanced_settings' ) ? 'class="tabs active"' : '' ?>><a href="#advanced_settings"><?php _e( 'General', 'formidable' ) ?></a></li>
30
+        	<li <?php echo ( $a == 'email_settings' ) ? 'class="tabs active"' : '' ?>><a href="#email_settings"><?php _e( 'Form Actions', 'formidable' ); ?></a></li>
31
+            <li <?php echo ( $a == 'html_settings' ) ? 'class="tabs active"' : '' ?>><a href="#html_settings"><?php _e( 'Customize HTML', 'formidable' ) ?></a></li>
32 32
             <?php foreach ( $sections as $key => $section ) {
33 33
 				if ( isset( $section['name'] ) ) {
34 34
 					$sec_name = $section['name'];
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
             <?php } ?>
43 43
         </ul>
44 44
         </div>
45
-        <div class="advanced_settings tabs-panel <?php echo ($a == 'advanced_settings') ? 'frm_block' : 'frm_hidden' ?>">
45
+        <div class="advanced_settings tabs-panel <?php echo ( $a == 'advanced_settings' ) ? 'frm_block' : 'frm_hidden' ?>">
46 46
 			<?php FrmTipsHelper::pro_tip( 'get_form_settings_tip', 'p' ); ?>
47 47
 
48 48
 			<h3 class="frm_first_h3"><?php _e( 'On Submit', 'formidable' ); ?>
@@ -57,19 +57,19 @@  discard block
 block discarded – undo
57 57
                 <tr>
58 58
                     <td class="frm_175_width">
59 59
                         <select name="options[success_action]" id="success_action">
60
-                            <option value="message" <?php selected($values['success_action'], 'message') ?>><?php _e( 'Show Message', 'formidable' )?></option>
60
+                            <option value="message" <?php selected( $values['success_action'], 'message' ) ?>><?php _e( 'Show Message', 'formidable' )?></option>
61 61
                             <?php if ( FrmAppHelper::pro_is_installed() ) { ?>
62
-                                <option value="redirect" <?php selected($values['success_action'], 'redirect');
62
+                                <option value="redirect" <?php selected( $values['success_action'], 'redirect' );
63 63
                                 ?>><?php _e( 'Redirect to URL', 'formidable' ) ?></option>
64
-                                <option value="page" <?php selected($values['success_action'], 'page');
64
+                                <option value="page" <?php selected( $values['success_action'], 'page' );
65 65
 								?>><?php _e( 'Show Page Content', 'formidable' ) ?></option>
66 66
                             <?php } else { ?>
67
-                            <option value="redirect" disabled="disabled" <?php selected($values['success_action'], 'redirect');
67
+                            <option value="redirect" disabled="disabled" <?php selected( $values['success_action'], 'redirect' );
68 68
 							?>>
69 69
 								<?php _e( 'Redirect to URL', 'formidable' ); ?>
70 70
 								<?php _e( '(Premium feature)', 'formidable' ); ?>
71 71
 							</option>
72
-							<option value="page" disabled="disabled" <?php selected($values['success_action'], 'page');
72
+							<option value="page" disabled="disabled" <?php selected( $values['success_action'], 'page' );
73 73
                             ?>>
74 74
 								<?php _e( 'Show Page Content', 'formidable' ); ?>
75 75
 								<?php _e( '(Premium feature)', 'formidable' ); ?>
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
                         </select>
79 79
                     </td>
80 80
                     <td>
81
-                        <span class="success_action_redirect_box success_action_box<?php echo ($values['success_action'] == 'redirect') ? '' : ' frm_hidden'; ?>">
81
+                        <span class="success_action_redirect_box success_action_box<?php echo ( $values['success_action'] == 'redirect' ) ? '' : ' frm_hidden'; ?>">
82 82
                             <input type="text" name="options[success_url]" id="success_url" value="<?php
83 83
 							if ( isset( $values['success_url'] ) ) {
84 84
 								echo esc_attr( $values['success_url'] );
@@ -86,23 +86,23 @@  discard block
 block discarded – undo
86 86
                         </span>
87 87
 
88 88
 						<?php if ( FrmAppHelper::pro_is_installed() ) { ?>
89
-                        <span class="success_action_page_box success_action_box<?php echo ($values['success_action'] == 'page') ? '' : ' frm_hidden'; ?>">
89
+                        <span class="success_action_page_box success_action_box<?php echo ( $values['success_action'] == 'page' ) ? '' : ' frm_hidden'; ?>">
90 90
                             <label><?php _e( 'Use Content from Page', 'formidable' ) ?></label>
91 91
                             <?php FrmAppHelper::wp_pages_dropdown( 'options[success_page_id]', $values['success_page_id'] ) ?>
92 92
                         </span>
93 93
                         <?php } ?>
94 94
                     </td>
95 95
                 </tr>
96
-                <tr class="frm_show_form_opt success_action_message_box success_action_box<?php echo ($values['success_action'] == 'message') ? '' : ' frm_hidden'; ?>">
96
+                <tr class="frm_show_form_opt success_action_message_box success_action_box<?php echo ( $values['success_action'] == 'message' ) ? '' : ' frm_hidden'; ?>">
97 97
                     <td colspan="2">
98 98
 						<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>
99 99
                     </td>
100 100
                 </tr>
101 101
                 <tr>
102
-                    <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>
102
+                    <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>
103 103
                     </td>
104 104
                 </tr>
105
-                <?php if ( function_exists( 'akismet_http_post') ) { ?>
105
+                <?php if ( function_exists( 'akismet_http_post' ) ) { ?>
106 106
                 <tr>
107 107
                     <td colspan="2"><?php _e( 'Use Akismet to check entries for spam for', 'formidable' ) ?>
108 108
                         <select name="options[akismet]">
@@ -128,11 +128,11 @@  discard block
 block discarded – undo
128 128
 						<span class="frm_help frm_icon_font frm_tooltip_icon" title="<?php esc_attr_e( 'Recommended for long forms.', 'formidable' ) ?>" ></span>
129 129
                     </td>
130 130
                 </tr>
131
-                <?php do_action('frm_add_form_ajax_options', $values); ?>
131
+                <?php do_action( 'frm_add_form_ajax_options', $values ); ?>
132 132
             </table>
133 133
 
134 134
             <!--Permissions Section-->
135
-	        <?php do_action('frm_add_form_perm_options', $values); ?>
135
+	        <?php do_action( 'frm_add_form_perm_options', $values ); ?>
136 136
 
137 137
             <!--Styling & Buttons Section-->
138 138
 			<h3><?php _e( 'Styling & Buttons', 'formidable' ) ?>
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
                 </tr>
154 154
                 <tr>
155 155
                     <td><label><?php _e( 'Submit Button Text', 'formidable' ) ?></label></td>
156
-                    <td><input type="text" name="options[submit_value]" value="<?php echo esc_attr($values['submit_value']); ?>" /></td>
156
+                    <td><input type="text" name="options[submit_value]" value="<?php echo esc_attr( $values['submit_value'] ); ?>" /></td>
157 157
                 </tr>
158 158
 				<?php do_action( 'frm_add_form_button_options', $values ); ?>
159 159
             </table>
@@ -163,27 +163,27 @@  discard block
 block discarded – undo
163 163
 				<span class="frm_help frm_icon_font frm_tooltip_icon" title="<?php esc_attr_e( 'Set up your confirmation messages.', 'formidable' ) ?>" ></span>
164 164
 			</h3>
165 165
             <table class="form-table">
166
-                <tr class="success_action_message_box success_action_box<?php echo ($values['success_action'] == 'message') ? '' : ' frm_hidden'; ?>">
166
+                <tr class="success_action_message_box success_action_box<?php echo ( $values['success_action'] == 'message' ) ? '' : ' frm_hidden'; ?>">
167 167
                     <td>
168 168
                         <div><?php _e( 'On Submit', 'formidable' ) ?></div>
169
-                        <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>
169
+                        <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>
170 170
                     </td>
171 171
                 </tr>
172
-                <?php do_action('frm_add_form_msg_options', $values); ?>
172
+                <?php do_action( 'frm_add_form_msg_options', $values ); ?>
173 173
             </table>
174 174
 
175 175
 			<!--Misc Section-->
176 176
 			<?php if ( has_action( 'frm_additional_form_options' ) ) { ?>
177 177
 				<h3><?php _e( 'Miscellaneous', 'formidable' ); ?></h3>
178 178
 				<table class="form-table">
179
-					<?php do_action('frm_additional_form_options', $values); ?>
179
+					<?php do_action( 'frm_additional_form_options', $values ); ?>
180 180
 				</table>
181 181
 				<?php } ?>
182 182
 
183 183
 		</div>
184 184
 
185 185
 
186
-        <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'; ?>">
186
+        <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'; ?>">
187 187
 			<?php FrmTipsHelper::pro_tip( 'get_form_action_tip', 'p' ); ?>
188 188
             <div id="frm_email_addon_menu" class="manage-menus">
189 189
                 <h3><?php _e( 'Add New Action', 'formidable' ) ?></h3>
@@ -194,11 +194,11 @@  discard block
 block discarded – undo
194 194
                 foreach ( $action_controls as $action_control ) {
195 195
                     ?>
196 196
                     <li><a href="javascript:void(0)" class="frm_<?php echo esc_attr( $action_control->id_base ) ?>_action frm_bstooltip <?php
197
-                    echo ( isset($action_control->action_options['active']) && $action_control->action_options['active']) ? 'frm_active_action ' : 'frm_inactive_action ';
197
+                    echo ( isset( $action_control->action_options['active'] ) && $action_control->action_options['active'] ) ? 'frm_active_action ' : 'frm_inactive_action ';
198 198
                     echo esc_attr( $action_control->action_options['classes'] );
199
-                    ?>" 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>
199
+                    ?>" 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>
200 200
 <?php
201
-                    unset($actions_icon);
201
+                    unset( $actions_icon );
202 202
                 }
203 203
                 ?>
204 204
                 </ul>
@@ -210,19 +210,19 @@  discard block
 block discarded – undo
210 210
                     <?php _e( 'Click an action to add it to this form', 'formidable' ) ?>
211 211
                 </div>
212 212
             </div>
213
-            <?php FrmFormActionsController::list_actions($form, $values); ?>
213
+            <?php FrmFormActionsController::list_actions( $form, $values ); ?>
214 214
         </div>
215 215
 
216
-        <div id="html_settings" class="tabs-panel <?php echo ($a == 'html_settings') ? ' frm_block' : ' frm_hidden'; ?>">
216
+        <div id="html_settings" class="tabs-panel <?php echo ( $a == 'html_settings' ) ? ' frm_block' : ' frm_hidden'; ?>">
217 217
 
218 218
             <div class="frm_field_html_box frm_top_container">
219 219
                 <p><label><?php _e( 'Form Classes', 'formidable' ) ?></label>
220
-                    <input type="text" name="options[form_class]" value="<?php echo esc_attr($values['form_class']) ?>" />
220
+                    <input type="text" name="options[form_class]" value="<?php echo esc_attr( $values['form_class'] ) ?>" />
221 221
                 </p>
222 222
                 <div class="clear"></div>
223 223
 
224 224
                 <p><label><?php _e( 'Before Fields', 'formidable' ) ?></label>
225
-                <textarea name="options[before_html]" rows="4" id="before_html" class="frm_long_input"><?php echo FrmAppHelper::esc_textarea($values['before_html']) ?></textarea></p>
225
+                <textarea name="options[before_html]" rows="4" id="before_html" class="frm_long_input"><?php echo FrmAppHelper::esc_textarea( $values['before_html'] ) ?></textarea></p>
226 226
 
227 227
                 <div id="add_html_fields">
228 228
                     <?php
@@ -230,18 +230,18 @@  discard block
 block discarded – undo
230 230
 						foreach ( $values['fields'] as $field ) {
231 231
 							if ( apply_filters( 'frm_show_custom_html', true, $field['type'] ) ) { ?>
232 232
                                 <p><label><?php echo esc_html( $field['name'] ) ?></label>
233
-                                <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>
233
+                                <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>
234 234
                             <?php }
235
-                            unset($field);
235
+                            unset( $field );
236 236
                         }
237 237
                     } ?>
238 238
                 </div>
239 239
 
240 240
                 <p><label><?php _e( 'After Fields', 'formidable' ) ?></label>
241
-                <textarea name="options[after_html]" rows="3" id="after_html" class="frm_long_input"><?php echo FrmAppHelper::esc_textarea($values['after_html']) ?></textarea></p>
241
+                <textarea name="options[after_html]" rows="3" id="after_html" class="frm_long_input"><?php echo FrmAppHelper::esc_textarea( $values['after_html'] ) ?></textarea></p>
242 242
 
243 243
                 <p><label><?php _e( 'Submit Button', 'formidable' ) ?></label>
244
-                <textarea name="options[submit_html]" rows="3" id="submit_html" class="frm_long_input"><?php echo FrmAppHelper::esc_textarea($values['submit_html']) ?></textarea></p>
244
+                <textarea name="options[submit_html]" rows="3" id="submit_html" class="frm_long_input"><?php echo FrmAppHelper::esc_textarea( $values['submit_html'] ) ?></textarea></p>
245 245
             </div>
246 246
         </div>
247 247
 
@@ -260,7 +260,7 @@  discard block
 block discarded – undo
260 260
             </div>
261 261
         <?php } ?>
262 262
 
263
-        <?php do_action('frm_add_form_option_section', $values); ?>
263
+        <?php do_action( 'frm_add_form_option_section', $values ); ?>
264 264
         <div class="clear"></div>
265 265
         </div>
266 266
         </div>
Please login to merge, or discard this patch.
classes/views/frm-form-actions/_email_settings.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -6,11 +6,11 @@
 block discarded – undo
6 6
     </td>
7 7
     <td class="frm_bcc_cc_container">
8 8
         <a href="javascript:void(0)" class="button frm_email_buttons frm_cc_button <?php
9
-        echo ( ! empty($form_action->post_content['cc'])  ? 'frm_hidden' : '' );
10
-        ?>" data-emailrow="cc"><?php _e( 'CC', 'formidable' ) ?></a>
9
+		echo ( ! empty($form_action->post_content['cc'])  ? 'frm_hidden' : '' );
10
+		?>" data-emailrow="cc"><?php _e( 'CC', 'formidable' ) ?></a>
11 11
 	    <a href="javascript:void(0)" class="button frm_email_buttons frm_bcc_button <?php
12
-	    echo ( ! empty($form_action->post_content['bcc'])  ? 'frm_hidden' : '' );
13
-	    ?>" data-emailrow="bcc"><?php _e( 'BCC', 'formidable' ) ?></a>
12
+		echo ( ! empty($form_action->post_content['bcc'])  ? 'frm_hidden' : '' );
13
+		?>" data-emailrow="bcc"><?php _e( 'BCC', 'formidable' ) ?></a>
14 14
     </td>
15 15
 </tr>
16 16
 <tr class="frm_cc_row<?php echo empty( $form_action->post_content['cc'] )  ? ' frm_hidden' : ''; ?>" >
Please login to merge, or discard this patch.
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -1,63 +1,63 @@
 block discarded – undo
1 1
 <table class="form-table frm-no-margin">
2 2
 <tr>
3
-    <th><label <?php FrmAppHelper::maybe_add_tooltip('email_to') ?>><?php _e( 'To', 'formidable' ) ?></label>
3
+    <th><label <?php FrmAppHelper::maybe_add_tooltip( 'email_to' ) ?>><?php _e( 'To', 'formidable' ) ?></label>
4 4
     </th>
5
-    <td><input type="text" name="<?php echo esc_attr( $this->get_field_name('email_to') ) ?>" value="<?php echo esc_attr( $form_action->post_content['email_to'] ); ?>" class="frm_not_email_to frm_email_blur large-text <?php FrmAppHelper::maybe_add_tooltip('email_to', 'open') ?>" id="<?php echo esc_attr( $this->get_field_id('email_to') ) ?>" />
5
+    <td><input type="text" name="<?php echo esc_attr( $this->get_field_name( 'email_to' ) ) ?>" value="<?php echo esc_attr( $form_action->post_content['email_to'] ); ?>" class="frm_not_email_to frm_email_blur large-text <?php FrmAppHelper::maybe_add_tooltip( 'email_to', 'open' ) ?>" id="<?php echo esc_attr( $this->get_field_id( 'email_to' ) ) ?>" />
6 6
     </td>
7 7
     <td class="frm_bcc_cc_container">
8 8
         <a href="javascript:void(0)" class="button frm_email_buttons frm_cc_button <?php
9
-        echo ( ! empty($form_action->post_content['cc'])  ? 'frm_hidden' : '' );
9
+        echo ( ! empty( $form_action->post_content['cc'] ) ? 'frm_hidden' : '' );
10 10
         ?>" data-emailrow="cc"><?php _e( 'CC', 'formidable' ) ?></a>
11 11
 	    <a href="javascript:void(0)" class="button frm_email_buttons frm_bcc_button <?php
12
-	    echo ( ! empty($form_action->post_content['bcc'])  ? 'frm_hidden' : '' );
12
+	    echo ( ! empty( $form_action->post_content['bcc'] ) ? 'frm_hidden' : '' );
13 13
 	    ?>" data-emailrow="bcc"><?php _e( 'BCC', 'formidable' ) ?></a>
14 14
     </td>
15 15
 </tr>
16
-<tr class="frm_cc_row<?php echo empty( $form_action->post_content['cc'] )  ? ' frm_hidden' : ''; ?>" >
17
-    <th><label <?php FrmAppHelper::maybe_add_tooltip('cc') ?>><?php _e( 'CC', 'formidable' ) ?></label>
16
+<tr class="frm_cc_row<?php echo empty( $form_action->post_content['cc'] ) ? ' frm_hidden' : ''; ?>" >
17
+    <th><label <?php FrmAppHelper::maybe_add_tooltip( 'cc' ) ?>><?php _e( 'CC', 'formidable' ) ?></label>
18 18
     </th>
19 19
     <td class="frm_right_addon">
20
-        <input type="text" name="<?php echo esc_attr( $this->get_field_name('cc') ) ?>" value="<?php echo esc_attr( $form_action->post_content['cc'] ); ?>" class="frm_not_email_to large-text <?php FrmAppHelper::maybe_add_tooltip('cc', 'open') ?>" id="<?php echo esc_attr( $this->get_field_id('cc') ) ?>" />
20
+        <input type="text" name="<?php echo esc_attr( $this->get_field_name( 'cc' ) ) ?>" value="<?php echo esc_attr( $form_action->post_content['cc'] ); ?>" class="frm_not_email_to large-text <?php FrmAppHelper::maybe_add_tooltip( 'cc', 'open' ) ?>" id="<?php echo esc_attr( $this->get_field_id( 'cc' ) ) ?>" />
21 21
         <a href="javascript:void(0)" class="frm_icon_font frm_remove_field frm_cancel1_icon" data-emailrow="cc"></a>
22 22
     </td>
23 23
     <td></td>
24 24
 </tr>
25
-<tr class="frm_bcc_row<?php echo empty( $form_action->post_content['bcc'] )  ? ' frm_hidden' : ''; ?>" >
26
-    <th><label <?php FrmAppHelper::maybe_add_tooltip('bcc') ?>><?php _e( 'BCC', 'formidable' ) ?></label>
25
+<tr class="frm_bcc_row<?php echo empty( $form_action->post_content['bcc'] ) ? ' frm_hidden' : ''; ?>" >
26
+    <th><label <?php FrmAppHelper::maybe_add_tooltip( 'bcc' ) ?>><?php _e( 'BCC', 'formidable' ) ?></label>
27 27
     </th>
28 28
     <td class="frm_right_addon">
29
-        <input type="text" name="<?php echo esc_attr( $this->get_field_name('bcc') ) ?>" value="<?php echo esc_attr( $form_action->post_content['bcc'] ); ?>" class="frm_not_email_to large-text <?php FrmAppHelper::maybe_add_tooltip('bcc', 'open') ?>" id="<?php echo esc_attr( $this->get_field_id('bcc') ) ?>" />
29
+        <input type="text" name="<?php echo esc_attr( $this->get_field_name( 'bcc' ) ) ?>" value="<?php echo esc_attr( $form_action->post_content['bcc'] ); ?>" class="frm_not_email_to large-text <?php FrmAppHelper::maybe_add_tooltip( 'bcc', 'open' ) ?>" id="<?php echo esc_attr( $this->get_field_id( 'bcc' ) ) ?>" />
30 30
         <a href="javascript:void(0)" class="frm_icon_font frm_remove_field frm_cancel1_icon" data-emailrow="bcc"></a>
31 31
     </td>
32 32
     <td></td>
33 33
 </tr>
34
-<tr class="frm_reply_to_row<?php echo empty( $form_action->post_content['reply_to'] )  ? ' frm_hidden' : ''; ?>">
35
-    <th><label <?php FrmAppHelper::maybe_add_tooltip('reply_to') ?>><?php _e( 'Reply to', 'formidable' ) ?></label>
34
+<tr class="frm_reply_to_row<?php echo empty( $form_action->post_content['reply_to'] ) ? ' frm_hidden' : ''; ?>">
35
+    <th><label <?php FrmAppHelper::maybe_add_tooltip( 'reply_to' ) ?>><?php _e( 'Reply to', 'formidable' ) ?></label>
36 36
     </th>
37 37
     <td class="frm_right_addon">
38
-        <input type="text" name="<?php echo esc_attr( $this->get_field_name('reply_to') ) ?>" value="<?php echo esc_attr( $form_action->post_content['reply_to'] ); ?>" class="frm_not_email_to large-text <?php FrmAppHelper::maybe_add_tooltip('reply_to', 'open') ?>" id="<?php echo esc_attr( $this->get_field_id('reply_to') ) ?>" />
38
+        <input type="text" name="<?php echo esc_attr( $this->get_field_name( 'reply_to' ) ) ?>" value="<?php echo esc_attr( $form_action->post_content['reply_to'] ); ?>" class="frm_not_email_to large-text <?php FrmAppHelper::maybe_add_tooltip( 'reply_to', 'open' ) ?>" id="<?php echo esc_attr( $this->get_field_id( 'reply_to' ) ) ?>" />
39 39
         <a href="javascript:void(0)" class="frm_icon_font frm_remove_field frm_cancel1_icon" data-emailrow="reply_to"></a>
40 40
     </td>
41 41
     <td></td>
42 42
 </tr>
43 43
 <tr>
44
-    <th><label <?php FrmAppHelper::maybe_add_tooltip('from') ?>><?php _e( 'From', 'formidable' ) ?></label></th>
45
-    <td><input type="text" name="<?php echo esc_attr( $this->get_field_name('from') ) ?>" value="<?php echo esc_attr( $form_action->post_content['from'] ); ?>" class="frm_not_email_to frm_email_blur large-text <?php FrmAppHelper::maybe_add_tooltip('from', 'open') ?>" id="<?php echo esc_attr( $this->get_field_id('from') ) ?>" />
44
+    <th><label <?php FrmAppHelper::maybe_add_tooltip( 'from' ) ?>><?php _e( 'From', 'formidable' ) ?></label></th>
45
+    <td><input type="text" name="<?php echo esc_attr( $this->get_field_name( 'from' ) ) ?>" value="<?php echo esc_attr( $form_action->post_content['from'] ); ?>" class="frm_not_email_to frm_email_blur large-text <?php FrmAppHelper::maybe_add_tooltip( 'from', 'open' ) ?>" id="<?php echo esc_attr( $this->get_field_id( 'from' ) ) ?>" />
46 46
     </td>
47
-    <td><a href="javascript:void(0)" class="button frm_email_buttons frm_reply_to_button <?php echo ( ! empty( $form_action->post_content['reply_to'] )  ? 'frm_hidden' : '' ) ?>" data-emailrow="reply_to"><?php _e( 'Reply To', 'formidable' ) ?></a></td>
47
+    <td><a href="javascript:void(0)" class="button frm_email_buttons frm_reply_to_button <?php echo ( ! empty( $form_action->post_content['reply_to'] ) ? 'frm_hidden' : '' ) ?>" data-emailrow="reply_to"><?php _e( 'Reply To', 'formidable' ) ?></a></td>
48 48
 </tr>
49 49
  <tr>
50 50
      <td colspan="3" class="frm_no_top_padding">
51
-         <p><label <?php FrmAppHelper::maybe_add_tooltip('email_subject', '', $form->name) ?>><?php _e( 'Subject', 'formidable' ) ?></label><br/>
52
-         <input type="text" name="<?php echo esc_attr( $this->get_field_name('email_subject') ) ?>" class="frm_not_email_subject large-text <?php FrmAppHelper::maybe_add_tooltip('email_subject', 'open', $form->name) ?>" id="<?php echo esc_attr( $this->get_field_id('email_subject') ) ?>" size="55" value="<?php echo esc_attr( $form_action->post_content['email_subject'] ); ?>" /></p>
51
+         <p><label <?php FrmAppHelper::maybe_add_tooltip( 'email_subject', '', $form->name ) ?>><?php _e( 'Subject', 'formidable' ) ?></label><br/>
52
+         <input type="text" name="<?php echo esc_attr( $this->get_field_name( 'email_subject' ) ) ?>" class="frm_not_email_subject large-text <?php FrmAppHelper::maybe_add_tooltip( 'email_subject', 'open', $form->name ) ?>" id="<?php echo esc_attr( $this->get_field_id( 'email_subject' ) ) ?>" size="55" value="<?php echo esc_attr( $form_action->post_content['email_subject'] ); ?>" /></p>
53 53
 
54 54
         <p><label><?php _e( 'Message', 'formidable' ) ?> </label><br/>
55
-        <textarea name="<?php echo esc_attr( $this->get_field_name('email_message') ) ?>" class="frm_not_email_message large-text" id="<?php echo esc_attr( $this->get_field_id('email_message') ) ?>" cols="50" rows="5"><?php echo FrmAppHelper::esc_textarea($form_action->post_content['email_message']) ?></textarea></p>
55
+        <textarea name="<?php echo esc_attr( $this->get_field_name( 'email_message' ) ) ?>" class="frm_not_email_message large-text" id="<?php echo esc_attr( $this->get_field_id( 'email_message' ) ) ?>" cols="50" rows="5"><?php echo FrmAppHelper::esc_textarea( $form_action->post_content['email_message'] ) ?></textarea></p>
56 56
 
57 57
         <h4><?php _e( 'Options', 'formidable' ) ?> </h4>
58
-            <label for="<?php echo esc_attr( $this->get_field_id('inc_user_info') ) ?>"><input type="checkbox" name="<?php echo esc_attr( $this->get_field_name('inc_user_info') ) ?>" class="frm_not_inc_user_info" id="<?php echo esc_attr( $this->get_field_id('inc_user_info') ) ?>" value="1" <?php checked( $form_action->post_content['inc_user_info'], 1 ); ?> /> <?php _e( 'Append IP Address, Browser, and Referring URL to message', 'formidable' ) ?></label>
58
+            <label for="<?php echo esc_attr( $this->get_field_id( 'inc_user_info' ) ) ?>"><input type="checkbox" name="<?php echo esc_attr( $this->get_field_name( 'inc_user_info' ) ) ?>" class="frm_not_inc_user_info" id="<?php echo esc_attr( $this->get_field_id( 'inc_user_info' ) ) ?>" value="1" <?php checked( $form_action->post_content['inc_user_info'], 1 ); ?> /> <?php _e( 'Append IP Address, Browser, and Referring URL to message', 'formidable' ) ?></label>
59 59
 
60
-        <p><label for="<?php echo esc_attr( $this->get_field_id('plain_text') ) ?>"><input type="checkbox" name="<?php echo esc_attr( $this->get_field_name('plain_text') ) ?>" id="<?php echo esc_attr( $this->get_field_id('plain_text') ) ?>" value="1" <?php checked( $form_action->post_content['plain_text'], 1 ); ?> /> <?php _e( 'Send Emails in Plain Text', 'formidable' ) ?></label></p>
60
+        <p><label for="<?php echo esc_attr( $this->get_field_id( 'plain_text' ) ) ?>"><input type="checkbox" name="<?php echo esc_attr( $this->get_field_name( 'plain_text' ) ) ?>" id="<?php echo esc_attr( $this->get_field_id( 'plain_text' ) ) ?>" value="1" <?php checked( $form_action->post_content['plain_text'], 1 ); ?> /> <?php _e( 'Send Emails in Plain Text', 'formidable' ) ?></label></p>
61 61
     </td>
62 62
 </tr>
63 63
 </table>
Please login to merge, or discard this patch.