<?php 
/*
single details page

*/
 global $cleaninganything_opt;
?>							
		<div class="cleaninganything-single-blog-details">
			<?php if(has_post_thumbnail()){?>
				<div class="cleaninganything-single-blog--thumb">
					<?php the_post_thumbnail('cleaninganything-blog-single'); ?>
				</div>									
			<?php } ?>
			<div class="cleaninganything-single-blog-details-inner">	
				<div class="cleaninganything-single-blog-title">
					<h2><?php the_title(); ?></h2>	
				</div>
						
				
				<?php if( 'post' == get_post_type() ) { ?>
						<!-- BLOG POST META  -->
						<div class="cleaninganything-blog-meta">
						
							<div class="cleaninganything-blog-meta-left">
								
								<span><i class="fas fa-calendar-alt"></i><?php echo get_the_time(get_option('date_format')); ?></span>
								<a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ), get_the_author_meta( 'user_nicename' ) ); ?>"><i class="fas fa-user"></i> <?php the_author(); ?></a>
								<?php if ( comments_open() || get_comments_number() ) {?>
									<a href="<?php comments_link(); ?>"><i class="fas fa-comment"></i>
										<?php comments_number( esc_html__('0 Comments','cleaninganything'), esc_html__('1 Comment','cleaninganything'), esc_html__('% Comments','cleaninganything') );?>
									</a>						
								<?php }else{?>
									<span><i class="fas fa-comment"></i> <?php echo esc_html__('Comments Off','cleaninganything'); ?></span>
								<?php } ?>							
							</div>
						</div>
				<?php } // if post ?>
				

				<div class="cleaninganything-single-blog-content">
					<div class="single-blog-content">
					<?php the_content(); ?>
					<?php if ( '' != get_the_content() ) { ?>					
						<div class="page-list-single">						
							<?php 
							/**
							* Display In-Post Pagination
							*/
							wp_link_pages( array(
								'link_before'   => '<span>',
								'link_after'    => '</span>',
								'before'        => '<p class="inner-post-pagination"><span>' . esc_html__('Pages:', 'cleaninganything'),
								'after'     => '</p>'
							)); ?>					
												
						</div>
					<?php } ?>
					</div>
				</div>
			

				<?php if( 'post' == get_post_type() ) { ?>	
				
				
					<?php if (!empty($cleaninganything_opt['cleaninganything_blog_socialsharesh_hide']) && $cleaninganything_opt['cleaninganything_blog_socialsharesh_hide']==true){?>
						
						<div class="cleaninganything-blog-social">
							<div class="cleaninganything-single-icon">
								<?php
								if( function_exists('cleaninganything_blog_sharing') ){						
									cleaninganything_blog_sharing();
								}
								?>
							</div>
						</div>					
						
					<?php }else{
						
					}} ?> 	
			</div>
		</div>

	<?php comments_template();