<?php 
// Template Name: Home Template
get_header();
if ( enigma_parallax_theme_is_companion_active() ) {

	get_template_part( 'sections/home', 'slideshow' );
		
	if ( $sections = json_decode( get_theme_mod( 'home_reorder' ), true ) ) {
		foreach ( $sections as $section ) {
			$data = $section."_home";
			if ( absint(get_theme_mod( $data, 1 )) == "1" ) {
				get_template_part( 'sections/home', $section );
			}
		}
	}
	 else {
		
		
		$about_home = absint(get_theme_mod( 'about_home','1' )) ;
	if ( $about_home == "1" ) {
	do_action('wl_companion_aboutsection_enigma_parallax');
	}
		
		get_template_part('sections/home','services'); 
		
		get_template_part( 'sections/home', 'portfolio' ); 
		
		$blog_home = absint(get_theme_mod( 'blog_home', 1 ));
		if ( $blog_home == 1 ) {
			get_template_part( 'sections/home', 'blog' );
		}

		get_template_part( 'sections/home', 'team' );
	}
	$fc_home = absint(get_theme_mod( 'fc_home', 1 ));
	if ( $fc_home == 1 ) {
		get_template_part( 'sections/footer', 'callout' );
	}		
} else { 
    get_template_part( 'template-parts/no', 'content' );
}
get_footer();