[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

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

   1  <?php
   2  /**
   3   * Grid of image posts block pattern
   4   */
   5  return array(
   6      'title'      => __( 'Grid of image 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":"","inherit":false,"perPage":12},"displayLayout":{"type":"flex","columns":3},"layout":{"inherit":true}} -->
  10                      <div class="wp-block-query"><!-- wp:post-template -->
  11                      <!-- wp:post-featured-image {"isLink":true,"width":"100%","height":"200px"} /-->
  12  
  13                      <!-- wp:columns {"isStackedOnMobile":false,"style":{"spacing":{"blockGap":"0.5rem"}}} -->
  14                      <div class="wp-block-columns is-not-stacked-on-mobile"><!-- wp:column -->
  15                      <div class="wp-block-column"><!-- wp:post-title {"isLink":true,"style":{"typography":{"fontStyle":"normal","fontWeight":"400"},"spacing":{"margin":{"top":"0.2em"}}},"fontSize":"small","fontFamily":"system-font"} /--></div>
  16                      <!-- /wp:column -->
  17  
  18                      <!-- wp:column {"width":"4em"} -->
  19                      <div class="wp-block-column" style="flex-basis:4em"><!-- wp:post-date {"textAlign":"right","format":"m.d.y","style":{"typography":{"fontStyle":"italic","fontWeight":"400"}},"fontSize":"small"} /--></div>
  20                      <!-- /wp:column --></div>
  21                      <!-- /wp:columns -->
  22                      <!-- /wp:post-template -->
  23  
  24                      <!-- wp:separator {"className":"is-style-wide"} -->
  25                      <hr class="wp-block-separator alignwide is-style-wide"/>
  26                      <!-- /wp:separator -->
  27  
  28                      <!-- wp:query-pagination {"paginationArrow":"arrow","align":"wide","layout":{"type":"flex","justifyContent":"space-between"}} -->
  29                      <!-- wp:query-pagination-previous {"fontSize":"small"} /-->
  30  
  31                      <!-- wp:query-pagination-numbers /-->
  32  
  33                      <!-- wp:query-pagination-next {"fontSize":"small"} /-->
  34                      <!-- /wp:query-pagination --></div>
  35                      <!-- /wp:query -->',
  36  );


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