[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-content/themes/twentytwentyfive/patterns/ -> template-query-loop-photo-blog.php (source)

   1  <?php
   2  /**
   3   * Title: Photo blog posts
   4   * Slug: twentytwentyfive/template-query-loop-photo-blog
   5   * Categories: query
   6   * Block Types: core/query
   7   * Viewport width: 1400
   8   * Description: A list of posts, 3 columns, with only featured images.
   9   *
  10   * @package WordPress
  11   * @subpackage Twenty_Twenty_Five
  12   * @since Twenty Twenty-Five 1.0
  13   */
  14  
  15  ?>
  16  <!-- 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"}} -->
  17  <div class="wp-block-query alignwide">
  18          <!-- wp:group {"layout":{"type":"constrained"}} -->
  19          <div class="wp-block-group">
  20          <!-- wp:query-no-results -->
  21          <!-- wp:paragraph {"align":"center"} -->
  22          <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>
  23          <!-- /wp:paragraph -->
  24          <!-- /wp:query-no-results -->
  25      </div>
  26      <!-- /wp:group -->
  27  
  28      <!-- wp:group {"style":{"spacing":{"padding":{"top":"var:preset|spacing|50","bottom":"var:preset|spacing|50"}}},"layout":{"type":"default"}} -->
  29      <div class="wp-block-group" style="padding-top:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--50);">
  30          <!-- wp:post-template {"style":{"spacing":{"blockGap":"var:preset|spacing|50"}},"layout":{"type":"grid","columnCount":null,"minimumColumnWidth":"23rem"}} -->
  31              <!-- wp:post-featured-image {"isLink":true,"aspectRatio":"1"} /-->
  32          <!-- /wp:post-template -->
  33      </div>
  34      <!-- /wp:group -->
  35  
  36      <!-- wp:group {"layout":{"type":"default"}} -->
  37      <div class="wp-block-group">
  38          <!-- wp:query-pagination {"paginationArrow":"arrow","align":"full","layout":{"type":"flex","justifyContent":"space-between"}} -->
  39          <!-- wp:query-pagination-previous /-->
  40          <!-- wp:query-pagination-numbers /-->
  41          <!-- wp:query-pagination-next /-->
  42          <!-- /wp:query-pagination -->
  43      </div>
  44      <!-- /wp:group -->
  45  </div>
  46  <!-- /wp:query -->


Generated : Sun Dec 22 08:20:01 2024 Cross-referenced by PHPXref