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

<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="dnnc_page_header">

    <?php if ( has_post_thumbnail()){
            
            the_post_thumbnail('arstad_header',array('class' => 'dnnc_tranz dnnc_hero_img'));
        
        } else { 
            
            if(empty($dannci_redux['dnnc-header-image']['url'])) {} else { ?>
        
            <img class="dnnc_head_img" src="<?php echo esc_url($dannci_redux['dnnc-header-image']['url']);?>" alt="<?php the_title_attribute(); ?>"/>
            
        <?php }
        
    }  ?>
  
</div>

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

        <div id="content" class="dnnc_column dnnc_content">
                
                <?php if (is_single()) { arstad_meta_front(); } ?>
            
                <h1 class="post_title large_title dnnc_border"><span itemprop="name"><?php the_title(); ?></span></h1>
    
                <?php if ( has_excerpt() ) {  the_excerpt();  } ?>
            
            <?php get_template_part('/single-content' ); ?>
               
        </div><!-- end #content -->
   
    </div><!-- end .postbar -->
    
</div> 
        
        <?php endwhile; else: ?>
        
            <p><?php esc_html_e('Sorry, no posts matched your criteria','arstad');?>.</p>
        
        <?php endif; ?>

</div><!-- end NewsArticle -->

<?php get_footer(); ?>