@await Html.PartialAsync("Table", new DataTablesModel
@@ -58,6 +59,10 @@ else
Title = T("Nop.Plugin.Baroque.Widgets.qBoSlider.Admin.AddWidgetZoneSlide.Fields.PictureUrl").Text,
Width = "300"
},
+ new ColumnProperty(nameof(AddWidgetZoneSlideModel.SlideModel.Name))
+ {
+ Title = T("Nop.Plugin.Baroque.Widgets.qBoSlider.Admin.AddWidgetZoneSlide.Fields.Name").Text
+ },
new ColumnProperty(nameof(AddWidgetZoneSlideModel.SlideModel.StartDateUtc))
{
Title = T("Nop.Plugin.Baroque.Widgets.qBoSlider.Admin.AddWidgetZoneSlide.Fields.StartDateUtc").Text,
diff --git a/Views/Admin/WidgetZone/_CreateOrUpdate.Slides.cshtml b/Views/Admin/WidgetZone/_CreateOrUpdate.Slides.cshtml
index 902ff4b..2b49a2b 100644
--- a/Views/Admin/WidgetZone/_CreateOrUpdate.Slides.cshtml
+++ b/Views/Admin/WidgetZone/_CreateOrUpdate.Slides.cshtml
@@ -18,6 +18,10 @@
Title = T("Nop.Plugin.Baroque.Widgets.qBoSlider.Admin.WidgetZone.SlideList.PictureUrl").Text,
Render = new RenderPicture()
},
+ new ColumnProperty(nameof(WidgetZoneSlideSearchModel.SlideListItem.Name))
+ {
+ Title = T("Nop.Plugin.Baroque.Widgets.qBoSlider.Admin.WidgetZone.SlideList.Name").Text
+ },
new ColumnProperty(nameof(WidgetZoneSlideSearchModel.SlideListItem.StartDateUtc))
{
Title = T("Nop.Plugin.Baroque.Widgets.qBoSlider.Admin.WidgetZone.SlideList.StartDateUtc").Text,
diff --git a/Views/Admin/_SlideSearch.cshtml b/Views/Admin/_SlideSearch.cshtml
new file mode 100644
index 0000000..9ec78dc
--- /dev/null
+++ b/Views/Admin/_SlideSearch.cshtml
@@ -0,0 +1,70 @@
+@model ISlideSearchModel
+@{
+ const string hideSearchBlockAttributeName = "Baroque.qBoSlider.Slide.HideSearchBlock";
+ var hideSearchBlock = await genericAttributeService.GetAttributeAsync
(await workContext.GetCurrentCustomerAsync(), hideSearchBlockAttributeName);
+}
+
+
+
+
+
@T("Admin.Common.Search")
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/plugin.json b/plugin.json
index 2ec1577..49ce518 100644
--- a/plugin.json
+++ b/plugin.json
@@ -2,7 +2,7 @@
"Group": "Widgets",
"FriendlyName": "qBoSlider",
"SystemName": "Widgets.qBoSlider",
- "Version": "1.3.1",
+ "Version": "1.4.1",
"SupportedVersions": [ "4.50" ],
"Author": "Baroque team",
"DisplayOrder": 1,
diff --git a/qBoOptions.cs b/qBoOptions.cs
index bed9a88..6bc8ba8 100644
--- a/qBoOptions.cs
+++ b/qBoOptions.cs
@@ -46,4 +46,14 @@ public enum DragOrientation : int
Vertical = 2,
Both = 3
}
+
+ ///
+ /// Represents entity publication state variants
+ ///
+ public enum PublicationState : int
+ {
+ All = 0,
+ Published = 5,
+ Unpublished = 10
+ }
}
diff --git a/qBoSliderPlugin.cs b/qBoSliderPlugin.cs
index 83e92c9..8ab303a 100644
--- a/qBoSliderPlugin.cs
+++ b/qBoSliderPlugin.cs
@@ -111,7 +111,7 @@ public async Task> GetWidgetZonesAsync()
activeWidgetZones = await activeWidgetZones
//process only authorized by ACL widget zones
.WhereAwait(async widgetZone => await _aclService.AuthorizeAsync(widgetZone)).ToListAsync();
- //prepare of store mapped widget zones
+ //prepare of store mapped widget zones
var widgetZoneSystemNames = await activeWidgetZones
.WhereAwait(async widgetZone => await _storeMappingService.AuthorizeAsync(widgetZone))
.Select(x => x.SystemName).Distinct().ToListAsync();
@@ -218,36 +218,39 @@ public override async Task InstallAsync()
//get sample pictures path
var sampleImagesPath = CommonHelper.DefaultFileProvider.MapPath("~/Plugins/Widgets.qBoSlider/Content/sample-images/");
- var picture1 = (await _pictureService.InsertPictureAsync(File.ReadAllBytes(string.Format("{0}banner1.jpg", sampleImagesPath)), "image/pjpeg", "qboslide-1")).Id;
+ var picture1Id = (await _pictureService.InsertPictureAsync(File.ReadAllBytes(string.Format("{0}banner1.jpg", sampleImagesPath)), "image/pjpeg", "qboslide-1")).Id;
var slide1 = new Slide()
{
+ Name = "New comfort mouse",
Description = "" +
"
NEW COMFORT MOUSE
" +
"
CHOOSE FROM HUNDREDS
" +
"
OF MODELS
" +
"
FROM ONLY $59.00
" +
"
SHOP NOW
",
- PictureId = picture1,
+ PictureId = picture1Id,
Published = true
};
await _slideService.InsertSlideAsync(slide1);
- var picture2 = _pictureService.InsertPictureAsync(File.ReadAllBytes(string.Format("{0}banner2.jpg", sampleImagesPath)), "image/pjpeg", "qboslide-2").GetAwaiter().GetResult().Id;
+ var picture2Id = (await _pictureService.InsertPictureAsync(File.ReadAllBytes(string.Format("{0}banner2.jpg", sampleImagesPath)), "image/pjpeg", "qboslide-2")).Id;
var slide2 = new Slide()
{
+ Name = "HD PRO WEBCAM H320",
Description = "" +
"
HD PRO WEBCAM H320
" +
"
720P FOR TRUE HD-QUALITY
VIDEO CHAT
" +
"
ONLY $79.00
" +
"
SHOP NOW
",
- PictureId = picture2,
+ PictureId = picture2Id,
Published = true,
};
await _slideService.InsertSlideAsync(slide2);
- var picture3 = _pictureService.InsertPictureAsync(File.ReadAllBytes(string.Format("{0}banner3.jpg", sampleImagesPath)), "image/pjpeg", "qboslide-3").GetAwaiter().GetResult().Id;
+ var picture3Id = (await _pictureService.InsertPictureAsync(File.ReadAllBytes(string.Format("{0}banner3.jpg", sampleImagesPath)), "image/pjpeg", "qboslide-3")).Id;
var slide3 = new Slide()
{
+ Name = "Compact camera SP120",
Description = "" +
"
COMPACT CAMERA SP120
" +
"
20X WIDE ZOOM, 2.5 LCD,
" +
@@ -255,7 +258,7 @@ public override async Task InstallAsync()
"
ONLY $159.00
" +
"
SHOP NOW
" +
"
",
- PictureId = picture3,
+ PictureId = picture3Id,
Published = true
};
await _slideService.InsertSlideAsync(slide3);