Make WordPress Core


Ignore:
Timestamp:
04/28/2021 10:36:40 AM (3 years ago)
Author:
youknowriad
Message:

Block Editor: Update the bundled block patterns.

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/block-patterns/two-buttons.php

    r48845 r50794  
    77
    88return array(
    9     'title'         => __( 'Two buttons' ),
    10     'content'       => "<!-- wp:buttons {\"align\":\"center\"} -->\n<div class=\"wp-block-buttons aligncenter\"><!-- wp:button {\"borderRadius\":2,\"style\":{\"color\":{\"background\":\"#ba0c49\",\"text\":\"#fffffa\"}}} -->\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link has-text-color has-background\" style=\"border-radius:2px;background-color:#ba0c49;color:#fffffa\">" . __( 'Download now' ) . "</a></div>\n<!-- /wp:button -->\n\n<!-- wp:button {\"borderRadius\":2,\"style\":{\"color\":{\"text\":\"#ba0c49\"}},\"className\":\"is-style-outline\"} -->\n<div class=\"wp-block-button is-style-outline\"><a class=\"wp-block-button__link has-text-color\" style=\"border-radius:2px;color:#ba0c49\">" . __( 'About Cervantes' ) . "</a></div>\n<!-- /wp:button --></div>\n<!-- /wp:buttons -->",
     9    'title'         => _x( 'Two buttons', 'Block pattern title' ),
     10    'content'       => '<!-- wp:buttons {"contentJustification":"center"} -->
     11    <div class="wp-block-buttons is-content-justification-center"><!-- wp:button {"borderRadius":0} -->
     12    <div class="wp-block-button"><a class="wp-block-button__link no-border-radius">' . esc_html__( 'Our Work' ) . '</a></div>
     13    <!-- /wp:button -->
     14   
     15    <!-- wp:button {"borderRadius":1,"className":"is-style-outline"} -->
     16    <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>
     17    <!-- /wp:button --></div>
     18    <!-- /wp:buttons -->',
    1119    'viewportWidth' => 500,
    1220    'categories'    => array( 'buttons' ),
Note: See TracChangeset for help on using the changeset viewer.