<?php

if ( !defined( 'ABSPATH' ) ) {
    exit;
}
?>
<div class="rn-field-wrapper<?php echo esc_attr(($field['center_head'] == true) ? ' rn-center' : ''); ?>"<?php echo (isset($field['dyn_field_id'])) ? ' data-dyn_field_id="' . esc_attr($field['dyn_field_id']) . '"' : ''; ?>>
    <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
            do_action('reon_render-control-label', $label);
        }
        ?>
        <label class="rn-field rn-spectrum rn-no-border">            
            <input <?php echo wp_kses_post(Reon_Utils::array_to_attributes(apply_filters('reon_control-attributes', $attributes, $field))); ?> />
        </label>  
        <?php do_action('reon_render-control-tooltip', $field['tooltip']); ?>
    </div>        
</div>