<?php 

	get_header();
	get_template_part('core/templates/breadcrumb'); 
	get_sidebar('header');
	
?>

<div id="content" class="container content">
	
    <div class="row">
       
        <div class="<?php echo daily_diary_template('span') . " " . daily_diary_template('sidebar'); ?>">
        	
            <div class="row">
        
                <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
                
                    <?php 
					
						while ( have_posts() ) : the_post();
						
							do_action('daily_diary_postformat');
							
							wp_link_pages(
								array(
									'before' => '<div class="daily-diary-pagination">',
									'after' => '</div>',
									'link_before' => '<span>',
									'link_after' => '</span>'
								)
							);
						
						endwhile;
						
					?>
            
                </div>
        
			</div>
        
        </div>
        
		<?php get_sidebar(); ?>	

    </div>
    
</div>

<?php get_footer(); ?>