2023-05-03 08:03:45 +00:00
|
|
|
<?php
|
|
|
|
/**
|
2023-06-21 07:50:12 +00:00
|
|
|
* Title: Product Collections Newest Arrivals
|
2023-05-03 08:03:45 +00:00
|
|
|
* Slug: woocommerce-blocks/product-collections-newest-arrivals
|
|
|
|
* Categories: WooCommerce
|
|
|
|
* Block Types: core/query/woocommerce/product-query
|
|
|
|
*/
|
2023-09-25 09:48:52 +00:00
|
|
|
|
|
|
|
use Automattic\WooCommerce\Blocks\Patterns\PatternsHelper;
|
|
|
|
$content = PatternsHelper::get_pattern_content( 'woocommerce-blocks/product-collections-newest-arrivals' );
|
2023-05-03 08:03:45 +00:00
|
|
|
?>
|
|
|
|
|
|
|
|
<!-- wp:group {"align":"wide","layout":{"type":"constrained"}} -->
|
|
|
|
<div class="wp-block-group alignwide">
|
2023-07-19 11:24:32 +00:00
|
|
|
<!-- wp:columns {"align":"wide"} -->
|
|
|
|
<div class="wp-block-columns alignwide">
|
|
|
|
<!-- wp:column -->
|
|
|
|
<div class="wp-block-column">
|
|
|
|
<!-- wp:heading {"level":3} -->
|
2023-05-03 08:03:45 +00:00
|
|
|
|
2023-09-25 09:48:52 +00:00
|
|
|
<h3 class="wp-block-heading"><?php echo esc_html( $content['titles'][0]['default'] ); ?></h3>
|
2023-07-19 11:24:32 +00:00
|
|
|
<!-- /wp:heading -->
|
|
|
|
</div>
|
|
|
|
<!-- /wp:column -->
|
|
|
|
|
|
|
|
<!-- wp:column -->
|
|
|
|
<div class="wp-block-column">
|
|
|
|
<!-- wp:buttons {"layout":{"type":"flex","justifyContent":"right"}} -->
|
|
|
|
<div class="wp-block-buttons">
|
|
|
|
<!-- wp:button -->
|
|
|
|
<div class="wp-block-button">
|
|
|
|
<a class="wp-block-button__link wp-element-button" href="<?php echo esc_url( get_permalink( wc_get_page_id( 'shop' ) ) ); ?>">
|
2023-09-25 09:48:52 +00:00
|
|
|
<?php echo esc_html( $content['buttons'][0]['default'] ); ?>
|
2023-07-19 11:24:32 +00:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<!-- /wp:button -->
|
2023-05-03 08:03:45 +00:00
|
|
|
</div>
|
2023-07-19 11:24:32 +00:00
|
|
|
<!-- /wp:buttons -->
|
2023-05-03 08:03:45 +00:00
|
|
|
</div>
|
2023-07-19 11:24:32 +00:00
|
|
|
<!-- /wp:column -->
|
2023-05-03 08:03:45 +00:00
|
|
|
</div>
|
2023-07-19 11:24:32 +00:00
|
|
|
<!-- /wp:columns -->
|
2023-05-03 08:03:45 +00:00
|
|
|
|
2023-07-19 11:24:32 +00:00
|
|
|
<!-- wp:group {"align":"wide","layout":{"type":"flex","flexWrap":"nowrap"}} -->
|
|
|
|
<div class="wp-block-group alignwide">
|
2023-05-03 08:03:45 +00:00
|
|
|
<!-- wp:query {"query":{"perPage":"4","pages":0,"offset":0,"postType":"product","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false,"__woocommerceAttributes":[],"__woocommerceStockStatus":["instock","onbackorder"]},"displayLayout":{"type":"flex","columns":4},"namespace":"woocommerce/product-query"} -->
|
|
|
|
<div class="wp-block-query">
|
2023-07-19 11:24:32 +00:00
|
|
|
<!-- wp:post-template {"className":"products-block-post-template","__woocommerceNamespace":"woocommerce/product-query/product-template"} -->
|
2023-08-02 09:06:57 +00:00
|
|
|
<!-- wp:woocommerce/product-image {"imageSizing":"thumbnail","isDescendentOfQueryLoop":true} /-->
|
2023-07-19 11:24:32 +00:00
|
|
|
<!-- wp:post-title {"textAlign":"center","level":3,"isLink":true,"style":{"spacing":{"margin":{"bottom":"0.75rem","top":"0"}}},"fontSize":"medium","__woocommerceNamespace":"woocommerce/product-query/product-title"} /-->
|
2023-05-03 08:03:45 +00:00
|
|
|
<!-- /wp:post-template -->
|
|
|
|
</div>
|
|
|
|
<!-- /wp:query -->
|
|
|
|
</div>
|
|
|
|
<!-- /wp:group -->
|
|
|
|
</div>
|
|
|
|
<!-- /wp:group -->
|