[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-content/themes/twentytwentytwo/inc/patterns/ -> page-sidebar-grid-posts.php (source)

   1  <?php
   2  /**
   3   * Grid of posts with left sidebar block pattern
   4   *
   5   * @package WordPress
   6   * @subpackage Twenty_Twenty_Two
   7   * @since Twenty Twenty-Two 1.0
   8   */
   9  
  10  return array(
  11      'title'      => __( 'Grid of posts with left sidebar', 'twentytwentytwo' ),
  12      'categories' => array( 'twentytwentytwo_pages' ),
  13      'content'    => '<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"var(--wp--custom--spacing--small, 1.25rem)","bottom":"var(--wp--custom--spacing--small, 1.25rem)"}}},"layout":{"inherit":true}} -->
  14                      <div class="wp-block-group alignfull" style="padding-top:var(--wp--custom--spacing--small, 1.25rem);padding-bottom:var(--wp--custom--spacing--small, 1.25rem)"><!-- wp:columns {"align":"wide","style":{"spacing":{"margin":{"top":"0px","bottom":"0px"}}}} -->
  15                      <div class="wp-block-columns alignwide" style="margin-top:0px;margin-bottom:0px"><!-- wp:column {"width":"30%"} -->
  16                      <div class="wp-block-column" style="flex-basis:30%"><!-- wp:site-title {"isLink":false,"style":{"spacing":{"margin":{"top":"0px","bottom":"1rem"}},"typography":{"fontStyle":"italic","fontWeight":"300","lineHeight":"1.1"}},"fontSize":"var(--wp--custom--typography--font-size--huge, clamp(2.25rem, 4vw, 2.75rem))","fontFamily":"source-serif-pro"} /-->
  17  
  18                      <!-- wp:site-tagline {"fontSize":"small"} /-->
  19  
  20                      <!-- wp:spacer {"height":32} -->
  21                      <div style="height:32px" aria-hidden="true" class="wp-block-spacer"></div>
  22                      <!-- /wp:spacer -->
  23  
  24                      <!-- wp:separator {"color":"foreground","className":"is-style-wide"} -->
  25                      <hr class="wp-block-separator has-text-color has-background has-foreground-background-color has-foreground-color is-style-wide"/>
  26                      <!-- /wp:separator -->
  27  
  28                      <!-- wp:spacer {"height":16} -->
  29                      <div style="height:16px" aria-hidden="true" class="wp-block-spacer"></div>
  30                      <!-- /wp:spacer -->
  31  
  32                      <!-- wp:navigation {"orientation":"vertical"} -->
  33                      <!-- wp:page-list /-->
  34                      <!-- /wp:navigation -->
  35  
  36                      <!-- wp:spacer {"height":16} -->
  37                      <div style="height:16px" aria-hidden="true" class="wp-block-spacer"></div>
  38                      <!-- /wp:spacer -->
  39  
  40                      <!-- wp:separator {"color":"foreground","className":"is-style-wide"} -->
  41                      <hr class="wp-block-separator has-text-color has-background has-foreground-background-color has-foreground-color is-style-wide"/>
  42                      <!-- /wp:separator -->
  43  
  44                      <!-- wp:spacer {"height":16} -->
  45                      <div style="height:16px" aria-hidden="true" class="wp-block-spacer"></div>
  46                      <!-- /wp:spacer -->
  47  
  48                      <!-- wp:spacer {"height":16} -->
  49                      <div style="height:16px" aria-hidden="true" class="wp-block-spacer"></div>
  50                      <!-- /wp:spacer -->
  51  
  52                      <!-- wp:site-logo {"width":60} /--></div>
  53                      <!-- /wp:column -->
  54  
  55                      <!-- wp:column {"width":"70%"} -->
  56                      <div class="wp-block-column" style="flex-basis:70%"><!-- wp:query {"query":{"offset":0,"postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","sticky":"","inherit":false,"perPage":12},"displayLayout":{"type":"flex","columns":3},"layout":{"inherit":true}} -->
  57                      <div class="wp-block-query"><!-- wp:post-template -->
  58                      <!-- wp:post-featured-image {"isLink":true,"width":"100%","height":"200px"} /-->
  59  
  60                      <!-- wp:group {"layout":{"type":"flex","justifyContent":"space-between"}} -->
  61                      <div class="wp-block-group"><!-- wp:post-title {"isLink":true,"style":{"typography":{"fontStyle":"normal","fontWeight":"400"}},"fontSize":"small","fontFamily":"system-font"} /-->
  62  
  63                      <!-- wp:post-date {"format":"m.d.y","style":{"typography":{"fontStyle":"italic","fontWeight":"400"}},"fontSize":"small"} /--></div>
  64                      <!-- /wp:group -->
  65                      <!-- /wp:post-template -->
  66  
  67                      <!-- wp:separator {"className":"alignwide is-style-wide"} -->
  68                      <hr class="wp-block-separator alignwide is-style-wide"/>
  69                      <!-- /wp:separator -->
  70  
  71                      <!-- wp:query-pagination {"paginationArrow":"arrow","align":"wide","layout":{"type":"flex","justifyContent":"space-between"}} -->
  72                      <!-- wp:query-pagination-previous {"fontSize":"small"} /-->
  73  
  74                      <!-- wp:query-pagination-numbers /-->
  75  
  76                      <!-- wp:query-pagination-next {"fontSize":"small"} /-->
  77                      <!-- /wp:query-pagination --></div>
  78                      <!-- /wp:query --></div>
  79                      <!-- /wp:column --></div>
  80                      <!-- /wp:columns --></div>
  81                      <!-- /wp:group -->',
  82  );


Generated : Sat Aug 1 08:20:18 2026 Cross-referenced by PHPXref