25 lines
1.7 KiB
PHP
25 lines
1.7 KiB
PHP
<?php
|
|
/**
|
|
* Title: Product Gallery
|
|
* Slug: woocommerce-blocks/product-query-product-gallery
|
|
* Categories: WooCommerce
|
|
* Block Types: core/query/woocommerce/product-query
|
|
*/
|
|
?>
|
|
|
|
<!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"top":"0","bottom":"0","left":"var:preset|spacing|30","right":"var:preset|spacing|30"},"margin":{"top":"0px","bottom":"80px"}}},"layout":{"type":"constrained"}} -->
|
|
<div class="wp-block-group alignwide" style="margin-top:0px;margin-bottom:80px;padding-top:0;padding-right:var(--wp--preset--spacing--30);padding-bottom:0;padding-left:var(--wp--preset--spacing--30)">
|
|
<!-- wp:woocommerce/product-collection {"query":{"perPage":6,"pages":0,"offset":0,"postType":"product","order":"asc","orderBy":"title","search":"","exclude":[],"inherit":false,"taxQuery":{},"isProductCollectionBlock":true,"woocommerceOnSale":false,"woocommerceStockStatus":["instock","outofstock","onbackorder"],"woocommerceAttributes":[],"woocommerceHandPickedProducts":[]},"tagName":"div","displayLayout":{"type":"flex","columns":3,"shrinkColumns":true},"align":"wide","layout":{"type":"default"}} -->
|
|
<div class="wp-block-woocommerce-product-collection alignwide">
|
|
<!-- wp:woocommerce/product-template -->
|
|
<!-- wp:woocommerce/product-image {"imageSizing":"thumbnail","isDescendentOfQueryLoop":true, "aspectRatio":"3/4"} /-->
|
|
|
|
<!-- wp:post-title {"textAlign":"center","level":6,"isLink":true,"style":{"typography":{"textTransform":"capitalize"},"spacing":{"margin":{"top":"12px","bottom":"8px"}}}} /-->
|
|
|
|
<!-- wp:woocommerce/product-price {"isDescendentOfQueryLoop":true,"textAlign":"center","fontSize":"small"} /-->
|
|
<!-- /wp:woocommerce/product-template -->
|
|
</div>
|
|
<!-- /wp:woocommerce/product-collection -->
|
|
</div>
|
|
<!-- /wp:group -->
|