51 lines
2.1 KiB
C#
51 lines
2.1 KiB
C#
using Nop.Web.Framework.Models;
|
|
using Nop.Web.Framework.Mvc.ModelBinding;
|
|
|
|
namespace Nop.Web.Areas.Admin.Models.Settings;
|
|
|
|
/// <summary>
|
|
/// Represents a news settings model
|
|
/// </summary>
|
|
public partial record NewsSettingsModel : BaseNopModel, ISettingsModel
|
|
{
|
|
#region Properties
|
|
|
|
public int ActiveStoreScopeConfiguration { get; set; }
|
|
|
|
[NopResourceDisplayName("Admin.Configuration.Settings.News.Enabled")]
|
|
public bool Enabled { get; set; }
|
|
public bool Enabled_OverrideForStore { get; set; }
|
|
|
|
[NopResourceDisplayName("Admin.Configuration.Settings.News.AllowNotRegisteredUsersToLeaveComments")]
|
|
public bool AllowNotRegisteredUsersToLeaveComments { get; set; }
|
|
public bool AllowNotRegisteredUsersToLeaveComments_OverrideForStore { get; set; }
|
|
|
|
[NopResourceDisplayName("Admin.Configuration.Settings.News.NotifyAboutNewNewsComments")]
|
|
public bool NotifyAboutNewNewsComments { get; set; }
|
|
public bool NotifyAboutNewNewsComments_OverrideForStore { get; set; }
|
|
|
|
[NopResourceDisplayName("Admin.Configuration.Settings.News.ShowNewsOnMainPage")]
|
|
public bool ShowNewsOnMainPage { get; set; }
|
|
public bool ShowNewsOnMainPage_OverrideForStore { get; set; }
|
|
|
|
[NopResourceDisplayName("Admin.Configuration.Settings.News.MainPageNewsCount")]
|
|
public int MainPageNewsCount { get; set; }
|
|
public bool MainPageNewsCount_OverrideForStore { get; set; }
|
|
|
|
[NopResourceDisplayName("Admin.Configuration.Settings.News.NewsArchivePageSize")]
|
|
public int NewsArchivePageSize { get; set; }
|
|
public bool NewsArchivePageSize_OverrideForStore { get; set; }
|
|
|
|
[NopResourceDisplayName("Admin.Configuration.Settings.News.ShowHeaderRSSUrl")]
|
|
public bool ShowHeaderRssUrl { get; set; }
|
|
public bool ShowHeaderRssUrl_OverrideForStore { get; set; }
|
|
|
|
[NopResourceDisplayName("Admin.Configuration.Settings.News.NewsCommentsMustBeApproved")]
|
|
public bool NewsCommentsMustBeApproved { get; set; }
|
|
public bool NewsCommentsMustBeApproved_OverrideForStore { get; set; }
|
|
|
|
[NopResourceDisplayName("Admin.Configuration.Settings.News.ShowNewsCommentsPerStore")]
|
|
public bool ShowNewsCommentsPerStore { get; set; }
|
|
|
|
#endregion
|
|
} |