YAFLogo

fruitbatinshades
2009-05-06T01:58:12Z
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
2009-06-05T04:03:38Z
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