-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Expand file tree
/
Copy pathindex.js
More file actions
45 lines (41 loc) · 966 Bytes
/
index.js
File metadata and controls
45 lines (41 loc) · 966 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/**
* WordPress dependencies
*/
import { __, _x } from '@wordpress/i18n';
import { gallery as icon } from '@wordpress/icons';
/**
* Internal dependencies
*/
import deprecated from './deprecated';
import edit from './edit';
import metadata from './block.json';
import save from './save';
import transforms from './transforms';
const { name } = metadata;
export { metadata, name };
export const settings = {
title: _x( 'Gallery', 'block title' ),
description: __( 'Display multiple images in a rich gallery.' ),
icon,
keywords: [ __( 'images' ), __( 'photos' ) ],
example: {
attributes: {
columns: 2,
imageCount: 2,
},
innerBlocks: [
{
name: 'core/image',
attributes: { url: 'https://s.w.org/images/core/5.3/Glacial_lakes%2C_Bhutan.jpg' },
},
{
name: 'core/image',
attributes: { url: 'https://s.w.org/images/core/5.3/Sediment_off_the_Yucatan_Peninsula.jpg' },
},
],
},
transforms,
edit,
save,
deprecated,
};