Completed
Push — master ( 745a75...18e890 )
by Stephanie
03:20
created
classes/models/FrmSettings.php 1 patch
Indentation   +179 added lines, -179 removed lines patch added patch discarded remove patch
@@ -1,244 +1,244 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 class FrmSettings {
4
-    public $option_name = 'frm_options';
5
-    public $menu;
6
-    public $mu_menu;
7
-    public $preview_page_id;
8
-    public $use_html;
9
-    public $jquery_css;
10
-    public $accordion_js;
4
+	public $option_name = 'frm_options';
5
+	public $menu;
6
+	public $mu_menu;
7
+	public $preview_page_id;
8
+	public $use_html;
9
+	public $jquery_css;
10
+	public $accordion_js;
11 11
 	public $fade_form;
12 12
 
13
-    public $success_msg;
14
-    public $blank_msg;
15
-    public $unique_msg;
16
-    public $invalid_msg;
17
-    public $failed_msg;
18
-    public $submit_value;
19
-    public $login_msg;
20
-    public $admin_permission;
21
-
22
-    public $email_to;
23
-    public $load_style;
24
-    public $custom_style;
25
-
26
-    public $pubkey;
27
-    public $privkey;
28
-    public $re_lang;
29
-    public $re_msg;
13
+	public $success_msg;
14
+	public $blank_msg;
15
+	public $unique_msg;
16
+	public $invalid_msg;
17
+	public $failed_msg;
18
+	public $submit_value;
19
+	public $login_msg;
20
+	public $admin_permission;
21
+
22
+	public $email_to;
23
+	public $load_style;
24
+	public $custom_style;
25
+
26
+	public $pubkey;
27
+	public $privkey;
28
+	public $re_lang;
29
+	public $re_msg;
30 30
 	public $re_multi;
31 31
 
32
-    public function __construct() {
33
-        if ( ! defined('ABSPATH') ) {
34
-            die('You are not allowed to call this page directly.');
35
-        }
32
+	public function __construct() {
33
+		if ( ! defined('ABSPATH') ) {
34
+			die('You are not allowed to call this page directly.');
35
+		}
36 36
 
37
-        $settings = get_transient($this->option_name);
37
+		$settings = get_transient($this->option_name);
38 38
 
39
-        if ( ! is_object($settings) ) {
40
-            $settings = $this->translate_settings($settings);
41
-        }
39
+		if ( ! is_object($settings) ) {
40
+			$settings = $this->translate_settings($settings);
41
+		}
42 42
 
43
-        foreach ( $settings as $setting_name => $setting ) {
44
-            $this->{$setting_name} = $setting;
45
-            unset($setting_name, $setting);
46
-        }
43
+		foreach ( $settings as $setting_name => $setting ) {
44
+			$this->{$setting_name} = $setting;
45
+			unset($setting_name, $setting);
46
+		}
47 47
 
48
-        $this->set_default_options();
49
-    }
48
+		$this->set_default_options();
49
+	}
50 50
 
51 51
 	private function translate_settings( $settings ) {
52
-        if ( $settings ) { //workaround for W3 total cache conflict
53
-            return unserialize(serialize($settings));
54
-        }
55
-
56
-        $settings = get_option($this->option_name);
57
-        if ( is_object($settings) ) {
58
-            set_transient($this->option_name, $settings);
59
-            return $settings;
60
-        }
61
-
62
-        // If unserializing didn't work
63
-        if ( $settings ) { //workaround for W3 total cache conflict
64
-            $settings = unserialize(serialize($settings));
65
-        } else {
66
-            $settings = $this;
67
-        }
68
-
69
-        update_option($this->option_name, $settings);
70
-        set_transient($this->option_name, $settings);
71
-
72
-        return $settings;
73
-    }
74
-
75
-    /**
76
-     * @return array
77
-     */
52
+		if ( $settings ) { //workaround for W3 total cache conflict
53
+			return unserialize(serialize($settings));
54
+		}
55
+
56
+		$settings = get_option($this->option_name);
57
+		if ( is_object($settings) ) {
58
+			set_transient($this->option_name, $settings);
59
+			return $settings;
60
+		}
61
+
62
+		// If unserializing didn't work
63
+		if ( $settings ) { //workaround for W3 total cache conflict
64
+			$settings = unserialize(serialize($settings));
65
+		} else {
66
+			$settings = $this;
67
+		}
68
+
69
+		update_option($this->option_name, $settings);
70
+		set_transient($this->option_name, $settings);
71
+
72
+		return $settings;
73
+	}
74
+
75
+	/**
76
+	 * @return array
77
+	 */
78 78
 	public function default_options() {
79
-        return array(
80
-            'menu'      => apply_filters( 'frm_default_menu', 'Formidable' ),
81
-            'mu_menu'   => 0,
82
-            'preview_page_id' => 0,
83
-            'use_html'  => true,
84
-            'jquery_css' => false,
85
-            'accordion_js' => false,
79
+		return array(
80
+			'menu'      => apply_filters( 'frm_default_menu', 'Formidable' ),
81
+			'mu_menu'   => 0,
82
+			'preview_page_id' => 0,
83
+			'use_html'  => true,
84
+			'jquery_css' => false,
85
+			'accordion_js' => false,
86 86
 			'fade_form' => false,
87 87
 
88 88
 			're_multi'  => 0,
89 89
 
90
-            'success_msg' => __( 'Your responses were successfully submitted. Thank you!', 'formidable' ),
91
-            'blank_msg' => __( 'This field cannot be blank.', 'formidable' ),
92
-            'unique_msg' => __( 'This value must be unique.', 'formidable' ),
93
-            'invalid_msg' => __( 'There was a problem with your submission. Errors are marked below.', 'formidable' ),
94
-            'failed_msg' => __( 'We\'re sorry. It looks like you\'ve  already submitted that.', 'formidable' ),
95
-            'submit_value' => __( 'Submit', 'formidable' ),
96
-            'login_msg' => __( 'You do not have permission to view this form.', 'formidable' ),
97
-            'admin_permission' => __( 'You do not have permission to do that', 'formidable' ),
90
+			'success_msg' => __( 'Your responses were successfully submitted. Thank you!', 'formidable' ),
91
+			'blank_msg' => __( 'This field cannot be blank.', 'formidable' ),
92
+			'unique_msg' => __( 'This value must be unique.', 'formidable' ),
93
+			'invalid_msg' => __( 'There was a problem with your submission. Errors are marked below.', 'formidable' ),
94
+			'failed_msg' => __( 'We\'re sorry. It looks like you\'ve  already submitted that.', 'formidable' ),
95
+			'submit_value' => __( 'Submit', 'formidable' ),
96
+			'login_msg' => __( 'You do not have permission to view this form.', 'formidable' ),
97
+			'admin_permission' => __( 'You do not have permission to do that', 'formidable' ),
98 98
 
99
-            'email_to' => '[admin_email]',
100
-        );
101
-    }
99
+			'email_to' => '[admin_email]',
100
+		);
101
+	}
102 102
 
103 103
 	private function set_default_options() {
104
-        $this->fill_recaptcha_settings();
105
-
106
-        if ( ! isset($this->load_style) ) {
107
-            if ( ! isset($this->custom_style) ) {
108
-                $this->custom_style = true;
109
-            }
110
-
111
-            $this->load_style = 'all';
112
-        }
113
-
114
-        $this->fill_with_defaults();
115
-
116
-        if ( is_multisite() && is_admin() ) {
117
-            $mu_menu = get_site_option('frm_admin_menu_name');
118
-            if ( $mu_menu && ! empty($mu_menu) ) {
119
-                $this->menu = $mu_menu;
120
-                $this->mu_menu = 1;
121
-            }
122
-        }
123
-
124
-        $frm_roles = FrmAppHelper::frm_capabilities('pro');
125
-        foreach ( $frm_roles as $frm_role => $frm_role_description ) {
126
-            if ( ! isset($this->$frm_role) ) {
127
-                $this->$frm_role = 'administrator';
128
-            }
129
-        }
130
-    }
104
+		$this->fill_recaptcha_settings();
105
+
106
+		if ( ! isset($this->load_style) ) {
107
+			if ( ! isset($this->custom_style) ) {
108
+				$this->custom_style = true;
109
+			}
110
+
111
+			$this->load_style = 'all';
112
+		}
113
+
114
+		$this->fill_with_defaults();
115
+
116
+		if ( is_multisite() && is_admin() ) {
117
+			$mu_menu = get_site_option('frm_admin_menu_name');
118
+			if ( $mu_menu && ! empty($mu_menu) ) {
119
+				$this->menu = $mu_menu;
120
+				$this->mu_menu = 1;
121
+			}
122
+		}
123
+
124
+		$frm_roles = FrmAppHelper::frm_capabilities('pro');
125
+		foreach ( $frm_roles as $frm_role => $frm_role_description ) {
126
+			if ( ! isset($this->$frm_role) ) {
127
+				$this->$frm_role = 'administrator';
128
+			}
129
+		}
130
+	}
131 131
 
132 132
 	public function fill_with_defaults( $params = array() ) {
133
-        $settings = $this->default_options();
133
+		$settings = $this->default_options();
134 134
 
135
-        foreach ( $settings as $setting => $default ) {
135
+		foreach ( $settings as $setting => $default ) {
136 136
 			if ( isset( $params[ 'frm_' . $setting ] ) ) {
137 137
 				$this->{$setting} = $params[ 'frm_' . $setting ];
138
-            } else if ( ! isset($this->{$setting}) ) {
139
-                $this->{$setting} = $default;
140
-            }
138
+			} else if ( ! isset($this->{$setting}) ) {
139
+				$this->{$setting} = $default;
140
+			}
141 141
 
142 142
 			if ( $setting == 'menu' && empty( $this->{$setting} ) ) {
143 143
 				$this->{$setting} = $default;
144 144
 			}
145 145
 
146
-            unset($setting, $default);
147
-        }
148
-    }
146
+			unset($setting, $default);
147
+		}
148
+	}
149 149
 
150
-    private function fill_recaptcha_settings() {
151
-        $privkey = '';
150
+	private function fill_recaptcha_settings() {
151
+		$privkey = '';
152 152
 		$re_lang = '';
153 153
 
154
-        if ( ! isset($this->pubkey) ) {
155
-            // get the options from the database
156
-            $recaptcha_opt = is_multisite() ? get_site_option('recaptcha') : get_option('recaptcha');
157
-            $this->pubkey = isset($recaptcha_opt['pubkey']) ? $recaptcha_opt['pubkey'] : '';
158
-            $privkey = isset($recaptcha_opt['privkey']) ? $recaptcha_opt['privkey'] : $privkey;
159
-            $re_lang = isset($recaptcha_opt['re_lang']) ? $recaptcha_opt['re_lang'] : $re_lang;
160
-        }
154
+		if ( ! isset($this->pubkey) ) {
155
+			// get the options from the database
156
+			$recaptcha_opt = is_multisite() ? get_site_option('recaptcha') : get_option('recaptcha');
157
+			$this->pubkey = isset($recaptcha_opt['pubkey']) ? $recaptcha_opt['pubkey'] : '';
158
+			$privkey = isset($recaptcha_opt['privkey']) ? $recaptcha_opt['privkey'] : $privkey;
159
+			$re_lang = isset($recaptcha_opt['re_lang']) ? $recaptcha_opt['re_lang'] : $re_lang;
160
+		}
161 161
 
162
-        if ( ! isset($this->re_msg) || empty($this->re_msg) ) {
163
-            $this->re_msg = __( 'The reCAPTCHA was not entered correctly', 'formidable' );
164
-        }
162
+		if ( ! isset($this->re_msg) || empty($this->re_msg) ) {
163
+			$this->re_msg = __( 'The reCAPTCHA was not entered correctly', 'formidable' );
164
+		}
165 165
 
166
-        if ( ! isset($this->privkey) ) {
167
-            $this->privkey = $privkey;
168
-        }
166
+		if ( ! isset($this->privkey) ) {
167
+			$this->privkey = $privkey;
168
+		}
169 169
 
170
-        if ( ! isset($this->re_lang) ) {
171
-            $this->re_lang = $re_lang;
172
-        }
173
-    }
170
+		if ( ! isset($this->re_lang) ) {
171
+			$this->re_lang = $re_lang;
172
+		}
173
+	}
174 174
 
175
-    public function validate( $params, $errors ) {
176
-        return apply_filters( 'frm_validate_settings', $errors, $params );
177
-    }
175
+	public function validate( $params, $errors ) {
176
+		return apply_filters( 'frm_validate_settings', $errors, $params );
177
+	}
178 178
 
179 179
 	public function update( $params ) {
180
-        $this->fill_with_defaults($params);
181
-        $this->update_settings($params);
180
+		$this->fill_with_defaults($params);
181
+		$this->update_settings($params);
182 182
 
183
-        if ( $this->mu_menu ) {
184
-            update_site_option('frm_admin_menu_name', $this->menu);
185
-        } else if ( current_user_can('administrator') ) {
186
-            update_site_option('frm_admin_menu_name', false);
187
-        }
183
+		if ( $this->mu_menu ) {
184
+			update_site_option('frm_admin_menu_name', $this->menu);
185
+		} else if ( current_user_can('administrator') ) {
186
+			update_site_option('frm_admin_menu_name', false);
187
+		}
188 188
 
189
-        $this->update_roles($params);
189
+		$this->update_roles($params);
190 190
 
191
-        do_action( 'frm_update_settings', $params );
192
-    }
191
+		do_action( 'frm_update_settings', $params );
192
+	}
193 193
 
194 194
 	private function update_settings( $params ) {
195
-        $this->mu_menu = isset($params['frm_mu_menu']) ? $params['frm_mu_menu'] : 0;
195
+		$this->mu_menu = isset($params['frm_mu_menu']) ? $params['frm_mu_menu'] : 0;
196 196
 
197
-        $this->pubkey = trim($params['frm_pubkey']);
198
-        $this->privkey = $params['frm_privkey'];
199
-        $this->re_lang = $params['frm_re_lang'];
197
+		$this->pubkey = trim($params['frm_pubkey']);
198
+		$this->privkey = $params['frm_privkey'];
199
+		$this->re_lang = $params['frm_re_lang'];
200 200
 		$this->re_multi = isset( $params['frm_re_multi'] ) ? $params['frm_re_multi'] : 0;
201 201
 
202
-        $this->load_style = $params['frm_load_style'];
203
-        $this->preview_page_id = (int) $params['frm-preview-page-id'];
202
+		$this->load_style = $params['frm_load_style'];
203
+		$this->preview_page_id = (int) $params['frm-preview-page-id'];
204 204
 
205
-        $this->use_html = isset($params['frm_use_html']) ? $params['frm_use_html'] : 0;
205
+		$this->use_html = isset($params['frm_use_html']) ? $params['frm_use_html'] : 0;
206 206
 		$this->jquery_css = isset( $params['frm_jquery_css'] ) ? absint( $params['frm_jquery_css'] ) : 0;
207 207
 		$this->accordion_js = isset( $params['frm_accordion_js'] ) ? absint( $params['frm_accordion_js'] ) : 0;
208 208
 		$this->fade_form = isset( $params['frm_fade_form'] ) ? absint( $params['frm_fade_form'] ) : 0;
209
-    }
209
+	}
210 210
 
211 211
 	private function update_roles( $params ) {
212
-        global $wp_roles;
212
+		global $wp_roles;
213 213
 
214
-        $frm_roles = FrmAppHelper::frm_capabilities();
215
-        $roles = get_editable_roles();
216
-        foreach ( $frm_roles as $frm_role => $frm_role_description ) {
217
-            $this->$frm_role = (array) ( isset( $params[ $frm_role ] ) ? $params[ $frm_role ] : 'administrator' );
214
+		$frm_roles = FrmAppHelper::frm_capabilities();
215
+		$roles = get_editable_roles();
216
+		foreach ( $frm_roles as $frm_role => $frm_role_description ) {
217
+			$this->$frm_role = (array) ( isset( $params[ $frm_role ] ) ? $params[ $frm_role ] : 'administrator' );
218 218
 
219
-            // Make sure administrators always have permissions
220
-            if ( ! in_array( 'administrator', $this->$frm_role ) ) {
219
+			// Make sure administrators always have permissions
220
+			if ( ! in_array( 'administrator', $this->$frm_role ) ) {
221 221
 				array_push( $this->$frm_role, 'administrator' );
222
-            }
222
+			}
223 223
 
224
-            foreach ( $roles as $role => $details ) {
225
-                if ( in_array($role, $this->$frm_role) ) {
226
-    			    $wp_roles->add_cap( $role, $frm_role );
227
-    			} else {
228
-    			    $wp_roles->remove_cap( $role, $frm_role );
229
-    			}
230
-    		}
224
+			foreach ( $roles as $role => $details ) {
225
+				if ( in_array($role, $this->$frm_role) ) {
226
+					$wp_roles->add_cap( $role, $frm_role );
227
+				} else {
228
+					$wp_roles->remove_cap( $role, $frm_role );
229
+				}
230
+			}
231 231
 		}
232
-    }
232
+	}
233 233
 
234 234
 	public function store() {
235
-        // Save the posted value in the database
235
+		// Save the posted value in the database
236 236
 
237
-        update_option('frm_options', $this);
237
+		update_option('frm_options', $this);
238 238
 
239
-        delete_transient('frm_options');
240
-        set_transient('frm_options', $this);
239
+		delete_transient('frm_options');
240
+		set_transient('frm_options', $this);
241 241
 
242
-        do_action( 'frm_store_settings' );
243
-    }
242
+		do_action( 'frm_store_settings' );
243
+	}
244 244
 }
Please login to merge, or discard this patch.
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>
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
 		<?php } ?>
160 160
 
161 161
         <p><label class="frm_left_label"><?php _e( 'Preview Page', 'formidable' ); ?></label>
162
-        <?php FrmAppHelper::wp_pages_dropdown('frm-preview-page-id', $frm_settings->preview_page_id ) ?>
162
+        <?php FrmAppHelper::wp_pages_dropdown( 'frm-preview-page-id', $frm_settings->preview_page_id ) ?>
163 163
         </p>
164 164
 
165 165
     </div>
Please login to merge, or discard this patch.