| 1 |
/** |
| 2 |
* WordPress dependencies |
| 3 |
*/ |
| 4 |
import { __ } from '@wordpress/i18n' |
| 5 |
const {registerBlockType} = wp.blocks; |
| 6 |
|
| 7 |
/** |
| 8 |
* Internal dependencies |
| 9 |
*/ |
| 10 |
import GiveIcon from '@givewp/components/GiveIcon'; |
| 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 |
apiVersion: 3, |
| 26 |
title: __('Multi-Form Goal', 'give'), |
| 27 |
description: __( |
| 28 |
'The Multi-Form Goals block displays progress made across donation forms towards a common goal.', |
| 29 |
'give' |
| 30 |
), |
| 31 |
category: 'give', |
| 32 |
icon: <GiveIcon color="grey" />, |
| 33 |
keywords: [__('donation', 'give'), __('multi form goals', 'give')], |
| 34 |
supports: { |
| 35 |
align: ['wide'], |
| 36 |
}, |
| 37 |
edit: edit, |
| 38 |
save: save, |
| 39 |
}); |
| 40 |
|