<?php
/** 
 * Template Name: Front-Page
 * @package News Viral
 */
get_header(); 	?>
	
<div class="container padding-none">
	<div class="row">
		<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
			<?php  dynamic_sidebar('home-top-slider-post'); ?>
		</div>
	</div>
	<div class="row">
		<!-- content -->		
		<?php $sidebar_style = (!is_front_page() && is_page())?'single_sidebar_style':'blog_sidebar_style';
		$blog_layout_class=(get_theme_mod($sidebar_style,'right_sidebar') == 'left_sidebar')?"8":((get_theme_mod($sidebar_style,'right_sidebar') == 'right_sidebar')?"8":"12");
		 if(get_theme_mod($sidebar_style,'right_sidebar')=='left_sidebar'){ ?>
		<!-- Left sidebar -->
		<div class="col-md-4 col-sm-4 col-xs-12">
			<div class="text-center">
	        	<?php get_sidebar(); ?>		
	        </div>
		</div> <!-- and Left sidebar -->
		<?php } ?>
		<div class="col-md-8 col-sm-8 col-xs-12">
			<div class="row">
			<div class="col-md-6 col-sm-6 col-xs-12">
			 <?php  dynamic_sidebar('category-recent-post-left'); ?>
			 </div>
			 <div class="col-md-6 col-sm-6 col-xs-12">
			 <?php dynamic_sidebar('category-recent-post-right'); ?>
			  </div>
				</div>
			  <?php dynamic_sidebar('category-recent-post-style2'); 
			 while ( have_posts() ) : the_post();
				get_template_part( 'template-parts/content', 'page' );
				// If comments are open or we have at least one comment, load up the comment template.				
			endwhile; // End of the loop.
			?>
		</div><!-- and content -->
		<?php if(get_theme_mod($sidebar_style,'right_sidebar')=='right_sidebar'){ ?>
		<!-- right sidebar -->
		<div class="col-md-4 col-sm-4 col-xs-12">
			<div class="right_sidebar text-center">
	        	<?php get_sidebar(); ?>		
	        </div>
		</div>
		<?php } ?>
		<!-- and right sidebar -->
    </div>
    <div class="row">
    	<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">					
			<?php  dynamic_sidebar('footer-top-recent-category-post'); ?>
		</div>
    </div>
</div>
<?php
get_footer();