@@ -4,40 +4,40 @@ |
||
4 | 4 | * |
5 | 5 | */ |
6 | 6 | |
7 | -defined( 'ABSPATH' ) || exit; |
|
7 | +defined('ABSPATH') || exit; |
|
8 | 8 | |
9 | 9 | global $aui_bs5; |
10 | 10 | ?> |
11 | 11 | <div class="card shadow-sm my-5"> |
12 | 12 | <div class="text-center card-body"> |
13 | - <h1 class="h3"><?php esc_html_e( 'Awesome, you are ready to Get Paid', 'invoicing' ); ?></h1> |
|
13 | + <h1 class="h3"><?php esc_html_e('Awesome, you are ready to Get Paid', 'invoicing'); ?></h1> |
|
14 | 14 | |
15 | 15 | <div class="geodirectory-message geodirectory-tracker"> |
16 | - <p><?php esc_html_e( 'Thank you for choosing GetPaid!', 'invoicing' ); ?> <i class="far fa-smile-beam"></i></p> |
|
16 | + <p><?php esc_html_e('Thank you for choosing GetPaid!', 'invoicing'); ?> <i class="far fa-smile-beam"></i></p> |
|
17 | 17 | </div> |
18 | 18 | |
19 | 19 | <div class="gp-setup-next-steps"> |
20 | 20 | <div class="gp-setup-next-steps-first mb-4"> |
21 | 21 | <div> |
22 | - <h2 class="h3"><i class="fas fa-arrow-down"></i> <?php esc_html_e( 'Watch This', 'invoicing' ); ?> <i class="fas fa-arrow-down"></i></h2> |
|
23 | - <div class="<?php echo( $aui_bs5 ? 'ratio ratio-16x9' : 'embed-responsive embed-responsive-16by9' ); ?> mb-4"> |
|
24 | - <iframe class="<?php echo( $aui_bs5 ? '' : 'embed-responsive-item' ); ?>" src="https://www.youtube.com/embed/TXZuPXHjt9E?rel=0" allowfullscreen></iframe> |
|
22 | + <h2 class="h3"><i class="fas fa-arrow-down"></i> <?php esc_html_e('Watch This', 'invoicing'); ?> <i class="fas fa-arrow-down"></i></h2> |
|
23 | + <div class="<?php echo($aui_bs5 ? 'ratio ratio-16x9' : 'embed-responsive embed-responsive-16by9'); ?> mb-4"> |
|
24 | + <iframe class="<?php echo($aui_bs5 ? '' : 'embed-responsive-item'); ?>" src="https://www.youtube.com/embed/TXZuPXHjt9E?rel=0" allowfullscreen></iframe> |
|
25 | 25 | </div> |
26 | 26 | </div> |
27 | - <h2 class="h3"><?php esc_html_e( 'Next steps', 'invoicing' ); ?></h2> |
|
27 | + <h2 class="h3"><?php esc_html_e('Next steps', 'invoicing'); ?></h2> |
|
28 | 28 | |
29 | 29 | <div class="d-flex justify-content-between"> |
30 | - <a class="btn btn-outline-primary btn-sm" href="<?php echo esc_url( admin_url( 'post-new.php?post_type=wpi_item' ) ); ?>"><span class="h1 d-block"><i class="fas fa-box-open"></i></span> <?php esc_html_e( 'Create Item', 'invoicing' ); ?></a> |
|
31 | - <a class="btn btn-outline-primary btn-sm" href="<?php echo esc_url( admin_url( 'post-new.php?post_type=wpi_payment_form' ) ); ?>"><span class="h1 d-block"><i class="fas fa-align-justify"></i></span> <?php esc_html_e( 'Create Payment Form', 'invoicing' ); ?></a> |
|
32 | - <a class="btn btn-outline-primary btn-sm" href="<?php echo esc_url( admin_url( 'post-new.php?post_type=wpi_invoice' ) ); ?>"><span class="h1 d-block"><i class="fas fa-file-alt"></i></span> <?php esc_html_e( 'Create Invoice', 'invoicing' ); ?></a> |
|
30 | + <a class="btn btn-outline-primary btn-sm" href="<?php echo esc_url(admin_url('post-new.php?post_type=wpi_item')); ?>"><span class="h1 d-block"><i class="fas fa-box-open"></i></span> <?php esc_html_e('Create Item', 'invoicing'); ?></a> |
|
31 | + <a class="btn btn-outline-primary btn-sm" href="<?php echo esc_url(admin_url('post-new.php?post_type=wpi_payment_form')); ?>"><span class="h1 d-block"><i class="fas fa-align-justify"></i></span> <?php esc_html_e('Create Payment Form', 'invoicing'); ?></a> |
|
32 | + <a class="btn btn-outline-primary btn-sm" href="<?php echo esc_url(admin_url('post-new.php?post_type=wpi_invoice')); ?>"><span class="h1 d-block"><i class="fas fa-file-alt"></i></span> <?php esc_html_e('Create Invoice', 'invoicing'); ?></a> |
|
33 | 33 | </div> |
34 | 34 | |
35 | - <h2 class="h3 mt-4"><?php esc_html_e( 'Learn more', 'invoicing' ); ?></h2> |
|
35 | + <h2 class="h3 mt-4"><?php esc_html_e('Learn more', 'invoicing'); ?></h2> |
|
36 | 36 | <div class="gp-setup-next-steps-last mt-2 d-flex justify-content-between"> |
37 | - <a class="btn btn-outline-primary btn-sm" href="https://docs.wpgetpaid.com/collection/114-getting-started?utm_source=setupwizard&utm_medium=product&utm_content=getting-started&utm_campaign=invoicingplugin" target="_blank"><?php esc_html_e( 'Getting Started', 'invoicing' ); ?></a> |
|
38 | - <a class="btn btn-outline-primary btn-sm" href="https://docs.wpgetpaid.com/?utm_source=setupwizard&utm_medium=product&utm_content=docs&utm_campaign=invoicingplugin" target="_blank"><?php esc_html_e( 'Documentation', 'invoicing' ); ?></a> |
|
39 | - <a class="btn btn-outline-primary btn-sm" href="https://wpgetpaid.com/support/?utm_source=setupwizard&utm_medium=product&utm_content=docs&utm_campaign=invoicingyplugin" target="_blank"><?php esc_html_e( 'Support', 'invoicing' ); ?></a> |
|
40 | - <a class="btn btn-outline-primary btn-sm" href="https://demos.ayecode.io/getpaid/?utm_source=setupwizard&utm_medium=product&utm_content=demos&utm_campaign=invoicingyplugin" target="_blank"><?php esc_html_e( 'Demos', 'invoicing' ); ?></a> |
|
37 | + <a class="btn btn-outline-primary btn-sm" href="https://docs.wpgetpaid.com/collection/114-getting-started?utm_source=setupwizard&utm_medium=product&utm_content=getting-started&utm_campaign=invoicingplugin" target="_blank"><?php esc_html_e('Getting Started', 'invoicing'); ?></a> |
|
38 | + <a class="btn btn-outline-primary btn-sm" href="https://docs.wpgetpaid.com/?utm_source=setupwizard&utm_medium=product&utm_content=docs&utm_campaign=invoicingplugin" target="_blank"><?php esc_html_e('Documentation', 'invoicing'); ?></a> |
|
39 | + <a class="btn btn-outline-primary btn-sm" href="https://wpgetpaid.com/support/?utm_source=setupwizard&utm_medium=product&utm_content=docs&utm_campaign=invoicingyplugin" target="_blank"><?php esc_html_e('Support', 'invoicing'); ?></a> |
|
40 | + <a class="btn btn-outline-primary btn-sm" href="https://demos.ayecode.io/getpaid/?utm_source=setupwizard&utm_medium=product&utm_content=demos&utm_campaign=invoicingyplugin" target="_blank"><?php esc_html_e('Demos', 'invoicing'); ?></a> |
|
41 | 41 | </div> |
42 | 42 | </div> |
43 | 43 | </div> |
@@ -4,7 +4,7 @@ discard block |
||
4 | 4 | * |
5 | 5 | */ |
6 | 6 | |
7 | -defined( 'ABSPATH' ) || exit; |
|
7 | +defined('ABSPATH') || exit; |
|
8 | 8 | |
9 | 9 | global $aui_bs5; |
10 | 10 | ?> |
@@ -12,24 +12,24 @@ 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 esc_html_e( 'Gateway Setup', 'invoicing' ); ?></h2> |
|
16 | - <p><?php esc_html_e( 'Below are a few gateways that can be setup in a few seconds.', 'invoicing' ); ?> |
|
15 | + <h2 class="gd-settings-title h3 "><?php esc_html_e('Gateway Setup', 'invoicing'); ?></h2> |
|
16 | + <p><?php esc_html_e('Below are a few gateways that can be setup in a few seconds.', 'invoicing'); ?> |
|
17 | 17 | <br> |
18 | - <?php esc_html_e( 'We have 20+ Gateways that can be setup later.', 'invoicing' ); ?> |
|
18 | + <?php esc_html_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="<?php echo( $aui_bs5 ? 'ms-n2' : '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="<?php echo($aui_bs5 ? 'ms-n2' : 'ml-n2'); ?>" alt="Stripe"></span> |
|
25 | + <?php if (false === wpinv_get_option('stripe_live_connect_account_id')) : ?> |
|
26 | 26 | <a href="<?php |
27 | - echo esc_url( wp_nonce_url( |
|
27 | + echo esc_url(wp_nonce_url( |
|
28 | 28 | add_query_arg( |
29 | 29 | array( |
30 | 30 | 'getpaid-admin-action' => 'connect_gateway', |
31 | 31 | 'plugin' => 'stripe', |
32 | - 'redirect' => urlencode( add_query_arg( 'step', 'payments' ) ), |
|
32 | + 'redirect' => urlencode(add_query_arg('step', 'payments')), |
|
33 | 33 | ), |
34 | 34 | admin_url() |
35 | 35 | ), |
@@ -37,42 +37,42 @@ discard block |
||
37 | 37 | 'getpaid-nonce' |
38 | 38 | )); |
39 | 39 | ?>" |
40 | - class="btn btn-sm btn-outline-primary"><?php esc_html_e( 'Connect', 'invoicing' ); ?></a> |
|
40 | + class="btn btn-sm btn-outline-primary"><?php esc_html_e('Connect', 'invoicing'); ?></a> |
|
41 | 41 | <?php else : ?> |
42 | - <span class="btn btn-sm btn-success"><?php esc_html_e( 'Connected', 'invoicing' ); ?></span> |
|
42 | + <span class="btn btn-sm btn-success"><?php esc_html_e('Connected', 'invoicing'); ?></span> |
|
43 | 43 | <?php endif; ?> |
44 | 44 | </li> |
45 | 45 | |
46 | 46 | <li class="list-group-item"> |
47 | 47 | <div class="d-flex justify-content-between align-items-center"> |
48 | - <span class="<?php echo( $aui_bs5 ? 'me-auto' : 'mr-auto' ); ?>"> |
|
49 | - <img src="<?php echo esc_url( WPINV_PLUGIN_URL . 'assets/images/pp-logo-150px.webp' ); ?>" class="" alt="PayPal" height="25"> |
|
48 | + <span class="<?php echo($aui_bs5 ? 'me-auto' : 'mr-auto'); ?>"> |
|
49 | + <img src="<?php echo esc_url(WPINV_PLUGIN_URL . 'assets/images/pp-logo-150px.webp'); ?>" class="" alt="PayPal" height="25"> |
|
50 | 50 | </span> |
51 | 51 | <a |
52 | 52 | href="#" |
53 | 53 | onclick="jQuery('.getpaid-setup-paypal-input').toggleClass('d-none'); return false;" |
54 | - class="getpaid-setup-paypal btn btn-sm btn-outline-primary"><?php esc_html_e( 'Set-up', 'invoicing' ); ?></a> |
|
54 | + class="getpaid-setup-paypal btn btn-sm btn-outline-primary"><?php esc_html_e('Set-up', 'invoicing'); ?></a> |
|
55 | 55 | </div> |
56 | 56 | <div class="mt-4 getpaid-setup-paypal-input d-none"> |
57 | - <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' ) ); ?>"> |
|
57 | + <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')); ?>"> |
|
58 | 58 | </div> |
59 | 59 | </li> |
60 | 60 | |
61 | 61 | <li class="list-group-item d-flex justify-content-between align-items-center"> |
62 | - <span class="<?php echo( $aui_bs5 ? 'me-auto' : 'mr-auto' ); ?>"><?php esc_html_e( 'Test Gateway', 'invoicing' ); ?></span> |
|
63 | - <div class="<?php echo ( $aui_bs5 ? 'form-check form-switch' : 'custom-control custom-switch' ); ?>"> |
|
64 | - <input type="checkbox" name="enable-manual-gateway" id="enable-manual-gateway" value="1" class="<?php echo ( $aui_bs5 ? 'form-check-input' : 'custom-control-input' ); ?>" <?php checked( wpinv_is_gateway_active( 'manual' ) ); ?>> |
|
65 | - <label class="<?php echo ( $aui_bs5 ? 'form-check-label' : 'custom-control-label' ); ?>" for="enable-manual-gateway"></label> |
|
62 | + <span class="<?php echo($aui_bs5 ? 'me-auto' : 'mr-auto'); ?>"><?php esc_html_e('Test Gateway', 'invoicing'); ?></span> |
|
63 | + <div class="<?php echo ($aui_bs5 ? 'form-check form-switch' : 'custom-control custom-switch'); ?>"> |
|
64 | + <input type="checkbox" name="enable-manual-gateway" id="enable-manual-gateway" value="1" class="<?php echo ($aui_bs5 ? 'form-check-input' : 'custom-control-input'); ?>" <?php checked(wpinv_is_gateway_active('manual')); ?>> |
|
65 | + <label class="<?php echo ($aui_bs5 ? 'form-check-label' : 'custom-control-label'); ?>" for="enable-manual-gateway"></label> |
|
66 | 66 | </div> |
67 | 67 | </li> |
68 | 68 | </ul> |
69 | 69 | </div> |
70 | 70 | |
71 | 71 | <p class="gp-setup-actions step text-center mt-4"> |
72 | - <input type="submit" class="btn btn-primary" value="<?php esc_attr_e( 'Continue', 'invoicing' ); ?>" /> |
|
72 | + <input type="submit" class="btn btn-primary" value="<?php esc_attr_e('Continue', 'invoicing'); ?>" /> |
|
73 | 73 | </p> |
74 | 74 | |
75 | - <?php getpaid_hidden_field( 'save_step', 1 ); ?> |
|
76 | - <?php wp_nonce_field( 'getpaid-setup-wizard', 'getpaid-setup-wizard' ); ?> |
|
75 | + <?php getpaid_hidden_field('save_step', 1); ?> |
|
76 | + <?php wp_nonce_field('getpaid-setup-wizard', 'getpaid-setup-wizard'); ?> |
|
77 | 77 | </form> |
78 | 78 | </div> |
@@ -4,14 +4,14 @@ discard block |
||
4 | 4 | * |
5 | 5 | */ |
6 | 6 | |
7 | -defined( 'ABSPATH' ) || exit; |
|
7 | +defined('ABSPATH') || exit; |
|
8 | 8 | |
9 | 9 | global $aui_bs5; |
10 | 10 | ?> |
11 | 11 | <div class="card shadow-sm my-5"> |
12 | - <form method="post" class="<?php echo( $aui_bs5 ? 'text-start' : 'text-left' ); ?> card-body" action="options.php"> |
|
13 | - <?php settings_fields( 'wpinv_settings' ); ?> |
|
14 | - <input type="hidden" name="_wp_http_referer" value="<?php echo esc_url( $next_url ); ?>"> |
|
12 | + <form method="post" class="<?php echo($aui_bs5 ? 'text-start' : 'text-left'); ?> card-body" action="options.php"> |
|
13 | + <?php settings_fields('wpinv_settings'); ?> |
|
14 | + <input type="hidden" name="_wp_http_referer" value="<?php echo esc_url($next_url); ?>"> |
|
15 | 15 | |
16 | 16 | <table class="gp-setup-maps w-100 " cellspacing="0"> |
17 | 17 | <tbody> |
@@ -19,28 +19,28 @@ discard block |
||
19 | 19 | |
20 | 20 | global $wp_settings_fields; |
21 | 21 | |
22 | - if ( isset( $wp_settings_fields[ $page ][ $section ] ) ) { |
|
23 | - $settings = $wp_settings_fields[ $page ][ $section ]; |
|
22 | + if (isset($wp_settings_fields[$page][$section])) { |
|
23 | + $settings = $wp_settings_fields[$page][$section]; |
|
24 | 24 | |
25 | - foreach ( $settings as $field ) { |
|
25 | + foreach ($settings as $field) { |
|
26 | 26 | |
27 | - $name = esc_attr( $field['id'] ); |
|
28 | - $id = sanitize_key( $name ); |
|
27 | + $name = esc_attr($field['id']); |
|
28 | + $id = sanitize_key($name); |
|
29 | 29 | $class = ''; |
30 | - $value = isset( $field['args']['std'] ) ? $field['args']['std'] : ''; |
|
31 | - $value = wpinv_clean( wpinv_get_option( $field['args']['id'], $value ) ); |
|
32 | - $help_text = isset( $field['args']['desc'] ) ? wp_kses_post( $field['args']['desc'] ) : ''; |
|
33 | - $type = str_replace( 'wpinv_', '', str_replace( '_callback', '', $field['callback'] ) ); |
|
34 | - $label = isset( $field['args']['name'] ) ? wp_kses_post( $field['args']['name'] ) : ''; |
|
35 | - $options = isset( $field['args']['options'] ) ? $field['args']['options'] : array(); |
|
36 | - |
|
37 | - if ( false !== strpos( $name, 'logo' ) ) { |
|
30 | + $value = isset($field['args']['std']) ? $field['args']['std'] : ''; |
|
31 | + $value = wpinv_clean(wpinv_get_option($field['args']['id'], $value)); |
|
32 | + $help_text = isset($field['args']['desc']) ? wp_kses_post($field['args']['desc']) : ''; |
|
33 | + $type = str_replace('wpinv_', '', str_replace('_callback', '', $field['callback'])); |
|
34 | + $label = isset($field['args']['name']) ? wp_kses_post($field['args']['name']) : ''; |
|
35 | + $options = isset($field['args']['options']) ? $field['args']['options'] : array(); |
|
36 | + |
|
37 | + if (false !== strpos($name, 'logo')) { |
|
38 | 38 | $type = 'hidden'; |
39 | 39 | } |
40 | 40 | |
41 | - if ( 'country_states' == $type ) { |
|
41 | + if ('country_states' == $type) { |
|
42 | 42 | |
43 | - if ( 0 == count( wpinv_get_country_states( wpinv_get_default_country() ) ) ) { |
|
43 | + if (0 == count(wpinv_get_country_states(wpinv_get_default_country()))) { |
|
44 | 44 | $type = 'text'; |
45 | 45 | } else { |
46 | 46 | $type = 'select'; |
@@ -49,14 +49,14 @@ discard block |
||
49 | 49 | $class = 'getpaid_js_field-state'; |
50 | 50 | } |
51 | 51 | |
52 | - if ( 'wpinv_settings[default_country]' == $name ) { |
|
52 | + if ('wpinv_settings[default_country]' == $name) { |
|
53 | 53 | $class = 'getpaid_js_field-country'; |
54 | 54 | } |
55 | 55 | |
56 | - switch ( $type ) { |
|
56 | + switch ($type) { |
|
57 | 57 | |
58 | 58 | case 'hidden': |
59 | - echo "<input type='hidden' id='" . esc_attr( $id ) . "' name='" . esc_attr( $name ) . "' value='" . esc_attr( $value ) . "' />"; |
|
59 | + echo "<input type='hidden' id='" . esc_attr($id) . "' name='" . esc_attr($name) . "' value='" . esc_attr($value) . "' />"; |
|
60 | 60 | break; |
61 | 61 | case 'text': |
62 | 62 | case 'number': |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | 'type' => $type, |
66 | 66 | 'id' => $id, |
67 | 67 | 'name' => $name, |
68 | - 'value' => is_scalar( $value ) ? esc_attr( $value ) : '', |
|
68 | + 'value' => is_scalar($value) ? esc_attr($value) : '', |
|
69 | 69 | 'required' => false, |
70 | 70 | 'help_text' => $help_text, |
71 | 71 | 'label' => $label, |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | array( |
82 | 82 | 'id' => $id, |
83 | 83 | 'name' => $name, |
84 | - 'value' => is_scalar( $value ) ? esc_textarea( $value ) : '', |
|
84 | + 'value' => is_scalar($value) ? esc_textarea($value) : '', |
|
85 | 85 | 'required' => false, |
86 | 86 | 'help_text' => $help_text, |
87 | 87 | 'label' => $label, |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | 'id' => $id, |
101 | 101 | 'name' => $name, |
102 | 102 | 'placeholder' => '', |
103 | - 'value' => is_scalar( $value ) ? esc_attr( $value ) : '', |
|
103 | + 'value' => is_scalar($value) ? esc_attr($value) : '', |
|
104 | 104 | 'required' => false, |
105 | 105 | 'help_text' => $help_text, |
106 | 106 | 'label' => $label, |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | <input |
127 | 127 | type="submit" |
128 | 128 | class="btn btn-primary button-next" |
129 | - value="<?php esc_attr_e( 'Continue', 'invoicing' ); ?>" name="save_step"/> |
|
129 | + value="<?php esc_attr_e('Continue', 'invoicing'); ?>" name="save_step"/> |
|
130 | 130 | </p> |
131 | 131 | </table> |
132 | 132 | </form> |
@@ -4,31 +4,31 @@ |
||
4 | 4 | * |
5 | 5 | */ |
6 | 6 | |
7 | -defined( 'ABSPATH' ) || exit; |
|
7 | +defined('ABSPATH') || exit; |
|
8 | 8 | |
9 | 9 | global $aui_bs5; |
10 | 10 | ?> |
11 | 11 | <div class="card shadow-sm my-5"> |
12 | - <form method="post" class="text-center card-body" action="<?php echo esc_url( admin_url() ); ?>"> |
|
13 | - <?php getpaid_hidden_field( 'getpaid-admin-action', 'install_plugin' ); ?> |
|
14 | - <?php wp_nonce_field( 'getpaid-nonce', 'getpaid-nonce' ); ?> |
|
15 | - <?php getpaid_hidden_field( 'redirect', $next_url ); ?> |
|
12 | + <form method="post" class="text-center card-body" action="<?php echo esc_url(admin_url()); ?>"> |
|
13 | + <?php getpaid_hidden_field('getpaid-admin-action', 'install_plugin'); ?> |
|
14 | + <?php wp_nonce_field('getpaid-nonce', 'getpaid-nonce'); ?> |
|
15 | + <?php getpaid_hidden_field('redirect', $next_url); ?> |
|
16 | 16 | <div class="gd-wizard-recommend"> |
17 | - <h2 class="gd-settings-title h3"><?php esc_html_e( 'Recommended Plugins', 'invoicing' ); ?></h2> |
|
18 | - <p><?php esc_html_e( 'Below are a few of our own plugins that may help you.', 'invoicing' ); ?></p> |
|
17 | + <h2 class="gd-settings-title h3"><?php esc_html_e('Recommended Plugins', 'invoicing'); ?></h2> |
|
18 | + <p><?php esc_html_e('Below are a few of our own plugins that may help you.', 'invoicing'); ?></p> |
|
19 | 19 | <ul class="list-group"> |
20 | - <?php foreach ( $recommended_plugins as $key => $plugin ) : ?> |
|
21 | - <li class="list-group-item d-flex justify-content-between align-items-center flex-wrap <?php echo( $aui_bs5 ? 'text-start' : 'text-left' ); ?>"> |
|
22 | - <span class="mr-auto"><?php echo esc_html( $plugin['name'] ); ?></span> |
|
23 | - <div class="<?php echo( $aui_bs5 ? 'form-check form-switch me-n2' : 'custom-control custom-switch mr-n2 getpaid-install-plugin-siwtch-div' ); ?>"> |
|
24 | - <input type="checkbox" name="plugins[<?php echo esc_attr( $plugin['slug'] ); ?>]" value="<?php echo esc_attr( $plugin['file'] ); ?>" class="<?php echo ( $aui_bs5 ? 'form-check-input' : 'custom-control-input' ); ?>" <?php if ( is_plugin_active( $plugin['file'] ) ) { echo 'checked';}?> id="ac-setting-updates<?php echo esc_attr( $key ); ?>"> |
|
25 | - <label class="<?php echo ( $aui_bs5 ? 'form-check-label' : 'custom-control-label' ); ?>" for="ac-setting-updates<?php echo esc_attr( $key ); ?>"></label> |
|
20 | + <?php foreach ($recommended_plugins as $key => $plugin) : ?> |
|
21 | + <li class="list-group-item d-flex justify-content-between align-items-center flex-wrap <?php echo($aui_bs5 ? 'text-start' : 'text-left'); ?>"> |
|
22 | + <span class="mr-auto"><?php echo esc_html($plugin['name']); ?></span> |
|
23 | + <div class="<?php echo($aui_bs5 ? 'form-check form-switch me-n2' : 'custom-control custom-switch mr-n2 getpaid-install-plugin-siwtch-div'); ?>"> |
|
24 | + <input type="checkbox" name="plugins[<?php echo esc_attr($plugin['slug']); ?>]" value="<?php echo esc_attr($plugin['file']); ?>" class="<?php echo ($aui_bs5 ? 'form-check-input' : 'custom-control-input'); ?>" <?php if (is_plugin_active($plugin['file'])) { echo 'checked'; }?> id="ac-setting-updates<?php echo esc_attr($key); ?>"> |
|
25 | + <label class="<?php echo ($aui_bs5 ? 'form-check-label' : 'custom-control-label'); ?>" for="ac-setting-updates<?php echo esc_attr($key); ?>"></label> |
|
26 | 26 | </div> |
27 | - <small class="w-100"><?php echo esc_attr( $plugin['desc'] ); ?></small> |
|
27 | + <small class="w-100"><?php echo esc_attr($plugin['desc']); ?></small> |
|
28 | 28 | </li> |
29 | 29 | <?php endforeach; ?> |
30 | 30 | </ul> |
31 | - <p class="gp-setup-actions step text-center mt-4"><input type="submit" class="btn btn-primary button-next" value="<?php esc_attr_e( 'Continue', 'invoicing' ); ?>" name="save_step"/></p> |
|
31 | + <p class="gp-setup-actions step text-center mt-4"><input type="submit" class="btn btn-primary button-next" value="<?php esc_attr_e('Continue', 'invoicing'); ?>" name="save_step"/></p> |
|
32 | 32 | </div> |
33 | 33 | </form> |
34 | 34 | </div> |
35 | 35 | \ No newline at end of file |