<?php

/**
 * The Template for displaying course badge in single course page and course archive page.
 *
 * This template can be overridden by copying it to yourtheme/masteriyo/course-badge.php.
 *
 * HOWEVER, on occasion Masteriyo will need to update template files and you
 * (the theme developer) will need to copy the new files to your theme to
 * maintain compatibility. We try to do this as little as possible, but it does
 * happen. When this occurs the version of the template file will be bumped and
 * the readme will list any important changes.
 *
 * @package Masteriyo\Templates
 * @version 1.9.3
 */

defined( 'ABSPATH' ) || exit;
?>


<?php
if ( masteriyo_get_setting( 'course_archive.components_visibility.course_badge' ) && masteriyo_get_setting( 'course_archive.components_visibility.thumbnail' ) && ! empty( $course->get_course_badge() ) ) :
	?>
	<div class="masteriyo-course--content__badge">
		<span class="masteriyo-badge"><?php echo esc_html( $course->get_course_badge() ); ?></span>
	</div>
<?php endif; ?>
