-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path404.php
More file actions
executable file
·44 lines (35 loc) · 1.39 KB
/
404.php
File metadata and controls
executable file
·44 lines (35 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
/**
* The template for displaying 404 pages (not found).
*
* @link https://codex.wordpress.org/Creating_an_Error_404_Page
*
* @package shiro
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // File should never be accessed directly.
}
get_header();
$template_args = array(
'h2_title' => get_theme_mod( 'wmf_404_message', __( '404 Error', 'shiro-admin' ) ),
'h1_title' => get_theme_mod( 'wmf_404_title', __( 'Imagine a world in which there is a page here', 'shiro-admin' ) ),
);
$wmf_404_copy = get_theme_mod( 'wmf_404_copy' );
$wmf_404_search_text = get_theme_mod( 'wmf_404_search_text', __( 'What are you looking for?', 'shiro-admin' ) );
get_template_part( 'template-parts/header/page', '404', $template_args );
?>
<?php if ( $wmf_404_copy ) : ?>
<div class="page-intro mw-1360">
<div class="page-intro-text">
<?php echo wp_kses_post( wpautop( $wmf_404_copy ) ); ?>
</div>
</div>
<?php endif; ?>
<div class="search-container aligncenter">
<form role="search" method="get" class="search-form" action="<?php echo esc_url( home_url( '/' ) ); ?>">
<input class="search-input" type="search" placeholder="<?php echo esc_attr( $wmf_404_search_text ); ?>" value="<?php echo esc_attr( get_search_query() ); ?>" name="s">
<button class="btn btn-blue search-btn wp-element-button" type="submit"><?php echo esc_html( __( 'Search', 'shiro-admin' ) ); ?></button>
</form>
</div>
<?php
get_footer();