/
var
/
www
/
vhosts
/
ihelp.ro
/
ajutam.ro
/
wp-content
/
plugins
/
give
/
blocks
/
donation-form-grid
/
edit
/
/var/www/vhosts/ihelp.ro/ajutam.ro/wp-content/plugins/give/blocks/donation-form-grid/edit
mkdir
upload
Name
Size
Mode
Actions
block.js
655
0644
edit
dl
rm
inspector.js
3177
0644
edit
dl
rm
Edit:
/var/www/vhosts/ihelp.ro/ajutam.ro/wp-content/plugins/give/blocks/donation-form-grid/edit/block.js
(655B)
/** * WordPress dependencies */ const { Fragment } = wp.element; const ServerSideRender = wp.serverSideRender; const { withSelect } = wp.data; /** * Internal dependencies */ import Inspector from './inspector'; /** * Render Block UI For Editor */ const GiveDonationFormGrid = ( props ) => { const { attributes } = props; return ( <Fragment> <Inspector { ... { ...props } } /> <ServerSideRender block="give/donation-form-grid" attributes={ attributes } /> </Fragment> ); }; export default withSelect( ( select ) => { return { forms: select( 'core' ).getEntityRecords( 'postType', 'give_forms' ), }; } )( GiveDonationFormGrid );
Save
cmd:
run