Completed
Pull Request — master (#1159)
by
unknown
16:54
created
includes/admin/class-give-settings.php 2 patches
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -543,17 +543,17 @@
 block discarded – undo
543 543
 							'type' => 'file'
544 544
 						),
545 545
 						array(
546
-						    'id'      => 'email_logo_size',
547
-						    'name'    => esc_html( 'Select Logo Size', 'give' ),
548
-						    'desc'    => esc_html( 'Choose which size to display logo', 'give' ),
549
-						    'type'    => 'select',
550
-						    'options' => array(
551
-						        'full' 		=> __( 'Full', 'give' ),
552
-						        'large'   	=> __( 'Large', 'give' ),
553
-						        'medium'    => __( 'Medium', 'give' ),
554
-						        'thumbnail' => __( 'Thumbnail', 'give' )
555
-						    ),
556
-						    'default' => 'full',
546
+							'id'      => 'email_logo_size',
547
+							'name'    => esc_html( 'Select Logo Size', 'give' ),
548
+							'desc'    => esc_html( 'Choose which size to display logo', 'give' ),
549
+							'type'    => 'select',
550
+							'options' => array(
551
+								'full' 		=> __( 'Full', 'give' ),
552
+								'large'   	=> __( 'Large', 'give' ),
553
+								'medium'    => __( 'Medium', 'give' ),
554
+								'thumbnail' => __( 'Thumbnail', 'give' )
555
+							),
556
+							'default' => 'full',
557 557
 						),
558 558
 						array(
559 559
 							'id'      => 'from_name',
Please login to merge, or discard this patch.
Spacing   +311 added lines, -311 removed lines patch added patch discarded remove patch
@@ -41,26 +41,26 @@  discard block
 block discarded – undo
41 41
 	 */
42 42
 	public function __construct() {
43 43
 
44
-		add_action( 'admin_init', array( $this, 'init' ) );
44
+		add_action('admin_init', array($this, 'init'));
45 45
 
46 46
 		//Customize CMB2 URL
47
-		add_filter( 'cmb2_meta_box_url', array( $this, 'give_update_cmb_meta_box_url' ) );
47
+		add_filter('cmb2_meta_box_url', array($this, 'give_update_cmb_meta_box_url'));
48 48
 
49 49
 		//Custom CMB2 Settings Fields
50
-		add_action( 'cmb2_render_give_title', 'give_title_callback', 10, 5 );
51
-		add_action( 'cmb2_render_give_description', 'give_description_callback', 10, 5 );
52
-		add_action( 'cmb2_render_enabled_gateways', 'give_enabled_gateways_callback', 10, 5 );
53
-		add_action( 'cmb2_render_default_gateway', 'give_default_gateway_callback', 10, 5 );
54
-		add_action( 'cmb2_render_email_preview_buttons', 'give_email_preview_buttons_callback', 10, 5 );
55
-		add_action( 'cmb2_render_system_info', 'give_system_info_callback', 10, 5 );
56
-		add_action( 'cmb2_render_api', 'give_api_callback', 10, 5 );
57
-		add_action( 'cmb2_render_license_key', 'give_license_key_callback', 10, 5 );
58
-		add_action( 'admin_notices', array( $this, 'settings_notices' ) );
50
+		add_action('cmb2_render_give_title', 'give_title_callback', 10, 5);
51
+		add_action('cmb2_render_give_description', 'give_description_callback', 10, 5);
52
+		add_action('cmb2_render_enabled_gateways', 'give_enabled_gateways_callback', 10, 5);
53
+		add_action('cmb2_render_default_gateway', 'give_default_gateway_callback', 10, 5);
54
+		add_action('cmb2_render_email_preview_buttons', 'give_email_preview_buttons_callback', 10, 5);
55
+		add_action('cmb2_render_system_info', 'give_system_info_callback', 10, 5);
56
+		add_action('cmb2_render_api', 'give_api_callback', 10, 5);
57
+		add_action('cmb2_render_license_key', 'give_license_key_callback', 10, 5);
58
+		add_action('admin_notices', array($this, 'settings_notices'));
59 59
 
60 60
 		// Include CMB CSS in the head to avoid FOUC
61
-		add_action( 'admin_print_styles-give_forms_page_give-settings', array( 'CMB2_hookup', 'enqueue_cmb_css' ) );
61
+		add_action('admin_print_styles-give_forms_page_give-settings', array('CMB2_hookup', 'enqueue_cmb_css'));
62 62
 
63
-		add_filter( 'cmb2_get_metabox_form_format', array( $this, 'give_modify_cmb2_form_output' ), 10, 3 );
63
+		add_filter('cmb2_get_metabox_form_format', array($this, 'give_modify_cmb2_form_output'), 10, 3);
64 64
 
65 65
 	}
66 66
 
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 	 * @since  1.0
72 72
 	 */
73 73
 	public function init() {
74
-		register_setting( $this->key, $this->key );
74
+		register_setting($this->key, $this->key);
75 75
 
76 76
 	}
77 77
 
@@ -85,9 +85,9 @@  discard block
 block discarded – undo
85 85
 	 *
86 86
 	 * @return mixed
87 87
 	 */
88
-	public function give_update_cmb_meta_box_url( $url ) {
88
+	public function give_update_cmb_meta_box_url($url) {
89 89
 		//Path to Give's CMB
90
-		return GIVE_PLUGIN_URL . '/includes/libraries/cmb2';
90
+		return GIVE_PLUGIN_URL.'/includes/libraries/cmb2';
91 91
 	}
92 92
 
93 93
 
@@ -99,27 +99,27 @@  discard block
 block discarded – undo
99 99
 	 */
100 100
 	public function give_get_settings_tabs() {
101 101
 
102
-		$settings = $this->give_settings( null );
102
+		$settings = $this->give_settings(null);
103 103
 
104 104
 		$tabs             = array();
105
-		$tabs['general']  = esc_html__( 'General', 'give' );
106
-		$tabs['gateways'] = esc_html__( 'Payment Gateways', 'give' );
107
-		$tabs['display']  = esc_html__( 'Display Options', 'give' );
108
-		$tabs['emails']   = esc_html__( 'Emails', 'give' );
105
+		$tabs['general']  = esc_html__('General', 'give');
106
+		$tabs['gateways'] = esc_html__('Payment Gateways', 'give');
107
+		$tabs['display']  = esc_html__('Display Options', 'give');
108
+		$tabs['emails']   = esc_html__('Emails', 'give');
109 109
 
110
-		if ( ! empty( $settings['addons']['fields'] ) ) {
111
-			$tabs['addons'] = esc_html__( 'Add-ons', 'give' );
110
+		if ( ! empty($settings['addons']['fields'])) {
111
+			$tabs['addons'] = esc_html__('Add-ons', 'give');
112 112
 		}
113 113
 
114
-		if ( ! empty( $settings['licenses']['fields'] ) ) {
115
-			$tabs['licenses'] = esc_html__( 'Licenses', 'give' );
114
+		if ( ! empty($settings['licenses']['fields'])) {
115
+			$tabs['licenses'] = esc_html__('Licenses', 'give');
116 116
 		}
117 117
 
118
-		$tabs['advanced']    = esc_html__( 'Advanced', 'give' );
119
-		$tabs['api']         = esc_html__( 'API', 'give' );
120
-		$tabs['system_info'] = esc_html__( 'System Info', 'give' );
118
+		$tabs['advanced']    = esc_html__('Advanced', 'give');
119
+		$tabs['api']         = esc_html__('API', 'give');
120
+		$tabs['system_info'] = esc_html__('System Info', 'give');
121 121
 
122
-		return apply_filters( 'give_settings_tabs', $tabs );
122
+		return apply_filters('give_settings_tabs', $tabs);
123 123
 	}
124 124
 
125 125
 
@@ -129,32 +129,32 @@  discard block
 block discarded – undo
129 129
 	 */
130 130
 	public function admin_page_display() {
131 131
 
132
-		$active_tab = isset( $_GET['tab'] ) && array_key_exists( $_GET['tab'], $this->give_get_settings_tabs() ) ? $_GET['tab'] : 'general';
132
+		$active_tab = isset($_GET['tab']) && array_key_exists($_GET['tab'], $this->give_get_settings_tabs()) ? $_GET['tab'] : 'general';
133 133
 
134 134
 		?>
135 135
 
136 136
 		<div class="wrap give_settings_page cmb2_options_page <?php echo $this->key; ?>">
137 137
 
138
-			<h1 class="screen-reader-text"><?php esc_html_e( 'Give Settings', 'give' ); ?></h1>
138
+			<h1 class="screen-reader-text"><?php esc_html_e('Give Settings', 'give'); ?></h1>
139 139
 
140 140
 			<h2 class="nav-tab-wrapper">
141 141
 				<?php
142
-				foreach ( $this->give_get_settings_tabs() as $tab_id => $tab_name ) {
142
+				foreach ($this->give_get_settings_tabs() as $tab_id => $tab_name) {
143 143
 
144
-					$tab_url = esc_url( add_query_arg( array(
144
+					$tab_url = esc_url(add_query_arg(array(
145 145
 						'settings-updated' => false,
146 146
 						'tab'              => $tab_id
147
-					) ) );
147
+					)));
148 148
 
149 149
 					$active = $active_tab == $tab_id ? ' nav-tab-active' : '';
150 150
 
151
-					echo '<a href="' . esc_url( $tab_url ) . '" title="' . esc_attr( $tab_name ) . '" class="nav-tab' . $active . '" id="tab-' . $tab_id . '">' . esc_html( $tab_name ) . '</a>';
151
+					echo '<a href="'.esc_url($tab_url).'" title="'.esc_attr($tab_name).'" class="nav-tab'.$active.'" id="tab-'.$tab_id.'">'.esc_html($tab_name).'</a>';
152 152
 
153 153
 				}
154 154
 				?>
155 155
 			</h2>
156 156
 
157
-			<?php cmb2_metabox_form( $this->give_settings( $active_tab ), $this->key ); ?>
157
+			<?php cmb2_metabox_form($this->give_settings($active_tab), $this->key); ?>
158 158
 
159 159
 		</div><!-- .wrap -->
160 160
 
@@ -176,12 +176,12 @@  discard block
 block discarded – undo
176 176
 	 *
177 177
 	 * @return string
178 178
 	 */
179
-	function give_modify_cmb2_form_output( $form_format, $object_id, $cmb ) {
179
+	function give_modify_cmb2_form_output($form_format, $object_id, $cmb) {
180 180
 
181 181
 		//only modify the give settings form
182
-		if ( 'give_settings' == $object_id ) {
182
+		if ('give_settings' == $object_id) {
183 183
 
184
-			return '<form class="cmb-form" method="post" id="%1$s" enctype="multipart/form-data" encoding="multipart/form-data"><input type="hidden" name="give_settings_saved" value="true"><input type="hidden" name="object_id" value="%2$s">%3$s<div class="give-submit-wrap"><input type="submit" name="submit-cmb" value="' . __( 'Save Settings', 'give' ) . '" class="button-primary"></div></form>';
184
+			return '<form class="cmb-form" method="post" id="%1$s" enctype="multipart/form-data" encoding="multipart/form-data"><input type="hidden" name="give_settings_saved" value="true"><input type="hidden" name="object_id" value="%2$s">%3$s<div class="give-submit-wrap"><input type="submit" name="submit-cmb" value="'.__('Save Settings', 'give').'" class="button-primary"></div></form>';
185 185
 
186 186
 		}
187 187
 
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
 	 *
199 199
 	 * @return array
200 200
 	 */
201
-	public function give_settings( $active_tab ) {
201
+	public function give_settings($active_tab) {
202 202
 
203 203
 		$give_settings = array(
204 204
 			/**
@@ -206,99 +206,99 @@  discard block
 block discarded – undo
206 206
 			 */
207 207
 			'general'     => array(
208 208
 				'id'         => 'general_settings',
209
-				'give_title' => esc_html__( 'General Settings', 'give' ),
210
-				'show_on'    => array( 'key' => 'options-page', 'value' => array( $this->key, ), ),
211
-				'fields'     => apply_filters( 'give_settings_general', array(
209
+				'give_title' => esc_html__('General Settings', 'give'),
210
+				'show_on'    => array('key' => 'options-page', 'value' => array($this->key,),),
211
+				'fields'     => apply_filters('give_settings_general', array(
212 212
 						array(
213
-							'name' => esc_html__( 'General Settings', 'give' ),
213
+							'name' => esc_html__('General Settings', 'give'),
214 214
 							'desc' => '',
215 215
 							'type' => 'give_title',
216 216
 							'id'   => 'give_title_general_settings_1'
217 217
 						),
218 218
 						array(
219
-							'name'    => esc_html__( 'Success Page', 'give' ),
219
+							'name'    => esc_html__('Success Page', 'give'),
220 220
 							/* translators: %s: [give_receipt] */
221
-							'desc'    => sprintf( __( 'This is the page donors are sent to after completing their donations. The %s shortcode should be on this page.', 'give' ), '<code>[give_receipt]</code>' ),
221
+							'desc'    => sprintf(__('This is the page donors are sent to after completing their donations. The %s shortcode should be on this page.', 'give'), '<code>[give_receipt]</code>'),
222 222
 							'id'      => 'success_page',
223 223
 							'type'    => 'select',
224
-							'options' => give_cmb2_get_post_options( array(
224
+							'options' => give_cmb2_get_post_options(array(
225 225
 								'post_type'   => 'page',
226
-								'numberposts' => - 1
227
-							) ),
226
+								'numberposts' => -1
227
+							)),
228 228
 						),
229 229
 						array(
230
-							'name'    => esc_html__( 'Failed Transaction Page', 'give' ),
231
-							'desc'    => esc_html__( 'This is the page donors are sent to if their transaction is cancelled or fails.', 'give' ),
230
+							'name'    => esc_html__('Failed Transaction Page', 'give'),
231
+							'desc'    => esc_html__('This is the page donors are sent to if their transaction is cancelled or fails.', 'give'),
232 232
 							'id'      => 'failure_page',
233 233
 							'type'    => 'select',
234
-							'options' => give_cmb2_get_post_options( array(
234
+							'options' => give_cmb2_get_post_options(array(
235 235
 								'post_type'   => 'page',
236
-								'numberposts' => - 1
237
-							) ),
236
+								'numberposts' => -1
237
+							)),
238 238
 						),
239 239
 						array(
240
-							'name'    => esc_html__( 'Donation History Page', 'give' ),
240
+							'name'    => esc_html__('Donation History Page', 'give'),
241 241
 							/* translators: %s: [donation_history] */
242
-							'desc'    => sprintf( __( 'This page shows a complete donation history for the current user. The %s shortcode should be on this page.', 'give' ), '<code>[donation_history]</code>' ),
242
+							'desc'    => sprintf(__('This page shows a complete donation history for the current user. The %s shortcode should be on this page.', 'give'), '<code>[donation_history]</code>'),
243 243
 							'id'      => 'history_page',
244 244
 							'type'    => 'select',
245
-							'options' => give_cmb2_get_post_options( array(
245
+							'options' => give_cmb2_get_post_options(array(
246 246
 								'post_type'   => 'page',
247
-								'numberposts' => - 1
248
-							) ),
247
+								'numberposts' => -1
248
+							)),
249 249
 						),
250 250
 						array(
251
-							'name'    => esc_html__( 'Base Country', 'give' ),
252
-							'desc'    => esc_html__( 'Where does your site operate from?', 'give' ),
251
+							'name'    => esc_html__('Base Country', 'give'),
252
+							'desc'    => esc_html__('Where does your site operate from?', 'give'),
253 253
 							'id'      => 'base_country',
254 254
 							'type'    => 'select',
255 255
 							'options' => give_get_country_list(),
256 256
 						),
257 257
 						array(
258
-							'name' => esc_html__( 'Currency Settings', 'give' ),
258
+							'name' => esc_html__('Currency Settings', 'give'),
259 259
 							'desc' => '',
260 260
 							'type' => 'give_title',
261 261
 							'id'   => 'give_title_general_settings_2'
262 262
 						),
263 263
 						array(
264
-							'name'    => esc_html__( 'Currency', 'give' ),
265
-							'desc'    => esc_html__( 'Choose your currency. Note that some payment gateways have currency restrictions.', 'give' ),
264
+							'name'    => esc_html__('Currency', 'give'),
265
+							'desc'    => esc_html__('Choose your currency. Note that some payment gateways have currency restrictions.', 'give'),
266 266
 							'id'      => 'currency',
267 267
 							'type'    => 'select',
268 268
 							'options' => give_get_currencies(),
269 269
 							'default' => 'USD',
270 270
 						),
271 271
 						array(
272
-							'name'    => esc_html__( 'Currency Position', 'give' ),
273
-							'desc'    => esc_html__( 'Choose the position of the currency sign.', 'give' ),
272
+							'name'    => esc_html__('Currency Position', 'give'),
273
+							'desc'    => esc_html__('Choose the position of the currency sign.', 'give'),
274 274
 							'id'      => 'currency_position',
275 275
 							'type'    => 'select',
276 276
 							'options' => array(
277 277
 								/* translators: %s: currency symbol */
278
-								'before' => sprintf( esc_html__( 'Before - %s10', 'give' ), give_currency_symbol( give_get_currency() ) ),
278
+								'before' => sprintf(esc_html__('Before - %s10', 'give'), give_currency_symbol(give_get_currency())),
279 279
 								/* translators: %s: currency symbol */
280
-								'after'  => sprintf( esc_html__( 'After - 10%s', 'give' ), give_currency_symbol( give_get_currency() ) )
280
+								'after'  => sprintf(esc_html__('After - 10%s', 'give'), give_currency_symbol(give_get_currency()))
281 281
 							),
282 282
 							'default' => 'before',
283 283
 						),
284 284
 						array(
285
-							'name'            => esc_html__( 'Thousands Separator', 'give' ),
286
-							'desc'            => esc_html__( 'The symbol (typically , or .) to separate thousands.', 'give' ),
285
+							'name'            => esc_html__('Thousands Separator', 'give'),
286
+							'desc'            => esc_html__('The symbol (typically , or .) to separate thousands.', 'give'),
287 287
 							'id'              => 'thousands_separator',
288 288
 							'type'            => 'text_small',
289 289
 							'sanitization_cb' => 'give_sanitize_thousand_separator',
290 290
 							'default'         => ',',
291 291
 						),
292 292
 						array(
293
-							'name'    => esc_html__( 'Decimal Separator', 'give' ),
294
-							'desc'    => esc_html__( 'The symbol (usually , or .) to separate decimal points.', 'give' ),
293
+							'name'    => esc_html__('Decimal Separator', 'give'),
294
+							'desc'    => esc_html__('The symbol (usually , or .) to separate decimal points.', 'give'),
295 295
 							'id'      => 'decimal_separator',
296 296
 							'type'    => 'text_small',
297 297
 							'default' => '.',
298 298
 						),
299 299
 						array(
300
-							'name'            => __( 'Number of Decimals', 'give' ),
301
-							'desc'            => __( 'This sets the number of decimal points shown in displayed prices.', 'give' ),
300
+							'name'            => __('Number of Decimals', 'give'),
301
+							'desc'            => __('This sets the number of decimal points shown in displayed prices.', 'give'),
302 302
 							'id'              => 'number_decimals',
303 303
 							'type'            => 'text_small',
304 304
 							'default'         => 2,
@@ -312,83 +312,83 @@  discard block
 block discarded – undo
312 312
 			 */
313 313
 			'gateways'    => array(
314 314
 				'id'         => 'payment_gateways',
315
-				'give_title' => esc_html__( 'Payment Gateways', 'give' ),
316
-				'show_on'    => array( 'key' => 'options-page', 'value' => array( $this->key, ), ),
317
-				'fields'     => apply_filters( 'give_settings_gateways', array(
315
+				'give_title' => esc_html__('Payment Gateways', 'give'),
316
+				'show_on'    => array('key' => 'options-page', 'value' => array($this->key,),),
317
+				'fields'     => apply_filters('give_settings_gateways', array(
318 318
 						array(
319
-							'name' => esc_html__( 'Gateways Settings', 'give' ),
319
+							'name' => esc_html__('Gateways Settings', 'give'),
320 320
 							'desc' => '',
321 321
 							'id'   => 'give_title_gateway_settings_1',
322 322
 							'type' => 'give_title'
323 323
 						),
324 324
 						array(
325
-							'name' => esc_html__( 'Test Mode', 'give' ),
326
-							'desc' => esc_html__( 'While in test mode no live transactions are processed. To fully use test mode, you must have a sandbox (test) account for the payment gateway you are testing.', 'give' ),
325
+							'name' => esc_html__('Test Mode', 'give'),
326
+							'desc' => esc_html__('While in test mode no live transactions are processed. To fully use test mode, you must have a sandbox (test) account for the payment gateway you are testing.', 'give'),
327 327
 							'id'   => 'test_mode',
328 328
 							'type' => 'checkbox'
329 329
 						),
330 330
 						array(
331
-							'name' => esc_html__( 'Enabled Gateways', 'give' ),
332
-							'desc' => esc_html__( 'Choose the payment gateways you would like enabled. You can drag-and-drop payment gateways to reorder them.', 'give' ),
331
+							'name' => esc_html__('Enabled Gateways', 'give'),
332
+							'desc' => esc_html__('Choose the payment gateways you would like enabled. You can drag-and-drop payment gateways to reorder them.', 'give'),
333 333
 							'id'   => 'gateways',
334 334
 							'type' => 'enabled_gateways'
335 335
 						),
336 336
 						array(
337
-							'name' => esc_html__( 'Default Gateway', 'give' ),
338
-							'desc' => esc_html__( 'This is the gateway that will be selected by default.', 'give' ),
337
+							'name' => esc_html__('Default Gateway', 'give'),
338
+							'desc' => esc_html__('This is the gateway that will be selected by default.', 'give'),
339 339
 							'id'   => 'default_gateway',
340 340
 							'type' => 'default_gateway'
341 341
 						),
342 342
 						array(
343
-							'name' => esc_html__( 'PayPal Standard', 'give' ),
343
+							'name' => esc_html__('PayPal Standard', 'give'),
344 344
 							'desc' => '',
345 345
 							'type' => 'give_title',
346 346
 							'id'   => 'give_title_gateway_settings_2',
347 347
 						),
348 348
 						array(
349
-							'name' => esc_html__( 'PayPal Email', 'give' ),
350
-							'desc' => esc_html__( 'Enter your PayPal account\'s email.', 'give' ),
349
+							'name' => esc_html__('PayPal Email', 'give'),
350
+							'desc' => esc_html__('Enter your PayPal account\'s email.', 'give'),
351 351
 							'id'   => 'paypal_email',
352 352
 							'type' => 'text_email',
353 353
 						),
354 354
 						array(
355
-							'name' => esc_html__( 'PayPal Page Style', 'give' ),
356
-							'desc' => esc_html__( 'Enter the name of the page style to use, or leave blank to use the default.', 'give' ),
355
+							'name' => esc_html__('PayPal Page Style', 'give'),
356
+							'desc' => esc_html__('Enter the name of the page style to use, or leave blank to use the default.', 'give'),
357 357
 							'id'   => 'paypal_page_style',
358 358
 							'type' => 'text',
359 359
 						),
360 360
 						array(
361
-							'name'    => esc_html__( 'PayPal Transaction Type', 'give' ),
362
-							'desc'    => esc_html__( 'Nonprofits must verify their status to withdraw donations they receive via PayPal. PayPal users that are not verified nonprofits must demonstrate how their donations will be used, once they raise more than $10,000. By default, Give transactions are sent to PayPal as donations. You may change the transaction type using this option if you feel you may not meet PayPal\'s donation requirements.', 'give' ),
361
+							'name'    => esc_html__('PayPal Transaction Type', 'give'),
362
+							'desc'    => esc_html__('Nonprofits must verify their status to withdraw donations they receive via PayPal. PayPal users that are not verified nonprofits must demonstrate how their donations will be used, once they raise more than $10,000. By default, Give transactions are sent to PayPal as donations. You may change the transaction type using this option if you feel you may not meet PayPal\'s donation requirements.', 'give'),
363 363
 							'id'      => 'paypal_button_type',
364 364
 							'type'    => 'radio_inline',
365 365
 							'options' => array(
366
-								'donation' => esc_html__( 'Donation', 'give' ),
367
-								'standard' => esc_html__( 'Standard Transaction', 'give' )
366
+								'donation' => esc_html__('Donation', 'give'),
367
+								'standard' => esc_html__('Standard Transaction', 'give')
368 368
 							),
369 369
 							'default' => 'donation',
370 370
 						),
371 371
 						array(
372
-							'name' => esc_html__( 'Disable PayPal IPN Verification', 'give' ),
373
-							'desc' => esc_html__( 'If donations are not getting marked as complete, then check this box. This forces the site to use a slightly less secure method of verifying donations.', 'give' ),
372
+							'name' => esc_html__('Disable PayPal IPN Verification', 'give'),
373
+							'desc' => esc_html__('If donations are not getting marked as complete, then check this box. This forces the site to use a slightly less secure method of verifying donations.', 'give'),
374 374
 							'id'   => 'disable_paypal_verification',
375 375
 							'type' => 'checkbox'
376 376
 						),
377 377
 						array(
378
-							'name' => esc_html__( 'Offline Donations', 'give' ),
378
+							'name' => esc_html__('Offline Donations', 'give'),
379 379
 							'desc' => '',
380 380
 							'type' => 'give_title',
381 381
 							'id'   => 'give_title_gateway_settings_3',
382 382
 						),
383 383
 						array(
384
-							'name' => esc_html__( 'Collect Billing Details', 'give' ),
385
-							'desc' => esc_html__( 'This option will enable the billing details section for offline donations. The fieldset will appear above the offline donation instructions. Note: You may customize this option per form as needed.', 'give' ),
384
+							'name' => esc_html__('Collect Billing Details', 'give'),
385
+							'desc' => esc_html__('This option will enable the billing details section for offline donations. The fieldset will appear above the offline donation instructions. Note: You may customize this option per form as needed.', 'give'),
386 386
 							'id'   => 'give_offline_donation_enable_billing_fields',
387 387
 							'type' => 'checkbox'
388 388
 						),
389 389
 						array(
390
-							'name'    => esc_html__( 'Offline Donation Instructions', 'give' ),
391
-							'desc'    => esc_html__( 'The following content will appear for all forms when the user selects the offline donation payment option. Note: You may customize the content per form as needed.', 'give' ),
390
+							'name'    => esc_html__('Offline Donation Instructions', 'give'),
391
+							'desc'    => esc_html__('The following content will appear for all forms when the user selects the offline donation payment option. Note: You may customize the content per form as needed.', 'give'),
392 392
 							'id'      => 'global_offline_donation_content',
393 393
 							'default' => give_get_default_offline_donation_content(),
394 394
 							'type'    => 'wysiwyg',
@@ -397,15 +397,15 @@  discard block
 block discarded – undo
397 397
 							)
398 398
 						),
399 399
 						array(
400
-							'name'    => esc_html__( 'Offline Donation Email Instructions Subject', 'give' ),
401
-							'desc'    => esc_html__( 'Enter the subject line for the donation receipt email.', 'give' ),
400
+							'name'    => esc_html__('Offline Donation Email Instructions Subject', 'give'),
401
+							'desc'    => esc_html__('Enter the subject line for the donation receipt email.', 'give'),
402 402
 							'id'      => 'offline_donation_subject',
403
-							'default' => esc_attr__( '{donation} - Offline Donation Instructions', 'give' ),
403
+							'default' => esc_attr__('{donation} - Offline Donation Instructions', 'give'),
404 404
 							'type'    => 'text'
405 405
 						),
406 406
 						array(
407
-							'name'    => esc_html__( 'Offline Donation Email Instructions', 'give' ),
408
-							'desc'    => esc_html__( 'Enter the instructions you want emailed to the donor after they have submitted the donation form. Most likely this would include important information like mailing address and who to make the check out to.', 'give' ),
407
+							'name'    => esc_html__('Offline Donation Email Instructions', 'give'),
408
+							'desc'    => esc_html__('Enter the instructions you want emailed to the donor after they have submitted the donation form. Most likely this would include important information like mailing address and who to make the check out to.', 'give'),
409 409
 							'id'      => 'global_offline_donation_email',
410 410
 							'default' => give_get_default_offline_donation_email_content(),
411 411
 							'type'    => 'wysiwyg',
@@ -419,95 +419,95 @@  discard block
 block discarded – undo
419 419
 			/** Display Settings */
420 420
 			'display'     => array(
421 421
 				'id'         => 'display_settings',
422
-				'give_title' => esc_html__( 'Display Settings', 'give' ),
423
-				'show_on'    => array( 'key' => 'options-page', 'value' => array( $this->key, ), ),
424
-				'fields'     => apply_filters( 'give_settings_display', array(
422
+				'give_title' => esc_html__('Display Settings', 'give'),
423
+				'show_on'    => array('key' => 'options-page', 'value' => array($this->key,),),
424
+				'fields'     => apply_filters('give_settings_display', array(
425 425
 						array(
426
-							'name' => esc_html__( 'Display Settings', 'give' ),
426
+							'name' => esc_html__('Display Settings', 'give'),
427 427
 							'desc' => '',
428 428
 							'id'   => 'give_title_display_settings_1',
429 429
 							'type' => 'give_title'
430 430
 						),
431 431
 						array(
432
-							'name' => esc_html__( 'Disable CSS', 'give' ),
433
-							'desc' => esc_html__( 'Enable this option if you would like to disable all of Give\'s included CSS stylesheets.', 'give' ),
432
+							'name' => esc_html__('Disable CSS', 'give'),
433
+							'desc' => esc_html__('Enable this option if you would like to disable all of Give\'s included CSS stylesheets.', 'give'),
434 434
 							'id'   => 'disable_css',
435 435
 							'type' => 'checkbox'
436 436
 						),
437 437
 						array(
438
-							'name' => esc_html__( 'Enable Floating Labels', 'give' ),
438
+							'name' => esc_html__('Enable Floating Labels', 'give'),
439 439
 							/* translators: %s: https://givewp.com/documentation/core/give-forms/creating-give-forms/#floating-labels */
440
-							'desc' => sprintf( wp_kses( __( 'Enable this option if you would like to enable <a href="%s" target="_blank">floating labels</a> in Give\'s donation forms. <br />Be aware that if you have the "Disable CSS" option enabled, you will need to style the floating labels yourself.', 'give' ), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), esc_url( 'https://givewp.com/documentation/core/give-forms/creating-give-forms/#floating-labels' ) ),
440
+							'desc' => sprintf(wp_kses(__('Enable this option if you would like to enable <a href="%s" target="_blank">floating labels</a> in Give\'s donation forms. <br />Be aware that if you have the "Disable CSS" option enabled, you will need to style the floating labels yourself.', 'give'), array('a' => array('href' => array(), 'target' => array()))), esc_url('https://givewp.com/documentation/core/give-forms/creating-give-forms/#floating-labels')),
441 441
 							'id'   => 'enable_floatlabels',
442 442
 							'type' => 'checkbox'
443 443
 						),
444 444
 						array(
445
-							'name' => esc_html__( 'Disable Welcome Screen', 'give' ),
445
+							'name' => esc_html__('Disable Welcome Screen', 'give'),
446 446
 							/* translators: %s: about page URL */
447
-							'desc' => sprintf( wp_kses( __( 'Enable this option if you would like to disable the Give Welcome screen every time Give is activated and/or updated. You can always access the <a href="%s">Welcome Screen</a> if you want in the future.', 'give' ), array( 'a' => array( 'href' => array() ) ) ), esc_url( admin_url( 'index.php?page=give-about' ) ) ),
447
+							'desc' => sprintf(wp_kses(__('Enable this option if you would like to disable the Give Welcome screen every time Give is activated and/or updated. You can always access the <a href="%s">Welcome Screen</a> if you want in the future.', 'give'), array('a' => array('href' => array()))), esc_url(admin_url('index.php?page=give-about'))),
448 448
 							'id'   => 'disable_welcome',
449 449
 							'type' => 'checkbox'
450 450
 						),
451 451
 						array(
452
-							'name' => esc_html__( 'Post Types', 'give' ),
452
+							'name' => esc_html__('Post Types', 'give'),
453 453
 							'desc' => '',
454 454
 							'id'   => 'give_title_display_settings_2',
455 455
 							'type' => 'give_title'
456 456
 						),
457 457
 						array(
458
-							'name' => esc_html__( 'Disable Form Single Views', 'give' ),
459
-							'desc' => esc_html__( 'By default, all forms have single views enabled which create a specific URL on your website for that form. This option disables the singular and archive views from being publicly viewable. Note: you will need to embed forms using a shortcode or widget if enabled.', 'give' ),
458
+							'name' => esc_html__('Disable Form Single Views', 'give'),
459
+							'desc' => esc_html__('By default, all forms have single views enabled which create a specific URL on your website for that form. This option disables the singular and archive views from being publicly viewable. Note: you will need to embed forms using a shortcode or widget if enabled.', 'give'),
460 460
 							'id'   => 'disable_forms_singular',
461 461
 							'type' => 'checkbox'
462 462
 						),
463 463
 						array(
464
-							'name' => esc_html__( 'Disable Form Archives', 'give' ),
465
-							'desc' => esc_html__( 'Archives pages list all the forms you have created. This option will disable only the form\'s archive page(s). The single form\'s view will remain in place. Note: you will need to refresh your permalinks after this option has been enabled.', 'give' ),
464
+							'name' => esc_html__('Disable Form Archives', 'give'),
465
+							'desc' => esc_html__('Archives pages list all the forms you have created. This option will disable only the form\'s archive page(s). The single form\'s view will remain in place. Note: you will need to refresh your permalinks after this option has been enabled.', 'give'),
466 466
 							'id'   => 'disable_forms_archives',
467 467
 							'type' => 'checkbox'
468 468
 						),
469 469
 						array(
470
-							'name' => esc_html__( 'Disable Form Excerpts', 'give' ),
471
-							'desc' => esc_html__( 'The excerpt is an optional summary or description of a donation form; in short, a summary as to why the user should give.', 'give' ),
470
+							'name' => esc_html__('Disable Form Excerpts', 'give'),
471
+							'desc' => esc_html__('The excerpt is an optional summary or description of a donation form; in short, a summary as to why the user should give.', 'give'),
472 472
 							'id'   => 'disable_forms_excerpt',
473 473
 							'type' => 'checkbox'
474 474
 						),
475 475
 
476 476
 						array(
477
-							'name'    => esc_html__( 'Featured Image Size', 'give' ),
478
-							'desc'    => esc_html__( 'The Featured Image is an image that is chosen as the representative image for a donation form. Some themes may have custom featured image sizes. Please select the size you would like to display for your single donation forms\' featured image.', 'give' ),
477
+							'name'    => esc_html__('Featured Image Size', 'give'),
478
+							'desc'    => esc_html__('The Featured Image is an image that is chosen as the representative image for a donation form. Some themes may have custom featured image sizes. Please select the size you would like to display for your single donation forms\' featured image.', 'give'),
479 479
 							'id'      => 'featured_image_size',
480 480
 							'type'    => 'select',
481 481
 							'default' => 'large',
482 482
 							'options' => give_get_featured_image_sizes()
483 483
 						),
484 484
 						array(
485
-							'name' => esc_html__( 'Disable Form Featured Image', 'give' ),
486
-							'desc' => esc_html__( 'If you do not wish to use the featured image functionality you can disable it using this option and it will not be displayed for single donation forms.', 'give' ),
485
+							'name' => esc_html__('Disable Form Featured Image', 'give'),
486
+							'desc' => esc_html__('If you do not wish to use the featured image functionality you can disable it using this option and it will not be displayed for single donation forms.', 'give'),
487 487
 							'id'   => 'disable_form_featured_img',
488 488
 							'type' => 'checkbox'
489 489
 						),
490 490
 						array(
491
-							'name' => esc_html__( 'Disable Single Form Sidebar', 'give' ),
492
-							'desc' => esc_html__( 'The sidebar allows you to add additional widget to the Give single form view. If you don\'t plan on using the sidebar you may disable it with this option.', 'give' ),
491
+							'name' => esc_html__('Disable Single Form Sidebar', 'give'),
492
+							'desc' => esc_html__('The sidebar allows you to add additional widget to the Give single form view. If you don\'t plan on using the sidebar you may disable it with this option.', 'give'),
493 493
 							'id'   => 'disable_form_sidebar',
494 494
 							'type' => 'checkbox'
495 495
 						),
496 496
 						array(
497
-							'name' => esc_html__( 'Taxonomies', 'give' ),
497
+							'name' => esc_html__('Taxonomies', 'give'),
498 498
 							'desc' => '',
499 499
 							'id'   => 'give_title_display_settings_3',
500 500
 							'type' => 'give_title'
501 501
 						),
502 502
 						array(
503
-							'name' => esc_html__( 'Enable Form Categories', 'give' ),
504
-							'desc' => esc_html__( 'Check this option if you would like to categorize your donation forms. This option enables the form\'s category taxonomy.', 'give' ),
503
+							'name' => esc_html__('Enable Form Categories', 'give'),
504
+							'desc' => esc_html__('Check this option if you would like to categorize your donation forms. This option enables the form\'s category taxonomy.', 'give'),
505 505
 							'id'   => 'enable_categories',
506 506
 							'type' => 'checkbox'
507 507
 						),
508 508
 						array(
509
-							'name' => esc_html__( 'Enable Form Tags', 'give' ),
510
-							'desc' => esc_html__( 'Check this option if you would like to tag your donation forms. This option enables the form\'s tag taxonomy.', 'give' ),
509
+							'name' => esc_html__('Enable Form Tags', 'give'),
510
+							'desc' => esc_html__('Check this option if you would like to tag your donation forms. This option enables the form\'s tag taxonomy.', 'give'),
511 511
 							'id'   => 'enable_tags',
512 512
 							'type' => 'checkbox'
513 513
 						),
@@ -520,108 +520,108 @@  discard block
 block discarded – undo
520 520
 			 */
521 521
 			'emails'      => array(
522 522
 				'id'         => 'email_settings',
523
-				'give_title' => esc_html__( 'Email Settings', 'give' ),
524
-				'show_on'    => array( 'key' => 'options-page', 'value' => array( $this->key, ), ),
525
-				'fields'     => apply_filters( 'give_settings_emails', array(
523
+				'give_title' => esc_html__('Email Settings', 'give'),
524
+				'show_on'    => array('key' => 'options-page', 'value' => array($this->key,),),
525
+				'fields'     => apply_filters('give_settings_emails', array(
526 526
 						array(
527
-							'name' => esc_html__( 'Email Settings', 'give' ),
527
+							'name' => esc_html__('Email Settings', 'give'),
528 528
 							'desc' => '',
529 529
 							'id'   => 'give_title_email_settings_1',
530 530
 							'type' => 'give_title'
531 531
 						),
532 532
 						array(
533 533
 							'id'      => 'email_template',
534
-							'name'    => esc_html__( 'Email Template', 'give' ),
535
-							'desc'    => esc_html__( 'Choose a template. Click "Save Changes" then "Preview Donation Receipt" to see the new template.', 'give' ),
534
+							'name'    => esc_html__('Email Template', 'give'),
535
+							'desc'    => esc_html__('Choose a template. Click "Save Changes" then "Preview Donation Receipt" to see the new template.', 'give'),
536 536
 							'type'    => 'select',
537 537
 							'options' => give_get_email_templates()
538 538
 						),
539 539
 						array(
540 540
 							'id'   => 'email_logo',
541
-							'name' => esc_html__( 'Logo', 'give' ),
542
-							'desc' => esc_html__( 'Upload or choose a logo to be displayed at the top of the donation receipt emails. Displayed on HTML emails only.', 'give' ),
541
+							'name' => esc_html__('Logo', 'give'),
542
+							'desc' => esc_html__('Upload or choose a logo to be displayed at the top of the donation receipt emails. Displayed on HTML emails only.', 'give'),
543 543
 							'type' => 'file'
544 544
 						),
545 545
 						array(
546 546
 						    'id'      => 'email_logo_size',
547
-						    'name'    => esc_html( 'Select Logo Size', 'give' ),
548
-						    'desc'    => esc_html( 'Choose which size to display logo', 'give' ),
547
+						    'name'    => esc_html('Select Logo Size', 'give'),
548
+						    'desc'    => esc_html('Choose which size to display logo', 'give'),
549 549
 						    'type'    => 'select',
550 550
 						    'options' => array(
551
-						        'full' 		=> __( 'Full', 'give' ),
552
-						        'large'   	=> __( 'Large', 'give' ),
553
-						        'medium'    => __( 'Medium', 'give' ),
554
-						        'thumbnail' => __( 'Thumbnail', 'give' )
551
+						        'full' 		=> __('Full', 'give'),
552
+						        'large'   	=> __('Large', 'give'),
553
+						        'medium'    => __('Medium', 'give'),
554
+						        'thumbnail' => __('Thumbnail', 'give')
555 555
 						    ),
556 556
 						    'default' => 'full',
557 557
 						),
558 558
 						array(
559 559
 							'id'      => 'from_name',
560
-							'name'    => esc_html__( 'From Name', 'give' ),
561
-							'desc'    => esc_html__( 'The name donation receipts are said to come from. This is most likely the name of your organization or website.', 'give' ),
562
-							'default' => get_bloginfo( 'name' ),
560
+							'name'    => esc_html__('From Name', 'give'),
561
+							'desc'    => esc_html__('The name donation receipts are said to come from. This is most likely the name of your organization or website.', 'give'),
562
+							'default' => get_bloginfo('name'),
563 563
 							'type'    => 'text'
564 564
 						),
565 565
 						array(
566 566
 							'id'      => 'from_email',
567
-							'name'    => esc_html__( 'From Email', 'give' ),
568
-							'desc'    => esc_html__( 'Email to send donation receipts from. This will act as the "from" and "reply-to" address.', 'give' ),
569
-							'default' => get_bloginfo( 'admin_email' ),
567
+							'name'    => esc_html__('From Email', 'give'),
568
+							'desc'    => esc_html__('Email to send donation receipts from. This will act as the "from" and "reply-to" address.', 'give'),
569
+							'default' => get_bloginfo('admin_email'),
570 570
 							'type'    => 'text'
571 571
 						),
572 572
 						array(
573
-							'name' => esc_html__( 'Donation Receipt', 'give' ),
573
+							'name' => esc_html__('Donation Receipt', 'give'),
574 574
 							'desc' => '',
575 575
 							'id'   => 'give_title_email_settings_2',
576 576
 							'type' => 'give_title'
577 577
 						),
578 578
 						array(
579 579
 							'id'      => 'donation_subject',
580
-							'name'    => esc_html__( 'Donation Email Subject', 'give' ),
581
-							'desc'    => esc_html__( 'Enter the subject line for the donation receipt email.', 'give' ),
582
-							'default' => esc_attr__( 'Donation Receipt', 'give' ),
580
+							'name'    => esc_html__('Donation Email Subject', 'give'),
581
+							'desc'    => esc_html__('Enter the subject line for the donation receipt email.', 'give'),
582
+							'default' => esc_attr__('Donation Receipt', 'give'),
583 583
 							'type'    => 'text'
584 584
 						),
585 585
 						array(
586 586
 							'id'      => 'donation_receipt',
587
-							'name'    => esc_html__( 'Donation Receipt', 'give' ),
587
+							'name'    => esc_html__('Donation Receipt', 'give'),
588 588
 							/* translators: %s: emails tags list */
589
-							'desc'    => sprintf( __( 'Enter the email that is sent to users after completing a successful donation. HTML is accepted. Available template tags: %s', 'give' ), give_get_emails_tags_list() ) . '<br/>',
589
+							'desc'    => sprintf(__('Enter the email that is sent to users after completing a successful donation. HTML is accepted. Available template tags: %s', 'give'), give_get_emails_tags_list()).'<br/>',
590 590
 							'type'    => 'wysiwyg',
591 591
 							'default' => give_get_default_donation_receipt_email()
592 592
 						),
593 593
 						array(
594
-							'name' => esc_html__( 'New Donation Notification', 'give' ),
594
+							'name' => esc_html__('New Donation Notification', 'give'),
595 595
 							'desc' => '',
596 596
 							'id'   => 'give_title_email_settings_3',
597 597
 							'type' => 'give_title'
598 598
 						),
599 599
 						array(
600 600
 							'id'      => 'donation_notification_subject',
601
-							'name'    => esc_html__( 'Donation Notification Subject', 'give' ),
602
-							'desc'    => esc_html__( 'Enter the subject line for the donation notification email.', 'give' ),
601
+							'name'    => esc_html__('Donation Notification Subject', 'give'),
602
+							'desc'    => esc_html__('Enter the subject line for the donation notification email.', 'give'),
603 603
 							'type'    => 'text',
604
-							'default' => esc_attr__( 'New Donation - #{payment_id}', 'give' )
604
+							'default' => esc_attr__('New Donation - #{payment_id}', 'give')
605 605
 						),
606 606
 						array(
607 607
 							'id'      => 'donation_notification',
608
-							'name'    => esc_html__( 'Donation Notification', 'give' ),
608
+							'name'    => esc_html__('Donation Notification', 'give'),
609 609
 							/* translators: %s: emails tags list */
610
-							'desc'    => sprintf( __( 'Enter the email that is sent to donation notification emails after completion of a donation. HTML is accepted. Available template tags: %s', 'give' ), give_get_emails_tags_list() ) . '<br/>',
610
+							'desc'    => sprintf(__('Enter the email that is sent to donation notification emails after completion of a donation. HTML is accepted. Available template tags: %s', 'give'), give_get_emails_tags_list()).'<br/>',
611 611
 							'type'    => 'wysiwyg',
612 612
 							'default' => give_get_default_donation_notification_email()
613 613
 						),
614 614
 						array(
615 615
 							'id'      => 'admin_notice_emails',
616
-							'name'    => esc_html__( 'Donation Notification Emails', 'give' ),
617
-							'desc'    => __( 'Enter the email address(es) that should receive a notification anytime a donation is made, please only enter <span class="give-underline">one email address per line</span> and <strong>not separated by commas</strong>.', 'give' ),
616
+							'name'    => esc_html__('Donation Notification Emails', 'give'),
617
+							'desc'    => __('Enter the email address(es) that should receive a notification anytime a donation is made, please only enter <span class="give-underline">one email address per line</span> and <strong>not separated by commas</strong>.', 'give'),
618 618
 							'type'    => 'textarea',
619
-							'default' => get_bloginfo( 'admin_email' )
619
+							'default' => get_bloginfo('admin_email')
620 620
 						),
621 621
 						array(
622 622
 							'id'   => 'disable_admin_notices',
623
-							'name' => esc_html__( 'Disable Admin Notifications', 'give' ),
624
-							'desc' => esc_html__( 'Check this box if you do not want to receive emails when new donations are made.', 'give' ),
623
+							'name' => esc_html__('Disable Admin Notifications', 'give'),
624
+							'desc' => esc_html__('Check this box if you do not want to receive emails when new donations are made.', 'give'),
625 625
 							'type' => 'checkbox'
626 626
 						)
627 627
 					)
@@ -630,99 +630,99 @@  discard block
 block discarded – undo
630 630
 			/** Extension Settings */
631 631
 			'addons'      => array(
632 632
 				'id'         => 'addons',
633
-				'give_title' => esc_html__( 'Give Add-ons Settings', 'give' ),
634
-				'show_on'    => array( 'key' => 'options-page', 'value' => array( $this->key, ), ),
635
-				'fields'     => apply_filters( 'give_settings_addons', array()
633
+				'give_title' => esc_html__('Give Add-ons Settings', 'give'),
634
+				'show_on'    => array('key' => 'options-page', 'value' => array($this->key,),),
635
+				'fields'     => apply_filters('give_settings_addons', array()
636 636
 				)
637 637
 			),
638 638
 			/** Licenses Settings */
639 639
 			'licenses'    => array(
640 640
 				'id'         => 'licenses',
641
-				'give_title' => esc_html__( 'Give Licenses', 'give' ),
642
-				'show_on'    => array( 'key' => 'options-page', 'value' => array( $this->key, ), ),
643
-				'fields'     => apply_filters( 'give_settings_licenses', array()
641
+				'give_title' => esc_html__('Give Licenses', 'give'),
642
+				'show_on'    => array('key' => 'options-page', 'value' => array($this->key,),),
643
+				'fields'     => apply_filters('give_settings_licenses', array()
644 644
 				)
645 645
 			),
646 646
 			/** Advanced Options */
647 647
 			'advanced'    => array(
648 648
 				'id'         => 'advanced_options',
649
-				'give_title' => esc_html__( 'Advanced Options', 'give' ),
650
-				'show_on'    => array( 'key' => 'options-page', 'value' => array( $this->key, ), ),
651
-				'fields'     => apply_filters( 'give_settings_advanced', array(
649
+				'give_title' => esc_html__('Advanced Options', 'give'),
650
+				'show_on'    => array('key' => 'options-page', 'value' => array($this->key,),),
651
+				'fields'     => apply_filters('give_settings_advanced', array(
652 652
 						array(
653
-							'name' => esc_html__( 'Access Control', 'give' ),
653
+							'name' => esc_html__('Access Control', 'give'),
654 654
 							'desc' => '',
655 655
 							'id'   => 'give_title_session_control_1',
656 656
 							'type' => 'give_title'
657 657
 						),
658 658
 						array(
659 659
 							'id'      => 'session_lifetime',
660
-							'name'    => esc_html__( 'Session Lifetime', 'give' ),
661
-							'desc'    => esc_html__( 'Give will start a new session per user once they have donated. This option controls the lifetime a user\'s session is kept alive. An active session allows users to view donation receipts on your site without having to be logged in as long as they are using the same browser they used when donating.', 'give' ),
660
+							'name'    => esc_html__('Session Lifetime', 'give'),
661
+							'desc'    => esc_html__('Give will start a new session per user once they have donated. This option controls the lifetime a user\'s session is kept alive. An active session allows users to view donation receipts on your site without having to be logged in as long as they are using the same browser they used when donating.', 'give'),
662 662
 							'type'    => 'select',
663 663
 							'options' => array(
664
-								'86400'  => esc_html__( '24 Hours', 'give' ),
665
-								'172800' => esc_html__( '48 Hours', 'give' ),
666
-								'259200' => esc_html__( '72 Hours', 'give' ),
667
-								'604800' => esc_html__( '1 Week', 'give' ),
664
+								'86400'  => esc_html__('24 Hours', 'give'),
665
+								'172800' => esc_html__('48 Hours', 'give'),
666
+								'259200' => esc_html__('72 Hours', 'give'),
667
+								'604800' => esc_html__('1 Week', 'give'),
668 668
 							)
669 669
 						),
670 670
 						array(
671
-							'name' => esc_html__( 'Email Access', 'give' ),
672
-							'desc' => esc_html__( 'Would you like your donors to be able to access their donation history using only email? Donors whose sessions have expired and do not have an account may still access their donation history via a temporary email access link.', 'give' ),
671
+							'name' => esc_html__('Email Access', 'give'),
672
+							'desc' => esc_html__('Would you like your donors to be able to access their donation history using only email? Donors whose sessions have expired and do not have an account may still access their donation history via a temporary email access link.', 'give'),
673 673
 							'id'   => 'email_access',
674 674
 							'type' => 'checkbox',
675 675
 						),
676 676
 						array(
677 677
 							'id'      => 'recaptcha_key',
678
-							'name'    => esc_html__( 'reCAPTCHA Site Key', 'give' ),
678
+							'name'    => esc_html__('reCAPTCHA Site Key', 'give'),
679 679
 							/* translators: %s: https://www.google.com/recaptcha/ */
680
-							'desc'    => sprintf( __( 'If you would like to prevent spam on the email access form navigate to <a href="%s" target="_blank">the reCAPTCHA website</a> and sign up for an API key. The reCAPTCHA uses Google\'s user-friendly single click verification method.', 'give' ), esc_url( 'https://www.google.com/recaptcha/' ) ),
680
+							'desc'    => sprintf(__('If you would like to prevent spam on the email access form navigate to <a href="%s" target="_blank">the reCAPTCHA website</a> and sign up for an API key. The reCAPTCHA uses Google\'s user-friendly single click verification method.', 'give'), esc_url('https://www.google.com/recaptcha/')),
681 681
 							'default' => '',
682 682
 							'type'    => 'text'
683 683
 						),
684 684
 						array(
685 685
 							'id'      => 'recaptcha_secret',
686
-							'name'    => esc_html__( 'reCAPTCHA Secret Key', 'give' ),
687
-							'desc'    => esc_html__( 'Please paste the reCAPTCHA secret key here from your manage reCAPTCHA API Keys panel.', 'give' ),
686
+							'name'    => esc_html__('reCAPTCHA Secret Key', 'give'),
687
+							'desc'    => esc_html__('Please paste the reCAPTCHA secret key here from your manage reCAPTCHA API Keys panel.', 'give'),
688 688
 							'default' => '',
689 689
 							'type'    => 'text'
690 690
 						),
691 691
 						array(
692
-							'name' => esc_html__( 'Data Control', 'give' ),
692
+							'name' => esc_html__('Data Control', 'give'),
693 693
 							'desc' => '',
694 694
 							'id'   => 'give_title_data_control_2',
695 695
 							'type' => 'give_title'
696 696
 						),
697 697
 						array(
698
-							'name' => esc_html__( 'Remove All Data on Uninstall?', 'give' ),
699
-							'desc' => esc_html__( 'Check this box if you would like Give to completely remove all of its data when the plugin is deleted.', 'give' ),
698
+							'name' => esc_html__('Remove All Data on Uninstall?', 'give'),
699
+							'desc' => esc_html__('Check this box if you would like Give to completely remove all of its data when the plugin is deleted.', 'give'),
700 700
 							'id'   => 'uninstall_on_delete',
701 701
 							'type' => 'checkbox'
702 702
 						),
703 703
 						array(
704
-							'name' => esc_html__( 'Filter Control', 'give' ),
704
+							'name' => esc_html__('Filter Control', 'give'),
705 705
 							'desc' => '',
706 706
 							'id'   => 'give_title_filter_control',
707 707
 							'type' => 'give_title'
708 708
 						),
709 709
 						array(
710 710
 							/* translators: %s: the_content */
711
-							'name' => sprintf( __( 'Disable %s filter', 'give' ), '<code>the_content</code>' ),
711
+							'name' => sprintf(__('Disable %s filter', 'give'), '<code>the_content</code>'),
712 712
 							/* translators: 1: https://codex.wordpress.org/Plugin_API/Filter_Reference/the_content 2: the_content */
713
-							'desc' => sprintf( __( 'If you are seeing extra social buttons, related posts, or other unwanted elements appearing within your forms then you can disable WordPress\' content filter. <a href="%1$s" target="_blank">Learn more</a> about %2$s filter.', 'give' ), esc_url( 'https://codex.wordpress.org/Plugin_API/Filter_Reference/the_content' ), '<code>the_content</code>' ),
713
+							'desc' => sprintf(__('If you are seeing extra social buttons, related posts, or other unwanted elements appearing within your forms then you can disable WordPress\' content filter. <a href="%1$s" target="_blank">Learn more</a> about %2$s filter.', 'give'), esc_url('https://codex.wordpress.org/Plugin_API/Filter_Reference/the_content'), '<code>the_content</code>'),
714 714
 							'id'   => 'disable_the_content_filter',
715 715
 							'type' => 'checkbox'
716 716
 						),
717 717
 						array(
718
-							'name' => esc_html__( 'Script Loading', 'give' ),
718
+							'name' => esc_html__('Script Loading', 'give'),
719 719
 							'desc' => '',
720 720
 							'id'   => 'give_title_script_control',
721 721
 							'type' => 'give_title'
722 722
 						),
723 723
 						array(
724
-							'name' => esc_html__( 'Load Scripts in Footer?', 'give' ),
725
-							'desc' => esc_html__( 'Check this box if you would like Give to load all frontend JavaScript files in the footer.', 'give' ),
724
+							'name' => esc_html__('Load Scripts in Footer?', 'give'),
725
+							'desc' => esc_html__('Check this box if you would like Give to load all frontend JavaScript files in the footer.', 'give'),
726 726
 							'id'   => 'scripts_footer',
727 727
 							'type' => 'checkbox'
728 728
 						)
@@ -732,13 +732,13 @@  discard block
 block discarded – undo
732 732
 			/** API Settings */
733 733
 			'api'         => array(
734 734
 				'id'         => 'api',
735
-				'give_title' => esc_html__( 'API', 'give' ),
736
-				'show_on'    => array( 'key' => 'options-page', 'value' => array( $this->key, ), ),
735
+				'give_title' => esc_html__('API', 'give'),
736
+				'show_on'    => array('key' => 'options-page', 'value' => array($this->key,),),
737 737
 				'show_names' => false, // Hide field names on the left
738
-				'fields'     => apply_filters( 'give_settings_system', array(
738
+				'fields'     => apply_filters('give_settings_system', array(
739 739
 						array(
740 740
 							'id'   => 'api',
741
-							'name' => esc_html__( 'API', 'give' ),
741
+							'name' => esc_html__('API', 'give'),
742 742
 							'type' => 'api'
743 743
 						)
744 744
 					)
@@ -747,13 +747,13 @@  discard block
 block discarded – undo
747 747
 			/** Licenses Settings */
748 748
 			'system_info' => array(
749 749
 				'id'         => 'system_info',
750
-				'give_title' => esc_html__( 'System Info', 'give' ),
751
-				'show_on'    => array( 'key' => 'options-page', 'value' => array( $this->key, ), ),
752
-				'fields'     => apply_filters( 'give_settings_system', array(
750
+				'give_title' => esc_html__('System Info', 'give'),
751
+				'show_on'    => array('key' => 'options-page', 'value' => array($this->key,),),
752
+				'fields'     => apply_filters('give_settings_system', array(
753 753
 						array(
754 754
 							'id'   => 'system_info',
755
-							'name' => esc_html__( 'System Info', 'give' ),
756
-							'desc' => esc_html__( 'Please copy and paste this information in your ticket when contacting support.', 'give' ),
755
+							'name' => esc_html__('System Info', 'give'),
756
+							'desc' => esc_html__('Please copy and paste this information in your ticket when contacting support.', 'give'),
757 757
 							'type' => 'system_info'
758 758
 						)
759 759
 					)
@@ -762,15 +762,15 @@  discard block
 block discarded – undo
762 762
 		);
763 763
 
764 764
 		//Return all settings array if no active tab
765
-		if ( $active_tab === null || ! isset( $give_settings[ $active_tab ] ) ) {
765
+		if ($active_tab === null || ! isset($give_settings[$active_tab])) {
766 766
 
767
-			return apply_filters( 'give_registered_settings', $give_settings );
767
+			return apply_filters('give_registered_settings', $give_settings);
768 768
 
769 769
 		}
770 770
 
771 771
 
772 772
 		// Add other tabs and settings fields as needed
773
-		return apply_filters( 'give_registered_settings', $give_settings[ $active_tab ] );
773
+		return apply_filters('give_registered_settings', $give_settings[$active_tab]);
774 774
 
775 775
 	}
776 776
 
@@ -779,11 +779,11 @@  discard block
 block discarded – undo
779 779
 	 */
780 780
 	public function settings_notices() {
781 781
 
782
-		if ( ! isset( $_POST['give_settings_saved'] ) ) {
782
+		if ( ! isset($_POST['give_settings_saved'])) {
783 783
 			return;
784 784
 		}
785 785
 
786
-		add_settings_error( 'give-notices', 'global-settings-updated', esc_html__( 'Settings updated.', 'give' ), 'updated' );
786
+		add_settings_error('give-notices', 'global-settings-updated', esc_html__('Settings updated.', 'give'), 'updated');
787 787
 
788 788
 	}
789 789
 
@@ -797,17 +797,17 @@  discard block
 block discarded – undo
797 797
 	 *
798 798
 	 * @return mixed          Field value or exception is thrown
799 799
 	 */
800
-	public function __get( $field ) {
800
+	public function __get($field) {
801 801
 
802 802
 		// Allowed fields to retrieve
803
-		if ( in_array( $field, array( 'key', 'fields', 'give_title', 'options_page' ), true ) ) {
803
+		if (in_array($field, array('key', 'fields', 'give_title', 'options_page'), true)) {
804 804
 			return $this->{$field};
805 805
 		}
806
-		if ( 'option_metabox' === $field ) {
806
+		if ('option_metabox' === $field) {
807 807
 			return $this->option_metabox();
808 808
 		}
809 809
 
810
-		throw new Exception( 'Invalid property: ' . $field );
810
+		throw new Exception('Invalid property: '.$field);
811 811
 	}
812 812
 
813 813
 
@@ -825,12 +825,12 @@  discard block
 block discarded – undo
825 825
  *
826 826
  * @return mixed        Option value
827 827
  */
828
-function give_get_option( $key = '', $default = false ) {
828
+function give_get_option($key = '', $default = false) {
829 829
 	global $give_options;
830
-	$value = ! empty( $give_options[ $key ] ) ? $give_options[ $key ] : $default;
831
-	$value = apply_filters( 'give_get_option', $value, $key, $default );
830
+	$value = ! empty($give_options[$key]) ? $give_options[$key] : $default;
831
+	$value = apply_filters('give_get_option', $value, $key, $default);
832 832
 
833
-	return apply_filters( 'give_get_option_' . $key, $value, $key, $default );
833
+	return apply_filters('give_get_option_'.$key, $value, $key, $default);
834 834
 }
835 835
 
836 836
 
@@ -848,33 +848,33 @@  discard block
 block discarded – undo
848 848
  *
849 849
  * @return boolean True if updated, false if not.
850 850
  */
851
-function give_update_option( $key = '', $value = false ) {
851
+function give_update_option($key = '', $value = false) {
852 852
 
853 853
 	// If no key, exit
854
-	if ( empty( $key ) ) {
854
+	if (empty($key)) {
855 855
 		return false;
856 856
 	}
857 857
 
858
-	if ( empty( $value ) ) {
859
-		$remove_option = give_delete_option( $key );
858
+	if (empty($value)) {
859
+		$remove_option = give_delete_option($key);
860 860
 
861 861
 		return $remove_option;
862 862
 	}
863 863
 
864 864
 	// First let's grab the current settings
865
-	$options = get_option( 'give_settings' );
865
+	$options = get_option('give_settings');
866 866
 
867 867
 	// Let's let devs alter that value coming in
868
-	$value = apply_filters( 'give_update_option', $value, $key );
868
+	$value = apply_filters('give_update_option', $value, $key);
869 869
 
870 870
 	// Next let's try to update the value
871
-	$options[ $key ] = $value;
872
-	$did_update      = update_option( 'give_settings', $options );
871
+	$options[$key] = $value;
872
+	$did_update      = update_option('give_settings', $options);
873 873
 
874 874
 	// If it updated, let's update the global variable
875
-	if ( $did_update ) {
875
+	if ($did_update) {
876 876
 		global $give_options;
877
-		$give_options[ $key ] = $value;
877
+		$give_options[$key] = $value;
878 878
 	}
879 879
 
880 880
 	return $did_update;
@@ -891,27 +891,27 @@  discard block
 block discarded – undo
891 891
  *
892 892
  * @return boolean True if updated, false if not.
893 893
  */
894
-function give_delete_option( $key = '' ) {
894
+function give_delete_option($key = '') {
895 895
 
896 896
 	// If no key, exit
897
-	if ( empty( $key ) ) {
897
+	if (empty($key)) {
898 898
 		return false;
899 899
 	}
900 900
 
901 901
 	// First let's grab the current settings
902
-	$options = get_option( 'give_settings' );
902
+	$options = get_option('give_settings');
903 903
 
904 904
 	// Next let's try to update the value
905
-	if ( isset( $options[ $key ] ) ) {
905
+	if (isset($options[$key])) {
906 906
 
907
-		unset( $options[ $key ] );
907
+		unset($options[$key]);
908 908
 
909 909
 	}
910 910
 
911
-	$did_update = update_option( 'give_settings', $options );
911
+	$did_update = update_option('give_settings', $options);
912 912
 
913 913
 	// If it updated, let's update the global variable
914
-	if ( $did_update ) {
914
+	if ($did_update) {
915 915
 		global $give_options;
916 916
 		$give_options = $options;
917 917
 	}
@@ -930,9 +930,9 @@  discard block
 block discarded – undo
930 930
  */
931 931
 function give_get_settings() {
932 932
 
933
-	$settings = get_option( 'give_settings' );
933
+	$settings = get_option('give_settings');
934 934
 
935
-	return (array) apply_filters( 'give_get_settings', $settings );
935
+	return (array) apply_filters('give_get_settings', $settings);
936 936
 
937 937
 }
938 938
 
@@ -950,25 +950,25 @@  discard block
 block discarded – undo
950 950
  *
951 951
  * @return array
952 952
  */
953
-function give_settings_array_insert( $array, $position, $insert ) {
954
-	if ( is_int( $position ) ) {
955
-		array_splice( $array, $position, 0, $insert );
953
+function give_settings_array_insert($array, $position, $insert) {
954
+	if (is_int($position)) {
955
+		array_splice($array, $position, 0, $insert);
956 956
 	} else {
957 957
 
958
-		foreach ( $array as $index => $subarray ) {
959
-			if ( isset( $subarray['id'] ) && $subarray['id'] == $position ) {
958
+		foreach ($array as $index => $subarray) {
959
+			if (isset($subarray['id']) && $subarray['id'] == $position) {
960 960
 				$pos = $index;
961 961
 			}
962 962
 		}
963 963
 
964
-		if ( ! isset( $pos ) ) {
964
+		if ( ! isset($pos)) {
965 965
 			return $array;
966 966
 		}
967 967
 
968 968
 		$array = array_merge(
969
-			array_slice( $array, 0, $pos ),
969
+			array_slice($array, 0, $pos),
970 970
 			$insert,
971
-			array_slice( $array, $pos )
971
+			array_slice($array, $pos)
972 972
 		);
973 973
 	}
974 974
 
@@ -991,31 +991,31 @@  discard block
 block discarded – undo
991 991
  *
992 992
  * @return void
993 993
  */
994
-function give_enabled_gateways_callback( $field_object, $escaped_value, $object_id, $object_type, $field_type_object ) {
994
+function give_enabled_gateways_callback($field_object, $escaped_value, $object_id, $object_type, $field_type_object) {
995 995
 
996 996
 	$id                = $field_type_object->field->args['id'];
997 997
 	$field_description = $field_type_object->field->args['desc'];
998
-	$gateways          = give_get_ordered_payment_gateways( give_get_payment_gateways() );
998
+	$gateways          = give_get_ordered_payment_gateways(give_get_payment_gateways());
999 999
 
1000 1000
 	echo '<ul class="cmb2-checkbox-list cmb2-list">';
1001 1001
 
1002
-	foreach ( $gateways as $key => $option ) :
1002
+	foreach ($gateways as $key => $option) :
1003 1003
 
1004
-		if ( is_array( $escaped_value ) && array_key_exists( $key, $escaped_value ) ) {
1004
+		if (is_array($escaped_value) && array_key_exists($key, $escaped_value)) {
1005 1005
 			$enabled = '1';
1006 1006
 		} else {
1007 1007
 			$enabled = null;
1008 1008
 		}
1009 1009
 
1010
-		echo '<li><span class="give-drag-handle"><span class="dashicons dashicons-menu"></span></span><input name="' . $id . '[' . $key . ']" id="' . $id . '[' . $key . ']" type="checkbox" value="1" ' . checked( '1', $enabled, false ) . '/>&nbsp;';
1011
-		echo '<label for="' . $id . '[' . $key . ']">' . $option['admin_label'] . '</label></li>';
1010
+		echo '<li><span class="give-drag-handle"><span class="dashicons dashicons-menu"></span></span><input name="'.$id.'['.$key.']" id="'.$id.'['.$key.']" type="checkbox" value="1" '.checked('1', $enabled, false).'/>&nbsp;';
1011
+		echo '<label for="'.$id.'['.$key.']">'.$option['admin_label'].'</label></li>';
1012 1012
 
1013 1013
 	endforeach;
1014 1014
 
1015 1015
 	echo '</ul>';
1016 1016
 
1017
-	if ( $field_description ) {
1018
-		echo '<p class="cmb2-metabox-description">' . $field_description . '</p>';
1017
+	if ($field_description) {
1018
+		echo '<p class="cmb2-metabox-description">'.$field_description.'</p>';
1019 1019
 	}
1020 1020
 
1021 1021
 }
@@ -1031,31 +1031,31 @@  discard block
 block discarded – undo
1031 1031
  *
1032 1032
  * @return void
1033 1033
  */
1034
-function give_default_gateway_callback( $field_object, $escaped_value, $object_id, $object_type, $field_type_object ) {
1034
+function give_default_gateway_callback($field_object, $escaped_value, $object_id, $object_type, $field_type_object) {
1035 1035
 
1036 1036
 	$id                = $field_type_object->field->args['id'];
1037 1037
 	$field_description = $field_type_object->field->args['desc'];
1038 1038
 	$gateways          = give_get_enabled_payment_gateways();
1039 1039
 
1040
-	echo '<select class="cmb2_select" name="' . $id . '" id="' . $id . '">';
1040
+	echo '<select class="cmb2_select" name="'.$id.'" id="'.$id.'">';
1041 1041
 
1042 1042
 	//Add a field to the Give Form admin single post view of this field
1043
-	if ( $field_type_object->field->object_type === 'post' ) {
1044
-		echo '<option value="global">' . esc_html__( 'Global Default', 'give' ) . '</option>';
1043
+	if ($field_type_object->field->object_type === 'post') {
1044
+		echo '<option value="global">'.esc_html__('Global Default', 'give').'</option>';
1045 1045
 	}
1046 1046
 
1047
-	foreach ( $gateways as $key => $option ) :
1047
+	foreach ($gateways as $key => $option) :
1048 1048
 
1049
-		$selected = isset( $escaped_value ) ? selected( $key, $escaped_value, false ) : '';
1049
+		$selected = isset($escaped_value) ? selected($key, $escaped_value, false) : '';
1050 1050
 
1051 1051
 
1052
-		echo '<option value="' . esc_attr( $key ) . '"' . $selected . '>' . esc_html( $option['admin_label'] ) . '</option>';
1052
+		echo '<option value="'.esc_attr($key).'"'.$selected.'>'.esc_html($option['admin_label']).'</option>';
1053 1053
 
1054 1054
 	endforeach;
1055 1055
 
1056 1056
 	echo '</select>';
1057 1057
 
1058
-	echo '<p class="cmb2-metabox-description">' . $field_description . '</p>';
1058
+	echo '<p class="cmb2-metabox-description">'.$field_description.'</p>';
1059 1059
 
1060 1060
 }
1061 1061
 
@@ -1070,13 +1070,13 @@  discard block
 block discarded – undo
1070 1070
  *
1071 1071
  * @return void
1072 1072
  */
1073
-function give_title_callback( $field_object, $escaped_value, $object_id, $object_type, $field_type_object ) {
1073
+function give_title_callback($field_object, $escaped_value, $object_id, $object_type, $field_type_object) {
1074 1074
 
1075 1075
 	$id                = $field_type_object->field->args['id'];
1076 1076
 	$title             = $field_type_object->field->args['name'];
1077 1077
 	$field_description = $field_type_object->field->args['desc'];
1078 1078
 
1079
-	echo '<hr>' . $field_description;
1079
+	echo '<hr>'.$field_description;
1080 1080
 
1081 1081
 }
1082 1082
 
@@ -1091,7 +1091,7 @@  discard block
 block discarded – undo
1091 1091
  *
1092 1092
  * @return void
1093 1093
  */
1094
-function give_description_callback( $field_object, $escaped_value, $object_id, $object_type, $field_type_object ) {
1094
+function give_description_callback($field_object, $escaped_value, $object_id, $object_type, $field_type_object) {
1095 1095
 
1096 1096
 	$id                = $field_type_object->field->args['id'];
1097 1097
 	$title             = $field_type_object->field->args['name'];
@@ -1111,25 +1111,25 @@  discard block
 block discarded – undo
1111 1111
  * @see: https://github.com/WebDevStudios/CMB2/wiki/Adding-your-own-field-types
1112 1112
  * @return array An array of options that matches the CMB2 options array
1113 1113
  */
1114
-function give_cmb2_get_post_options( $query_args, $force = false ) {
1114
+function give_cmb2_get_post_options($query_args, $force = false) {
1115 1115
 
1116
-	$post_options = array( '' => '' ); // Blank option
1116
+	$post_options = array('' => ''); // Blank option
1117 1117
 
1118
-	if ( ( ! isset( $_GET['page'] ) || 'give-settings' != $_GET['page'] ) && ! $force ) {
1118
+	if (( ! isset($_GET['page']) || 'give-settings' != $_GET['page']) && ! $force) {
1119 1119
 		return $post_options;
1120 1120
 	}
1121 1121
 
1122
-	$args = wp_parse_args( $query_args, array(
1122
+	$args = wp_parse_args($query_args, array(
1123 1123
 		'post_type'   => 'page',
1124 1124
 		'numberposts' => 10,
1125
-	) );
1125
+	));
1126 1126
 
1127
-	$posts = get_posts( $args );
1127
+	$posts = get_posts($args);
1128 1128
 
1129
-	if ( $posts ) {
1130
-		foreach ( $posts as $post ) {
1129
+	if ($posts) {
1130
+		foreach ($posts as $post) {
1131 1131
 
1132
-			$post_options[ $post->ID ] = $post->post_title;
1132
+			$post_options[$post->ID] = $post->post_title;
1133 1133
 
1134 1134
 		}
1135 1135
 	}
@@ -1149,17 +1149,17 @@  discard block
 block discarded – undo
1149 1149
 	global $_wp_additional_image_sizes;
1150 1150
 	$sizes = array();
1151 1151
 
1152
-	foreach ( get_intermediate_image_sizes() as $_size ) {
1152
+	foreach (get_intermediate_image_sizes() as $_size) {
1153 1153
 
1154
-		if ( in_array( $_size, array( 'thumbnail', 'medium', 'medium_large', 'large' ) ) ) {
1155
-			$sizes[ $_size ] = $_size . ' - ' . get_option( "{$_size}_size_w" ) . 'x' . get_option( "{$_size}_size_h" );
1156
-		} elseif ( isset( $_wp_additional_image_sizes[ $_size ] ) ) {
1157
-			$sizes[ $_size ] = $_size . ' - ' . $_wp_additional_image_sizes[ $_size ]['width'] . 'x' . $_wp_additional_image_sizes[ $_size ]['height'];
1154
+		if (in_array($_size, array('thumbnail', 'medium', 'medium_large', 'large'))) {
1155
+			$sizes[$_size] = $_size.' - '.get_option("{$_size}_size_w").'x'.get_option("{$_size}_size_h");
1156
+		} elseif (isset($_wp_additional_image_sizes[$_size])) {
1157
+			$sizes[$_size] = $_size.' - '.$_wp_additional_image_sizes[$_size]['width'].'x'.$_wp_additional_image_sizes[$_size]['height'];
1158 1158
 		}
1159 1159
 
1160 1160
 	}
1161 1161
 
1162
-	return apply_filters( 'give_get_featured_image_sizes', $sizes );
1162
+	return apply_filters('give_get_featured_image_sizes', $sizes);
1163 1163
 }
1164 1164
 
1165 1165
 
@@ -1174,34 +1174,34 @@  discard block
 block discarded – undo
1174 1174
  *
1175 1175
  * @return void
1176 1176
  */
1177
-function give_license_key_callback( $field_object, $escaped_value, $object_id, $object_type, $field_type_object ) {
1177
+function give_license_key_callback($field_object, $escaped_value, $object_id, $object_type, $field_type_object) {
1178 1178
 
1179 1179
 	$id                = $field_type_object->field->args['id'];
1180 1180
 	$field_description = $field_type_object->field->args['desc'];
1181
-	$license_status    = get_option( $field_type_object->field->args['options']['is_valid_license_option'] );
1181
+	$license_status    = get_option($field_type_object->field->args['options']['is_valid_license_option']);
1182 1182
 	$field_classes     = 'regular-text give-license-field';
1183
-	$type              = empty( $escaped_value ) ? 'text' : 'password';
1183
+	$type              = empty($escaped_value) ? 'text' : 'password';
1184 1184
 
1185
-	if ( $license_status === 'valid' ) {
1185
+	if ($license_status === 'valid') {
1186 1186
 		$field_classes .= ' give-license-active';
1187 1187
 	}
1188 1188
 
1189
-	$html = $field_type_object->input( array(
1189
+	$html = $field_type_object->input(array(
1190 1190
 		'class' => $field_classes,
1191 1191
 		'type'  => $type
1192
-	) );
1192
+	));
1193 1193
 
1194 1194
 	//License is active so show deactivate button
1195
-	if ( $license_status === 'valid' ) {
1196
-		$html .= '<input type="submit" class="button-secondary give-license-deactivate" name="' . $id . '_deactivate" value="' . esc_attr__( 'Deactivate License', 'give' ) . '"/>';
1195
+	if ($license_status === 'valid') {
1196
+		$html .= '<input type="submit" class="button-secondary give-license-deactivate" name="'.$id.'_deactivate" value="'.esc_attr__('Deactivate License', 'give').'"/>';
1197 1197
 	} else {
1198 1198
 		//This license is not valid so delete it
1199
-		give_delete_option( $id );
1199
+		give_delete_option($id);
1200 1200
 	}
1201 1201
 
1202
-	$html .= '<label for="give_settings[' . $id . ']"> ' . $field_description . '</label>';
1202
+	$html .= '<label for="give_settings['.$id.']"> '.$field_description.'</label>';
1203 1203
 
1204
-	wp_nonce_field( $id . '-nonce', $id . '-nonce' );
1204
+	wp_nonce_field($id.'-nonce', $id.'-nonce');
1205 1205
 
1206 1206
 	echo $html;
1207 1207
 }
@@ -1215,7 +1215,7 @@  discard block
 block discarded – undo
1215 1215
  */
1216 1216
 function give_api_callback() {
1217 1217
 
1218
-	if ( ! current_user_can( 'manage_give_settings' ) ) {
1218
+	if ( ! current_user_can('manage_give_settings')) {
1219 1219
 		return;
1220 1220
 	}
1221 1221
 
@@ -1224,9 +1224,9 @@  discard block
 block discarded – undo
1224 1224
 	 *
1225 1225
 	 * @since 1.0
1226 1226
 	 */
1227
-	do_action( 'give_tools_api_keys_before' );
1227
+	do_action('give_tools_api_keys_before');
1228 1228
 
1229
-	require_once GIVE_PLUGIN_DIR . 'includes/admin/class-api-keys-table.php';
1229
+	require_once GIVE_PLUGIN_DIR.'includes/admin/class-api-keys-table.php';
1230 1230
 
1231 1231
 	$api_keys_table = new Give_API_Keys_Table();
1232 1232
 	$api_keys_table->prepare_items();
@@ -1235,9 +1235,9 @@  discard block
 block discarded – undo
1235 1235
 	<span class="cmb2-metabox-description api-description">
1236 1236
 		<?php echo sprintf(
1237 1237
 		/* translators: 1: https://givewp.com/documentation/give-api-reference/ 2: https://givewp.com/addons/zapier/ */
1238
-			__( 'You can create API keys for individual users within their profile edit screen. API keys allow users to use the <a href="%1$s" target="_blank">Give REST API</a> to retrieve donation data in JSON or XML for external applications or devices, such as <a href="%2$s" target="_blank">Zapier</a>.', 'give' ),
1239
-			esc_url( 'https://givewp.com/documentation/give-api-reference/' ),
1240
-			esc_url( 'https://givewp.com/addons/zapier/' )
1238
+			__('You can create API keys for individual users within their profile edit screen. API keys allow users to use the <a href="%1$s" target="_blank">Give REST API</a> to retrieve donation data in JSON or XML for external applications or devices, such as <a href="%2$s" target="_blank">Zapier</a>.', 'give'),
1239
+			esc_url('https://givewp.com/documentation/give-api-reference/'),
1240
+			esc_url('https://givewp.com/addons/zapier/')
1241 1241
 		); ?>
1242 1242
 	</span>
1243 1243
 	<?php
@@ -1247,10 +1247,10 @@  discard block
 block discarded – undo
1247 1247
 	 *
1248 1248
 	 * @since 1.0
1249 1249
 	 */
1250
-	do_action( 'give_tools_api_keys_after' );
1250
+	do_action('give_tools_api_keys_after');
1251 1251
 }
1252 1252
 
1253
-add_action( 'give_settings_tab_api_keys', 'give_api_callback' );
1253
+add_action('give_settings_tab_api_keys', 'give_api_callback');
1254 1254
 
1255 1255
 /**
1256 1256
  * Hook Callback
@@ -1263,8 +1263,8 @@  discard block
 block discarded – undo
1263 1263
  *
1264 1264
  * @return void
1265 1265
  */
1266
-function give_hook_callback( $args ) {
1267
-	do_action( 'give_' . $args['id'] );
1266
+function give_hook_callback($args) {
1267
+	do_action('give_'.$args['id']);
1268 1268
 }
1269 1269
 
1270 1270
 /**
@@ -1275,10 +1275,10 @@  discard block
 block discarded – undo
1275 1275
  * This prevents fatal error conflicts with other themes and users of the CMB2 WP.org plugin.
1276 1276
  */
1277 1277
 
1278
-if ( file_exists( WP_PLUGIN_DIR . '/cmb2/init.php' ) && ! defined( 'CMB2_LOADED' ) ) {
1279
-	require_once WP_PLUGIN_DIR . '/cmb2/init.php';
1280
-} elseif ( file_exists( GIVE_PLUGIN_DIR . '/includes/libraries/cmb2/init.php' ) && ! defined( 'CMB2_LOADED' ) ) {
1281
-	require_once GIVE_PLUGIN_DIR . '/includes/libraries/cmb2/init.php';
1282
-} elseif ( file_exists( GIVE_PLUGIN_DIR . '/includes/libraries/CMB2/init.php' ) && ! defined( 'CMB2_LOADED' ) ) {
1283
-	require_once GIVE_PLUGIN_DIR . '/includes/libraries/CMB2/init.php';
1278
+if (file_exists(WP_PLUGIN_DIR.'/cmb2/init.php') && ! defined('CMB2_LOADED')) {
1279
+	require_once WP_PLUGIN_DIR.'/cmb2/init.php';
1280
+} elseif (file_exists(GIVE_PLUGIN_DIR.'/includes/libraries/cmb2/init.php') && ! defined('CMB2_LOADED')) {
1281
+	require_once GIVE_PLUGIN_DIR.'/includes/libraries/cmb2/init.php';
1282
+} elseif (file_exists(GIVE_PLUGIN_DIR.'/includes/libraries/CMB2/init.php') && ! defined('CMB2_LOADED')) {
1283
+	require_once GIVE_PLUGIN_DIR.'/includes/libraries/CMB2/init.php';
1284 1284
 }
Please login to merge, or discard this patch.