<?php

/**
 * The file that defines the core plugin configurator class
 *
 * @link       https://wpconfiguratorbuilder.com
 * @since      1.0.0
 *
 * @package    wcb-configurator-builder
 * @subpackage wcb-configurator-builder/includes
 */

if ( ! defined('ABSPATH') ) {
	die();
}

use Carbon_Fields\Block;
use Carbon_Fields\Field;

Block::make( __( 'WCB Shortcode', 'wcb-configurator-builder' ) )
	->add_fields( array(
		Field::make( 'text', 'wpcb_shortcode', __( 'Shortcode', 'wcb-configurator-builder' ) )
			->set_help_text( __( 'Enter any shortcode here', 'wcb-configurator-builder' ) ),
	) )
	->set_description( __( 'Displays shortcode contents in the configuration form', 'wcb-configurator-builder' ) )
	->set_keywords(['wcb', 'shortcode'])
	->set_category( 'wpcb-formatting', __( 'Formatting', 'wcb-configurator-builder' ) )
	->set_icon( 'shortcode' )
	->set_mode( 'edit' )
	->set_render_callback( function ( $fields, $attributes, $inner_blocks ) {
		
		// include block partial

	});