index.js
41 lines
| 1 | /** |
| 2 | * WordPress dependencies |
| 3 | */ |
| 4 | const { __ } = wp.i18n; |
| 5 | const { registerBlockType } = wp.blocks; |
| 6 | |
| 7 | /** |
| 8 | * Internal dependencies |
| 9 | */ |
| 10 | import GiveLogo from '../../components/logo'; |
| 11 | import edit from './edit'; |
| 12 | import save from './save'; |
| 13 | |
| 14 | /** |
| 15 | * Required styles (both common and editor styles) |
| 16 | */ |
| 17 | import '../../../css/common.scss'; |
| 18 | import '../../../css/editor.scss'; |
| 19 | |
| 20 | /** |
| 21 | * Register Block |
| 22 | */ |
| 23 | |
| 24 | export default registerBlockType( 'give/multi-form-goal', { |
| 25 | title: __( 'Multi-Form Goal', 'give' ), |
| 26 | description: __( 'The Multi-Form Goals block displays progress made across donation forms towards a common goal.', 'give' ), |
| 27 | category: 'give', |
| 28 | icon: <GiveLogo color="grey" />, |
| 29 | keywords: [ |
| 30 | __( 'donation', 'give' ), |
| 31 | __( 'multi form goals', 'give' ), |
| 32 | ], |
| 33 | supports: { |
| 34 | align: [ |
| 35 | 'wide', |
| 36 | ], |
| 37 | }, |
| 38 | edit: edit, |
| 39 | save: save, |
| 40 | } ); |
| 41 |