Няма описание

query-text-grid.php 1.3KB

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /**
  3. * Text-based grid of posts block pattern
  4. */
  5. return array(
  6. 'title' => __( 'Text-based 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-title {"isLink":true,"fontSize":"x-large"} /-->
  12. <!-- wp:post-excerpt /-->
  13. <!-- wp:post-date {"format":"F j, Y","isLink":true,"fontSize":"small"} /-->
  14. <!-- /wp:post-template -->
  15. <!-- wp:separator {"align":"wide","className":"is-style-wide"} -->
  16. <hr class="wp-block-separator alignwide is-style-wide"/>
  17. <!-- /wp:separator -->
  18. <!-- wp:query-pagination {"paginationArrow":"arrow","align":"wide","layout":{"type":"flex","justifyContent":"space-between"}} -->
  19. <!-- wp:query-pagination-previous {"fontSize":"small"} /-->
  20. <!-- wp:query-pagination-numbers /-->
  21. <!-- wp:query-pagination-next {"fontSize":"small"} /-->
  22. <!-- /wp:query-pagination --></div>
  23. <!-- /wp:query -->',
  24. );