@@ -57,7 +57,12 @@ discard block |
||
| 57 | 57 | <tr> |
| 58 | 58 | <td data-export-label="WP Multisite"><?php _e( 'WP Multisite', 'give' ); ?>:</td> |
| 59 | 59 | <td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr( __( 'Whether or not you have WordPress Multisite enabled.', 'give' ) ); ?>"></span></td> |
| 60 | - <td><?php if ( is_multisite() ) echo '<span class="dashicons dashicons-yes"></span>'; else echo '–'; ?></td> |
|
| 60 | + <td><?php if ( is_multisite() ) { |
|
| 61 | + echo '<span class="dashicons dashicons-yes"></span>'; |
|
| 62 | +} else { |
|
| 63 | + echo '–'; |
|
| 64 | +} |
|
| 65 | +?></td> |
|
| 61 | 66 | </tr> |
| 62 | 67 | <tr> |
| 63 | 68 | <td data-export-label="WP Memory Limit"><?php _e( 'WP Memory Limit', 'give' ); ?>:</td> |
@@ -85,9 +90,12 @@ discard block |
||
| 85 | 90 | <td> |
| 86 | 91 | <?php if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) : ?> |
| 87 | 92 | <mark class="yes"><span class="dashicons dashicons-yes"></span></mark> |
| 88 | - <?php else : ?> |
|
| 93 | + <?php else { |
|
| 94 | + : ?> |
|
| 89 | 95 | <mark class="no">–</mark> |
| 90 | - <?php endif; ?> |
|
| 96 | + <?php endif; |
|
| 97 | +} |
|
| 98 | +?> |
|
| 91 | 99 | </td> |
| 92 | 100 | </tr> |
| 93 | 101 | <tr> |
@@ -96,9 +104,12 @@ discard block |
||
| 96 | 104 | <td> |
| 97 | 105 | <?php if ( defined( 'DISABLE_WP_CRON' ) && DISABLE_WP_CRON ) : ?> |
| 98 | 106 | <mark class="no">–</mark> |
| 99 | - <?php else : ?> |
|
| 107 | + <?php else { |
|
| 108 | + : ?> |
|
| 100 | 109 | <mark class="yes"><span class="dashicons dashicons-yes"></span></mark> |
| 101 | - <?php endif; ?> |
|
| 110 | + <?php endif; |
|
| 111 | +} |
|
| 112 | +?> |
|
| 102 | 113 | </td> |
| 103 | 114 | </tr> |
| 104 | 115 | <tr> |
@@ -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 | |
@@ -662,9 +662,12 @@ discard block |
||
| 662 | 662 | <a href="#<?php echo $form_data_tab['id']; ?>" data-tab-id="<?php echo $form_data_tab['id']; ?>"> |
| 663 | 663 | <?php if ( ! empty( $form_data_tab['icon-html'] ) ) : ?> |
| 664 | 664 | <?php echo $form_data_tab['icon-html']; ?> |
| 665 | - <?php else : ?> |
|
| 665 | + <?php else { |
|
| 666 | + : ?> |
|
| 666 | 667 | <span class="give-icon give-icon-default"></span> |
| 667 | - <?php endif; ?> |
|
| 668 | + <?php endif; |
|
| 669 | +} |
|
| 670 | +?> |
|
| 668 | 671 | <span class="give-label"><?php echo $form_data_tab['label']; ?></span> |
| 669 | 672 | </a> |
| 670 | 673 | <?php if ( $this->has_sub_tab( $form_data_tab ) ) : ?> |
@@ -674,9 +677,12 @@ discard block |
||
| 674 | 677 | <a href="#<?php echo $sub_tab['id']; ?>" data-tab-id="<?php echo $sub_tab['id']; ?>"> |
| 675 | 678 | <?php if ( ! empty( $sub_tab['icon-html'] ) ) : ?> |
| 676 | 679 | <?php echo $sub_tab['icon-html']; ?> |
| 677 | - <?php else : ?> |
|
| 680 | + <?php else { |
|
| 681 | + : ?> |
|
| 678 | 682 | <span class="give-icon give-icon-default"></span> |
| 679 | - <?php endif; ?> |
|
| 683 | + <?php endif; |
|
| 684 | +} |
|
| 685 | +?> |
|
| 680 | 686 | <span class="give-label"><?php echo $sub_tab['label']; ?></span> |
| 681 | 687 | </a> |
| 682 | 688 | </li> |
@@ -703,11 +709,14 @@ discard block |
||
| 703 | 709 | </div> |
| 704 | 710 | |
| 705 | 711 | <?php do_action( "give_after_{$setting['id']}_settings" ); ?> |
| 706 | - <?php else : ?> |
|
| 712 | + <?php else { |
|
| 713 | + : ?> |
|
| 707 | 714 | <?php if ( $this->has_sub_tab( $setting ) ) : ?> |
| 708 | 715 | <?php if ( ! empty( $setting['sub-fields'] ) ) : ?> |
| 709 | 716 | <?php foreach ( $setting['sub-fields'] as $index => $sub_fields ) : ?> |
| 710 | - <div id="<?php echo $sub_fields['id']; ?>" class="panel give_options_panel give-hidden"> |
|
| 717 | + <div id="<?php echo $sub_fields['id']; |
|
| 718 | +} |
|
| 719 | +?>" class="panel give_options_panel give-hidden"> |
|
| 711 | 720 | <?php if ( ! empty( $sub_fields['fields'] ) ) : ?> |
| 712 | 721 | <?php foreach ( $sub_fields['fields'] as $sub_field ) : ?> |
| 713 | 722 | <?php give_render_field( $sub_field ); ?> |
@@ -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 |