<?php

if ( ! defined( 'ABSPATH' ) ) {
	// Exit if accessed directly.
	exit;
}
?>
<article <?php post_class( 'qodef-blog-item qodef-e' ); ?>>
	<div class="qodef-e-inner">
		<?php
		// Include post media.
		qi_template_part( 'blog', 'templates/parts/post-info/media' );
		?>
		<div class="qodef-e-content">
			<div class="qodef-e-info qodef-info--top qodef-info-style">
				<?php
				if ( apply_filters( 'qi_filter_blog_show_date', true ) ) {
					// Include post date info.
					qi_template_part( 'blog', 'templates/parts/post-info/date' );
				}

				if ( apply_filters( 'qi_filter_blog_show_category', true ) ) {
					// Include post category info.
					qi_template_part( 'blog', 'templates/parts/post-info/category' );
				}
				?>
			</div>
			<div class="qodef-e-text">
				<?php
				// Include post title.
				qi_template_part( 'blog', 'templates/parts/post-info/title' );

				// Include post content.
				the_content();

				// Hook to include additional content after blog single content.
				do_action( 'qi_action_after_blog_single_content' );
				?>
			</div>
			<?php if ( get_the_tags() ) { ?>
			<div class="qodef-e-info qodef-info--bottom">
				<?php
				// Include post tags info.
				qi_template_part( 'blog', 'templates/parts/post-info/tags' );
				?>
			</div>
			<?php } ?>
		</div>
	</div>
</article>
