mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-06 04:38:05 +02:00
This updates the block patterns included by default on WordPress to give them more personality and to make use of the design tools that has been added to the editor. Props onemaggie, melchoyce, kjellr, beafialho, gziolo. Fixes #52846. Built from https://develop.svn.wordpress.org/trunk@50794 git-svn-id: http://core.svn.wordpress.org/trunk@50403 1a063a9b-81f0-0310-95a4-ce76da25c4cd
16 lines
1.1 KiB
PHP
16 lines
1.1 KiB
PHP
<?php
|
|
/**
|
|
* Two images side by side.
|
|
*
|
|
* @package WordPress
|
|
*/
|
|
|
|
return array(
|
|
'title' => _x( 'Two images side by side', 'Block pattern title' ),
|
|
'categories' => array( 'gallery' ),
|
|
'content' => '<!-- wp:gallery {"ids":[null,null],"linkTo":"none","align":"wide"} -->
|
|
<figure class="wp-block-gallery alignwide columns-2 is-cropped"><ul class="blocks-gallery-grid"><li class="blocks-gallery-item"><figure><img src="https://s.w.org/images/core/5.8/nature-above-01.jpg" alt="' . esc_attr__( 'An aerial view of waves crashing against a shore.' ) . '" data-full-url="https://s.w.org/images/core/5.8/nature-above-01.jpg" data-link="#" /></figure></li><li class="blocks-gallery-item"><figure><img src="https://s.w.org/images/core/5.8/nature-above-02.jpg" alt="' . esc_attr__( 'An aerial view of a field. A road runs through the upper right corner.' ) . '" data-full-url="https://s.w.org/images/core/5.8/nature-above-02.jpg" data-link="#" /></figure></li></ul></figure>
|
|
<!-- /wp:gallery -->',
|
|
'description' => _x( 'Two images side by side', 'Block pattern description' ),
|
|
);
|