+
+
Unconfigured generic gallery part
+
+
+
diff --git a/src/main/resources/site/parts/block-gallery/block-gallery.js b/src/main/resources/site/parts/block-gallery/block-gallery.js
new file mode 100644
index 0000000..fdce992
--- /dev/null
+++ b/src/main/resources/site/parts/block-gallery/block-gallery.js
@@ -0,0 +1,18 @@
+var portal = require('/lib/xp/portal')
+var thymeleaf = require('/lib/thymeleaf')
+var contentPrep = require('/lib/labs/content-prep.js')
+
+exports.get = function (req) {
+ var component = portal.getComponent()
+ var model = {}
+ model.data = contentPrep.processBlockGallery(component.config)
+ model.data.isFullWidth = true
+ model.live = req.mode == 'live'
+ model.hasContent = model && model.data && model.data.hasOwnProperty('galleryImages')
+ var view = resolve('./block-gallery.html')
+ var body = thymeleaf.render(view, model)
+ return {
+ body: body,
+ contentType: 'text/html',
+ }
+}
diff --git a/src/main/resources/site/parts/block-gallery/block-gallery.xml b/src/main/resources/site/parts/block-gallery/block-gallery.xml
new file mode 100644
index 0000000..6900ea8
--- /dev/null
+++ b/src/main/resources/site/parts/block-gallery/block-gallery.xml
@@ -0,0 +1,9 @@
+