mirror of https://github.com/abpframework/abp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
849 B
29 lines
849 B
using Microsoft.Extensions.Localization;
|
|
using Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Components;
|
|
using Volo.Abp.Configuration;
|
|
using Volo.Abp.DependencyInjection;
|
|
using Volo.Docs.Localization;
|
|
|
|
namespace VoloDocs.Web.Branding
|
|
{
|
|
[Dependency(ReplaceServices = true)]
|
|
public class VoloDocsBrandingProvider : DefaultBrandingProvider
|
|
{
|
|
public VoloDocsBrandingProvider(IConfigurationAccessor configurationAccessor, IStringLocalizer<DocsResource> localizer)
|
|
{
|
|
var configuration = configurationAccessor.Configuration;
|
|
|
|
AppName = localizer["DocsTitle"];
|
|
|
|
if (configuration["LogoUrl"] != null)
|
|
{
|
|
LogoUrl = configuration["LogoUrl"];
|
|
}
|
|
}
|
|
|
|
public override string AppName { get; }
|
|
|
|
public override string LogoUrl { get; }
|
|
}
|
|
}
|