<?php
/**
 * Template part for displaying posts
 *
 * @link https://codex.wordpress.org/Template_Hierarchy
 *
 * @package nbcore
 */

?>

<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
	<?php teepro_featured_thumb(); ?>
	<div class="entry-content">
		<?php
		teepro_posted_on();
		the_title( '<h3 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h3>' );
		?>
		<div class="entry-text">
			<?php teepro_get_excerpt(); ?>
		</div>
		
		<?php
		 if ('style-3' !== teepro_get_options('nbcore_blog_archive_post_style')) {
		echo '<div class="read-more-link"><a class="bt-4 nb-secondary-button" href="' . get_permalink() . '">' . esc_html__('View post', 'teepro') . '<span> &rarr;</span></a></div>';
		 }
		?>
	</div>

</article><!-- #post-## -->
