<?php

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

?><div <?php echo wp_kses_post(Reon_Utils::array_to_attributes($wrapper_attr)); ?>>
    <div <?php echo wp_kses_post(Reon_Utils::array_to_attributes(apply_filters('reon_control-box-attributes', $box_attributes, $field))); ?>>
        <?php
        if (isset($field['label'])) {
            $label = $field['label'];// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound
            $label['single'] = true;// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound
            $label['no-space'] = true;// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound
            do_action('reon_render-control-label', $label);
        }
        ?>
        <input <?php echo wp_kses_post(Reon_Utils::array_to_attributes(apply_filters('reon_control-attributes', $attributes, $field))); ?> />
        <?php do_action('reon_render-control-tooltip', $field['tooltip']); ?>
    </div>

</div>