<?php
/**
 * The template for displaying 404 pages (not found).
 *
 * @package chic-lifestyle
 */

get_header(); ?>

<?php
  $layout = chic_lifestyle_get_sidebar_layout();

  if( $layout == 'no-sidebar' ) {
      $content_column_class = 'col-12';
  } else {
      $content_column_class = 'col-lg-8';
  }
?>

<section class="pt-48 mt-sm-40 mb-sm-20">
  <div class="container">
    <div class="row">

      <?php if ( $layout == 'left-sidebar' ) : ?>
      <div class="col-lg-4"><?php get_sidebar(); ?></div>
      <?php endif; ?>

      <div class="<?php echo esc_attr( $content_column_class ); ?>">
        <h1 class="text-center mb-sm-30">
          <?php esc_html_e( 'Oops! That page can’t be found.', 'default' ); ?>
        </h1>

        <div>
          <div class="text-center">
              <p class="mb-sm-24"><?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>
        </div>
      </div>

      <?php if( $layout == 'right-sidebar' ) : ?>
        <div class="col-lg-4"><?php get_sidebar(); ?></div>
      <?php endif; ?>
      
    </div>
  </div>
</section>

<?php get_footer(); ?>
