<?php
/**
 * The template for displaying search results pages
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#search-result
 *
 * @package Medicall
 */

get_header();

	/**
	 * Before Posts hook
	 * @hooked medicall_content_wrapper_start - 10
	*/
	do_action( 'medicall_before_posts_content' );
		if ( have_posts() ) :
		/* Start the Loop */
		while ( have_posts() ) :
			the_post();

			/**
			 * Run the loop for the search to output the results.
			 * If you want to overload this in a child theme then include a file
			 * called content-search.php and that will be used instead.
			 */
			echo '<div class="col-6-md col-12-xs">';
					get_template_part( 'template-parts/content', 'search' );
			echo '</div>';

		endwhile;

		the_posts_navigation();

		else :
		get_template_part( 'template-parts/content', 'none' );

		endif;
		?>

	<?php
	/**
	 * After Posts hook
	 * @hooked medicall_content_wrapper_end - 10
	*/
	do_action( 'medicall_after_posts_content' );

get_footer();