<?php
/**
 * The layout of the search results page template
 *
 * @package Pixel Hair Spa
 */

get_header();
?>
<div id="content" class="site-content">
	<div class="container">
		<div class="wrap-detail-page">
			<?php
				pixel_hair_spa_page_title_display();
			?>
			<div class="search-post-wrap">
				<div class="row">
					<div class="col-lg-8">
						<div id="primary" class="content-area">
							<?php if ( have_posts() ) : ?>
								<?php
								/* Start the Loop */
								while ( have_posts() ) :
									the_post();

									get_template_part( 'template-parts/content', get_post_format() );

								endwhile; ?>
									<?php
										the_posts_pagination( array(
											'next_text' => '<span>'.esc_html__( 'Next', 'pixel-hair-spa' ) .'</span><span class="screen-reader-text">' . esc_html__( 'Next page', 'pixel-hair-spa' ) . '</span>',
											'prev_text' => '<span>'.esc_html__( 'Prev', 'pixel-hair-spa' ) .'</span><span class="screen-reader-text">' . esc_html__( 'Previous page', 'pixel-hair-spa' ) . '</span>',
											'before_page_number' => '<span class="meta-nav screen-reader-text">' . esc_html__( 'Page', 'pixel-hair-spa' ) . ' </span>',
										) );
									?>
								<?php
							else :
								get_template_part( 'template-parts/content', 'none' );

							endif;
							?>
						</div>
					</div>
					<div class="col-lg-4">
						<div id="secondary" class="sidebar left-sidebar">
							<?php get_sidebar('sidebar-1'); ?>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<?php
get_footer();