site_oueb_2/wp-content/themes/twentytwentytwo/inc/patterns/general-divider-light.php

14 lines
851 B
PHP
Raw Permalink Normal View History

2022-11-22 20:23:31 +01:00
<?php
/**
* Divider with image and color (light) block pattern
*/
return array(
'title' => __( 'Divider with image and color (light)', 'twentytwentytwo' ),
'categories' => array( 'featured' ),
'content' => '<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"1rem","right":"0px","bottom":"1rem","left":"0px"}}},"backgroundColor":"secondary"} -->
<div class="wp-block-group alignfull has-secondary-background-color has-background" style="padding-top:1rem;padding-right:0px;padding-bottom:1rem;padding-left:0px"><!-- wp:image {"id":473,"sizeSlug":"full","linkDestination":"none"} -->
<figure class="wp-block-image size-full"><img src="' . esc_url( get_template_directory_uri() ) . '/assets/images/divider-black.png" alt="" class="wp-image-473"/></figure>
<!-- /wp:image --></div>
<!-- /wp:group -->',
);