PluginProbe
SureCart – Ecommerce Made Easy For Selling Physical Products, Digital Downloads, Subscriptions, Donations, & Payments / 2.17.2
SureCart – Ecommerce Made Easy For Selling Physical Products, Digital Downloads, Subscriptions, Donations, & Payments v2.17.2
4.7.2 4.7.1 4.7.0 4.6.6 4.6.5 4.6.4 4.6.3 4.6.2 4.6.1 4.6.0 4.5.1 4.5.0 4.4.2 4.4.1 4.4.0 4.3.3 4.3.2 4.3.1 4.3.0 4.2.3 4.2.2 4.2.1 1.0.3 1.0.4 1.0.5 All 281 releases
surecart / views / admin / connection.php
connection.php
65 lines 2.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <!-- refresh this page every 15 minutes to prevent session from expiring -->
2 <meta http-equiv="refresh" content="1800" >
3
4 <?php \SureCart::render( 'layouts/partials/admin-settings-styles' ); ?>
5
6
7 <div id="sc-settings-container">
8 <?php \SureCart::render( 'layouts/partials/admin-settings-header' ); ?>
9
10 <div id="sc-settings-content">
11 <?php
12 \SureCart::render(
13 'layouts/partials/admin-settings-sidebar',
14 [
15 'tab' => $tab,
16 ]
17 );
18 ?>
19
20 <div class="sc-container">
21 <?php
22 \SureCart::render(
23 'layouts/partials/admin-settings-notices',
24 [
25 'status' => $status,
26 ]
27 );
28 ?>
29
30 <form action="<?php echo esc_url( add_query_arg( [ 'tab' => 'connection' ], menu_page_url( 'sc-settings', false ) ) ); ?>" method="post">
31 <div class="sc-section-heading">
32 <h3>
33 <sc-icon name="upload-cloud"></sc-icon>
34 <span><?php esc_html_e( 'Connection Settings', 'surecart' ); ?></span>
35 </h3>
36 <sc-button type="primary" submit>
37 <?php esc_html_e( 'Save', 'surecart' ); ?>
38 </sc-button>
39 </div>
40
41 <?php wp_nonce_field( 'update_plugin_settings', 'nonce' ); ?>
42
43 <sc-flex flex-direction="column" style="--spacing: var(--sc-spacing-xxx-large)">
44 <sc-flex flex-direction="column">
45 <sc-text style="--font-size: var(--sc-font-size-large); --font-weight: var(--sc-font-weight-bold); --line-height:1;"><?php esc_html_e( 'Connection Details', 'surecart' ); ?></sc-text>
46 <sc-text style="margin-bottom: 1em; --line-height:1; --color: var(--sc-color-gray-500)"><?php esc_html_e( 'Update your api token to change or update the connection to SureCart.', 'surecart' ); ?></sc-text>
47 <sc-card>
48 <sc-input label="<?php echo esc_attr_e( 'Api Token', 'surecart' ); ?>" type="password" value="<?php echo esc_attr( $api_token ); ?>" name="api_token" placeholder="<?php echo esc_attr_e( 'Enter your api token.', 'surecart' ); ?>"></sc-input>
49 </sc-card>
50 <?php if ( defined( 'SURECART_APP_URL' ) ) : ?>
51 <sc-flex justify-content="center">
52 <sc-button href="<?php echo esc_url( SURECART_APP_URL ); ?>" type="link" target="_blank">
53 <?php esc_html_e( 'Find My Api Token', 'surecart' ); ?>
54 <sc-icon name="arrow-right" slot="suffix"></sc-icon>
55 </sc-button>
56 </sc-flex>
57 <?php endif; ?>
58 </sc-flex>
59 </sc-flex>
60 </form>
61 </div>
62 </div>
63 </div>
64
65