@@ -47,16 +47,20 @@ |
||
| 47 | 47 | // Provider. |
| 48 | 48 | if ( count( $name ) > 1 ) : |
| 49 | 49 | $provider = array_shift( $name ); |
| 50 | - else : |
|
| 50 | + else { |
|
| 51 | + : |
|
| 51 | 52 | $provider_name = explode( '(', $name[0] ); |
| 53 | + } |
|
| 52 | 54 | |
| 53 | 55 | $provider = array_shift( $provider_name ); |
| 54 | 56 | endif; |
| 55 | 57 | |
| 56 | 58 | if ( $current_provider === $integration->provider ) : |
| 57 | 59 | $provider = ''; |
| 58 | - else : |
|
| 60 | + else { |
|
| 61 | + : |
|
| 59 | 62 | $current_provider = $integration->provider; |
| 63 | + } |
|
| 60 | 64 | |
| 61 | 65 | $alternate = ! $alternate; |
| 62 | 66 | endif; |
@@ -90,10 +90,13 @@ |
||
| 90 | 90 | </tr> |
| 91 | 91 | </table> |
| 92 | 92 | |
| 93 | -<?php else : ?> |
|
| 93 | +<?php else { |
|
| 94 | + : ?> |
|
| 94 | 95 | |
| 95 | 96 | <p> |
| 96 | - <?php esc_html_e( 'This payment is not related to a subscription.', 'pronamic_ideal' ); ?> |
|
| 97 | + <?php esc_html_e( 'This payment is not related to a subscription.', 'pronamic_ideal' ); |
|
| 98 | +} |
|
| 99 | +?> |
|
| 97 | 100 | </p> |
| 98 | 101 | |
| 99 | 102 | <?php endif; ?> |
@@ -26,13 +26,16 @@ |
||
| 26 | 26 | |
| 27 | 27 | <?php esc_html_e( 'No payments found.', 'pronamic_ideal' ); ?> |
| 28 | 28 | |
| 29 | -<?php else : ?> |
|
| 29 | +<?php else { |
|
| 30 | + : ?> |
|
| 30 | 31 | |
| 31 | 32 | <table class="pronamic-pay-table widefat"> |
| 32 | 33 | <thead> |
| 33 | 34 | <tr> |
| 34 | 35 | <th scope="col"> |
| 35 | - <span class="pronamic-pay-tip pronamic-pay-icon pronamic-pay-status" title="<?php esc_attr_e( 'Status', 'pronamic_ideal' ); ?>"><?php esc_html_e( 'Status', 'pronamic_ideal' ); ?></span> |
|
| 36 | + <span class="pronamic-pay-tip pronamic-pay-icon pronamic-pay-status" title="<?php esc_attr_e( 'Status', 'pronamic_ideal' ); |
|
| 37 | +} |
|
| 38 | +?>"><?php esc_html_e( 'Status', 'pronamic_ideal' ); ?></span> |
|
| 36 | 39 | </th> |
| 37 | 40 | <th scope="col"><?php esc_html_e( 'Payment', 'pronamic_ideal' ); ?></th> |
| 38 | 41 | <th scope="col"><?php esc_html_e( 'Transaction', 'pronamic_ideal' ); ?></th> |
@@ -20,12 +20,15 @@ |
||
| 20 | 20 | |
| 21 | 21 | <?php esc_html_e( 'No notes found.', 'pronamic_ideal' ); ?> |
| 22 | 22 | |
| 23 | -<?php else : ?> |
|
| 23 | +<?php else { |
|
| 24 | + : ?> |
|
| 24 | 25 | |
| 25 | 26 | <table class="pronamic-pay-table widefat"> |
| 26 | 27 | <thead> |
| 27 | 28 | <tr> |
| 28 | - <th scope="col"><?php esc_html_e( 'Date', 'pronamic_ideal' ); ?></th> |
|
| 29 | + <th scope="col"><?php esc_html_e( 'Date', 'pronamic_ideal' ); |
|
| 30 | +} |
|
| 31 | +?></th> |
|
| 29 | 32 | <th scope="col"><?php esc_html_e( 'Note', 'pronamic_ideal' ); ?></th> |
| 30 | 33 | <th scope="col"><?php esc_html_e( 'User', 'pronamic_ideal' ); ?></th> |
| 31 | 34 | </tr> |
@@ -152,9 +152,12 @@ |
||
| 152 | 152 | |
| 153 | 153 | <?php wp_reset_postdata(); ?> |
| 154 | 154 | |
| 155 | - <?php else : ?> |
|
| 155 | + <?php else { |
|
| 156 | + : ?> |
|
| 156 | 157 | |
| 157 | - <p><?php esc_html_e( 'No pending payments found.', 'pronamic_ideal' ); ?></p> |
|
| 158 | + <p><?php esc_html_e( 'No pending payments found.', 'pronamic_ideal' ); |
|
| 159 | +} |
|
| 160 | +?></p> |
|
| 158 | 161 | |
| 159 | 162 | <?php endif; ?> |
| 160 | 163 | </div> |
@@ -81,9 +81,11 @@ |
||
| 81 | 81 | |
| 82 | 82 | <?php |
| 83 | 83 | |
| 84 | - else : |
|
| 84 | + else { |
|
| 85 | + : |
|
| 85 | 86 | |
| 86 | 87 | echo esc_html( $subscription->get_amount()->format_i18n() ); |
| 88 | + } |
|
| 87 | 89 | |
| 88 | 90 | endif; |
| 89 | 91 | |
@@ -18,13 +18,16 @@ |
||
| 18 | 18 | <?php esc_html_e( 'No payment lines found.', 'pronamic_ideal' ); ?> |
| 19 | 19 | </p> |
| 20 | 20 | |
| 21 | -<?php else : ?> |
|
| 21 | +<?php else { |
|
| 22 | + : ?> |
|
| 22 | 23 | |
| 23 | 24 | <div class="pronamic-pay-table-responsive"> |
| 24 | 25 | <table class="pronamic-pay-table widefat"> |
| 25 | 26 | <thead> |
| 26 | 27 | <tr> |
| 27 | - <th scope="col"><?php esc_html_e( 'ID', 'pronamic_ideal' ); ?></th> |
|
| 28 | + <th scope="col"><?php esc_html_e( 'ID', 'pronamic_ideal' ); |
|
| 29 | +} |
|
| 30 | +?></th> |
|
| 28 | 31 | <th scope="col"><?php esc_html_e( 'SKU', 'pronamic_ideal' ); ?></th> |
| 29 | 32 | <th scope="col"><?php esc_html_e( 'Image', 'pronamic_ideal' ); ?></th> |
| 30 | 33 | <th scope="col"><?php esc_html_e( 'Name', 'pronamic_ideal' ); ?></th> |
@@ -235,7 +235,7 @@ discard block |
||
| 235 | 235 | |
| 236 | 236 | $tip = array( |
| 237 | 237 | sprintf( |
| 238 | - /* translators: %s: unit price excluding tax */ |
|
| 238 | + /* translators: %s: unit price excluding tax */ |
|
| 239 | 239 | __( 'Exclusive tax: %s', 'pronamic_ideal' ), |
| 240 | 240 | $line->get_unit_price()->get_excluding_tax() |
| 241 | 241 | ), |
@@ -243,7 +243,7 @@ discard block |
||
| 243 | 243 | |
| 244 | 244 | if ( $line->get_unit_price()->get_tax_amount() > 0 ) { |
| 245 | 245 | $tip[] = sprintf( |
| 246 | - /* translators: %s: unit price including tax */ |
|
| 246 | + /* translators: %s: unit price including tax */ |
|
| 247 | 247 | __( 'Inclusive tax: %s', 'pronamic_ideal' ), |
| 248 | 248 | $line->get_unit_price()->get_including_tax() |
| 249 | 249 | ); |
@@ -272,7 +272,7 @@ discard block |
||
| 272 | 272 | |
| 273 | 273 | $tip = array( |
| 274 | 274 | sprintf( |
| 275 | - /* translators: %s: total amount excluding tax */ |
|
| 275 | + /* translators: %s: total amount excluding tax */ |
|
| 276 | 276 | __( 'Exclusive tax: %s', 'pronamic_ideal' ), |
| 277 | 277 | $line->get_total_amount()->get_excluding_tax() |
| 278 | 278 | ), |
@@ -280,27 +280,27 @@ discard block |
||
| 280 | 280 | |
| 281 | 281 | if ( $line->get_total_amount()->get_tax_amount() > 0 ) { |
| 282 | 282 | $tip[] = sprintf( |
| 283 | - /* translators: %s: total amount including tax */ |
|
| 283 | + /* translators: %s: total amount including tax */ |
|
| 284 | 284 | __( 'Inclusive tax: %s', 'pronamic_ideal' ), |
| 285 | 285 | $line->get_total_amount()->get_including_tax() |
| 286 | 286 | ); |
| 287 | 287 | } |
| 288 | 288 | |
| 289 | - printf( |
|
| 290 | - '<span class="pronamic-pay-tip" title="%s">%s</span>', |
|
| 291 | - esc_attr( implode( '<br />', $tip ) ), |
|
| 292 | - esc_html( $line->get_total_amount()->get_excluding_tax() ) |
|
| 293 | - ); |
|
| 289 | + printf( |
|
| 290 | + '<span class="pronamic-pay-tip" title="%s">%s</span>', |
|
| 291 | + esc_attr( implode( '<br />', $tip ) ), |
|
| 292 | + esc_html( $line->get_total_amount()->get_excluding_tax() ) |
|
| 293 | + ); |
|
| 294 | 294 | |
| 295 | 295 | ?> |
| 296 | 296 | </td> |
| 297 | 297 | <td> |
| 298 | 298 | <?php |
| 299 | 299 | |
| 300 | - $tax_amount = new Money( |
|
| 301 | - $line->get_total_amount()->get_tax_amount(), |
|
| 302 | - $line->get_total_amount()->get_currency()->get_alphabetic_code() |
|
| 303 | - ); |
|
| 300 | + $tax_amount = new Money( |
|
| 301 | + $line->get_total_amount()->get_tax_amount(), |
|
| 302 | + $line->get_total_amount()->get_currency()->get_alphabetic_code() |
|
| 303 | + ); |
|
| 304 | 304 | |
| 305 | 305 | printf( |
| 306 | 306 | '<span class="pronamic-pay-tip" title="%s">%s</span>', |
@@ -389,9 +389,11 @@ |
||
| 389 | 389 | |
| 390 | 390 | esc_html_e( 'Ecommerce conversion tracked', 'pronamic_ideal' ); |
| 391 | 391 | |
| 392 | - else : |
|
| 392 | + else { |
|
| 393 | + : |
|
| 393 | 394 | |
| 394 | 395 | esc_html_e( 'Ecommerce conversion not tracked', 'pronamic_ideal' ); |
| 396 | + } |
|
| 395 | 397 | |
| 396 | 398 | endif; |
| 397 | 399 | |