/var/www/vhosts/ihelp.ro/ajutam.ro/wp-content/plugins/give/blocks/donor-wall/edit
Edit: /var/www/vhosts/ihelp.ro/ajutam.ro/wp-content/plugins/give/blocks/donor-wall/edit/inspector.js (4269B)
/**
* WordPress dependencies
*/
const { __ } = wp.i18n;
const { InspectorControls } = wp.blockEditor;
const { PanelBody, SelectControl, ToggleControl, TextControl } = wp.components;
/**
* Internal dependencies
*/
import giveDonorWallOptions from '../data/options';
/**
* Render Inspector Controls
*/
const Inspector = ( { attributes, setAttributes } ) => {
const { donorsPerPage, ids, formID, orderBy, order, columns, avatarSize, showAvatar, showName, showCompanyName, showTotal, showDate, showComments, showAnonymous, onlyComments, commentLength, readMoreText, loadMoreText } = attributes;
const saveSetting = ( name, value ) => {
setAttributes( {
[ name ]: value,
} );
};
return (
saveSetting( 'donorsPerPage', value ) } />
saveSetting( 'ids', value ) } />
saveSetting( 'formID', value ) } />
saveSetting( 'orderBy', value ) } />
saveSetting( 'order', value ) } />
saveSetting( 'columns', value ) } />
saveSetting( 'avatarSize', value ) } />
saveSetting( 'showAvatar', value ) } />
saveSetting( 'showName', value ) } />
saveSetting( 'showCompanyName', value ) } />
saveSetting( 'showTotal', value ) } />
saveSetting( 'showDate', value ) } />
saveSetting( 'showComments', value ) } />
saveSetting( 'showAnonymous', value ) } />
saveSetting( 'onlyComments', value ) } />
saveSetting( 'commentLength', value ) } />
saveSetting( 'readMoreText', value ) } />
saveSetting( 'loadMoreText', value ) } />
);
};
export default Inspector;