bloginfo vs. template_directory

Try not to use bloginfo( 'template_url' ); or get_bloginfo(); functions. Why, you ask? Simply put, these functions are for sissies. Put more politely, these functions are ancient and don’t take into account some of the newer features of WordPress.

Instead, use:

get_template_directory(); ← This returns the file path to the theme directory.
get_template_directory_uri(); ← This returns the URL path to the theme directory.

Because these functions simply return path values, make sure to throw an echo into your function if you want to echo the file or URL path.
echo get_template_directory();
echo get_template_directory_uri();