[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

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

   1  <?php
   2  /**
   3   * Default posts block pattern
   4   */
   5  return array(
   6      'title'      => __( 'Default posts', 'twentytwentytwo' ),
   7      'categories' => array( 'query' ),
   8      'blockTypes' => array( 'core/query' ),
   9      'content'    => '<!-- wp:query {"query":{"perPage":10,"pages":0,"offset":0,"postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":""},"align":"wide","layout":{"inherit":true}} -->
  10                      <div class="wp-block-query alignwide"><!-- wp:post-template {"align":"wide"} -->
  11                      <!-- wp:group {"layout":{"inherit":true}} -->
  12                      <div class="wp-block-group"><!-- wp:post-title {"isLink":true,"align":"wide","fontSize":"var(--wp--custom--typography--font-size--huge, clamp(2.25rem, 4vw, 2.75rem))"} /-->
  13  
  14                      <!-- wp:post-featured-image {"isLink":true,"align":"wide","style":{"spacing":{"margin":{"top":"calc(1.75 * var(--wp--style--block-gap))"}}}} /-->
  15  
  16                      <!-- wp:columns {"align":"wide"} -->
  17                      <div class="wp-block-columns alignwide"><!-- wp:column {"width":"650px"} -->
  18                      <div class="wp-block-column" style="flex-basis:650px"><!-- wp:post-excerpt /-->
  19  
  20                      <!-- wp:post-date {"isLink":true,"format":"F j, Y","style":{"typography":{"fontStyle":"italic","fontWeight":"400"}},"fontSize":"small"} /--></div>
  21                      <!-- /wp:column -->
  22  
  23                      <!-- wp:column {"width":""} -->
  24                      <div class="wp-block-column"></div>
  25                      <!-- /wp:column --></div>
  26                      <!-- /wp:columns -->
  27  
  28                      <!-- wp:spacer {"height":16} -->
  29                      <div style="height:16px" aria-hidden="true" class="wp-block-spacer"></div>
  30                      <!-- /wp:spacer -->
  31  
  32                      <!-- wp:separator {"align":"wide","className":"is-style-wide"} -->
  33                      <hr class="wp-block-separator alignwide is-style-wide"/>
  34                      <!-- /wp:separator -->
  35  
  36                      <!-- wp:spacer {"height":16} -->
  37                      <div style="height:16px" aria-hidden="true" class="wp-block-spacer"></div>
  38                      <!-- /wp:spacer --></div>
  39                      <!-- /wp:group -->
  40                      <!-- /wp:post-template -->
  41  
  42                      <!-- wp:query-pagination {"paginationArrow":"arrow","align":"wide","layout":{"type":"flex","justifyContent":"space-between"}} -->
  43                      <!-- wp:query-pagination-previous {"fontSize":"small"} /-->
  44  
  45                      <!-- wp:query-pagination-numbers /-->
  46  
  47                      <!-- wp:query-pagination-next {"fontSize":"small"} /-->
  48                      <!-- /wp:query-pagination --></div>
  49                      <!-- /wp:query -->',
  50  );


Generated: Sun Dec 22 01:00:02 2024 Cross-referenced by PHPXref 0.7.1