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

// Load the existing render function.
require_once dirname( __DIR__, 3 ) . '/widgets/tags/widget-product-gallery/elementor-render.php';

/**
 * Render callback for ggmc/product-gallery block.
 */
function render_ggmc_product_gallery_block( $attributes ) {
    $product_data = ggmc_block_get_product_data( $attributes );
    $adapter      = new GGMC_Block_Adapter( $attributes, $product_data );
    ob_start();
    ggmc_product_gallery_render( $adapter );
    return ob_get_clean();
}
