<?php
/**
 * Template Name: Custom Home Page
 *
 * @package Stylish Blog
 * @subpackage stylish_blog
 */

get_header(); ?>

<main id="tp_content" role="main">
			<?php
				$stylish_blog_slider_option = get_theme_mod( 'stylish_blog_slider_option','defaut-layout');
				if($stylish_blog_slider_option == 'defaut-layout'){ ?>

				<?php do_action( 'stylish_blog_before_slider' ); ?>

				<?php get_template_part( 'template-parts/home/slider' ); ?>
				<?php do_action( 'stylish_blog_after_slider' ); ?>

				<?php get_template_part( 'template-parts/home/category-tab' ); ?>
				<?php do_action( 'stylish_blog_after_category-tab' ); ?>
				
		<?php }
		else if($stylish_blog_slider_option == 'custom-layout'){ ?>
			<div class=" slider2 col-lg-12 col-md-12">
				<?php do_action( 'stylish_blog_before_slider' ); ?>
				<?php get_template_part( 'template-parts/home/slider' ); ?>
				<?php do_action( 'stylish_blog_after_slider' ); ?>

			</div>
		<?php }?>

	<?php get_template_part( 'template-parts/home/home-content' ); ?>
	<?php do_action( 'stylish_blog_after_home_content' ); ?>
</main>

<?php get_footer();
