<?php
/**
 * @package MatrixAddons
 * @subpackage trainifyframework
 * @since trainifyframework 1.0.0
 * @version 1.0.0
 * @description this file for number field
 */
$field_attribute = isset($widget_field['trainify_framework_widget_field_attrs']) ? $widget_field['trainify_framework_widget_field_attrs'] : array();
?>
<p class="tff-widget-field-wrapper <?php echo esc_attr($trainify_framework_widget_field_wraper); ?>">
	<label for="<?php echo esc_attr( $trainifyframeworkwidget->get_field_id( $trainify_framework_widget_field_name ) ); ?>">
		<?php echo esc_html( $trainify_framework_widget_field_title ); ?>:
	</label><br/>
	<input class="widefat" name="<?php echo esc_attr( $trainifyframeworkwidget->get_field_name( $trainify_framework_widget_field_name ) ); ?>" type="number" id="<?php echo esc_attr( $trainifyframeworkwidget->get_field_id( $trainify_framework_widget_field_name ) ); ?>" value="<?php echo esc_attr( $trainify_framework_widget_field_value ); ?>" <?php trainify_framework_the_attr($field_attribute); ?>/>
	<?php if ( isset( $trainify_framework_widget_field_description ) ) { ?>
		<br/>
		<small><?php echo esc_html( $trainify_framework_widget_field_description ); ?></small>
	<?php } ?>
</p>