[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-content/themes/twentytwentyfive/patterns/ -> hidden-sidebar.php (source)

   1  <?php
   2  /**
   3   * Title: Sidebar
   4   * Slug: twentytwentyfive/hidden-sidebar
   5   * Inserter: no
   6   *
   7   * @package WordPress
   8   * @subpackage Twenty_Twenty_Five
   9   * @since Twenty Twenty-Five 1.0
  10   */
  11  
  12  ?>
  13  <!-- wp:heading {"style":{"typography":{"fontStyle":"normal","fontWeight":"600","textTransform":"uppercase","letterSpacing":"1.6px"}},"fontSize":"small"} -->
  14  <h2 class="wp-block-heading has-small-font-size" style="font-style:normal;font-weight:600;letter-spacing:1.6px;text-transform:uppercase"><?php esc_html_e( 'Other Posts', 'twentytwentyfive' ); ?></h2>
  15  <!-- /wp:heading -->
  16  
  17  <!-- wp:spacer {"height":"var:preset|spacing|40"} -->
  18  <div style="height:var(--wp--preset--spacing--40)" aria-hidden="true" class="wp-block-spacer"></div>
  19  <!-- /wp:spacer -->
  20  
  21  <!-- wp:query {"query":{"perPage":4,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false,"taxQuery":null,"parents":[]}} -->
  22  <div class="wp-block-query">
  23      <!-- wp:post-template -->
  24          <!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|20"}},"layout":{"type":"flex","orientation":"vertical"}} -->
  25          <div class="wp-block-group">
  26              <!-- wp:post-title {"isLink":true,"fontSize":"medium"} /-->
  27              <!-- wp:post-date {"fontSize":"small","isLink":true} /-->
  28          </div>
  29          <!-- /wp:group -->
  30  
  31          <!-- wp:spacer {"height":"var:preset|spacing|20"} -->
  32          <div style="height:var(--wp--preset--spacing--20)" aria-hidden="true" class="wp-block-spacer"></div>
  33          <!-- /wp:spacer -->
  34      <!-- /wp:post-template -->
  35  
  36      <!-- wp:query-no-results -->
  37          <!-- wp:paragraph {"placeholder":"<?php esc_attr_e( 'Add text or blocks that will display when a query returns no results.', 'twentytwentyfive' ); ?>","fontSize":"medium"} -->
  38          <p class="has-medium-font-size"><?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>
  39          <!-- /wp:paragraph -->
  40      <!-- /wp:query-no-results -->
  41  </div>
  42  <!-- /wp:query -->


Generated : Thu Oct 24 08:20:01 2024 Cross-referenced by PHPXref