Your IP : 216.73.216.95


Current Path : /var/www/mainsite/wp-content/themes/maxcoach/learnpress/single-course/
Upload File :
Current File : /var/www/mainsite/wp-content/themes/maxcoach/learnpress/single-course/students.php

<?php
/**
 * Template for displaying students of single course.
 *
 * This template can be overridden by copying it to yourtheme/learnpress/single-course/students.php.
 *
 * @author        ThimPress
 * @package       Learnpress/Templates
 * @version       3.0.0
 *
 * @theme-version 2.5.0
 */

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

$course = learn_press_get_course();

// Do not show if course is no require enrollment
if ( ! $course || ! $course->is_required_enroll() ) {
	return;
}

$count = intval( $course->count_students() );
?>
<div class="course-students">
	<span class="meta-label">
		<i class="meta-icon far fa-user-alt"></i>
		<?php esc_html_e( 'Enrolled', 'maxcoach' ); ?>
	</span>
	<span class="meta-value">
		<?php echo esc_html( sprintf(
			'%s %s',
			$count,
			_n( 'student', 'students', $count, 'maxcoach' )
		) ); ?>
	</span>
</div>