[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

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

   1  <?php
   2  /**
   3   * Blog posts with right 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 right 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:group {"align":"wide","style":{"spacing":{"padding":{"bottom":"2rem","top":"0px","right":"0px","left":"0px"}}},"layout":{"type":"flex","justifyContent":"space-between"}} -->
  15                      <div class="wp-block-group alignwide" style="padding-top:0px;padding-right:0px;padding-bottom:2rem;padding-left:0px"><!-- wp:group {"layout":{"type":"flex"}} -->
  16                      <div class="wp-block-group"><!-- wp:site-logo {"width":64} /--></div>
  17                      <!-- /wp:group -->
  18  
  19                      <!-- wp:navigation {"layout":{"type":"flex","setCascadingProperties":true,"justifyContent":"right"}} -->
  20                      <!-- wp:page-list /-->
  21                      <!-- /wp:navigation --></div>
  22                      <!-- /wp:group -->
  23  
  24                      <!-- wp:spacer {"height":64} -->
  25                      <div style="height:64px" aria-hidden="true" class="wp-block-spacer"></div>
  26                      <!-- /wp:spacer -->
  27  
  28                      <!-- wp:columns {"align":"wide","style":{"spacing":{"margin":{"top":"0px","bottom":"0px"},"blockGap":"5%"},"elements":{"link":{"color":{"text":"var:preset|color|foreground"}}}},"textColor":"foreground"} -->
  29                      <div class="wp-block-columns alignwide has-foreground-color has-text-color has-link-color" style="margin-top:0px;margin-bottom:0px"><!-- wp:column {"width":"66.66%","style":{"spacing":{"padding":{"bottom":"6rem"}}}} -->
  30                      <div class="wp-block-column" style="padding-bottom:6rem;flex-basis:66.66%"><!-- wp:query {"queryId":9,"query":{"perPage":"5","pages":0,"offset":0,"postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false},"displayLayout":{"type":"list"},"layout":{"inherit":true}} -->
  31                      <div class="wp-block-query"><!-- wp:post-template -->
  32                      <!-- wp:post-title {"isLink":true,"style":{"spacing":{"margin":{"top":"0","bottom":"1rem"}},"typography":{"fontStyle":"normal","fontWeight":"300"},"elements":{"link":{"color":{"text":"var:preset|color|foreground"}}}},"textColor":"foreground","fontSize":"var(--wp--custom--typography--font-size--huge, clamp(2.25rem, 4vw, 2.75rem))"} /-->
  33  
  34                      <!-- wp:post-featured-image {"isLink":true} /-->
  35  
  36                      <!-- wp:post-excerpt /-->
  37  
  38                      <!-- wp:group {"layout":{"type":"flex"}} -->
  39                      <div class="wp-block-group"><!-- wp:post-date {"format":"F j, Y","style":{"typography":{"fontStyle":"normal","fontWeight":"400"}},"fontSize":"small"} /-->
  40  
  41                      <!-- wp:post-terms {"term":"category","fontSize":"small"} /-->
  42  
  43                      <!-- wp:post-terms {"term":"post_tag","fontSize":"small"} /--></div>
  44                      <!-- /wp:group -->
  45  
  46                      <!-- wp:spacer {"height":64} -->
  47                      <div style="height:64px" aria-hidden="true" class="wp-block-spacer"></div>
  48                      <!-- /wp:spacer -->
  49                      <!-- /wp:post-template -->
  50  
  51                      <!-- wp:query-pagination {"paginationArrow":"arrow","align":"wide","layout":{"type":"flex","justifyContent":"space-between"}} -->
  52                      <!-- wp:query-pagination-previous {"fontSize":"small"} /-->
  53  
  54                      <!-- wp:query-pagination-numbers /-->
  55  
  56                      <!-- wp:query-pagination-next {"fontSize":"small"} /-->
  57                      <!-- /wp:query-pagination --></div>
  58                      <!-- /wp:query --></div>
  59                      <!-- /wp:column -->
  60  
  61                      <!-- wp:column {"width":"33.33%"} -->
  62                      <div class="wp-block-column" style="flex-basis:33.33%"><!-- wp:image {"width":768,"height":1160,"sizeSlug":"large","linkDestination":"none"} -->
  63                      <figure class="wp-block-image size-large is-resized"><img src="' . esc_url( get_template_directory_uri() ) . '/assets/images/flight-path-on-salmon.jpg" alt="' . esc_attr__( 'Illustration of a flying bird.', 'twentytwentytwo' ) . '" width="768" height="1160"/></figure>
  64                      <!-- /wp:image -->
  65  
  66                      <!-- wp:spacer {"height":4} -->
  67                      <div style="height:4px" aria-hidden="true" class="wp-block-spacer"></div>
  68                      <!-- /wp:spacer -->
  69  
  70                      <!-- wp:site-title {"isLink":false,"style":{"typography":{"fontStyle":"normal","fontWeight":"300","lineHeight":"1.2"}},"fontSize":"large","fontFamily":"source-serif-pro"} /-->
  71  
  72                      <!-- wp:site-tagline /-->
  73  
  74                      <!-- wp:spacer {"height":16} -->
  75                      <div style="height:16px" aria-hidden="true" class="wp-block-spacer"></div>
  76                      <!-- /wp:spacer -->
  77  
  78                      <!-- wp:heading {"level":4,"fontSize":"large"} -->
  79                      <h4 class="has-large-font-size"><em>' . esc_html__( 'Categories', 'twentytwentytwo' ) . '</em></h4>
  80                      <!-- /wp:heading -->
  81  
  82                      <!-- wp:tag-cloud {"taxonomy":"category","showTagCounts":true} /-->
  83  
  84                      <!-- wp:heading {"level":4,"fontSize":"large"} -->
  85                      <h4 class="has-large-font-size"><em>' . esc_html__( 'Tags', 'twentytwentytwo' ) . '</em></h4>
  86                      <!-- /wp:heading -->
  87  
  88                      <!-- wp:tag-cloud {"showTagCounts":true} /--></div>
  89                      <!-- /wp:column --></div>
  90                      <!-- /wp:columns --></div>
  91                      <!-- /wp:group -->',
  92  );


Generated : Sat Aug 15 08:20:25 2026 Cross-referenced by PHPXref