14 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?

  • JoeOuts
  • 97.4% (Exalted)
  • YAF Developer
14 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
YAF Logo Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved
About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button