BlogEngine.Core.BlogSettings.GetThemeWithAdjustments C# (CSharp) Method

GetThemeWithAdjustments() public method

Takes into account factors such as if there is a theme override of if the theme is a Razor theme and returns the actual theme folder name for the current HTTP request.
public GetThemeWithAdjustments ( string themeOverride ) : string
themeOverride string
return string
        public string GetThemeWithAdjustments(string themeOverride)
        {
            string theme = this.Theme;
            bool isRazorTheme = configuredTheme == theme ? IsRazorTheme : IsThemeRazor(theme);
            if (!string.IsNullOrWhiteSpace(themeOverride))
            {
                theme = themeOverride;
                isRazorTheme = IsThemeRazor(theme);
            }
            return isRazorTheme ? "RazorHost" : theme;
        }