posts-list.php 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /**
  3. * Posts list pattern
  4. */
  5. return array(
  6. 'title' => __( 'Posts list', 'stewart' ),
  7. 'categories' => array( 'query' ),
  8. 'content' => '<!-- wp:query {"queryId":3,"query":{"perPage":10,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true},"displayLayout":{"type":"list","columns":2},"layout":{"inherit":false}} -->
  9. <div class="wp-block-query"><!-- wp:post-template -->
  10. <!-- wp:post-title {"isLink":true,"style":{"typography":{"lineHeight":"1.2"}},"fontSize":"huge"} /-->
  11. <!-- wp:post-featured-image {"isLink":true} /-->
  12. <!-- wp:post-excerpt {"fontSize":"normal"} /-->
  13. <!-- wp:post-date {"isLink":true,"fontSize":"extra-small"} /-->
  14. <!-- wp:spacer {"height":"60px"} -->
  15. <div style="height:60px" aria-hidden="true" class="wp-block-spacer"></div>
  16. <!-- /wp:spacer -->
  17. <!-- /wp:post-template -->
  18. <!-- wp:query-pagination -->
  19. <div class="wp-block-query-pagination"><!-- wp:query-pagination-previous /-->
  20. <!-- wp:query-pagination-numbers /-->
  21. <!-- wp:query-pagination-next /--></div>
  22. <!-- /wp:query-pagination --></div>
  23. <!-- /wp:query -->',
  24. );