<!-- start content container -->
  <?php if ( has_post_thumbnail() ) : ?>                                
    <div class="single-thumbnail row"><?php echo get_the_post_thumbnail($post->ID,'first-mag-single'); ?></div>                                     
    <div class="clear"></div>                            
  <?php endif; ?> 
<div class="row rsrc-content">    
  <?php //left sidebar ?>    
  <?php get_sidebar( 'left' ); ?>    
   <article class="col-md-<?php first_mag_main_content_width(); ?> rsrc-main">        
    <?php // theloop
            if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>         
    <?php if (function_exists('first_mag_breadcrumb') && get_theme_mod( 'breadcrumbs-check', 1 ) != 0) {first_mag_breadcrumb(); } ?>                
    <div <?php post_class('rsrc-post-content'); ?>>                            
      <header>                              
        <h1 class="entry-title page-header">
          <?php the_title() ;?>
        </h1>                              
        <?php get_template_part('template-part', 'postmeta'); ?>                            
      </header>                                                                                     
      <div class="entry-content" >
        <?php the_content(); ?>
      </div>                        
      <?php wp_link_pages(); ?>                                                        
      <?php get_template_part('template-part', 'posttags'); ?>
      <?php if( get_theme_mod( 'post-nav-check', 1 ) == 1 ) : ?>                            
        <?php first_mag_content_nav( 'nav-below' ); ?>                             
      <?php endif; ?>                            
      <?php if( get_theme_mod( 'related-posts-check', 1 ) == 1 ) : ?>
        <?php get_template_part('template-part', 'related'); ?>
      <?php endif; ?>
      <?php if( get_theme_mod( 'author-check', 1 ) == 1 ) : ?>                               
        <?php get_template_part('template-part', 'postauthor'); ?> 
      <?php endif; ?>                              
      <?php comments_template(); ?>                         
    </div>        
    <?php endwhile; ?>        
    <?php else: ?>            
    <?php get_404_template(); ?>        
    <?php endif; ?>    
  </article>      
  <?php //get the right sidebar ?>    
  <?php get_sidebar( 'right' ); ?>
</div>
<!-- end content container -->