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

get_header(); ?>

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

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

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

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

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

    <?php if ( gridflex_get_option('error_404_message') ) : ?>
    <p><?php echo wp_kses_post( force_balance_tags( gridflex_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?', 'gridflex' ); ?></p>
    <?php endif; ?>

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

</div>

</div>
</div>

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

<?php gridflex_404_widgets(); ?>

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

<?php get_footer(); ?>