home.php 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /**
  3. * Title: home
  4. * Slug: layover/home
  5. * Categories: hidden
  6. * Inserter: no
  7. */
  8. ?>
  9. <!-- wp:cover {"url":"<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/layover_background.jpg","hasParallax":true,"dimRatio":0,"customOverlayColor":"#212121","isUserOverlayColor":true,"contentPosition":"center center","style":{"spacing":{"margin":{"top":"0rem","bottom":"0rem"},"padding":{"top":"0rem","right":"0rem","bottom":"0rem","left":"0rem"}}},"layout":{"type":"constrained"}} -->
  10. <div class="wp-block-cover has-parallax" style="margin-top:0rem;margin-bottom:0rem;padding-top:0rem;padding-right:0rem;padding-bottom:0rem;padding-left:0rem"><span aria-hidden="true" class="wp-block-cover__background has-background-dim-0 has-background-dim" style="background-color:#212121"></span><div class="wp-block-cover__image-background has-parallax" style="background-position:50% 50%;background-image:url(<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/layover_background.jpg)"></div><div class="wp-block-cover__inner-container"><!-- wp:template-part {"slug":"header","align":"wide"} /-->
  11. <!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"top":"4rem","bottom":"4rem"}}},"layout":{"type":"constrained"}} -->
  12. <div class="wp-block-group alignwide" style="padding-top:4rem;padding-bottom:4rem"><!-- wp:query {"queryId":0,"query":{"perPage":10,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true,"parents":[]},"tagName":"main","align":"wide","layout":{"type":"constrained"}} -->
  13. <main class="wp-block-query alignwide"><!-- wp:post-template {"align":"wide","style":{"spacing":{"blockGap":"8rem"}},"layout":{"type":"default"}} -->
  14. <!-- wp:post-title {"textAlign":"center","level":1,"isLink":true,"align":"wide","style":{"spacing":{"padding":{"top":"0px","right":"0px","bottom":"0px","left":"0px"},"margin":{"top":"0px","right":"0px","bottom":"0px","left":"0px"}}}} /-->
  15. <!-- wp:group {"style":{"spacing":{"padding":{"top":"1rem","bottom":"1rem"}}},"layout":{"type":"constrained"}} -->
  16. <div class="wp-block-group" style="padding-top:1rem;padding-bottom:1rem"><!-- wp:post-excerpt {"textAlign":"center","moreText":"More.","showMoreOnNewLine":false,"excerptLength":23} /--></div>
  17. <!-- /wp:group -->
  18. <!-- /wp:post-template -->
  19. <!-- wp:query-pagination {"layout":{"type":"flex","justifyContent":"center"}} -->
  20. <!-- wp:query-pagination-previous {"label":"Prev"} /-->
  21. <!-- wp:query-pagination-numbers /-->
  22. <!-- wp:query-pagination-next {"label":"Next"} /-->
  23. <!-- /wp:query-pagination -->
  24. <!-- wp:query-no-results -->
  25. <!-- wp:paragraph {"align":"center","placeholder":"Add text or blocks that will display when a query returns no results."} -->
  26. <p class="has-text-align-center"><?php echo __('There are no posts available. Try creating one.', 'layover');?></p>
  27. <!-- /wp:paragraph -->
  28. <!-- /wp:query-no-results --></main>
  29. <!-- /wp:query --></div>
  30. <!-- /wp:group -->
  31. <!-- wp:template-part {"slug":"footer","tagName":"footer","align":"wide"} /--></div></div>
  32. <!-- /wp:cover -->