[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-content/themes/twentytwentytwo/inc/patterns/ -> query-simple-blog.php (source)

   1  <?php
   2  /**
   3   * Simple blog posts block pattern
   4   */
   5  return array(
   6      'title'      => __( 'Simple blog posts', 'twentytwentytwo' ),
   7      'categories' => array( 'query' ),
   8      'blockTypes' => array( 'core/query' ),
   9      'content'    => '<!-- wp:query {"query":{"perPage":3,"pages":0,"offset":0,"postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true,"perPage":10},"layout":{"inherit":true}} -->
  10                      <div class="wp-block-query"><!-- wp:post-template -->
  11                      <!-- wp:post-title {"isLink":true,"style":{"spacing":{"margin":{"top":"1rem","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))"} /-->
  12  
  13                      <!-- wp:post-featured-image {"isLink":true} /-->
  14  
  15                      <!-- wp:post-excerpt /-->
  16  
  17                      <!-- wp:group {"layout":{"type":"flex"}} -->
  18                      <div class="wp-block-group"><!-- wp:post-date {"format":"F j, Y","style":{"typography":{"fontStyle":"normal","fontWeight":"400"}},"fontSize":"small"} /-->
  19  
  20                      <!-- wp:post-terms {"term":"category","fontSize":"small"} /-->
  21  
  22                      <!-- wp:post-terms {"term":"post_tag","fontSize":"small"} /--></div>
  23                      <!-- /wp:group -->
  24  
  25                      <!-- wp:spacer {"height":128} -->
  26                      <div style="height:128px" aria-hidden="true" class="wp-block-spacer"></div>
  27                      <!-- /wp:spacer -->
  28                      <!-- /wp:post-template -->
  29  
  30                      <!-- wp:query-pagination {"paginationArrow":"arrow","align":"wide","layout":{"type":"flex","justifyContent":"space-between"}} -->
  31                      <!-- wp:query-pagination-previous {"fontSize":"small"} /-->
  32  
  33                      <!-- wp:query-pagination-numbers /-->
  34  
  35                      <!-- wp:query-pagination-next {"fontSize":"small"} /-->
  36                      <!-- /wp:query-pagination --></div>
  37                      <!-- /wp:query -->',
  38  );


Generated : Sat Dec 21 08:20:01 2024 Cross-referenced by PHPXref