Completed
Push — master ( 031d86...4b3e9c )
by Jamie
03:37
created
classes/views/frm-forms/mb_insert_fields.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,6 +2,6 @@
 block discarded – undo
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>
Please login to merge, or discard this patch.
classes/views/frm-forms/shortcode_opts.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -12,14 +12,14 @@  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><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
 block discarded – undo
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
 	}
Please login to merge, or discard this patch.
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.
classes/views/frm-settings/form.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -157,10 +157,10 @@
 block discarded – undo
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>
Please login to merge, or discard this patch.
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
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 20
 				<li <?php echo ( $a == $sec_name . '_settings' ) ? 'class="tabs active"' : '' ?>>
21 21
 					<a href="#<?php echo esc_attr( $sec_name ) ?>_settings">
@@ -26,14 +26,14 @@  discard block
 block discarded – undo
26 26
         </ul>
27 27
         </div>
28 28
 
29
-    <?php do_action('frm_before_settings'); ?>
29
+    <?php do_action( 'frm_before_settings' ); ?>
30 30
 
31 31
 	<form name="frm_settings_form" method="post" class="frm_settings_form" action="?page=formidable-settings<?php echo ( $a ? '&amp;t=' . $a : '' ); ?>">
32 32
         <input type="hidden" name="frm_action" value="process-form" />
33 33
         <input type="hidden" name="action" value="process-form" />
34
-        <?php wp_nonce_field('process_form_nonce', 'process_form'); ?>
34
+        <?php wp_nonce_field( 'process_form_nonce', 'process_form' ); ?>
35 35
 
36
-        <div class="general_settings tabs-panel <?php echo ($a == 'general_settings') ? 'frm_block' : 'frm_hidden'; ?>">
36
+        <div class="general_settings tabs-panel <?php echo ( $a == 'general_settings' ) ? 'frm_block' : 'frm_hidden'; ?>">
37 37
             <p class="submit">
38 38
 				<input class="button-primary" type="submit" value="<?php esc_attr_e( 'Update Options', 'formidable' ) ?>" />
39 39
             </p>
@@ -42,20 +42,20 @@  discard block
 block discarded – undo
42 42
 
43 43
             <p><label class="frm_left_label"><?php _e( 'Load Formidable styling', 'formidable' ) ?></label>
44 44
                 <select id="frm_load_style" name="frm_load_style">
45
-                <option value="all" <?php selected($frm_settings->load_style, 'all') ?>><?php _e( 'on every page of your site', 'formidable' ) ?></option>
46
-                <option value="dynamic" <?php selected($frm_settings->load_style, 'dynamic') ?>><?php _e( 'only on applicable pages', 'formidable' ) ?></option>
47
-                <option value="none" <?php selected($frm_settings->load_style, 'none') ?>><?php _e( 'Don\'t use Formidable styling on any page', 'formidable' ) ?></option>
45
+                <option value="all" <?php selected( $frm_settings->load_style, 'all' ) ?>><?php _e( 'on every page of your site', 'formidable' ) ?></option>
46
+                <option value="dynamic" <?php selected( $frm_settings->load_style, 'dynamic' ) ?>><?php _e( 'only on applicable pages', 'formidable' ) ?></option>
47
+                <option value="none" <?php selected( $frm_settings->load_style, 'none' ) ?>><?php _e( 'Don\'t use Formidable styling on any page', 'formidable' ) ?></option>
48 48
                 </select>
49 49
             </p>
50 50
 
51 51
             <p>
52 52
 				<label for="frm_use_html">
53
-					<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' ) ?>
53
+					<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' ) ?>
54 54
 				</label>
55 55
 				<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>
56 56
             </p>
57 57
 
58
-            <?php do_action('frm_style_general_settings', $frm_settings); ?>
58
+            <?php do_action( 'frm_style_general_settings', $frm_settings ); ?>
59 59
 
60 60
 			<h3><?php _e( 'User Permissions', 'formidable' ); ?>
61 61
 				<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>
@@ -78,15 +78,15 @@  discard block
 block discarded – undo
78 78
 			</p>
79 79
 
80 80
 			<p><label class="frm_left_label"><?php _e( 'Site Key', 'formidable' ) ?></label>
81
-			<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>
81
+			<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>
82 82
 
83 83
 			<p><label class="frm_left_label"><?php _e( 'Private Key', 'formidable' ) ?></label>
84
-			<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>
84
+			<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>
85 85
 
86 86
 		    <p><label class="frm_left_label"><?php _e( 'reCAPTCHA Language', 'formidable' ) ?></label>
87 87
 			<select name="frm_re_lang" id="frm_re_lang">
88 88
 			    <?php foreach ( $captcha_lang as $lang => $lang_name ) { ?>
89
-				<option value="<?php echo esc_attr($lang) ?>" <?php selected($frm_settings->re_lang, $lang) ?>><?php echo esc_html( $lang_name ) ?></option>
89
+				<option value="<?php echo esc_attr( $lang ) ?>" <?php selected( $frm_settings->re_lang, $lang ) ?>><?php echo esc_html( $lang_name ) ?></option>
90 90
                 <?php } ?>
91 91
             </select></p>
92 92
 
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
 			<label class="frm_left_label"><?php _e( 'Success Message', 'formidable' ); ?>
132 132
 				<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>
133 133
 			</label>
134
-            <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) ?>" />
134
+            <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 ) ?>" />
135 135
 		</p>
136 136
 
137 137
 		<p>
@@ -139,21 +139,21 @@  discard block
 block discarded – undo
139 139
 			<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" />
140 140
 		</p>
141 141
 
142
-        <?php do_action('frm_settings_form', $frm_settings); ?>
142
+        <?php do_action( 'frm_settings_form', $frm_settings ); ?>
143 143
 
144 144
         <?php if ( ! FrmAppHelper::pro_is_installed() ) { ?>
145 145
         <div class="clear"></div>
146 146
         <h3><?php _e( 'Miscellaneous', 'formidable' ) ?></h3>
147 147
         <?php } ?>
148 148
         <p><label class="frm_left_label"><?php _e( 'Admin menu label', 'formidable' ); ?></label>
149
-            <input type="text" name="frm_menu" id="frm_menu" value="<?php echo esc_attr($frm_settings->menu) ?>" />
149
+            <input type="text" name="frm_menu" id="frm_menu" value="<?php echo esc_attr( $frm_settings->menu ) ?>" />
150 150
             <?php if ( is_multisite() && is_super_admin() ) { ?>
151
-            <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>
151
+            <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>
152 152
             <?php } ?>
153 153
         </p>
154 154
 
155 155
         <p><label class="frm_left_label"><?php _e( 'Preview Page', 'formidable' ); ?></label>
156
-        <?php FrmAppHelper::wp_pages_dropdown('frm-preview-page-id', $frm_settings->preview_page_id ) ?>
156
+        <?php FrmAppHelper::wp_pages_dropdown( 'frm-preview-page-id', $frm_settings->preview_page_id ) ?>
157 157
         </p>
158 158
 
159 159
     </div>
Please login to merge, or discard this patch.
classes/views/frm-settings/license_box.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<div class="general_settings metabox-holder tabs-panel frm_license_box <?php echo ($a == 'general_settings') ? 'frm_block' : 'frm_hidden'; ?>">
1
+<div class="general_settings metabox-holder tabs-panel frm_license_box <?php echo ( $a == 'general_settings' ) ? 'frm_block' : 'frm_hidden'; ?>">
2 2
 <?php if ( ! is_multisite() || is_super_admin() ) { ?>
3 3
     <div class="postbox">
4 4
         <div class="inside">
Please login to merge, or discard this patch.
classes/views/shared/errors.php 2 patches
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,23 +1,23 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
classes/views/shared/head.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,2 +1,2 @@
 block discarded – undo
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' ) );
Please login to merge, or discard this patch.
classes/views/styles/_buttons.php 1 patch
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -1,14 +1,14 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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>
Please login to merge, or discard this patch.
classes/views/styles/_check-box-radio-fields.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,26 +1,26 @@  discard block
 block discarded – undo
1 1
 <div class="field-group clearfix frm-half frm-first-row">
2 2
 	<label><?php _e( 'Radio', 'formidable' ) ?></label>
3
-	<select name="<?php echo esc_attr( $frm_style->get_field_name('radio_align') ) ?>" id="frm_radio_align">
4
-        <option value="block" <?php selected($style->post_content['radio_align'], 'block') ?>><?php _e( 'Multiple Rows' , 'formidable' ) ?></option>
5
-        <option value="inline" <?php selected($style->post_content['radio_align'], 'inline') ?>><?php _e( 'Single Row' , 'formidable' ) ?></option>
3
+	<select name="<?php echo esc_attr( $frm_style->get_field_name( 'radio_align' ) ) ?>" id="frm_radio_align">
4
+        <option value="block" <?php selected( $style->post_content['radio_align'], 'block' ) ?>><?php _e( 'Multiple Rows', 'formidable' ) ?></option>
5
+        <option value="inline" <?php selected( $style->post_content['radio_align'], 'inline' ) ?>><?php _e( 'Single Row', 'formidable' ) ?></option>
6 6
 	</select>
7 7
 </div>
8 8
 
9 9
 <div class="field-group clearfix frm-half frm-first-row">
10 10
 	<label><?php _e( 'Check Box', 'formidable' ) ?></label>
11
-	<select name="<?php echo esc_attr( $frm_style->get_field_name('check_align') ) ?>" id="frm_check_align">
12
-        <option value="block" <?php selected($style->post_content['check_align'], 'block') ?>><?php _e( 'Multiple Rows' , 'formidable' ) ?></option>
13
-        <option value="inline" <?php selected($style->post_content['check_align'], 'inline') ?>><?php _e( 'Single Row' , 'formidable' ) ?></option>
11
+	<select name="<?php echo esc_attr( $frm_style->get_field_name( 'check_align' ) ) ?>" id="frm_check_align">
12
+        <option value="block" <?php selected( $style->post_content['check_align'], 'block' ) ?>><?php _e( 'Multiple Rows', 'formidable' ) ?></option>
13
+        <option value="inline" <?php selected( $style->post_content['check_align'], 'inline' ) ?>><?php _e( 'Single Row', 'formidable' ) ?></option>
14 14
 	</select>
15 15
 </div>
16 16
 
17 17
 <div class="field-group field-group-background clearfix">
18 18
 	<label><?php _e( 'Color', 'formidable' ) ?></label>
19
-	<input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('check_label_color') ) ?>" id="frm_check_label_color" class="hex" value="<?php echo esc_attr( $style->post_content['check_label_color'] ) ?>" />
19
+	<input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'check_label_color' ) ) ?>" id="frm_check_label_color" class="hex" value="<?php echo esc_attr( $style->post_content['check_label_color'] ) ?>" />
20 20
 </div>
21 21
 <div class="field-group clearfix">
22 22
 	<label><?php _e( 'Weight', 'formidable' ) ?></label>
23
-	<select name="<?php echo esc_attr( $frm_style->get_field_name('check_weight') ) ?>" id="frm_check_weight">
23
+	<select name="<?php echo esc_attr( $frm_style->get_field_name( 'check_weight' ) ) ?>" id="frm_check_weight">
24 24
 		<?php foreach ( FrmStyle::get_bold_options() as $value => $name ) { ?>
25 25
 		<option value="<?php echo esc_attr( $value ) ?>" <?php selected( $style->post_content['check_weight'], $value ) ?>><?php echo $name ?></option>
26 26
 		<?php } ?>
@@ -28,5 +28,5 @@  discard block
 block discarded – undo
28 28
 </div>
29 29
 <div class="field-group clearfix">
30 30
 	<label><?php _e( 'Size', 'formidable' ) ?></label>
31
-	<input type="text" name="<?php echo esc_attr( $frm_style->get_field_name('check_font_size') ) ?>" id="frm_check_font_size" value="<?php echo esc_attr( $style->post_content['check_font_size'] ) ?>"  size="3" />
31
+	<input type="text" name="<?php echo esc_attr( $frm_style->get_field_name( 'check_font_size' ) ) ?>" id="frm_check_font_size" value="<?php echo esc_attr( $style->post_content['check_font_size'] ) ?>"  size="3" />
32 32
 </div>
Please login to merge, or discard this patch.
classes/views/styles/_date-fields.php 2 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -2,19 +2,19 @@
 block discarded – undo
2 2
 $jquery_themes = FrmStylesHelper::jquery_themes();
3 3
 
4 4
 $alt_img_name = array(
5
-    'ui-lightness'  => 'ui_light',
6
-    'ui-darkness'   => 'ui_dark',
7
-    'start'         => 'start_menu',
8
-    'redmond'       => 'windoze',
9
-    'vader'         => 'black_matte',
10
-    'mint-choc'     => 'mint_choco',
5
+	'ui-lightness'  => 'ui_light',
6
+	'ui-darkness'   => 'ui_dark',
7
+	'start'         => 'start_menu',
8
+	'redmond'       => 'windoze',
9
+	'vader'         => 'black_matte',
10
+	'mint-choc'     => 'mint_choco',
11 11
 );
12 12
 $theme_names = array_keys($jquery_themes);
13 13
 $theme_names = array_combine($theme_names, $theme_names);
14 14
 
15 15
 foreach ( $theme_names as $k => $v ) {
16 16
 	$theme_names[ $k ] = str_replace( '-', '_', $v );
17
-    unset($k, $v);
17
+	unset($k, $v);
18 18
 }
19 19
 
20 20
 $alt_img_name = array_merge($theme_names, $alt_img_name);
Please login to merge, or discard this patch.
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -9,32 +9,32 @@
 block discarded – undo
9 9
     'vader'         => 'black_matte',
10 10
     'mint-choc'     => 'mint_choco',
11 11
 );
12
-$theme_names = array_keys($jquery_themes);
13
-$theme_names = array_combine($theme_names, $theme_names);
12
+$theme_names = array_keys( $jquery_themes );
13
+$theme_names = array_combine( $theme_names, $theme_names );
14 14
 
15 15
 foreach ( $theme_names as $k => $v ) {
16
-	$theme_names[ $k ] = str_replace( '-', '_', $v );
17
-    unset($k, $v);
16
+	$theme_names[$k] = str_replace( '-', '_', $v );
17
+    unset( $k, $v );
18 18
 }
19 19
 
20
-$alt_img_name = array_merge($theme_names, $alt_img_name);
21
-unset($theme_names);
20
+$alt_img_name = array_merge( $theme_names, $alt_img_name );
21
+unset( $theme_names );
22 22
 
23 23
 ?>
24 24
 
25 25
 <div class="field-group clearfix frm-half frm-first-row">
26 26
 	<label><?php _e( 'Theme', 'formidable' ) ?></label>
27
-	<select name="<?php echo esc_attr( $frm_style->get_field_name('theme_selector') ) ?>">
27
+	<select name="<?php echo esc_attr( $frm_style->get_field_name( 'theme_selector' ) ) ?>">
28 28
 	    <?php foreach ( $jquery_themes as $theme_name => $theme_title ) { ?>
29
-        <option value="<?php echo esc_attr( $theme_name ) ?>" id="90_<?php echo esc_attr( $alt_img_name[ $theme_name ] ); ?>" <?php selected($theme_title, $style->post_content['theme_name']) ?>><?php echo esc_html( $theme_title ) ?></option>
29
+        <option value="<?php echo esc_attr( $theme_name ) ?>" id="90_<?php echo esc_attr( $alt_img_name[$theme_name] ); ?>" <?php selected( $theme_title, $style->post_content['theme_name'] ) ?>><?php echo esc_html( $theme_title ) ?></option>
30 30
         <?php } ?>
31
-        <option value="-1" <?php selected('-1', $style->post_content['theme_name']) ?>>&mdash; <?php _e( 'None', 'formidable' ) ?> &mdash;</option>
31
+        <option value="-1" <?php selected( '-1', $style->post_content['theme_name'] ) ?>>&mdash; <?php _e( 'None', 'formidable' ) ?> &mdash;</option>
32 32
 	</select>
33 33
 </div>
34 34
 
35 35
 <div class="field-group clearfix frm-half frm-first-row frm_right_text">
36
-    <img id="frm_show_cal" src="//jqueryui.com/resources/images/themeGallery/theme_90_<?php echo esc_attr( $alt_img_name[ $style->post_content['theme_css'] ] ) ?>.png" alt="" />
37
-	<input type="hidden" value="<?php echo esc_attr($style->post_content['theme_css']) ?>" id="frm_theme_css" name="<?php echo esc_attr( $frm_style->get_field_name('theme_css') ) ?>" />
38
-    <input type="hidden" value="<?php echo esc_attr($style->post_content['theme_name']) ?>" id="frm_theme_name" name="<?php echo esc_attr( $frm_style->get_field_name('theme_name') ) ?>" />
36
+    <img id="frm_show_cal" src="//jqueryui.com/resources/images/themeGallery/theme_90_<?php echo esc_attr( $alt_img_name[$style->post_content['theme_css']] ) ?>.png" alt="" />
37
+	<input type="hidden" value="<?php echo esc_attr( $style->post_content['theme_css'] ) ?>" id="frm_theme_css" name="<?php echo esc_attr( $frm_style->get_field_name( 'theme_css' ) ) ?>" />
38
+    <input type="hidden" value="<?php echo esc_attr( $style->post_content['theme_name'] ) ?>" id="frm_theme_name" name="<?php echo esc_attr( $frm_style->get_field_name( 'theme_name' ) ) ?>" />
39 39
 </div>
40 40
 <div class="clear"></div>
Please login to merge, or discard this patch.