@@ -166,7 +166,8 @@ discard block |
||
| 166 | 166 | __( 'View', 'give' ) . ' ' . give_get_payment_status( $post, true ) . ' »' |
| 167 | 167 | ); |
| 168 | 168 | |
| 169 | - else : |
|
| 169 | + else { |
|
| 170 | + : |
|
| 170 | 171 | echo sprintf( |
| 171 | 172 | '<a href="%1$s">%2$s</a>', |
| 172 | 173 | esc_url( |
@@ -178,6 +179,7 @@ discard block |
||
| 178 | 179 | ), |
| 179 | 180 | __( 'View Receipt »', 'give' ) |
| 180 | 181 | ); |
| 182 | + } |
|
| 181 | 183 | |
| 182 | 184 | endif; |
| 183 | 185 | ?> |
@@ -210,6 +212,9 @@ discard block |
||
| 210 | 212 | ?> |
| 211 | 213 | </div> |
| 212 | 214 | <?php wp_reset_postdata(); ?> |
| 213 | -<?php else : ?> |
|
| 214 | - <?php Give()->notices->print_frontend_notice( __( 'It looks like you haven\'t made any donations.', 'give' ), true, 'success' ); ?> |
|
| 215 | +<?php else { |
|
| 216 | + : ?> |
|
| 217 | + <?php Give()->notices->print_frontend_notice( __( 'It looks like you haven\'t made any donations.', 'give' ), true, 'success' ); |
|
| 218 | +} |
|
| 219 | +?> |
|
| 215 | 220 | <?php endif; |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | |
| 35 | 35 | if( is_string( $id_or_currency_code ) && ( $id_or_currency_code !== $give_options['currency'] ) && array_key_exists( $id_or_currency_code, $currencies ) ) { |
| 36 | 36 | $setting = $currencies[ $id_or_currency_code ]['setting']; |
| 37 | - }elseif ( is_numeric( $id_or_currency_code ) && 'give_payment' === get_post_type( $id_or_currency_code ) ) { |
|
| 37 | + } elseif ( is_numeric( $id_or_currency_code ) && 'give_payment' === get_post_type( $id_or_currency_code ) ) { |
|
| 38 | 38 | $donation_meta = give_get_meta( $id_or_currency_code, '_give_payment_meta', true ); |
| 39 | 39 | |
| 40 | 40 | if ( |