PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 2.19.5
GiveWP – Donation Plugin and Fundraising Platform v2.19.5
4.16.8 4.16.7.2 4.16.7.1 4.16.7 4.16.6.1 4.16.6 4.16.5.1 4.16.5 4.16.4 4.16.3 4.16.2 4.16.1 4.16.0 4.15.5 4.15.4 4.15.3 4.15.2 4.15.1 4.15.0 2.3.0 2.3.1 2.3.2 2.30.0 2.31.0 2.31.1 All 253 releases
give / src / MultiFormGoals / resources / js / blocks / progress-bar / index.js
index.js
37 lines 887 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /**
2 * WordPress dependencies
3 */
4 const {__} = wp.i18n;
5 const {registerBlockType} = wp.blocks;
6
7 /**
8 * Internal dependencies
9 */
10 import blockAttributes from './data/attributes';
11 import GiveIcon from '@givewp/components/GiveIcon';
12 import ProgressBar from './edit';
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/progress-bar', {
25 title: __('Progress Bar', 'give'),
26 description: __(
27 'The Progress Bar block displays progress made across donation forms towards a common goal.',
28 'give'
29 ),
30 category: 'give',
31 icon: <GiveIcon color="grey" />,
32 keywords: [__('donation', 'give'), __('progress-bar', 'give')],
33 attributes: blockAttributes,
34 parent: ['give/multi-form-goal'],
35 edit: ProgressBar,
36 });
37