mirror of
https://github.com/WordPress/WordPress.git
synced 2024-10-30 15:31:04 +01:00
4100458c7d
This merges the latest improvements to the Twenty Twenty-Five theme from GitHub into `trunk` for 6.7 beta 3.
A full list of changes can be found on GitHub: [0d8b245021...5d17f41da8
WordPress/twentytwentyfive@0d8b245...5d17f41]
Props annezazu, areziaal, beafialho, cwhitmore, franz00, get_dave, joedolson, joen, juanfra, karmatosed, kartikmehta, mukesh27, onemaggie, pgeorgiev, poena, richtabor, sudipatel007, sumitbagthariya16, wildworks, youknowriad.
Fixes #62218.
Built from https://develop.svn.wordpress.org/trunk@59233
git-svn-id: http://core.svn.wordpress.org/trunk@58625 1a063a9b-81f0-0310-95a4-ce76da25c4cd
47 lines
2.0 KiB
PHP
47 lines
2.0 KiB
PHP
<?php
|
|
/**
|
|
* Title: Photo blog posts
|
|
* Slug: twentytwentyfive/template-query-loop-photo-blog
|
|
* Categories: query
|
|
* Block Types: core/query
|
|
* Viewport width: 1400
|
|
* Description: A list of posts, 3 columns, with only featured images.
|
|
*
|
|
* @package WordPress
|
|
* @subpackage Twenty_Twenty_Five
|
|
* @since Twenty Twenty-Five 1.0
|
|
*/
|
|
|
|
?>
|
|
<!-- wp:query {"query":{"perPage":9,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true,"taxQuery":null,"parents":[]},"align":"wide","layout":{"type":"default"}} -->
|
|
<div class="wp-block-query alignwide">
|
|
<!-- wp:group {"layout":{"type":"constrained"}} -->
|
|
<div class="wp-block-group">
|
|
<!-- wp:query-no-results -->
|
|
<!-- wp:paragraph {"align":"center"} -->
|
|
<p class="has-text-align-center"><?php echo esc_html_x( 'Sorry, but nothing was found. Please try a search with different keywords.', 'Message explaining that there are no results returned from a search.', 'twentytwentyfive' ); ?></p>
|
|
<!-- /wp:paragraph -->
|
|
<!-- /wp:query-no-results -->
|
|
</div>
|
|
<!-- /wp:group -->
|
|
|
|
<!-- wp:group {"style":{"spacing":{"padding":{"top":"var:preset|spacing|50","bottom":"var:preset|spacing|50"}}},"layout":{"type":"default"}} -->
|
|
<div class="wp-block-group" style="padding-top:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--50);">
|
|
<!-- wp:post-template {"style":{"spacing":{"blockGap":"var:preset|spacing|50"}},"layout":{"type":"grid","columnCount":null,"minimumColumnWidth":"23rem"}} -->
|
|
<!-- wp:post-featured-image {"isLink":true,"aspectRatio":"1"} /-->
|
|
<!-- /wp:post-template -->
|
|
</div>
|
|
<!-- /wp:group -->
|
|
|
|
<!-- wp:group {"layout":{"type":"default"}} -->
|
|
<div class="wp-block-group">
|
|
<!-- wp:query-pagination {"paginationArrow":"arrow","align":"full","layout":{"type":"flex","justifyContent":"space-between"}} -->
|
|
<!-- wp:query-pagination-previous /-->
|
|
<!-- wp:query-pagination-numbers /-->
|
|
<!-- wp:query-pagination-next /-->
|
|
<!-- /wp:query-pagination -->
|
|
</div>
|
|
<!-- /wp:group -->
|
|
</div>
|
|
<!-- /wp:query -->
|