# photonic/3.37/include/js/front-end/src/Layouts/Layout.js

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

- Page: https://pluginprobe.com/plugins/photonic/3.37/code/include/js/front-end/src/Layouts/Layout.js
- Raw: https://pluginprobe.com/plugins/photonic/3.37/raw/include/js/front-end/src/Layouts/Layout.js
- Modified: 2024-05-07T23:56:08+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/Layouts/Layout.js#L10-L20`.

```javascript
import {JustifiedGrid} from "./Justified";
import {Mosaic} from "./Mosaic";
import {Masonry} from "./Masonry";
import {MasonryHorizontal} from "./MasonryHorizontal";
import * as Slider from "./Slider";

export const initializeLayouts = (lightbox) => {
	JustifiedGrid(false, false, null, lightbox);
	Mosaic(false, false);
	Masonry(false, false);
	MasonryHorizontal(false, false);

	Slider.initializeSliders();

	window.addEventListener('resize', () => {
		JustifiedGrid(true, false, '.photonic-random-layout.sizes-missing');
		Mosaic(true, false);
		Masonry(true, false);
		MasonryHorizontal(true, false);
	});
};

```
