Added file/fid/usage to cp_theme function #2719

Did a little refactoring.  in_array is much cleaner than a handful of or'ed equals conditions. #2719