Make WordPress Core


Ignore:
Timestamp:
04/28/2021 10:36:40 AM (2 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/text-two-columns.php

    r48864 r50794  
    11<?php
    22/**
    3  * Two columns of Text block pattern.
     3 * Two columns of text.
    44 *
    55 * @package WordPress
     
    77
    88return array(
    9     'title'       => __( 'Two columns of text' ),
    10     'categories'  => array( 'columns' ),
    11     'content'     => "<!-- wp:group -->\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container\"><!-- wp:heading {\"style\":{\"typography\":{\"fontSize\":38},\"color\":{\"text\":\"#ba0c49\"}}} -->\n<h2 class=\"has-text-color\" style=\"font-size:38px;color:#ba0c49\">" . __( 'Which treats of the character and pursuits of the famous gentleman Don Quixote of La Mancha' ) . "</h2>\n<!-- /wp:heading -->\n\n<!-- wp:columns -->\n<div class=\"wp-block-columns\"><!-- wp:column -->\n<div class=\"wp-block-column\"><!-- wp:paragraph {\"style\":{\"typography\":{\"fontSize\":18}}} -->\n<p style=\"font-size:18px\">" . __( 'In a village of La Mancha, the name of which I have no desire to call to mind, there lived not long since one of those gentlemen that keep a lance in the lance-rack, an old buckler, a lean hack, and a greyhound for coursing. An olla of rather more beef than mutton, a salad on most nights, scraps on Saturdays, lentils on Fridays, and a pigeon or so extra on Sundays, made away with three-quarters of his income.' ) . "</p>\n<!-- /wp:paragraph --></div>\n<!-- /wp:column -->\n\n<!-- wp:column -->\n<div class=\"wp-block-column\"><!-- wp:paragraph {\"style\":{\"typography\":{\"fontSize\":18}}} -->\n<p style=\"font-size:18px\">" . __( 'The rest of it went in a doublet of fine cloth and velvet breeches and shoes to match for holidays, while on week-days he made a brave figure in his best homespun. He had in his house a housekeeper past forty, a niece under twenty, and a lad for the field and market-place, who used to saddle the hack as well as handle the bill-hook. The age of this gentleman of ours was bordering on fifty; he was of a hardy habit, spare, gaunt-featured, a very early riser and a great sportsman.' ) . "</p>\n<!-- /wp:paragraph --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns --></div></div>\n<!-- /wp:group -->",
    12     'description' => _x( 'Two columns of text preceded by a long heading.', 'Block pattern description' ),
     9    'title'       => _x( 'Two columns of text', 'Block pattern title' ),
     10    'categories'  => array( 'columns', 'text' ),
     11    'content'     => '<!-- wp:columns {"align":"full"} -->
     12    <div class="wp-block-columns"><!-- wp:column -->
     13    <div class="wp-block-column"><!-- wp:spacer -->
     14    <div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>
     15    <!-- /wp:spacer -->
     16    <!-- wp:paragraph {"style":{"typography":{"fontSize":"21px"}, "color":{"text":"#000000"}}} -->
     17    <p class="has-text-color" style="font-size:21px;color:#000000;"><strong>' . esc_html__( 'We have worked with:' ) . '</strong></p>
     18    <!-- /wp:paragraph -->
     19   
     20    <!-- wp:paragraph {"style":{"typography":{"fontSize":"24px","lineHeight":"1.2"}}} -->
     21    <p style="font-size:24px;line-height:1.2"><a href="https://wordpress.org">' . wp_kses_post( __( 'EARTHFUND™<br>ARCHWEEKLY<br>FUTURE ROADS<br>BUILDING NY' ) ) . '</a></p>
     22    <!-- /wp:paragraph -->
     23   
     24    <!-- wp:spacer -->
     25    <div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>
     26    <!-- /wp:spacer --></div>
     27    <!-- /wp:column -->
     28   
     29    <!-- wp:column -->
     30    <div class="wp-block-column"><!-- wp:spacer {"height":160} -->
     31    <div style="height:160px" aria-hidden="true" class="wp-block-spacer"></div>
     32    <!-- /wp:spacer -->
     33   
     34    <!-- wp:paragraph {"style":{"typography":{"fontSize":"24px","lineHeight":"1.2"}}} -->
     35    <p style="font-size:24px;line-height:1.2"><a href="https://wordpress.org">' . wp_kses_post( __( 'DUBAI ROOFS<br>MAY WATSON STUDIO<br>Y.O.L<br>RUDIMENTAR' ) ) . '</a></p>
     36    <!-- /wp:paragraph -->
     37   
     38    <!-- wp:spacer -->
     39    <div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>
     40    <!-- /wp:spacer --></div>
     41    <!-- /wp:column --></div>
     42    <!-- /wp:columns -->',
     43    'description' => _x( 'Two columns of text', 'Block pattern description' ),
    1344);
Note: See TracChangeset for help on using the changeset viewer.