customer-dashboard
2 years ago
admin-header.php
1 year ago
admin-index-header.php
2 years ago
admin-index-styles.php
1 year ago
admin-settings-header.php
2 years ago
admin-settings-notices.php
3 years ago
admin-settings-sidebar.php
1 year ago
admin-settings-styles.php
3 years ago
store-logo.php
2 years ago
admin-header.php
68 lines
| 1 | <style> |
| 2 | #sc-admin-header { |
| 3 | background-color: #fff; |
| 4 | width: calc(100% + 20px); |
| 5 | margin-left: -20px; |
| 6 | } |
| 7 | |
| 8 | #sc-admin-container { |
| 9 | padding: 20px; |
| 10 | display: flex; |
| 11 | align-items: center; |
| 12 | justify-content: space-between; |
| 13 | } |
| 14 | |
| 15 | #sc-admin-title { |
| 16 | margin: 0; |
| 17 | font-size: var(--sc-font-size-large); |
| 18 | } |
| 19 | |
| 20 | .sc-admin-suffix { |
| 21 | display: flex; |
| 22 | width: 16rem; |
| 23 | align-items: center; |
| 24 | justify-content: flex-end; |
| 25 | gap: 1em; |
| 26 | } |
| 27 | </style> |
| 28 | |
| 29 | |
| 30 | <div id="sc-admin-header"> |
| 31 | <?php if ( ! empty( $claim_url ) ) : ?> |
| 32 | <sc-provisional-banner claim-url="<?php echo esc_url( $claim_url ); ?>"></sc-provisional-banner> |
| 33 | <?php endif; ?> |
| 34 | <div id="sc-admin-container"> |
| 35 | <?php if ( ! empty( $breadcrumbs ) ) : ?> |
| 36 | <sc-breadcrumbs style="font-size: 16px"> |
| 37 | <sc-breadcrumb> |
| 38 | <img style="display: block" src="<?php echo esc_url( trailingslashit( plugin_dir_url( SURECART_PLUGIN_FILE ) ) . 'images/logo.svg' ); ?>" alt="SureCart" width="125"> |
| 39 | </sc-breadcrumb> |
| 40 | <?php foreach ( $breadcrumbs as $breadcrumb ) : ?> |
| 41 | <sc-breadcrumb><?php echo esc_html( $breadcrumb['title'] ?? '' ); ?></sc-breadcrumb> |
| 42 | <?php endforeach; ?> |
| 43 | </sc-breadcrumbs> |
| 44 | <?php endif; ?> |
| 45 | <?php if ( ! empty( $suffix ) || ! empty( $report_url ) ) : ?> |
| 46 | <div class="sc-admin-suffix"> |
| 47 | <?php |
| 48 | if ( ! empty( $suffix ) ) { |
| 49 | echo wp_kses_post( $suffix ); |
| 50 | } |
| 51 | ?> |
| 52 | <?php |
| 53 | if ( ! empty( $report_url ) ) { |
| 54 | $report_url = add_query_arg( 'switch_account_id', \SureCart::account()->id, $report_url ); |
| 55 | ?> |
| 56 | <sc-button type="default" size="medium" href="<?php echo esc_url( $report_url ); ?>" target="_blank"> |
| 57 | <sc-icon name="bar-chart-2" slot="prefix"></sc-icon> |
| 58 | <?php esc_html_e( 'View Reports', 'surecart' ); ?> |
| 59 | <sc-icon name="external-link" slot="suffix"></sc-icon> |
| 60 | </sc-button> |
| 61 | <?php |
| 62 | } |
| 63 | ?> |
| 64 | </div> |
| 65 | <?php endif; ?> |
| 66 | </div> |
| 67 | </div> |
| 68 |