<?php
/**
 * @package MatrixAddons
 * @subpackage trainifyframework
 * @since trainifyframework 1.0.0
 * @version 1.0.0
 * @description this file for checkbox field
 */
?>
<p class="tff-widget-field-wrapper <?php echo esc_attr($trainify_framework_widget_field_wraper); ?>">
	<input class="<?php echo esc_attr($trainify_framework_widget_relation_class); ?>" id="<?php echo esc_attr( $trainifyframeworkwidget->get_field_id( $trainify_framework_widget_field_name ) ); ?>" name="<?php echo esc_attr( $trainifyframeworkwidget->get_field_name( $trainify_framework_widget_field_name ) ); ?>" type="checkbox" value="1" <?php checked( '1', $trainify_framework_widget_field_value ); ?> data-relations="<?php echo esc_attr($trainify_framework_widget_relation_json) ?>"/>
	<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>
	<?php if ( isset( $trainify_framework_widget_field_description ) ) { ?>
		<br/>
		<small><?php echo wp_kses_post( $trainify_framework_widget_field_description ); ?></small>
	<?php } ?>
</p>