cart-new.php
4 months ago
list-bento.php
1 year ago
list-carousel.php
1 year ago
list-row.php
1 year ago
list-sidebar.php
4 months ago
list-staggered.php
1 year ago
list-standard.php
4 months ago
product-alternate.php
4 months ago
product-review-standard.php
4 months ago
product-standard.php
4 months ago
related-carousel-alternate.php
1 year ago
related-carousel.php
1 year ago
list-sidebar.php
88 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Product List Sidebar block pattern. |
| 4 | */ |
| 5 | return [ |
| 6 | 'title' => __( 'Product List Sidebar', 'surecart' ), |
| 7 | 'categories' => [ 'surecart_shop' ], |
| 8 | 'blockTypes' => [ 'surecart/product-list' ], |
| 9 | 'priority' => 1, |
| 10 | 'content' => '<!-- wp:surecart/product-list {"limit":null,"query":{"perPage":9,"pages":0,"offset":0,"postType":"sc_product","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"include":[],"sticky":"","inherit":true,"taxQuery":null,"parents":[]},"metadata":{"categories":["surecart_shop"],"patternName":"surecart-list-sidebar","name":"Product List Sidebar"},"align":"wide"} --> |
| 11 | <!-- wp:group {"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"space-between"}} --> |
| 12 | <div class="wp-block-group"><!-- wp:surecart/product-list-sidebar-toggle {"label":"Filters"} /--> |
| 13 | |
| 14 | <!-- wp:surecart/product-list-search {"style":{"layout":{"selfStretch":"fixed","flexSize":"300px"}}} /--></div> |
| 15 | <!-- /wp:group --> |
| 16 | |
| 17 | <!-- wp:surecart/product-list-content {"layout":{"type":"flex","orientation":"horizontal","verticalAlignment":"top","flexWrap":"nowrap"}} --> |
| 18 | <!-- wp:surecart/product-list-sidebar {"style":{"layout":{"selfStretch":"fixed","flexSize":"225px"},"spacing":{"blockGap":"30px"},"position":{"type":"sticky","top":"0px"}}} --> |
| 19 | <!-- wp:surecart/product-list-filter-tags {"layout":{"type":"flex","orientation":"vertical"}} --> |
| 20 | <!-- wp:surecart/product-list-filter-tags-label {"style":{"typography":{"fontWeight":"700","fontStyle":"normal","fontSize":"16px"}}} /--> |
| 21 | |
| 22 | <!-- wp:surecart/product-list-filter-tags-template {"style":{"spacing":{"blockGap":"8px"},"typography":{"fontSize":"16px"}}} --> |
| 23 | <!-- wp:surecart/product-list-filter-tag {"style":{"typography":{"fontSize":"14px"}}} /--> |
| 24 | <!-- /wp:surecart/product-list-filter-tags-template --> |
| 25 | |
| 26 | <!-- wp:surecart/product-list-filter-tags-clear-all {"style":{"typography":{"textDecoration":"underline","fontWeight":"700","fontStyle":"normal"}},"fontSize":"small"} /--> |
| 27 | <!-- /wp:surecart/product-list-filter-tags --> |
| 28 | |
| 29 | <!-- wp:surecart/product-list-sort-radio-group {"layout":{"type":"flex","orientation":"vertical"},"style":{"spacing":{"blockGap":"8px"}}} --> |
| 30 | <!-- wp:surecart/product-list-sort-radio-group-label {"style":{"typography":{"fontWeight":"700","fontStyle":"normal","fontSize":"16px"}}} /--> |
| 31 | |
| 32 | <!-- wp:surecart/product-list-sort-radio-group-template {"style":{"spacing":{"blockGap":"6px"},"typography":{"fontSize":"16px"}}} --> |
| 33 | <!-- wp:surecart/product-list-sort-radio {"style":{"typography":{"fontSize":"16px"}}} /--> |
| 34 | <!-- /wp:surecart/product-list-sort-radio-group-template --> |
| 35 | <!-- /wp:surecart/product-list-sort-radio-group --> |
| 36 | |
| 37 | <!-- wp:surecart/product-list-filter-checkboxes {"layout":{"type":"flex","orientation":"vertical"},"style":{"spacing":{"blockGap":"8px"}}} --> |
| 38 | <!-- wp:surecart/product-list-filter-checkboxes-label {"label":"Collections","style":{"typography":{"fontWeight":"700","fontStyle":"normal","fontSize":"16px"}}} /--> |
| 39 | |
| 40 | <!-- wp:surecart/product-list-filter-checkboxes-template {"style":{"spacing":{"blockGap":"6px","margin":{"top":"0","bottom":"0"}},"typography":{"fontSize":"16px"}}} --> |
| 41 | <!-- wp:surecart/product-list-filter-checkbox {"style":{"typography":{"fontSize":"16px"}}} /--> |
| 42 | <!-- /wp:surecart/product-list-filter-checkboxes-template --> |
| 43 | <!-- /wp:surecart/product-list-filter-checkboxes --> |
| 44 | <!-- /wp:surecart/product-list-sidebar --> |
| 45 | |
| 46 | <!-- wp:surecart/product-template-container {"layout":{"type":"default"},"style":{"layout":{"selfStretch":"fill","flexSize":null}}} --> |
| 47 | <!-- wp:surecart/product-template {"style":{"spacing":{"blockGap":"30px"},"layout":{"selfStretch":"fill","flexSize":null}},"layout":{"type":"grid","columnCount":null,"minimumColumnWidth":"225px"}} --> |
| 48 | <!-- wp:group {"layout":{"type":"default"}} --> |
| 49 | <div class="wp-block-group"><!-- wp:group {"style":{"color":{"background":"#0000000d"},"border":{"radius":"10px"},"spacing":{"padding":{"top":"0px","bottom":"0px","left":"0px","right":"0px"},"margin":{"top":"0px","bottom":"0px"}}},"layout":{"type":"constrained"}} --> |
| 50 | <div class="wp-block-group has-background" style="border-radius:10px;background-color:#0000000d;margin-top:0px;margin-bottom:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px"><!-- wp:cover {"useFeaturedImage":true,"dimRatio":0,"isUserOverlayColor":true,"focalPoint":{"x":0.5,"y":0.5},"contentPosition":"top center","isDark":false,"style":{"dimensions":{"aspectRatio":"3/4"},"layout":{"selfStretch":"fit","flexSize":null},"spacing":{"margin":{"bottom":"15px"}},"border":{"radius":"10px"}},"layout":{"type":"default"}} --> |
| 51 | <div class="wp-block-cover is-light has-custom-content-position is-position-top-center" style="border-radius:10px;margin-bottom:15px"><span aria-hidden="true" class="wp-block-cover__background has-background-dim-0 has-background-dim"></span><div class="wp-block-cover__inner-container"><!-- wp:group {"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"space-between"}} --> |
| 52 | <div class="wp-block-group"><!-- wp:surecart/product-quick-view-button {"style":{"spacing":{"padding":{"top":"10px","bottom":"10px","left":"10px","right":"10px"}},"typography":{"fontSize":"12px","lineHeight":"1"},"elements":{"link":{"color":{"text":"var:preset|color|black"}}},"border":{"radius":"100px"}},"backgroundColor":"white","textColor":"black"} /--> |
| 53 | |
| 54 | <!-- wp:surecart/product-sale-badge {"style":{"typography":{"fontSize":"12px"},"border":{"radius":"100px"},"layout":{"selfStretch":"fit","flexSize":null}}} /--></div> |
| 55 | <!-- /wp:group --></div></div> |
| 56 | <!-- /wp:cover --></div> |
| 57 | <!-- /wp:group --> |
| 58 | |
| 59 | <!-- wp:surecart/product-title {"level":2,"style":{"typography":{"fontSize":"15px","fontStyle":"normal","fontWeight":"400"},"spacing":{"margin":{"bottom":"5px","top":"0px"}}}} /--> |
| 60 | |
| 61 | <!-- wp:surecart/product-review-average-rating-stars {"style":{"spacing":{"margin":{"top":"10px","bottom":"8px"}}}} /--> |
| 62 | |
| 63 | <!-- wp:group {"style":{"spacing":{"blockGap":"0.5em","margin":{"top":"0px","bottom":"0px"}},"margin":{"top":"0px","bottom":"0px"},"typography":{"lineHeight":"1"}},"layout":{"type":"flex","flexWrap":"nowrap"}} --> |
| 64 | <div class="wp-block-group" style="margin-top:0px;margin-bottom:0px;line-height:1"><!-- wp:surecart/product-list-price {"style":{"typography":{"fontSize":"18px","fontStyle":"normal","fontWeight":"600"},"spacing":{"margin":{"top":"5px","bottom":"5px"}}}} /--> |
| 65 | |
| 66 | <!-- wp:surecart/product-scratch-price {"style":{"typography":{"fontSize":"18px","fontStyle":"normal","fontWeight":"600"},"spacing":{"margin":{"top":"5px","bottom":"5px"}}}} /--></div> |
| 67 | <!-- /wp:group --></div> |
| 68 | <!-- /wp:group --> |
| 69 | <!-- /wp:surecart/product-template --> |
| 70 | |
| 71 | <!-- wp:surecart/product-list-no-products --> |
| 72 | <!-- wp:paragraph {"align":"center","placeholder":"Add text or blocks that will display when a query returns no products."} --> |
| 73 | <p class="has-text-align-center">No products found.</p> |
| 74 | <!-- /wp:paragraph --> |
| 75 | <!-- /wp:surecart/product-list-no-products --> |
| 76 | <!-- /wp:surecart/product-template-container --> |
| 77 | <!-- /wp:surecart/product-list-content --> |
| 78 | |
| 79 | <!-- wp:surecart/product-pagination --> |
| 80 | <!-- wp:surecart/product-pagination-previous /--> |
| 81 | |
| 82 | <!-- wp:surecart/product-pagination-numbers /--> |
| 83 | |
| 84 | <!-- wp:surecart/product-pagination-next /--> |
| 85 | <!-- /wp:surecart/product-pagination --> |
| 86 | <!-- /wp:surecart/product-list -->', |
| 87 | ]; |
| 88 |