customer-dashboard
3 years ago
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
store-logo.php
3 years ago
admin-settings-sidebar.php
111 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-upgrade-required required="<?php echo empty( $entitlements->abandoned_checkouts ) ? 'true' : 'false'; ?>"> |
| 16 | <sc-tab |
| 17 | disabled="<?php echo empty( $entitlements->abandoned_checkouts ) ? 'true' : 'false'; ?>" |
| 18 | href=" |
| 19 | <?php |
| 20 | echo empty( $entitlements->abandoned_checkouts ) ? |
| 21 | '#' : |
| 22 | esc_url( add_query_arg( [ 'tab' => 'abandoned_checkout' ], menu_page_url( 'sc-settings', false ) ) ); |
| 23 | ?> |
| 24 | " <?php echo 'abandoned_checkout' === $tab ? 'active' : ''; ?>> |
| 25 | <sc-icon slot="prefix" style="width: 18px; height: 18px; opacity: 0.7;" name="shopping-cart"></sc-icon> |
| 26 | <?php esc_html_e( 'Abandoned Checkout', 'surecart' ); ?> |
| 27 | <?php if ( empty( $entitlements->abandoned_checkouts ) ) : ?> |
| 28 | <sc-premium-tag></sc-premium-tag> |
| 29 | <?php endif; ?> |
| 30 | </sc-tab> |
| 31 | </sc-upgrade-required> |
| 32 | |
| 33 | <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' : ''; ?>> |
| 34 | <sc-icon slot="prefix" style="width: 18px; height: 18px; opacity: 0.7;" name="bell"></sc-icon> |
| 35 | <?php esc_html_e( 'Notifications', 'surecart' ); ?> |
| 36 | </sc-tab> |
| 37 | |
| 38 | <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' : ''; ?>> |
| 39 | <sc-icon slot="prefix" style="width: 18px; height: 18px; opacity: 0.7;" name="refresh-ccw"></sc-icon> |
| 40 | <?php esc_html_e( 'Subscriptions', 'surecart' ); ?> |
| 41 | </sc-tab> |
| 42 | |
| 43 | <sc-upgrade-required required="<?php echo empty( $entitlements->abandoned_checkouts ) ? 'true' : 'false'; ?>"> |
| 44 | <sc-tab |
| 45 | disabled="<?php echo empty( $entitlements->subscription_preservation ) ? 'true' : 'false'; ?>" |
| 46 | href=" |
| 47 | <?php |
| 48 | echo empty( $entitlements->subscription_preservation ) ? |
| 49 | '#' : |
| 50 | esc_url( add_query_arg( [ 'tab' => 'subscription_preservation' ], menu_page_url( 'sc-settings', false ) ) ); |
| 51 | ?> |
| 52 | " <?php echo 'subscription_preservation' === $tab ? 'active' : ''; ?>> |
| 53 | <sc-icon slot="prefix" style="width: 18px; height: 18px; opacity: 0.7;" name="bar-chart-2"></sc-icon> |
| 54 | <?php esc_html_e( 'Subscription Saver', 'surecart' ); ?> |
| 55 | <?php if ( empty( $entitlements->subscription_preservation ) ) : ?> |
| 56 | <sc-premium-tag></sc-premium-tag> |
| 57 | <?php endif; ?> |
| 58 | </sc-tab> |
| 59 | </sc-upgrade-required> |
| 60 | <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' : ''; ?>> |
| 61 | <sc-icon slot="prefix" style="width: 18px; height: 18px; opacity: 0.7;" name="briefcase"></sc-icon> |
| 62 | <?php esc_html_e( 'Customer Portal', 'surecart' ); ?> |
| 63 | </sc-tab> |
| 64 | <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' : ''; ?>> |
| 65 | <sc-icon slot="prefix" style="width: 18px; height: 18px; opacity: 0.7;" name="tag"></sc-icon> |
| 66 | <?php esc_html_e( 'Taxes', 'surecart' ); ?> |
| 67 | </sc-tab> |
| 68 | <sc-tab href="<?php echo esc_url( add_query_arg( [ 'tab' => 'processors' ], menu_page_url( 'sc-settings', false ) ) ); ?>" <?php echo 'processors' === $tab ? 'active' : ''; ?>> |
| 69 | <sc-icon slot="prefix" style="width: 18px; height: 18px; opacity: 0.7;" name="credit-card"></sc-icon> |
| 70 | <?php esc_html_e( 'Payment Processors', 'surecart' ); ?> |
| 71 | </sc-tab> |
| 72 | <sc-tab href="<?php echo esc_url( add_query_arg( [ 'tab' => 'export' ], menu_page_url( 'sc-settings', false ) ) ); ?>" <?php echo 'export' === $tab ? 'active' : ''; ?> > |
| 73 | <sc-icon style="font-size: 18px; width: 18px; stroke-width: 4; opacity: 0.7" name="layers" slot="prefix"></sc-icon> |
| 74 | <?php esc_html_e( 'Data Export', 'surecart' ); ?> |
| 75 | </sc-tab> |
| 76 | <?php endif; ?> |
| 77 | |
| 78 | <sc-tab href="<?php echo esc_url( add_query_arg( [ 'tab' => 'connection' ], menu_page_url( 'sc-settings', false ) ) ); ?>" <?php echo 'connection' === $tab ? 'active' : ''; ?> > |
| 79 | <sc-icon style="font-size: 18px; width: 18px; stroke-width: 4; opacity: 0.7" name="upload-cloud" slot="prefix"></sc-icon> |
| 80 | <?php esc_html_e( 'Connection', 'surecart' ); ?> |
| 81 | </sc-tab> |
| 82 | |
| 83 | <sc-tab href="<?php echo esc_url( add_query_arg( [ 'tab' => 'advanced' ], menu_page_url( 'sc-settings', false ) ) ); ?>" <?php echo 'advanced' === $tab ? 'active' : ''; ?> > |
| 84 | <sc-icon style="font-size: 18px; width: 18px; stroke-width: 4; opacity: 0.7" name="sliders" slot="prefix"></sc-icon> |
| 85 | <?php esc_html_e( 'Advanced', 'surecart' ); ?> |
| 86 | </sc-tab> |
| 87 | |
| 88 | <?php if ( $is_free ) : ?> |
| 89 | <div class="sc-item-stick-bottom"> |
| 90 | <sc-card href="<?php echo esc_url( $upgrade_url ); ?>" class="surecart-cta"> |
| 91 | <sc-flex flex-direction="column" flex-direction="column" style="--spacing: var(--sc-spacing-medium)"> |
| 92 | <sc-flex justify-content="flex-start"> |
| 93 | <sc-icon style="font-size: 18px; width: 18px; stroke-width: 4; color: var(--sc-color-primary-500)" name="zap"></sc-icon> |
| 94 | <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> |
| 95 | </sc-flex> |
| 96 | <sc-text><?php esc_html_e( 'Unlock revenue boosting features when you upgrade to Pro!', 'surecart' ); ?></sc-text> |
| 97 | <sc-button type="primary" href="<?php echo esc_url( $upgrade_url ); ?>" target="_blank"> |
| 98 | <?php esc_html_e( 'Upgrade To Pro', 'surecart' ); ?> |
| 99 | </sc-button> |
| 100 | </sc-flex> |
| 101 | </sc-card> |
| 102 | </div> |
| 103 | <?php endif; ?> |
| 104 | |
| 105 | <a href="https://surecart.com/support/" target="_blank" class="surecart-help"> |
| 106 | <sc-icon style="font-size: 18px; width: 22px; stroke-width: 4;" name="life-buoy"></sc-icon> |
| 107 | <?php esc_html_e( 'Help', 'surecart' ); ?> |
| 108 | </a> |
| 109 | |
| 110 | </div> |
| 111 |