FruitBank/Presentation/Nop.Web/Views/Shared/Components/BlogRssHeaderLink/Default.cshtml

10 lines
557 B
Plaintext

@using Nop.Core
@inject Nop.Services.Localization.ILocalizationService localizationService
@inject IStoreContext storeContext
@inject IWebHelper webHelper
@inject IWorkContext workContext
@{
var link = Url.RouteUrl("BlogRSS", new { languageId = (await workContext.GetWorkingLanguageAsync()).Id }, webHelper.GetCurrentRequestProtocol());
var storeName = await localizationService.GetLocalizedAsync(await storeContext.GetCurrentStoreAsync(), x => x.Name);
}
<link href="@link" rel="alternate" type="application/rss+xml" title="@storeName: Blog" />