<?php
/**
* The template for displaying 404 pages (not found).
*
* @link https://codex.wordpress.org/Creating_an_Error_404_Page
*
* @package GridFeel WordPress Theme
* @copyright Copyright (C) 2025 ThemesDNA
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or later
* @author ThemesDNA <themesdna@gmail.com>
*/

get_header(); ?>

<div class='gridfeel-main-wrapper gridfeel-clearfix' id='gridfeel-main-wrapper' itemscope='itemscope' itemtype='http://schema.org/Blog' role='main'>
<div class='theiaStickySidebar'>
<div class="gridfeel-main-wrapper-inside gridfeel-clearfix">

<div class='gridfeel-posts-wrapper' id='gridfeel-posts-wrapper'>

<div class='gridfeel-posts gridfeel-box'>
<div class="gridfeel-box-inside">

<div class="gridfeel-page-header-outside">
<header class="gridfeel-page-header">
<div class="gridfeel-page-header-inside">
    <?php if ( gridfeel_get_option('error_404_heading') ) : ?>
    <h1 class="page-title"><?php echo esc_html( gridfeel_get_option('error_404_heading') ); ?></h1>
    <?php else : ?>
    <h1 class="page-title"><?php esc_html_e( 'Oops! That page can not be found.', 'gridfeel' ); ?></h1>
    <?php endif; ?>
</div>
</header><!-- .gridfeel-page-header -->
</div>

<div class='gridfeel-posts-content'>

    <?php if ( gridfeel_get_option('error_404_message') ) : ?>
    <p><?php echo wp_kses_post( force_balance_tags( gridfeel_get_option('error_404_message') ) ); ?></p>
    <?php else : ?>
    <p><?php esc_html_e( 'It looks like nothing was found at this location. Maybe try one of the links below or a search?', 'gridfeel' ); ?></p>
    <?php endif; ?>

    <?php if ( !(gridfeel_get_option('hide_404_search')) ) { ?><?php get_search_form(); ?><?php } ?>

</div>

</div>
</div>

</div><!--/#gridfeel-posts-wrapper -->

<?php gridfeel_404_widgets(); ?>

</div>
</div>
</div><!-- /#gridfeel-main-wrapper -->

<?php get_footer(); ?>