Current Path : /var/www/ooareogundevinitiative/wp-content/plugins/give/blocks/donation-form/ |
Current File : /var/www/ooareogundevinitiative/wp-content/plugins/give/blocks/donation-form/index.js |
/** * WordPress dependencies */ const { __ } = wp.i18n; const { registerBlockType } = wp.blocks; /** * Internal dependencies */ import './style.scss'; import GiveLogo from '../components/logo'; import blockAttributes from './data/attributes'; import GiveForm from './edit/block'; /** * Register Block */ export default registerBlockType( 'give/donation-form', { title: __( 'Donation Form' ), description: __( 'The GiveWP Donation Form block inserts an existing donation form into the page. Each donation form\'s presentation can be customized below.' ), category: 'give', icon: <GiveLogo color="grey" />, keywords: [ __( 'donation' ), ], supports: { html: false, }, attributes: blockAttributes, edit: GiveForm, save: () => { // Server side rendering via shortcode return null; }, } );