Нема описа

page-sidebar-grid-posts.php 4.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <?php
  2. /**
  3. * Grid of posts with left sidebar block pattern
  4. */
  5. return array(
  6. 'title' => __( 'Grid of posts with left sidebar', 'twentytwentytwo' ),
  7. 'categories' => array( 'pages' ),
  8. 'content' => '<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"var(--wp--custom--spacing--small, 1.25rem)","bottom":"var(--wp--custom--spacing--small, 1.25rem)"}}},"layout":{"inherit":true}} -->
  9. <div class="wp-block-group alignfull" style="padding-top:var(--wp--custom--spacing--small, 1.25rem);padding-bottom:var(--wp--custom--spacing--small, 1.25rem)"><!-- wp:columns {"align":"wide","style":{"spacing":{"margin":{"top":"0px","bottom":"0px"}}}} -->
  10. <div class="wp-block-columns alignwide" style="margin-top:0px;margin-bottom:0px"><!-- wp:column {"width":"30%"} -->
  11. <div class="wp-block-column" style="flex-basis:30%"><!-- wp:site-title {"isLink":false,"style":{"spacing":{"margin":{"top":"0px","bottom":"1rem"}},"typography":{"fontStyle":"italic","fontWeight":"300","lineHeight":"1.1"}},"fontSize":"var(--wp--custom--typography--font-size--huge, clamp(2.25rem, 4vw, 2.75rem))","fontFamily":"source-serif-pro"} /-->
  12. <!-- wp:site-tagline {"fontSize":"small"} /-->
  13. <!-- wp:spacer {"height":32} -->
  14. <div style="height:32px" aria-hidden="true" class="wp-block-spacer"></div>
  15. <!-- /wp:spacer -->
  16. <!-- wp:separator {"color":"foreground","className":"is-style-wide"} -->
  17. <hr class="wp-block-separator has-text-color has-background has-foreground-background-color has-foreground-color is-style-wide"/>
  18. <!-- /wp:separator -->
  19. <!-- wp:spacer {"height":16} -->
  20. <div style="height:16px" aria-hidden="true" class="wp-block-spacer"></div>
  21. <!-- /wp:spacer -->
  22. <!-- wp:navigation {"orientation":"vertical"} -->
  23. <!-- wp:page-list /-->
  24. <!-- /wp:navigation -->
  25. <!-- wp:spacer {"height":16} -->
  26. <div style="height:16px" aria-hidden="true" class="wp-block-spacer"></div>
  27. <!-- /wp:spacer -->
  28. <!-- wp:separator {"color":"foreground","className":"is-style-wide"} -->
  29. <hr class="wp-block-separator has-text-color has-background has-foreground-background-color has-foreground-color is-style-wide"/>
  30. <!-- /wp:separator -->
  31. <!-- wp:spacer {"height":16} -->
  32. <div style="height:16px" aria-hidden="true" class="wp-block-spacer"></div>
  33. <!-- /wp:spacer -->
  34. <!-- wp:spacer {"height":16} -->
  35. <div style="height:16px" aria-hidden="true" class="wp-block-spacer"></div>
  36. <!-- /wp:spacer -->
  37. <!-- wp:site-logo {"width":60} /--></div>
  38. <!-- /wp:column -->
  39. <!-- wp:column {"width":"70%"} -->
  40. <div class="wp-block-column" style="flex-basis:70%"><!-- wp:query {"query":{"offset":0,"postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","sticky":"","inherit":false,"perPage":12},"displayLayout":{"type":"flex","columns":3},"layout":{"inherit":true}} -->
  41. <div class="wp-block-query"><!-- wp:post-template -->
  42. <!-- wp:post-featured-image {"isLink":true,"width":"100%","height":"200px"} /-->
  43. <!-- wp:group {"layout":{"type":"flex","justifyContent":"space-between"}} -->
  44. <div class="wp-block-group"><!-- wp:post-title {"isLink":true,"style":{"typography":{"fontStyle":"normal","fontWeight":"400"}},"fontSize":"small","fontFamily":"system-font"} /-->
  45. <!-- wp:post-date {"format":"m.d.y","style":{"typography":{"fontStyle":"italic","fontWeight":"400"}},"fontSize":"small"} /--></div>
  46. <!-- /wp:group -->
  47. <!-- /wp:post-template -->
  48. <!-- wp:separator {"className":"alignwide is-style-wide"} -->
  49. <hr class="wp-block-separator alignwide is-style-wide"/>
  50. <!-- /wp:separator -->
  51. <!-- wp:query-pagination {"paginationArrow":"arrow","align":"wide","layout":{"type":"flex","justifyContent":"space-between"}} -->
  52. <!-- wp:query-pagination-previous {"fontSize":"small"} /-->
  53. <!-- wp:query-pagination-numbers /-->
  54. <!-- wp:query-pagination-next {"fontSize":"small"} /-->
  55. <!-- /wp:query-pagination --></div>
  56. <!-- /wp:query --></div>
  57. <!-- /wp:column --></div>
  58. <!-- /wp:columns --></div>
  59. <!-- /wp:group -->',
  60. );