<?php
/**
 * The template for displaying 404 pages (not found)
 *
 * @link https://codex.wordpress.org/Creating_an_Error_404_Page
 *
 * @package Bosa EV Rental Car
 */

get_header();
?>
	<?php
		$bosa_ev_rental_car_render_error404_image_size = get_theme_mod( 'bosa_ev_rental_car_render_error404_image_size', 'full' );
		$bosa_ev_rental_car_error404_image_id 			= get_theme_mod( 'bosa_ev_rental_car_error404_image', '' );
		$bosa_ev_rental_car_get_error404_image_array 	= wp_get_attachment_image_src( $bosa_ev_rental_car_error404_image_id, $bosa_ev_rental_car_render_error404_image_size );
		if( is_array( $bosa_ev_rental_car_get_error404_image_array ) ){
			$bosa_ev_rental_car_error404_image = $bosa_ev_rental_car_get_error404_image_array[0];
		}else{
			$bosa_ev_rental_car_error404_image = get_theme_file_uri( '/assets/images/bosa-ev-rental-car-360-200.jpg' );
		}
	?>
	<div id="content" class="site-content">
		<div class="container">
			<section class="error-404 not-found">
				<div class="inner-content">
					<header class="page-header">
						<h1 class="title-404" style="background-image: url( <?php echo esc_url( $bosa_ev_rental_car_error404_image ); ?> );"><?php echo esc_html__( '404', 'bosa-ev-rental-car' ); ?></h1>
						<h2 class="page-title"><?php echo esc_html__( 'Oops! that page can&rsquo;t be found.', 'bosa-ev-rental-car' ); ?></h2>
						<p><?php echo esc_html__( 'It looks like nothing was found at this location. Maybe try one of the links below or a search?', 'bosa-ev-rental-car' ); ?></p>
					</header><!-- .page-header -->
					<div class="error-404-form">
						<?php get_search_form(); ?>
					</div>
				</div><!-- .page-content -->
			</section><!-- .error-404 -->
		</div><!-- #container -->
	</div><!-- #content -->
<?php
get_footer();
