2023-10-05 08:36:18 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Title: Product Collection 5 Columns
|
|
|
|
* Slug: woocommerce-blocks/product-collection-5-columns
|
|
|
|
* Categories: WooCommerce
|
|
|
|
*/
|
2023-10-05 11:14:53 +00:00
|
|
|
use Automattic\WooCommerce\Blocks\Patterns\PatternsHelper;
|
|
|
|
|
|
|
|
$content = PatternsHelper::get_pattern_content( 'woocommerce-blocks/product-collection-5-columns' );
|
2023-10-13 08:08:35 +00:00
|
|
|
|
|
|
|
$products_title = $content['titles'][0]['default'] ?? '';
|
2023-10-05 08:36:18 +00:00
|
|
|
?>
|
|
|
|
|
2023-10-17 08:56:02 +00:00
|
|
|
<!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"top":"0","bottom":"0","left":"var:preset|spacing|30","right":"var:preset|spacing|30"},"margin":{"top":"0","bottom":"80px"}}},"layout":{"type":"constrained"}} -->
|
|
|
|
<div class="wp-block-group alignwide" style="margin-top:0;margin-bottom:80px;padding-top:0;padding-right:var(--wp--preset--spacing--30);padding-bottom:0;padding-left:var(--wp--preset--spacing--30)">
|
2023-10-05 11:14:53 +00:00
|
|
|
<!-- wp:heading {"level":3,"align":"wide"} -->
|
2023-10-13 08:08:35 +00:00
|
|
|
<h3 class="wp-block-heading alignwide"><?php echo esc_html( $products_title ); ?></h3>
|
2023-10-05 11:14:53 +00:00
|
|
|
<!-- /wp:heading -->
|
|
|
|
|
2023-11-09 08:21:11 +00:00
|
|
|
<!-- wp:woocommerce/product-collection {"query":{"perPage":5,"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":5},"align":"wide"} -->
|
2023-10-05 11:14:53 +00:00
|
|
|
<div class="wp-block-woocommerce-product-collection alignwide">
|
|
|
|
<!-- wp:woocommerce/product-template -->
|
2023-10-06 08:51:35 +00:00
|
|
|
<!-- wp:woocommerce/product-image {"aspectRatio":"3/5","imageSizing":"thumbnail","isDescendentOfQueryLoop":true} /-->
|
2023-10-11 11:20:16 +00:00
|
|
|
<!-- wp:post-title {"textAlign":"left","level":3,"isLink":true,"style":{"spacing":{"margin":{"bottom":"0.75rem","top":"0"}}},"fontSize":"medium","__woocommerceNamespace":"woocommerce/product-collection/product-title"} /-->
|
|
|
|
<!-- wp:woocommerce/product-price {"isDescendentOfQueryLoop":true,"textAlign":"left","fontSize":"small"} /-->
|
2023-10-05 11:14:53 +00:00
|
|
|
<!-- /wp:woocommerce/product-template -->
|
|
|
|
</div>
|
|
|
|
<!-- /wp:woocommerce/product-collection -->
|
2023-10-05 08:36:18 +00:00
|
|
|
</div>
|
2023-10-05 11:14:53 +00:00
|
|
|
<!-- /wp:group -->
|