Sindbad~EG File Manager
/**
* Internal block libraries
*/
var __ = wp.i18n.__;
var el = wp.element.createElement;
var registerBlockType = wp.blocks.registerBlockType;
var _wp$components = wp.components,
PanelBody = _wp$components.PanelBody,
RangeControl = _wp$components.RangeControl,
G = _wp$components.G,
SVG = _wp$components.SVG,
Path = _wp$components.Path;
var Fragment = wp.element.Fragment;
var createBlock = wp.blocks.createBlock;
var _wp$editor = wp.editor,
InspectorControls = _wp$editor.InspectorControls,
PanelColor = _wp$editor.InspectorControls,
InnerBlocks = _wp$editor.InnerBlocks;
/**
* Block dependencies
*/
var ALLOWED_BLOCKS = [];
var TEMPLATE = [
['core/paragraph', { className: 'proscons-title proscons-title-bg1', placeholder: __('Pros Title...') }],
['core/list', {}],
['core/paragraph', { className: 'proscons-title proscons-title-bg2', placeholder: __('Cons Title...') }],
['core/list', {}]
];
/**
* Register block
*/
registerBlockType('mwp/pros-cons', {
title: 'Pros & Cons',
category: 'mwp-all-blocks',
icon: {
foreground: '#cc3941',
src: 'welcome-write-blog'
},
attributes: {},
edit: function (props) {
var attributes = props.attributes,
setAttributes = props.setAttributes;
return el(
'div',
{ className: 'proscons-wrapper' },
el(InnerBlocks, {
template: TEMPLATE,
})
);
},
save: function () {
return el( 'div', { className: 'proscons-wrapper'},
el( InnerBlocks.Content )
);
}
});
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists