@@ -4,7 +4,7 @@ discard block |
||
4 | 4 | * |
5 | 5 | */ |
6 | 6 | |
7 | -defined( 'ABSPATH' ) || exit; |
|
7 | +defined('ABSPATH') || exit; |
|
8 | 8 | |
9 | 9 | ?> |
10 | 10 | |
@@ -12,54 +12,54 @@ discard block |
||
12 | 12 | |
13 | 13 | <form method="post" class="text-center card-body"> |
14 | 14 | <div class="gp-wizard-payments"> |
15 | - <h2 class="gd-settings-title h3 "><?php _e( 'Gateway Setup', 'invoicing' ); ?></h2> |
|
16 | - <p><?php _e( 'Below are a few gateways that can be setup in a few seconds.', 'invoicing' ); ?> |
|
15 | + <h2 class="gd-settings-title h3 "><?php _e('Gateway Setup', 'invoicing'); ?></h2> |
|
16 | + <p><?php _e('Below are a few gateways that can be setup in a few seconds.', 'invoicing'); ?> |
|
17 | 17 | <br> |
18 | - <?php _e( 'We have 20+ Gateways that can be setup later.', 'invoicing' ); ?> |
|
18 | + <?php _e('We have 20+ Gateways that can be setup later.', 'invoicing'); ?> |
|
19 | 19 | </p> |
20 | 20 | |
21 | 21 | <ul class="list-group"> |
22 | 22 | |
23 | 23 | <li class="list-group-item d-flex justify-content-between align-items-center"> |
24 | - <span class="mr-auto"><img src="<?php echo esc_url( WPINV_PLUGIN_URL . 'assets/images/stripe-verified.svg' );?>" class="ml-n2" alt="Stripe"></span> |
|
25 | - <?php if ( false === wpinv_get_option( 'stripe_live_connect_account_id' ) ) : ?> |
|
24 | + <span class="mr-auto"><img src="<?php echo esc_url(WPINV_PLUGIN_URL . 'assets/images/stripe-verified.svg'); ?>" class="ml-n2" alt="Stripe"></span> |
|
25 | + <?php if (false === wpinv_get_option('stripe_live_connect_account_id')) : ?> |
|
26 | 26 | <a href="<?php echo wp_nonce_url( |
27 | 27 | add_query_arg( |
28 | 28 | array( |
29 | 29 | 'getpaid-admin-action' => 'connect_gateway', |
30 | 30 | 'plugin' => 'stripe', |
31 | - 'redirect' => urlencode( add_query_arg( 'step', 'payments' ) ), |
|
31 | + 'redirect' => urlencode(add_query_arg('step', 'payments')), |
|
32 | 32 | ), |
33 | 33 | admin_url() |
34 | 34 | ), |
35 | 35 | 'getpaid-nonce', |
36 | 36 | 'getpaid-nonce' |
37 | 37 | ); ?>" |
38 | - class="btn btn-sm btn-outline-primary"><?php _e( 'Connect', 'invoicing' ); ?></a> |
|
38 | + class="btn btn-sm btn-outline-primary"><?php _e('Connect', 'invoicing'); ?></a> |
|
39 | 39 | <?php else: ?> |
40 | - <span class="btn btn-sm btn-success"><?php _e( 'Connected', 'invoicing' ); ?></span> |
|
40 | + <span class="btn btn-sm btn-success"><?php _e('Connected', 'invoicing'); ?></span> |
|
41 | 41 | <?php endif; ?> |
42 | 42 | </li> |
43 | 43 | |
44 | 44 | <li class="list-group-item"> |
45 | 45 | <div class="d-flex justify-content-between align-items-center"> |
46 | 46 | <span class="mr-auto"> |
47 | - <img src="<?php echo esc_url( WPINV_PLUGIN_URL . 'assets/images/pp-logo-150px.webp' );?>" class="" alt="PayPal" height="25"> |
|
47 | + <img src="<?php echo esc_url(WPINV_PLUGIN_URL . 'assets/images/pp-logo-150px.webp'); ?>" class="" alt="PayPal" height="25"> |
|
48 | 48 | </span> |
49 | 49 | <a |
50 | 50 | href="#" |
51 | 51 | onclick="jQuery('.getpaid-setup-paypal-input').toggleClass('d-none'); return false;" |
52 | - class="getpaid-setup-paypal btn btn-sm btn-outline-primary"><?php _e( 'Set-up', 'invoicing' ); ?></a> |
|
52 | + class="getpaid-setup-paypal btn btn-sm btn-outline-primary"><?php _e('Set-up', 'invoicing'); ?></a> |
|
53 | 53 | </div> |
54 | 54 | <div class="mt-4 getpaid-setup-paypal-input d-none"> |
55 | - <input type="text" placeholder="<?php esc_attr_e( 'PayPal Email', 'invoicing' ); ?>" name="paypal-email" class="form-control" value="<?php echo esc_attr( wpinv_get_option( 'paypal_email' ) ); ?>"> |
|
55 | + <input type="text" placeholder="<?php esc_attr_e('PayPal Email', 'invoicing'); ?>" name="paypal-email" class="form-control" value="<?php echo esc_attr(wpinv_get_option('paypal_email')); ?>"> |
|
56 | 56 | </div> |
57 | 57 | </li> |
58 | 58 | |
59 | 59 | <li class="list-group-item d-flex justify-content-between align-items-center"> |
60 | - <span class="mr-auto"><?php _e( 'Test Gateway', 'invoicing' ); ?></span> |
|
60 | + <span class="mr-auto"><?php _e('Test Gateway', 'invoicing'); ?></span> |
|
61 | 61 | <div class="custom-control custom-switch"> |
62 | - <input type="checkbox" name="enable-manual-gateway" class="custom-control-input" id="enable-manual-gateway" <?php checked( wpinv_is_gateway_active( 'manual' ) ); ?>> |
|
62 | + <input type="checkbox" name="enable-manual-gateway" class="custom-control-input" id="enable-manual-gateway" <?php checked(wpinv_is_gateway_active('manual')); ?>> |
|
63 | 63 | <label class="custom-control-label" for="enable-manual-gateway"></label> |
64 | 64 | </div> |
65 | 65 | </li> |
@@ -68,10 +68,10 @@ discard block |
||
68 | 68 | </div> |
69 | 69 | |
70 | 70 | <p class="gp-setup-actions step text-center mt-4"> |
71 | - <input type="submit" class="btn btn-primary" value="<?php esc_attr_e( 'Continue', 'invoicing' ); ?>" /> |
|
71 | + <input type="submit" class="btn btn-primary" value="<?php esc_attr_e('Continue', 'invoicing'); ?>" /> |
|
72 | 72 | </p> |
73 | 73 | |
74 | - <?php getpaid_hidden_field( 'save_step', 1 ); ?> |
|
75 | - <?php wp_nonce_field( 'getpaid-setup-wizard', 'getpaid-setup-wizard' ); ?> |
|
74 | + <?php getpaid_hidden_field('save_step', 1); ?> |
|
75 | + <?php wp_nonce_field('getpaid-setup-wizard', 'getpaid-setup-wizard'); ?> |
|
76 | 76 | </form> |
77 | 77 | </div> |