<?php
/**
 * The template for displaying 404 pages (not found)
 *
 * @link https://codex.wordpress.org/Creating_an_Error_404_Page
 *
 * @package uicore-theme
 */

get_header();
?>

	<div id="primary" class="content-area">
		<main id="main" class="site-main">

        <?php
            if( apply_filters('uicore_is_template', false) ) :
                do_action('uicore_do_template');
            else :
        ?>
			<section class="utility-page">
				<img src="<?php echo esc_url(get_template_directory_uri()) ?>/assets/img/bg-404.png" alt="<?php esc_attr_e('Page Not Found', 'outgrid')?>" class="error-404-img">
				<h1><?php esc_html_e('Error 404', 'outgrid'); ?></h1>
				<p><?php esc_html_e('We can’t seem to find the page you’re looking for.', 'outgrid'); ?></p>
				<a class="default-button" href="<?php echo esc_url( get_home_url() ); ?>"><?php esc_html_e('Go back to homepage', 'outgrid'); ?></a>
			</section><!-- .utility-page -->
		<?php endif; ?>`	
		</main><!-- #main -->
	</div><!-- #primary -->
<?php
get_footer();
