query-cover.php 2.2 KB

1234567891011121314151617181920
  1. <?php declare( strict_types = 1 ); ?>
  2. <?php
  3. /**
  4. * Title: Query Cover
  5. * Slug: raw/query-cover
  6. * Categories: featured
  7. */
  8. ?>
  9. <!-- wp:query {"query":{"perPage":10,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"exclude","inherit":true},"layout":{"type":"default"}} -->
  10. <div class="wp-block-query"><!-- wp:post-template {"layout":{"type":"grid","columnCount":3}} -->
  11. <!-- wp:cover {"useFeaturedImage":true,"dimRatio":0,"focalPoint":{"x":0.75,"y":0.25},"minHeight":400,"contentPosition":"bottom left","isDark":false,"style":{"color":{"duotone":["#111111","#f7f8f2"]},"spacing":{"padding":{"top":"0px","right":"0px","bottom":"0px","left":"0px"},"blockGap":"0px","margin":{"top":"0px","bottom":"0px"}}},"layout":{"type":"constrained"}} -->
  12. <div class="wp-block-cover is-light has-custom-content-position is-position-bottom-left" style="margin-top:0px;margin-bottom:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;min-height:400px"><span aria-hidden="true" class="wp-block-cover__background has-background-dim-0 has-background-dim"></span><div class="wp-block-cover__inner-container"><!-- wp:group {"align":"full","style":{"spacing":{"blockGap":"0.5rem","padding":{"top":"1.5rem","right":"1.5rem","bottom":"0rem","left":"0rem"},"margin":{"top":"0px","bottom":"0px"}},"elements":{"link":{"color":{"text":"var:preset|color|foreground"}}}},"backgroundColor":"background","textColor":"foreground","layout":{"type":"constrained"}} -->
  13. <div class="wp-block-group alignfull has-foreground-color has-background-background-color has-text-color has-background has-link-color" style="margin-top:0px;margin-bottom:0px;padding-top:1.5rem;padding-right:1.5rem;padding-bottom:0rem;padding-left:0rem"><!-- wp:post-title {"isLink":true,"style":{"spacing":{"padding":{"top":"0px","right":"0px","bottom":"0px","left":"0px"},"margin":{"top":"0px","right":"0px","bottom":"0px","left":"0px"}}}} /-->
  14. <!-- wp:post-date {"style":{"typography":{"textTransform":"none","fontStyle":"normal","fontWeight":"400","lineHeight":1}},"fontSize":"small"} /--></div>
  15. <!-- /wp:group --></div></div>
  16. <!-- /wp:cover -->
  17. <!-- /wp:post-template --></div>
  18. <!-- /wp:query -->