@@ -94,7 +94,7 @@ |
||
94 | 94 | <?php |
95 | 95 | // Display View Receipt or. |
96 | 96 | if ( 'publish' !== $post->post_status |
97 | - && 'subscription' !== $post->post_status |
|
97 | + && 'subscription' !== $post->post_status |
|
98 | 98 | ) : ?> |
99 | 99 | <a href="<?php echo esc_url( add_query_arg( 'payment_key', give_get_payment_key( $post->ID ), give_get_history_page_uri() ) ); ?>"><span |
100 | 100 | class="give-donation-status <?php echo $post->post_status; ?>"><?php echo esc_html__( 'View', 'give' ) . ' ' . give_get_payment_status( $post, true ) . ' »'; ?></span></a> |
@@ -134,9 +134,9 @@ |
||
134 | 134 | // Handle thousand separator as '.' |
135 | 135 | // Handle sanitize database values. |
136 | 136 | $is_db_sanitize_val = ( 2 === count( $number_parts ) && |
137 | - is_numeric( $number_parts[0] ) && |
|
138 | - is_numeric( $number_parts[1] ) && |
|
139 | - ( 6 === strlen( $number_parts[1] ) ) ); |
|
137 | + is_numeric( $number_parts[0] ) && |
|
138 | + is_numeric( $number_parts[1] ) && |
|
139 | + ( 6 === strlen( $number_parts[1] ) ) ); |
|
140 | 140 | |
141 | 141 | if ( $is_db_sanitize_val ) { |
142 | 142 | // Sanitize database value. |
@@ -93,8 +93,8 @@ discard block |
||
93 | 93 | |
94 | 94 | // Show error message if Akismet not configured and Admin try to save 'enabled' option. |
95 | 95 | if ( isset( $_POST['akismet_spam_protection'] ) |
96 | - && give_is_setting_enabled( $_POST['akismet_spam_protection'] ) |
|
97 | - && ! give_check_akismet_key() |
|
96 | + && give_is_setting_enabled( $_POST['akismet_spam_protection'] ) |
|
97 | + && ! give_check_akismet_key() |
|
98 | 98 | ) { |
99 | 99 | self::add_error( 'give-akismet-protection', __( 'Please properly configure Akismet to enable SPAM protection.', 'give' ) ); |
100 | 100 | |
@@ -763,9 +763,9 @@ discard block |
||
763 | 763 | <td class="give-docs-link" colspan="2"> |
764 | 764 | <?php |
765 | 765 | echo '<p class="give-docs-link"><a href="' . esc_url( $value['url'] ) |
766 | - . '" target="_blank">' |
|
767 | - . sprintf( esc_html__( 'Need Help? See docs on "%s"', 'give' ), $value['title'] ) |
|
768 | - . '<span class="dashicons dashicons-editor-help"></span></a></p>'; |
|
766 | + . '" target="_blank">' |
|
767 | + . sprintf( esc_html__( 'Need Help? See docs on "%s"', 'give' ), $value['title'] ) |
|
768 | + . '<span class="dashicons dashicons-editor-help"></span></a></p>'; |
|
769 | 769 | ?> |
770 | 770 | </td> |
771 | 771 | </tr><?php |
@@ -871,8 +871,8 @@ |
||
871 | 871 | */ |
872 | 872 | private function is_donations_import_page() { |
873 | 873 | return 'import' === give_get_current_setting_tab() && |
874 | - isset( $_GET['importer-type'] ) && |
|
875 | - $this->importer_type === give_clean( $_GET['importer-type'] ); |
|
874 | + isset( $_GET['importer-type'] ) && |
|
875 | + $this->importer_type === give_clean( $_GET['importer-type'] ); |
|
876 | 876 | } |
877 | 877 | } |
878 | 878 |
@@ -343,7 +343,7 @@ discard block |
||
343 | 343 | ?> |
344 | 344 | </div> |
345 | 345 | <?php |
346 | - elseif ( ( $show_register_form === 'login' || ( $show_register_form === 'both' && isset( $_GET['login'] ) ) ) && ! is_user_logged_in() ) : |
|
346 | + elseif ( ( $show_register_form === 'login' || ( $show_register_form === 'both' && isset( $_GET['login'] ) ) ) && ! is_user_logged_in() ) : |
|
347 | 347 | ?> |
348 | 348 | <div id="give-checkout-login-register-<?php echo $form_id; ?>"> |
349 | 349 | <?php |
@@ -945,10 +945,10 @@ discard block |
||
945 | 945 | <?php echo( give_field_is_required( 'billing_country', $form_id ) ? ' required aria-required="true" ' : '' ); ?> |
946 | 946 | > |
947 | 947 | <?php |
948 | - foreach ( $countries as $country_code => $country ) { |
|
949 | - echo '<option value="' . esc_attr( $country_code ) . '"' . selected( $country_code, $selected_country, false ) . '>' . $country . '</option>'; |
|
950 | - } |
|
951 | - ?> |
|
948 | + foreach ( $countries as $country_code => $country ) { |
|
949 | + echo '<option value="' . esc_attr( $country_code ) . '"' . selected( $country_code, $selected_country, false ) . '>' . $country . '</option>'; |
|
950 | + } |
|
951 | + ?> |
|
952 | 952 | </select> |
953 | 953 | </p> |
954 | 954 | |
@@ -956,7 +956,7 @@ discard block |
||
956 | 956 | <label for="card_address" class="give-label"> |
957 | 957 | <?php esc_html_e( 'Address 1', 'give' ); ?> |
958 | 958 | <?php |
959 | - if ( give_field_is_required( 'card_address', $form_id ) ) : ?> |
|
959 | + if ( give_field_is_required( 'card_address', $form_id ) ) : ?> |
|
960 | 960 | <span class="give-required-indicator">*</span> |
961 | 961 | <?php endif; ?> |
962 | 962 | <span class="give-tooltip give-icon give-icon-question" |
@@ -1000,7 +1000,7 @@ discard block |
||
1000 | 1000 | <label for="card_state" class="give-label"> |
1001 | 1001 | <span class="state-label-text"><?php echo $label; ?></span> |
1002 | 1002 | <?php if ( give_field_is_required( 'card_state', $form_id ) ) : |
1003 | - ?> |
|
1003 | + ?> |
|
1004 | 1004 | <span class="give-required-indicator <?php echo( array_key_exists( $selected_country, $states_not_required_country_list ) ? 'give-hidden' : '' ) ?> ">*</span> |
1005 | 1005 | <?php endif; ?> |
1006 | 1006 | <span class="give-tooltip give-icon give-icon-question" |
@@ -1008,17 +1008,17 @@ discard block |
||
1008 | 1008 | </label> |
1009 | 1009 | <?php |
1010 | 1010 | |
1011 | - if ( ! empty( $states ) ) : ?> |
|
1011 | + if ( ! empty( $states ) ) : ?> |
|
1012 | 1012 | <select |
1013 | 1013 | name="card_state" |
1014 | 1014 | id="card_state" |
1015 | 1015 | class="card_state give-select<?php echo( give_field_is_required( 'card_state', $form_id ) ? ' required' : '' ); ?>" |
1016 | 1016 | <?php echo( give_field_is_required( 'card_state', $form_id ) ? ' required aria-required="true" ' : '' ); ?>> |
1017 | 1017 | <?php |
1018 | - foreach ( $states as $state_code => $state ) { |
|
1019 | - echo '<option value="' . $state_code . '"' . selected( $state_code, $selected_state, false ) . '>' . $state . '</option>'; |
|
1020 | - } |
|
1021 | - ?> |
|
1018 | + foreach ( $states as $state_code => $state ) { |
|
1019 | + echo '<option value="' . $state_code . '"' . selected( $state_code, $selected_state, false ) . '>' . $state . '</option>'; |
|
1020 | + } |
|
1021 | + ?> |
|
1022 | 1022 | </select> |
1023 | 1023 | <?php else : ?> |
1024 | 1024 | <input type="text" size="6" name="card_state" id="card_state" class="card_state give-input" |
@@ -288,8 +288,8 @@ |
||
288 | 288 | |
289 | 289 | // Check spam detect. |
290 | 290 | if ( isset( $_POST['action'] ) |
291 | - && give_is_setting_enabled( give_get_option( 'akismet_spam_protection' ) ) |
|
292 | - && give_is_spam_donation() |
|
291 | + && give_is_setting_enabled( give_get_option( 'akismet_spam_protection' ) ) |
|
292 | + && give_is_spam_donation() |
|
293 | 293 | ) { |
294 | 294 | give_set_error( 'invalid_donation', __( 'This donation has been flagged as spam. Please try again.', 'give' ) ); |
295 | 295 | } |