<?php
/**
 * The template for Site Preloader
 *
 * @package MatrixAddons
 * @subpackage trainify
 * @since 1.0.0
 */

$preloader = get_theme_mod('trainify_preloader_image');
if($preloader){
	?>
	<div id="trainify_preloader_wrapper" class="tff-preloader-wrapper">
		<div class="tff-preloader-table">
			<div class="tff-table-cell">
				<span class="spinner">
					<img class="img-responsive" src="<?php echo esc_url($preloader); ?>" alt="<?php esc_attr_e('Trainify Preloader', 'trainify'); ?>">
				</span>
			</div>
		</div>
	</div>
	<?php
}