Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

Default.cshtml

@model NopCommerceNewsModel
@inject IWorkContext workContext
@inject Nop.Services.Common.IGenericAttributeService genericAttributeService

@{
    const string cardId = "nopcommerce-news-box";
    const string hideCardAttributeName = "HideNopCommerceNewsCard";
    var hideCard = await genericAttributeService.GetAttributeAsync(await workContext.GetCurrentCustomerAsync(), hideCardAttributeName);
}

    
@T("Admin.NopCommerceNews") @if (Model.HasNewItems) {
+1
}
@foreach (var item in Model.Items) {
@if (!string.IsNullOrEmpty(item.Url)) { @item.Title } else {
@item.Title
} @*
@item.PublishDate.ToString("d")
*@
@Html.Raw(item.Summary)
}