diff options
Diffstat (limited to 'wp-includes/block-patterns')
7 files changed, 190 insertions, 0 deletions
diff --git a/wp-includes/block-patterns/query-grid-posts.php b/wp-includes/block-patterns/query-grid-posts.php new file mode 100644 index 0000000..27a0b1d --- /dev/null +++ b/wp-includes/block-patterns/query-grid-posts.php @@ -0,0 +1,23 @@ +<?php +/** + * Query: Grid. + * + * @package WordPress + */ + +return array( + 'title' => _x( 'Grid', 'Block pattern title' ), + 'blockTypes' => array( 'core/query' ), + 'categories' => array( 'query' ), + 'content' => '<!-- wp:query {"query":{"perPage":6,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"exclude","inherit":false},"displayLayout":{"type":"flex","columns":3}} --> + <div class="wp-block-query"> + <!-- wp:post-template --> + <!-- wp:group {"style":{"spacing":{"padding":{"top":"30px","right":"30px","bottom":"30px","left":"30px"}}},"layout":{"inherit":false}} --> + <div class="wp-block-group" style="padding-top:30px;padding-right:30px;padding-bottom:30px;padding-left:30px"><!-- wp:post-title {"isLink":true} /--> + <!-- wp:post-excerpt /--> + <!-- wp:post-date /--></div> + <!-- /wp:group --> + <!-- /wp:post-template --> + </div> + <!-- /wp:query -->', +); diff --git a/wp-includes/block-patterns/query-large-title-posts.php b/wp-includes/block-patterns/query-large-title-posts.php new file mode 100644 index 0000000..0adf63a --- /dev/null +++ b/wp-includes/block-patterns/query-large-title-posts.php @@ -0,0 +1,31 @@ +<?php +/** + * Query: Large title. + * + * @package WordPress + */ + +return array( + 'title' => _x( 'Large title', 'Block pattern title' ), + 'blockTypes' => array( 'core/query' ), + 'categories' => array( 'query' ), + 'content' => '<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"100px","right":"100px","bottom":"100px","left":"100px"}},"color":{"text":"#ffffff","background":"#000000"}}} --> + <div class="wp-block-group alignfull has-text-color has-background" style="background-color:#000000;color:#ffffff;padding-top:100px;padding-right:100px;padding-bottom:100px;padding-left:100px"><!-- wp:query {"query":{"perPage":3,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false}} --> + <div class="wp-block-query"><!-- wp:post-template --> + <!-- wp:separator {"customColor":"#ffffff","align":"wide","className":"is-style-wide"} --> + <hr class="wp-block-separator alignwide has-text-color has-background is-style-wide" style="background-color:#ffffff;color:#ffffff"/> + <!-- /wp:separator --> + + <!-- wp:columns {"verticalAlignment":"center","align":"wide"} --> + <div class="wp-block-columns alignwide are-vertically-aligned-center"><!-- wp:column {"verticalAlignment":"center","width":"20%"} --> + <div class="wp-block-column is-vertically-aligned-center" style="flex-basis:20%"><!-- wp:post-date {"style":{"color":{"text":"#ffffff"}},"fontSize":"extra-small"} /--></div> + <!-- /wp:column --> + + <!-- wp:column {"verticalAlignment":"center","width":"80%"} --> + <div class="wp-block-column is-vertically-aligned-center" style="flex-basis:80%"><!-- wp:post-title {"isLink":true,"style":{"typography":{"fontSize":"72px","lineHeight":"1.1"},"color":{"text":"#ffffff","link":"#ffffff"}}} /--></div> + <!-- /wp:column --></div> + <!-- /wp:columns --> + <!-- /wp:post-template --></div> + <!-- /wp:query --></div> + <!-- /wp:group -->', +); diff --git a/wp-includes/block-patterns/query-medium-posts.php b/wp-includes/block-patterns/query-medium-posts.php new file mode 100644 index 0000000..125ffd3 --- /dev/null +++ b/wp-includes/block-patterns/query-medium-posts.php @@ -0,0 +1,27 @@ +<?php +/** + * Query: Image at left. + * + * @package WordPress + */ + +return array( + 'title' => _x( 'Image at left', 'Block pattern title' ), + 'blockTypes' => array( 'core/query' ), + 'categories' => array( 'query' ), + 'content' => '<!-- wp:query {"query":{"perPage":3,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false}} --> + <div class="wp-block-query"> + <!-- wp:post-template --> + <!-- wp:columns {"align":"wide"} --> + <div class="wp-block-columns alignwide"><!-- wp:column {"width":"66.66%"} --> + <div class="wp-block-column" style="flex-basis:66.66%"><!-- wp:post-featured-image {"isLink":true} /--></div> + <!-- /wp:column --> + <!-- wp:column {"width":"33.33%"} --> + <div class="wp-block-column" style="flex-basis:33.33%"><!-- wp:post-title {"isLink":true} /--> + <!-- wp:post-excerpt /--></div> + <!-- /wp:column --></div> + <!-- /wp:columns --> + <!-- /wp:post-template --> + </div> + <!-- /wp:query -->', +); diff --git a/wp-includes/block-patterns/query-offset-posts.php b/wp-includes/block-patterns/query-offset-posts.php new file mode 100644 index 0000000..139a4cb --- /dev/null +++ b/wp-includes/block-patterns/query-offset-posts.php @@ -0,0 +1,40 @@ +<?php +/** + * Query: Offset. + * + * @package WordPress + */ + +return array( + 'title' => _x( 'Offset', 'Block pattern title' ), + 'blockTypes' => array( 'core/query' ), + 'categories' => array( 'query' ), + 'content' => '<!-- wp:group {"style":{"spacing":{"padding":{"top":"30px","right":"30px","bottom":"30px","left":"30px"}}},"layout":{"inherit":false}} --> + <div class="wp-block-group" style="padding-top:30px;padding-right:30px;padding-bottom:30px;padding-left:30px"><!-- wp:columns --> + <div class="wp-block-columns"><!-- wp:column {"width":"50%"} --> + <div class="wp-block-column" style="flex-basis:50%"><!-- wp:query {"query":{"perPage":2,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"exclude","inherit":false},"displayLayout":{"type":"list"}} --> + <div class="wp-block-query"><!-- wp:post-template --> + <!-- wp:post-featured-image /--> + <!-- wp:post-title /--> + <!-- wp:post-date /--> + <!-- wp:spacer {"height":200} --> + <div style="height:200px" aria-hidden="true" class="wp-block-spacer"></div> + <!-- /wp:spacer --> + <!-- /wp:post-template --></div> + <!-- /wp:query --></div> + <!-- /wp:column --> + <!-- wp:column {"width":"50%"} --> + <div class="wp-block-column" style="flex-basis:50%"><!-- wp:query {"query":{"perPage":2,"pages":0,"offset":2,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"exclude","inherit":false},"displayLayout":{"type":"list"}} --> + <div class="wp-block-query"><!-- wp:post-template --> + <!-- wp:spacer {"height":200} --> + <div style="height:200px" aria-hidden="true" class="wp-block-spacer"></div> + <!-- /wp:spacer --> + <!-- wp:post-featured-image /--> + <!-- wp:post-title /--> + <!-- wp:post-date /--> + <!-- /wp:post-template --></div> + <!-- /wp:query --></div> + <!-- /wp:column --></div> + <!-- /wp:columns --></div> + <!-- /wp:group -->', +); diff --git a/wp-includes/block-patterns/query-small-posts.php b/wp-includes/block-patterns/query-small-posts.php new file mode 100644 index 0000000..66d57fc --- /dev/null +++ b/wp-includes/block-patterns/query-small-posts.php @@ -0,0 +1,26 @@ +<?php +/** + * Query: Small image and title. + * + * @package WordPress + */ + +return array( + 'title' => _x( 'Small image and title', 'Block pattern title' ), + 'blockTypes' => array( 'core/query' ), + 'categories' => array( 'query' ), + 'content' => '<!-- wp:query {"query":{"perPage":3,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false}} --> + <div class="wp-block-query"> + <!-- wp:post-template --> + <!-- wp:columns {"verticalAlignment":"center"} --> + <div class="wp-block-columns are-vertically-aligned-center"><!-- wp:column {"verticalAlignment":"center","width":"25%"} --> + <div class="wp-block-column is-vertically-aligned-center" style="flex-basis:25%"><!-- wp:post-featured-image {"isLink":true} /--></div> + <!-- /wp:column --> + <!-- wp:column {"verticalAlignment":"center","width":"75%"} --> + <div class="wp-block-column is-vertically-aligned-center" style="flex-basis:75%"><!-- wp:post-title {"isLink":true} /--></div> + <!-- /wp:column --></div> + <!-- /wp:columns --> + <!-- /wp:post-template --> + </div> + <!-- /wp:query -->', +); diff --git a/wp-includes/block-patterns/query-standard-posts.php b/wp-includes/block-patterns/query-standard-posts.php new file mode 100644 index 0000000..c6fde30 --- /dev/null +++ b/wp-includes/block-patterns/query-standard-posts.php @@ -0,0 +1,25 @@ +<?php +/** + * Query: Standard. + * + * @package WordPress + */ + +return array( + 'title' => _x( 'Standard', 'Block pattern title' ), + 'blockTypes' => array( 'core/query' ), + 'categories' => array( 'query' ), + 'content' => '<!-- wp:query {"query":{"perPage":3,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false}} --> + <div class="wp-block-query"> + <!-- wp:post-template --> + <!-- wp:post-title {"isLink":true} /--> + <!-- wp:post-featured-image {"isLink":true,"align":"wide"} /--> + <!-- wp:post-excerpt /--> + <!-- wp:separator --> + <hr class="wp-block-separator"/> + <!-- /wp:separator --> + <!-- wp:post-date /--> + <!-- /wp:post-template --> + </div> + <!-- /wp:query -->', +); diff --git a/wp-includes/block-patterns/social-links-shared-background-color.php b/wp-includes/block-patterns/social-links-shared-background-color.php new file mode 100644 index 0000000..2ed1607 --- /dev/null +++ b/wp-includes/block-patterns/social-links-shared-background-color.php @@ -0,0 +1,18 @@ +<?php +/** + * Social links with a shared background color. + * + * @package WordPress + */ + +return array( + 'title' => _x( 'Social links with a shared background color', 'Block pattern title' ), + 'categories' => array( 'buttons' ), + 'blockTypes' => array( 'core/social-links' ), + 'viewportWidth' => 500, + 'content' => '<!-- wp:social-links {"customIconColor":"#ffffff","iconColorValue":"#ffffff","customIconBackgroundColor":"#3962e3","iconBackgroundColorValue":"#3962e3","className":"has-icon-color"} --> + <ul class="wp-block-social-links has-icon-color has-icon-background-color"><!-- wp:social-link {"url":"https://wordpress.org","service":"wordpress"} /--> + <!-- wp:social-link {"url":"#","service":"chain"} /--> + <!-- wp:social-link {"url":"#","service":"mail"} /--></ul> + <!-- /wp:social-links -->', +); |