37 lines
1.3 KiB
PHP
Executable File
37 lines
1.3 KiB
PHP
Executable File
<?php
|
|
/**
|
|
* Template part for displaying 404 page.
|
|
*
|
|
* @link https://codex.wordpress.org/Template_Hierarchy
|
|
*
|
|
* @package Hester
|
|
* @author Peregrine Themes
|
|
* @since 1.0.0
|
|
*/
|
|
|
|
?>
|
|
|
|
<section class="error-404 not-found">
|
|
|
|
<?php do_action( 'hester_before_404_content' ); ?>
|
|
|
|
<header class="page-header">
|
|
<h1 class="page-title"><?php echo wp_kses( __( '404', 'hester' ), hester_get_allowed_html_tags() ); ?></h1>
|
|
<p class="h2"><?php echo wp_kses( __( 'Oops! Page not found.', 'hester' ), hester_get_allowed_html_tags() ); ?></p>
|
|
</header><!-- .page-header -->
|
|
|
|
<div class="page-content hester-entry">
|
|
<p><?php echo wp_kses( __( 'We couldn’t find the page you are looking for. Perhaps you can try searching:', 'hester' ), hester_get_allowed_html_tags() ); ?></p>
|
|
|
|
<?php get_search_form(); ?>
|
|
|
|
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" class="hester-btn btn-left-icon btn-reveal" role="button">
|
|
<span><?php esc_html_e( 'Return to Home', 'hester' ); ?></span>
|
|
<?php echo hester()->icons->get_svg( 'arrow-left', array( 'aria-hidden' => 'true' ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
|
|
</a>
|
|
</div><!-- .page-content -->
|
|
|
|
<?php do_action( 'hester_after_404_content' ); ?>
|
|
|
|
</section><!-- .error-404 -->
|