<?php

/**
 * Template part for displaying posts
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
 *
 * @package ostech
 */
?>

<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
	<div class="blog-details">
		<div class="blog-card-two">
			<?php if (has_post_thumbnail()) : ?>
				<div class="blog-card__two__image">
					<?php the_post_thumbnail();  ?>
					<div class="blog-card__two__date"><?php echo get_the_date(); ?></div><!-- /.blog-card__date -->
				</div><!-- /.blog-card__image -->
			<?php endif; ?>
			<div class=" blog-card-two__content">
				<ul class="list-unstyled blog-card__two__meta ml-0">
					<li><?php ostech_posted_by(); ?></li>
					<?php if (!empty(get_comments_number())) : ?>
						<li><?php ostech_comment_count(); ?></li>
					<?php endif; ?>
				</ul><!-- /.list-unstyled blog-card__meta -->
				<!-- /.blog-card__title -->
				<?php
				the_content(
					sprintf(
						wp_kses(
							/* translators: %s: Name of current post. Only visible to screen readers */
							__('Continue reading<span class="screen-reader-text"> "%s"</span>', 'ostech'),
							array(
								'span' => array(
									'class' => array(),
								),
							)
						),
						wp_kses_post(get_the_title())
					)
				);

				wp_link_pages(
					array(
						'before' => '<div class="page-links">' . esc_html__('Pages:', 'ostech'),
						'after'  => '</div>',
					)
				);
				?>
			</div><!-- /.blog-card-two__content -->
		</div><!-- /.blog-card -->
		<div class="blog-details__meta">
			<?php ostech_entry_footer(); ?>
		</div><!-- /.blog-details__meta -->

	</div><!-- /.blog-details -->
</article><!-- #post-<?php the_ID(); ?> -->