<?php get_header(); ?>
<?php get_template_part('includes/breadcrumbs'); ?>
<div id="content" class="clearfix">
<?php if (get_option('thestyle_integration_single_top') <> '' && get_option('thestyle_integrate_singletop_enable') == 'on') echo(get_option('thestyle_integration_single_top')); ?>
<div id="left-area">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div id="post" class="post">
<div class="post-content clearfix">
<div class="info-panel">
<?php get_template_part('includes/infopanel'); ?>
</div> <!-- end .info-panel -->
<div class="post-text">
<h1 class="title"><?php the_title(); ?></h1>
<?php if (get_option('thestyle_postinfo2') ) { ?>
<p class="post-meta">
<?php esc_html_e('Posted','TheStyle'); ?> <?php if (in_array('author', get_option('thestyle_postinfo2'))) { ?> <?php esc_html_e('by','TheStyle'); ?> <?php the_author_posts_link(); ?><?php }; ?><?php if (in_array('date', get_option('thestyle_postinfo2'))) { ?> <?php esc_html_e('on','TheStyle'); ?> <?php the_time(get_option('thestyle_date_format')) ?><?php }; ?><?php if (in_array('categories', get_option('thestyle_postinfo2'))) { ?> <?php esc_html_e('in','TheStyle'); ?> <?php the_category(', ') ?><?php }; ?><?php if (in_array('comments', get_option('thestyle_postinfo2'))) { ?> | <?php comments_popup_link(esc_html__('0 comments','TheStyle'), esc_html__('1 comment','TheStyle'), '% '.esc_html__('comments','TheStyle')); ?><?php }; ?>
</p>
<?php }; ?>
<div class="hr"></div>
<?php the_content(); ?>
<?php wp_link_pages(array('before' => '<p><strong>'.esc_html__('Pages','TheStyle').':</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
<?php edit_post_link(esc_html__('Edit this page','TheStyle')); ?>
<?php if (get_option('thestyle_integration_single_bottom') <> '' && get_option('thestyle_integrate_singlebottom_enable') == 'on') echo(get_option('thestyle_integration_single_bottom')); ?>
<?php if (get_option('thestyle_468_enable') == 'on') { ?>
<?php if(get_option('thestyle_468_adsense') <> '') echo(get_option('thestyle_468_adsense'));
else { ?>
<a href="<?php echo esc_url(get_option('thestyle_468_url')); ?>"><img src="<?php echo esc_url(get_option('thestyle_468_image')); ?>" alt="468 ad" class="foursixeight" /></a>
<?php } ?>
<?php } ?>
</div> <!-- .post-text -->
</div> <!-- .post-content -->
</div> <!-- #post -->
<?php if (get_option('thestyle_show_postcomments') == 'on') comments_template('', true); ?>
<?php endwhile; endif; ?>
</div> <!-- #left-area -->
<?php get_sidebar(); ?>
</div> <!-- #content -->
<div id="content-bottom-bg"></div>
<?php get_footer(); ?>