add-new-product-button.php
1 month ago
confirm-bulk-delete.php
2 years ago
edit.php
3 years ago
import-results.php
1 month ago
index.php
1 month ago
index.php
85 lines
| 1 | <style> |
| 2 | .wp-list-table .column-image { |
| 3 | width: 40px; |
| 4 | } |
| 5 | |
| 6 | .sc-product-name { |
| 7 | display: flex; |
| 8 | gap: 1em; |
| 9 | } |
| 10 | |
| 11 | .sc-product-name img { |
| 12 | width: 40px; |
| 13 | height: 40px; |
| 14 | border: var(--sc-input-border); |
| 15 | border-radius: var(--sc-border-radius-medium); |
| 16 | box-shadow: var(--sc-shadow-small); |
| 17 | flex: 1 0 40px; |
| 18 | object-fit: cover; |
| 19 | display: block; |
| 20 | flex: 0 0 40px; |
| 21 | } |
| 22 | |
| 23 | td.sync_status { |
| 24 | font-size: 16px; |
| 25 | line-height: 0; |
| 26 | color: var(--sc-color-gray-700); |
| 27 | } |
| 28 | |
| 29 | .syncing-wrapper { |
| 30 | display: flex; |
| 31 | align-items: center; |
| 32 | gap: 0.25em; |
| 33 | } |
| 34 | |
| 35 | .syncing-text { |
| 36 | font-size: 13px; |
| 37 | } |
| 38 | |
| 39 | td.sync_status .synced { |
| 40 | color: var(--sc-color-success-700); |
| 41 | } |
| 42 | |
| 43 | .sc-product-image-preview { |
| 44 | width: 40px; |
| 45 | height: 40px; |
| 46 | object-fit: cover; |
| 47 | background: #f3f3f3; |
| 48 | display: flex; |
| 49 | align-items: center; |
| 50 | justify-content: center; |
| 51 | border: var(--sc-input-border); |
| 52 | border-radius: var(--sc-border-radius-medium); |
| 53 | box-shadow: var(--sc-shadow-small); |
| 54 | flex: 0 0 40px; |
| 55 | } |
| 56 | |
| 57 | th#name { |
| 58 | width: 245px; |
| 59 | } |
| 60 | th#featured { |
| 61 | width: 60px; |
| 62 | } |
| 63 | |
| 64 | </style> |
| 65 | |
| 66 | <div class="wrap"> |
| 67 | <?php \SureCart::render( 'layouts/partials/admin-index-styles' ); ?> |
| 68 | <?php |
| 69 | \SureCart::render( |
| 70 | 'layouts/partials/admin-index-header', |
| 71 | [ |
| 72 | 'title' => __( 'Products', 'surecart' ), |
| 73 | 'after_title' => \SureCart::view( 'admin/products/add-new-product-button' )->toString(), |
| 74 | ] |
| 75 | ); |
| 76 | ?> |
| 77 | |
| 78 | <?php $table->search_form( __( 'Search Products', 'surecart' ), 'sc-search-products' ); ?> |
| 79 | |
| 80 | <form id="products-filter" method="get"> |
| 81 | <?php $table->views(); ?> |
| 82 | <?php $table->display(); ?> |
| 83 | </form> |
| 84 | </div> |
| 85 |