<?php
$elision_options = elision_qode_return_global_options();
$qode_sidebar    = elision_qode_get_sidebar_layout( false );

if ( isset( $elision_options['twitter_via'] ) && ! empty( $elision_options['twitter_via'] ) ) {
	$twitter_via = " via " . $elision_options['twitter_via'];
} else {
	$twitter_via = "";
}
get_header(); ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
		<?php get_template_part( 'includes/modules/title' ); ?>
		<?php get_template_part( 'slider' ); ?>
				<div class="container">
					<div class="container_inner">
				
					<?php if(($qode_sidebar == "default")||($qode_sidebar == "")) : ?>
						<div class="blog_holder blog_single">
						<?php 
							get_template_part('blog_single', 'loop');
						?>
						
					<?php elseif($qode_sidebar == "1" || $qode_sidebar == "2"): ?>
						<?php if($qode_sidebar == "1") : ?>	
							<div class="two_columns_66_33 background_color_sidebar grid2 clearfix">
							<div class="column1">
						<?php elseif($qode_sidebar == "2") : ?>	
							<div class="two_columns_75_25 background_color_sidebar grid2 clearfix">
								<div class="column1">
						<?php endif; ?>
					
									<div class="column_inner">
										<div class="blog_holder blog_single">	
											<?php 
												get_template_part('blog_single', 'loop');
											?>
										</div>
									</div>
								</div>	
								<div class="column2"> 
									<?php get_sidebar(); ?>
								</div>
							</div>
						<?php elseif($qode_sidebar == "3" || $qode_sidebar == "4"): ?>
							<?php if($qode_sidebar == "3") : ?>	
								<div class="two_columns_33_66 background_color_sidebar grid2 clearfix">
								<div class="column1"> 
									<?php get_sidebar(); ?>
								</div>
								<div class="column2">
							<?php elseif($qode_sidebar == "4") : ?>	
								<div class="two_columns_25_75 background_color_sidebar grid2 clearfix">
									<div class="column1"> 
										<?php get_sidebar(); ?>
									</div>
									<div class="column2">
							<?php endif; ?>
							
										<div class="column_inner">
											<div class="blog_holder blog_single">	
												<?php 
													get_template_part('blog_single', 'loop');
												?>
											</div>
										</div>
									</div>	
									
								</div>
						<?php endif; ?>
					</div>
				</div>
			</div>						
<?php endwhile; ?>
<?php endif; ?>	


<?php get_footer(); ?>	