<article class="post">
	<?php 
	if(get_theme_mod('honeypress_enable_single_post_category',true)==true):
	if(has_category()):
		echo '<div class="entry-meta">';
		echo '<span class="cat-links">';
		the_category( ' ');
		echo '</span>';
		echo '</div>';
	endif; endif;?>	
											
	<header class="entry-header">
		<h2 class="entry-title"><?php the_title();?></h2>
	</header>
		<div class="entry-meta mb-4">
			<?php
			if(get_theme_mod('honeypress_enable_single_post_admin',true)===true):?>
				<span class="author">
					<a <?php if(is_rtl()){echo 'dir="rtl"';} ?> href="<?php echo esc_url(get_author_posts_url(get_the_author_meta('ID'))); ?>"><?php esc_html_e('By','honeypress');?> <?php echo esc_html(get_the_author());?></a>
				</span>
			<?php
			endif;
			if(get_theme_mod('honeypress_enable_single_post_date',true)===true):?>
				<span class="posted-on">
					<a <?php if(is_rtl()){echo 'dir="rtl"';} ?> href="<?php echo esc_url( home_url('/') ); ?><?php echo esc_html(date( 'Y/m' , strtotime( get_the_date() )) ); ?>"><time><?php echo esc_html(get_the_date());?></time></a>
				</span>
			<?php endif;
			if(get_theme_mod('honeypress_enable_single_post_comments',true)===true):?>
				<span class="comment-links">
					<a <?php if(is_rtl()){echo 'dir="rtl"';} ?> href="<?php the_permalink(); ?>#respond"><?php echo esc_html(get_comments_number());?></a>
				</span>
			<?php endif;?>
		</div>
	<?php
	if(has_post_thumbnail()):?>
		<figure class="post-thumbnail mb-4">
			<?php the_post_thumbnail('full',array('class'=>'img-fluid'));?>						
		</figure>	
	<?php endif;?>	
	<div class="entry-content">
		<?php the_content();?>
		<?php wp_link_pages( ); ?>
	</div>	
	<?php
	if(get_theme_mod('honeypress_enable_single_post_tag',true)===true):
		if(has_tag()):?>
			<div class="entry-meta pt-4">
				<span class="tag-links"><?php the_tags('',' ');?></span>
			</div>
	<?php endif; endif;?>
</article>