How we can define constant in template.php for our theme
In the preprocess function (hook_preprocess_THEME), you can use this:

$variables['theme_path'] = drupal_get_path('theme', 'xyz');


Which you can then use as $theme_path in your template.