<?php
/**
 * Search results.
 *
 * @package ttsunsolar
 */

get_header();
?>
<div class="container content-layout">
	<div class="site-main">
		<?php get_template_part( 'solarpanels/content/panel', 'breadcrumb' ); ?>
		<header class="page-header">
			<h1 class="page-title">
				<?php
				printf(
					/* translators: %s: search query */
					esc_html__( 'Search Results for: %s', 'ttsunsolar' ),
					'<span>' . esc_html( get_search_query() ) . '</span>'
				);
				?>
			</h1>
		</header>
		<?php if ( have_posts() ) : ?>
			<div class="blog-list">
				<?php
				while ( have_posts() ) :
					the_post();
					get_template_part( 'solarpanels/content/panel', 'content-row' );
				endwhile;
				?>
			</div>
			<?php ttsunsolar_posts_pagination(); ?>
		<?php else : ?>
			<p><?php esc_html_e( 'Sorry, nothing matched your search.', 'ttsunsolar' ); ?></p>
			<?php get_search_form(); ?>
		<?php endif; ?>
	</div>
	<?php get_sidebar(); ?>
</div>
<?php
get_footer();
