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.

 Now for scholar-3.9!

#2719