/var/www/html/wp-content/plugins/woocommerce/patterns/just-arrived-full-hero.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
/**
 * Title: Just Arrived Full Hero
 * Slug: woocommerce-blocks/just-arrived-full-hero
 * Categories: WooCommerce, Intro
 */

use Automattic\WooCommerce\Blocks\AIContent\PatternsHelper;

$pattern_title       $content['titles'][0]['default'] ?? '';
$pattern_description $content['descriptions'][0]['default'] ?? '';
$pattern_button      $content['buttons'][0]['default'] ?? '';
$pattern_image       PatternsHelper::get_image_url$images0'assets/images/pattern-placeholders/man-person-music-black-and-white-white-photography.jpg' );
?>

<!-- wp:cover {"url":"<?php echo esc_url$pattern_image ); ?>","dimRatio":50,"focalPoint":{"x":0.5,"y":0.21},"minHeight":739,"contentPosition":"center right","align":"full"} -->
<div class="wp-block-cover alignfull has-custom-content-position is-position-center-right" style="min-height:739px">
    <span aria-hidden="true" class="wp-block-cover__background has-background-dim"></span>
    <img class="wp-block-cover__image-background" alt="" src="<?php echo esc_url$pattern_image ); ?>" style="object-position:50% 21%" data-object-fit="cover" data-object-position="50% 21%" />
    <div class="wp-block-cover__inner-container">
        <!-- wp:group {"style":{"spacing":{"padding":{"right":"60px","left":"60px"}}},"layout":{"type":"constrained","justifyContent":"center"}} -->
        <div class="wp-block-group" style="padding-right:60px;padding-left:60px">
            <!-- wp:heading -->
            <h2 class="wp-block-heading" id="just-arrived"><?php echo esc_html$pattern_title ); ?></h2>
            <!-- /wp:heading -->

            <!-- wp:paragraph -->
            <p><?php echo esc_html$pattern_description ); ?></p>
            <!-- /wp:paragraph -->

            <!-- wp:buttons {"layout":{"type":"flex","justifyContent":"left"}} -->
            <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_urlget_permalinkwc_get_page_id'shop' ) ) ); ?>"><?php echo esc_html$pattern_button ); ?></a>
                </div>
                <!-- /wp:button -->
            </div>
            <!-- /wp:buttons -->
        </div>
        <!-- /wp:group -->
    </div>
</div>
<!-- /wp:cover -->