Completed
Branch 3.0 (864fc8)
by Stephanie
02:53
created
classes/views/xml/xml.php 2 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -7,15 +7,15 @@
 block discarded – undo
7 7
 <?php
8 8
 foreach ( $type as $tb_type ) {
9 9
 
10
-    if ( ! isset( $tables[ $tb_type ] ) ) {
10
+	if ( ! isset( $tables[ $tb_type ] ) ) {
11 11
 		do_action( 'frm_xml_import_' . $tb_type, $args );
12
-        continue;
13
-    }
12
+		continue;
13
+	}
14 14
 
15
-    //no records
16
-    if ( ! isset( $records[ $tb_type ] ) ) {
17
-        continue;
18
-    }
15
+	//no records
16
+	if ( ! isset( $records[ $tb_type ] ) ) {
17
+		continue;
18
+	}
19 19
 
20 20
 	$item_ids = $records[ $tb_type ];
21 21
 	if ( in_array( $tb_type, array( 'styles', 'actions' ) ) ) {
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -7,17 +7,17 @@  discard block
 block discarded – undo
7 7
 <?php
8 8
 foreach ( $type as $tb_type ) {
9 9
 
10
-    if ( ! isset( $tables[ $tb_type ] ) ) {
10
+    if ( ! isset( $tables[$tb_type] ) ) {
11 11
 		do_action( 'frm_xml_import_' . $tb_type, $args );
12 12
         continue;
13 13
     }
14 14
 
15 15
     //no records
16
-    if ( ! isset( $records[ $tb_type ] ) ) {
16
+    if ( ! isset( $records[$tb_type] ) ) {
17 17
         continue;
18 18
     }
19 19
 
20
-	$item_ids = $records[ $tb_type ];
20
+	$item_ids = $records[$tb_type];
21 21
 	if ( in_array( $tb_type, array( 'styles', 'actions' ) ) ) {
22 22
 		include( dirname( __FILE__ ) . '/posts_xml.php' );
23 23
 	} else if ( file_exists( dirname( __FILE__ ) . '/' . $tb_type . '_xml.php' ) ) {
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 		include( FrmAppHelper::plugin_path() . '/pro/classes/views/xml/' . $tb_type . '_xml.php' );
27 27
 	}
28 28
 
29
-	unset( $item_ids, $records[ $tb_type ], $tb_type );
29
+	unset( $item_ids, $records[$tb_type], $tb_type );
30 30
 }
31 31
 
32 32
 ?>
Please login to merge, or discard this patch.
classes/views/styles/show.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
 							<a href="<?php echo esc_url( admin_url( 'admin.php?page=formidable-styles&frm_action=destroy&id=' . $style->ID ) ); ?>" id="frm_delete_style" class="submitdelete deletion" onclick="return confirm('<?php esc_attr_e( 'Are you sure you want to delete that style?', 'formidable' ) ?>')"><?php _e( 'Delete Style', 'formidable' ) ?></a>
65 65
 						    <?php } ?>
66 66
 						    <?php
67
-						    if ( $style->ID ) {
67
+							if ( $style->ID ) {
68 68
 								echo '<span class="howto"><span>.frm_style_' . esc_attr( $style->post_name ) . '</span></span>';
69 69
 							} ?>
70 70
                             <div class="publishing-action">
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 	<form id="frm_styling_form" action="" name="frm_styling_form" method="post">
10 10
 	    <input type="hidden" name="ID" value="<?php echo esc_attr( $style->ID ) ?>" />
11 11
 		<input type="hidden" name="frm_action" value="save" />
12
-        <textarea name="<?php echo esc_attr( $frm_style->get_field_name('custom_css') ) ?>" class="frm_hidden"><?php echo FrmAppHelper::esc_textarea( $style->post_content['custom_css'] ) ?></textarea>
12
+        <textarea name="<?php echo esc_attr( $frm_style->get_field_name( 'custom_css' ) ) ?>" class="frm_hidden"><?php echo FrmAppHelper::esc_textarea( $style->post_content['custom_css'] ) ?></textarea>
13 13
 		<?php wp_nonce_field( 'frm_style_nonce', 'frm_style' ); ?>
14 14
 		<?php FrmTipsHelper::pro_tip( 'get_styling_tip', 'p' ); ?>
15 15
 	<div id="nav-menus-frame">
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 
19 19
 		<div class="styling_settings">
20 20
 		    <input type="hidden" name="style_name" value="frm_style_<?php echo esc_attr( $style->post_name ) ?>" />
21
-			<?php FrmStylesController::do_accordion_sections( FrmStylesController::$screen, 'side', compact('style', 'frm_style') ); ?>
21
+			<?php FrmStylesController::do_accordion_sections( FrmStylesController::$screen, 'side', compact( 'style', 'frm_style' ) ); ?>
22 22
 		</div>
23 23
 
24 24
 	</div><!-- /#menu-settings-column -->
@@ -31,17 +31,17 @@  discard block
 block discarded – undo
31 31
 						<div class="major-publishing-actions">
32 32
 							<label class="menu-name-label howto open-label" for="menu-name">
33 33
 								<span><?php _e( 'Style Name', 'formidable' ) ?></span>
34
-								<input id="menu-name" name="<?php echo esc_attr( $frm_style->get_field_name('post_title', '') ); ?>" type="text" class="menu-name regular-text menu-item-textbox" title="<?php esc_attr_e( 'Enter style name here', 'formidable' ) ?>" value="<?php echo esc_attr( $style->post_title ) ?>" />
34
+								<input id="menu-name" name="<?php echo esc_attr( $frm_style->get_field_name( 'post_title', '' ) ); ?>" type="text" class="menu-name regular-text menu-item-textbox" title="<?php esc_attr_e( 'Enter style name here', 'formidable' ) ?>" value="<?php echo esc_attr( $style->post_title ) ?>" />
35 35
 							</label>
36 36
 
37
-							<input name="prev_menu_order" type="hidden" value="<?php echo esc_attr($style->menu_order) ?>" />
37
+							<input name="prev_menu_order" type="hidden" value="<?php echo esc_attr( $style->menu_order ) ?>" />
38 38
 							<label class="menu-name-label howto open-label default-style-box" for="menu_order">
39 39
 							<span>
40 40
 							<?php if ( $style->menu_order ) { ?>
41
-							    <input name="<?php echo esc_attr( $frm_style->get_field_name('menu_order', '') ); ?>" type="hidden" value="1" />
42
-							    <input id="menu_order" disabled="disabled" type="checkbox" value="1" <?php checked($style->menu_order, 1) ?> />
41
+							    <input name="<?php echo esc_attr( $frm_style->get_field_name( 'menu_order', '' ) ); ?>" type="hidden" value="1" />
42
+							    <input id="menu_order" disabled="disabled" type="checkbox" value="1" <?php checked( $style->menu_order, 1 ) ?> />
43 43
 							<?php } else { ?>
44
-								<input id="menu_order" name="<?php echo esc_attr( $frm_style->get_field_name('menu_order', '') ); ?>" type="checkbox" value="1" <?php checked($style->menu_order, 1) ?> />
44
+								<input id="menu_order" name="<?php echo esc_attr( $frm_style->get_field_name( 'menu_order', '' ) ); ?>" type="checkbox" value="1" <?php checked( $style->menu_order, 1 ) ?> />
45 45
 							<?php } ?>
46 46
 							    <?php _e( 'Make default style', 'formidable' ) ?></span>
47 47
 							</label>
Please login to merge, or discard this patch.
classes/views/frm-forms/shortcode_opts.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
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 5
 	<?php FrmFormsHelper::forms_dropdown( 'frmsc_' . $shortcode . '_' . $form_id ); ?>
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
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
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
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>
17 17
 			<label class="setting" for="frmsc_<?php echo esc_attr( $shortcode . '_' . $opt ) ?>">
18 18
 				<span><?php echo esc_html( $val['label'] ) ?></span>
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
             </label>
21 21
         </li>
22 22
 <?php
23
-    } else if ( isset( $val['type'] ) && 'select' == $val['type'] ) { ?>
23
+	} else if ( isset( $val['type'] ) && 'select' == $val['type'] ) { ?>
24 24
 		<li>
25 25
 			<label class="setting" for="frmsc_<?php echo esc_attr( $shortcode . '_' . $opt ) ?>">
26 26
 				<span><?php echo esc_html( $val['label'] ) ?></span>
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
             </label>
33 33
         </li>
34 34
     <?php
35
-    } else { ?>
35
+	} else { ?>
36 36
 		<li>
37 37
 			<label class="setting" for="frmsc_<?php echo esc_attr( $shortcode . '_' . $opt ) ?>">
38 38
 				<input type="checkbox" id="frmsc_<?php echo esc_attr( $shortcode . '_' . $opt ) ?>" value="<?php echo esc_attr( $val['val'] ) ?>" />
Please login to merge, or discard this patch.
classes/views/frm-forms/new.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -8,12 +8,12 @@
 block discarded – undo
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
-        }
11
+		if ( ! $values['is_template'] ) {
12
+			FrmAppController::get_form_nav($id, true, 'hide');
13
+		}
14 14
 		require( FrmAppHelper::plugin_path() . '/classes/views/shared/errors.php' );
15 15
 
16
-        ?>
16
+		?>
17 17
 
18 18
         <div class="frm_form_builder with_frm_style">
19 19
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
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 14
 		require( FrmAppHelper::plugin_path() . '/classes/views/shared/errors.php' );
15 15
 
Please login to merge, or discard this patch.
classes/views/frm-forms/settings.php 2 patches
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
                             <option value="message" <?php selected($values['success_action'], 'message') ?>><?php _e( 'Show Message', 'formidable' )?></option>
62 62
                             <?php if ( FrmAppHelper::pro_is_installed() ) { ?>
63 63
                                 <option value="redirect" <?php selected($values['success_action'], 'redirect');
64
-                                ?>><?php _e( 'Redirect to URL', 'formidable' ) ?></option>
64
+								?>><?php _e( 'Redirect to URL', 'formidable' ) ?></option>
65 65
                                 <option value="page" <?php selected($values['success_action'], 'page');
66 66
 								?>><?php _e( 'Show Page Content', 'formidable' ) ?></option>
67 67
                             <?php } else { ?>
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 								<?php _e( '(Premium feature)', 'formidable' ); ?>
72 72
 							</option>
73 73
 							<option value="page" disabled="disabled" <?php selected($values['success_action'], 'page');
74
-                            ?>>
74
+							?>>
75 75
 								<?php _e( 'Show Page Content', 'formidable' ); ?>
76 76
 								<?php _e( '(Premium feature)', 'formidable' ); ?>
77 77
 							</option>
@@ -193,17 +193,17 @@  discard block
 block discarded – undo
193 193
                 <ul class="frm_actions_list">
194 194
                 <?php
195 195
 
196
-                //For each add-on, add an li, class, and javascript function. If active, add an additional class.
197
-                foreach ( $action_controls as $action_control ) {
198
-                    ?>
196
+				//For each add-on, add an li, class, and javascript function. If active, add an additional class.
197
+				foreach ( $action_controls as $action_control ) {
198
+					?>
199 199
                     <li><a href="javascript:void(0)" class="frm_<?php echo esc_attr( $action_control->id_base ) ?>_action frm_bstooltip <?php
200
-                    echo ( isset($action_control->action_options['active']) && $action_control->action_options['active']) ? 'frm_active_action ' : 'frm_inactive_action ';
201
-                    echo esc_attr( $action_control->action_options['classes'] );
202
-                    ?>" 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
+					echo ( isset($action_control->action_options['active']) && $action_control->action_options['active']) ? 'frm_active_action ' : 'frm_inactive_action ';
201
+					echo esc_attr( $action_control->action_options['classes'] );
202
+					?>" 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>
203 203
 <?php
204
-                    unset($actions_icon);
205
-                }
206
-                ?>
204
+					unset($actions_icon);
205
+				}
206
+				?>
207 207
                 </ul>
208 208
             </div>
209 209
             <div class="frm_no_actions">
@@ -235,9 +235,9 @@  discard block
 block discarded – undo
235 235
                                 <p><label><?php echo esc_html( $field['name'] ) ?></label>
236 236
                                 <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>
237 237
                             <?php }
238
-                            unset($field);
239
-                        }
240
-                    } ?>
238
+							unset($field);
239
+						}
240
+					} ?>
241 241
                 </div>
242 242
 
243 243
                 <p><label><?php _e( 'After Fields', 'formidable' ) ?></label>
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
 				call_user_func( array( $section['class'], $section['function'] ), $values );
260 260
 			} else {
261 261
 				call_user_func( ( isset( $section['function'] ) ? $section['function'] : $section ), $values );
262
-            } ?>
262
+			} ?>
263 263
             </div>
264 264
         <?php } ?>
265 265
 
Please login to merge, or discard this 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'];
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
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
 			<?php FrmTipsHelper::pro_tip( 'get_form_settings_tip', 'p' ); ?>
48 48
 
49 49
 			<h3 class="frm_first_h3"><?php _e( 'On Submit', 'formidable' ); ?>
@@ -58,19 +58,19 @@  discard block
 block discarded – undo
58 58
                 <tr>
59 59
                     <td class="frm_175_width">
60 60
                         <select name="options[success_action]" id="success_action">
61
-                            <option value="message" <?php selected($values['success_action'], 'message') ?>><?php _e( 'Show Message', 'formidable' )?></option>
61
+                            <option value="message" <?php selected( $values['success_action'], 'message' ) ?>><?php _e( 'Show Message', 'formidable' )?></option>
62 62
                             <?php if ( FrmAppHelper::pro_is_installed() ) { ?>
63
-                                <option value="redirect" <?php selected($values['success_action'], 'redirect');
63
+                                <option value="redirect" <?php selected( $values['success_action'], 'redirect' );
64 64
                                 ?>><?php _e( 'Redirect to URL', 'formidable' ) ?></option>
65
-                                <option value="page" <?php selected($values['success_action'], 'page');
65
+                                <option value="page" <?php selected( $values['success_action'], 'page' );
66 66
 								?>><?php _e( 'Show Page Content', 'formidable' ) ?></option>
67 67
                             <?php } else { ?>
68
-                            <option value="redirect" disabled="disabled" <?php selected($values['success_action'], 'redirect');
68
+                            <option value="redirect" disabled="disabled" <?php selected( $values['success_action'], 'redirect' );
69 69
 							?>>
70 70
 								<?php _e( 'Redirect to URL', 'formidable' ); ?>
71 71
 								<?php _e( '(Premium feature)', 'formidable' ); ?>
72 72
 							</option>
73
-							<option value="page" disabled="disabled" <?php selected($values['success_action'], 'page');
73
+							<option value="page" disabled="disabled" <?php selected( $values['success_action'], 'page' );
74 74
                             ?>>
75 75
 								<?php _e( 'Show Page Content', 'formidable' ); ?>
76 76
 								<?php _e( '(Premium feature)', 'formidable' ); ?>
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
                         </select>
80 80
                     </td>
81 81
                     <td>
82
-                        <span class="success_action_redirect_box success_action_box<?php echo ($values['success_action'] == 'redirect') ? '' : ' frm_hidden'; ?>">
82
+                        <span class="success_action_redirect_box success_action_box<?php echo ( $values['success_action'] == 'redirect' ) ? '' : ' frm_hidden'; ?>">
83 83
                             <input type="text" name="options[success_url]" id="success_url" value="<?php
84 84
 							if ( isset( $values['success_url'] ) ) {
85 85
 								echo esc_attr( $values['success_url'] );
@@ -87,23 +87,23 @@  discard block
 block discarded – undo
87 87
                         </span>
88 88
 
89 89
 						<?php if ( FrmAppHelper::pro_is_installed() ) { ?>
90
-                        <span class="success_action_page_box success_action_box<?php echo ($values['success_action'] == 'page') ? '' : ' frm_hidden'; ?>">
90
+                        <span class="success_action_page_box success_action_box<?php echo ( $values['success_action'] == 'page' ) ? '' : ' frm_hidden'; ?>">
91 91
                             <label><?php _e( 'Use Content from Page', 'formidable' ) ?></label>
92 92
                             <?php FrmAppHelper::wp_pages_dropdown( 'options[success_page_id]', $values['success_page_id'] ) ?>
93 93
                         </span>
94 94
                         <?php } ?>
95 95
                     </td>
96 96
                 </tr>
97
-                <tr class="frm_show_form_opt success_action_message_box success_action_box<?php echo ($values['success_action'] == 'message') ? '' : ' frm_hidden'; ?>">
97
+                <tr class="frm_show_form_opt success_action_message_box success_action_box<?php echo ( $values['success_action'] == 'message' ) ? '' : ' frm_hidden'; ?>">
98 98
                     <td colspan="2">
99 99
 						<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>
100 100
                     </td>
101 101
                 </tr>
102 102
                 <tr>
103
-                    <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
+                    <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>
104 104
                     </td>
105 105
                 </tr>
106
-                <?php if ( function_exists( 'akismet_http_post') ) { ?>
106
+                <?php if ( function_exists( 'akismet_http_post' ) ) { ?>
107 107
                 <tr>
108 108
                     <td colspan="2"><?php _e( 'Use Akismet to check entries for spam for', 'formidable' ) ?>
109 109
                         <select name="options[akismet]">
@@ -129,11 +129,11 @@  discard block
 block discarded – undo
129 129
 						<span class="frm_help frm_icon_font frm_tooltip_icon" title="<?php esc_attr_e( 'Recommended for long forms.', 'formidable' ) ?>" ></span>
130 130
                     </td>
131 131
                 </tr>
132
-                <?php do_action('frm_add_form_ajax_options', $values); ?>
132
+                <?php do_action( 'frm_add_form_ajax_options', $values ); ?>
133 133
             </table>
134 134
 
135 135
             <!--Permissions Section-->
136
-	        <?php do_action('frm_add_form_perm_options', $values); ?>
136
+	        <?php do_action( 'frm_add_form_perm_options', $values ); ?>
137 137
 
138 138
             <!--Styling & Buttons Section-->
139 139
 			<h3><?php _e( 'Styling & Buttons', 'formidable' ) ?>
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
                 </tr>
155 155
                 <tr>
156 156
                     <td><label><?php _e( 'Submit Button Text', 'formidable' ) ?></label></td>
157
-                    <td><input type="text" name="options[submit_value]" value="<?php echo esc_attr($values['submit_value']); ?>" /></td>
157
+                    <td><input type="text" name="options[submit_value]" value="<?php echo esc_attr( $values['submit_value'] ); ?>" /></td>
158 158
                 </tr>
159 159
 				<?php do_action( 'frm_add_form_button_options', $values ); ?>
160 160
             </table>
@@ -164,27 +164,27 @@  discard block
 block discarded – undo
164 164
 				<span class="frm_help frm_icon_font frm_tooltip_icon" title="<?php esc_attr_e( 'Set up your confirmation messages.', 'formidable' ) ?>" ></span>
165 165
 			</h3>
166 166
             <table class="form-table">
167
-                <tr class="success_action_message_box success_action_box<?php echo ($values['success_action'] == 'message') ? '' : ' frm_hidden'; ?>">
167
+                <tr class="success_action_message_box success_action_box<?php echo ( $values['success_action'] == 'message' ) ? '' : ' frm_hidden'; ?>">
168 168
                     <td>
169 169
                         <div><?php _e( 'On Submit', 'formidable' ) ?></div>
170
-                        <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
+                        <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>
171 171
                     </td>
172 172
                 </tr>
173
-                <?php do_action('frm_add_form_msg_options', $values); ?>
173
+                <?php do_action( 'frm_add_form_msg_options', $values ); ?>
174 174
             </table>
175 175
 
176 176
 			<!--Misc Section-->
177 177
 			<?php if ( has_action( 'frm_additional_form_options' ) ) { ?>
178 178
 				<h3><?php _e( 'Miscellaneous', 'formidable' ); ?></h3>
179 179
 				<table class="form-table">
180
-					<?php do_action('frm_additional_form_options', $values); ?>
180
+					<?php do_action( 'frm_additional_form_options', $values ); ?>
181 181
 				</table>
182 182
 				<?php } ?>
183 183
 
184 184
 		</div>
185 185
 
186 186
 
187
-        <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
+        <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'; ?>">
188 188
 			<?php FrmTipsHelper::pro_tip( 'get_form_action_tip', 'p' ); ?>
189 189
             <div id="frm_email_addon_menu" class="manage-menus">
190 190
                 <h3><?php _e( 'Add New Action', 'formidable' ) ?></h3>
@@ -195,11 +195,11 @@  discard block
 block discarded – undo
195 195
                 foreach ( $action_controls as $action_control ) {
196 196
                     ?>
197 197
                     <li><a href="javascript:void(0)" class="frm_<?php echo esc_attr( $action_control->id_base ) ?>_action frm_bstooltip <?php
198
-                    echo ( isset($action_control->action_options['active']) && $action_control->action_options['active']) ? 'frm_active_action ' : 'frm_inactive_action ';
198
+                    echo ( isset( $action_control->action_options['active'] ) && $action_control->action_options['active'] ) ? 'frm_active_action ' : 'frm_inactive_action ';
199 199
                     echo esc_attr( $action_control->action_options['classes'] );
200
-                    ?>" 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
+                    ?>" 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>
201 201
 <?php
202
-                    unset($actions_icon);
202
+                    unset( $actions_icon );
203 203
                 }
204 204
                 ?>
205 205
                 </ul>
@@ -211,19 +211,19 @@  discard block
 block discarded – undo
211 211
                     <?php _e( 'Click an action to add it to this form', 'formidable' ) ?>
212 212
                 </div>
213 213
             </div>
214
-            <?php FrmFormActionsController::list_actions($form, $values); ?>
214
+            <?php FrmFormActionsController::list_actions( $form, $values ); ?>
215 215
         </div>
216 216
 
217
-        <div id="html_settings" class="tabs-panel <?php echo ($a == 'html_settings') ? ' frm_block' : ' frm_hidden'; ?>">
217
+        <div id="html_settings" class="tabs-panel <?php echo ( $a == 'html_settings' ) ? ' frm_block' : ' frm_hidden'; ?>">
218 218
 
219 219
             <div class="frm_field_html_box frm_top_container">
220 220
                 <p><label><?php _e( 'Form Classes', 'formidable' ) ?></label>
221
-                    <input type="text" name="options[form_class]" value="<?php echo esc_attr($values['form_class']) ?>" />
221
+                    <input type="text" name="options[form_class]" value="<?php echo esc_attr( $values['form_class'] ) ?>" />
222 222
                 </p>
223 223
                 <div class="clear"></div>
224 224
 
225 225
                 <p><label><?php _e( 'Before Fields', 'formidable' ) ?></label>
226
-                <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
+                <textarea name="options[before_html]" rows="4" id="before_html" class="frm_long_input"><?php echo FrmAppHelper::esc_textarea( $values['before_html'] ) ?></textarea></p>
227 227
 
228 228
                 <div id="add_html_fields">
229 229
                     <?php
@@ -231,18 +231,18 @@  discard block
 block discarded – undo
231 231
 						foreach ( $values['fields'] as $field ) {
232 232
 							if ( FrmFieldFactory::field_has_html( $field['type'] ) ) { ?>
233 233
                                 <p><label><?php echo esc_html( $field['name'] ) ?></label>
234
-                                <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
+                                <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>
235 235
                             <?php }
236
-                            unset($field);
236
+                            unset( $field );
237 237
                         }
238 238
                     } ?>
239 239
                 </div>
240 240
 
241 241
                 <p><label><?php _e( 'After Fields', 'formidable' ) ?></label>
242
-                <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
+                <textarea name="options[after_html]" rows="3" id="after_html" class="frm_long_input"><?php echo FrmAppHelper::esc_textarea( $values['after_html'] ) ?></textarea></p>
243 243
 
244 244
                 <p><label><?php _e( 'Submit Button', 'formidable' ) ?></label>
245
-                <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
+                <textarea name="options[submit_html]" rows="3" id="submit_html" class="frm_long_input"><?php echo FrmAppHelper::esc_textarea( $values['submit_html'] ) ?></textarea></p>
246 246
             </div>
247 247
         </div>
248 248
 
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
             </div>
262 262
         <?php } ?>
263 263
 
264
-        <?php do_action('frm_add_form_option_section', $values); ?>
264
+        <?php do_action( 'frm_add_form_option_section', $values ); ?>
265 265
         <div class="clear"></div>
266 266
         </div>
267 267
         </div>
Please login to merge, or discard this patch.
classes/views/frm-forms/sidebar-settings.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <div id="postbox-container-1" class="postbox-container">
2 2
     <?php
3 3
 
4
-    if ( ! isset($hide_preview) || ! $hide_preview ) {
4
+	if ( ! isset($hide_preview) || ! $hide_preview ) {
5 5
 		include( FrmAppHelper::plugin_path() . '/classes/views/frm-forms/_publish_box.php' );
6
-    }
6
+	}
7 7
 
8 8
 	include( FrmAppHelper::plugin_path() . '/classes/views/frm-forms/mb_insert_fields.php' );
9 9
 
10
-    ?>
10
+	?>
11 11
 </div>
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <div id="postbox-container-1" class="postbox-container">
2 2
     <?php
3 3
 
4
-    if ( ! isset($hide_preview) || ! $hide_preview ) {
4
+    if ( ! isset( $hide_preview ) || ! $hide_preview ) {
5 5
 		include( FrmAppHelper::plugin_path() . '/classes/views/frm-forms/_publish_box.php' );
6 6
     }
7 7
 
Please login to merge, or discard this patch.
classes/views/frm-form-actions/form_action.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,13 +21,13 @@
 block discarded – undo
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 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>
Please login to merge, or discard this patch.
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -21,14 +21,14 @@
 block discarded – undo
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
24
+		if ( defined('DOING_AJAX') || ! $action_control->action_options['ajax_load'] ) {
25
+			// only load settings if they are just added or are open
26 26
 			include( dirname( __FILE__ ) . '/_action_inside.php' );
27
-        } else {
28
-            // include hidden settings so action won't get lost on update ?>
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
 </div>
Please login to merge, or discard this patch.
classes/views/frm-form-actions/email_action.php 2 patches
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -4,12 +4,12 @@  discard block
 block discarded – undo
4 4
 
5 5
 	public function __construct() {
6 6
 		$action_ops = array(
7
-		    'classes'   => 'frm_email_icon frm_icon_font',
8
-            'active'    => true,
7
+			'classes'   => 'frm_email_icon frm_icon_font',
8
+			'active'    => true,
9 9
 			'event'     => array( 'create' ),
10
-            'limit'     => 99,
11
-            'priority'  => 10,
12
-            'ajax_load' => false,
10
+			'limit'     => 99,
11
+			'priority'  => 10,
12
+			'ajax_load' => false,
13 13
 		);
14 14
 		$action_ops = apply_filters('frm_email_control_settings', $action_ops);
15 15
 
@@ -17,23 +17,23 @@  discard block
 block discarded – undo
17 17
 	}
18 18
 
19 19
 	public function form( $form_action, $args = array() ) {
20
-	    extract($args);
20
+		extract($args);
21 21
 
22 22
 		include( FrmAppHelper::plugin_path() . '/classes/views/frm-form-actions/_email_settings.php' );
23 23
 	}
24 24
 
25 25
 	public function get_defaults() {
26
-	    return array(
27
-            'email_to'      => '[admin_email]',
28
-            'cc'            => '',
29
-            'bcc'           => '',
30
-            'from'          => '[sitename] <[admin_email]>',
31
-            'reply_to'      => '',
32
-            'email_subject' => '',
33
-            'email_message' => '[default-message]',
34
-            'inc_user_info' => 0,
35
-            'plain_text'    => 0,
26
+		return array(
27
+			'email_to'      => '[admin_email]',
28
+			'cc'            => '',
29
+			'bcc'           => '',
30
+			'from'          => '[sitename] <[admin_email]>',
31
+			'reply_to'      => '',
32
+			'email_subject' => '',
33
+			'email_message' => '[default-message]',
34
+			'inc_user_info' => 0,
35
+			'plain_text'    => 0,
36 36
 			'event'         => array( 'create' ),
37
-	    );
37
+		);
38 38
 	}
39 39
 }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -11,13 +11,13 @@
 block discarded – undo
11 11
             'priority'  => 10,
12 12
             'ajax_load' => false,
13 13
 		);
14
-		$action_ops = apply_filters('frm_email_control_settings', $action_ops);
14
+		$action_ops = apply_filters( 'frm_email_control_settings', $action_ops );
15 15
 
16
-		parent::__construct('email', __( 'Email Notification', 'formidable' ), $action_ops);
16
+		parent::__construct( 'email', __( 'Email Notification', 'formidable' ), $action_ops );
17 17
 	}
18 18
 
19 19
 	public function form( $form_action, $args = array() ) {
20
-	    extract($args);
20
+	    extract( $args );
21 21
 
22 22
 		include( FrmAppHelper::plugin_path() . '/classes/views/frm-form-actions/_email_settings.php' );
23 23
 	}
Please login to merge, or discard this patch.
css/custom_theme.css.php 2 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,15 +1,15 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 if ( ! isset($saving) ) {
3
-    header( 'Content-type: text/css' );
3
+	header( 'Content-type: text/css' );
4 4
 
5
-    if ( isset($css) && $css ) {
6
-        echo $css;
7
-        die();
8
-    }
5
+	if ( isset($css) && $css ) {
6
+		echo $css;
7
+		die();
8
+	}
9 9
 }
10 10
 
11 11
 if ( ! isset($frm_style) ) {
12
-    $frm_style = new FrmStyle();
12
+	$frm_style = new FrmStyle();
13 13
 }
14 14
 
15 15
 $styles = $frm_style->get_all();
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
 <?php
188 188
 foreach ( $styles as $style ) {
189 189
 	include( dirname( __FILE__ ) . '/_single_theme.css.php' );
190
-    unset($style);
190
+	unset($style);
191 191
 }
192 192
 ?>
193 193
 
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,19 +1,19 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if ( ! isset($saving) ) {
2
+if ( ! isset( $saving ) ) {
3 3
     header( 'Content-type: text/css' );
4 4
 
5
-    if ( isset($css) && $css ) {
5
+    if ( isset( $css ) && $css ) {
6 6
         echo $css;
7 7
         die();
8 8
     }
9 9
 }
10 10
 
11
-if ( ! isset($frm_style) ) {
11
+if ( ! isset( $frm_style ) ) {
12 12
     $frm_style = new FrmStyle();
13 13
 }
14 14
 
15 15
 $styles = $frm_style->get_all();
16
-$default_style = $frm_style->get_default_style($styles);
16
+$default_style = $frm_style->get_default_style( $styles );
17 17
 $defaults = FrmStylesHelper::get_settings_for_output( $default_style );
18 18
 
19 19
 ?>
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
 <?php
268 268
 foreach ( $styles as $style ) {
269 269
 	include( dirname( __FILE__ ) . '/_single_theme.css.php' );
270
-    unset($style);
270
+    unset( $style );
271 271
 }
272 272
 ?>
273 273
 
@@ -510,7 +510,7 @@  discard block
 block discarded – undo
510 510
     color: transparent !important;
511 511
 }
512 512
 
513
-<?php include( dirname(__FILE__) . '/frm_grids.css' ); ?>
513
+<?php include( dirname( __FILE__ ) . '/frm_grids.css' ); ?>
514 514
 
515 515
 /* Left and right label styling for non-Formidable styling - very basic, not responsive */
516 516
 .frm_form_field.frm_left_container label.frm_primary_label{
Please login to merge, or discard this patch.