Completed
Push — master ( ff0cd5...abd9d4 )
by Stephanie
03:11
created
classes/views/frm-settings/form.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
         <div class="contextual-help-tabs">
15 15
         <ul class="frm-category-tabs">
16 16
 			<?php $a = FrmAppHelper::simple_get( 't', 'sanitize_title', 'general_settings' ); ?>
17
-        	<li <?php echo ($a == 'general_settings') ? 'class="tabs active"' : '' ?>><a href="#general_settings" class="frm_cursor_pointer"><?php _e( 'General', 'formidable' ) ?></a></li>
17
+        	<li <?php echo ( $a == 'general_settings' ) ? 'class="tabs active"' : '' ?>><a href="#general_settings" class="frm_cursor_pointer"><?php _e( 'General', 'formidable' ) ?></a></li>
18 18
 			<?php foreach ( $sections as $sec_name => $section ) { ?>
19 19
 				<li <?php echo ( $a == $sec_name . '_settings' ) ? 'class="tabs active"' : '' ?>>
20 20
 					<a href="#<?php echo esc_attr( $sec_name ) ?>_settings">
@@ -25,14 +25,14 @@  discard block
 block discarded – undo
25 25
         </ul>
26 26
         </div>
27 27
 
28
-    <?php do_action('frm_before_settings'); ?>
28
+    <?php do_action( 'frm_before_settings' ); ?>
29 29
 
30 30
 	<form name="frm_settings_form" method="post" class="frm_settings_form" action="?page=formidable-settings<?php echo ( $a ? '&amp;t=' . $a : '' ); ?>">
31 31
         <input type="hidden" name="frm_action" value="process-form" />
32 32
         <input type="hidden" name="action" value="process-form" />
33
-        <?php wp_nonce_field('process_form_nonce', 'process_form'); ?>
33
+        <?php wp_nonce_field( 'process_form_nonce', 'process_form' ); ?>
34 34
 
35
-        <div class="general_settings tabs-panel <?php echo ($a == 'general_settings') ? 'frm_block' : 'frm_hidden'; ?>">
35
+        <div class="general_settings tabs-panel <?php echo ( $a == 'general_settings' ) ? 'frm_block' : 'frm_hidden'; ?>">
36 36
             <p class="submit">
37 37
 				<input class="button-primary" type="submit" value="<?php esc_attr_e( 'Update Options', 'formidable' ) ?>" />
38 38
             </p>
@@ -41,20 +41,20 @@  discard block
 block discarded – undo
41 41
 
42 42
             <p><label class="frm_left_label"><?php _e( 'Load form styling', 'formidable' ) ?></label>
43 43
                 <select id="frm_load_style" name="frm_load_style">
44
-                <option value="all" <?php selected($frm_settings->load_style, 'all') ?>><?php _e( 'on every page of your site', 'formidable' ) ?></option>
45
-                <option value="dynamic" <?php selected($frm_settings->load_style, 'dynamic') ?>><?php _e( 'only on applicable pages', 'formidable' ) ?></option>
46
-                <option value="none" <?php selected($frm_settings->load_style, 'none') ?>><?php _e( 'Don\'t use form styling on any page', 'formidable' ) ?></option>
44
+                <option value="all" <?php selected( $frm_settings->load_style, 'all' ) ?>><?php _e( 'on every page of your site', 'formidable' ) ?></option>
45
+                <option value="dynamic" <?php selected( $frm_settings->load_style, 'dynamic' ) ?>><?php _e( 'only on applicable pages', 'formidable' ) ?></option>
46
+                <option value="none" <?php selected( $frm_settings->load_style, 'none' ) ?>><?php _e( 'Don\'t use form styling on any page', 'formidable' ) ?></option>
47 47
                 </select>
48 48
             </p>
49 49
 
50 50
             <p>
51 51
 				<label for="frm_use_html">
52
-					<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' ) ?>
52
+					<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 53
 				</label>
54 54
 				<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>
55 55
             </p>
56 56
 
57
-            <?php do_action('frm_style_general_settings', $frm_settings); ?>
57
+            <?php do_action( 'frm_style_general_settings', $frm_settings ); ?>
58 58
 
59 59
 			<h3><?php _e( 'User Permissions', 'formidable' ); ?>
60 60
 				<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,16 +78,16 @@  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( 'Secret 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
 				<option value="" <?php selected( $frm_settings->re_lang, '' ) ?>><?php esc_html_e( 'Browser Default', 'formidable' ); ?></option>
89 89
 			    <?php foreach ( $captcha_lang as $lang => $lang_name ) { ?>
90
-				<option value="<?php echo esc_attr($lang) ?>" <?php selected($frm_settings->re_lang, $lang) ?>><?php echo esc_html( $lang_name ) ?></option>
90
+				<option value="<?php echo esc_attr( $lang ) ?>" <?php selected( $frm_settings->re_lang, $lang ) ?>><?php echo esc_html( $lang_name ) ?></option>
91 91
                 <?php } ?>
92 92
             </select></p>
93 93
 
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
 			<label class="frm_left_label"><?php _e( 'Success Message', 'formidable' ); ?>
141 141
 				<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>
142 142
 			</label>
143
-            <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) ?>" />
143
+            <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 ) ?>" />
144 144
 		</p>
145 145
 
146 146
 		<p>
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
 			<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" />
149 149
 		</p>
150 150
 
151
-        <?php do_action('frm_settings_form', $frm_settings); ?>
151
+        <?php do_action( 'frm_settings_form', $frm_settings ); ?>
152 152
 
153 153
         <?php if ( ! FrmAppHelper::pro_is_installed() ) { ?>
154 154
 			<div class="clear"></div>
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
 		<?php } ?>
159 159
 
160 160
         <p><label class="frm_left_label"><?php _e( 'Preview Page', 'formidable' ); ?></label>
161
-        <?php FrmAppHelper::wp_pages_dropdown('frm-preview-page-id', $frm_settings->preview_page_id ) ?>
161
+        <?php FrmAppHelper::wp_pages_dropdown( 'frm-preview-page-id', $frm_settings->preview_page_id ) ?>
162 162
         </p>
163 163
 
164 164
     </div>
Please login to merge, or discard this patch.