<?php
	/**
	 * 404.php
	 * The main post loop in Ainex
	 * @author Vu Ngoc Linh
	 * @package Ainex
	 * @since 1.0.0
	**/
	$post = new stdClass();
	$args = array( 'posts_per_page' => 1, 'offset'=> 1,);
	$myposts = get_posts( $args );
	foreach ($myposts as $value) {
		$post->ID = $value->ID;
	}
	wp_reset_postdata();
	global $ainex;
	get_header();
?>
    <div class="page_title">
      <div class="container">
        <div class="title">
          <h1><?php echo __( '404 Error Page', 'themestudio' ); ?></h1>
        </div>
        <div class="pagenation"><?php ts_breadcrumbs(); ?></div>
      </div>
    </div>
	<div class="container">

		<div class="content_fullwidth">

			<div class="error_pagenotfound">

		        <strong>404</strong>
		        <br />
		    	<b>Oops... Page Not Found!</b>

		        <em>Sorry the Page Could not be Found here.</em>

		        <p>Try using the button below to go to main page of the site</p>

		        <div class="clearfix mar_top3"></div>

		        <a href="<?php echo home_url(); ?>" class="but_goback"><i class="fa fa-arrow-circle-left fa-lg"></i>&nbsp; Go to Back</a>

		    </div><!-- end error page notfound -->

		</div>

	</div><!-- end content area -->


<?php get_footer();