[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

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

   1  <?php
   2  /**
   3   * Grid of posts block pattern
   4   */
   5  return array(
   6      'title'      => __( 'Grid of posts', 'twentytwentytwo' ),
   7      'categories' => array( 'query' ),
   8      'blockTypes' => array( 'core/query' ),
   9      'content'    => '<!-- wp:query {"query":{"offset":0,"postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","sticky":"","perPage":12},"displayLayout":{"type":"flex","columns":3},"align":"wide","layout":{"inherit":true}} -->
  10                      <div class="wp-block-query alignwide"><!-- wp:post-template {"align":"wide"} -->
  11                      <!-- wp:post-featured-image {"isLink":true,"width":"100%","height":"318px"} /-->
  12  
  13                      <!-- wp:post-title {"isLink":true,"fontSize":"x-large"} /-->
  14  
  15                      <!-- wp:post-excerpt /-->
  16  
  17                      <!-- wp:post-date {"format":"F j, Y","isLink":true,"fontSize":"small"} /-->
  18                      <!-- /wp:post-template -->
  19  
  20                      <!-- wp:separator {"align":"wide","className":"is-style-wide"} -->
  21                      <hr class="wp-block-separator alignwide is-style-wide"/>
  22                      <!-- /wp:separator -->
  23  
  24                      <!-- wp:query-pagination {"paginationArrow":"arrow","align":"wide","layout":{"type":"flex","justifyContent":"space-between"}} -->
  25                      <!-- wp:query-pagination-previous {"fontSize":"small"} /-->
  26  
  27                      <!-- wp:query-pagination-numbers /-->
  28  
  29                      <!-- wp:query-pagination-next {"fontSize":"small"} /-->
  30                      <!-- /wp:query-pagination --></div>
  31                      <!-- /wp:query -->',
  32  );


Generated : Thu Nov 21 08:20:01 2024 Cross-referenced by PHPXref