public static string GetLogoDocsEditor(bool general)
 {
     if (CoBrandingEnabled)
     {
         var _tenantCoBrandingSettings = SettingsManager.Instance.LoadSettings <TenantCoBrandingSettings>(TenantProvider.CurrentTenantID);
         return(_tenantCoBrandingSettings.GetAbsoluteLogoPath(CoBrandingLogoTypeEnum.DocsEditor, general));
     }
     return(TenantCoBrandingSettings.GetAbsoluteDefaultLogoPath(CoBrandingLogoTypeEnum.DocsEditor, general));
 }
        public static string GetTopLogo(bool general)//LogoLightSmall
        {
            if (CoBrandingEnabled)
            {
                var _tenantCoBrandingSettings = SettingsManager.Instance.LoadSettings <TenantCoBrandingSettings>(TenantProvider.CurrentTenantID);

                return(_tenantCoBrandingSettings.GetAbsoluteLogoPath(CoBrandingLogoTypeEnum.LightSmall, general));
            }
            return(TenantCoBrandingSettings.GetAbsoluteDefaultLogoPath(CoBrandingLogoTypeEnum.LightSmall, general));
        }
        public static string GetLogoDark(bool general)
        {
            if (CoBrandingEnabled)
            {
                var _tenantCoBrandingSettings = SettingsManager.Instance.LoadSettings <TenantCoBrandingSettings>(TenantProvider.CurrentTenantID);

                var fromSettingsDarkLogoPath = _tenantCoBrandingSettings.GetAbsoluteLogoPath(CoBrandingLogoTypeEnum.Dark, general);
                var defaultDarkLogoPath      = TenantCoBrandingSettings.GetAbsoluteDefaultLogoPath(CoBrandingLogoTypeEnum.Dark, general);

                if (!String.Equals(fromSettingsDarkLogoPath, defaultDarkLogoPath, StringComparison.OrdinalIgnoreCase))
                {
                    return(fromSettingsDarkLogoPath);
                }
            }

            /*** simple scheme ***/
            var _tenantInfoSettings = SettingsManager.Instance.LoadSettings <TenantInfoSettings>(TenantProvider.CurrentTenantID);

            return(_tenantInfoSettings.GetAbsoluteCompanyLogoPath());
            /***/
        }
        public static string GetFavicon(bool general, bool timeParam)
        {
            var faviconPath = "";

            if (CoBrandingEnabled)
            {
                var _tenantCoBrandingSettings = SettingsManager.Instance.LoadSettings <TenantCoBrandingSettings>(TenantProvider.CurrentTenantID);
                faviconPath = _tenantCoBrandingSettings.GetAbsoluteLogoPath(CoBrandingLogoTypeEnum.Favicon, general);
                if (timeParam)
                {
                    var now = DateTime.Now;
                    faviconPath = String.Format("{0}?t={1}", faviconPath, now.Ticks);
                }
            }
            else
            {
                faviconPath = TenantCoBrandingSettings.GetAbsoluteDefaultLogoPath(CoBrandingLogoTypeEnum.Favicon, general);
            }

            return(faviconPath);
        }