mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-08 11:50:03 +01:00
b3c06d8bb1
This commit syncs minor changes for the default theme from its active development repository to core.
This is a follow up to [52081], [52107], [52164], [52222], [52283], and [52335]. The two main changes introduce global padding to site content while still allowing content to be full-width, and re-organize block patterns into Core's existing categories.
To view the full set of changes, visit da994d1fe5...88a8f2e3b4
.
Props onemaggie, joen, youknowriad, scruffian, sabernhardt, kjellr.
See #54318.
Built from https://develop.svn.wordpress.org/trunk@52375
git-svn-id: http://core.svn.wordpress.org/trunk@51967 1a063a9b-81f0-0310-95a4-ce76da25c4cd
37 lines
1.9 KiB
PHP
37 lines
1.9 KiB
PHP
<?php
|
|
/**
|
|
* Grid of image posts block pattern
|
|
*/
|
|
return array(
|
|
'title' => __( 'Grid of image posts', 'twentytwentytwo' ),
|
|
'categories' => array( 'query' ),
|
|
'blockTypes' => array( 'core/query' ),
|
|
'content' => '<!-- wp:query {"query":{"offset":0,"postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","sticky":"","inherit":false,"perPage":12},"displayLayout":{"type":"flex","columns":3},"layout":{"inherit":true}} -->
|
|
<div class="wp-block-query"><!-- wp:post-template -->
|
|
<!-- wp:post-featured-image {"isLink":true,"width":"100%","height":"200px"} /-->
|
|
|
|
<!-- wp:columns {"isStackedOnMobile":false,"style":{"spacing":{"blockGap":"0.5rem"}}} -->
|
|
<div class="wp-block-columns is-not-stacked-on-mobile"><!-- wp:column -->
|
|
<div class="wp-block-column"><!-- wp:post-title {"isLink":true,"style":{"typography":{"fontStyle":"normal","fontWeight":"400"},"spacing":{"margin":{"top":"0.2em"}}},"fontSize":"small","fontFamily":"system-font"} /--></div>
|
|
<!-- /wp:column -->
|
|
|
|
<!-- wp:column {"width":"4em"} -->
|
|
<div class="wp-block-column" style="flex-basis:4em"><!-- wp:post-date {"textAlign":"right","format":"m.d.y","style":{"typography":{"fontStyle":"italic","fontWeight":"400"}},"fontSize":"small"} /--></div>
|
|
<!-- /wp:column --></div>
|
|
<!-- /wp:columns -->
|
|
<!-- /wp:post-template -->
|
|
|
|
<!-- wp:separator {"className":"is-style-wide"} -->
|
|
<hr class="wp-block-separator alignwide is-style-wide"/>
|
|
<!-- /wp:separator -->
|
|
|
|
<!-- wp:query-pagination {"paginationArrow":"arrow","align":"wide","layout":{"type":"flex","justifyContent":"space-between"}} -->
|
|
<!-- wp:query-pagination-previous {"fontSize":"small"} /-->
|
|
|
|
<!-- wp:query-pagination-numbers /-->
|
|
|
|
<!-- wp:query-pagination-next {"fontSize":"small"} /-->
|
|
<!-- /wp:query-pagination --></div>
|
|
<!-- /wp:query -->',
|
|
);
|