posts-recent-posts.php 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php
  2. /**
  3. * Title: Recent Posts
  4. * Slug: cakely/posts-recent-posts
  5. * Categories: posts, banner
  6. * Viewport width: 1488
  7. */
  8. declare( strict_types = 1 );
  9. ?>
  10. <!-- wp:group {"style":{"spacing":{"padding":{"top":"var:preset|spacing|80","bottom":"var:preset|spacing|80","left":"var:preset|spacing|60","right":"var:preset|spacing|60"},"margin":{"top":"0px","bottom":"0px"}}},"layout":{"type":"constrained"}} -->
  11. <div class="wp-block-group" style="margin-top:0px;margin-bottom:0px;padding-top:var(--wp--preset--spacing--80);padding-right:var(--wp--preset--spacing--60);padding-bottom:var(--wp--preset--spacing--80);padding-left:var(--wp--preset--spacing--60)">
  12. <!-- wp:columns {"align":"wide"} -->
  13. <div class="wp-block-columns alignwide">
  14. <!-- wp:column {"width":"32%"} -->
  15. <div class="wp-block-column" style="flex-basis:32%">
  16. <!-- wp:heading {"style":{"elements":{"link":{"color":{"text":"var:preset|color|primary"}}},"typography":{"letterSpacing":"0.1em","textTransform":"uppercase"}},"textColor":"primary","fontSize":"medium"} -->
  17. <h2 class="wp-block-heading has-primary-color has-text-color has-link-color has-medium-font-size" style="letter-spacing:0.1em;text-transform:uppercase"><?php echo esc_html__( 'On the Blog', 'cakely' ); ?></h2>
  18. <!-- /wp:heading -->
  19. <!-- wp:paragraph -->
  20. <p><?php echo esc_html__( 'Dive into a world of inventive recipes and simple, step-by-step guides to crafting your own delightful treats. Your feedback and messages are always cherished. Enjoy exploring these delicious creations.', 'cakely' ); ?></p>
  21. <!-- /wp:paragraph -->
  22. <!-- wp:paragraph {"style":{"typography":{"lineHeight":"1.1","fontStyle":"normal","fontWeight":"600","textTransform":"none"}}} -->
  23. <p style="font-style:normal;font-weight:600;line-height:1.1;text-transform:none"><a href="#"><?php echo wp_kses_post( __( 'Read<br>All Posts &rarr;', 'cakely' ) ); ?></a></p>
  24. <!-- /wp:paragraph -->
  25. </div>
  26. <!-- /wp:column -->
  27. <!-- wp:column {"width":"66.66%"} -->
  28. <div class="wp-block-column" style="flex-basis:66.66%">
  29. <!-- wp:query {"query":{"perPage":"4","pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false},"align":"wide"} -->
  30. <div class="wp-block-query alignwide">
  31. <!-- wp:post-template {"layout":{"type":"grid","columnCount":4}} -->
  32. <!-- wp:post-featured-image {"isLink":true,"aspectRatio":"3/4","style":{"spacing":{"margin":{"top":"0px","bottom":"0px"}}}} /-->
  33. <!-- wp:group {"style":{"spacing":{"blockGap":"0","margin":{"top":"var:preset|spacing|30"}}},"layout":{"inherit":false}} -->
  34. <div class="wp-block-group" style="margin-top:var(--wp--preset--spacing--30)">
  35. <!-- wp:post-title {"isLink":true,"style":{"typography":{"fontStyle":"normal","fontWeight":"400","textTransform":"none","lineHeight":"1.33","letterSpacing":"0em"}},"fontSize":"medium","fontFamily":"lato"} /-->
  36. <!-- wp:post-date /-->
  37. </div>
  38. <!-- /wp:group -->
  39. <!-- /wp:post-template -->
  40. </div>
  41. <!-- /wp:query -->
  42. </div>
  43. <!-- /wp:column -->
  44. </div>
  45. <!-- /wp:columns -->
  46. </div>
  47. <!-- /wp:group -->