10 lines
557 B
Plaintext
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("NewsRSS", 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: News" /> |