  <?php get_template_part('header');?>
  <body <?php body_class();?>>
 	<?php get_template_part('topbar');?>
   <?php get_template_part('logoarea');?>
   <?php while ( have_posts() ) : the_post();?>
    <div class="wrapper" id="blog">
    	<div class="container">
        	<div class="content-heading">
    			<h2><?php the_title(); ?></h2>
                <small><?php _e( 'Author: ', 'activehost' ); ?><?php the_author();?></small>
                <span></span>
                <div class="row post-details">
                <?php if(function_exists("ot_get_option") && ot_get_option('show_share_links')=="on"){ $colsize = 3;?>
                	<div class="col-sm-<?php echo esc_html($colsize);?>">
                    	<a href="http://twitter.com/share?text=<?php the_title();?> - &url=<?php the_permalink();?>"><i class="fa fa-twitter"></i></a> <a href="https://www.facebook.com/sharer/sharer.php?u=<?php the_permalink();?>"><i class="fa fa-facebook"></i></a> <a href="https://plus.google.com/share?url=<?php the_permalink();?>"><i class="fa fa-google"></i></a> <a href="https://pinterest.com/pin/create/button/?url=&media=<?php the_permalink();?>&description=<?php the_title();?>"><i class="fa fa-pinterest"></i></a> <a href="https://www.linkedin.com/shareArticle?mini=true&url=<?php the_permalink();?>&title=<?php the_title();?>&summary=&source="><i class="fa fa-linkedin"></i></a>
                    </div>
                    <?php }else{ $colsize = 4; }?>
                    <div class="col-sm-<?php echo esc_html($colsize);?>">
                    	<i class="glyphicon glyphicon-list"></i> <?php the_category( ', ' ); ?>
                    </div>
                    <div class="col-sm-<?php echo esc_html($colsize);?>">
                    	<a href="#comment-section"><i class="glyphicon glyphicon-comment"></i> <?php comments_number( 'No Responses', 'One Response', '% Responses' ); ?></a>
                    </div>
                    <div class="col-sm-<?php echo esc_html($colsize);?>">
                    	<i class="glyphicon glyphicon-calendar"></i> <?php the_time('jS M Y'); ?>
                    </div>
                </div>
            </div>
		</div>
    </div>
    <div class="wrapper sidebar" id="single-post">
    	<div class="container">
			<div class="row">
            	<div class="col-sm-<?php if ( is_active_sidebar(1) ){ ?>9<?php }else{?>12<?php }?>">
                	<div class="the-post">
 		 				<?php the_content();?>
                        <?php if(function_exists("ot_get_option") && ot_get_option('show_admin_profile')=="on"){?>
                        <?php get_template_part("aboutauthor");?>
                        <?php }?>
         			</div>
                 </div>
                 <?php if ( is_active_sidebar(1) ){ ?>
                 <div class="col-sm-3">
                	<div class="post-sidebar">
                    	<div class<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('single-sidebar') ) : ?><?php endif;?>
                    </div>
                 </div>
                 <?php }?>
            </div>
<?php if (comments_open()){ ?><?php comments_template(); ?><?php }?>
	</div>
</div>
<?php if ( function_exists( 'ot_get_option' ) && ot_get_option('related_posts_on_single')=="on"){?>
<?php get_template_part("relatedposts");?>
<?php }?>
  <?php endwhile;?>
 <?php get_template_part('footer');?>