simple-list-of-posts-with-background.php 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. /**
  3. * Title: Simple list of posts with title and background
  4. * Slug: archeo/simple-list-of-posts-with-background
  5. * Categories: featured, query
  6. * Block Types: query
  7. */
  8. ?>
  9. <!-- wp:group {"layout":{"inherit":"true"},"align":"full","style":{"spacing":{"padding":{"top":"var(--wp--custom--spacing--medium)","bottom":"var(--wp--custom--spacing--medium)"},"margin":{"top":"0px"}},"elements":{"link":{"color":{"text":"var:preset|color|background"}}}},"backgroundColor":"foreground","textColor":"background"} -->
  10. <div class="wp-block-group alignfull has-background-color has-foreground-background-color has-text-color has-background has-link-color" style="padding-top:var(--wp--custom--spacing--medium);padding-bottom:var(--wp--custom--spacing--medium);margin-top:0px">
  11. <!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"left":"0px","right":"0px"}}}} -->
  12. <div class="wp-block-group alignwide" style="padding-left:0px;padding-right:0px;">
  13. <!-- wp:heading {"level":3,"style":{"spacing":{"margin":{"bottom":"40px"}}},"fontSize":"medium"} -->
  14. <h3 class="has-medium-font-size" style="margin-bottom:40px"><?php _e( 'Selected Writings', 'archeo' ); ?></h3>
  15. <!-- /wp:heading -->
  16. <!-- wp:query {"query":{"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true,"perPage":3,"parents":[]}} -->
  17. <div class="wp-block-query">
  18. <!-- wp:post-template -->
  19. <!-- wp:group {"className":"simple-list-of-posts","layout":{"type":"flex","allowOrientation":false}} -->
  20. <div class="wp-block-group simple-list-of-posts">
  21. <!-- wp:post-title {"isLink":true,"style":{"typography":{"lineHeight":"1.2","fontStyle":"normal","fontWeight":"100"},"spacing":{"margin":{"top":"1.25rem"}}},"fontSize":"huge"} /-->
  22. <!-- wp:post-author {"showAvatar":false,"style":{"typography":{"lineHeight":"1.2","fontStyle":"normal","fontWeight":"100"}},"fontSize":"medium"} /-->
  23. </div>
  24. <!-- /wp:group -->
  25. <!-- /wp:post-template -->
  26. <!-- wp:spacer {"height":"40px"} -->
  27. <div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div>
  28. <!-- /wp:spacer -->
  29. <!-- wp:query-pagination {"paginationArrow":"chevron","layout":{"type":"flex","justifyContent":"space-between"}} -->
  30. <!-- wp:query-pagination-previous /-->
  31. <!-- wp:query-pagination-next /-->
  32. <!-- /wp:query-pagination -->
  33. </div>
  34. <!-- /wp:query -->
  35. </div>
  36. <!-- /wp:group -->
  37. </div>
  38. <!-- /wp:group -->