PluginProbe
SureCart – Ecommerce Made Easy For Selling Physical Products, Digital Downloads, Subscriptions, Donations, & Payments / 3.11.0
SureCart – Ecommerce Made Easy For Selling Physical Products, Digital Downloads, Subscriptions, Donations, & Payments v3.11.0
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 / advanced.php
advanced.php
78 lines 3.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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