added image to block pattern split bg

This commit is contained in:
Maggie Cabrera 2020-09-24 15:36:10 +02:00
parent d075ea493e
commit dad0dc87b6
2 changed files with 2 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 188 KiB

View file

@ -26,9 +26,10 @@ if ( function_exists( 'register_block_pattern' ) ) {
array (
'title' => __( 'Group with Split Background', 'seedlet' ),
'categories'=> array( 'seedlet' ),
'content' => "<!-- wp:group {\"align\":\"full\",\"gradient\":\"hard-diagonal\"} -->\n<div class=\"wp-block-group alignfull has-hard-diagonal-gradient-background has-background\"><div class=\"wp-block-group__inner-container\"><!-- wp:spacer -->\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"></div>\n<!-- /wp:spacer -->\n\n<!-- wp:image -->\n<figure class=\"wp-block-image\"><img alt=\"\"/></figure>\n<!-- /wp:image -->\n\n<!-- wp:spacer -->\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"></div>\n<!-- /wp:spacer --></div></div>\n<!-- /wp:group -->",
'content' => "<!-- wp:group {\"align\":\"full\",\"gradient\":\"hard-diagonal\"} -->\n<div class=\"wp-block-group alignfull has-hard-diagonal-gradient-background has-background\"><div class=\"wp-block-group__inner-container\"><!-- wp:spacer -->\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"></div>\n<!-- /wp:spacer -->\n\n<!-- wp:image -->\n<figure class=\"wp-block-image\"><img src=\"".get_template_directory_uri()."/assets/img/envelope-3.jpg\" alt=\"Envelope\" /></figure>\n<!-- /wp:image -->\n\n<!-- wp:spacer -->\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"></div>\n<!-- /wp:spacer --></div></div>\n<!-- /wp:group -->",
)
);
register_block_pattern(
'seedlet/group-image-overlap',
array (