<?php
/**
 * Template part for displaying results in search pages
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
 *
 * @package Bosa App Hub
 */

?>
<div class="col-md-6 col-lg-4 grid-post">
	<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
		<?php if ( has_post_thumbnail() ) : ?>
	        <figure class="featured-image">
	            <a href="<?php the_permalink(); ?>">
	                <?php bosa_app_hub_image_size( 'bosa-app-hub-420-300' ) ?>
	            </a>
	        </figure><!-- .recent-image -->
	    <?php endif; ?>
	    <div class="entry-content">
	    	<header class="entry-header">
	    		<?php
	    		bosa_app_hub_entry_header();
	    		the_title( sprintf( '<h3 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h3>' ); 
	    		?>
	    	</header><!-- .entry-header -->
	    	<?php if ( 'post' === get_post_type() ) : ?>
	    		<div class="entry-meta">
	    			<?php bosa_app_hub_entry_footer(); ?>
	    		</div><!-- .entry-meta -->
	    	<?php endif; ?>

			<div class="entry-summary">
				<?php bosa_app_hub_excerpt( 15, true ); ?>
			</div><!-- .entry-summary -->
		</div>
	</article><!-- #post-<?php the_ID(); ?> -->
</div>