<?php
/**
 * Single post partial template
 *
 * @package Wrock Metro
 */

// Exit if accessed directly.
defined( 'ABSPATH' ) || exit;
?>
<?php
	if (get_theme_mod('wrockmetro_breadcrumbs_on') !== 'disable') {
		wrockmetro_breadcrumbs();
	}
	do_action( 'before_single_post' );
?>
<article <?php post_class(); ?> id="post-<?php the_ID(); ?>">

	<header class="entry-header">

		<?php the_title( '<h1 class="entry-title" ' . wrockmetro_get_schema( "headline" ) . '>', '</h1>' ); ?>

		<div class="entry-meta">
		<?php  if (get_theme_mod('wrockmetro_single_viewcount') !== 'disable') {
	   			display_post_view_count(); } ?>
			<?php wrockmetro_posted_on(); ?>

		</div><!-- .entry-meta -->

	</header><!-- .entry-header -->

	<?php if (get_theme_mod('wrockmetro_featured_single') !== 'disable') {
		echo get_the_post_thumbnail( $post->ID, 'large', array( 'class' => 'mx-auto d-block' )  ); 
	} ?>

	<div class="entry-content" <?php wrockmetro_do_schema( 'entry_content' ); ?>>

		<?php
		the_content();
		wrockmetro_link_pages();
		?>

	</div><!-- .entry-content -->
	<?php 
		$authorstyle = get_theme_mod( 'wrockmetro_authorprofile_style', 'styleone' );
		if (get_theme_mod('wrockmetro_authorpro_on') !== 'disable') {
				if ( ! is_singular( 'attachment' ) ) : 
					get_template_part( 'layouts/author/author', $authorstyle);
				endif;
				}
	?>

	<footer class="entry-footer">

		<?php wrockmetro_entry_footer(); ?>

	</footer><!-- .entry-footer -->

</article><!-- #post-<?php the_ID(); ?> -->
