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
23 lines
926 B
PHP
23 lines
926 B
PHP
<?php
|
|
/**
|
|
* Two Buttons block pattern.
|
|
*
|
|
* @package WordPress
|
|
*/
|
|
|
|
return array(
|
|
'title' => _x( 'Two buttons', 'Block pattern title' ),
|
|
'content' => '<!-- wp:buttons {"contentJustification":"center"} -->
|
|
<div class="wp-block-buttons is-content-justification-center"><!-- wp:button {"borderRadius":0} -->
|
|
<div class="wp-block-button"><a class="wp-block-button__link no-border-radius">' . esc_html__( 'Our Work' ) . '</a></div>
|
|
<!-- /wp:button -->
|
|
|
|
<!-- wp:button {"borderRadius":1,"className":"is-style-outline"} -->
|
|
<div class="wp-block-button is-style-outline"><a class="wp-block-button__link" style="border-radius:1px">' . esc_html__( 'Where We Are' ) . '</a></div>
|
|
<!-- /wp:button --></div>
|
|
<!-- /wp:buttons -->',
|
|
'viewportWidth' => 500,
|
|
'categories' => array( 'buttons' ),
|
|
'description' => _x( 'Two buttons, one filled and one outlined, side by side.', 'Block pattern description' ),
|
|
);
|