[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

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

   1  <?php
   2  /**
   3   * Title: All Archives Sidebar
   4   * Slug: ipsum/hidden-archive-sidebar
   5   * Template Types: archive, category, tag
   6   * Inserter: no
   7   * Description: Archive listing beside a classic sidebar with categories and recent posts, on the wide width.
   8   *
   9   * @package Ipsum
  10   * @since Ipsum 1.0
  11   */
  12  
  13  ?>
  14  <!-- wp:template-part {"slug":"header"} /-->
  15  
  16  <!-- wp:group {"tagName":"main","metadata":{"name":"<?php echo esc_html_x( 'Body', 'Name of the main content area group', 'ipsum' ); ?>"},"style":{"spacing":{"margin":{"top":"0","bottom":"0"}}},"layout":{"type":"constrained"}} -->
  17  <main class="wp-block-group" style="margin-top:0;margin-bottom:0"><!-- wp:columns {"align":"wide","style":{"spacing":{"blockGap":{"left":"var:preset|spacing|70"}}}} -->
  18  <div class="wp-block-columns alignwide"><!-- wp:column {"width":"66.66%","layout":{"type":"constrained","justifyContent":"left"}} -->
  19  <div class="wp-block-column" style="flex-basis:66.66%"><!-- wp:group {"metadata":{"name":"<?php echo esc_html_x( 'Section Title', 'Name of the group holding the section title', 'ipsum' ); ?>"},"layout":{"type":"constrained"}} -->
  20  <div class="wp-block-group"><!-- wp:query-title {"type":"archive"} /--></div>
  21  <!-- /wp:group -->
  22  
  23  <!-- wp:query {"query":{"perPage":10,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true,"taxQuery":null,"parents":[],"excludeCurrent":null},"metadata":{"categories":["posts"],"name":"<?php echo esc_html_x( 'Archive Simple', 'Name of the Archive Simple query', 'ipsum' ); ?>"},"layout":{"type":"default"}} -->
  24  <div class="wp-block-query"><!-- wp:post-template {"className":"hover-together","style":{"spacing":{"blockGap":"var:preset|spacing|40"}},"layout":{"type":"default"}} -->
  25  <!-- wp:group {"metadata":{"name":"<?php echo esc_html_x( 'Archive Row', 'Name of the archive row group', 'ipsum' ); ?>"},"style":{"spacing":{"blockGap":"var:preset|spacing|20"}},"layout":{"type":"constrained"}} -->
  26  <div class="wp-block-group"><!-- wp:post-title {"isLink":true,"style":{"typography":{"fontStyle":"normal","fontWeight":"600"}},"fontSize":"large"} /-->
  27  
  28  <!-- wp:group {"metadata":{"name":"<?php echo esc_html_x( 'Date and Categories', 'Name of the group holding the post date and categories', 'ipsum' ); ?>"},"style":{"spacing":{"blockGap":"var:preset|spacing|20","padding":{"bottom":"var:preset|spacing|50"}},"border":{"bottom":{"color":"var:preset|color|theme-4","style":"dotted","width":"1px"},"top":[],"right":[],"left":[]}},"layout":{"type":"flex","flexWrap":"nowrap"}} -->
  29  <div class="wp-block-group" style="border-bottom-color:var(--wp--preset--color--theme-4);border-bottom-style:dotted;border-bottom-width:1px;padding-bottom:var(--wp--preset--spacing--50)"><!-- wp:post-date {"format":"M j","isLink":true} /-->
  30  
  31  <!-- wp:paragraph {"metadata":{"name":"·"},"style":{"typography":{"fontStyle":"normal","fontWeight":"600"}},"fontSize":"small"} -->
  32  <p class="has-small-font-size" style="font-style:normal;font-weight:600"><?php esc_html_e( '·', 'ipsum' ); ?></p>
  33  <!-- /wp:paragraph -->
  34  
  35  <!-- wp:post-terms {"term":"category"} /-->
  36  
  37  <!-- wp:paragraph {"metadata":{"name":"·"},"style":{"typography":{"fontStyle":"normal","fontWeight":"600"}},"fontSize":"small"} -->
  38  <p class="has-small-font-size" style="font-style:normal;font-weight:600"><?php esc_html_e( '·', 'ipsum' ); ?></p>
  39  <!-- /wp:paragraph -->
  40  
  41  <!-- wp:post-time-to-read /--></div>
  42  <!-- /wp:group --></div>
  43  <!-- /wp:group -->
  44  <!-- /wp:post-template -->
  45  
  46  <!-- wp:group {"metadata":{"name":"<?php echo esc_html_x( 'No Results Wrapper', 'Name of the group shown when a query has no results', 'ipsum' ); ?>"},"layout":{"type":"constrained"}} -->
  47  <div class="wp-block-group"><!-- wp:query-no-results -->
  48  <!-- wp:paragraph -->
  49  <p><?php esc_html_e( 'No posts have been published in this section yet.', 'ipsum' ); ?></p>
  50  <!-- /wp:paragraph -->
  51  <!-- /wp:query-no-results --></div>
  52  <!-- /wp:group -->
  53  
  54  <!-- wp:group {"metadata":{"name":"<?php echo esc_html_x( 'Pagination Wrapper', 'Name of the group wrapping the pagination', 'ipsum' ); ?>"},"align":"wide","style":{"spacing":{"margin":{"top":"var:preset|spacing|60"}}},"layout":{"type":"constrained"}} -->
  55  <div class="wp-block-group alignwide" style="margin-top:var(--wp--preset--spacing--60)"><!-- wp:query-pagination {"paginationArrow":"arrow","layout":{"type":"flex","justifyContent":"space-between"}} -->
  56  <!-- wp:query-pagination-previous /-->
  57  
  58  <!-- wp:query-pagination-next /-->
  59  <!-- /wp:query-pagination --></div>
  60  <!-- /wp:group --></div>
  61  <!-- /wp:query --></div>
  62  <!-- /wp:column -->
  63  
  64  <!-- wp:column {"width":"33.33%"} -->
  65  <div class="wp-block-column" style="flex-basis:33.33%"><!-- wp:template-part {"slug":"sidebar","area":"uncategorized"} /--></div>
  66  <!-- /wp:column --></div>
  67  <!-- /wp:columns --></main>
  68  <!-- /wp:group -->
  69  
  70  <!-- wp:template-part {"slug":"footer-wide","area":"footer"} /-->
  71  
  72  <!-- wp:template-part {"slug":"search-bar","className":"sticky-bottom"} /-->


Generated : Thu Oct 22 08:20:34 2026 Cross-referenced by PHPXref