[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

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

   1  <?php
   2  /**
   3   * Blog 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'      => __( 'Blog 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"},"blockGap":"5%"},"elements":{"link":{"color":{"text":"var:preset|color|primary"}}}},"textColor":"primary"} -->
  15                      <div class="wp-block-columns alignwide has-primary-color has-text-color has-link-color" style="margin-top:0px;margin-bottom:0px"><!-- wp:column {"width":"33.33%"} -->
  16                      <div class="wp-block-column" style="flex-basis:33.33%"><!-- wp:cover {"overlayColor":"secondary","minHeight":400,"isDark":false} -->
  17                      <div class="wp-block-cover is-light" style="min-height:400px"><span aria-hidden="true" class="has-secondary-background-color has-background-dim-100 wp-block-cover__gradient-background has-background-dim"></span><div class="wp-block-cover__inner-container"><!-- wp:site-logo {"align":"center","width":60} /--></div></div>
  18                      <!-- /wp:cover -->
  19  
  20                      <!-- wp:spacer {"height":40} -->
  21                      <div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div>
  22                      <!-- /wp:spacer -->
  23  
  24                      <!-- wp:site-tagline {"fontSize":"small"} /-->
  25  
  26                      <!-- wp:spacer {"height":32} -->
  27                      <div style="height:32px" aria-hidden="true" class="wp-block-spacer"></div>
  28                      <!-- /wp:spacer -->
  29  
  30                      <!-- wp:separator {"color":"foreground","className":"is-style-wide"} -->
  31                      <hr class="wp-block-separator has-text-color has-background has-foreground-background-color has-foreground-color is-style-wide"/>
  32                      <!-- /wp:separator -->
  33  
  34                      <!-- wp:spacer {"height":32} -->
  35                      <div style="height:32px" aria-hidden="true" class="wp-block-spacer"></div>
  36                      <!-- /wp:spacer -->
  37  
  38                      <!-- wp:navigation {"orientation":"vertical"} -->
  39                      <!-- wp:page-list /-->
  40                      <!-- /wp:navigation -->
  41  
  42                      <!-- wp:spacer {"height":32} -->
  43                      <div style="height:32px" aria-hidden="true" class="wp-block-spacer"></div>
  44                      <!-- /wp:spacer -->
  45  
  46                      <!-- wp:separator {"color":"foreground","className":"is-style-wide"} -->
  47                      <hr class="wp-block-separator has-text-color has-background has-foreground-background-color has-foreground-color is-style-wide"/>
  48                      <!-- /wp:separator --></div>
  49                      <!-- /wp:column -->
  50  
  51                      <!-- wp:column {"width":"66.66%"} -->
  52                      <div class="wp-block-column" style="flex-basis:66.66%"><!-- wp:query {"query":{"perPage":"5","pages":0,"offset":0,"postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false},"layout":{"inherit":true}} -->
  53                      <div class="wp-block-query"><!-- wp:post-template -->
  54                      <!-- wp:post-title {"isLink":true,"style":{"spacing":{"margin":{"top":"0","bottom":"1rem"}},"typography":{"fontStyle":"normal","fontWeight":"300"},"elements":{"link":{"color":{"text":"var:preset|color|primary"}}}},"textColor":"primary","fontSize":"var(--wp--custom--typography--font-size--huge, clamp(2.25rem, 4vw, 2.75rem))"} /-->
  55  
  56                      <!-- wp:post-featured-image {"isLink":true} /-->
  57  
  58                      <!-- wp:post-excerpt /-->
  59  
  60                      <!-- wp:group {"layout":{"type":"flex"}} -->
  61                      <div class="wp-block-group"><!-- wp:post-date {"format":"F j, Y","style":{"typography":{"fontStyle":"normal","fontWeight":"400"}},"fontSize":"small"} /-->
  62  
  63                      <!-- wp:post-terms {"term":"category","fontSize":"small"} /-->
  64  
  65                      <!-- wp:post-terms {"term":"post_tag","fontSize":"small"} /--></div>
  66                      <!-- /wp:group -->
  67  
  68                      <!-- wp:spacer {"height":128} -->
  69                      <div style="height:128px" aria-hidden="true" class="wp-block-spacer"></div>
  70                      <!-- /wp:spacer -->
  71                      <!-- /wp:post-template -->
  72  
  73                      <!-- wp:query-pagination {"paginationArrow":"arrow","align":"wide","layout":{"type":"flex","justifyContent":"space-between"}} -->
  74                      <!-- wp:query-pagination-previous {"fontSize":"small"} /-->
  75  
  76                      <!-- wp:query-pagination-numbers /-->
  77  
  78                      <!-- wp:query-pagination-next {"fontSize":"small"} /-->
  79                      <!-- /wp:query-pagination --></div>
  80                      <!-- /wp:query --></div>
  81                      <!-- /wp:column --></div>
  82                      <!-- /wp:columns --></div>
  83                      <!-- /wp:group -->',
  84  );


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