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-collections
2 years ago
product-groups
3 years ago
products
2 years ago
subscriptions
2 years ago
upgrade-paths
3 years ago
advanced.php
2 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
advanced.php
78 lines
| 1 | <?php \SureCart::render( 'layouts/partials/admin-settings-styles' ); ?> |
| 2 | |
| 3 | <div id="sc-settings-container"> |
| 4 | <?php \SureCart::render( 'layouts/partials/admin-settings-header' ); ?> |
| 5 | |
| 6 | <div id="sc-settings-content"> |
| 7 | <?php |
| 8 | \SureCart::render( |
| 9 | 'layouts/partials/admin-settings-sidebar', |
| 10 | [ |
| 11 | 'tab' => $tab, |
| 12 | ] |
| 13 | ); |
| 14 | ?> |
| 15 | |
| 16 | <div class="sc-container"> |
| 17 | <?php |
| 18 | \SureCart::render( |
| 19 | 'layouts/partials/admin-settings-notices', |
| 20 | [ |
| 21 | 'status' => $status, |
| 22 | ] |
| 23 | ); |
| 24 | ?> |
| 25 | |
| 26 | <form action="" method="post"> |
| 27 | <div class="sc-section-heading"> |
| 28 | <h3> |
| 29 | <sc-icon name="sliders"></sc-icon> |
| 30 | <span><?php esc_html_e( 'Advanced Settings', 'surecart' ); ?></span> |
| 31 | </h3> |
| 32 | <sc-button type="primary" submit> |
| 33 | <?php esc_html_e( 'Save', 'surecart' ); ?> |
| 34 | </sc-button> |
| 35 | </div> |
| 36 | |
| 37 | <?php wp_nonce_field( 'update_plugin_settings', 'nonce' ); ?> |
| 38 | |
| 39 | <sc-flex flex-direction="column" style="--spacing: var(--sc-spacing-xx-large)"> |
| 40 | <sc-flex flex-direction="column"> |
| 41 | <sc-text style="--font-size: var(--sc-font-size-large); --font-weight: var(--sc-font-weight-bold); --line-height:1; --color: var(--sc-color-brand-heading)"><?php esc_html_e( 'Performance', 'surecart' ); ?></sc-text> |
| 42 | <sc-text style="margin-bottom: 1em; --line-height:1; --color: var(--sc-color-brand-body)"><?php esc_html_e( 'Change your plugin performance settings.', 'surecart' ); ?></sc-text> |
| 43 | <sc-card> |
| 44 | <sc-switch name="use_esm_loader" <?php checked( $use_esm_loader, 1 ); ?> value="on"> |
| 45 | <?php esc_html_e( 'Use JavaScript ESM Loader', 'surecart' ); ?> |
| 46 | <span slot="description" style="line-height: 1.4"><?php esc_html_e( 'This can slightly increase page load speed, but may require you to enable CORS headers for .js files on your CDN. Please check your checkout forms after you enable this option in a private browser window.', 'surecart' ); ?></span> |
| 47 | </sc-switch> |
| 48 | </sc-card> |
| 49 | </sc-flex> |
| 50 | |
| 51 | <sc-flex flex-direction="column"> |
| 52 | <sc-text style="--font-size: var(--sc-font-size-large); --font-weight: var(--sc-font-weight-bold); --line-height:1;"><?php esc_html_e( 'Legacy Features', 'surecart' ); ?></sc-text> |
| 53 | <sc-text style="margin-bottom: 1em; --line-height:1; --color: var(--sc-color-brand-body)"><?php esc_html_e( 'Opt-in to some legacy features of the plugin.', 'surecart' ); ?></sc-text> |
| 54 | <sc-card> |
| 55 | <sc-switch name="stripe-payment-element" <?php checked( $stripe_payment_element, 0 ); ?> value="off"> |
| 56 | <?php esc_html_e( 'Use the Stripe Card Element', 'surecart' ); ?> |
| 57 | <span slot="description"><?php esc_html_e( "Use Stripe's Card Element instead of the Payment Element in all forms.", 'surecart' ); ?></span> |
| 58 | </sc-switch> |
| 59 | </sc-card> |
| 60 | </sc-flex> |
| 61 | |
| 62 | <sc-flex flex-direction="column"> |
| 63 | <sc-text style="--font-size: var(--sc-font-size-large); --font-weight: var(--sc-font-weight-bold); --line-height:1;"><?php esc_html_e( 'Uninstall', 'surecart' ); ?></sc-text> |
| 64 | <sc-text style="margin-bottom: 1em; --line-height:1; --color: var(--sc-color-brand-body)"><?php esc_html_e( 'Change your plugin uninstall settings.', 'surecart' ); ?></sc-text> |
| 65 | <sc-card> |
| 66 | <sc-switch name="uninstall" <?php checked( $uninstall, 1 ); ?> value="on"> |
| 67 | <?php esc_html_e( 'Remove Plugin Data', 'surecart' ); ?> |
| 68 | <span slot="description"><?php esc_html_e( 'Completely remove all plugin data when deleted. This cannot be undone.', 'surecart' ); ?></span> |
| 69 | </sc-switch> |
| 70 | </sc-card> |
| 71 | </sc-flex> |
| 72 | </sc-flex> |
| 73 | </form> |
| 74 | </div> |
| 75 | </div> |
| 76 | </div> |
| 77 | |
| 78 |