I'd like to avoid breaking my theme paths eg. ( /sites/all/themes/currenttheme ) by using a php variable like $directory/currenttheme to get the path for the current theme running. I know I saw this somewhere as recommended practice but I can't seem to figure out the proper syntax to do it.
Can anyone point me to the right page or tell me the syntax for it?
The problem is when I moved my theme from a local test site to remote multiinstallation of drupal, all the theme paths to my image directory broke