<?php
/*
Template Name: Single No Sidebar (with Hero Image)
Template Post Type: page, post
*/
get_header();  
if (have_posts()) : while (have_posts()) : the_post();
?>

<?php if(has_post_format('quote')){?>
    <div class="container">
    <?php get_template_part('/post-types/post-quote-post' );} else {?>  
    
      
<div class="dnnc_single dnnc_sidebar_none" itemscope itemtype="http://schema.org/NewsArticle">
<meta itemscope itemprop="mainEntityOfPage"  content=""  itemType="https://schema.org/WebPage" itemid="<?php the_permalink(); ?>"/>

<div class="<?php if ( has_post_thumbnail()){echo 'dnnc_page_header dnnc_page_header_image imgwrap';} else {echo 'dnnc_page_header dnnc_page_header_plain dnnc_border';};?>">

    <?php if ( has_post_thumbnail()){
		
		the_post_thumbnail('visby_header',array('class' => 'dnnc_tranz dnnc_hero_img'));
    
    } ?>
    
    <div class="dnnc_container">
    
    	<div class="dnnc_column dnnc_column_12">
        
        	<div class="dnnc_post_head">
        
                <h1 class="post_title large_title"><span itemprop="name"><?php the_title(); ?></span></h1>
                
                <?php if (is_single()) {
                    visby_meta_front();
                } ?>
            
            </div>
        
        </div>
    
    </div>
        
</div>

<div id="dnnc_single_core" <?php post_class(); ?>>
   
    <div class="dnnc_container dnnc_container_zero">
    
    	<div id="content_start" class="dnnc_anchor"></div>

        <div id="content" class="dnnc_column dnnc_content">
            
            <?php get_template_part('/single-content' ); ?>
               
        </div><!-- end #content -->
   
    </div><!-- end .postbar -->
    
</div> 

<?php }?>
        
        <?php endwhile; else: ?>
        
            <p><?php esc_html_e('Sorry, no posts matched your criteria','visby');?>.</p>
        
        <?php endif; ?>

</div><!-- end NewsArticle -->
   
<?php get_footer(); ?>