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

	<article id="post-<?php the_ID(); ?>" <?php post_class('article-box'); ?>>
		<?php online_tutor_post_thumbnail(); ?>

		<header class="entry-header">
			<?php the_title( sprintf( '<h3 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h3>' ); ?>
		</header>

		<div class="entry-summary">
			<?php echo wp_trim_words( get_the_content(), esc_attr(get_theme_mod('online_tutor_post_page_excerpt_length', 30)) ); ?><?php echo esc_html(get_theme_mod('online_tutor_post_page_excerpt_suffix','[...]')); ?>
		</div>
	</article>
</div>