<?php
/*
Template Name: Right 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_right" 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';} else {echo 'dnnc_page_header dnnc_page_header_plain dnnc_border';};?>">

    <?php if ( has_post_thumbnail()){
		
		the_post_thumbnail('arstad_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>
            
            </div>
        
        </div>
    
    </div>
        
</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 get_template_part('/single-content' ); ?>
               
        </div><!-- end #content -->
    
        <?php get_sidebar(); ?>
   
    </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(); ?>