2022-12-05 13:24:58 +00:00
|
|
|
<?php
|
|
|
|
/**
|
2023-06-21 07:50:12 +00:00
|
|
|
* Title: Just Arrived Full Hero
|
2022-12-05 13:24:58 +00:00
|
|
|
* Slug: woocommerce-blocks/just-arrived-full-hero
|
|
|
|
* Categories: WooCommerce
|
|
|
|
*/
|
2023-09-25 09:48:52 +00:00
|
|
|
|
|
|
|
use Automattic\WooCommerce\Blocks\Patterns\PatternsHelper;
|
|
|
|
$content = PatternsHelper::get_pattern_content( 'woocommerce-blocks/just-arrived-full-hero' );
|
2023-10-05 08:05:59 +00:00
|
|
|
$images = PatternsHelper::get_pattern_images( 'woocommerce-blocks/just-arrived-full-hero' );
|
|
|
|
|
|
|
|
$image1 = PatternsHelper::get_image_url( $images, 0, 'images/pattern-placeholders/plant-in-vase.jpg' );
|
2022-12-05 13:24:58 +00:00
|
|
|
?>
|
2023-10-05 08:05:59 +00:00
|
|
|
|
|
|
|
<!-- wp:cover {"url":"<?php echo esc_url( $image1 ); ?>","dimRatio":0,"minHeight":739,"contentPosition":"center right","isDark":false,"align":"wide","style":{"spacing":{"padding":{"right":"4em"}}}} -->
|
|
|
|
<div class="wp-block-cover alignwide is-light has-custom-content-position is-position-center-right" style="padding-right:4em;min-height:739px">
|
2023-10-04 12:47:19 +00:00
|
|
|
<span aria-hidden="true" class="wp-block-cover__background has-background-dim-0 has-background-dim"></span>
|
2023-10-05 08:05:59 +00:00
|
|
|
<img class="wp-block-cover__image-background" alt="" src="<?php echo esc_url( $image1 ); ?>" data-object-fit="cover"/>
|
2023-10-04 12:47:19 +00:00
|
|
|
<div class="wp-block-cover__inner-container">
|
|
|
|
<!-- wp:group {"layout":{"type":"constrained"}} -->
|
|
|
|
<div class="wp-block-group">
|
|
|
|
<!-- wp:heading {"anchor":"just-arrived"} -->
|
|
|
|
<h2 class="wp-block-heading" id="just-arrived"><?php echo esc_html( $content['titles'][0]['default'] ); ?></h2>
|
|
|
|
<!-- /wp:heading -->
|
2022-12-05 13:24:58 +00:00
|
|
|
|
2023-10-04 12:47:19 +00:00
|
|
|
<!-- wp:paragraph -->
|
|
|
|
<p><?php echo esc_html( $content['descriptions'][0]['default'] ); ?></p>
|
|
|
|
<!-- /wp:paragraph -->
|
2022-12-05 13:24:58 +00:00
|
|
|
|
2023-10-04 12:47:19 +00:00
|
|
|
<!-- wp:buttons -->
|
|
|
|
<div class="wp-block-buttons">
|
|
|
|
<!-- wp:button -->
|
|
|
|
<div class="wp-block-button">
|
2023-10-05 08:05:59 +00:00
|
|
|
<a class="wp-block-button__link wp-element-button" href="<?php echo esc_url( get_permalink( wc_get_page_id( 'shop' ) ) ); ?>"><?php echo esc_html( $content['buttons'][0]['default'] ); ?></a>
|
2023-10-04 12:47:19 +00:00
|
|
|
</div>
|
|
|
|
<!-- /wp:button -->
|
|
|
|
</div>
|
|
|
|
<!-- /wp:buttons -->
|
|
|
|
</div>
|
|
|
|
<!-- /wp:group -->
|
|
|
|
</div></div>
|
2022-12-05 13:24:58 +00:00
|
|
|
<!-- /wp:cover -->
|