admin-header.php
3 years ago
admin-index-header.php
3 years ago
admin-index-styles.php
3 years ago
admin-settings-header.php
3 years ago
admin-settings-notices.php
3 years ago
admin-settings-sidebar.php
3 years ago
admin-settings-styles.php
3 years ago
admin-settings-sidebar.php
89 lines
| 1 | <div id="sc-nav" style="--sc-tabs-min-width: 0;"> |
| 2 | <?php if ( (bool) \SureCart\Models\ApiToken::get() ) : ?> |
| 3 | <sc-tab href="<?php echo esc_url( remove_query_arg( 'tab' ) ); ?>" <?php echo ! $tab ? 'active' : ''; ?>> |
| 4 | <sc-icon slot="prefix" style="width: 18px; height: 18px; opacity: 0.7;" name="sliders"></sc-icon> |
| 5 | <?php esc_html_e( 'Store Settings', 'surecart' ); ?> |
| 6 | </sc-tab> |
| 7 | <sc-tab href="<?php echo esc_url( add_query_arg( [ 'tab' => 'brand' ], menu_page_url( 'sc-settings', false ) ) ); ?>" <?php echo 'brand' === $tab ? 'active' : ''; ?>> |
| 8 | <sc-icon slot="prefix" style="width: 18px; height: 18px; opacity: 0.7;" name="pen-tool"></sc-icon> |
| 9 | <?php esc_html_e( 'Design & Branding', 'surecart' ); ?> |
| 10 | </sc-tab> |
| 11 | <sc-tab href="<?php echo esc_url( add_query_arg( [ 'tab' => 'order' ], menu_page_url( 'sc-settings', false ) ) ); ?>" <?php echo 'order' === $tab ? 'active' : ''; ?>> |
| 12 | <sc-icon slot="prefix" style="width: 18px; height: 18px; opacity: 0.7;" name="shopping-bag"></sc-icon> |
| 13 | <?php esc_html_e( 'Orders & Receipts', 'surecart' ); ?> |
| 14 | </sc-tab> |
| 15 | <sc-tab |
| 16 | disabled="<?php echo empty( $entitlements->abandoned_checkouts ) ? 'true' : 'false' ?>" |
| 17 | href=" |
| 18 | <?php |
| 19 | echo empty( $entitlements->abandoned_checkouts ) ? |
| 20 | '#' : |
| 21 | esc_url( add_query_arg( [ 'tab' => 'abandoned_checkout' ], menu_page_url( 'sc-settings', false ) ) ); |
| 22 | ?> |
| 23 | " <?php echo 'abandoned_checkout' === $tab ? 'active' : ''; ?>> |
| 24 | <sc-icon slot="prefix" style="width: 18px; height: 18px; opacity: 0.7;" name="shopping-cart"></sc-icon> |
| 25 | <?php esc_html_e( 'Abandoned Checkout', 'surecart' ); ?> |
| 26 | <?php if ( empty( $entitlements->abandoned_checkouts ) ) : ?> |
| 27 | <sc-tag slot="suffix" type="success"><?php esc_html_e( 'Pro', 'surecart' ); ?></sc-tag> |
| 28 | <?php endif; ?> |
| 29 | </sc-tab> |
| 30 | <sc-tab href="<?php echo esc_url( add_query_arg( [ 'tab' => 'customer_notification_protocol' ], menu_page_url( 'sc-settings', false ) ) ); ?>" <?php echo 'customer_notification_protocol' === $tab ? 'active' : ''; ?>> |
| 31 | <sc-icon slot="prefix" style="width: 18px; height: 18px; opacity: 0.7;" name="bell"></sc-icon> |
| 32 | <?php esc_html_e( 'Notifications', 'surecart' ); ?> |
| 33 | </sc-tab> |
| 34 | <sc-tab href="<?php echo esc_url( add_query_arg( [ 'tab' => 'subscription_protocol' ], menu_page_url( 'sc-settings', false ) ) ); ?>" <?php echo 'subscription_protocol' === $tab ? 'active' : ''; ?>> |
| 35 | <sc-icon slot="prefix" style="width: 18px; height: 18px; opacity: 0.7;" name="refresh-ccw"></sc-icon> |
| 36 | <?php esc_html_e( 'Subscriptions', 'surecart' ); ?> |
| 37 | </sc-tab> |
| 38 | <sc-tab href="<?php echo esc_url( add_query_arg( [ 'tab' => 'portal_protocol' ], menu_page_url( 'sc-settings', false ) ) ); ?>" <?php echo 'portal_protocol' === $tab ? 'active' : ''; ?>> |
| 39 | <sc-icon slot="prefix" style="width: 18px; height: 18px; opacity: 0.7;" name="briefcase"></sc-icon> |
| 40 | <?php esc_html_e( 'Customer Portal', 'surecart' ); ?> |
| 41 | </sc-tab> |
| 42 | <sc-tab href="<?php echo esc_url( add_query_arg( [ 'tab' => 'tax_protocol' ], menu_page_url( 'sc-settings', false ) ) ); ?>" <?php echo 'tax_protocol' === $tab ? 'active' : ''; ?>> |
| 43 | <sc-icon slot="prefix" style="width: 18px; height: 18px; opacity: 0.7;" name="tag"></sc-icon> |
| 44 | <?php esc_html_e( 'Taxes', 'surecart' ); ?> |
| 45 | </sc-tab> |
| 46 | <sc-tab href="<?php echo esc_url( add_query_arg( [ 'tab' => 'processors' ], menu_page_url( 'sc-settings', false ) ) ); ?>" <?php echo 'processors' === $tab ? 'active' : ''; ?>> |
| 47 | <sc-icon slot="prefix" style="width: 18px; height: 18px; opacity: 0.7;" name="credit-card"></sc-icon> |
| 48 | <?php esc_html_e( 'Processors', 'surecart' ); ?> |
| 49 | </sc-tab> |
| 50 | <sc-tab href="<?php echo esc_url( add_query_arg( [ 'tab' => 'export' ], menu_page_url( 'sc-settings', false ) ) ); ?>" <?php echo 'export' === $tab ? 'active' : ''; ?> > |
| 51 | <sc-icon style="font-size: 18px; width: 22px; stroke-width: 4; opacity: 0.7" name="layers" slot="prefix"></sc-icon> |
| 52 | <?php esc_html_e( 'Data Export', 'surecart' ); ?> |
| 53 | </sc-tab> |
| 54 | <?php endif; ?> |
| 55 | |
| 56 | <sc-tab href="<?php echo esc_url( add_query_arg( [ 'tab' => 'connection' ], menu_page_url( 'sc-settings', false ) ) ); ?>" <?php echo 'connection' === $tab ? 'active' : ''; ?> > |
| 57 | <sc-icon style="font-size: 18px; width: 22px; stroke-width: 4; opacity: 0.7" name="upload-cloud" slot="prefix"></sc-icon> |
| 58 | <?php esc_html_e( 'Connection', 'surecart' ); ?> |
| 59 | </sc-tab> |
| 60 | |
| 61 | <sc-tab href="<?php echo esc_url( add_query_arg( [ 'tab' => 'advanced' ], menu_page_url( 'sc-settings', false ) ) ); ?>" <?php echo 'advanced' === $tab ? 'active' : ''; ?> > |
| 62 | <sc-icon style="font-size: 18px; width: 22px; stroke-width: 4; opacity: 0.7" name="sliders" slot="prefix"></sc-icon> |
| 63 | <?php esc_html_e( 'Advanced', 'surecart' ); ?> |
| 64 | </sc-tab> |
| 65 | |
| 66 | <?php if ( $is_free ) : ?> |
| 67 | <div class="sc-item-stick-bottom"> |
| 68 | <sc-card href="<?php echo esc_url( $upgrade_url ); ?>" class="surecart-cta"> |
| 69 | <sc-flex flex-direction="column" flex-direction="column" style="--spacing: var(--sc-spacing-medium)"> |
| 70 | <sc-flex justify-content="flex-start"> |
| 71 | <sc-icon style="font-size: 18px; width: 22px; stroke-width: 4; color: var(--sc-color-primary-500)" name="zap"></sc-icon> |
| 72 | <sc-text style="--font-size: var(--sc-font-size-large); --font-weight: var(--sc-font-weight-bold)"><?php esc_html_e( 'Boost Your Revenue', 'surecart' ); ?></sc-text> |
| 73 | </sc-flex> |
| 74 | <sc-text><?php esc_html_e( 'Unlock revenue boosting features when you upgrade to Pro!', 'surecart' ); ?></sc-text> |
| 75 | <sc-button type="primary" href="<?php echo esc_url( $upgrade_url ); ?>" target="_blank"> |
| 76 | <?php esc_html_e( 'Upgrade To Pro', 'surecart' ); ?> |
| 77 | </sc-button> |
| 78 | </sc-flex> |
| 79 | </sc-card> |
| 80 | </div> |
| 81 | <?php endif; ?> |
| 82 | |
| 83 | <a href="https://surecart.com/support/" target="_blank" class="surecart-help"> |
| 84 | <sc-icon style="font-size: 18px; width: 22px; stroke-width: 4;" name="life-buoy"></sc-icon> |
| 85 | <?php esc_html_e( 'Help', 'surecart' ); ?> |
| 86 | </a> |
| 87 | |
| 88 | </div> |
| 89 |