<?php
/**
 * The template for displaying Search Results pages.
 *
 * @package hardware-dealer-pro
 */


get_header(); ?>

<div class="container mt-5">
	<div class="middle-align">
			<h1 class="entry-title theme-page-title"><?php printf( __( 'Results For: %s', 'hardware-dealer-pro' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
		<div class="row">
			<div class="col-lg-8 col-sm-6 col-md-12">
				<div class="row search-result">
					<?php if ( have_posts() ) : ?>
						<?php while ( have_posts() ) : the_post();
							get_template_part('template-parts/post/post-content');
						endwhile; ?>
						<div class="wp-navigation">
							<?php // Previous/next page navigation.
							the_posts_pagination( array(
								  'prev_text'          => __( 'Previous page', 'hardware-dealer-pro' ),
								  'next_text'          => __( 'Next page', 'hardware-dealer-pro' ),
								  'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'hardware-dealer-pro' ) . ' </span>',
							)); ?>
						</div>
					<?php else : ?>
						<?php get_template_part( 'no-results', 'search' ); ?>
					<?php endif; ?>
				</div>
			</div>
			<div class="col-lg-4 col-md-12 col-sm-6" id="efarm-pro-sidebar">
				<?php dynamic_sidebar('sidebar-1'); ?>
			</div>
			<div class="clearfix"></div>
		</div>
	</div>
</div>
<?php get_footer(); ?>