';
foreach( $home_sections as $section ){
if($section == 'slider'){
get_template_part( 'sections/' . esc_attr( $section ) );
}else{
echo '
';
echo '';
get_template_part( 'sections/' . esc_attr( $section ) );
echo '
';
}
}
echo '';
get_footer();
}
else {
//If all section are disabled then this respective page template.
include( get_page_template() );
}