403Webshell
Server IP : 192.158.238.246  /  Your IP : 3.14.4.171
Web Server : LiteSpeed
System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64
User : jenniferflocom ( 1321)
PHP Version : 8.1.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/jenniferflocom/www/wp-content/plugins/gutenkit-blocks-addon/src/blocks/container/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/jenniferflocom/www/wp-content/plugins/gutenkit-blocks-addon/src/blocks/container/transform.js
import { createBlock } from '@wordpress/blocks';
const transforms = {
    from: [
        {
            type: 'block',
            isMultiBlock: true,
            blocks: ['*'],
            __experimentalConvert(blocks) {
                const conatinerInnerBlocks = blocks.map((block) => {
                    return createBlock(
                        block.name,
                        block.attributes,
                        block.innerBlocks
                    );
                });

                return createBlock(
                    'gutenkit/container',
                    {
                        variationSeleted: true,
                        columnsWidth: 100
                    },
                    conatinerInnerBlocks
                );
            },
        },
    ],
    to: [
        {
            type: 'block',
            blocks: ['*'],
            transform: (attributes, innerBlocks) => innerBlocks,
        },
    ],
};


export default transforms;

Youez - 2016 - github.com/yon3zu
LinuXploit