<?php
get_header();
?>

<div id="post-<?php the_ID(); ?>" <?php post_class('page-wrapper'); ?>>

	<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

		<div class="container">
			<div class="page-content">
				<div class="section-title-block">
					<?php if ( couponhut_get_field('show_title', get_the_ID(), true) ) : ?>
					<h1 class="section-title"><?php echo get_the_title(); ?></h1>
					<?php endif; ?>
					<?php 
					if ( function_exists('fw_ext_breadcrumbs') ) {
						fw_ext_breadcrumbs( '>' );
					}
					?>
				</div><!-- end section-title-block -->
				<?php the_content(); ?>
			</div>
		</div>

	<?php if ( comments_open() ) : ?>
		<div class="SinglePostComments container-fluid">
			<div class="row">
				<div class="CommentsArea col-xs-12 col-xs-offset-0 col-sm-8 col-sm-offset-2" id="comments">
							
					<?php comments_template('', true); ?>

				</div> <!-- end CommentsArea -->
			</div>
		</div> <!-- end SinglePostComments -->
	<?php endif; ?>

	<?php endwhile; else : ?>

		<div class="no-posts-wrapper">
			<h3><?php esc_html_e('Sorry, no posts found.', 'couponhut'); ?></h3>
		</div>

	<?php endif; ?>
	
</div><!-- end post -->

<?php get_footer(); ?>