Açıklama Yok

page-sidebar-blog-posts-right.php 5.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <?php
  2. /**
  3. * Blog posts with right sidebar block pattern
  4. */
  5. return array(
  6. 'title' => __( 'Blog posts with right 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:group {"align":"wide","style":{"spacing":{"padding":{"bottom":"2rem","top":"0px","right":"0px","left":"0px"}}},"layout":{"type":"flex","justifyContent":"space-between"}} -->
  10. <div class="wp-block-group alignwide" style="padding-top:0px;padding-right:0px;padding-bottom:2rem;padding-left:0px"><!-- wp:group {"layout":{"type":"flex"}} -->
  11. <div class="wp-block-group"><!-- wp:site-logo {"width":64} /--></div>
  12. <!-- /wp:group -->
  13. <!-- wp:navigation {"layout":{"type":"flex","setCascadingProperties":true,"justifyContent":"right"}} -->
  14. <!-- wp:page-list /-->
  15. <!-- /wp:navigation --></div>
  16. <!-- /wp:group -->
  17. <!-- wp:spacer {"height":64} -->
  18. <div style="height:64px" aria-hidden="true" class="wp-block-spacer"></div>
  19. <!-- /wp:spacer -->
  20. <!-- wp:columns {"align":"wide","style":{"spacing":{"margin":{"top":"0px","bottom":"0px"},"blockGap":"5%"},"elements":{"link":{"color":{"text":"var:preset|color|foreground"}}}},"textColor":"foreground"} -->
  21. <div class="wp-block-columns alignwide has-foreground-color has-text-color has-link-color" style="margin-top:0px;margin-bottom:0px"><!-- wp:column {"width":"66.66%","style":{"spacing":{"padding":{"bottom":"6rem"}}}} -->
  22. <div class="wp-block-column" style="padding-bottom:6rem;flex-basis:66.66%"><!-- wp:query {"queryId":9,"query":{"perPage":"5","pages":0,"offset":0,"postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false},"displayLayout":{"type":"list"},"layout":{"inherit":true}} -->
  23. <div class="wp-block-query"><!-- wp:post-template -->
  24. <!-- wp:post-title {"isLink":true,"style":{"spacing":{"margin":{"top":"0","bottom":"1rem"}},"typography":{"fontStyle":"normal","fontWeight":"300"},"elements":{"link":{"color":{"text":"var:preset|color|foreground"}}}},"textColor":"foreground","fontSize":"var(--wp--custom--typography--font-size--huge, clamp(2.25rem, 4vw, 2.75rem))"} /-->
  25. <!-- wp:post-featured-image {"isLink":true} /-->
  26. <!-- wp:post-excerpt /-->
  27. <!-- wp:group {"layout":{"type":"flex"}} -->
  28. <div class="wp-block-group"><!-- wp:post-date {"format":"F j, Y","style":{"typography":{"fontStyle":"normal","fontWeight":"400"}},"fontSize":"small"} /-->
  29. <!-- wp:post-terms {"term":"category","fontSize":"small"} /-->
  30. <!-- wp:post-terms {"term":"post_tag","fontSize":"small"} /--></div>
  31. <!-- /wp:group -->
  32. <!-- wp:spacer {"height":64} -->
  33. <div style="height:64px" aria-hidden="true" class="wp-block-spacer"></div>
  34. <!-- /wp:spacer -->
  35. <!-- /wp:post-template -->
  36. <!-- wp:query-pagination {"paginationArrow":"arrow","align":"wide","layout":{"type":"flex","justifyContent":"space-between"}} -->
  37. <!-- wp:query-pagination-previous {"fontSize":"small"} /-->
  38. <!-- wp:query-pagination-numbers /-->
  39. <!-- wp:query-pagination-next {"fontSize":"small"} /-->
  40. <!-- /wp:query-pagination --></div>
  41. <!-- /wp:query --></div>
  42. <!-- /wp:column -->
  43. <!-- wp:column {"width":"33.33%"} -->
  44. <div class="wp-block-column" style="flex-basis:33.33%"><!-- wp:image {"sizeSlug":"large","linkDestination":"none"} -->
  45. <figure class="wp-block-image size-large"><img src="' . esc_url( get_template_directory_uri() ) . '/assets/images/flight-path-on-salmon.jpg" alt="' . esc_attr__( 'Illustration of a flying bird.', 'twentytwentytwo' ) . '"/></figure>
  46. <!-- /wp:image -->
  47. <!-- wp:spacer {"height":4} -->
  48. <div style="height:4px" aria-hidden="true" class="wp-block-spacer"></div>
  49. <!-- /wp:spacer -->
  50. <!-- wp:site-title {"isLink":false,"style":{"typography":{"fontStyle":"normal","fontWeight":"300","lineHeight":"1.2"}},"fontSize":"large","fontFamily":"source-serif-pro"} /-->
  51. <!-- wp:site-tagline /-->
  52. <!-- wp:spacer {"height":16} -->
  53. <div style="height:16px" aria-hidden="true" class="wp-block-spacer"></div>
  54. <!-- /wp:spacer -->
  55. <!-- wp:heading {"level":4,"fontSize":"large"} -->
  56. <h4 class="has-large-font-size"><em>' . esc_html__( 'Categories', 'twentytwentytwo' ) . '</em></h4>
  57. <!-- /wp:heading -->
  58. <!-- wp:tag-cloud {"taxonomy":"category","showTagCounts":true} /-->
  59. <!-- wp:heading {"level":4,"fontSize":"large"} -->
  60. <h4 class="has-large-font-size"><em>' . esc_html__( 'Tags', 'twentytwentytwo' ) . '</em></h4>
  61. <!-- /wp:heading -->
  62. <!-- wp:tag-cloud {"showTagCounts":true} /--></div>
  63. <!-- /wp:column --></div>
  64. <!-- /wp:columns --></div>
  65. <!-- /wp:group -->',
  66. );