mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-09 09:57:38 +01:00
9759353922
This commit syncs changes for the default theme from its active development repository to core.
This is a follow up to [52081], [52107], [52164], [52222], [52283], [52335], and [52375]. It updates the theme's font size presets and fixes an issue with query padding.
To view the full set of changes, visit 623a4d7982...d6cb56cce4
.
Props schlessera, williampatton, hellofromtonya, kjellr.
See #54318.
Built from https://develop.svn.wordpress.org/trunk@52392
git-svn-id: http://core.svn.wordpress.org/trunk@51984 1a063a9b-81f0-0310-95a4-ce76da25c4cd
26 lines
1.1 KiB
PHP
26 lines
1.1 KiB
PHP
<?php
|
|
/**
|
|
* Featured posts block pattern
|
|
*/
|
|
return array(
|
|
'title' => __( 'Featured posts', 'twentytwentytwo' ),
|
|
'categories' => array( 'featured', 'query' ),
|
|
'content' => '<!-- wp:group {"align":"wide","layout":{"inherit":false}} -->
|
|
<div class="wp-block-group alignwide"><!-- wp:paragraph {"style":{"typography":{"textTransform":"uppercase"}}} -->
|
|
<p style="text-transform:uppercase">' . esc_html__( 'Latest posts', 'twentytwentytwo' ) . '</p>
|
|
<!-- /wp:paragraph -->
|
|
|
|
<!-- wp:query {"query":{"perPage":3,"pages":0,"offset":0,"postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false},"displayLayout":{"type":"flex","columns":3}} -->
|
|
<div class="wp-block-query"><!-- wp:post-template -->
|
|
<!-- wp:post-featured-image {"isLink":true,"width":"","height":"310px"} /-->
|
|
|
|
<!-- wp:post-title {"isLink":true,"fontSize":"large"} /-->
|
|
|
|
<!-- wp:post-excerpt /-->
|
|
|
|
<!-- wp:post-date {"fontSize":"small"} /-->
|
|
<!-- /wp:post-template --></div>
|
|
<!-- /wp:query --></div>
|
|
<!-- /wp:group -->',
|
|
);
|