mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-25 09:41:26 +01:00
67161cc1dd
Twenty Twenty-Four (TT4) updates for 6.4 Beta 2. Changes include bugfixes from the theme's development repo since Beta 1 such as: * Renamed patterns and images * Improved image descriptions * Polished a few of the templates to fit better the design * Addressed some a11y concerns. * Changed the required version to 6.4, aligning it with the last few default themes since we are making use of some of the features that will make it to 6.4, such as aspect ratio. Follow-up to [56726], [56721], [56716]. Props onemaggie, desrosj, mukesh27. Fixes #59524. Built from https://develop.svn.wordpress.org/trunk@56764 git-svn-id: http://core.svn.wordpress.org/trunk@56276 1a063a9b-81f0-0310-95a4-ce76da25c4cd
37 lines
1.9 KiB
PHP
37 lines
1.9 KiB
PHP
<?php
|
|
/**
|
|
* Title: List of posts with featured images in three columns
|
|
* Description: This pattern only shows featured images. Make sure that you have assigned images to your posts.
|
|
* Slug: twentytwentyfour/posts-three-columns-images
|
|
* Categories: query
|
|
* Block Types: core/query
|
|
*/
|
|
?>
|
|
|
|
<!-- wp:query {"query":{"perPage":10,"pages":0,"offset":"0","postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true},"align":"wide","layout":{"type":"default"}} -->
|
|
<div class="wp-block-query alignwide">
|
|
<!-- wp:group {"style":{"spacing":{"padding":{"top":"var:preset|spacing|50","bottom":"var:preset|spacing|50","left":"0","right":"0"},"margin":{"top":"0","bottom":"0"}}},"layout":{"type":"default"}} -->
|
|
<div class="wp-block-group" style="margin-top:0;margin-bottom:0;padding-top:var(--wp--preset--spacing--50);padding-right:0;padding-bottom:var(--wp--preset--spacing--50);padding-left:0">
|
|
|
|
<!-- wp:post-template {"align":"full","style":{"spacing":{"blockGap":"var:preset|spacing|30"}},"layout":{"type":"grid","columnCount":3}} -->
|
|
<!-- wp:post-featured-image {"isLink":true,"aspectRatio":"3/4","style":{"spacing":{"margin":{"bottom":"0"},"padding":{"bottom":"var:preset|spacing|20"}}}} /-->
|
|
<!-- /wp:post-template -->
|
|
|
|
<!-- wp:spacer {"height":"var:preset|spacing|40","style":{"spacing":{"margin":{"top":"0","bottom":"0"}}}} -->
|
|
<div style="margin-top:0;margin-bottom:0;height:var(--wp--preset--spacing--40)" aria-hidden="true" class="wp-block-spacer"></div>
|
|
<!-- /wp:spacer -->
|
|
|
|
<!-- wp:query-pagination {"paginationArrow":"arrow","layout":{"type":"flex","justifyContent":"space-between"}} -->
|
|
<!-- wp:query-pagination-previous /-->
|
|
<!-- wp:query-pagination-next /-->
|
|
<!-- /wp:query-pagination -->
|
|
|
|
<!-- wp:query-no-results -->
|
|
<!-- wp:pattern {"slug":"twentytwentyfour/no-results-content"} /-->
|
|
<!-- /wp:query-no-results -->
|
|
|
|
</div>
|
|
<!-- /wp:group -->
|
|
</div>
|
|
<!-- /wp:query -->
|