add ThemeState property to ThemeBase
This commit is contained in:
parent
b2ac561673
commit
37afd1aec9
|
@ -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
|
// path method
|
||||||
|
|
||||||
public string ThemePath()
|
public string ThemePath()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user