@@ -6,7 +6,10 @@ |
||
6 | 6 | * @version 1.0 |
7 | 7 | */ |
8 | 8 | |
9 | -if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly. |
|
9 | +if ( ! defined( 'ABSPATH' ) ) { |
|
10 | + exit; |
|
11 | +} |
|
12 | +// Exit if accessed directly. |
|
10 | 13 | // This is the footer used if no others are available |
11 | 14 | ?> |
12 | 15 | <!DOCTYPE html> |
@@ -6,7 +6,10 @@ |
||
6 | 6 | * @version 1.0 |
7 | 7 | */ |
8 | 8 | |
9 | -if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly. |
|
9 | +if ( ! defined( 'ABSPATH' ) ) { |
|
10 | + exit; |
|
11 | +} |
|
12 | +// Exit if accessed directly. |
|
10 | 13 | |
11 | 14 | |
12 | 15 | // For gmail compatibility, including CSS styles in head/body are stripped out therefore styles need to be inline. These variables contain rules which are added to the template inline. |
@@ -6,7 +6,10 @@ |
||
6 | 6 | * @version 1.0 |
7 | 7 | */ |
8 | 8 | |
9 | -if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly. |
|
9 | +if ( ! defined( 'ABSPATH' ) ) { |
|
10 | + exit; |
|
11 | +} |
|
12 | +// Exit if accessed directly. |
|
10 | 13 | |
11 | 14 | // {email} is replaced by the content entered in Donations > Settings > Emails |
12 | 15 |
@@ -6,7 +6,10 @@ |
||
6 | 6 | * @version 1.0 |
7 | 7 | */ |
8 | 8 | |
9 | -if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly. |
|
9 | +if ( ! defined( 'ABSPATH' ) ) { |
|
10 | + exit; |
|
11 | +} |
|
12 | +// Exit if accessed directly. |
|
10 | 13 | |
11 | 14 | // This is the footer used if no others are available |
12 | 15 |
@@ -6,7 +6,10 @@ |
||
6 | 6 | * @version 1.0 |
7 | 7 | */ |
8 | 8 | |
9 | -if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly. |
|
9 | +if ( ! defined( 'ABSPATH' ) ) { |
|
10 | + exit; |
|
11 | +} |
|
12 | +// Exit if accessed directly. |
|
10 | 13 | |
11 | 14 | // {email} is replaced by the content entered in Donations > Settings > Emails |
12 | 15 |
@@ -95,5 +95,8 @@ |
||
95 | 95 | <?php endif; ?> |
96 | 96 | <?php echo $form_close_tag; ?> |
97 | 97 | </div> |
98 | -<?php else : echo '<div class="error"><p>' . __( 'Oops, this settings page does not exist.', 'give' ) . '</p></div>'; ?> |
|
98 | +<?php else { |
|
99 | + : echo '<div class="error"><p>' . __( 'Oops, this settings page does not exist.', 'give' ) . '</p></div>'; |
|
100 | +} |
|
101 | +?> |
|
99 | 102 | <?php endif; ?> |
100 | 103 | \ No newline at end of file |
@@ -60,7 +60,12 @@ discard block |
||
60 | 60 | <tr> |
61 | 61 | <td data-export-label="WP Multisite"><?php _e( 'WP Multisite', 'give' ); ?>:</td> |
62 | 62 | <td class="help"><?php echo Give()->tooltips->render_help( __( 'Whether or not you have WordPress Multisite enabled.', 'give' ) ); ?></td> |
63 | - <td><?php if ( is_multisite() ) echo '<span class="dashicons dashicons-yes"></span>'; else echo '–'; ?></td> |
|
63 | + <td><?php if ( is_multisite() ) { |
|
64 | + echo '<span class="dashicons dashicons-yes"></span>'; |
|
65 | +} else { |
|
66 | + echo '–'; |
|
67 | +} |
|
68 | +?></td> |
|
64 | 69 | |
65 | 70 | </tr> |
66 | 71 | <tr> |
@@ -89,9 +94,12 @@ discard block |
||
89 | 94 | <td> |
90 | 95 | <?php if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) : ?> |
91 | 96 | <mark class="yes"><span class="dashicons dashicons-yes"></span></mark> |
92 | - <?php else : ?> |
|
97 | + <?php else { |
|
98 | + : ?> |
|
93 | 99 | <mark class="no">–</mark> |
94 | - <?php endif; ?> |
|
100 | + <?php endif; |
|
101 | +} |
|
102 | +?> |
|
95 | 103 | </td> |
96 | 104 | </tr> |
97 | 105 | <tr> |
@@ -100,9 +108,12 @@ discard block |
||
100 | 108 | <td> |
101 | 109 | <?php if ( defined( 'DISABLE_WP_CRON' ) && DISABLE_WP_CRON ) : ?> |
102 | 110 | <mark class="no">–</mark> |
103 | - <?php else : ?> |
|
111 | + <?php else { |
|
112 | + : ?> |
|
104 | 113 | <mark class="yes"><span class="dashicons dashicons-yes"></span></mark> |
105 | - <?php endif; ?> |
|
114 | + <?php endif; |
|
115 | +} |
|
116 | +?> |
|
106 | 117 | </td> |
107 | 118 | </tr> |
108 | 119 | <tr> |
@@ -190,7 +190,8 @@ discard block |
||
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 |
||
203 | 204 | __( 'View Receipt »', 'give' ), |
204 | 205 | esc_html( $table_headings['details'] ) |
205 | 206 | ); |
207 | + } |
|
206 | 208 | |
207 | 209 | endif; |
208 | 210 | ?> |
@@ -247,6 +249,9 @@ discard block |
||
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; |
@@ -217,12 +217,14 @@ |
||
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; |