sidebar-blogging.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?php
  2. /**
  3. * Blogging sidebar block pattern
  4. */
  5. return array(
  6. 'title' => __( 'Blogging sidebar', 'stewart' ),
  7. 'categories' => array( 'sidebar' ),
  8. 'content' => '<!-- wp:group {"fontSize":"small"} -->
  9. <div class="wp-block-group has-small-font-size"><!-- wp:separator {"className":"is-style-wide"} -->
  10. <hr class="wp-block-separator is-style-wide"/>
  11. <!-- /wp:separator -->
  12. <!-- wp:heading {"fontSize":"small"} -->
  13. <h2 class="has-small-font-size">' . esc_html__( 'Start here', 'stewart' ) . '</h2>
  14. <!-- /wp:heading -->
  15. <!-- wp:query {"query":{"perPage":5,"pages":0,"offset":0,"postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"only","inherit":false}} -->
  16. <div class="wp-block-query"><!-- wp:post-template -->
  17. <!-- wp:post-title {"isLink":true,"fontSize":"large"} /-->
  18. <!-- /wp:post-template --></div>
  19. <!-- /wp:query -->
  20. <!-- wp:separator {"className":"is-style-wide"} -->
  21. <hr class="wp-block-separator is-style-wide"/>
  22. <!-- /wp:separator -->
  23. <!-- wp:heading {"fontSize":"small"} -->
  24. <h2 class="has-small-font-size">' . esc_html__( 'Archives', 'stewart' ) . '</h2>
  25. <!-- /wp:heading -->
  26. <!-- wp:archives /-->
  27. <!-- wp:separator {"className":"is-style-wide"} -->
  28. <hr class="wp-block-separator is-style-wide"/>
  29. <!-- /wp:separator -->
  30. <!-- wp:heading {"fontSize":"small"} -->
  31. <h2 class="has-small-font-size">' . esc_html__( 'Latest Comments', 'stewart' ) . '</h2>
  32. <!-- /wp:heading -->
  33. <!-- wp:latest-comments {"displayAvatar":false,"displayDate":false,"displayExcerpt":false} /-->
  34. <!-- wp:separator {"className":"is-style-wide"} -->
  35. <hr class="wp-block-separator is-style-wide"/>
  36. <!-- /wp:separator --></div>
  37. <!-- /wp:group -->
  38. <!-- wp:spacer {"height":"80px"} -->
  39. <div style="height:80px" aria-hidden="true" class="wp-block-spacer"></div>
  40. <!-- /wp:spacer -->',
  41. );