@@ -4,26 +4,26 @@ discard block |
||
| 4 | 4 | * |
| 5 | 5 | */ |
| 6 | 6 | |
| 7 | -defined( 'ABSPATH' ) || exit; |
|
| 7 | +defined('ABSPATH') || exit; |
|
| 8 | 8 | |
| 9 | 9 | ?> |
| 10 | 10 | <div class="table-responsive"> |
| 11 | 11 | <table id="wpinv_gateways_select" class="table border bg-white form-table"> |
| 12 | - <caption><?php echo esc_html_e( 'This table displays installed payment methods.', 'invoicing' ); ?></caption> |
|
| 12 | + <caption><?php echo esc_html_e('This table displays installed payment methods.', 'invoicing'); ?></caption> |
|
| 13 | 13 | |
| 14 | 14 | <thead> |
| 15 | 15 | <tr class="table-light"> |
| 16 | 16 | |
| 17 | 17 | <th scope="col" class="border-bottom border-top text-left"> |
| 18 | - <?php _e( 'Payment Method', 'invoicing' ); ?> |
|
| 18 | + <?php _e('Payment Method', 'invoicing'); ?> |
|
| 19 | 19 | </th> |
| 20 | 20 | |
| 21 | 21 | <th scope="col" class="border-bottom border-top text-center"> |
| 22 | - <?php _e( 'Enabled', 'invoicing' ); ?> |
|
| 22 | + <?php _e('Enabled', 'invoicing'); ?> |
|
| 23 | 23 | </th> |
| 24 | 24 | |
| 25 | 25 | <th scope="col" class="border-bottom border-top text-center"> |
| 26 | - <?php _e( 'Supports Subscriptions', 'invoicing' ); ?> |
|
| 26 | + <?php _e('Supports Subscriptions', 'invoicing'); ?> |
|
| 27 | 27 | </th> |
| 28 | 28 | |
| 29 | 29 | <th scope="col" class="border-bottom border-top text-right" style="width:32px"> </th> |
@@ -32,15 +32,15 @@ discard block |
||
| 32 | 32 | </thead> |
| 33 | 33 | |
| 34 | 34 | <tbody> |
| 35 | - <?php foreach ( wpinv_get_payment_gateways() as $id => $gateway ) : ?> |
|
| 35 | + <?php foreach (wpinv_get_payment_gateways() as $id => $gateway) : ?> |
|
| 36 | 36 | <tr> |
| 37 | 37 | <td class="getpaid-payment-method text-left"> |
| 38 | - <a style="color: #0073aa;" href="<?php echo esc_url( add_query_arg( 'section', $id ) ); ?>" class="font-weight-bold"><?php echo sanitize_text_field( $gateway['admin_label'] ); ?></a> |
|
| 38 | + <a style="color: #0073aa;" href="<?php echo esc_url(add_query_arg('section', $id)); ?>" class="font-weight-bold"><?php echo sanitize_text_field($gateway['admin_label']); ?></a> |
|
| 39 | 39 | </td> |
| 40 | 40 | <td class="getpaid-payment-method-enabled text-center"> |
| 41 | 41 | <?php |
| 42 | 42 | |
| 43 | - if ( wpinv_is_gateway_active( $id ) ) { |
|
| 43 | + if (wpinv_is_gateway_active($id)) { |
|
| 44 | 44 | echo "<i class='text-success fa fa-check'></i>"; |
| 45 | 45 | } else { |
| 46 | 46 | echo "<i class='text-dark fa fa-times'></i>"; |
@@ -51,10 +51,10 @@ discard block |
||
| 51 | 51 | <td class="getpaid-payment-method-subscription text-center"> |
| 52 | 52 | <?php |
| 53 | 53 | |
| 54 | - $supports = apply_filters( "wpinv_{$id}_support_subscription", false ); |
|
| 55 | - $supports = apply_filters( 'getapid_gateway_supports_subscription', $supports, $id ); |
|
| 54 | + $supports = apply_filters("wpinv_{$id}_support_subscription", false); |
|
| 55 | + $supports = apply_filters('getapid_gateway_supports_subscription', $supports, $id); |
|
| 56 | 56 | |
| 57 | - if ( $supports ) { |
|
| 57 | + if ($supports) { |
|
| 58 | 58 | echo "<i class='text-success fa fa-check'></i>"; |
| 59 | 59 | } else { |
| 60 | 60 | echo "<i class='text-dark fa fa-times'></i>"; |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | </td> |
| 65 | 65 | |
| 66 | 66 | <td class="getpaid-payment-method-action text-right"> |
| 67 | - <a class="button button-secondary" href="<?php echo esc_url( add_query_arg( 'section', $id ) ); ?>"><?php _e( 'Manage', 'invoicing' ); ?></a> |
|
| 67 | + <a class="button button-secondary" href="<?php echo esc_url(add_query_arg('section', $id)); ?>"><?php _e('Manage', 'invoicing'); ?></a> |
|
| 68 | 68 | </td> |
| 69 | 69 | |
| 70 | 70 | </tr> |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | <tr class="table-light"> |
| 76 | 76 | <td colspan="4" class="border-top"> |
| 77 | 77 | <a class="button button-secondary getpaid-install-gateways" href="https://wpgetpaid.com/downloads/category/gateways/"> |
| 78 | - <span><?php _e( 'Add Payment Methods', 'invoicing' ); ?></span> |
|
| 78 | + <span><?php _e('Add Payment Methods', 'invoicing'); ?></span> |
|
| 79 | 79 | </a> |
| 80 | 80 | </td> |
| 81 | 81 | </tr> |