HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/confeduphaar/public_html/wp-content/plugins/essential-blocks/src/blocks/row/src/deprecated.js
/**
 * WordPress dependencies
 */
import { InnerBlocks, useBlockProps } from "@wordpress/block-editor";
import { omit } from "lodash";

import attributes from "./attributes";

const deprecated = [
    {
        attributes: { ...attributes },
        supports: {
            html: false,
            anchor: true,
            align: ["wide", "full"],
        },
        save: ({ attributes }) => {
            const {
                blockId,
                classHook
            } = attributes;

            return (
                <div {...useBlockProps.save()}>
                    <div className={`eb-parent-wrapper eb-parent-${blockId} ${classHook}`}>
                        <div className={`eb-row-root-container ${blockId}`} data-id={blockId}>
                            <div className={`eb-row-wrapper`}>
                                <div className="eb-row-inner">
                                    <InnerBlocks.Content />
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            );
        },
    },
    {
        attributes: { ...attributes },
        supports: {
            html: false,
            anchor: true,
            align: ["wide", "full"],
        },
        save: ({ attributes }) => {
            const { blockId } = attributes;

            return (
                <div {...useBlockProps.save()}>
                    <div className={`eb-row-root-container ${blockId}`} data-id={blockId}>
                        <div className={`eb-row-wrapper`}>
                            <div className="eb-row-inner">
                                <InnerBlocks.Content />
                            </div>
                        </div>
                    </div>
                </div>
            );
        },
    },
    {
        supports: {
            // inserter: false,
            // reusable: false,
            html: false,
            anchor: true,
            // Declare support for specific alignment options.
            align: ["wide", "full"],
        },
        attributes: omit(
            {
                ...attributes,
                wrpMrg_Right: {
                    type: "string",
                },
                wrpMrg_Left: {
                    type: "string",
                },
                TABwrpMrg_Right: {
                    type: "string",
                },
                TABwrpMrg_Left: {
                    type: "string",
                },
                MOBwrpMrg_Right: {
                    type: "string",
                },
                MOBwrpMrg_Left: {
                    type: "string",
                },
            },
            []
        ),
        save: ({ attributes }) => {
            const { blockId } = attributes;

            return (
                <div {...useBlockProps.save()}>
                    <div className={`eb-row-wrapper ${blockId}`} data-id={blockId}>
                        <div className="eb-row-inner">
                            <InnerBlocks.Content />
                        </div>
                    </div>
                </div>
            );
        },
    },
];

export default deprecated;