add ThemeState property to ThemeBase

This commit is contained in:
sbwalker 2025-01-28 08:27:10 -05:00
parent b2ac561673
commit 37afd1aec9

View File

@ -84,6 +84,16 @@ namespace Oqtane.Themes
}
}
// property for obtaining theme information about this theme component
public Theme ThemeState
{
get
{
var type = GetType().Namespace + ", " + GetType().Assembly.GetName().Name;
return PageState?.Site.Themes.FirstOrDefault(item => item.ThemeName == type);
}
}
// path method
public string ThemePath()