abandoned-orders
3 years ago
bumps
3 years ago
cancellation-insights
3 years ago
coupons
3 years ago
customers
3 years ago
invoices
3 years ago
licenses
3 years ago
notices
2 years ago
onboarding
3 years ago
orders
2 years ago
product-groups
3 years ago
products
3 years ago
subscriptions
2 years ago
upgrade-paths
3 years ago
advanced.php
3 years ago
coming-soon.php
3 years ago
connection-invalid.php
3 years ago
connection.php
3 years ago
denied.php
3 years ago
plugin.php
3 years ago
settings-page.php
3 years ago
settings.php
3 years ago
store.php
3 years ago
user-profile.php
3 years ago
connection-invalid.php
56 lines
| 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 |