-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use patterns instead of template parts for author-bio (#210)
- Loading branch information
1 parent
5d81cc1
commit 147c315
Showing
5 changed files
with
81 additions
and
16 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 was deleted.
Oops, something went wrong.
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,37 @@ | ||
<?php | ||
/** | ||
* Title: Author Bio with Avatar | ||
* Slug: newspack-block-theme/author-bio-avatar | ||
* Categories: newspack-block-theme-author-bio | ||
* Viewport Width: 632 | ||
* Block Types: core/avatar, core/post-author-name, core/post-author-biography | ||
* | ||
* @package Newspack_Block_Theme | ||
*/ | ||
|
||
?> | ||
<!-- wp:group {"metadata":{"name":"<?php esc_html_e( 'Author Bio', 'newspack-block-theme' ); ?>"},"layout":{"type":"flex","orientation":"vertical","justifyContent":"stretch"}} --> | ||
<div class="wp-block-group"> | ||
|
||
<!-- wp:separator {"className":"is-style-wide"} --> | ||
<hr class="wp-block-separator has-alpha-channel-opacity is-style-wide"/> | ||
<!-- /wp:separator --> | ||
|
||
<!-- wp:group {"metadata":{"name":"<?php esc_html_e( 'Content', 'newspack-block-theme' ); ?>"},"style":{"spacing":{"blockGap":"var:preset|spacing|20"}},"layout":{"type":"constrained"}} --> | ||
<div class="wp-block-group"> | ||
|
||
<!-- wp:avatar {"size":128,"align":"right","style":{"spacing":{"margin":{"top":"0","bottom":"var:preset|spacing|20","right":"0","left":"var:preset|spacing|40"}}}} /--> | ||
|
||
<!-- wp:post-author-name {"style":{"elements":{"link":{"color":{"text":"var:preset|color|contrast"}}},"typography":{"fontStyle":"normal","fontWeight":"700"},"spacing":{"margin":{"top":"0","bottom":"0"}}},"textColor":"contrast","fontSize":"large"} /--> | ||
|
||
<!-- wp:post-author-biography /--> | ||
|
||
</div> | ||
<!-- /wp:group --> | ||
|
||
<!-- wp:separator {"className":"is-style-wide"} --> | ||
<hr class="wp-block-separator has-alpha-channel-opacity is-style-wide"/> | ||
<!-- /wp:separator --> | ||
|
||
</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,35 @@ | ||
<?php | ||
/** | ||
* Title: Author Bio | ||
* Slug: newspack-block-theme/author-bio | ||
* Categories: newspack-block-theme-author-bio | ||
* Viewport Width: 632 | ||
* Block Types: core/post-author-name, core/post-author-biography | ||
* | ||
* @package Newspack_Block_Theme | ||
*/ | ||
|
||
?> | ||
<!-- wp:group {"metadata":{"name":"<?php esc_html_e( 'Author Bio', 'newspack-block-theme' ); ?>"},"layout":{"type":"flex","orientation":"vertical","justifyContent":"stretch"}} --> | ||
<div class="wp-block-group"> | ||
|
||
<!-- wp:separator {"className":"is-style-wide"} --> | ||
<hr class="wp-block-separator has-alpha-channel-opacity is-style-wide"/> | ||
<!-- /wp:separator --> | ||
|
||
<!-- wp:group {"metadata":{"name":"<?php esc_html_e( 'Content', 'newspack-block-theme' ); ?>"},"style":{"spacing":{"blockGap":"var:preset|spacing|20"}},"layout":{"type":"constrained"}} --> | ||
<div class="wp-block-group"> | ||
|
||
<!-- wp:post-author-name {"style":{"elements":{"link":{"color":{"text":"var:preset|color|contrast"}}},"typography":{"fontStyle":"normal","fontWeight":"700"},"spacing":{"margin":{"top":"0","bottom":"0"}}},"textColor":"contrast","fontSize":"large"} /--> | ||
|
||
<!-- wp:post-author-biography /--> | ||
|
||
</div> | ||
<!-- /wp:group --> | ||
|
||
<!-- wp:separator {"className":"is-style-wide"} --> | ||
<hr class="wp-block-separator has-alpha-channel-opacity is-style-wide"/> | ||
<!-- /wp:separator --> | ||
|
||
</div> | ||
<!-- /wp:group --> |