hidden-home-patterns.php 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. /**
  3. * Block patterns for home page.
  4. *
  5. * @package Skatepark
  6. * @since 1.0.0
  7. *
  8. */
  9. return array(
  10. 'title' => __( 'Block patterns for home page', 'skatepark' ),
  11. 'categories' => array( 'skatepark' ),
  12. 'inserter' => false,
  13. 'content' => '<!-- wp:heading {"level":1,"align":"wide","style":{"spacing":{"margin":{"bottom":"calc(var(--wp--custom--gap--vertical) * 3)"}}}} -->
  14. <h1 class="alignwide" style="margin-bottom:calc(var(--wp--custom--gap--vertical) * 3)">' . esc_html__( 'Empowering at-risk youth through skateboarding', 'skatepark' ) . '</h1>
  15. <!-- /wp:heading -->
  16. <!-- wp:image {"align":"full","className":"alignfull size-large"} -->
  17. <figure class="wp-block-image alignfull size-large"><img src="' . get_stylesheet_directory_uri() . '/assets/images/skatepark.jpg" alt="' . esc_attr__( 'A skateboarder does a grab trick in a bowl-shaped skate park. In the background is a watching crowd, palm trees, and the ocean.', 'skatepark' ) . '"/></figure>
  18. <!-- /wp:image -->
  19. <!-- wp:heading {"level":5,"align":"wide","style":{"spacing":{"margin":{"top":"calc(var(--wp--custom--gap--vertical) * 3)","bottom":"var(--wp--custom--gap--vertical)"}}}} -->
  20. <h5 class="alignwide" style="margin-top:calc(var(--wp--custom--gap--vertical) * 3);margin-bottom:var(--wp--custom--gap--vertical)">' . esc_html__( 'Latest posts', 'skatepark' ) . '</h5>
  21. <!-- /wp:heading -->
  22. <!-- wp:query {"query":{"perPage":3,"pages":0,"offset":0,"postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"exclude","inherit":false},"displayLayout":{"type":"flex","columns":3},"align":"wide"} -->
  23. <div class="wp-block-query alignwide"><!-- wp:post-template -->
  24. <!-- wp:group {"style":{"spacing":{"padding":{"top":"30px"}}},"layout":{"inherit":false}} -->
  25. <div class="wp-block-group" style="padding-top:30px">
  26. <!-- wp:separator {"className":"is-style-wide"} -->
  27. <hr class="wp-block-separator is-style-wide"/>
  28. <!-- /wp:separator -->
  29. <!-- wp:post-featured-image {"style":{"spacing":{"margin":{"top":"calc(2 * var( --wp--style--block-gap ))"}}},"isLink":true} /-->
  30. <!-- wp:post-title {"isLink":true,"style":{"spacing":{"margin":{"top":"calc(2 * var( --wp--style--block-gap ))"}},"typography":{"fontSize":"var(--wp--custom--font-sizes--normal)"}}} /-->
  31. <!-- wp:post-excerpt {"moreText":"' . esc_html__( 'Continue reading', 'skatepark' ) . '"} /-->
  32. <!-- wp:post-date {"style":{"typography":{"fontSize":"16px","fontWeight":"500"}},"isLink":true} /--></div>
  33. <!-- /wp:group -->
  34. <!-- /wp:post-template -->
  35. <!-- wp:spacer {"height":"70px"} -->
  36. <div style="height:70px" aria-hidden="true" class="wp-block-spacer"></div>
  37. <!-- /wp:spacer -->
  38. <!-- wp:query-pagination {"layout":{"type":"flex","justifyContent":"space-between"}} -->
  39. <!-- wp:query-pagination-previous /-->
  40. <!-- wp:query-pagination-next /-->
  41. <!-- /wp:query-pagination --></div>
  42. <!-- /wp:query -->',
  43. );