'',
'label' => '',
'required' => false,
'hideLabel' => false,
'removeLabel' => false,
'slug' => null,
),
$attributes
);
$label = $attributes['label'];
$hide_label = $attributes['hideLabel'];
$class = 'ghostkit-form-field-label';
if ( $label && $attributes['required'] ) {
$label .= '*';
}
$label_attrs = array(
'for' => $attributes['slug'],
);
if ( $hide_label ) {
$class .= ' ghostkit-form-field-label-hidden';
}
if ( $label ) {
?>