This repository has been archived by the owner on Jan 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add sidebar patterns * Remove unnecessary image. * Remove unnecessary Query ID * Change "sidebar-right" to be on the left.
- Loading branch information
Showing
3 changed files
with
158 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
<?php | ||
/** | ||
* Blog posts with left sidebar block pattern | ||
*/ | ||
return array( | ||
'title' => __( 'Blog posts with left sidebar', 'twentytwentytwo' ), | ||
'categories' => array( 'twentytwentytwo-pages' ), | ||
'content' => '<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"max(1.25rem, 5vw)","right":"max(1.25rem, 5vw)","bottom":"max(1.25rem, 5vw)","left":"max(1.25rem, 5vw)"}}},"layout":{"inherit":true}} --> | ||
<div class="wp-block-group alignfull" style="padding-top:max(1.25rem, 5vw);padding-right:max(1.25rem, 5vw);padding-bottom:max(1.25rem, 5vw);padding-left:max(1.25rem, 5vw)"><!-- wp:columns {"align":"wide","style":{"spacing":{"margin":{"top":"0px","bottom":"0px"},"blockGap":"5%"},"elements":{"link":{"color":{"text":"var:preset|color|primary"}}}},"textColor":"primary"} --> | ||
<div class="wp-block-columns alignwide has-primary-color has-text-color has-link-color" style="margin-top:0px;margin-bottom:0px"><!-- wp:column {"width":"33.33%"} --> | ||
<div class="wp-block-column" style="flex-basis:33.33%"><!-- wp:cover {"overlayColor":"secondary","minHeight":400,"isDark":false} --> | ||
<div class="wp-block-cover is-light" style="min-height:400px"><span aria-hidden="true" class="has-secondary-background-color has-background-dim-100 wp-block-cover__gradient-background has-background-dim"></span><div class="wp-block-cover__inner-container"><!-- wp:site-logo {"align":"center","width":60} /--></div></div> | ||
<!-- /wp:cover --> | ||
<!-- wp:spacer {"height":40} --> | ||
<div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div> | ||
<!-- /wp:spacer --> | ||
<!-- wp:site-tagline {"fontSize":"small"} /--> | ||
<!-- wp:spacer {"height":32} --> | ||
<div style="height:32px" aria-hidden="true" class="wp-block-spacer"></div> | ||
<!-- /wp:spacer --> | ||
<!-- wp:separator {"color":"foreground","className":"is-style-wide"} --> | ||
<hr class="wp-block-separator has-text-color has-background has-foreground-background-color has-foreground-color is-style-wide"/> | ||
<!-- /wp:separator --> | ||
<!-- wp:spacer {"height":32} --> | ||
<div style="height:32px" aria-hidden="true" class="wp-block-spacer"></div> | ||
<!-- /wp:spacer --> | ||
<!-- wp:navigation {"orientation":"vertical"} --> | ||
<!-- wp:page-list /--> | ||
<!-- /wp:navigation --> | ||
<!-- wp:spacer {"height":32} --> | ||
<div style="height:32px" aria-hidden="true" class="wp-block-spacer"></div> | ||
<!-- /wp:spacer --> | ||
<!-- wp:separator {"color":"foreground","className":"is-style-wide"} --> | ||
<hr class="wp-block-separator has-text-color has-background has-foreground-background-color has-foreground-color is-style-wide"/> | ||
<!-- /wp:separator --></div> | ||
<!-- /wp:column --> | ||
<!-- wp:column {"width":"66.66%"} --> | ||
<div class="wp-block-column" style="flex-basis:66.66%"><!-- wp:query {"query":{"perPage":"5","pages":0,"offset":0,"postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false},"layout":{"inherit":true}} --> | ||
<div class="wp-block-query"><!-- wp:post-template --> | ||
<!-- wp:post-title {"isLink":true,"style":{"spacing":{"margin":{"top":"0","bottom":"1rem"}},"typography":{"fontStyle":"normal","fontWeight":"300"},"elements":{"link":{"color":{"text":"var:preset|color|primary"}}}},"textColor":"primary","fontSize":"huge"} /--> | ||
<!-- wp:post-featured-image {"isLink":true} /--> | ||
<!-- wp:post-excerpt /--> | ||
<!-- wp:group {"layout":{"type":"flex"}} --> | ||
<div class="wp-block-group"><!-- wp:post-date {"format":"F j, Y","style":{"typography":{"fontStyle":"normal","fontWeight":"400"}},"fontSize":"small"} /--> | ||
<!-- wp:post-terms {"term":"category","fontSize":"small"} /--> | ||
<!-- wp:post-terms {"term":"post_tag","fontSize":"small"} /--></div> | ||
<!-- /wp:group --> | ||
<!-- wp:spacer {"height":128} --> | ||
<div style="height:128px" aria-hidden="true" class="wp-block-spacer"></div> | ||
<!-- /wp:spacer --> | ||
<!-- /wp:post-template --> | ||
<!-- wp:query-pagination {"paginationArrow":"arrow","align":"wide","layout":{"type":"flex","justifyContent":"space-between"}} --> | ||
<!-- wp:query-pagination-previous {"fontSize":"small"} /--> | ||
<!-- wp:query-pagination-numbers /--> | ||
<!-- wp:query-pagination-next {"fontSize":"small"} /--> | ||
<!-- /wp:query-pagination --></div> | ||
<!-- /wp:query --></div> | ||
<!-- /wp:column --></div> | ||
<!-- /wp:columns --></div> | ||
<!-- /wp:group -->', | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
<?php | ||
/** | ||
* Grid of posts with left sidebar block pattern | ||
*/ | ||
return array( | ||
'title' => __( 'Grid of posts with left sidebar', 'twentytwentytwo' ), | ||
'categories' => array( 'twentytwentytwo-pages' ), | ||
'content' => '<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"max(1.25rem, 5vw)","right":"max(1.25rem, 5vw)","bottom":"max(1.25rem, 5vw)","left":"max(1.25rem, 5vw)"}}},"layout":{"inherit":true}} --> | ||
<div class="wp-block-group alignfull" style="padding-top:max(1.25rem, 5vw);padding-right:max(1.25rem, 5vw);padding-bottom:max(1.25rem, 5vw);padding-left:max(1.25rem, 5vw)"><!-- wp:columns {"align":"wide","style":{"spacing":{"margin":{"top":"0px","bottom":"0px"}}}} --> | ||
<div class="wp-block-columns alignwide" style="margin-top:0px;margin-bottom:0px"><!-- wp:column {"width":"30%"} --> | ||
<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":"huge","fontFamily":"source-serif-pro"} /--> | ||
<!-- wp:site-tagline {"fontSize":"small"} /--> | ||
<!-- wp:spacer {"height":32} --> | ||
<div style="height:32px" aria-hidden="true" class="wp-block-spacer"></div> | ||
<!-- /wp:spacer --> | ||
<!-- wp:separator {"color":"foreground","className":"is-style-wide"} --> | ||
<hr class="wp-block-separator has-text-color has-background has-foreground-background-color has-foreground-color is-style-wide"/> | ||
<!-- /wp:separator --> | ||
<!-- wp:spacer {"height":16} --> | ||
<div style="height:16px" aria-hidden="true" class="wp-block-spacer"></div> | ||
<!-- /wp:spacer --> | ||
<!-- wp:navigation {"orientation":"vertical"} --> | ||
<!-- wp:page-list /--> | ||
<!-- /wp:navigation --> | ||
<!-- wp:spacer {"height":16} --> | ||
<div style="height:16px" aria-hidden="true" class="wp-block-spacer"></div> | ||
<!-- /wp:spacer --> | ||
<!-- wp:separator {"color":"foreground","className":"is-style-wide"} --> | ||
<hr class="wp-block-separator has-text-color has-background has-foreground-background-color has-foreground-color is-style-wide"/> | ||
<!-- /wp:separator --> | ||
<!-- wp:spacer {"height":16} --> | ||
<div style="height:16px" aria-hidden="true" class="wp-block-spacer"></div> | ||
<!-- /wp:spacer --> | ||
<!-- wp:spacer {"height":16} --> | ||
<div style="height:16px" aria-hidden="true" class="wp-block-spacer"></div> | ||
<!-- /wp:spacer --> | ||
<!-- wp:site-logo {"width":60} /--></div> | ||
<!-- /wp:column --> | ||
<!-- wp:column {"width":"70%"} --> | ||
<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}} --> | ||
<div class="wp-block-query"><!-- wp:post-template --> | ||
<!-- wp:post-featured-image {"isLink":true,"width":"100%","height":"200px"} /--> | ||
<!-- wp:group {"layout":{"type":"flex","justifyContent":"space-between"}} --> | ||
<div class="wp-block-group"><!-- wp:post-title {"isLink":true,"style":{"typography":{"fontStyle":"normal","fontWeight":"400"}},"fontSize":"small","fontFamily":"system-font"} /--> | ||
<!-- wp:post-date {"format":"m.d.y","style":{"typography":{"fontStyle":"italic","fontWeight":"400"}},"fontSize":"small"} /--></div> | ||
<!-- /wp:group --> | ||
<!-- /wp:post-template --> | ||
<!-- wp:separator {"className":"alignwide is-style-wide"} --> | ||
<hr class="wp-block-separator alignwide is-style-wide"/> | ||
<!-- /wp:separator --> | ||
<!-- wp:query-pagination {"paginationArrow":"arrow","align":"wide","layout":{"type":"flex","justifyContent":"space-between"}} --> | ||
<!-- wp:query-pagination-previous {"fontSize":"small"} /--> | ||
<!-- wp:query-pagination-numbers /--> | ||
<!-- wp:query-pagination-next {"fontSize":"small"} /--> | ||
<!-- /wp:query-pagination --></div> | ||
<!-- /wp:query --></div> | ||
<!-- /wp:column --></div> | ||
<!-- /wp:columns --></div> | ||
<!-- /wp:group -->', | ||
); |