YAFLogo

fruitbatinshades
13 years ago
I need to do a little more in the header than the xml themes allow. How do I get the current theme? I've found YafContext but am not sure how to get access to it?
Sponsor

JoeOuts
  • JoeOuts
  • 97.4% (Exalted)
  • YAF Developer
13 years ago
This should do it.

string themeDir = YAF.Classes.Utils.YafContext.Current.Theme.ThemeDir;

string themeFile = YAF.Classes.Utils.YafContext.Current.Theme.ThemeFile;


KASL Technologies  - Specializing in Custom Web Application Development