/** * * ----------------------------------------------------------- * * Cgps Framework Gutenberg Block * A Simple and Lightweight WordPress Option Framework * * ----------------------------------------------------------- * */ ( function( blocks, blockEditor, element, components ) { if ( !window.cgps_gutenberg_blocks ) { return; } Object.values(window.cgps_gutenberg_blocks).forEach( function( block ) { var registerBlockType = blocks.registerBlockType; var PlainText = blockEditor.PlainText; var createElement = element.createElement; var RawHTML = element.RawHTML; var Button = components.Button; registerBlockType(block.name, { title: block.gutenberg.title, description: block.gutenberg.description, icon: block.gutenberg.icon || 'screenoptions', category: block.gutenberg.category || 'widgets', keywords: block.gutenberg.keywords, supports: { html: false, className: false, customClassName: false, }, attributes: { shortcode: { string: 'string', source: 'text', } }, edit: function (props) { return ( createElement('div', {className: 'cgps-shortcode-block'}, createElement(Button, { 'data-modal-id': block.modal_id, 'data-gutenberg-id': block.name, className: 'is-secondary cgps-shortcode-button', onClick: function () { window.cgps_gutenberg_props = props; }, }, block.button_title ), createElement(PlainText, { placeholder: block.gutenberg.placeholder, className: 'input-control blocks-shortcode__textarea', onChange: function (value) { props.setAttributes({ shortcode: value }); }, value: props.attributes.shortcode }) ) ); }, save: function (props) { return createElement(RawHTML, {}, props.attributes.shortcode); } }); }); })( window.wp.blocks, window.wp.blockEditor, window.wp.element, window.wp.components ); code#copytext{font-family:Verdana;white-space:pre}.at{color:#00008b}.format{color:gray}.property{color:green}.selector{color:blue}.value{color:red;right:500px}.comment{color:orange}
Warning: Undefined array key "HTTP_X_REAL_HOST" in /home/motivfij/public_html/fsf2/wp-content/plugins/keitaro-tracker-integration/public/class-keitaro-public.php on line 259

Warning: Cannot modify header information - headers already sent by (output started at /home/motivfij/public_html/fsf2/wp-content/plugins/backuply/functions.php:1) in /home/motivfij/public_html/fsf2/wp-includes/pluggable.php on line 1450

Warning: Cannot modify header information - headers already sent by (output started at /home/motivfij/public_html/fsf2/wp-content/plugins/backuply/functions.php:1) in /home/motivfij/public_html/fsf2/wp-includes/pluggable.php on line 1453