<?php
if ( ! defined( 'ABSPATH' ) ) {
    exit;
}

class IDVE_Block_Group {

    public static function register( IDVE_Blocks $registry ) {
        $registry->register( 'group', array(
            'label'    => __( 'Group', 'insight-dezign-visual-editor' ),
            'icon'     => 'screenoptions',
            'category' => 'layout',
            'fields'   => array(
                'minHeight' => array( 'type' => 'text', 'label' => __( 'Min Height', 'insight-dezign-visual-editor' ), 'default' => '', 'tooltip' => 'Any CSS value, e.g. 200px or 50vh.' ),
            ),
            'render' => array( __CLASS__, 'render' ),
        ) );
    }

    public static function render( $data, $settings ) {
        // Group rendering is handled by the renderer which iterates child blocks.
        return '';
    }
}
