@@ -6,26 +6,26 @@ discard block |
||
6 | 6 | |
7 | 7 | use Automattic\Jetpack\ConnectionUI\Admin; |
8 | 8 | |
9 | -defined( 'ABSPATH' ) || exit; |
|
9 | +defined('ABSPATH') || exit; |
|
10 | 10 | |
11 | 11 | ?> |
12 | 12 | <div class="table-responsive"> |
13 | 13 | <table id="wpinv_gateways_select" class="table border bg-white form-table"> |
14 | - <caption><?php echo esc_html_e( 'This table displays installed payment methods.', 'invoicing' ); ?></caption> |
|
14 | + <caption><?php echo esc_html_e('This table displays installed payment methods.', 'invoicing'); ?></caption> |
|
15 | 15 | |
16 | 16 | <thead> |
17 | 17 | <tr class="table-light"> |
18 | 18 | |
19 | 19 | <th scope="col" class="border-bottom border-top text-left"> |
20 | - <?php _e( 'Payment Method', 'invoicing' ); ?> |
|
20 | + <?php _e('Payment Method', 'invoicing'); ?> |
|
21 | 21 | </th> |
22 | 22 | |
23 | 23 | <th scope="col" class="border-bottom border-top text-center"> |
24 | - <?php _e( 'Enabled', 'invoicing' ); ?> |
|
24 | + <?php _e('Enabled', 'invoicing'); ?> |
|
25 | 25 | </th> |
26 | 26 | |
27 | 27 | <th scope="col" class="border-bottom border-top text-center"> |
28 | - <?php _e( 'Supports Subscriptions', 'invoicing' ); ?> |
|
28 | + <?php _e('Supports Subscriptions', 'invoicing'); ?> |
|
29 | 29 | </th> |
30 | 30 | |
31 | 31 | <th scope="col" class="border-bottom border-top text-right" style="width:32px"> </th> |
@@ -34,15 +34,15 @@ discard block |
||
34 | 34 | </thead> |
35 | 35 | |
36 | 36 | <tbody> |
37 | - <?php foreach ( wpinv_get_payment_gateways() as $id => $gateway ) : ?> |
|
37 | + <?php foreach (wpinv_get_payment_gateways() as $id => $gateway) : ?> |
|
38 | 38 | <tr> |
39 | 39 | <td class="getpaid-payment-method text-left"> |
40 | - <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> |
|
40 | + <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> |
|
41 | 41 | </td> |
42 | 42 | <td class="getpaid-payment-method-enabled text-center"> |
43 | 43 | <?php |
44 | 44 | |
45 | - if ( wpinv_is_gateway_active( $id ) ) { |
|
45 | + if (wpinv_is_gateway_active($id)) { |
|
46 | 46 | echo "<i class='text-success fa fa-check'></i>"; |
47 | 47 | } else { |
48 | 48 | echo "<i class='text-dark fa fa-times'></i>"; |
@@ -53,10 +53,10 @@ discard block |
||
53 | 53 | <td class="getpaid-payment-method-subscription text-center"> |
54 | 54 | <?php |
55 | 55 | |
56 | - $supports = apply_filters( "wpinv_{$id}_support_subscription", false ); |
|
57 | - $supports = apply_filters( 'getapid_gateway_supports_subscription', $supports, $id ); |
|
56 | + $supports = apply_filters("wpinv_{$id}_support_subscription", false); |
|
57 | + $supports = apply_filters('getapid_gateway_supports_subscription', $supports, $id); |
|
58 | 58 | |
59 | - if ( $supports ) { |
|
59 | + if ($supports) { |
|
60 | 60 | echo "<i class='text-success fa fa-check'></i>"; |
61 | 61 | } else { |
62 | 62 | echo "<i class='text-dark fa fa-times'></i>"; |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | </td> |
67 | 67 | |
68 | 68 | <td class="getpaid-payment-method-action text-right"> |
69 | - <a class="button button-secondary" href="<?php echo esc_url( add_query_arg( 'section', $id ) ); ?>"><?php _e( 'Manage', 'invoicing' ); ?></a> |
|
69 | + <a class="button button-secondary" href="<?php echo esc_url(add_query_arg('section', $id)); ?>"><?php _e('Manage', 'invoicing'); ?></a> |
|
70 | 70 | </td> |
71 | 71 | |
72 | 72 | </tr> |
@@ -76,8 +76,8 @@ discard block |
||
76 | 76 | <tfoot> |
77 | 77 | <tr class="table-light"> |
78 | 78 | <td colspan="4" class="border-top"> |
79 | - <a class="button button-secondary getpaid-install-gateways" href="<?php echo esc_url( admin_url( 'admin.php?page=wpi-addons&tab=gateways' ) ); ?>"> |
|
80 | - <span><?php _e( 'Add Payment Methods', 'invoicing' ); ?></span> |
|
79 | + <a class="button button-secondary getpaid-install-gateways" href="<?php echo esc_url(admin_url('admin.php?page=wpi-addons&tab=gateways')); ?>"> |
|
80 | + <span><?php _e('Add Payment Methods', 'invoicing'); ?></span> |
|
81 | 81 | </a> |
82 | 82 | </td> |
83 | 83 | </tr> |