[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

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

   1  <?php
   2  /**
   3   * Title: News blog query loop
   4   * Slug: twentytwentyfive/template-query-loop-news-blog
   5   * Inserter: no
   6   *
   7   * @package WordPress
   8   * @subpackage Twenty_Twenty_Five
   9   * @since Twenty Twenty-Five 1.0
  10   */
  11  
  12  ?>
  13  <!-- wp:query {"query":{"perPage":10,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true,"taxQuery":null,"parents":[]}} -->
  14  <div class="wp-block-query"><!-- wp:post-template -->
  15  <!-- wp:columns {"style":{"spacing":{"blockGap":{"top":"var:preset|spacing|50","left":"var:preset|spacing|50"},"padding":{"top":"var:preset|spacing|50","bottom":"var:preset|spacing|50"}},"border":{"top":{"color":"var:preset|color|accent-6","width":"1px"}}}} -->
  16  <div class="wp-block-columns" style="border-top-color:var(--wp--preset--color--accent-6);border-top-width:1px;padding-top:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--50)"><!-- wp:column {"width":"20%"} -->
  17  <div class="wp-block-column" style="flex-basis:20%"><!-- wp:post-date {"isLink":true} /--></div>
  18  <!-- /wp:column -->
  19  
  20  <!-- wp:column -->
  21  <div class="wp-block-column"><!-- wp:post-title /-->
  22  
  23  <!-- wp:post-terms {"term":"category","style":{"typography":{"textTransform":"uppercase","letterSpacing":"1.4px"}}} /-->
  24  
  25  <!-- wp:post-excerpt {"showMoreOnNewLine":false,"fontSize":"medium"} /-->
  26  
  27  <!-- wp:group {"style":{"spacing":{"blockGap":"0.12em"}},"layout":{"type":"flex","flexWrap":"nowrap"}} -->
  28  <div class="wp-block-group">
  29      <!-- wp:paragraph {"style":{"elements":{"link":{"color":{"text":"var:preset|color|accent-4"}}}},"textColor":"accent-4","fontSize":"small"} -->
  30      <p class="has-accent-4-color has-text-color has-link-color has-small-font-size"><?php echo esc_html_x( 'Written by', 'Prefix before the author name. The post author name is displayed in a separate block.', 'twentytwentyfive' ); ?></p>
  31      <!-- /wp:paragraph -->
  32      <!-- wp:post-author-name {"isLink":true,"fontSize":"small"} /-->
  33  </div>
  34  <!-- /wp:group --></div>
  35  <!-- /wp:column -->
  36  
  37  <!-- wp:column {"width":"20%"} -->
  38  <div class="wp-block-column" style="flex-basis:20%"><!-- wp:post-featured-image {"aspectRatio":"1"} /--></div>
  39  <!-- /wp:column --></div>
  40  <!-- /wp:columns -->
  41  <!-- /wp:post-template -->
  42  
  43  <!-- wp:group {"style":{"spacing":{"padding":{"top":"var:preset|spacing|40","bottom":"var:preset|spacing|40"}}},"layout":{"type":"default"}} -->
  44  <div class="wp-block-group" style="padding-top:var(--wp--preset--spacing--40);padding-bottom:var(--wp--preset--spacing--40)"><!-- wp:query-pagination {"paginationArrow":"arrow","layout":{"type":"flex","justifyContent":"space-between"}} -->
  45  <!-- wp:query-pagination-previous {"label":"<?php esc_html_e( 'Newer Posts', 'twentytwentyfive' ); ?>"} /-->
  46  
  47  <!-- wp:query-pagination-numbers /-->
  48  
  49  <!-- wp:query-pagination-next {"label":"<?php esc_html_e( 'Older Posts', 'twentytwentyfive' ); ?>"} /-->
  50  <!-- /wp:query-pagination --></div>
  51  <!-- /wp:group -->
  52  
  53  <!-- wp:query-no-results -->
  54  <!-- wp:paragraph -->
  55  <p><?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>
  56  <!-- /wp:paragraph -->
  57  <!-- /wp:query-no-results -->
  58  
  59  <!-- wp:spacer {"height":"var:preset|spacing|70"} -->
  60  <div style="height:var(--wp--preset--spacing--70)" aria-hidden="true" class="wp-block-spacer"></div>
  61  <!-- /wp:spacer --></div>
  62  <!-- /wp:query -->


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