Test Failed
Push — master ( 35678a...7fea6f )
by Devin
07:20
created
uninstall.php 1 patch
Spacing   +46 added lines, -46 removed lines patch added patch discarded remove patch
@@ -10,61 +10,61 @@  discard block
 block discarded – undo
10 10
  */
11 11
 
12 12
 // Exit if accessed directly.
13
-if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
13
+if ( ! defined('WP_UNINSTALL_PLUGIN')) {
14 14
 	exit;
15 15
 }
16 16
 
17 17
 // Load Give file.
18
-include_once( 'give.php' );
18
+include_once('give.php');
19 19
 
20 20
 global $wpdb, $wp_roles;
21 21
 
22 22
 
23
-if ( give_is_setting_enabled( give_get_option( 'uninstall_on_delete' ) ) ) {
23
+if (give_is_setting_enabled(give_get_option('uninstall_on_delete'))) {
24 24
 
25 25
 	// Delete All the Custom Post Types.
26
-	$give_taxonomies = array( 'form_category', 'form_tag' );
27
-	$give_post_types = array( 'give_forms', 'give_payment' );
28
-	foreach ( $give_post_types as $post_type ) {
26
+	$give_taxonomies = array('form_category', 'form_tag');
27
+	$give_post_types = array('give_forms', 'give_payment');
28
+	foreach ($give_post_types as $post_type) {
29 29
 
30
-		$give_taxonomies = array_merge( $give_taxonomies, get_object_taxonomies( $post_type ) );
31
-		$items           = get_posts( array(
30
+		$give_taxonomies = array_merge($give_taxonomies, get_object_taxonomies($post_type));
31
+		$items           = get_posts(array(
32 32
 			'post_type'   => $post_type,
33 33
 			'post_status' => 'any',
34
-			'numberposts' => - 1,
34
+			'numberposts' => -1,
35 35
 			'fields'      => 'ids',
36
-		) );
36
+		));
37 37
 
38
-		if ( $items ) {
39
-			foreach ( $items as $item ) {
40
-				wp_delete_post( $item, true );
38
+		if ($items) {
39
+			foreach ($items as $item) {
40
+				wp_delete_post($item, true);
41 41
 			}
42 42
 		}
43 43
 	}
44 44
 
45 45
 	// Delete All the Terms & Taxonomies.
46
-	foreach ( array_unique( array_filter( $give_taxonomies ) ) as $taxonomy ) {
46
+	foreach (array_unique(array_filter($give_taxonomies)) as $taxonomy) {
47 47
 
48
-		$terms = $wpdb->get_results( $wpdb->prepare( "SELECT t.*, tt.* FROM $wpdb->terms AS t INNER JOIN $wpdb->term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy IN ('%s') ORDER BY t.name ASC", $taxonomy ) );
48
+		$terms = $wpdb->get_results($wpdb->prepare("SELECT t.*, tt.* FROM $wpdb->terms AS t INNER JOIN $wpdb->term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy IN ('%s') ORDER BY t.name ASC", $taxonomy));
49 49
 
50 50
 		// Delete Terms.
51
-		if ( $terms ) {
52
-			foreach ( $terms as $term ) {
53
-				$wpdb->delete( $wpdb->term_taxonomy, array( 'term_taxonomy_id' => $term->term_taxonomy_id ) );
54
-				$wpdb->delete( $wpdb->terms, array( 'term_id' => $term->term_id ) );
51
+		if ($terms) {
52
+			foreach ($terms as $term) {
53
+				$wpdb->delete($wpdb->term_taxonomy, array('term_taxonomy_id' => $term->term_taxonomy_id));
54
+				$wpdb->delete($wpdb->terms, array('term_id' => $term->term_id));
55 55
 			}
56 56
 		}
57 57
 
58 58
 		// Delete Taxonomies.
59
-		$wpdb->delete( $wpdb->term_taxonomy, array( 'taxonomy' => $taxonomy ), array( '%s' ) );
59
+		$wpdb->delete($wpdb->term_taxonomy, array('taxonomy' => $taxonomy), array('%s'));
60 60
 	}
61 61
 
62 62
 	// Delete the Plugin Pages.
63
-	$give_created_pages = array( 'success_page', 'failure_page', 'history_page' );
64
-	foreach ( $give_created_pages as $p ) {
65
-		$page = give_get_option( $p, false );
66
-		if ( $page ) {
67
-			wp_delete_post( $page, true );
63
+	$give_created_pages = array('success_page', 'failure_page', 'history_page');
64
+	foreach ($give_created_pages as $p) {
65
+		$page = give_get_option($p, false);
66
+		if ($page) {
67
+			wp_delete_post($page, true);
68 68
 		}
69 69
 	}
70 70
 
@@ -73,27 +73,27 @@  discard block
 block discarded – undo
73 73
 	Give()->roles->remove_caps();
74 74
 
75 75
 	// Delete the Roles.
76
-	$give_roles = array( 'give_manager', 'give_accountant', 'give_worker', 'give_donor' );
77
-	foreach ( $give_roles as $role ) {
78
-		remove_role( $role );
76
+	$give_roles = array('give_manager', 'give_accountant', 'give_worker', 'give_donor');
77
+	foreach ($give_roles as $role) {
78
+		remove_role($role);
79 79
 	}
80 80
 
81 81
 	// Remove all database tables.
82
-	$wpdb->query( 'DROP TABLE IF EXISTS ' . $wpdb->prefix . 'give_donors' );
83
-	$wpdb->query( 'DROP TABLE IF EXISTS ' . $wpdb->prefix . 'give_donormeta' );
84
-	$wpdb->query( 'DROP TABLE IF EXISTS ' . $wpdb->prefix . 'give_customers' );
85
-	$wpdb->query( 'DROP TABLE IF EXISTS ' . $wpdb->prefix . 'give_customermeta' );
86
-	$wpdb->query( 'DROP TABLE IF EXISTS ' . $wpdb->prefix . 'give_paymentmeta' );
87
-	$wpdb->query( 'DROP TABLE IF EXISTS ' . $wpdb->prefix . 'give_formmeta' );
88
-	$wpdb->query( 'DROP TABLE IF EXISTS ' . $wpdb->prefix . 'give_logs' );
89
-	$wpdb->query( 'DROP TABLE IF EXISTS ' . $wpdb->prefix . 'give_logmeta' );
90
-	$wpdb->query( 'DROP TABLE IF EXISTS ' . $wpdb->prefix . 'give_sequential_ordering' );
82
+	$wpdb->query('DROP TABLE IF EXISTS '.$wpdb->prefix.'give_donors');
83
+	$wpdb->query('DROP TABLE IF EXISTS '.$wpdb->prefix.'give_donormeta');
84
+	$wpdb->query('DROP TABLE IF EXISTS '.$wpdb->prefix.'give_customers');
85
+	$wpdb->query('DROP TABLE IF EXISTS '.$wpdb->prefix.'give_customermeta');
86
+	$wpdb->query('DROP TABLE IF EXISTS '.$wpdb->prefix.'give_paymentmeta');
87
+	$wpdb->query('DROP TABLE IF EXISTS '.$wpdb->prefix.'give_formmeta');
88
+	$wpdb->query('DROP TABLE IF EXISTS '.$wpdb->prefix.'give_logs');
89
+	$wpdb->query('DROP TABLE IF EXISTS '.$wpdb->prefix.'give_logmeta');
90
+	$wpdb->query('DROP TABLE IF EXISTS '.$wpdb->prefix.'give_sequential_ordering');
91 91
 
92 92
 	// Cleanup Cron Events.
93
-	wp_clear_scheduled_hook( 'give_daily_scheduled_events' );
94
-	wp_clear_scheduled_hook( 'give_weekly_scheduled_events' );
95
-	wp_clear_scheduled_hook( 'give_daily_cron' );
96
-	wp_clear_scheduled_hook( 'give_weekly_cron' );
93
+	wp_clear_scheduled_hook('give_daily_scheduled_events');
94
+	wp_clear_scheduled_hook('give_weekly_scheduled_events');
95
+	wp_clear_scheduled_hook('give_daily_cron');
96
+	wp_clear_scheduled_hook('give_weekly_cron');
97 97
 
98 98
 	// Get all options.
99 99
 	$give_option_names = $wpdb->get_col(
@@ -103,16 +103,16 @@  discard block
 block discarded – undo
103 103
 		)
104 104
 	);
105 105
 
106
-	if ( ! empty( $give_option_names ) ) {
106
+	if ( ! empty($give_option_names)) {
107 107
 		// Convert option name to transient or option name.
108 108
 		$new_give_option_names = array();
109 109
 
110 110
 		// Delete all the Plugin Options.
111
-		foreach ( $give_option_names as $option ) {
112
-			if ( false !== strpos( $option, 'give_cache' ) ) {
113
-				Give_Cache::delete( $option );
111
+		foreach ($give_option_names as $option) {
112
+			if (false !== strpos($option, 'give_cache')) {
113
+				Give_Cache::delete($option);
114 114
 			} else {
115
-				delete_option( $option );
115
+				delete_option($option);
116 116
 			}
117 117
 		}
118 118
 	}
Please login to merge, or discard this patch.
templates/history-donations.php 2 patches
Braces   +8 added lines, -3 removed lines patch added patch discarded remove patch
@@ -190,7 +190,8 @@  discard block
 block discarded – undo
190 190
 								esc_html( $table_headings['details'] )
191 191
 							);
192 192
 
193
-						else :
193
+						else {
194
+							:
194 195
 							echo sprintf(
195 196
 								'<span class="title-for-mobile">%3$s</span><a href="%1$s">%2$s</a>',
196 197
 								esc_url(
@@ -203,6 +204,7 @@  discard block
 block discarded – undo
203 204
 								__( 'View Receipt &raquo;', 'give' ),
204 205
 								esc_html( $table_headings['details'] )
205 206
 							);
207
+						}
206 208
 
207 209
 						endif;
208 210
 						?>
@@ -247,6 +249,9 @@  discard block
 block discarded – undo
247 249
 		</div>
248 250
 	</div>
249 251
 	<?php wp_reset_postdata(); ?>
250
-<?php else : ?>
251
-	<?php Give()->notices->print_frontend_notice( __( 'It looks like you haven\'t made any donations.', 'give' ), true, 'success' ); ?>
252
+<?php else {
253
+	: ?>
254
+	<?php Give()->notices->print_frontend_notice( __( 'It looks like you haven\'t made any donations.', 'give' ), true, 'success' );
255
+}
256
+?>
252 257
 <?php endif;
Please login to merge, or discard this patch.
Spacing   +66 added lines, -66 removed lines patch added patch discarded remove patch
@@ -4,28 +4,28 @@  discard block
 block discarded – undo
4 4
  */
5 5
 
6 6
 $donations             = array();
7
-$donation_history_args = Give()->session->get( 'give_donation_history_args' );
7
+$donation_history_args = Give()->session->get('give_donation_history_args');
8 8
 
9 9
 // User's Donations.
10
-if ( is_user_logged_in() ) {
11
-	$donations = give_get_users_donations( get_current_user_id(), 20, true, 'any' );
12
-} elseif ( Give()->email_access->token_exists ) {
10
+if (is_user_logged_in()) {
11
+	$donations = give_get_users_donations(get_current_user_id(), 20, true, 'any');
12
+} elseif (Give()->email_access->token_exists) {
13 13
 	// Email Access Token?
14
-	$donations = give_get_users_donations( 0, 20, true, 'any' );
14
+	$donations = give_get_users_donations(0, 20, true, 'any');
15 15
 } elseif (
16 16
 	false !== Give()->session->get_session_expiration() ||
17 17
 	true === give_get_history_session()
18 18
 ) {
19 19
 	// Session active?
20
-	$email           = Give()->session->get( 'give_email' );
21
-	$donor           = Give()->donors->get_donor_by( 'email', $email );
22
-	$donations_count = count( explode( ',', $donor->payment_ids ) );
20
+	$email           = Give()->session->get('give_email');
21
+	$donor           = Give()->donors->get_donor_by('email', $email);
22
+	$donations_count = count(explode(',', $donor->payment_ids));
23 23
 
24
-	if ( $donations_count > give_get_limit_display_donations() ) {
24
+	if ($donations_count > give_get_limit_display_donations()) {
25 25
 
26 26
 		// Restrict Security Email Access option, if donation count of a donor is less than or equal to limit.
27
-		if ( true !== Give_Cache::get( "give_cache_email_throttle_limit_exhausted_{$donor->id}" ) ) {
28
-			add_action( 'give_donation_history_table_end', 'give_donation_history_table_end' );
27
+		if (true !== Give_Cache::get("give_cache_email_throttle_limit_exhausted_{$donor->id}")) {
28
+			add_action('give_donation_history_table_end', 'give_donation_history_table_end');
29 29
 		} else {
30 30
 			$value = Give()->email_access->verify_throttle / 60;
31 31
 
@@ -42,35 +42,35 @@  discard block
 block discarded – undo
42 42
 			$message = (string) apply_filters(
43 43
 				'give_email_access_requests_exceed_notice',
44 44
 				sprintf(
45
-					__( 'Too many access email requests detected. Please wait %s before requesting a new donation history access link.', 'give' ),
46
-					sprintf( _n( '%s minute', '%s minutes', $value, 'give' ), $value )
45
+					__('Too many access email requests detected. Please wait %s before requesting a new donation history access link.', 'give'),
46
+					sprintf(_n('%s minute', '%s minutes', $value, 'give'), $value)
47 47
 				),
48 48
 				$value
49 49
 			);
50 50
 
51
-			give_set_error( 'give-limited-throttle',
51
+			give_set_error('give-limited-throttle',
52 52
 				$message
53 53
 			);
54 54
 		}
55 55
 
56
-		$donations = give_get_users_donations( $email, give_get_limit_display_donations(), true, 'any' );
56
+		$donations = give_get_users_donations($email, give_get_limit_display_donations(), true, 'any');
57 57
 	} else {
58
-		$donations = give_get_users_donations( $email, 20, true, 'any' );
58
+		$donations = give_get_users_donations($email, 20, true, 'any');
59 59
 	}
60 60
 }
61 61
 
62
-Give()->notices->render_frontend_notices( 0 );
62
+Give()->notices->render_frontend_notices(0);
63 63
 
64
-if ( $donations ) : ?>
64
+if ($donations) : ?>
65 65
 	<?php
66 66
 	$table_headings = array(
67
-		'id'             => __( 'ID', 'give' ),
68
-		'date'           => __( 'Date', 'give' ),
69
-		'donor'          => __( 'Donor', 'give' ),
70
-		'amount'         => __( 'Amount', 'give' ),
71
-		'status'         => __( 'Status', 'give' ),
72
-		'payment_method' => __( 'Payment Method', 'give' ),
73
-		'details'        => __( 'Details', 'give' ),
67
+		'id'             => __('ID', 'give'),
68
+		'date'           => __('Date', 'give'),
69
+		'donor'          => __('Donor', 'give'),
70
+		'amount'         => __('Amount', 'give'),
71
+		'status'         => __('Status', 'give'),
72
+		'payment_method' => __('Payment Method', 'give'),
73
+		'details'        => __('Details', 'give'),
74 74
 	);
75 75
 	?>
76 76
 	<div class="give_user_history_main" >
@@ -86,14 +86,14 @@  discard block
 block discarded – undo
86 86
 				 *
87 87
 				 * @since 1.7
88 88
 				 */
89
-				do_action( 'give_donation_history_header_before' );
89
+				do_action('give_donation_history_header_before');
90 90
 
91
-				foreach ( $donation_history_args as $index => $value ) {
92
-					if ( filter_var( $donation_history_args[ $index ], FILTER_VALIDATE_BOOLEAN ) ) :
91
+				foreach ($donation_history_args as $index => $value) {
92
+					if (filter_var($donation_history_args[$index], FILTER_VALIDATE_BOOLEAN)) :
93 93
 						echo sprintf(
94 94
 							'<th scope="col" class="give-donation-%1$s>">%2$s</th>',
95 95
 							$index,
96
-							$table_headings[ $index ]
96
+							$table_headings[$index]
97 97
 						);
98 98
 					endif;
99 99
 				}
@@ -105,13 +105,13 @@  discard block
 block discarded – undo
105 105
 				 *
106 106
 				 * @since 1.7
107 107
 				 */
108
-				do_action( 'give_donation_history_header_after' );
108
+				do_action('give_donation_history_header_after');
109 109
 				?>
110 110
 			</tr>
111 111
 			</thead>
112
-			<?php foreach ( $donations as $post ) :
113
-				setup_postdata( $post );
114
-				$donation_data = give_get_payment_meta( $post->ID ); ?>
112
+			<?php foreach ($donations as $post) :
113
+				setup_postdata($post);
114
+				$donation_data = give_get_payment_meta($post->ID); ?>
115 115
 				<tr class="give-donation-row">
116 116
 					<?php
117 117
 					/**
@@ -124,37 +124,37 @@  discard block
 block discarded – undo
124 124
 					 * @param int   $post_id       The ID of the post.
125 125
 					 * @param mixed $donation_data Payment meta data.
126 126
 					 */
127
-					do_action( 'give_donation_history_row_start', $post->ID, $donation_data );
127
+					do_action('give_donation_history_row_start', $post->ID, $donation_data);
128 128
 
129
-					if ( filter_var( $donation_history_args['id'], FILTER_VALIDATE_BOOLEAN ) ) :
129
+					if (filter_var($donation_history_args['id'], FILTER_VALIDATE_BOOLEAN)) :
130 130
 						echo sprintf(
131 131
 							'<td class="give-donation-id"><span class="title-for-mobile">%2$s</span>%1$s</td>',
132
-							give_get_payment_number( $post->ID ), esc_html( $table_headings['id'] )
132
+							give_get_payment_number($post->ID), esc_html($table_headings['id'])
133 133
 						);
134 134
 					endif;
135 135
 
136
-					if ( filter_var( $donation_history_args['date'], FILTER_VALIDATE_BOOLEAN ) ) :
136
+					if (filter_var($donation_history_args['date'], FILTER_VALIDATE_BOOLEAN)) :
137 137
 						echo sprintf(
138 138
 							'<td class="give-donation-date"><span class="title-for-mobile">%2$s</span>%1$s</td>',
139
-							date_i18n( give_date_format(), strtotime( get_post_field( 'post_date', $post->ID ) ) ), esc_html( $table_headings['date'] )
139
+							date_i18n(give_date_format(), strtotime(get_post_field('post_date', $post->ID))), esc_html($table_headings['date'])
140 140
 						);
141 141
 					endif;
142 142
 
143
-					if ( filter_var( $donation_history_args['donor'], FILTER_VALIDATE_BOOLEAN ) ) :
143
+					if (filter_var($donation_history_args['donor'], FILTER_VALIDATE_BOOLEAN)) :
144 144
 						echo sprintf(
145 145
 							'<td class="give-donation-donor"><span class="title-for-mobile">%2$s</span>%1$s</td>',
146
-							give_get_donor_name_by( $post->ID ), $table_headings['donor']
146
+							give_get_donor_name_by($post->ID), $table_headings['donor']
147 147
 						);
148 148
 					endif;
149 149
 					?>
150 150
 
151
-					<?php if ( filter_var( $donation_history_args['amount'], FILTER_VALIDATE_BOOLEAN ) ) : ?>
151
+					<?php if (filter_var($donation_history_args['amount'], FILTER_VALIDATE_BOOLEAN)) : ?>
152 152
 						<td class="give-donation-amount">
153
-						<?php printf( '<span class="title-for-mobile">%1$s</span>', esc_html( $table_headings['amount'] ) ); ?>
153
+						<?php printf('<span class="title-for-mobile">%1$s</span>', esc_html($table_headings['amount'])); ?>
154 154
 						<span class="give-donation-amount">
155 155
 							<?php
156
-							$currency_code   = give_get_payment_currency_code( $post->ID );
157
-							$donation_amount = give_donation_amount( $post->ID, true );
156
+							$currency_code   = give_get_payment_currency_code($post->ID);
157
+							$donation_amount = give_donation_amount($post->ID, true);
158 158
 
159 159
 							/**
160 160
 							 * Filters the donation amount on Donation History Page.
@@ -166,45 +166,45 @@  discard block
 block discarded – undo
166 166
 							 *
167 167
 							 * @return int
168 168
 							 */
169
-							echo apply_filters( 'give_donation_history_row_amount', $donation_amount, $post->ID );
169
+							echo apply_filters('give_donation_history_row_amount', $donation_amount, $post->ID);
170 170
 							?>
171 171
 						</span>
172 172
 						</td>
173 173
 					<?php endif; ?>
174 174
 
175 175
 					<?php
176
-					if ( filter_var( $donation_history_args['status'], FILTER_VALIDATE_BOOLEAN ) ) :
176
+					if (filter_var($donation_history_args['status'], FILTER_VALIDATE_BOOLEAN)) :
177 177
 						echo sprintf(
178 178
 							'<td class="give-donation-status"><span class="title-for-mobile">%2$s</span>%1$s</td>',
179
-							give_get_payment_status( $post, true ),
180
-							esc_html( $table_headings['status'] )
179
+							give_get_payment_status($post, true),
180
+							esc_html($table_headings['status'])
181 181
 						);
182 182
 					endif;
183 183
 
184
-					if ( filter_var( $donation_history_args['payment_method'], FILTER_VALIDATE_BOOLEAN ) ) :
184
+					if (filter_var($donation_history_args['payment_method'], FILTER_VALIDATE_BOOLEAN)) :
185 185
 						echo sprintf(
186 186
 							'<td class="give-donation-payment-method"><span class="title-for-mobile">%2$s</span>%1$s</td>',
187
-							give_get_gateway_checkout_label( give_get_payment_gateway( $post->ID ) ),
188
-							esc_html( $table_headings['payment_method'] )
187
+							give_get_gateway_checkout_label(give_get_payment_gateway($post->ID)),
188
+							esc_html($table_headings['payment_method'])
189 189
 						);
190 190
 					endif;
191 191
 					?>
192 192
 					<td class="give-donation-details">
193 193
 						<?php
194 194
 						// Display View Receipt or.
195
-						if ( 'publish' !== $post->post_status && 'subscription' !== $post->post_status ) :
195
+						if ('publish' !== $post->post_status && 'subscription' !== $post->post_status) :
196 196
 							echo sprintf(
197 197
 								'<span class="title-for-mobile">%4$s</span><a href="%1$s"><span class="give-donation-status %2$s">%3$s</span></a>',
198 198
 								esc_url(
199 199
 									add_query_arg(
200 200
 										'payment_key',
201
-										give_get_payment_key( $post->ID ),
201
+										give_get_payment_key($post->ID),
202 202
 										give_get_history_page_uri()
203 203
 									)
204 204
 								),
205 205
 								$post->post_status,
206
-								__( 'View', 'give' ) . ' ' . give_get_payment_status( $post, true ) . ' &raquo;',
207
-								esc_html( $table_headings['details'] )
206
+								__('View', 'give').' '.give_get_payment_status($post, true).' &raquo;',
207
+								esc_html($table_headings['details'])
208 208
 							);
209 209
 
210 210
 						else :
@@ -213,12 +213,12 @@  discard block
 block discarded – undo
213 213
 								esc_url(
214 214
 									add_query_arg(
215 215
 										'payment_key',
216
-										give_get_payment_key( $post->ID ),
216
+										give_get_payment_key($post->ID),
217 217
 										give_get_history_page_uri()
218 218
 									)
219 219
 								),
220
-								__( 'View Receipt &raquo;', 'give' ),
221
-								esc_html( $table_headings['details'] )
220
+								__('View Receipt &raquo;', 'give'),
221
+								esc_html($table_headings['details'])
222 222
 							);
223 223
 
224 224
 						endif;
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
 					 * @param int   $post_id       The ID of the post.
236 236
 					 * @param mixed $donation_data Payment meta data.
237 237
 					 */
238
-					do_action( 'give_donation_history_row_end', $post->ID, $donation_data );
238
+					do_action('give_donation_history_row_end', $post->ID, $donation_data);
239 239
 					?>
240 240
 				</tr>
241 241
 			<?php endforeach; ?>
@@ -248,22 +248,22 @@  discard block
 block discarded – undo
248 248
 			 *
249 249
 			 * @since 1.8.17
250 250
 			 */
251
-			do_action( 'give_donation_history_table_end' );
251
+			do_action('give_donation_history_table_end');
252 252
 			?>
253 253
 		</table>
254 254
 		<div id="give-donation-history-pagination" class="give_pagination navigation">
255 255
 			<?php
256 256
 			$big = 999999;
257
-			echo paginate_links( array(
258
-				'base'    => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ),
257
+			echo paginate_links(array(
258
+				'base'    => str_replace($big, '%#%', esc_url(get_pagenum_link($big))),
259 259
 				'format'  => '?paged=%#%',
260
-				'current' => max( 1, get_query_var( 'paged' ) ),
261
-				'total'   => ceil( give_count_donations_of_donor() / 20 ), // 20 items per page
262
-			) );
260
+				'current' => max(1, get_query_var('paged')),
261
+				'total'   => ceil(give_count_donations_of_donor() / 20), // 20 items per page
262
+			));
263 263
 			?>
264 264
 		</div>
265 265
 	</div>
266 266
 	<?php wp_reset_postdata(); ?>
267 267
 <?php else : ?>
268
-	<?php Give()->notices->print_frontend_notice( __( 'It looks like you haven\'t made any donations.', 'give' ), true, 'success' ); ?>
268
+	<?php Give()->notices->print_frontend_notice(__('It looks like you haven\'t made any donations.', 'give'), true, 'success'); ?>
269 269
 <?php endif;
Please login to merge, or discard this patch.
templates/shortcode-totals-progress.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -4,26 +4,26 @@  discard block
 block discarded – undo
4 4
  */
5 5
 
6 6
 // Bail out if total goal is empty.
7
-if ( empty( $total_goal ) ) {
7
+if (empty($total_goal)) {
8 8
 	return false;
9 9
 }
10 10
 
11 11
 // Set Give total progress bar color.
12
-$color = apply_filters( 'give_totals_progress_color', '#2bc253' );
12
+$color = apply_filters('give_totals_progress_color', '#2bc253');
13 13
 
14 14
 // Give total.
15
-$total = ! empty( $total ) ? $total : 0;
15
+$total = ! empty($total) ? $total : 0;
16 16
 
17 17
 /**
18 18
  * Filter the goal progress output
19 19
  *
20 20
  * @since 2.1
21 21
  */
22
-$progress = round( ( $total / $total_goal ) * 100, 2 );
22
+$progress = round(($total / $total_goal) * 100, 2);
23 23
 
24 24
 // Set progress to 100 percentage if total > total_goal
25 25
 $progress = $total >= $total_goal ? 100 : $progress;
26
-$progress = apply_filters( 'give_goal_totals_funded_percentage_output', $progress, $total, $total_goal );
26
+$progress = apply_filters('give_goal_totals_funded_percentage_output', $progress, $total, $total_goal);
27 27
 
28 28
 ?>
29 29
 <div class="give-goal-progress">
@@ -31,16 +31,16 @@  discard block
 block discarded – undo
31 31
 		<?php
32 32
 		echo sprintf(
33 33
 		/* translators: %s: percentage of the amount raised compared to the goal target */
34
-			__( '<span class="give-percentage">%s%%</span> funded', 'give' ),
35
-			round( $progress )
34
+			__('<span class="give-percentage">%s%%</span> funded', 'give'),
35
+			round($progress)
36 36
 		);
37 37
 		?>
38 38
 	</div>
39 39
 
40 40
 	<div class="give-progress-bar" role="progressbar" aria-valuemin="0" aria-valuemax="100"
41
-	     aria-valuenow="<?php echo esc_attr( $progress ); ?>">
42
-			<span style="width: <?php echo esc_attr( $progress ); ?>%;<?php if ( ! empty( $color ) ) {
43
-				echo 'background-color:' . $color;
41
+	     aria-valuenow="<?php echo esc_attr($progress); ?>">
42
+			<span style="width: <?php echo esc_attr($progress); ?>%;<?php if ( ! empty($color)) {
43
+				echo 'background-color:'.$color;
44 44
 			} ?>"></span>
45 45
 	</div><!-- /.give-progress-bar -->
46 46
 
Please login to merge, or discard this patch.
templates/shortcode-profile-editor.php 2 patches
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -217,12 +217,14 @@
 block discarded – undo
217 217
 	?>
218 218
 
219 219
 <?php
220
-else :
220
+else {
221
+	:
221 222
 	if ( isset( $_GET['updated'] ) && 'true' === $_GET['updated'] && ! give_get_errors() ) {
222 223
 		if ( isset( $_GET['update_code'] ) ) {
223 224
 			switch ( $_GET['update_code'] ) {
224 225
 				case '2':
225 226
 					printf( '<p class="give_success"><strong>%1$s</strong> %2$s</p>', esc_html__( 'Success:', 'give' ), esc_html__( 'Your profile and password has been updated.', 'give' ) );
227
+}
226 228
 					_e( 'Login with your new credentials.', 'give' );
227 229
 					echo give_login_form();
228 230
 					break;
Please login to merge, or discard this patch.
Spacing   +61 added lines, -61 removed lines patch added patch discarded remove patch
@@ -10,25 +10,25 @@  discard block
 block discarded – undo
10 10
 
11 11
 $current_user = wp_get_current_user();
12 12
 
13
-if ( is_user_logged_in() ) :
13
+if (is_user_logged_in()) :
14 14
 	$user_id = get_current_user_id();
15
-	$first_name   = get_user_meta( $user_id, 'first_name', true );
16
-	$last_name    = get_user_meta( $user_id, 'last_name', true );
17
-	$last_name    = get_user_meta( $user_id, 'last_name', true );
15
+	$first_name   = get_user_meta($user_id, 'first_name', true);
16
+	$last_name    = get_user_meta($user_id, 'last_name', true);
17
+	$last_name    = get_user_meta($user_id, 'last_name', true);
18 18
 	$display_name = $current_user->display_name;
19
-	$donor        = new Give_Donor( $user_id, true );
20
-	$address      = $donor->get_donor_address( array( 'address_type' => 'personal' ) );
21
-	$company_name = $donor->get_meta( '_give_donor_company', true );
22
-
23
-	if ( isset( $_GET['updated'] ) && 'true' === $_GET['updated'] && ! give_get_errors() ) {
24
-		if ( isset( $_GET['update_code'] ) ) {
25
-			if ( 1 === absint( $_GET['update_code'] ) ) {
26
-				printf( '<p class="give_success"><strong>%1$s</strong> %2$s</p>', esc_html__( 'Success:', 'give' ), esc_html__( 'Your profile has been updated.', 'give' ) );
19
+	$donor        = new Give_Donor($user_id, true);
20
+	$address      = $donor->get_donor_address(array('address_type' => 'personal'));
21
+	$company_name = $donor->get_meta('_give_donor_company', true);
22
+
23
+	if (isset($_GET['updated']) && 'true' === $_GET['updated'] && ! give_get_errors()) {
24
+		if (isset($_GET['update_code'])) {
25
+			if (1 === absint($_GET['update_code'])) {
26
+				printf('<p class="give_success"><strong>%1$s</strong> %2$s</p>', esc_html__('Success:', 'give'), esc_html__('Your profile has been updated.', 'give'));
27 27
 			}
28 28
 		}
29 29
 	}
30 30
 
31
-	Give()->notices->render_frontend_notices( 0 );
31
+	Give()->notices->render_frontend_notices(0);
32 32
 
33 33
 	/**
34 34
 	 * Fires in the profile editor shortcode, before the form.
@@ -37,57 +37,57 @@  discard block
 block discarded – undo
37 37
 	 *
38 38
 	 * @since 1.0
39 39
 	 */
40
-	do_action( 'give_profile_editor_before' );
40
+	do_action('give_profile_editor_before');
41 41
 	?>
42 42
 
43 43
 	<form id="give_profile_editor_form" class="give-form" action="<?php echo give_get_current_page_url(); ?>" method="post">
44 44
 		<fieldset>
45
-			<legend id="give_profile_name_label"><?php _e( 'Profile', 'give' ); ?></legend>
45
+			<legend id="give_profile_name_label"><?php _e('Profile', 'give'); ?></legend>
46 46
 
47 47
 			<h3 id="give_personal_information_label"
48
-			    class="give-section-break"><?php _e( 'Change your Name', 'give' ); ?></h3>
48
+			    class="give-section-break"><?php _e('Change your Name', 'give'); ?></h3>
49 49
 
50 50
 			<p id="give_profile_first_name_wrap" class="form-row form-row-first form-row-responsive">
51 51
 				<label for="give_first_name">
52
-					<?php _e( 'First Name', 'give' ); ?>
52
+					<?php _e('First Name', 'give'); ?>
53 53
 					<span class="give-required-indicator  ">*</span>
54 54
 				</label>
55 55
 				<input name="give_first_name" id="give_first_name" class="text give-input" type="text"
56
-				       value="<?php echo esc_attr( $first_name ); ?>"/>
56
+				       value="<?php echo esc_attr($first_name); ?>"/>
57 57
 			</p>
58 58
 
59 59
 			<p id="give_profile_last_name_wrap" class="form-row form-row-last form-row-responsive">
60
-				<label for="give_last_name"><?php _e( 'Last Name', 'give' ); ?></label>
60
+				<label for="give_last_name"><?php _e('Last Name', 'give'); ?></label>
61 61
 				<input name="give_last_name" id="give_last_name" class="text give-input" type="text"
62
-				       value="<?php echo esc_attr( $last_name ); ?>"/>
62
+				       value="<?php echo esc_attr($last_name); ?>"/>
63 63
 			</p>
64 64
 
65
-			<?php if ( ! empty( $company_name ) ) : ?>
65
+			<?php if ( ! empty($company_name)) : ?>
66 66
 				<p id="give_profile_company_name_wrap" class="form-row form-row-wide">
67
-					<label for="give_company_name"><?php _e( 'Company Name', 'give' ); ?></label>
67
+					<label for="give_company_name"><?php _e('Company Name', 'give'); ?></label>
68 68
 					<input name="give_company_name" id="give_company_name" class="text give-input" type="text"
69
-					       value="<?php echo esc_attr( $company_name ); ?>"/>
69
+					       value="<?php echo esc_attr($company_name); ?>"/>
70 70
 				</p>
71 71
 			<?php endif; ?>
72 72
 
73 73
 			<p id="give_profile_display_name_wrap" class="form-row form-row-first form-row-responsive">
74
-				<label for="give_display_name"><?php _e( 'Display Name', 'give' ); ?></label>
74
+				<label for="give_display_name"><?php _e('Display Name', 'give'); ?></label>
75 75
 				<select name="give_display_name" id="give_display_name" class="select give-select">
76
-					<?php if ( ! empty( $current_user->first_name ) ): ?>
77
-						<option <?php selected( $display_name, $current_user->first_name ); ?>
78
-							value="<?php echo esc_attr( $current_user->first_name ); ?>"><?php echo esc_html( $current_user->first_name ); ?></option>
76
+					<?php if ( ! empty($current_user->first_name)): ?>
77
+						<option <?php selected($display_name, $current_user->first_name); ?>
78
+							value="<?php echo esc_attr($current_user->first_name); ?>"><?php echo esc_html($current_user->first_name); ?></option>
79 79
 					<?php endif; ?>
80
-					<option <?php selected( $display_name, $current_user->user_nicename ); ?>
81
-						value="<?php echo esc_attr( $current_user->user_nicename ); ?>"><?php echo esc_html( $current_user->user_nicename ); ?></option>
82
-					<?php if ( ! empty( $current_user->last_name ) ): ?>
83
-						<option <?php selected( $display_name, $current_user->last_name ); ?>
84
-							value="<?php echo esc_attr( $current_user->last_name ); ?>"><?php echo esc_html( $current_user->last_name ); ?></option>
80
+					<option <?php selected($display_name, $current_user->user_nicename); ?>
81
+						value="<?php echo esc_attr($current_user->user_nicename); ?>"><?php echo esc_html($current_user->user_nicename); ?></option>
82
+					<?php if ( ! empty($current_user->last_name)): ?>
83
+						<option <?php selected($display_name, $current_user->last_name); ?>
84
+							value="<?php echo esc_attr($current_user->last_name); ?>"><?php echo esc_html($current_user->last_name); ?></option>
85 85
 					<?php endif; ?>
86
-					<?php if ( ! empty( $current_user->first_name ) && ! empty( $current_user->last_name ) ): ?>
87
-						<option <?php selected( $display_name, $current_user->first_name . ' ' . $current_user->last_name ); ?>
88
-							value="<?php echo esc_attr( $current_user->first_name . ' ' . $current_user->last_name ); ?>"><?php echo esc_html( $current_user->first_name . ' ' . $current_user->last_name ); ?></option>
89
-						<option <?php selected( $display_name, $current_user->last_name . ' ' . $current_user->first_name ); ?>
90
-							value="<?php echo esc_attr( $current_user->last_name . ' ' . $current_user->first_name ); ?>"><?php echo esc_html( $current_user->last_name . ' ' . $current_user->first_name ); ?></option>
86
+					<?php if ( ! empty($current_user->first_name) && ! empty($current_user->last_name)): ?>
87
+						<option <?php selected($display_name, $current_user->first_name.' '.$current_user->last_name); ?>
88
+							value="<?php echo esc_attr($current_user->first_name.' '.$current_user->last_name); ?>"><?php echo esc_html($current_user->first_name.' '.$current_user->last_name); ?></option>
89
+						<option <?php selected($display_name, $current_user->last_name.' '.$current_user->first_name); ?>
90
+							value="<?php echo esc_attr($current_user->last_name.' '.$current_user->first_name); ?>"><?php echo esc_html($current_user->last_name.' '.$current_user->first_name); ?></option>
91 91
 					<?php endif; ?>
92 92
 				</select>
93 93
 				<?php
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
 				 *
99 99
 				 * @since 1.0
100 100
 				 */
101
-				do_action( 'give_profile_editor_name' );
101
+				do_action('give_profile_editor_name');
102 102
 				?>
103 103
 			</p>
104 104
 
@@ -110,16 +110,16 @@  discard block
 block discarded – undo
110 110
 			 *
111 111
 			 * @since 1.0
112 112
 			 */
113
-			do_action( 'give_profile_editor_after_name' );
113
+			do_action('give_profile_editor_after_name');
114 114
 			?>
115 115
 
116 116
 			<p class="form-row form-row-last form-row-responsive">
117 117
 				<label for="give_email">
118
-					<?php _e( 'Email Address', 'give' ); ?>
118
+					<?php _e('Email Address', 'give'); ?>
119 119
 					<span class="give-required-indicator  ">*</span>
120 120
 				</label>
121 121
 				<input name="give_email" id="give_email" class="text give-input required" type="email"
122
-				       value="<?php echo esc_attr( $current_user->user_email ); ?>" required aria-required="true"/>
122
+				       value="<?php echo esc_attr($current_user->user_email); ?>" required aria-required="true"/>
123 123
 				<?php
124 124
 				/**
125 125
 				 * Fires in the profile editor shortcode, to the email section.
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
 				 *
129 129
 				 * @since 1.0
130 130
 				 */
131
-				do_action( 'give_profile_editor_email' );
131
+				do_action('give_profile_editor_email');
132 132
 				?>
133 133
 			</p>
134 134
 
@@ -140,21 +140,21 @@  discard block
 block discarded – undo
140 140
 			 *
141 141
 			 * @since 1.0
142 142
 			 */
143
-			do_action( 'give_profile_editor_after_email' );
143
+			do_action('give_profile_editor_after_email');
144 144
 			?>
145 145
 
146 146
 			<h3 id="give_profile_password_label"
147
-			    class="give-section-break"><?php _e( 'Change your Password', 'give' ); ?></h3>
147
+			    class="give-section-break"><?php _e('Change your Password', 'give'); ?></h3>
148 148
 
149 149
 			<div id="give_profile_password_wrap" class="give-clearfix">
150 150
 				<p id="give_profile_password_wrap_1" class="form-row form-row-first form-row-responsive">
151
-					<label for="give_new_user_pass1"><?php _e( 'New Password', 'give' ); ?></label>
151
+					<label for="give_new_user_pass1"><?php _e('New Password', 'give'); ?></label>
152 152
 					<input name="give_new_user_pass1" id="give_new_user_pass1" class="password give-input"
153 153
 					       type="password"/>
154 154
 				</p>
155 155
 
156 156
 				<p id="give_profile_password_wrap_2" class="form-row form-row-last form-row-responsive">
157
-					<label for="give_new_user_pass2"><?php _e( 'Re-enter Password', 'give' ); ?></label>
157
+					<label for="give_new_user_pass2"><?php _e('Re-enter Password', 'give'); ?></label>
158 158
 					<input name="give_new_user_pass2" id="give_new_user_pass2" class="password give-input"
159 159
 					       type="password"/>
160 160
 					<?php
@@ -165,12 +165,12 @@  discard block
 block discarded – undo
165 165
 					 *
166 166
 					 * @since 1.0
167 167
 					 */
168
-					do_action( 'give_profile_editor_password' );
168
+					do_action('give_profile_editor_password');
169 169
 					?>
170 170
 				</p>
171 171
 			</div>
172 172
 
173
-			<p class="give_password_change_notice"><?php _e( 'Please note after changing your password, you must log back in.', 'give' ); ?></p>
173
+			<p class="give_password_change_notice"><?php _e('Please note after changing your password, you must log back in.', 'give'); ?></p>
174 174
 
175 175
 			<?php
176 176
 			/**
@@ -180,17 +180,17 @@  discard block
 block discarded – undo
180 180
 			 *
181 181
 			 * @since 1.0
182 182
 			 */
183
-			do_action( 'give_profile_editor_after_password' );
183
+			do_action('give_profile_editor_after_password');
184 184
 			?>
185 185
 
186 186
 			<p id="give_profile_submit_wrap">
187 187
 				<input type="hidden" name="give_profile_editor_nonce"
188
-				       value="<?php echo wp_create_nonce( 'give-profile-editor-nonce' ); ?>"/>
188
+				       value="<?php echo wp_create_nonce('give-profile-editor-nonce'); ?>"/>
189 189
 				<input type="hidden" name="give_action" value="edit_user_profile"/>
190 190
 				<input type="hidden" name="give_redirect"
191
-				       value="<?php echo esc_url( give_get_current_page_url() ); ?>"/>
191
+				       value="<?php echo esc_url(give_get_current_page_url()); ?>"/>
192 192
 				<input name="give_profile_editor_submit" id="give_profile_editor_submit" type="submit"
193
-				       class="give_submit" value="<?php _e( 'Save Changes', 'give' ); ?>"/>
193
+				       class="give_submit" value="<?php _e('Save Changes', 'give'); ?>"/>
194 194
 			</p>
195 195
 
196 196
 		</fieldset>
@@ -205,23 +205,23 @@  discard block
 block discarded – undo
205 205
 	 *
206 206
 	 * @since 1.0
207 207
 	 */
208
-	do_action( 'give_profile_editor_after' );
208
+	do_action('give_profile_editor_after');
209 209
 	?>
210 210
 
211 211
 <?php
212 212
 else :
213
-	if ( isset( $_GET['updated'] ) && 'true' === $_GET['updated'] && ! give_get_errors() ) {
214
-		if ( isset( $_GET['update_code'] ) ) {
215
-			switch ( $_GET['update_code'] ) {
213
+	if (isset($_GET['updated']) && 'true' === $_GET['updated'] && ! give_get_errors()) {
214
+		if (isset($_GET['update_code'])) {
215
+			switch ($_GET['update_code']) {
216 216
 				case '2':
217
-					printf( '<p class="give_success"><strong>%1$s</strong> %2$s</p>', esc_html__( 'Success:', 'give' ), esc_html__( 'Your profile and password has been updated.', 'give' ) );
218
-					_e( 'Login with your new credentials.', 'give' );
217
+					printf('<p class="give_success"><strong>%1$s</strong> %2$s</p>', esc_html__('Success:', 'give'), esc_html__('Your profile and password has been updated.', 'give'));
218
+					_e('Login with your new credentials.', 'give');
219 219
 					echo give_login_form();
220 220
 					break;
221 221
 
222 222
 				case '3':
223
-					printf( '<p class="give_success"><strong>%1$s</strong> %2$s</p>', esc_html__( 'Success:', 'give' ), esc_html__( 'Your password has been updated.', 'give' ) );
224
-					_e( 'Login with your new credentials.', 'give' );
223
+					printf('<p class="give_success"><strong>%1$s</strong> %2$s</p>', esc_html__('Success:', 'give'), esc_html__('Your password has been updated.', 'give'));
224
+					_e('Login with your new credentials.', 'give');
225 225
 					echo give_login_form();
226 226
 					break;
227 227
 
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
 			}
231 231
 		}
232 232
 	} else {
233
-		_e( 'You need to login to edit your profile.', 'give' );
233
+		_e('You need to login to edit your profile.', 'give');
234 234
 		echo give_login_form();
235 235
 	}
236 236
 endif;
Please login to merge, or discard this patch.
templates/shortcode-form-grid.php 1 patch
Spacing   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
  */
5 5
 
6 6
 // Exit if accessed directly.
7
-if ( ! defined( 'ABSPATH' ) ) {
7
+if ( ! defined('ABSPATH')) {
8 8
 	exit;
9 9
 }
10 10
 
@@ -19,16 +19,16 @@  discard block
 block discarded – undo
19 19
 <div class="give-grid__item">
20 20
 	<?php
21 21
 	// Print the opening anchor tag based on display style.
22
-	if ( 'redirect' === $atts['display_style'] ) {
22
+	if ('redirect' === $atts['display_style']) {
23 23
 		printf(
24 24
 			'<a id="give-card-%1$s" class="give-card" href="%2$s">',
25
-			esc_attr( $form_id ),
26
-			esc_attr( get_the_permalink() )
25
+			esc_attr($form_id),
26
+			esc_attr(get_the_permalink())
27 27
 		);
28
-	} elseif ( 'modal_reveal' === $atts['display_style'] ) {
28
+	} elseif ('modal_reveal' === $atts['display_style']) {
29 29
 		printf(
30 30
 			'<a id="give-card-%1$s" class="give-card js-give-grid-modal-launcher" data-effect="mfp-zoom-out" href="#give-modal-form-%1$s">',
31
-			esc_attr( $form_id )
31
+			esc_attr($form_id)
32 32
 		);
33 33
 	}
34 34
 	?>
@@ -36,46 +36,46 @@  discard block
 block discarded – undo
36 36
 		<div class="give-card__body">
37 37
 			<?php
38 38
 			// Maybe display the form title.
39
-			if ( true === $atts['show_title'] ) {
40
-				the_title( '<h3 class="give-card__title">', '</h3>' );
39
+			if (true === $atts['show_title']) {
40
+				the_title('<h3 class="give-card__title">', '</h3>');
41 41
 			}
42 42
 
43 43
 			// Maybe display the form excerpt.
44
-			if ( true === $atts['show_excerpt'] ) {
45
-				if ( has_excerpt( $form_id ) ) {
44
+			if (true === $atts['show_excerpt']) {
45
+				if (has_excerpt($form_id)) {
46 46
 					// Get excerpt from the form post's excerpt field.
47
-					$raw_content      = get_the_excerpt( $form_id );
47
+					$raw_content      = get_the_excerpt($form_id);
48 48
 					$stripped_content = wp_strip_all_tags(
49
-						strip_shortcodes( $raw_content )
49
+						strip_shortcodes($raw_content)
50 50
 					);
51 51
 				} else {
52 52
 					// Get content from the form post's content field.
53
-					$raw_content = give_get_meta( $form_id, '_give_form_content', true );
53
+					$raw_content = give_get_meta($form_id, '_give_form_content', true);
54 54
 
55
-					if ( ! empty( $raw_content ) ) {
55
+					if ( ! empty($raw_content)) {
56 56
 						$stripped_content = wp_strip_all_tags(
57
-							strip_shortcodes( $raw_content )
57
+							strip_shortcodes($raw_content)
58 58
 						);
59 59
 					}
60 60
 				}
61 61
 
62 62
 				// Maybe truncate excerpt.
63
-				if ( 0 < $atts['excerpt_length'] ) {
64
-					$excerpt = wp_trim_words( $stripped_content, $atts['excerpt_length'] );
63
+				if (0 < $atts['excerpt_length']) {
64
+					$excerpt = wp_trim_words($stripped_content, $atts['excerpt_length']);
65 65
 				} else {
66 66
 					$excerpt = $stripped_content;
67 67
 				}
68 68
 
69
-				printf( '<p class="give-card__text">%s</p>', $excerpt );
69
+				printf('<p class="give-card__text">%s</p>', $excerpt);
70 70
 			}
71 71
 
72 72
 			// Maybe display the goal progess bar.
73 73
 			if (
74
-				give_is_setting_enabled( get_post_meta( $form_id, '_give_goal_option', true ) )
74
+				give_is_setting_enabled(get_post_meta($form_id, '_give_goal_option', true))
75 75
 				&& true === $atts['show_goal']
76 76
 			) {
77 77
 				echo '<div class="give-card__progress">';
78
-					give_show_goal_progress( $form_id );
78
+					give_show_goal_progress($form_id);
79 79
 				echo '</div>';
80 80
 			}
81 81
 			?>
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 		<?php
85 85
 		// Maybe display the featured image.
86 86
 		if (
87
-			give_is_setting_enabled( $give_settings['form_featured_img'] )
87
+			give_is_setting_enabled($give_settings['form_featured_img'])
88 88
 			&& has_post_thumbnail()
89 89
 			&& true === $atts['show_featured_image']
90 90
 		) {
@@ -94,28 +94,28 @@  discard block
 block discarded – undo
94 94
 			 * @param string The image size.
95 95
 			 * @param array  Form grid attributes.
96 96
 			 */
97
-			$image_size = apply_filters( 'give_form_grid_image_size', $atts['image_size'], $atts );
97
+			$image_size = apply_filters('give_form_grid_image_size', $atts['image_size'], $atts);
98 98
 			$image_attr = '';
99 99
 
100 100
 			echo '<div class="give-card__media">';
101
-				if ( 'auto' !== $atts['image_height'] ) {
101
+				if ('auto' !== $atts['image_height']) {
102 102
 					$image_attr = array(
103
-						'style' => 'height: ' . $atts['image_height'],
103
+						'style' => 'height: '.$atts['image_height'],
104 104
 					);
105 105
 				}
106
-				the_post_thumbnail( $image_size, $image_attr );
106
+				the_post_thumbnail($image_size, $image_attr);
107 107
 			echo '</div>';
108 108
 		}
109 109
 		?>
110 110
 	</a>
111 111
 	<?php
112 112
 	// If modal, print form in hidden container until it is time to be revealed.
113
-	if ( 'modal_reveal' === $atts['display_style'] ) {
113
+	if ('modal_reveal' === $atts['display_style']) {
114 114
 		printf(
115 115
 			'<div id="give-modal-form-%1$s" class="give-donation-grid-item-form give-modal--slide mfp-hide">',
116 116
 			$form_id
117 117
 		);
118
-		give_get_donation_form( $form_id );
118
+		give_get_donation_form($form_id);
119 119
 		echo '</div>';
120 120
 	}
121 121
 	?>
Please login to merge, or discard this patch.
includes/admin/settings/class-settings-advanced.php 1 patch
Spacing   +47 added lines, -47 removed lines patch added patch discarded remove patch
@@ -9,11 +9,11 @@  discard block
 block discarded – undo
9 9
  * @since       1.8
10 10
  */
11 11
 
12
-if ( ! defined( 'ABSPATH' ) ) {
12
+if ( ! defined('ABSPATH')) {
13 13
 	exit; // Exit if accessed directly
14 14
 }
15 15
 
16
-if ( ! class_exists( 'Give_Settings_Advanced' ) ) :
16
+if ( ! class_exists('Give_Settings_Advanced')) :
17 17
 
18 18
 	/**
19 19
 	 * Give_Settings_Advanced.
@@ -27,12 +27,12 @@  discard block
 block discarded – undo
27 27
 		 */
28 28
 		public function __construct() {
29 29
 			$this->id    = 'advanced';
30
-			$this->label = __( 'Advanced', 'give' );
30
+			$this->label = __('Advanced', 'give');
31 31
 
32 32
 			$this->default_tab = 'advanced-options';
33 33
 
34
-			if ( $this->id === give_get_current_setting_tab() ) {
35
-				add_action( 'give_admin_field_remove_cache_button', array( $this, 'render_remove_cache_button' ), 10, 1 );
34
+			if ($this->id === give_get_current_setting_tab()) {
35
+				add_action('give_admin_field_remove_cache_button', array($this, 'render_remove_cache_button'), 10, 1);
36 36
 			}
37 37
 
38 38
 			parent::__construct();
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 
50 50
 			$current_section = give_get_current_setting_section();
51 51
 
52
-			switch ( $current_section ) {
52
+			switch ($current_section) {
53 53
 				case 'advanced-options':
54 54
 					$settings = array(
55 55
 						array(
@@ -57,19 +57,19 @@  discard block
 block discarded – undo
57 57
 							'type' => 'title',
58 58
 						),
59 59
 						array(
60
-							'name'    => __( 'Remove Data on Uninstall', 'give' ),
61
-							'desc'    => __( 'When the plugin is deleted, completely remove all Give data. This includes all Give settings, forms, form meta, donor, donor data, donations. Everything.', 'give' ),
60
+							'name'    => __('Remove Data on Uninstall', 'give'),
61
+							'desc'    => __('When the plugin is deleted, completely remove all Give data. This includes all Give settings, forms, form meta, donor, donor data, donations. Everything.', 'give'),
62 62
 							'id'      => 'uninstall_on_delete',
63 63
 							'type'    => 'radio_inline',
64 64
 							'default' => 'disabled',
65 65
 							'options' => array(
66
-								'enabled'  => __( 'Yes, Remove all data', 'give' ),
67
-								'disabled' => __( 'No, keep my Give settings and donation data', 'give' ),
66
+								'enabled'  => __('Yes, Remove all data', 'give'),
67
+								'disabled' => __('No, keep my Give settings and donation data', 'give'),
68 68
 							),
69 69
 						),
70 70
 						array(
71
-							'name'    => __( 'Default User Role', 'give' ),
72
-							'desc'    => __( 'Assign default user roles for donors when donors opt to register as a WP User.', 'give' ),
71
+							'name'    => __('Default User Role', 'give'),
72
+							'desc'    => __('Assign default user roles for donors when donors opt to register as a WP User.', 'give'),
73 73
 							'id'      => 'donor_default_user_role',
74 74
 							'type'    => 'select',
75 75
 							'default' => 'give_donor',
@@ -77,51 +77,51 @@  discard block
 block discarded – undo
77 77
 						),
78 78
 						array(
79 79
 							/* translators: %s: the_content */
80
-							'name'    => sprintf( __( '%s filter', 'give' ), '<code>the_content</code>' ),
80
+							'name'    => sprintf(__('%s filter', 'give'), '<code>the_content</code>'),
81 81
 							/* translators: 1: https://codex.wordpress.org/Plugin_API/Filter_Reference/the_content 2: the_content */
82
-							'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>' ),
82
+							'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>'),
83 83
 							'id'      => 'the_content_filter',
84 84
 							'default' => 'enabled',
85 85
 							'type'    => 'radio_inline',
86 86
 							'options' => array(
87
-								'enabled'  => __( 'Enabled', 'give' ),
88
-								'disabled' => __( 'Disabled', 'give' ),
87
+								'enabled'  => __('Enabled', 'give'),
88
+								'disabled' => __('Disabled', 'give'),
89 89
 							),
90 90
 						),
91 91
 						array(
92
-							'name'    => __( 'Script Loading Location', 'give' ),
93
-							'desc'    => __( 'This allows you to load your Give scripts either in the <code>&lt;head&gt;</code> or footer of your website.', 'give' ),
92
+							'name'    => __('Script Loading Location', 'give'),
93
+							'desc'    => __('This allows you to load your Give scripts either in the <code>&lt;head&gt;</code> or footer of your website.', 'give'),
94 94
 							'id'      => 'scripts_footer',
95 95
 							'type'    => 'radio_inline',
96 96
 							'default' => 'disabled',
97 97
 							'options' => array(
98
-								'disabled' => __( 'Head', 'give' ),
99
-								'enabled'  => __( 'Footer', 'give' ),
98
+								'disabled' => __('Head', 'give'),
99
+								'enabled'  => __('Footer', 'give'),
100 100
 							),
101 101
 						),
102 102
 						array(
103
-							'name'    => __( 'Akismet SPAM Protection', 'give' ),
104
-							'desc'    => __( 'Add a layer of SPAM protection to your donation submissions with Akismet. When enabled, donation submissions will be first sent to Akismet\'s API if you have the plugin activated and configured.', 'give' ),
103
+							'name'    => __('Akismet SPAM Protection', 'give'),
104
+							'desc'    => __('Add a layer of SPAM protection to your donation submissions with Akismet. When enabled, donation submissions will be first sent to Akismet\'s API if you have the plugin activated and configured.', 'give'),
105 105
 							'id'      => 'akismet_spam_protection',
106 106
 							'type'    => 'radio_inline',
107
-							'default' => ( give_check_akismet_key() ) ? 'enabled' : 'disabled',
107
+							'default' => (give_check_akismet_key()) ? 'enabled' : 'disabled',
108 108
 							'options' => array(
109
-								'enabled'  => __( 'Enabled', 'give' ),
110
-								'disabled' => __( 'Disabled', 'give' ),
109
+								'enabled'  => __('Enabled', 'give'),
110
+								'disabled' => __('Disabled', 'give'),
111 111
 							),
112 112
 						),
113 113
 						array(
114 114
 							'name'        => 'Give Cache',
115 115
 							'id'          => 'give-clear-cache',
116
-							'buttonTitle' => __( 'Clear Cache', 'give' ),
117
-							'desc'        => __( 'Click this button if you want to clear Give\'s cache. The plugin stores common settings and queries in cache to optimize performance. Clearing cache will remove and begin rebuilding these saved queries.', 'give' ),
116
+							'buttonTitle' => __('Clear Cache', 'give'),
117
+							'desc'        => __('Click this button if you want to clear Give\'s cache. The plugin stores common settings and queries in cache to optimize performance. Clearing cache will remove and begin rebuilding these saved queries.', 'give'),
118 118
 							'type'        => 'remove_cache_button'
119 119
 						),
120 120
 						array(
121
-							'name'  => __( 'Advanced Settings Docs Link', 'give' ),
121
+							'name'  => __('Advanced Settings Docs Link', 'give'),
122 122
 							'id'    => 'advanced_settings_docs_link',
123
-							'url'   => esc_url( 'http://docs.givewp.com/settings-advanced' ),
124
-							'title' => __( 'Advanced Settings', 'give' ),
123
+							'url'   => esc_url('http://docs.givewp.com/settings-advanced'),
124
+							'title' => __('Advanced Settings', 'give'),
125 125
 							'type'  => 'give_docs_link',
126 126
 						),
127 127
 						array(
@@ -137,20 +137,20 @@  discard block
 block discarded – undo
137 137
 			 *
138 138
 			 * @since 2.0
139 139
 			 */
140
-			if ( apply_filters( 'give_settings_advanced_show_cache_setting', false ) ) {
141
-				array_splice( $settings, 1, 0, array(
140
+			if (apply_filters('give_settings_advanced_show_cache_setting', false)) {
141
+				array_splice($settings, 1, 0, array(
142 142
 					array(
143
-						'name'    => __( 'Cache', 'give' ),
144
-						'desc'    => __( 'If caching is enabled the plugin will start caching custom post type related queries and reduce the overall load time.', 'give' ),
143
+						'name'    => __('Cache', 'give'),
144
+						'desc'    => __('If caching is enabled the plugin will start caching custom post type related queries and reduce the overall load time.', 'give'),
145 145
 						'id'      => 'cache',
146 146
 						'type'    => 'radio_inline',
147 147
 						'default' => 'enabled',
148 148
 						'options' => array(
149
-							'enabled'  => __( 'Enabled', 'give' ),
150
-							'disabled' => __( 'Disabled', 'give' ),
149
+							'enabled'  => __('Enabled', 'give'),
150
+							'disabled' => __('Disabled', 'give'),
151 151
 						),
152 152
 					)
153
-				) );
153
+				));
154 154
 			}
155 155
 
156 156
 
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
 			 * Filter the advanced settings.
159 159
 			 * Backward compatibility: Please do not use this filter. This filter is deprecated in 1.8
160 160
 			 */
161
-			$settings = apply_filters( 'give_settings_advanced', $settings );
161
+			$settings = apply_filters('give_settings_advanced', $settings);
162 162
 
163 163
 			/**
164 164
 			 * Filter the settings.
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
 			 *
168 168
 			 * @param  array $settings
169 169
 			 */
170
-			$settings = apply_filters( 'give_get_settings_' . $this->id, $settings );
170
+			$settings = apply_filters('give_get_settings_'.$this->id, $settings);
171 171
 
172 172
 			// Output.
173 173
 			return $settings;
@@ -181,10 +181,10 @@  discard block
 block discarded – undo
181 181
 		 */
182 182
 		public function get_sections() {
183 183
 			$sections = array(
184
-				'advanced-options' => __( 'Advanced Options', 'give' ),
184
+				'advanced-options' => __('Advanced Options', 'give'),
185 185
 			);
186 186
 
187
-			return apply_filters( 'give_get_sections_' . $this->id, $sections );
187
+			return apply_filters('give_get_sections_'.$this->id, $sections);
188 188
 		}
189 189
 
190 190
 
@@ -196,17 +196,17 @@  discard block
 block discarded – undo
196 196
 		 *
197 197
 		 * @param array $field
198 198
 		 */
199
-		public function render_remove_cache_button( $field ) {
199
+		public function render_remove_cache_button($field) {
200 200
 			?>
201
-			<tr valign="top" <?php echo ! empty( $field['wrapper_class'] ) ? 'class="' . $field['wrapper_class'] . '"' : '' ?>>
201
+			<tr valign="top" <?php echo ! empty($field['wrapper_class']) ? 'class="'.$field['wrapper_class'].'"' : '' ?>>
202 202
 				<th scope="row" class="titledesc">
203 203
 					<label
204
-						for="<?php echo esc_attr( $field['id'] ); ?>"><?php echo esc_html( $field['name'] ) ?></label>
204
+						for="<?php echo esc_attr($field['id']); ?>"><?php echo esc_html($field['name']) ?></label>
205 205
 				</th>
206 206
 				<td class="give-forminp">
207
-					<button type="button" id="<?php echo esc_attr( $field['id'] ); ?>"
208
-					        class="button button-secondary"><?php echo esc_html( $field['buttonTitle'] ) ?></button>
209
-					<?php echo Give_Admin_Settings::get_field_description( $field ); ?>
207
+					<button type="button" id="<?php echo esc_attr($field['id']); ?>"
208
+					        class="button button-secondary"><?php echo esc_html($field['buttonTitle']) ?></button>
209
+					<?php echo Give_Admin_Settings::get_field_description($field); ?>
210 210
 				</td>
211 211
 			</tr>
212 212
 			<?php
Please login to merge, or discard this patch.
includes/admin/settings/class-settings-general.php 1 patch
Spacing   +116 added lines, -116 removed lines patch added patch discarded remove patch
@@ -9,11 +9,11 @@  discard block
 block discarded – undo
9 9
  * @since       1.8
10 10
  */
11 11
 
12
-if ( ! defined( 'ABSPATH' ) ) {
12
+if ( ! defined('ABSPATH')) {
13 13
 	exit; // Exit if accessed directly.
14 14
 }
15 15
 
16
-if ( ! class_exists( 'Give_Settings_General' ) ) :
16
+if ( ! class_exists('Give_Settings_General')) :
17 17
 
18 18
 	/**
19 19
 	 * Give_Settings_General.
@@ -27,14 +27,14 @@  discard block
 block discarded – undo
27 27
 		 */
28 28
 		public function __construct() {
29 29
 			$this->id    = 'general';
30
-			$this->label = __( 'General', 'give' );
30
+			$this->label = __('General', 'give');
31 31
 
32 32
 			$this->default_tab = 'general-settings';
33 33
 
34
-			if ( $this->id === give_get_current_setting_tab() ) {
35
-				add_action( 'give_save_settings_give_settings', array( $this, '__give_change_donation_stating_number' ), 10, 3 );
36
-				add_action( 'give_admin_field_give_sequential_donation_code_preview', array( $this, '__render_give_sequential_donation_code_preview' ), 10, 3 );
37
-				add_action( 'give_admin_field_give_unlock_all_settings', array( $this, '__render_give_unlock_all_settings' ), 10, 3 );
34
+			if ($this->id === give_get_current_setting_tab()) {
35
+				add_action('give_save_settings_give_settings', array($this, '__give_change_donation_stating_number'), 10, 3);
36
+				add_action('give_admin_field_give_sequential_donation_code_preview', array($this, '__render_give_sequential_donation_code_preview'), 10, 3);
37
+				add_action('give_admin_field_give_unlock_all_settings', array($this, '__render_give_unlock_all_settings'), 10, 3);
38 38
 			}
39 39
 
40 40
 			parent::__construct();
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 			$settings        = array();
51 51
 			$current_section = give_get_current_setting_section();
52 52
 
53
-			switch ( $current_section ) {
53
+			switch ($current_section) {
54 54
 				case 'access-control':
55 55
 					$settings = array(
56 56
 						// Section 3: Access control.
@@ -60,20 +60,20 @@  discard block
 block discarded – undo
60 60
 						),
61 61
 						array(
62 62
 							'id'      => 'session_lifetime',
63
-							'name'    => __( 'Session Lifetime', 'give' ),
64
-							'desc'    => __( 'The length of time a user\'s session is kept alive. Give starts a new session per user upon donation. Sessions allow donors to view their donation receipts without being logged in.', 'give' ),
63
+							'name'    => __('Session Lifetime', 'give'),
64
+							'desc'    => __('The length of time a user\'s session is kept alive. Give starts a new session per user upon donation. Sessions allow donors to view their donation receipts without being logged in.', 'give'),
65 65
 							'type'    => 'select',
66 66
 							'options' => array(
67
-								'86400'  => __( '24 Hours', 'give' ),
68
-								'172800' => __( '48 Hours', 'give' ),
69
-								'259200' => __( '72 Hours', 'give' ),
70
-								'604800' => __( '1 Week', 'give' ),
67
+								'86400'  => __('24 Hours', 'give'),
68
+								'172800' => __('48 Hours', 'give'),
69
+								'259200' => __('72 Hours', 'give'),
70
+								'604800' => __('1 Week', 'give'),
71 71
 							),
72 72
 						),
73 73
 						array(
74 74
 							'id'         => 'limit_display_donations',
75
-							'name'       => __( 'Limit Donations Displayed', 'give' ),
76
-							'desc'       => __( 'Adjusts the number of donations displayed to a non logged-in user when they attempt to access the Donation History page without an active session. For security reasons, it\'s best to leave this at 1-3 donations.', 'give' ),
75
+							'name'       => __('Limit Donations Displayed', 'give'),
76
+							'desc'       => __('Adjusts the number of donations displayed to a non logged-in user when they attempt to access the Donation History page without an active session. For security reasons, it\'s best to leave this at 1-3 donations.', 'give'),
77 77
 							'default'    => '1',
78 78
 							'type'       => 'number',
79 79
 							'css'        => 'width:50px;',
@@ -83,47 +83,47 @@  discard block
 block discarded – undo
83 83
 							),
84 84
 						),
85 85
 						array(
86
-							'name'    => __( 'Email Access', 'give' ),
87
-							'desc'    => __( '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' ),
86
+							'name'    => __('Email Access', 'give'),
87
+							'desc'    => __('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'),
88 88
 							'id'      => 'email_access',
89 89
 							'type'    => 'radio_inline',
90 90
 							'default' => 'disabled',
91 91
 							'options' => array(
92
-								'enabled'  => __( 'Enabled', 'give' ),
93
-								'disabled' => __( 'Disabled', 'give' ),
92
+								'enabled'  => __('Enabled', 'give'),
93
+								'disabled' => __('Disabled', 'give'),
94 94
 							),
95 95
 						),
96 96
 						array(
97
-							'name'    => __( 'Enable reCAPTCHA', 'give' ),
98
-							'desc'    => __( 'Would you like to enable the reCAPTCHA feature?', 'give' ),
97
+							'name'    => __('Enable reCAPTCHA', 'give'),
98
+							'desc'    => __('Would you like to enable the reCAPTCHA feature?', 'give'),
99 99
 							'id'      => 'enable_recaptcha',
100 100
 							'type'    => 'radio_inline',
101 101
 							'default' => 'disabled',
102 102
 							'options' => array(
103
-								'enabled'  => __( 'Enabled', 'give' ),
104
-								'disabled' => __( 'Disabled', 'give' ),
103
+								'enabled'  => __('Enabled', 'give'),
104
+								'disabled' => __('Disabled', 'give'),
105 105
 							),
106 106
 						),
107 107
 						array(
108 108
 							'id'      => 'recaptcha_key',
109
-							'name'    => __( 'reCAPTCHA Site Key', 'give' ),
109
+							'name'    => __('reCAPTCHA Site Key', 'give'),
110 110
 							/* translators: %s: https://www.google.com/recaptcha/ */
111
-							'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 and paste your reCAPTCHA site key here. The reCAPTCHA uses Google\'s user-friendly single click verification method.', 'give' ), esc_url( 'http://docs.givewp.com/recaptcha' ) ),
111
+							'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 and paste your reCAPTCHA site key here. The reCAPTCHA uses Google\'s user-friendly single click verification method.', 'give'), esc_url('http://docs.givewp.com/recaptcha')),
112 112
 							'default' => '',
113 113
 							'type'    => 'text',
114 114
 						),
115 115
 						array(
116 116
 							'id'      => 'recaptcha_secret',
117
-							'name'    => __( 'reCAPTCHA Secret Key', 'give' ),
118
-							'desc'    => __( 'Please paste the reCAPTCHA secret key here from your  reCAPTCHA API Keys panel.', 'give' ),
117
+							'name'    => __('reCAPTCHA Secret Key', 'give'),
118
+							'desc'    => __('Please paste the reCAPTCHA secret key here from your  reCAPTCHA API Keys panel.', 'give'),
119 119
 							'default' => '',
120 120
 							'type'    => 'text',
121 121
 						),
122 122
 						array(
123
-							'name'  => __( 'Access Control Docs Link', 'give' ),
123
+							'name'  => __('Access Control Docs Link', 'give'),
124 124
 							'id'    => 'access_control_docs_link',
125
-							'url'   => esc_url( 'http://docs.givewp.com/settings-access-control' ),
126
-							'title' => __( 'Access Control', 'give' ),
125
+							'url'   => esc_url('http://docs.givewp.com/settings-access-control'),
126
+							'title' => __('Access Control', 'give'),
127 127
 							'type'  => 'give_docs_link',
128 128
 						),
129 129
 						array(
@@ -134,8 +134,8 @@  discard block
 block discarded – undo
134 134
 					break;
135 135
 
136 136
 				case 'currency-settings' :
137
-					$currency_position_before = __( 'Before - %s&#x200e;10', 'give' );
138
-					$currency_position_after  = __( 'After - 10%s&#x200f;', 'give' );
137
+					$currency_position_before = __('Before - %s&#x200e;10', 'give');
138
+					$currency_position_after  = __('After - 10%s&#x200f;', 'give');
139 139
 
140 140
 					$settings = array(
141 141
 						// Section 2: Currency
@@ -144,14 +144,14 @@  discard block
 block discarded – undo
144 144
 							'id'   => 'give_title_general_settings_2',
145 145
 						),
146 146
 						array(
147
-							'name' => __( 'Currency Settings', 'give' ),
147
+							'name' => __('Currency Settings', 'give'),
148 148
 							'desc' => '',
149 149
 							'type' => 'give_title',
150 150
 							'id'   => 'give_title_general_settings_2',
151 151
 						),
152 152
 						array(
153
-							'name'    => __( 'Currency', 'give' ),
154
-							'desc'    => __( 'The donation currency. Note that some payment gateways have currency restrictions.', 'give' ),
153
+							'name'    => __('Currency', 'give'),
154
+							'desc'    => __('The donation currency. Note that some payment gateways have currency restrictions.', 'give'),
155 155
 							'id'      => 'currency',
156 156
 							'class'   => 'give-select-chosen',
157 157
 							'type'    => 'select',
@@ -159,51 +159,51 @@  discard block
 block discarded – undo
159 159
 							'default' => 'USD',
160 160
 						),
161 161
 						array(
162
-							'name'       => __( 'Currency Position', 'give' ),
163
-							'desc'       => __( 'The position of the currency symbol.', 'give' ),
162
+							'name'       => __('Currency Position', 'give'),
163
+							'desc'       => __('The position of the currency symbol.', 'give'),
164 164
 							'id'         => 'currency_position',
165 165
 							'type'       => 'select',
166 166
 							'options'    => array(
167 167
 								/* translators: %s: currency symbol */
168
-								'before' => sprintf( $currency_position_before, give_currency_symbol( give_get_currency() ) ),
168
+								'before' => sprintf($currency_position_before, give_currency_symbol(give_get_currency())),
169 169
 								/* translators: %s: currency symbol */
170
-								'after'  => sprintf( $currency_position_after, give_currency_symbol( give_get_currency() ) ),
170
+								'after'  => sprintf($currency_position_after, give_currency_symbol(give_get_currency())),
171 171
 							),
172 172
 							'default'    => 'before',
173 173
 							'attributes' => array(
174
-								'data-before-template' => sprintf( $currency_position_before, '{currency_pos}' ),
175
-								'data-after-template'  => sprintf( $currency_position_after, '{currency_pos}' ),
174
+								'data-before-template' => sprintf($currency_position_before, '{currency_pos}'),
175
+								'data-after-template'  => sprintf($currency_position_after, '{currency_pos}'),
176 176
 							),
177 177
 						),
178 178
 						array(
179
-							'name'    => __( 'Thousands Separator', 'give' ),
180
-							'desc'    => __( 'The symbol (typically , or .) to separate thousands.', 'give' ),
179
+							'name'    => __('Thousands Separator', 'give'),
180
+							'desc'    => __('The symbol (typically , or .) to separate thousands.', 'give'),
181 181
 							'id'      => 'thousands_separator',
182 182
 							'type'    => 'text',
183 183
 							'default' => ',',
184 184
 							'css'     => 'width:12em;',
185 185
 						),
186 186
 						array(
187
-							'name'    => __( 'Decimal Separator', 'give' ),
188
-							'desc'    => __( 'The symbol (usually , or .) to separate decimal points.', 'give' ),
187
+							'name'    => __('Decimal Separator', 'give'),
188
+							'desc'    => __('The symbol (usually , or .) to separate decimal points.', 'give'),
189 189
 							'id'      => 'decimal_separator',
190 190
 							'type'    => 'text',
191 191
 							'default' => '.',
192 192
 							'css'     => 'width:12em;',
193 193
 						),
194 194
 						array(
195
-							'name'    => __( 'Number of Decimals', 'give' ),
196
-							'desc'    => __( 'The number of decimal points displayed in amounts.', 'give' ),
195
+							'name'    => __('Number of Decimals', 'give'),
196
+							'desc'    => __('The number of decimal points displayed in amounts.', 'give'),
197 197
 							'id'      => 'number_decimals',
198 198
 							'type'    => 'text',
199 199
 							'default' => 2,
200 200
 							'css'     => 'width:12em;',
201 201
 						),
202 202
 						array(
203
-							'name'  => __( 'Currency Options Docs Link', 'give' ),
203
+							'name'  => __('Currency Options Docs Link', 'give'),
204 204
 							'id'    => 'currency_settings_docs_link',
205
-							'url'   => esc_url( 'http://docs.givewp.com/settings-currency' ),
206
-							'title' => __( 'Currency Settings', 'give' ),
205
+							'url'   => esc_url('http://docs.givewp.com/settings-currency'),
206
+							'title' => __('Currency Settings', 'give'),
207 207
 							'type'  => 'give_docs_link',
208 208
 						),
209 209
 						array(
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
 					$country = give_get_country();
220 220
 
221 221
 					// get the list of the states of which default country is selected.
222
-					$states = give_get_states( $country );
222
+					$states = give_get_states($country);
223 223
 
224 224
 					// Get the country list that does not have any states init.
225 225
 					$no_states_country = give_no_states_country_list();
@@ -231,58 +231,58 @@  discard block
 block discarded – undo
231 231
 							'id'   => 'give_title_general_settings_1',
232 232
 						),
233 233
 						array(
234
-							'name' => __( 'General Settings', 'give' ),
234
+							'name' => __('General Settings', 'give'),
235 235
 							'desc' => '',
236 236
 							'type' => 'give_title',
237 237
 							'id'   => 'give_title_general_settings_1',
238 238
 						),
239 239
 						array(
240
-							'name'       => __( 'Success Page', 'give' ),
240
+							'name'       => __('Success Page', 'give'),
241 241
 							/* translators: %s: [give_receipt] */
242
-							'desc'       => sprintf( __( 'The page donors are sent to after completing their donations. The %s shortcode should be on this page.', 'give' ), '<code>[give_receipt]</code>' ),
242
+							'desc'       => sprintf(__('The page donors are sent to after completing their donations. The %s shortcode should be on this page.', 'give'), '<code>[give_receipt]</code>'),
243 243
 							'id'         => 'success_page',
244 244
 							'class'      => 'give-select give-select-chosen',
245 245
 							'type'       => 'select',
246
-							'options'    => give_cmb2_get_post_options( array(
246
+							'options'    => give_cmb2_get_post_options(array(
247 247
 								'post_type'   => 'page',
248 248
 								'numberposts' => 30,
249
-							) ),
249
+							)),
250 250
 							'attributes' => array(
251 251
 								'data-search-type' => 'pages'
252 252
 							)
253 253
 						),
254 254
 						array(
255
-							'name'       => __( 'Failed Donation Page', 'give' ),
256
-							'desc'       => __( 'The page donors are sent to if their donation is cancelled or fails.', 'give' ),
255
+							'name'       => __('Failed Donation Page', 'give'),
256
+							'desc'       => __('The page donors are sent to if their donation is cancelled or fails.', 'give'),
257 257
 							'class'      => 'give-select give-select-chosen',
258 258
 							'id'         => 'failure_page',
259 259
 							'type'       => 'select',
260
-							'options'    => give_cmb2_get_post_options( array(
260
+							'options'    => give_cmb2_get_post_options(array(
261 261
 								'post_type'   => 'page',
262 262
 								'numberposts' => 30,
263
-							) ),
263
+							)),
264 264
 							'attributes' => array(
265 265
 								'data-search-type' => 'pages'
266 266
 							)
267 267
 						),
268 268
 						array(
269
-							'name'       => __( 'Donation History Page', 'give' ),
269
+							'name'       => __('Donation History Page', 'give'),
270 270
 							/* translators: %s: [donation_history] */
271
-							'desc'       => sprintf( __( 'The page showing a complete donation history for the current user. The %s shortcode should be on this page.', 'give' ), '<code>[donation_history]</code>' ),
271
+							'desc'       => sprintf(__('The page showing a complete donation history for the current user. The %s shortcode should be on this page.', 'give'), '<code>[donation_history]</code>'),
272 272
 							'id'         => 'history_page',
273 273
 							'class'      => 'give-select give-select-chosen',
274 274
 							'type'       => 'select',
275
-							'options'    => give_cmb2_get_post_options( array(
275
+							'options'    => give_cmb2_get_post_options(array(
276 276
 								'post_type'   => 'page',
277 277
 								'numberposts' => 30,
278
-							) ),
278
+							)),
279 279
 							'attributes' => array(
280 280
 								'data-search-type' => 'pages'
281 281
 							)
282 282
 						),
283 283
 						array(
284
-							'name'    => __( 'Base Country', 'give' ),
285
-							'desc'    => __( 'The country your site operates from.', 'give' ),
284
+							'name'    => __('Base Country', 'give'),
285
+							'desc'    => __('The country your site operates from.', 'give'),
286 286
 							'id'      => 'base_country',
287 287
 							'type'    => 'select',
288 288
 							'options' => give_get_country_list(),
@@ -293,18 +293,18 @@  discard block
 block discarded – undo
293 293
 						 * @since 1.8.14
294 294
 						 */
295 295
 						array(
296
-							'wrapper_class' => ( array_key_exists( $country, $no_states_country ) ? 'give-hidden' : '' ),
297
-							'name'          => __( 'Base State/Province', 'give' ),
298
-							'desc'          => __( 'The state/province your site operates from.', 'give' ),
296
+							'wrapper_class' => (array_key_exists($country, $no_states_country) ? 'give-hidden' : ''),
297
+							'name'          => __('Base State/Province', 'give'),
298
+							'desc'          => __('The state/province your site operates from.', 'give'),
299 299
 							'id'            => 'base_state',
300
-							'type'          => ( empty( $states ) ? 'text' : 'select' ),
300
+							'type'          => (empty($states) ? 'text' : 'select'),
301 301
 							'options'       => $states,
302 302
 						),
303 303
 						array(
304
-							'name'  => __( 'General Options Docs Link', 'give' ),
304
+							'name'  => __('General Options Docs Link', 'give'),
305 305
 							'id'    => 'general_options_docs_link',
306
-							'url'   => esc_url( 'http://docs.givewp.com/settings-general' ),
307
-							'title' => __( 'General Options', 'give' ),
306
+							'url'   => esc_url('http://docs.givewp.com/settings-general'),
307
+							'title' => __('General Options', 'give'),
308 308
 							'type'  => 'give_docs_link',
309 309
 						),
310 310
 						array(
@@ -324,48 +324,48 @@  discard block
 block discarded – undo
324 324
 							'type' => 'title'
325 325
 						),
326 326
 						array(
327
-							'name'    => __( 'Sequential Ordering', 'give' ),
327
+							'name'    => __('Sequential Ordering', 'give'),
328 328
 							'id'      => "{$current_section}_status",
329
-							'desc'    => __( 'Custom donation numbering that increases sequentially to prevent gaps between donation IDs. If disabled, then donation numbers are generated from WordPress post IDs, which will result in gaps between numbers.', 'give' ),
329
+							'desc'    => __('Custom donation numbering that increases sequentially to prevent gaps between donation IDs. If disabled, then donation numbers are generated from WordPress post IDs, which will result in gaps between numbers.', 'give'),
330 330
 							'type'    => 'radio_inline',
331 331
 							'default' => 'disabled',
332 332
 							'options' => array(
333
-								'enabled'  => __( 'Enabled', 'give' ),
334
-								'disabled' => __( 'Disabled', 'give' )
333
+								'enabled'  => __('Enabled', 'give'),
334
+								'disabled' => __('Disabled', 'give')
335 335
 							)
336 336
 						),
337 337
 						array(
338
-							'name' => __( 'Next Donation Number', 'give' ),
338
+							'name' => __('Next Donation Number', 'give'),
339 339
 							'id'   => "{$current_section}_number",
340 340
 							'desc' => sprintf(
341
-								__( 'The number used to generate the next donation ID. This value must be greater than or equal to %s to avoid conflicts with existing donation IDs.', 'give' ),
342
-								'<code>' . Give()->seq_donation_number->get_next_number() . '</code>'
341
+								__('The number used to generate the next donation ID. This value must be greater than or equal to %s to avoid conflicts with existing donation IDs.', 'give'),
342
+								'<code>'.Give()->seq_donation_number->get_next_number().'</code>'
343 343
 							),
344 344
 							'type' => 'number',
345 345
 						),
346 346
 						array(
347
-							'name' => __( 'Number Prefix', 'give' ),
347
+							'name' => __('Number Prefix', 'give'),
348 348
 							'id'   => "{$current_section}_number_prefix",
349 349
 							'desc' => sprintf(
350
-								__( 'The prefix appended to all sequential donation numbers. Spaces are replaced by %s.', 'give' ),
350
+								__('The prefix appended to all sequential donation numbers. Spaces are replaced by %s.', 'give'),
351 351
 								'<code>-</code>'
352 352
 							),
353 353
 							'type' => 'text',
354 354
 						),
355 355
 						array(
356
-							'name' => __( 'Number Suffix', 'give' ),
356
+							'name' => __('Number Suffix', 'give'),
357 357
 							'id'   => "{$current_section}_number_suffix",
358 358
 							'desc' => sprintf(
359
-								__( 'The suffix appended to all sequential donation numbers. Spaces are replaced by %s.', 'give' ),
359
+								__('The suffix appended to all sequential donation numbers. Spaces are replaced by %s.', 'give'),
360 360
 								'<code>-</code>'
361 361
 							),
362 362
 							'type' => 'text',
363 363
 						),
364 364
 						array(
365
-							'name'    => __( 'Number Padding', 'give' ),
365
+							'name'    => __('Number Padding', 'give'),
366 366
 							'id'      => "{$current_section}_number_padding",
367 367
 							'desc'    => sprintf(
368
-								__( 'The minimum number of digits in the sequential donation number. Enter %s to display %s as %s.', 'give' ),
368
+								__('The minimum number of digits in the sequential donation number. Enter %s to display %s as %s.', 'give'),
369 369
 								'<code>4</code>',
370 370
 								'<code>1</code>',
371 371
 								'<code>0001</code>'
@@ -374,16 +374,16 @@  discard block
 block discarded – undo
374 374
 							'default' => '0',
375 375
 						),
376 376
 						array(
377
-							'name' => __( 'Donation ID Preview', 'give' ),
377
+							'name' => __('Donation ID Preview', 'give'),
378 378
 							'id'   => "{$current_section}_preview",
379 379
 							'type' => 'give_sequential_donation_code_preview',
380
-							'desc' => __( 'A preview of the next sequential donation ID. This preview cannot be edited directly as it is generated from the settings above.', 'give' ),
380
+							'desc' => __('A preview of the next sequential donation ID. This preview cannot be edited directly as it is generated from the settings above.', 'give'),
381 381
 						),
382 382
 						array(
383
-							'name'  => __( 'Sequential Ordering Docs Link', 'give' ),
383
+							'name'  => __('Sequential Ordering Docs Link', 'give'),
384 384
 							'id'    => "{$current_section}_doc link",
385
-							'url'   => esc_url( 'http://docs.givewp.com/settings-sequential-ordering' ),
386
-							'title' => __( 'Sequential Ordering', 'give' ),
385
+							'url'   => esc_url('http://docs.givewp.com/settings-sequential-ordering'),
386
+							'title' => __('Sequential Ordering', 'give'),
387 387
 							'type'  => 'give_docs_link',
388 388
 						),
389 389
 						array(
@@ -397,7 +397,7 @@  discard block
 block discarded – undo
397 397
 			 * Filter the general settings.
398 398
 			 * Backward compatibility: Please do not use this filter. This filter is deprecated in 1.8
399 399
 			 */
400
-			$settings = apply_filters( 'give_settings_general', $settings );
400
+			$settings = apply_filters('give_settings_general', $settings);
401 401
 
402 402
 			/**
403 403
 			 * Filter the settings.
@@ -406,7 +406,7 @@  discard block
 block discarded – undo
406 406
 			 *
407 407
 			 * @param  array $settings
408 408
 			 */
409
-			$settings = apply_filters( 'give_get_settings_' . $this->id, $settings );
409
+			$settings = apply_filters('give_get_settings_'.$this->id, $settings);
410 410
 
411 411
 			// Output.
412 412
 			return $settings;
@@ -420,13 +420,13 @@  discard block
 block discarded – undo
420 420
 		 */
421 421
 		public function get_sections() {
422 422
 			$sections = array(
423
-				'general-settings'    => __( 'General', 'give' ),
424
-				'currency-settings'   => __( 'Currency', 'give' ),
425
-				'access-control'      => __( 'Access Control', 'give' ),
426
-				'sequential-ordering' => __( 'Sequential Ordering', 'give' ),
423
+				'general-settings'    => __('General', 'give'),
424
+				'currency-settings'   => __('Currency', 'give'),
425
+				'access-control'      => __('Access Control', 'give'),
426
+				'sequential-ordering' => __('Sequential Ordering', 'give'),
427 427
 			);
428 428
 
429
-			return apply_filters( 'give_get_sections_' . $this->id, $sections );
429
+			return apply_filters('give_get_sections_'.$this->id, $sections);
430 430
 		}
431 431
 
432 432
 
@@ -442,23 +442,23 @@  discard block
 block discarded – undo
442 442
 		 *
443 443
 		 * @return bool
444 444
 		 */
445
-		public function __give_change_donation_stating_number( $update_options, $option_name, $old_options ) {
446
-			if ( ! isset( $_POST['sequential-ordering_number'] ) ) {
445
+		public function __give_change_donation_stating_number($update_options, $option_name, $old_options) {
446
+			if ( ! isset($_POST['sequential-ordering_number'])) {
447 447
 				return false;
448 448
 			}
449 449
 
450
-			if ( ( $next_number = Give()->seq_donation_number->get_next_number() ) > $update_options['sequential-ordering_number'] ) {
451
-				give_update_option( 'sequential-ordering_number', $next_number );
450
+			if (($next_number = Give()->seq_donation_number->get_next_number()) > $update_options['sequential-ordering_number']) {
451
+				give_update_option('sequential-ordering_number', $next_number);
452 452
 
453 453
 				Give_Admin_Settings::add_error(
454 454
 					'give-invalid-sequential-starting-number',
455 455
 					sprintf(
456
-						__( 'Next Donation Number must be equal to or larger than %s to avoid conflicts with existing donation IDs.', 'give' ),
456
+						__('Next Donation Number must be equal to or larger than %s to avoid conflicts with existing donation IDs.', 'give'),
457 457
 						$next_number
458 458
 					)
459 459
 				);
460
-			} elseif ( $update_options['sequential-ordering_number'] !== $old_options['sequential-ordering_number'] ) {
461
-				update_option( '_give_reset_sequential_number', 1 );
460
+			} elseif ($update_options['sequential-ordering_number'] !== $old_options['sequential-ordering_number']) {
461
+				update_option('_give_reset_sequential_number', 1);
462 462
 			}
463 463
 
464 464
 			return true;
@@ -473,16 +473,16 @@  discard block
 block discarded – undo
473 473
 		 *
474 474
 		 * @param $field
475 475
 		 */
476
-		public function __render_give_sequential_donation_code_preview( $field ) {
476
+		public function __render_give_sequential_donation_code_preview($field) {
477 477
 			?>
478
-			<tr valign="top" <?php echo ! empty( $field['wrapper_class'] ) ? 'class="' . $field['wrapper_class'] . '"' : '' ?>>
478
+			<tr valign="top" <?php echo ! empty($field['wrapper_class']) ? 'class="'.$field['wrapper_class'].'"' : '' ?>>
479 479
 				<th scope="row" class="titledesc">
480 480
 					<label
481
-						for="<?php echo esc_attr( $field['id'] ); ?>"><?php echo esc_html( $field['name'] ) ?></label>
481
+						for="<?php echo esc_attr($field['id']); ?>"><?php echo esc_html($field['name']) ?></label>
482 482
 				</th>
483 483
 				<td class="give-forminp">
484
-					<input id="<?php echo esc_attr( $field['id'] ); ?>" class="give-input-field" type="text" disabled>
485
-					<?php echo Give_Admin_Settings::get_field_description( $field ); ?>
484
+					<input id="<?php echo esc_attr($field['id']); ?>" class="give-input-field" type="text" disabled>
485
+					<?php echo Give_Admin_Settings::get_field_description($field); ?>
486 486
 				</td>
487 487
 			</tr>
488 488
 			<?php
@@ -497,16 +497,16 @@  discard block
 block discarded – undo
497 497
 		 *
498 498
 		 * @param $field
499 499
 		 */
500
-		public function __render_give_unlock_all_settings( $field ) {
500
+		public function __render_give_unlock_all_settings($field) {
501 501
 			?>
502
-			<tr valign="top" <?php echo ! empty( $field['wrapper_class'] ) ? 'class="' . $field['wrapper_class'] . '"' : '' ?>>
502
+			<tr valign="top" <?php echo ! empty($field['wrapper_class']) ? 'class="'.$field['wrapper_class'].'"' : '' ?>>
503 503
 				<th scope="row" class="titledesc">
504 504
 					<label
505
-						for="<?php echo esc_attr( $field['id'] ); ?>"><?php echo esc_html( $field['name'] ) ?></label>
505
+						for="<?php echo esc_attr($field['id']); ?>"><?php echo esc_html($field['name']) ?></label>
506 506
 				</th>
507 507
 				<td class="give-forminp">
508
-					<?php echo Give_Admin_Settings::get_field_description( $field ); ?>
509
-					<a href="" id="<?php echo $field['id']; ?>" data-message="<?php echo $field['confirmation_msg'] ?>"><?php echo __( 'Unlock all settings', 'give' ); ?></a>
508
+					<?php echo Give_Admin_Settings::get_field_description($field); ?>
509
+					<a href="" id="<?php echo $field['id']; ?>" data-message="<?php echo $field['confirmation_msg'] ?>"><?php echo __('Unlock all settings', 'give'); ?></a>
510 510
 				</td>
511 511
 			</tr>
512 512
 			<?php
Please login to merge, or discard this patch.
includes/admin/settings/class-settings-display.php 1 patch
Spacing   +82 added lines, -82 removed lines patch added patch discarded remove patch
@@ -9,11 +9,11 @@  discard block
 block discarded – undo
9 9
  * @since       1.8
10 10
  */
11 11
 
12
-if ( ! defined( 'ABSPATH' ) ) {
12
+if ( ! defined('ABSPATH')) {
13 13
 	exit; // Exit if accessed directly
14 14
 }
15 15
 
16
-if ( ! class_exists( 'Give_Settings_Display' ) ) :
16
+if ( ! class_exists('Give_Settings_Display')) :
17 17
 
18 18
 	/**
19 19
 	 * Give_Settings_Display.
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 		 */
28 28
 		public function __construct() {
29 29
 			$this->id    = 'display';
30
-			$this->label = __( 'Display Options', 'give' );
30
+			$this->label = __('Display Options', 'give');
31 31
 
32 32
 			$this->default_tab = 'display-settings';
33 33
 
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 			$settings        = array();
45 45
 			$current_section = give_get_current_setting_section();
46 46
 
47
-			switch ( $current_section ) {
47
+			switch ($current_section) {
48 48
 				case 'display-settings' :
49 49
 					$settings = array(
50 50
 						// Section 1: Display
@@ -53,67 +53,67 @@  discard block
 block discarded – undo
53 53
 							'type' => 'title',
54 54
 						),
55 55
 						array(
56
-							'name'    => __( 'Default Give Styles', 'give' ),
57
-							'desc'    => __( 'You can disable Give\'s default styles for donation forms and other frontend elements.', 'give' ),
56
+							'name'    => __('Default Give Styles', 'give'),
57
+							'desc'    => __('You can disable Give\'s default styles for donation forms and other frontend elements.', 'give'),
58 58
 							'id'      => 'css',
59 59
 							'type'    => 'radio_inline',
60 60
 							'default' => 'enabled',
61 61
 							'options' => array(
62
-								'enabled'  => __( 'Enabled', 'give' ),
63
-								'disabled' => __( 'Disabled', 'give' ),
62
+								'enabled'  => __('Enabled', 'give'),
63
+								'disabled' => __('Disabled', 'give'),
64 64
 							),
65 65
 						),
66 66
 						array(
67
-							'name'    => __( 'Floating Labels', 'give' ),
67
+							'name'    => __('Floating Labels', 'give'),
68 68
 							/* translators: %s: http://docs.givewp.com/form-floating-labels */
69
-							'desc'    => sprintf( wp_kses( __( '<a href="%s" target="_blank">Floating labels</a> allows your labels to be inset within the form fields to provide a cleaner form appearance. Note that if the "Disable CSS" option is enabled, you will need to style the floating labels yourself.', 'give' ), array(
69
+							'desc'    => sprintf(wp_kses(__('<a href="%s" target="_blank">Floating labels</a> allows your labels to be inset within the form fields to provide a cleaner form appearance. Note that if the "Disable CSS" option is enabled, you will need to style the floating labels yourself.', 'give'), array(
70 70
 								'a' => array(
71 71
 									'href'   => array(),
72 72
 									'target' => array(),
73 73
 								),
74
-							) ), esc_url( 'http://docs.givewp.com/form-floating-labels' ) ),
74
+							)), esc_url('http://docs.givewp.com/form-floating-labels')),
75 75
 							'id'      => 'floatlabels',
76 76
 							'type'    => 'radio_inline',
77 77
 							'default' => 'disabled',
78 78
 							'options' => array(
79
-								'enabled'  => __( 'Enabled', 'give' ),
80
-								'disabled' => __( 'Disabled', 'give' ),
79
+								'enabled'  => __('Enabled', 'give'),
80
+								'disabled' => __('Disabled', 'give'),
81 81
 							),
82 82
 						),
83 83
 						array(
84
-							'name'    => __( 'Welcome Screen', 'give' ),
84
+							'name'    => __('Welcome Screen', 'give'),
85 85
 							/* translators: %s: about page URL */
86
-							'desc'    => sprintf( wp_kses( __( 'Enable this option if you would like to disable the <a href="%s" target="_blank">Give Welcome screen</a> that displays each time Give is activated or updated.', 'give' ), array(
86
+							'desc'    => sprintf(wp_kses(__('Enable this option if you would like to disable the <a href="%s" target="_blank">Give Welcome screen</a> that displays each time Give is activated or updated.', 'give'), array(
87 87
 								'a' => array(
88 88
 									'href'   => array(),
89 89
 									'target' => array(),
90 90
 								),
91
-							) ), esc_url( admin_url( 'index.php?page=give-about' ) ) ),
91
+							)), esc_url(admin_url('index.php?page=give-about'))),
92 92
 							'id'      => 'welcome',
93 93
 							'type'    => 'radio_inline',
94 94
 							'default' => 'enabled',
95 95
 							'options' => array(
96
-								'enabled'  => __( 'Enabled', 'give' ),
97
-								'disabled' => __( 'Disabled', 'give' ),
96
+								'enabled'  => __('Enabled', 'give'),
97
+								'disabled' => __('Disabled', 'give'),
98 98
 							),
99 99
 						),
100 100
 						array(
101
-							'name'    => __( 'Company Donations', 'give' ),
102
-							'desc'    => __( 'Do you want a Company field to appear after First Name and Last Name?', 'give' ),
101
+							'name'    => __('Company Donations', 'give'),
102
+							'desc'    => __('Do you want a Company field to appear after First Name and Last Name?', 'give'),
103 103
 							'id'      => 'company_field',
104 104
 							'type'    => 'radio_inline',
105 105
 							'default' => 'disabled',
106 106
 							'options' => array(
107
-								'disabled' => __( 'Disabled', 'give' ),
108
-								'required' => __( 'Required', 'give' ),
109
-								'optional' => __( 'Optional', 'give' ),
107
+								'disabled' => __('Disabled', 'give'),
108
+								'required' => __('Required', 'give'),
109
+								'optional' => __('Optional', 'give'),
110 110
 							),
111 111
 						),
112 112
 						array(
113
-							'name'  => __( 'Display Settings Docs Link', 'give' ),
113
+							'name'  => __('Display Settings Docs Link', 'give'),
114 114
 							'id'    => 'display_settings_docs_link',
115
-							'url'   => esc_url( 'http://docs.givewp.com/form-display-options' ),
116
-							'title' => __( 'Display Options Settings', 'give' ),
115
+							'url'   => esc_url('http://docs.givewp.com/form-display-options'),
116
+							'title' => __('Display Options Settings', 'give'),
117 117
 							'type'  => 'give_docs_link',
118 118
 						),
119 119
 						array(
@@ -130,78 +130,78 @@  discard block
 block discarded – undo
130 130
 							'type' => 'title',
131 131
 						),
132 132
 						array(
133
-							'name'    => __( 'Form Single Views', 'give' ),
134
-							'desc'    => __( 'By default, all donation form have single views enabled which creates a specific URL on your website for that form. This option disables the singular posts from being publicly viewable. Note: you will need to embed forms using a shortcode or widget if enabled.', 'give' ),
133
+							'name'    => __('Form Single Views', 'give'),
134
+							'desc'    => __('By default, all donation form have single views enabled which creates a specific URL on your website for that form. This option disables the singular posts from being publicly viewable. Note: you will need to embed forms using a shortcode or widget if enabled.', 'give'),
135 135
 							'id'      => 'forms_singular',
136 136
 							'type'    => 'radio_inline',
137 137
 							'default' => 'enabled',
138 138
 							'options' => array(
139
-								'enabled'  => __( 'Enabled', 'give' ),
140
-								'disabled' => __( 'Disabled', 'give' ),
139
+								'enabled'  => __('Enabled', 'give'),
140
+								'disabled' => __('Disabled', 'give'),
141 141
 							),
142 142
 						),
143 143
 						array(
144
-							'name'    => __( 'Form Archives', 'give' ),
145
-							'desc'    => sprintf( wp_kses( __( 'Archives pages list all the donation 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 <a href="%s">refresh your permalinks</a> after this option has been enabled.', 'give' ), array(
144
+							'name'    => __('Form Archives', 'give'),
145
+							'desc'    => sprintf(wp_kses(__('Archives pages list all the donation 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 <a href="%s">refresh your permalinks</a> after this option has been enabled.', 'give'), array(
146 146
 								'a' => array(
147 147
 									'href'   => array(),
148 148
 									'target' => array(),
149 149
 								),
150
-							) ), esc_url( admin_url( 'options-permalink.php' ) ) ),
150
+							)), esc_url(admin_url('options-permalink.php'))),
151 151
 							'id'      => 'forms_archives',
152 152
 							'type'    => 'radio_inline',
153 153
 							'default' => 'enabled',
154 154
 							'options' => array(
155
-								'enabled'  => __( 'Enabled', 'give' ),
156
-								'disabled' => __( 'Disabled', 'give' ),
155
+								'enabled'  => __('Enabled', 'give'),
156
+								'disabled' => __('Disabled', 'give'),
157 157
 							),
158 158
 						),
159 159
 						array(
160
-							'name'    => __( 'Form Excerpts', 'give' ),
161
-							'desc'    => __( 'The excerpt is an optional summary or description of a donation form; in short, a summary as to why the user should give.', 'give' ),
160
+							'name'    => __('Form Excerpts', 'give'),
161
+							'desc'    => __('The excerpt is an optional summary or description of a donation form; in short, a summary as to why the user should give.', 'give'),
162 162
 							'id'      => 'forms_excerpt',
163 163
 							'type'    => 'radio_inline',
164 164
 							'default' => 'enabled',
165 165
 							'options' => array(
166
-								'enabled'  => __( 'Enabled', 'give' ),
167
-								'disabled' => __( 'Disabled', 'give' ),
166
+								'enabled'  => __('Enabled', 'give'),
167
+								'disabled' => __('Disabled', 'give'),
168 168
 							),
169 169
 						),
170 170
 						array(
171
-							'name'    => __( 'Form Featured Image', 'give' ),
172
-							'desc'    => __( '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' ),
171
+							'name'    => __('Form Featured Image', 'give'),
172
+							'desc'    => __('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'),
173 173
 							'id'      => 'form_featured_img',
174 174
 							'type'    => 'radio_inline',
175 175
 							'default' => 'enabled',
176 176
 							'options' => array(
177
-								'enabled'  => __( 'Enabled', 'give' ),
178
-								'disabled' => __( 'Disabled', 'give' ),
177
+								'enabled'  => __('Enabled', 'give'),
178
+								'disabled' => __('Disabled', 'give'),
179 179
 							),
180 180
 						),
181 181
 						array(
182
-							'name'    => __( 'Featured Image Size', 'give' ),
183
-							'desc'    => __( '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 form\'s featured image.', 'give' ),
182
+							'name'    => __('Featured Image Size', 'give'),
183
+							'desc'    => __('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 form\'s featured image.', 'give'),
184 184
 							'id'      => 'featured_image_size',
185 185
 							'type'    => 'select',
186 186
 							'default' => 'large',
187 187
 							'options' => give_get_featured_image_sizes(),
188 188
 						),
189 189
 						array(
190
-							'name'    => __( 'Single Form Sidebar', 'give' ),
191
-							'desc'    => __( 'The sidebar allows you to add additional widgets to the Give single form view. If you don\'t plan on using the sidebar you may disable it with this option.', 'give' ),
190
+							'name'    => __('Single Form Sidebar', 'give'),
191
+							'desc'    => __('The sidebar allows you to add additional widgets to the Give single form view. If you don\'t plan on using the sidebar you may disable it with this option.', 'give'),
192 192
 							'id'      => 'form_sidebar',
193 193
 							'type'    => 'radio_inline',
194 194
 							'default' => 'enabled',
195 195
 							'options' => array(
196
-								'enabled'  => __( 'Enabled', 'give' ),
197
-								'disabled' => __( 'Disabled', 'give' ),
196
+								'enabled'  => __('Enabled', 'give'),
197
+								'disabled' => __('Disabled', 'give'),
198 198
 							),
199 199
 						),
200 200
 						array(
201
-							'name'  => __( 'Post Types Docs Link', 'give' ),
201
+							'name'  => __('Post Types Docs Link', 'give'),
202 202
 							'id'    => 'post_types_settings_docs_link',
203
-							'url'   => esc_url( 'http://docs.givewp.com/settings-post-types' ),
204
-							'title' => __( 'Post Types Settings', 'give' ),
203
+							'url'   => esc_url('http://docs.givewp.com/settings-post-types'),
204
+							'title' => __('Post Types Settings', 'give'),
205 205
 							'type'  => 'give_docs_link',
206 206
 						),
207 207
 						array(
@@ -218,32 +218,32 @@  discard block
 block discarded – undo
218 218
 							'type' => 'title',
219 219
 						),
220 220
 						array(
221
-							'name'    => __( 'Form Categories', 'give' ),
222
-							'desc'    => __( 'Enable Categories for all Give forms.', 'give' ),
221
+							'name'    => __('Form Categories', 'give'),
222
+							'desc'    => __('Enable Categories for all Give forms.', 'give'),
223 223
 							'id'      => 'categories',
224 224
 							'type'    => 'radio_inline',
225 225
 							'default' => 'disabled',
226 226
 							'options' => array(
227
-								'enabled'  => __( 'Enabled', 'give' ),
228
-								'disabled' => __( 'Disabled', 'give' ),
227
+								'enabled'  => __('Enabled', 'give'),
228
+								'disabled' => __('Disabled', 'give'),
229 229
 							),
230 230
 						),
231 231
 						array(
232
-							'name'    => __( 'Form Tags', 'give' ),
233
-							'desc'    => __( 'Enable Tags for all Give forms.', 'give' ),
232
+							'name'    => __('Form Tags', 'give'),
233
+							'desc'    => __('Enable Tags for all Give forms.', 'give'),
234 234
 							'id'      => 'tags',
235 235
 							'type'    => 'radio_inline',
236 236
 							'default' => 'disabled',
237 237
 							'options' => array(
238
-								'enabled'  => __( 'Enabled', 'give' ),
239
-								'disabled' => __( 'Disabled', 'give' ),
238
+								'enabled'  => __('Enabled', 'give'),
239
+								'disabled' => __('Disabled', 'give'),
240 240
 							),
241 241
 						),
242 242
 						array(
243
-							'name'  => __( 'Taxonomies Docs Link', 'give' ),
243
+							'name'  => __('Taxonomies Docs Link', 'give'),
244 244
 							'id'    => 'taxonomies_settings_docs_link',
245
-							'url'   => esc_url( 'http://docs.givewp.com/settings-taxonomies' ),
246
-							'title' => __( 'Taxonomies Settings', 'give' ),
245
+							'url'   => esc_url('http://docs.givewp.com/settings-taxonomies'),
246
+							'title' => __('Taxonomies Settings', 'give'),
247 247
 							'type'  => 'give_docs_link',
248 248
 						),
249 249
 						array(
@@ -260,36 +260,36 @@  discard block
 block discarded – undo
260 260
 							'type' => 'title',
261 261
 						),
262 262
 						array(
263
-							'name'    => __( 'Terms and Conditions', 'give' ),
264
-							'desc'    => __( 'Would you like donors to require that donors agree to your terms when donating? Note: You can enable/disable this option and customize the terms per form as well.', 'give' ),
263
+							'name'    => __('Terms and Conditions', 'give'),
264
+							'desc'    => __('Would you like donors to require that donors agree to your terms when donating? Note: You can enable/disable this option and customize the terms per form as well.', 'give'),
265 265
 							'id'      => 'terms',
266 266
 							'type'    => 'radio_inline',
267 267
 							'default' => 'disabled',
268 268
 							'options' => array(
269
-								'enabled'  => __( 'Enabled', 'give' ),
270
-								'disabled' => __( 'Disabled', 'give' ),
269
+								'enabled'  => __('Enabled', 'give'),
270
+								'disabled' => __('Disabled', 'give'),
271 271
 							),
272 272
 						),
273 273
 						array(
274
-							'name'       => __( 'Agree to Terms Label', 'give' ),
275
-							'desc'       => __( 'The label shown next to the agree to terms check box. Customize it here or leave blank to use the default placeholder text. Note: You can customize the label per form.', 'give' ),
274
+							'name'       => __('Agree to Terms Label', 'give'),
275
+							'desc'       => __('The label shown next to the agree to terms check box. Customize it here or leave blank to use the default placeholder text. Note: You can customize the label per form.', 'give'),
276 276
 							'id'         => 'agree_to_terms_label',
277 277
 							'attributes' => array(
278
-								'placeholder' => esc_attr__( 'Agree to Terms?', 'give' ),
278
+								'placeholder' => esc_attr__('Agree to Terms?', 'give'),
279 279
 							),
280 280
 							'type'       => 'text',
281 281
 						),
282 282
 						array(
283
-							'name' => __( 'Agreement Text', 'give' ),
284
-							'desc' => __( 'This is the actual text which the user will be asked to agree to in order to donate. Note: You can customize the content per form as needed.', 'give' ),
283
+							'name' => __('Agreement Text', 'give'),
284
+							'desc' => __('This is the actual text which the user will be asked to agree to in order to donate. Note: You can customize the content per form as needed.', 'give'),
285 285
 							'id'   => 'agreement_text',
286 286
 							'type' => 'wysiwyg',
287 287
 						),
288 288
 						array(
289
-							'name'  => __( 'Terms and Conditions Docs Link', 'give' ),
289
+							'name'  => __('Terms and Conditions Docs Link', 'give'),
290 290
 							'id'    => 'terms_settings_docs_link',
291
-							'url'   => esc_url( 'http://docs.givewp.com/settings-terms' ),
292
-							'title' => __( 'Terms and Conditions Settings', 'give' ),
291
+							'url'   => esc_url('http://docs.givewp.com/settings-terms'),
292
+							'title' => __('Terms and Conditions Settings', 'give'),
293 293
 							'type'  => 'give_docs_link',
294 294
 						),
295 295
 						array(
@@ -304,7 +304,7 @@  discard block
 block discarded – undo
304 304
 			 * Filter the display options settings.
305 305
 			 * Backward compatibility: Please do not use this filter. This filter is deprecated in 1.8
306 306
 			 */
307
-			$settings = apply_filters( 'give_settings_display', $settings );
307
+			$settings = apply_filters('give_settings_display', $settings);
308 308
 
309 309
 			/**
310 310
 			 * Filter the settings.
@@ -313,7 +313,7 @@  discard block
 block discarded – undo
313 313
 			 *
314 314
 			 * @param  array $settings
315 315
 			 */
316
-			$settings = apply_filters( 'give_get_settings_' . $this->id, $settings );
316
+			$settings = apply_filters('give_get_settings_'.$this->id, $settings);
317 317
 
318 318
 			// Output.
319 319
 			return $settings;
@@ -327,13 +327,13 @@  discard block
 block discarded – undo
327 327
 		 */
328 328
 		public function get_sections() {
329 329
 			$sections = array(
330
-				'display-settings'    => __( 'Display', 'give' ),
331
-				'post-types'          => __( 'Post Types', 'give' ),
332
-				'taxonomies'          => __( 'Taxonomies', 'give' ),
333
-				'term-and-conditions' => __( 'Terms and Conditions', 'give' ),
330
+				'display-settings'    => __('Display', 'give'),
331
+				'post-types'          => __('Post Types', 'give'),
332
+				'taxonomies'          => __('Taxonomies', 'give'),
333
+				'term-and-conditions' => __('Terms and Conditions', 'give'),
334 334
 			);
335 335
 
336
-			return apply_filters( 'give_get_sections_' . $this->id, $sections );
336
+			return apply_filters('give_get_sections_'.$this->id, $sections);
337 337
 		}
338 338
 	}
339 339
 
Please login to merge, or discard this patch.
includes/admin/settings/class-settings-email.php 1 patch
Spacing   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -9,11 +9,11 @@  discard block
 block discarded – undo
9 9
  * @since       1.8
10 10
  */
11 11
 
12
-if ( ! defined( 'ABSPATH' ) ) {
12
+if ( ! defined('ABSPATH')) {
13 13
 	exit; // Exit if accessed directly
14 14
 }
15 15
 
16
-if ( ! class_exists( 'Give_Settings_Email' ) ) :
16
+if ( ! class_exists('Give_Settings_Email')) :
17 17
 
18 18
 	/**
19 19
 	 * Give_Settings_Email.
@@ -27,13 +27,13 @@  discard block
 block discarded – undo
27 27
 		 */
28 28
 		public function __construct() {
29 29
 			$this->id    = 'emails';
30
-			$this->label = esc_html__( 'Emails', 'give' );
30
+			$this->label = esc_html__('Emails', 'give');
31 31
 
32 32
 			$this->default_tab = 'email-settings';
33 33
 
34 34
 			parent::__construct();
35 35
 
36
-			add_action( 'give_admin_field_email_notification', array( $this, 'email_notification_setting' ) );
36
+			add_action('give_admin_field_email_notification', array($this, 'email_notification_setting'));
37 37
 		}
38 38
 
39 39
 		/**
@@ -46,13 +46,13 @@  discard block
 block discarded – undo
46 46
 			$settings        = array();
47 47
 			$current_section = give_get_current_setting_section();
48 48
 
49
-			switch ( $current_section ) {
49
+			switch ($current_section) {
50 50
 				case 'email-settings' :
51 51
 					$settings = array(
52 52
 
53 53
 						// Section 1: Email Notification Listing.
54 54
 						array(
55
-							'desc'       => __( 'Email notifications sent from Give are listed below. Click on an email to configure it.', 'give' ),
55
+							'desc'       => __('Email notifications sent from Give are listed below. Click on an email to configure it.', 'give'),
56 56
 							'type'       => 'title',
57 57
 							'id'         => 'give_email_notification_settings',
58 58
 							'table_html' => false,
@@ -67,42 +67,42 @@  discard block
 block discarded – undo
67 67
 
68 68
 						// Section 2: Email Sender Setting
69 69
 						array(
70
-							'title' => __( 'Email Sender Options', 'give' ),
70
+							'title' => __('Email Sender Options', 'give'),
71 71
 							'id'    => 'give_title_email_settings_1',
72 72
 							'type'  => 'title',
73 73
 						),
74 74
 						array(
75 75
 							'id'      => 'email_template',
76
-							'name'    => esc_html__( 'Email Template', 'give' ),
77
-							'desc'    => esc_html__( 'Choose your template from the available registered template types.', 'give' ),
76
+							'name'    => esc_html__('Email Template', 'give'),
77
+							'desc'    => esc_html__('Choose your template from the available registered template types.', 'give'),
78 78
 							'type'    => 'select',
79 79
 							'options' => give_get_email_templates(),
80 80
 						),
81 81
 						array(
82 82
 							'id'   => 'email_logo',
83
-							'name' => esc_html__( 'Logo', 'give' ),
84
-							'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' ),
83
+							'name' => esc_html__('Logo', 'give'),
84
+							'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'),
85 85
 							'type' => 'file',
86 86
 						),
87 87
 						array(
88 88
 							'id'      => 'from_name',
89
-							'name'    => esc_html__( 'From Name', 'give' ),
90
-							'desc'    => esc_html__( 'The name which appears in the "From" field in all Give donation emails.', 'give' ),
91
-							'default' => get_bloginfo( 'name' ),
89
+							'name'    => esc_html__('From Name', 'give'),
90
+							'desc'    => esc_html__('The name which appears in the "From" field in all Give donation emails.', 'give'),
91
+							'default' => get_bloginfo('name'),
92 92
 							'type'    => 'text',
93 93
 						),
94 94
 						array(
95 95
 							'id'      => 'from_email',
96
-							'name'    => esc_html__( 'From Email', 'give' ),
97
-							'desc'    => esc_html__( 'Email address from which all Give emails are sent from. This will act as the "from" and "reply-to" email address.', 'give' ),
98
-							'default' => get_bloginfo( 'admin_email' ),
96
+							'name'    => esc_html__('From Email', 'give'),
97
+							'desc'    => esc_html__('Email address from which all Give emails are sent from. This will act as the "from" and "reply-to" email address.', 'give'),
98
+							'default' => get_bloginfo('admin_email'),
99 99
 							'type'    => 'text',
100 100
 						),
101 101
 						array(
102
-							'name'  => esc_html__( 'Donation Notification Settings Docs Link', 'give' ),
102
+							'name'  => esc_html__('Donation Notification Settings Docs Link', 'give'),
103 103
 							'id'    => 'donation_notification_settings_docs_link',
104
-							'url'   => esc_url( 'http://docs.givewp.com/settings-donation-notification' ),
105
-							'title' => __( 'Donation Notification Settings', 'give' ),
104
+							'url'   => esc_url('http://docs.givewp.com/settings-donation-notification'),
105
+							'title' => __('Donation Notification Settings', 'give'),
106 106
 							'type'  => 'give_docs_link',
107 107
 						),
108 108
 						array(
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
 			 * Filter the emails settings.
118 118
 			 * Backward compatibility: Please do not use this filter. This filter is deprecated in 1.8
119 119
 			 */
120
-			$settings = apply_filters( 'give_settings_emails', $settings );
120
+			$settings = apply_filters('give_settings_emails', $settings);
121 121
 
122 122
 			/**
123 123
 			 * Filter the settings.
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
 			 *
127 127
 			 * @param  array $settings
128 128
 			 */
129
-			$settings = apply_filters( 'give_get_settings_' . $this->id, $settings );
129
+			$settings = apply_filters('give_get_settings_'.$this->id, $settings);
130 130
 
131 131
 			// Output.
132 132
 			return $settings;
@@ -140,10 +140,10 @@  discard block
 block discarded – undo
140 140
 		 */
141 141
 		public function get_sections() {
142 142
 			$sections = array(
143
-				'email-settings' => esc_html__( 'Email Settings', 'give' ),
143
+				'email-settings' => esc_html__('Email Settings', 'give'),
144 144
 			);
145 145
 
146
-			return apply_filters( 'give_get_sections_' . $this->id, $sections );
146
+			return apply_filters('give_get_sections_'.$this->id, $sections);
147 147
 		}
148 148
 
149 149
 		/**
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
 		 */
155 155
 		public function email_notification_setting() {
156 156
 			// Load email notification table.
157
-			require_once GIVE_PLUGIN_DIR . 'includes/admin/emails/class-email-notification-table.php';
157
+			require_once GIVE_PLUGIN_DIR.'includes/admin/emails/class-email-notification-table.php';
158 158
 
159 159
 			// Init table.
160 160
 			$email_notifications_table = new Give_Email_Notification_Table();
@@ -173,13 +173,13 @@  discard block
 block discarded – undo
173 173
 		 * @return void
174 174
 		 */
175 175
 		public function output() {
176
-			if ( $this->enable_save ) {
177
-				$GLOBALS['give_hide_save_button'] = apply_filters( 'give_hide_save_button_on_email_admin_setting_page', false );
176
+			if ($this->enable_save) {
177
+				$GLOBALS['give_hide_save_button'] = apply_filters('give_hide_save_button_on_email_admin_setting_page', false);
178 178
 			}
179 179
 
180 180
 			$settings = $this->get_settings();
181 181
 
182
-			Give_Admin_Settings::output_fields( $settings, 'give_settings' );
182
+			Give_Admin_Settings::output_fields($settings, 'give_settings');
183 183
 		}
184 184
 	}
185 185
 
Please login to merge, or discard this patch.