-
Notifications
You must be signed in to change notification settings - Fork 360
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Blockbase: make 404 into a php template so it can be translated (#4332)
* Make 404 and search translatable. * Remove heading from search template so the theme i18n ready.
- Loading branch information
Showing
11 changed files
with
47 additions
and
45 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
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.
Oops, something went wrong.
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
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 |
---|---|---|
|
@@ -198,6 +198,9 @@ | |
} | ||
} | ||
}, | ||
"layout": { | ||
"contentSize": "620px" | ||
}, | ||
"list": { | ||
"spacing": { | ||
"padding": { | ||
|
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
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 |
---|---|---|
|
@@ -250,6 +250,9 @@ | |
} | ||
} | ||
}, | ||
"layout": { | ||
"contentSize": "664px" | ||
}, | ||
"list": { | ||
"spacing": { | ||
"padding": { | ||
|