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

get_header();

	global $restorator_options;
	
	$restorator_custom_divider = $restorator_options['custom_divider']['url'];
	$restorator_custom_divider_width = isset( $restorator_options['custom_divider_width'] ) ? $restorator_options['custom_divider_width'] : '48';
?>
	
	<div id="error404_container">
		<div class="container text-center">
			<h1><?php echo esc_html__('404', 'restorator'); ?></h1>
			<div class="text-center">
				<div class="divider_active">
					<?php if( isset( $restorator_custom_divider ) && !empty( $restorator_custom_divider ) ){ ?>
						<img src="<?php echo esc_url( $restorator_custom_divider ); ?>" alt="" style="width:<?php echo esc_attr( $restorator_custom_divider_width ); ?>px !important;" />
					<?php } else { ?>
						<span class="bg_primary" style="width:<?php echo esc_attr( $restorator_custom_divider_width ); ?>px !important;"></span>
					<?php } ?>
				</div>
				<h2><?php echo esc_html__('Page not found', 'restorator'); ?></h2>
				<div class="divider_active">
					<?php if( isset( $restorator_custom_divider ) && !empty( $restorator_custom_divider ) ){ ?>
						<img src="<?php echo esc_url( $restorator_custom_divider ); ?>" alt="" style="width:<?php echo esc_attr( $restorator_custom_divider_width ); ?>px !important;" />
					<?php } else { ?>
						<span class="bg_primary" style="width:<?php echo esc_attr( $restorator_custom_divider_width ); ?>px !important;"></span>
					<?php } ?>
				</div>
			</div>
			<?php if( isset( $restorator_options['page404_descr'] ) && $restorator_options['page404_descr'] != '' ) { ?>
				<p><?php echo esc_html( $restorator_options['page404_descr'] ); ?></p>
			<?php } ?>
			<div class="clearfix"></div>
			<a class="btnback" href="<?php echo esc_url( home_url( '/' ) ); ?>/"><i class="fa fa-chevron-left"></i><?php echo esc_html__('Back Homepage', 'restorator'); ?></a>
		</div>
	</div>

<?php get_footer(); ?>
