<?php
/**
 * The template for displaying 404 pages (Not Found).
 *
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

get_header(); ?>

	<div id="primary" <?php saraswati_content_class(); ?>>
		<main id="main" <?php saraswati_main_class(); ?>>
			<?php
			/**
			 * saraswati_before_main_content hook.
			 *
			 */
			do_action( 'saraswati_before_main_content' );
			?>

			<div class="inside-article">

				<?php
				/**
				 * saraswati_before_content hook.
				 *
				 *
				 * @hooked saraswati_featured_page_header_inside_single - 10
				 */
				do_action( 'saraswati_before_content' );
				?>

				<header class="entry-header">
					<h1 class="entry-title" itemprop="headline"><?php echo apply_filters( 'saraswati_404_title', __( 'Oops! That page can&rsquo;t be found.', 'saraswati' ) ); // WPCS: XSS OK. ?></h1>
				</header><!-- .entry-header -->

				<?php
				/**
				 * saraswati_after_entry_header hook.
				 *
				 *
				 * @hooked saraswati_post_image - 10
				 */
				do_action( 'saraswati_after_entry_header' );
				?>

				<div class="entry-content" itemprop="text">
					<?php
					echo '<p>' . apply_filters( 'saraswati_404_text', __( 'It looks like nothing was found at this location. Maybe try searching?', 'saraswati' ) ) . '</p>'; // WPCS: XSS OK.

					get_search_form();
					?>
				</div><!-- .entry-content -->

				<?php
				/**
				 * saraswati_after_content hook.
				 *
				 */
				do_action( 'saraswati_after_content' );
				?>

			</div><!-- .inside-article -->

			<?php
			/**
			 * saraswati_after_main_content hook.
			 *
			 */
			do_action( 'saraswati_after_main_content' );
			?>
		</main><!-- #main -->
	</div><!-- #primary -->

	<?php
	/**
	 * saraswati_after_primary_content_area hook.
	 *
	 */
	 do_action( 'saraswati_after_primary_content_area' );

	 saraswati_construct_sidebars();

get_footer();
