$sections_sort_val ) : if ( 'slider' === $sections_sort_val ) : get_template_part( 'sections/section', 'slider' ); endif; if ( 'services' === $sections_sort_val ) : get_template_part( 'sections/section', 'services' ); endif; if ( 'products' === $sections_sort_val ) : get_template_part( 'sections/section', 'products' ); endif; if ( 'slogan' === $sections_sort_val ) : get_template_part( 'sections/section', 'slogan' ); endif; if ( 'choose' === $sections_sort_val ) : get_template_part( 'sections/section', 'choose' ); endif; if ( 'reviews' === $sections_sort_val ) : get_template_part( 'sections/section', 'reviews' ); endif; if ( 'cta' === $sections_sort_val ) : get_template_part( 'sections/section', 'cta' ); endif; if ( 'team' === $sections_sort_val ) : get_template_part( 'sections/section', 'team' ); endif; if ( 'news' === $sections_sort_val ) : get_template_part( 'sections/section', 'news' ); endif; if ( 'brands' === $sections_sort_val ) : get_template_part( 'sections/section', 'brands' ); endif; if ( 'contact' === $sections_sort_val ) : get_template_part( 'sections/section', 'contact' ); endif; endforeach; } else { get_template_part( 'sections/section', 'slider' ); get_template_part( 'sections/section', 'services' ); get_template_part( 'sections/section', 'products' ); get_template_part( 'sections/section', 'slogan' ); get_template_part( 'sections/section', 'choose' ); get_template_part( 'sections/section', 'reviews' ); get_template_part( 'sections/section', 'cta' ); get_template_part( 'sections/section', 'contact' ); } get_footer(); }else{ //If all section are disabled then show respective page template. include( get_page_template() ); }