field['min'] ) ) {
$attr[] = 'min="' . $this->field['min'] . '"';
}
if ( ! empty( $this->field['max'] ) ) {
$attr[] = 'max="' . $this->field['max'] . '"';
}
if ( ! empty( $this->field['step'] ) ) {
$attr[] = 'step="' . $this->field['step'] . '"';
}
$attrs = ( ! empty( $attr ) ) ? ' ' . trim( implode( ' ', $attr ) ) : '';
$unit = ( isset( $this->field['unit'] ) ) ? '' . $this->field['unit'] . '' : '';
$classes = ( isset( $this->field['class'] ) ) ? implode( ' ', explode( ' ', $this->field['class'] ) ) : '';
echo $this->element_before();
echo 'element_attributes() . '>' . $unit;
echo '';
echo $this->element_after();
}
}
}