38 lines
1.7 KiB
PHP
38 lines
1.7 KiB
PHP
<?php
|
|
/**
|
|
* Title: WooCommerce Minimal 5-Column Products Row
|
|
* Slug: woocommerce-blocks/product-query-minimal-5-column-products-row
|
|
* Categories: WooCommerce
|
|
* Block Types: core/query/woocommerce/product-query
|
|
*/
|
|
?>
|
|
<!-- wp:query {"queryId":1,"query":{"perPage":"5","pages":0,"offset":0,"postType":"product","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false,"__woocommerceStockStatus":["instock","outofstock","onbackorder"]},"displayLayout":{"type":"flex","columns":5},"namespace":"woocommerce/product-query","layout":{"type":"default"}} -->
|
|
<div class="wp-block-query"><!-- wp:post-template -->
|
|
<!-- wp:woocommerce/product-image {"saleBadgeAlign":"left","isDescendentOfQueryLoop":true} /-->
|
|
|
|
<!-- wp:columns -->
|
|
<div class="wp-block-columns"><!-- wp:column {"width":"50%"} -->
|
|
<div class="wp-block-column" style="flex-basis:50%"><!-- wp:post-title {"isLink":true,"fontSize":"small"} /--></div>
|
|
<!-- /wp:column -->
|
|
|
|
<!-- wp:column {"width":"50%"} -->
|
|
<div class="wp-block-column" style="flex-basis:50%"><!-- wp:woocommerce/product-price {"isDescendentOfQueryLoop":true,"textAlign":"right","fontSize":"small"} /--></div>
|
|
<!-- /wp:column --></div>
|
|
<!-- /wp:columns -->
|
|
<!-- /wp:post-template -->
|
|
|
|
<!-- wp:query-pagination {"layout":{"type":"flex","justifyContent":"center"}} -->
|
|
<!-- wp:query-pagination-previous /-->
|
|
|
|
<!-- wp:query-pagination-numbers /-->
|
|
|
|
<!-- wp:query-pagination-next /-->
|
|
<!-- /wp:query-pagination -->
|
|
|
|
<!-- wp:query-no-results -->
|
|
<!-- wp:paragraph {"placeholder":"Add text or blocks that will display when a query returns no results."} -->
|
|
<p></p>
|
|
<!-- /wp:paragraph -->
|
|
<!-- /wp:query-no-results --></div>
|
|
<!-- /wp:query -->
|