found_posts;
if ( is_search() ) {
$template_search = th90_display_elementor_content( th90_opt( 'search_template' ) );
if ( $template_search && $posts_found ) {
echo apply_filters( 'th90_print_search_template', $template_search );
} else {
get_template_part( 'template-parts/default', 'archive' );
}
} else {
$template_archive = th90_display_elementor_content( th90_opt( 'archive_template' ) );
if ( $template_archive ) {
echo apply_filters( 'th90_print_archive_template', $template_archive );
}
else {
get_template_part( 'template-parts/default', 'archive' );
}
}
?>