PluginProbe
SureCart – Ecommerce Made Easy For Selling Physical Products, Digital Downloads, Subscriptions, Donations, & Payments / 2.1.3
SureCart – Ecommerce Made Easy For Selling Physical Products, Digital Downloads, Subscriptions, Donations, & Payments v2.1.3
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-invalid.php
connection-invalid.php
56 lines 2.2 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 <div class="sc-container">
12 <?php
13 \SureCart::render(
14 'layouts/partials/admin-settings-notices',
15 [
16 'status' => $status,
17 ]
18 );
19 ?>
20
21 <form action="<?php echo esc_url( add_query_arg( [ 'tab' => 'connection' ], menu_page_url( 'sc-settings', false ) ) ); ?>" method="post">
22 <div class="sc-section-heading">
23 <h3>
24 <sc-icon name="upload-cloud"></sc-icon>
25 <span><?php esc_html_e( 'Update Your Connection', 'surecart' ); ?></span>
26 </h3>
27 <sc-button type="primary" submit>
28 <?php esc_html_e( 'Save', 'surecart' ); ?>
29 </sc-button>
30 </div>
31
32 <?php wp_nonce_field( 'update_plugin_settings', 'nonce' ); ?>
33
34 <sc-flex flex-direction="column" style="--spacing: var(--sc-spacing-xxx-large)">
35 <sc-flex flex-direction="column">
36 <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>
37 <sc-text style="margin-bottom: 1em; --line-height:1; --color: var(--sc-color-gray-500)"><?php esc_html_e( 'Add your API token to connect to SureCart.', 'surecart' ); ?></sc-text>
38 <sc-card>
39 <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>
40 </sc-card>
41 <?php if ( defined( 'SURECART_APP_URL' ) ) : ?>
42 <sc-flex justify-content="center">
43 <sc-button href="<?php echo esc_url( SURECART_APP_URL ); ?>" type="link" target="_blank">
44 <?php esc_html_e( 'Find My Api Token', 'surecart' ); ?>
45 <sc-icon name="arrow-right" slot="suffix"></sc-icon>
46 </sc-button>
47 </sc-flex>
48 <?php endif; ?>
49 </sc-flex>
50 </sc-flex>
51 </form>
52 </div>
53 </div>
54 </div>
55
56