-
Notifications
You must be signed in to change notification settings - Fork 182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TT1 Blocks: Clean up for Theme Repo #149
Merged
Merged
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
a04b295
Add file header to functions.php
kjellr 4f408f3
Update subpackage.
kjellr dc3d8a1
Update version numbers.
kjellr 0679497
Add readme
kjellr 735accb
Add initial version of README
kjellr b01ed22
Update screenshot.png
kjellr 55deebb
Bump required version.
kjellr 582d892
Change version numbers.
kjellr e4e2875
Update screenshot.
kjellr ab48c37
Add Archive and Search templates.
kjellr cbaa3dc
Add archive title.
kjellr f4a0131
Move default query into its own template part.
kjellr b1609a5
Use excerpt in the shared query template.
kjellr 23d6238
Remove additional templates for now.
kjellr 25e61c1
Update tt1-blocks/readme.txt
carolinan 0f3cc9b
Merge branch 'master' into tt1/cleanup-for-release
kjellr d0cedb8
Fix textdomain.
kjellr e199b52
Remove exclude post id.
kjellr 5fc3744
Remove duplicate theme_support calls.
kjellr 0dbdb25
Remove header/footer that were added by mistake.
kjellr cf56fe9
Update the perPage setting in the query
carolinan d62854b
Update tt1-blocks/block-templates/index.html
carolinan 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<!-- wp:query {"queryId":1,"query":{"perPage":"","pages":"","offset":0,"postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","exclude":[2227],"sticky":"","inherit":true}} --> | ||
<!-- wp:query-loop --> | ||
<!-- wp:post-title {"isLink":true} /--> | ||
|
||
<!-- wp:post-content /--> | ||
|
||
<!-- wp:spacer {"height":70} --> | ||
<div style="height:70px" aria-hidden="true" class="wp-block-spacer"></div> | ||
<!-- /wp:spacer --> | ||
|
||
<!-- wp:separator {"align":"center","className":"is-style-twentytwentyone-separator-thick"} --> | ||
<hr class="wp-block-separator aligncenter is-style-twentytwentyone-separator-thick"/> | ||
<!-- /wp:separator --> | ||
|
||
<!-- wp:columns --> | ||
<div class="wp-block-columns"><!-- wp:column --> | ||
<div class="wp-block-column"><!-- wp:post-date /--> | ||
|
||
<!-- wp:post-author {"showAvatar":false} /--></div> | ||
<!-- /wp:column --> | ||
|
||
<!-- wp:column --> | ||
<div class="wp-block-column"><!-- wp:post-hierarchical-terms {"term":"category","textAlign":"right"} /--> | ||
|
||
<!-- wp:post-tags {"textAlign":"right"} /--></div> | ||
<!-- /wp:column --></div> | ||
<!-- /wp:columns --> | ||
|
||
<!-- wp:spacer {"height":70} --> | ||
<div style="height:70px" aria-hidden="true" class="wp-block-spacer"></div> | ||
<!-- /wp:spacer --> | ||
|
||
<!-- /wp:query-loop --> | ||
<!-- /wp:query --> |
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 |
---|---|---|
@@ -1,38 +1,5 @@ | ||
<!-- wp:template-part {"slug":"header","theme":"tt1-blocks","align":"full", "tagName":"header","className":"site-header"} /--> | ||
|
||
<!-- wp:query {"queryId":1,"query":{"offset":0,"postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","sticky":""}} --> | ||
<!-- wp:query-loop --> | ||
<!-- wp:post-title {"isLink":true} /--> | ||
|
||
<!-- wp:post-content /--> | ||
|
||
<!-- wp:spacer {"height":70} --> | ||
<div style="height:70px" aria-hidden="true" class="wp-block-spacer"></div> | ||
<!-- /wp:spacer --> | ||
|
||
<!-- wp:separator {"align":"center","className":"is-style-twentytwentyone-separator-thick"} --> | ||
<hr class="wp-block-separator aligncenter is-style-twentytwentyone-separator-thick"/> | ||
<!-- /wp:separator --> | ||
|
||
<!-- wp:columns --> | ||
<div class="wp-block-columns"><!-- wp:column --> | ||
<div class="wp-block-column"><!-- wp:post-date /--> | ||
|
||
<!-- wp:post-author {"showAvatar":false} /--></div> | ||
<!-- /wp:column --> | ||
|
||
<!-- wp:column --> | ||
<div class="wp-block-column"><!-- wp:post-hierarchical-terms {"term":"category","textAlign":"right"} /--> | ||
|
||
<!-- wp:post-tags {"textAlign":"right"} /--></div> | ||
<!-- /wp:column --></div> | ||
<!-- /wp:columns --> | ||
|
||
<!-- wp:spacer {"height":70} --> | ||
<div style="height:70px" aria-hidden="true" class="wp-block-spacer"></div> | ||
<!-- /wp:spacer --> | ||
|
||
<!-- /wp:query-loop --> | ||
<!-- /wp:query --> | ||
<!-- wp:template-part {"slug":"query","theme":"tt1-blocks","align":"full"} /--> | ||
|
||
<!-- wp:template-part {"slug":"footer","theme":"tt1-blocks","align":"full","tagName":"footer","className":"site-footer"} /--> |
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,10 @@ | ||
<?php | ||
/** | ||
* Unused file. | ||
* | ||
* This file is only present to pass the Theme Check. It's not used by the theme. | ||
*/ | ||
?> | ||
|
||
<?php wp_footer(); ?> | ||
</body> |
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,15 @@ | ||
<?php | ||
/** | ||
* Unused file. | ||
* | ||
* This file is only present to pass the Theme Check. It's not used by the theme. | ||
*/ | ||
?> | ||
<!doctype html> | ||
<html <?php language_attributes(); ?>> | ||
<head> | ||
<meta charset="<?php bloginfo( 'charset' ); ?>"> | ||
<?php wp_head(); ?> | ||
</head> | ||
<body <?php body_class(); ?>> | ||
<?php do_action( 'wp_body_open' ); ?> |
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
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.
did this creep in by mistake?
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.
No, I just added that. Previously, all content of the query block was showing up as standard width, even when it was wide/full. 😩 I noticed this when I moved the default query into its own template part, and had to do this to fix it.
Here's an example, where the Media & Text block is supposed to be wide width:
(I really can't wait until this alignments stuff "just works" 😞).