[ Index ]

PHP Cross Reference of WordPress

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  return array(
   6      'title'      => __( 'Blog posts with left sidebar', 'twentytwentytwo' ),
   7      'categories' => array( 'pages' ),
   8      '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}} -->
   9                      <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"} -->
  10                      <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%"} -->
  11                      <div class="wp-block-column" style="flex-basis:33.33%"><!-- wp:cover {"overlayColor":"secondary","minHeight":400,"isDark":false} -->
  12                      <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>
  13                      <!-- /wp:cover -->
  14  
  15                      <!-- wp:spacer {"height":40} -->
  16                      <div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div>
  17                      <!-- /wp:spacer -->
  18  
  19                      <!-- wp:site-tagline {"fontSize":"small"} /-->
  20  
  21                      <!-- wp:spacer {"height":32} -->
  22                      <div style="height:32px" aria-hidden="true" class="wp-block-spacer"></div>
  23                      <!-- /wp:spacer -->
  24  
  25                      <!-- wp:separator {"color":"foreground","className":"is-style-wide"} -->
  26                      <hr class="wp-block-separator has-text-color has-background has-foreground-background-color has-foreground-color is-style-wide"/>
  27                      <!-- /wp:separator -->
  28  
  29                      <!-- wp:spacer {"height":32} -->
  30                      <div style="height:32px" aria-hidden="true" class="wp-block-spacer"></div>
  31                      <!-- /wp:spacer -->
  32  
  33                      <!-- wp:navigation {"orientation":"vertical"} -->
  34                      <!-- wp:page-list /-->
  35                      <!-- /wp:navigation -->
  36  
  37                      <!-- wp:spacer {"height":32} -->
  38                      <div style="height:32px" aria-hidden="true" class="wp-block-spacer"></div>
  39                      <!-- /wp:spacer -->
  40  
  41                      <!-- wp:separator {"color":"foreground","className":"is-style-wide"} -->
  42                      <hr class="wp-block-separator has-text-color has-background has-foreground-background-color has-foreground-color is-style-wide"/>
  43                      <!-- /wp:separator --></div>
  44                      <!-- /wp:column -->
  45  
  46                      <!-- wp:column {"width":"66.66%"} -->
  47                      <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}} -->
  48                      <div class="wp-block-query"><!-- wp:post-template -->
  49                      <!-- 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))"} /-->
  50  
  51                      <!-- wp:post-featured-image {"isLink":true} /-->
  52  
  53                      <!-- wp:post-excerpt /-->
  54  
  55                      <!-- wp:group {"layout":{"type":"flex"}} -->
  56                      <div class="wp-block-group"><!-- wp:post-date {"format":"F j, Y","style":{"typography":{"fontStyle":"normal","fontWeight":"400"}},"fontSize":"small"} /-->
  57  
  58                      <!-- wp:post-terms {"term":"category","fontSize":"small"} /-->
  59  
  60                      <!-- wp:post-terms {"term":"post_tag","fontSize":"small"} /--></div>
  61                      <!-- /wp:group -->
  62  
  63                      <!-- wp:spacer {"height":128} -->
  64                      <div style="height:128px" aria-hidden="true" class="wp-block-spacer"></div>
  65                      <!-- /wp:spacer -->
  66                      <!-- /wp:post-template -->
  67  
  68                      <!-- wp:query-pagination {"paginationArrow":"arrow","align":"wide","layout":{"type":"flex","justifyContent":"space-between"}} -->
  69                      <!-- wp:query-pagination-previous {"fontSize":"small"} /-->
  70  
  71                      <!-- wp:query-pagination-numbers /-->
  72  
  73                      <!-- wp:query-pagination-next {"fontSize":"small"} /-->
  74                      <!-- /wp:query-pagination --></div>
  75                      <!-- /wp:query --></div>
  76                      <!-- /wp:column --></div>
  77                      <!-- /wp:columns --></div>
  78                      <!-- /wp:group -->',
  79  );


Generated: Fri Apr 26 01:00:03 2024 Cross-referenced by PHPXref 0.7.1