<?php
/**
 * The template for displaying 404 pages (not found).
 */

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

$background_image 	= get_theme_mod( 'header_background_image', $NETTO_STORAGE['header_background_image'] );
if($background_image) {
	$background_image 	= 	wp_get_attachment_image_src( $background_image , 'full' );
	if(isset($background_image[0])) {
		$background_image	=	$background_image[0];
	}
}
?>
<main id="content" class="site-main">
	<div class="page-header bg-section" <?php if($background_image) { ?> style="background-image: url('<?php echo esc_url($background_image); ?>')" <?php } ?>>
		<div class="container">
			<div class="row align-items-center">
				<div class="col-md-12">
					<div class="page-header-box">
						<h1 class="text-anime"><?php echo esc_html__( 'Page not found', 'netto' ); ?></h1>
						<?php do_action('netto_action_get_breadcrumb');		?>
					</div>
				</div>
			</div>
		</div>
	</div>
	
	<div class="error-page">
		<div class="container">
			<div class="row">
				<div class="col-md-12">
					<div class="notfoundbox">
						<div class="error-page-image wow fadeInUp" data-wow-delay="0.25s">
							<img src="<?php echo NETTO_THEME_URL; ?>/assets/images/image-404.png" alt="">
						</div>

						<div class="error-page-content">
							<div class="error-page-content-heading">
								<h2 class="text-anime-style-3"><?php echo esc_html__( 'Oops! page not found', 'netto' ); ?></h2>
							</div>
							<div class="error-page-content-body">
								<p><?php echo esc_html__( 'The page you are looking for does not exist', 'netto' ); ?></p>
								<a class="btn-default" href="<?php echo esc_url( home_url() ); ?>"><?php _e('Back To Home','netto') ?></a>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>

</main>
