<?php
/**
 * @package MatrixAddons
 * @subpackage trainifyframework
 * @since trainifyframework 1.0.0
 * @version 1.0.0
 * @description this file for multiple checkbox field
 */
$trainify_framework_widget_field_value = (array)$trainify_framework_widget_field_value;
?>
<p class="tff-widget-field-wrapper <?php echo esc_attr($trainify_framework_widget_field_wraper); ?>">
	<?php echo esc_html( $trainify_framework_widget_field_title ); ?>
	<?php foreach ( $trainify_framework_widget_field_options as $athm_option_name => $athm_option_title ) { ?>
		<label class="block-field widefat" for="<?php echo esc_attr( $trainifyframeworkwidget->get_field_id( $trainify_framework_widget_field_name ) ).esc_attr($athm_option_name); ?>">
			<input id="<?php echo esc_attr( $trainifyframeworkwidget->get_field_id( $trainify_framework_widget_field_name ) ).esc_attr($athm_option_name); ?>" name="<?php echo esc_attr( $trainifyframeworkwidget->get_field_name( $trainify_framework_widget_field_name ) ); ?>[]" type="checkbox" value="<?php echo esc_attr($athm_option_name); ?>" <?php checked(1, in_array($athm_option_name, $trainify_framework_widget_field_value) ); ?>/>
			<?php echo esc_html( $athm_option_title ); ?>
		</label>
	<?php } ?>
	<?php if ( isset( $trainify_framework_widget_field_description ) ) { ?>
		<br/>
		<small><?php echo wp_kses_post( $trainify_framework_widget_field_description ); ?></small>
	<?php } ?>
</p>