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;
|
2023-10-17 08:56:02 +00:00
|
|
|
|
2023-09-25 09:48:52 +00:00
|
|
|
$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' );
|
|
|
|
|
2023-10-06 11:17:31 +00:00
|
|
|
$pattern_title = $content['titles'][0]['default'] ?? '';
|
|
|
|
$pattern_description = $content['descriptions'][0]['default'] ?? '';
|
|
|
|
$pattern_button = $content['buttons'][0]['default'] ?? '';
|
|
|
|
$pattern_image = PatternsHelper::get_image_url( $images, 0, 'images/pattern-placeholders/plant-in-vase.jpg' );
|
2022-12-05 13:24:58 +00:00
|
|
|
?>
|
2023-10-12 07:06:33 +00:00
|
|
|
|
2023-10-23 12:07:57 +00:00
|
|
|
<!-- wp:cover {"url":"<?php echo esc_url( $pattern_image ); ?>","dimRatio":30,"minHeight":739,"contentPosition":"center right","align":"full","style":{"spacing":{"margin":{"bottom":"80px"},"padding":{"left":"0","right":"25%"}}}} -->
|
|
|
|
<div class="wp-block-cover alignfull has-custom-content-position is-position-center-right" style="margin-bottom:80px;padding-right:25%;padding-left:0;min-height:739px">
|
2023-10-06 11:17:31 +00:00
|
|
|
<span aria-hidden="true" class="wp-block-cover__background has-background-dim-30 has-background-dim"></span>
|
2023-10-17 08:56:02 +00:00
|
|
|
<img class="wp-block-cover__image-background" alt="" src="<?php echo esc_url( $pattern_image ); ?>" data-object-fit="cover" />
|
2023-10-04 12:47:19 +00:00
|
|
|
<div class="wp-block-cover__inner-container">
|
2023-10-23 12:07:57 +00:00
|
|
|
<!-- wp:group {"style":{"spacing":{"margin":{"top":"0","bottom":"0"},"padding":{"right":"var:preset|spacing|80","left":"var:preset|spacing|80"},"blockGap":"16px"}}} {"layout":{"type":"constrained"}} -->
|
2023-10-04 12:47:19 +00:00
|
|
|
<div class="wp-block-group">
|
|
|
|
<!-- wp:heading {"anchor":"just-arrived"} -->
|
2023-10-06 11:17:31 +00:00
|
|
|
<h2 class="wp-block-heading" id="just-arrived"><?php echo esc_html( $pattern_title ); ?></h2>
|
2023-10-04 12:47:19 +00:00
|
|
|
<!-- /wp:heading -->
|
2022-12-05 13:24:58 +00:00
|
|
|
|
2023-10-04 12:47:19 +00:00
|
|
|
<!-- wp:paragraph -->
|
2023-10-06 11:17:31 +00:00
|
|
|
<p><?php echo esc_html( $pattern_description ); ?></p>
|
2023-10-04 12:47:19 +00:00
|
|
|
<!-- /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-06 11:17:31 +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( $pattern_button ); ?></a>
|
2023-10-04 12:47:19 +00:00
|
|
|
</div>
|
|
|
|
<!-- /wp:button -->
|
|
|
|
</div>
|
|
|
|
<!-- /wp:buttons -->
|
|
|
|
</div>
|
|
|
|
<!-- /wp:group -->
|
2023-10-17 08:56:02 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-12-05 13:24:58 +00:00
|
|
|
<!-- /wp:cover -->
|