private string GetContainerSrc(PageSettings pageSettings) { var defaultContainer = _defaultPortalThemeController.GetDefaultPortalContainer(); if (pageSettings.ContainerSrc != null && pageSettings.ContainerSrc.Equals(defaultContainer, StringComparison.InvariantCultureIgnoreCase)) { return(null); } return(pageSettings.ContainerSrc); }
public HttpResponseMessage GetThemes() { var themes = _themesController.GetLayouts(PortalSettings, ThemeLevel.Global | ThemeLevel.Site); var defaultPortalThemeName = GetDefaultPortalTheme(); var defaultPortalLayout = _defaultPortalThemeController.GetDefaultPortalLayout(); var defaultPortalContainer = _defaultPortalThemeController.GetDefaultPortalContainer(); return(Request.CreateResponse(HttpStatusCode.OK, new { themes, defaultPortalThemeName, defaultPortalLayout, defaultPortalContainer })); }