@@ -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 |
@@ -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 | |