PluginProbe ʕ •ᴥ•ʔ
GenerateBlocks / 1.4.0
GenerateBlocks v1.4.0
trunk 1.0 1.0.1 1.0.2 1.1.0 1.1.1 1.1.2 1.2.0 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.6.0 1.7.0 1.7.1 1.7.2 1.7.3 1.8.0 1.8.1 1.8.2 1.8.3 1.9.0 1.9.1 2.0.0 2.0.1 2.0.2 2.1.0 2.1.1 2.1.2 2.2.0 2.2.1 2.3.0
generateblocks / src / blocks / headline / block.js
generateblocks / src / blocks / headline Last commit date
css 5 years ago attributes.js 4 years ago block.js 4 years ago deprecated.js 5 years ago edit.js 4 years ago editor.scss 5 years ago element-icons.js 4 years ago markformat.js 4 years ago save.js 5 years ago transforms.js 5 years ago
block.js
51 lines
1 /**
2 * Block: Headline
3 */
4
5 //import './style.scss';
6 import './editor.scss';
7
8 import editHeadline from './edit';
9 import saveHeadline from './save';
10 import blockAttributes from './attributes';
11 import transforms from './transforms';
12 import deprecated from './deprecated';
13 import getIcon from '../../utils/get-icon';
14
15 import {
16 __,
17 } from '@wordpress/i18n';
18
19 import {
20 registerBlockType,
21 } from '@wordpress/blocks';
22
23 /**
24 * Register our Headline block.
25 *
26 * @param {string} name Block name.
27 * @param {Object} settings Block settings.
28 * @return {?WPBlock} The block, if it has been successfully
29 * registered; otherwise `undefined`.
30 */
31 registerBlockType( 'generateblocks/headline', {
32 title: __( 'Headline', 'generateblocks' ),
33 description: __( 'Craft text-rich content with advanced typography.', 'generateblocks' ),
34 icon: getIcon( 'headline' ),
35 category: 'generateblocks',
36 keywords: [
37 __( 'heading' ),
38 __( 'headline' ),
39 __( 'title' ),
40 __( 'generate' ),
41 ],
42 attributes: blockAttributes,
43 supports: {
44 className: false,
45 },
46 edit: editHeadline,
47 save: saveHeadline,
48 transforms,
49 deprecated,
50 } );
51