Skip to content

Commit

Permalink
Add two images side by side pattern (#20725)
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad authored Mar 9, 2020
1 parent dab58bb commit 38f56fe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/client-assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -653,6 +653,7 @@ function gutenberg_extend_settings_block_patterns( $settings ) {
gutenberg_load_block_pattern( 'text-two-columns' ),
gutenberg_load_block_pattern( 'two-buttons' ),
gutenberg_load_block_pattern( 'cover-abc' ),
gutenberg_load_block_pattern( 'two-images' ),
];
$settings['__experimentalBlockPatterns'] = $block_patterns;
return $settings;
Expand Down
5 changes: 5 additions & 0 deletions lib/patterns/two-images.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"__file": "wp_block",
"title": "Two images side by side",
"content": "<!-- wp:gallery {\"ids\":[null,null]} -->\n<figure class=\"wp-block-gallery columns-2 is-cropped\"><ul class=\"blocks-gallery-grid\"><li class=\"blocks-gallery-item\"><figure><img src=\"https://s.w.org/images/core/5.3/Glacial_lakes,_Bhutan.jpg\" alt=\"\" data-id=\"\"/></figure></li><li class=\"blocks-gallery-item\"><figure><img src=\"https://s.w.org/images/core/5.3/Sediment_off_the_Yucatan_Peninsula.jpg\" alt=\"\" data-id=\"\"/></figure></li></ul></figure>\n<!-- /wp:gallery -->"
}

0 comments on commit 38f56fe

Please sign in to comment.