<?php get_header() ;?>
   
<?php reza_breadcrumbs();?>

<div class="rd-middle-content">

 	<?php reza_above_content();?>

    <div class="rd-content <?php echo esc_attr(reza_column('column'));?>">
                  
		<?php if(!empty(reza_column(1))){get_template_part('sidebar-'.reza_column(1));} ?>
		<?php if(!empty(reza_column(2))){get_template_part('sidebar-'.reza_column(2));} ?>
 
		<div class="rd-column-main">
 	 
			<?php reza_above_center();?>

			<?php if ( have_posts() ) :?>
            <?php while ( have_posts() ) : the_post(); ?>
            
   				<div id="post-<?php the_ID(); ?>" class="rd-el-single rd-aw  <?php echo esc_attr(reza_box_layout_single());?>">
                             
                    <div class="rd-single-details">
                        <h1 class="rd-title"><?php the_title(); ?></h1>
                    </div>
                    
                    <?php if ( has_post_thumbnail()) {?>
                        <div class="rd-single-thumb">
                            <?php the_post_thumbnail('full'); ?>
                        </div>
                    <?php }?>
                 
                    <article class="rd-single-content">
                        <?php the_content();?>
                    </article>
                         
                    <?php reza_wp_link_pages();?>
                    <?php edit_post_link(reza_t('edit')); ?>
                       
            	</div> 
            <?php endwhile;?>
            <?php endif; ?>
       
            <?php comments_template( '', true ); ?>
                      
			<?php reza_below_center(); ?>
            
		</div>
		
		<?php if(!empty(reza_column(3))) get_template_part('sidebar-'.reza_column(3)); ?>
		<?php if(!empty(reza_column(4))) get_template_part('sidebar-'.reza_column(4)); ?>   
                      	 
	</div>
 	
	<?php reza_below_content();?>

</div>
 
<?php get_footer();?>
