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

get_header();

$sidebar_layout = travel_tour_get_sidebar_layout();
if( $sidebar_layout == 'no-sidebar' ) {
  $content_column_class = 'col-md-12';
} else {
  $content_column_class = 'col-md-9';
}
?>
<section class="my-64">
  <div class="container-xl">

  	<h1 class="text-center">
  		<?php esc_html_e( 'Page not found', 'default' ); ?>
  	</h1>

    <div class="row">

      <?php if ( $sidebar_layout == 'left-sidebar' ) : ?>
          <div class="col-sm-3"><?php get_sidebar(); ?></div>
      <?php endif; ?>

    	<div class="<?php echo esc_attr( $content_column_class ); ?> d-flex flex-column justify-content center align-items-start">
    		<p class="text-center"><?php printf( esc_html__( 'It looks like nothing was found at this location. Maybe try visiting %s directly?', 'default' ), '' ); ?></p>
         <?php get_search_form(); ?>
    	</div>

      <?php if( $sidebar_layout == 'right-sidebar' ) : ?>
        <div class="col-sm-3"><?php get_sidebar(); ?></div>
      <?php endif; ?>

    </div>

     
  </div>
</section>
<?php get_footer(); ?>