<?php
/**
 * Template part for displaying a post
 *
 * @package typer
 */

namespace Seventhqueen\Typer;

?>

	<article id="post-<?php the_ID(); ?>" <?php post_class( 'svq-article' ); ?>>
		<div class="entry-content-wrapper sticky-el-wrapper">
			<?php
			if ( is_single() && typer()->get_blog_option( 'blog_show_social_box' ) ) {
				typer()->get_template_part( 'template-parts/content/share' );
			}
			?>

			<?php typer()->get_template_part( 'template-parts/content/entry-content' ); ?>
		</div>

		<?php typer()->get_template_part( 'template-parts/content/entry-footer' ); ?>
	</article><!-- #post-<?php the_ID(); ?> -->

	<?php
// Show comments only when the post type supports it and when comments are open or at least one comment exists.
if ( is_singular( get_post_type() ) && ! typer()->get_option( 'post_comments_disable' ) && post_type_supports( get_post_type(), 'comments' ) && ( comments_open() || get_comments_number() ) ) {
	comments_template();
}
