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 92
Add footer patterns #85
Merged
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
9de6fd9
Add header block patterns
kjellr f69b1fc
Remove empty paragraph block.
kjellr 7ccc96d
Register title nav social pattern.
kjellr dee270b
Add text-only header with stacked tagline.
kjellr e958956
Fix pattern slug.
kjellr 6963f75
Reorder patterns, add missing comma.
kjellr 65da3c1
Use preset color variables for the social links block.
kjellr b047708
Tidy up margin for stacked title/tagline patterns.
kjellr bcbdc32
Add additional patterns.
kjellr f2c40d6
Merge branch 'trunk' into add/header-block-patterns
kjellr 09965f5
Merge branch 'trunk' into add/header-block-patterns
kjellr b63766f
Fix PHPCS errors.
kjellr 7bd25ea
Merge branch 'add/header-block-patterns' of https://github.com/WordPr…
kjellr 060b0fa
Fix PHPCS errors.
kjellr d32c73a
Update all patterns to use a header tagName.
kjellr ec40e46
Use links instead of two page lists.
kjellr 62a610d
Add footer patterns.
kjellr 1812259
Fix names, content widths.
kjellr 5e9acde
Fix typo.
kjellr 473937b
Remove tagNames to avoid duplication.
kjellr 1368b49
Add missing pattern to array.
kjellr 1c2ded2
Add missing escape/translation functions.
kjellr 5d5a738
Merge branch 'add/header-block-patterns' into add/footer-block-patterns
kjellr 73b4914
Merge branch 'trunk' into add/footer-block-patterns
kjellr f64c52b
Merge branch 'trunk' into add/footer-block-patterns
kjellr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,32 @@ | ||
<?php | ||
/** | ||
* Footer with text, title, and logo | ||
*/ | ||
return array( | ||
'title' => __( 'Footer with text, title, and logo', 'twentytwentytwo' ), | ||
'categories' => array( 'twentytwentytwo-footers' ), | ||
'blockTypes' => array( 'core/template-part/footer' ), | ||
'content' => '<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"8rem","bottom":"6rem"}}},"backgroundColor":"secondary","layout":{"inherit":true}} --> | ||
<div class="wp-block-group alignfull has-secondary-background-color has-background" style="padding-top:8rem;padding-bottom:6rem"><!-- wp:columns {"align":"wide"} --> | ||
<div class="wp-block-columns alignwide"><!-- wp:column {"width":"33%"} --> | ||
<div class="wp-block-column" style="flex-basis:33%"><!-- wp:paragraph --> | ||
<p>' . esc_html__( 'ABOUT US', 'twentytwentytwo' ) . '</p> | ||
<!-- /wp:paragraph --> | ||
|
||
<!-- wp:paragraph {"style":{"fontSize":"small"} --> | ||
<p class="has-small-font-size">' . esc_html__( 'We are a rogue collective of bird watchers. We’ve been known to sneak through fences, climb perimeter walls, and generally trespass in order to observe the rarest of birds.', 'twentytwentytwo' ) . '</p> | ||
<!-- /wp:paragraph --> | ||
|
||
<!-- wp:spacer {"height":180} --> | ||
<div style="height:180px" aria-hidden="true" class="wp-block-spacer"></div> | ||
<!-- /wp:spacer --> | ||
|
||
<!-- wp:site-title /--></div> | ||
<!-- /wp:column --> | ||
|
||
<!-- wp:column {"verticalAlignment":"bottom"} --> | ||
<div class="wp-block-column is-vertically-aligned-bottom"><!-- wp:site-logo {"align":"right","width":60} /--></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,50 @@ | ||
<?php | ||
/** | ||
* Blog footer | ||
*/ | ||
return array( | ||
'title' => __( 'Blog footer', 'twentytwentytwo' ), | ||
'categories' => array( 'twentytwentytwo-footers' ), | ||
'blockTypes' => array( 'core/template-part/footer' ), | ||
'content' => '<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"8rem","bottom":"8rem"}}},"layout":{"wideSize":"1000px"}} --> | ||
<div class="wp-block-group alignfull" style="padding-top:8rem;padding-bottom:8rem"><!-- wp:columns --> | ||
<div class="wp-block-columns"><!-- wp:column --> | ||
<div class="wp-block-column"><!-- wp:paragraph --> | ||
<p>' . esc_html__( 'ABOUT US', 'twentytwentytwo' ) . '</p> | ||
<!-- /wp:paragraph --> | ||
|
||
<!-- wp:paragraph --> | ||
<p>' . esc_html__( 'We are a rogue collective of bird watchers. We’ve been known to sneak through fences, climb perimeter walls, and generally trespass in order to observe the rarest of birds.', 'twentytwentytwo' ) . '</p> | ||
<!-- /wp:paragraph --></div> | ||
<!-- /wp:column --> | ||
|
||
<!-- wp:column --> | ||
<div class="wp-block-column"><!-- wp:paragraph --> | ||
<p>' . esc_html__( 'LATEST POSTS', 'twentytwentytwo' ) . '</p> | ||
<!-- /wp:paragraph --> | ||
|
||
<!-- wp:latest-posts /--></div> | ||
<!-- /wp:column --> | ||
|
||
<!-- wp:column --> | ||
<div class="wp-block-column"><!-- wp:paragraph --> | ||
<p>' . esc_html__( 'CATEGORIES', 'twentytwentytwo' ) . '</p> | ||
<!-- /wp:paragraph --> | ||
|
||
<!-- wp:categories /--></div> | ||
<!-- /wp:column --></div> | ||
<!-- /wp:columns --> | ||
|
||
<!-- wp:spacer {"height":50} --> | ||
<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div> | ||
<!-- /wp:spacer --> | ||
|
||
<!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"top":"4rem","bottom":"4rem"}}},"layout":{"type":"flex","justifyContent":"space-between"}} --> | ||
<div class="wp-block-group alignwide" style="padding-top:4rem;padding-bottom:4rem"><!-- wp:site-title /--> | ||
|
||
<!-- wp:paragraph {"align":"right"} --> | ||
<p class="has-text-align-right">' . esc_html__( 'Proudly powered by ', 'twentytwentyone' ) . '<a href="' . esc_url( 'https://wordpress.org' ) . '" rel="nofollow">WordPress</a></p> | ||
<!-- /wp:paragraph --></div> | ||
<!-- /wp:group --></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,18 @@ | ||
<?php | ||
/** | ||
* Dark footer wtih title and citation | ||
*/ | ||
return array( | ||
'title' => __( 'Dark footer with title and citation)', 'twentytwentytwo' ), | ||
'categories' => array( 'twentytwentytwo-footers' ), | ||
'blockTypes' => array( 'core/template-part/footer' ), | ||
'content' => '<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"0px","right":"0px","bottom":"0px","left":"0px"}},"elements":{"link":{"color":{"text":"var:preset|color|background"}}}},"backgroundColor":"foreground","textColor":"background","layout":{"inherit":true}} --> | ||
<div class="wp-block-group alignfull has-background-color has-foreground-background-color has-text-color has-background has-link-color" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px"><!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"top":"4rem","bottom":"4rem"}}},"layout":{"type":"flex","justifyContent":"space-between"}} --> | ||
<div class="wp-block-group alignwide" style="padding-top:4rem;padding-bottom:4rem"><!-- wp:site-title /--> | ||
|
||
<!-- wp:paragraph {"align":"right"} --> | ||
<p class="has-text-align-right">' . esc_html__( 'Proudly powered by ', 'twentytwentytwo' ) . '<a href="' . esc_url( 'https://wordpress.org' ) . '" rel="nofollow">WordPress</a></p> | ||
<!-- /wp:paragraph --></div> | ||
<!-- /wp:group --></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,18 @@ | ||
<?php | ||
/** | ||
* Default footer | ||
*/ | ||
return array( | ||
'title' => __( 'Default footer', 'twentytwentytwo' ), | ||
'categories' => array( 'twentytwentytwo-footers' ), | ||
'blockTypes' => array( 'core/template-part/footer' ), | ||
'content' => '<!-- wp:group {"align":"full","layout":{"inherit":true}} --> | ||
<div class="wp-block-group alignfull"><!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"top":"4rem","bottom":"4rem"}}},"layout":{"type":"flex","justifyContent":"space-between"}} --> | ||
<div class="wp-block-group alignwide" style="padding-top:4rem;padding-bottom:4rem"><!-- wp:site-title /--> | ||
|
||
<!-- wp:paragraph {"align":"right"} --> | ||
<p class="has-text-align-right">' . esc_html__( 'Proudly powered by ', 'twentytwentytwo' ) . '<a href="' . esc_url( 'https://wordpress.org' ) . '" rel="nofollow">WordPress</a></p> | ||
<!-- /wp:paragraph --></div> | ||
<!-- /wp:group --></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,18 @@ | ||
<?php | ||
/** | ||
* Default footer with logo | ||
*/ | ||
return array( | ||
'title' => __( 'Footer with logo and citation', 'twentytwentytwo' ), | ||
'categories' => array( 'twentytwentytwo-footers' ), | ||
'blockTypes' => array( 'core/template-part/footer' ), | ||
'content' => '<!-- wp:group {"align":"full","layout":{"inherit":true}} --> | ||
<div class="wp-block-group alignfull"><!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"top":"4rem","bottom":"4rem"}}},"layout":{"type":"flex","justifyContent":"space-between"}} --> | ||
<div class="wp-block-group alignwide" style="padding-top:4rem;padding-bottom:4rem"><!-- wp:site-logo {"width":60} /--> | ||
|
||
<!-- wp:paragraph {"align":"right"} --> | ||
<p class="has-text-align-right">' . esc_html__( 'Proudly powered by ', 'twentytwentytwo' ) . '<a href="' . esc_url( 'https://wordpress.org' ) . '" rel="nofollow">WordPress</a></p> | ||
<!-- /wp:paragraph --></div> | ||
<!-- /wp:group --></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,22 @@ | ||
<?php | ||
/** | ||
* Footer with navigation and copyright | ||
*/ | ||
return array( | ||
'title' => __( 'Footer with navigation and copyright', 'twentytwentytwo' ), | ||
'categories' => array( 'twentytwentytwo-footers' ), | ||
'blockTypes' => array( 'core/template-part/footer' ), | ||
'content' => '<!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"top":"4rem","bottom":"4rem"}}}} --> | ||
<div class="wp-block-group alignwide" style="padding-top:4rem;padding-bottom:4rem"><!-- wp:navigation {"itemsJustification":"center"} --> | ||
<!-- wp:page-list {"isNavigationChild":true,"showSubmenuIcon":true,"openSubmenusOnClick":false} /--> | ||
<!-- /wp:navigation --> | ||
|
||
<!-- wp:spacer {"height":50} --> | ||
<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div> | ||
<!-- /wp:spacer --> | ||
|
||
<!-- wp:paragraph {"align":"center","style":{"typography":{"fontSize":"16px"}}} --> | ||
<p class="has-text-align-center" style="font-size:16px">' . esc_html__( '© Site Title', 'twentytwentytwo' ) . '</p> | ||
<!-- /wp:paragraph --></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,20 @@ | ||
<?php | ||
/** | ||
* Footer with navigation and citation | ||
*/ | ||
return array( | ||
'title' => __( 'Footer with navigation and citation', 'twentytwentytwo' ), | ||
'categories' => array( 'twentytwentytwo-footers' ), | ||
'blockTypes' => array( 'core/template-part/footer' ), | ||
'content' => '<!-- wp:group {"align":"full","layout":{"inherit":true}} --> | ||
<div class="wp-block-group alignfull"><!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"top":"4rem","bottom":"4rem"}}},"layout":{"type":"flex","justifyContent":"space-between"}} --> | ||
<div class="wp-block-group alignwide" style="padding-top:4rem;padding-bottom:4rem"><!-- wp:navigation --> | ||
<!-- wp:page-list {"isNavigationChild":true,"showSubmenuIcon":true,"openSubmenusOnClick":false} /--> | ||
<!-- /wp:navigation --> | ||
|
||
<!-- wp:paragraph {"align":"right"} --> | ||
<p class="has-text-align-right">' . esc_html__( 'Proudly powered by ', 'twentytwentytwo' ) . '<a href="' . esc_url( 'https://wordpress.org' ) . '" rel="nofollow">WordPress</a></p> | ||
<!-- /wp:paragraph --></div> | ||
<!-- /wp:group --></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,34 @@ | ||
<?php | ||
/** | ||
* Footer with query, featured images, title, and citation | ||
*/ | ||
return array( | ||
'title' => __( 'Footer with query, featured images, title, and citation', 'twentytwentytwo' ), | ||
'categories' => array( 'twentytwentytwo-footers' ), | ||
'blockTypes' => array( 'core/template-part/footer' ), | ||
'content' => '<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"4rem","bottom":"4rem"}},"elements":{"link":{"color":{"text":"var:preset|color|background"}}}},"backgroundColor":"foreground","textColor":"background","layout":{"inherit":true}} --> | ||
<div class="wp-block-group alignfull has-background-color has-foreground-background-color has-text-color has-background has-link-color" style="padding-top:4rem;padding-bottom:4rem"><!-- wp:query {"query":{"perPage":3,"pages":0,"offset":0,"postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"exclude","inherit":false},"displayLayout":{"type":"flex","columns":3},"align":"wide"} --> | ||
<div class="wp-block-query alignwide"><!-- wp:post-template --> | ||
<!-- wp:post-featured-image {"isLink":true,"width":"100%","height":"318px"} /--> | ||
|
||
<!-- wp:post-title {"isLink":true,"fontSize":"large"} /--> | ||
|
||
<!-- wp:post-excerpt /--> | ||
|
||
<!-- wp:post-date {"format":"F j, Y","isLink":true,"fontSize":"small"} /--> | ||
<!-- /wp:post-template --></div> | ||
<!-- /wp:query --> | ||
|
||
<!-- wp:spacer --> | ||
<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div> | ||
<!-- /wp:spacer --> | ||
|
||
<!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"top":"4rem","bottom":"4rem"}}},"layout":{"type":"flex","justifyContent":"space-between"}} --> | ||
<div class="wp-block-group alignwide" style="padding-top:4rem;padding-bottom:4rem"><!-- wp:site-title /--> | ||
|
||
<!-- wp:paragraph {"align":"right"} --> | ||
<p class="has-text-align-right">' . esc_html__( 'Proudly powered by ', 'twentytwentytwo' ) . '<a href="' . esc_url( 'https://wordpress.org' ) . '" rel="nofollow">WordPress</a></p> | ||
<!-- /wp:paragraph --></div> | ||
<!-- /wp:group --></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,32 @@ | ||
<?php | ||
/** | ||
* Footer with query, title, and citation | ||
*/ | ||
return array( | ||
'title' => __( 'Footer with query, title, and citation', 'twentytwentytwo' ), | ||
'categories' => array( 'twentytwentytwo-footers' ), | ||
'blockTypes' => array( 'core/template-part/footer' ), | ||
'content' => '<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"4rem","bottom":"4rem"}},"elements":{"link":{"color":{"text":"var:preset|color|background"}}}},"backgroundColor":"primary","textColor":"background","layout":{"inherit":true}} --> | ||
<div class="wp-block-group alignfull has-background-color has-primary-background-color has-text-color has-background has-link-color" style="padding-top:4rem;padding-bottom:4rem"><!-- wp:query {"query":{"perPage":3,"pages":0,"offset":0,"postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"exclude","inherit":false},"displayLayout":{"type":"flex","columns":3},"align":"wide"} --> | ||
<div class="wp-block-query alignwide"><!-- wp:post-template --> | ||
<!-- wp:post-title {"isLink":true,"fontSize":"large"} /--> | ||
|
||
<!-- wp:post-excerpt /--> | ||
|
||
<!-- wp:post-date /--> | ||
<!-- /wp:post-template --></div> | ||
<!-- /wp:query --> | ||
|
||
<!-- wp:spacer --> | ||
<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div> | ||
<!-- /wp:spacer --> | ||
|
||
<!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"top":"4rem","bottom":"4rem"}}},"layout":{"type":"flex","justifyContent":"space-between"}} --> | ||
<div class="wp-block-group alignwide" style="padding-top:4rem;padding-bottom:4rem"><!-- wp:site-title /--> | ||
|
||
<!-- wp:paragraph {"align":"right"} --> | ||
<p class="has-text-align-right">' . esc_html__( 'Proudly powered by ', 'twentytwentytwo' ) . '<a href="' . esc_url( 'https://wordpress.org' ) . '" rel="nofollow">WordPress</a></p> | ||
<!-- /wp:paragraph --></div> | ||
<!-- /wp:group --></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,26 @@ | ||
<?php | ||
/** | ||
* Footer with social links and copyright | ||
*/ | ||
return array( | ||
'title' => __( 'Footer with social links and copyright', 'twentytwentytwo' ), | ||
'categories' => array( 'twentytwentytwo-footers' ), | ||
'blockTypes' => array( 'core/template-part/footer' ), | ||
'content' => '<!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"top":"4rem","bottom":"4rem"}}}} --> | ||
<div class="wp-block-group alignwide" style="padding-top:4rem;padding-bottom:4rem"><!-- wp:social-links {"iconColor":"foreground","iconColorValue":"var(--wp--preset--color--foreground)","iconBackgroundColor":"background","iconBackgroundColorValue":"var(--wp--preset--color--background)","layout":{"type":"flex","justifyContent":"center"}} --> | ||
<ul class="wp-block-social-links has-icon-color has-icon-background-color"><!-- wp:social-link {"url":"#","service":"facebook"} /--> | ||
|
||
<!-- wp:social-link {"url":"#","service":"twitter"} /--> | ||
|
||
<!-- wp:social-link {"url":"#","service":"instagram"} /--></ul> | ||
<!-- /wp:social-links --> | ||
|
||
<!-- wp:spacer {"height":50} --> | ||
<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div> | ||
<!-- /wp:spacer --> | ||
|
||
<!-- wp:paragraph {"align":"center","style":{"typography":{"fontSize":"16px"}}} --> | ||
<p class="has-text-align-center" style="font-size:16px">' . esc_html__( '© Site Title', 'twentytwentytwo' ) . '</p> | ||
<!-- /wp:paragraph --></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,26 @@ | ||
<?php | ||
/** | ||
* Footer with title, tagline, and social links | ||
kjellr marked this conversation as resolved.
Show resolved
Hide resolved
|
||
*/ | ||
return array( | ||
'title' => __( 'Footer with title, tagline, and social links (Dark)', 'twentytwentytwo' ), | ||
'categories' => array( 'twentytwentytwo-footers' ), | ||
'blockTypes' => array( 'core/template-part/footer' ), | ||
'content' => '<!-- wp:group {"align":"full","style":{"elements":{"link":{"color":{"text":"var:preset|color|background"}}}},"backgroundColor":"foreground","textColor":"background","layout":{"inherit":true}} --> | ||
<div class="wp-block-group alignfull has-background-color has-foreground-background-color has-text-color has-background has-link-color"><!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"top":"4rem","bottom":"4rem"}}},"layout":{"type":"flex","justifyContent":"space-between"}} --> | ||
<div class="wp-block-group alignwide" style="padding-top:4rem;padding-bottom:4rem"><!-- wp:group --> | ||
<div class="wp-block-group"><!-- wp:site-title {"style":{"spacing":{"margin":{"top":"0px","bottom":"0px"}},"typography":{"textTransform":"uppercase"}}} /--> | ||
|
||
<!-- wp:site-tagline {"style":{"spacing":{"margin":{"top":"0.25em","bottom":"0px"}},"typography":{"fontStyle":"italic","fontWeight":"400"}},"fontSize":"small"} /--></div> | ||
<!-- /wp:group --> | ||
|
||
<!-- wp:social-links {"iconBackgroundColor":"foreground","iconBackgroundColorValue":"var(--wp--preset--color--foreground)","layout":{"type":"flex","justifyContent":"right"}} --> | ||
<ul class="wp-block-social-links has-icon-background-color"><!-- wp:social-link {"url":"#","service":"facebook"} /--> | ||
|
||
<!-- wp:social-link {"url":"#","service":"twitter"} /--> | ||
|
||
<!-- wp:social-link {"url":"#","service":"instagram"} /--></ul> | ||
<!-- /wp:social-links --></div> | ||
<!-- /wp:group --></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,26 @@ | ||
<?php | ||
/** | ||
* Footer with title, tagline, and social links | ||
*/ | ||
return array( | ||
'title' => __( 'Footer with title, tagline, and social links', 'twentytwentytwo' ), | ||
'categories' => array( 'twentytwentytwo-footers' ), | ||
'blockTypes' => array( 'core/template-part/footer' ), | ||
'content' => '<!-- wp:group {"align":"full","layout":{"inherit":true}} --> | ||
<div class="wp-block-group alignfull"><!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"top":"4rem","bottom":"4rem"}}},"layout":{"type":"flex","justifyContent":"space-between"}} --> | ||
<div class="wp-block-group alignwide" style="padding-top:4rem;padding-bottom:4rem"><!-- wp:group --> | ||
<div class="wp-block-group"><!-- wp:site-title {"style":{"spacing":{"margin":{"top":"0px","bottom":"0px"}},"typography":{"textTransform":"uppercase"}}} /--> | ||
|
||
<!-- wp:site-tagline {"style":{"spacing":{"margin":{"top":"0.25em","bottom":"0px"}},"typography":{"fontStyle":"italic","fontWeight":"400"}},"fontSize":"small"} /--></div> | ||
<!-- /wp:group --> | ||
|
||
<!-- wp:social-links {"iconColor":"foreground","iconColorValue":"var(--wp--preset--color--foreground)","iconBackgroundColor":"background","iconBackgroundColorValue":"var(--wp--preset--color--background)","layout":{"type":"flex","justifyContent":"right"}} --> | ||
<ul class="wp-block-social-links has-icon-color has-icon-background-color"><!-- wp:social-link {"url":"#","service":"facebook"} /--> | ||
|
||
<!-- wp:social-link {"url":"#","service":"twitter"} /--> | ||
|
||
<!-- wp:social-link {"url":"#","service":"instagram"} /--></ul> | ||
<!-- /wp:social-links --></div> | ||
<!-- /wp:group --></div> | ||
<!-- /wp:group -->', | ||
); |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can these labels be Sentence cased and then
"textTransform": uppercase;
d?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should leave them as is for a couple reasons:
For now, I think this is the simplest approach, and will make the most sense to users editing this one.