@@ -1,7 +1,9 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | // Exit if accessed directly |
| 4 | -if ( ! defined( 'ABSPATH' ) ) exit; |
|
| 4 | +if ( ! defined( 'ABSPATH' ) ) { |
|
| 5 | + exit; |
|
| 6 | +} |
|
| 5 | 7 | |
| 6 | 8 | /** |
| 7 | 9 | * Allows plugins to use their own update API. |
@@ -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 |
@@ -1020,9 +1020,12 @@ |
||
| 1020 | 1020 | } |
| 1021 | 1021 | ?> |
| 1022 | 1022 | </select> |
| 1023 | - <?php else : ?> |
|
| 1023 | + <?php else { |
|
| 1024 | + : ?> |
|
| 1024 | 1025 | <input type="text" size="6" name="card_state" id="card_state" class="card_state give-input" |
| 1025 | - placeholder="<?php echo $label; ?>" value="<?php echo $selected_state; ?>"/> |
|
| 1026 | + placeholder="<?php echo $label; |
|
| 1027 | +} |
|
| 1028 | +?>" value="<?php echo $selected_state; ?>"/> |
|
| 1026 | 1029 | <?php endif; ?> |
| 1027 | 1030 | </p> |
| 1028 | 1031 | |
@@ -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> |