using Nop.Plugin.Misc.TestPlugin.Components;
using Nop.Services.Cms;
using Nop.Services.Plugins;
using Nop.Web.Framework.Infrastructure;
namespace Nop.Plugin.Misc.TestPlugin;
///
/// Rename this file and change to the correct type
///
public class AgeVerificationPlugin : BasePlugin, IWidgetPlugin
{
public bool HideInWidgetList => true;
public Type GetWidgetViewComponent(string widgetZone)
{
return typeof(AgeVerificationViewComponent);
}
public Task> GetWidgetZonesAsync()
{
return Task.FromResult>(new List { PublicWidgetZones.HomepageTop });
}
public override async Task InstallAsync()
{
// Add installation logic if needed
await base.InstallAsync();
}
public override async Task UninstallAsync()
{
// Add uninstallation logic if needed
await base.UninstallAsync();
}
}