bibhamrokhanpin/wp-content/themes/twentytwentytwo/inc/patterns/general-divider-dark.php
2024-04-10 17:46:06 +05:45

14 lines
908 B
PHP

<?php
/**
* Divider with image and color (dark) block pattern
*/
return array(
'title' => __( 'Divider with image and color (dark)', 'twentytwentytwo' ),
'categories' => array( 'featured' ),
'content' => '<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"1rem","right":"0px","bottom":"1rem","left":"0px"}}},"backgroundColor":"primary"} -->
<div class="wp-block-group alignfull has-primary-background-color has-background" style="padding-top:1rem;padding-right:0px;padding-bottom:1rem;padding-left:0px"><!-- wp:image {"id":473,"width":3001,"height":246,"sizeSlug":"full","linkDestination":"none"} -->
<figure class="wp-block-image size-full is-resized"><img src="' . esc_url( get_template_directory_uri() ) . '/assets/images/divider-white.png" alt="" class="wp-image-473" width="3001" height="246"/></figure>
<!-- /wp:image --></div>
<!-- /wp:group -->',
);