<?php
if ( ! defined( 'ABSPATH' ) ) exit;
/**
 * @var array  $field
 * @var mixed  $value
 * @var string $name_base
 */
$val = is_scalar( $value ) ? (string) $value : '';
$default = isset( $field['default'] ) ? (string) $field['default'] : '';
?>
<input type="text"
       id="cn-field-<?php echo esc_attr( $field['id'] ); ?>"
       name="<?php echo esc_attr( $name_base ); ?>"
       value="<?php echo esc_attr( $val ); ?>"
       data-default-color="<?php echo esc_attr( $default ); ?>"
       class="cn-input cn-input-color" />
