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