-
Notifications
You must be signed in to change notification settings - Fork 360
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
Blockbase: make 404 into a php template so it can be translated #4332
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
/** | ||
* The template for displaying 404 pages (not found) | ||
* | ||
* @package Blockbase | ||
* @since 1.1.1 | ||
*/ | ||
wp_head(); | ||
|
||
echo gutenberg_block_template_part( 'header' ); | ||
?> | ||
|
||
<main class="container-404"> | ||
<h1 class="has-text-align-center has-large-font-size"><?php _e( 'Oops! That page can’t be found.', 'blockbase' ); ?></h1> | ||
|
||
<p><?php _e( 'It looks like nothing was found at this location. Maybe try a search?', 'blockbase' ); ?></p> | ||
|
||
<?php echo do_blocks('<!-- wp:search {"label":""} /-->'); ?> | ||
</main> | ||
|
||
<?php | ||
echo gutenberg_block_template_part( 'footer' ); | ||
|
||
wp_footer(); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -198,6 +198,9 @@ | |
} | ||
} | ||
}, | ||
"layout": { | ||
"contentSize": "620px" | ||
}, | ||
"list": { | ||
"spacing": { | ||
"padding": { | ||
|
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,10 +3,6 @@ | |
<!-- wp:group {"layout":{"inherit":true}, "tagName":"main"} --> | ||
<main class="wp-block-group"> | ||
|
||
<!-- wp:heading --> | ||
<h2>Results:</h2> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we do the same for blockbase? That would make all 4 blockbase themes i11n-ready. |
||
<!-- /wp:heading --> | ||
|
||
<!-- wp:query {"queryId":1,"query":{"perPage":10,"pages":0,"offset":0,"postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true}} --> | ||
<!-- wp:query-loop --> | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -250,6 +250,9 @@ | |
} | ||
} | ||
}, | ||
"layout": { | ||
"contentSize": "664px" | ||
}, | ||
"list": { | ||
"spacing": { | ||
"padding": { | ||
|
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.
We should probably also look into making it so the layout key generates a CSS variable, because this is redundant.
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.
Couldn't find anything so opened this: WordPress/gutenberg#33705