<?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 aidoo_featured_thumb(); ?>
	<div class="entry-content">
		<?php
		aidoo_get_categories();
		the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' );
		aidoo_posted_on();
		?>
		<div class="entry-text">
			<?php aidoo_get_excerpt(); ?>
		</div>
		<div class="read-more-link"><div class="readmore-shadow"><a class="nb-primary-button" href="<?php echo get_permalink(); ?>"><?php echo esc_html__('Read more', 'aidoo'); ?></a></div></div>
		
		<?php if(aidoo_get_options('nbcore_blog_single_show_social') && function_exists('nbcore_share_social')) {
			?>
			<div class="social">
				<?php nbcore_share_social(true); ?>
			</div>
			<?php
		} ?>
	</div>

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