# photonic/3.37/include/js/front-end/src/Entries/LightGallery.js

Photonic Gallery &amp; Lightbox for Flickr, SmugMug &amp; Others, version 3.37. 19 lines.

- Page: https://pluginprobe.com/plugins/photonic/3.37/code/include/js/front-end/src/Entries/LightGallery.js
- Raw: https://pluginprobe.com/plugins/photonic/3.37/raw/include/js/front-end/src/Entries/LightGallery.js
- Modified: 2022-04-11T23:54:20+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/photonic/3.37/code/include/js/front-end/src/Entries/LightGallery.js#L10-L20`.

```javascript
import {Core} from "../Core";
import {PhotonicLightGallery} from "../Lightboxes/LightGallery";
import * as Listeners from "../Listeners";
import * as Layout from "../Layouts/Layout";

document.addEventListener('DOMContentLoaded', () => {
	const lightbox = new PhotonicLightGallery();
	Core.setLightbox(lightbox);
	// lightbox.initialize('.photonic-standard-layout,.photonic-random-layout,.photonic-masonry-layout,.photonic-mosaic-layout');
	lightbox.initialize('.photonic-level-1-container');
	lightbox.initialize('a[rel="photonic-lightgallery"]', true);
	lightbox.initialize('a.lightgallery-video', true);
	lightbox.initialize('a.lightgallery-html5-video', true);

	Core.executeCommon();
	Listeners.addAllListeners();
	Layout.initializeLayouts(lightbox);
});

```
