<?php /** * Template for displaying course students within the loop. * * This template can be overridden by copying it to yourtheme/learnpress/loop/course/students.php. * * @author ThimPress * @package Learnpress/Templates * @version 3.0.0 */ /** * Prevent loading this file directly */ defined( 'ABSPATH' ) || exit(); $course = LP_Global::course(); if ( ! $course ) { return; } $count = $course->get_users_enrolled(); ?> <div class="course-students"> <label><?php esc_html_e( 'Students', 'eduma' ); ?></label> <div class="value"><i class="fa fa-group"></i> <?php echo esc_html( $count ); ?> </div> <span><?php echo $count > 1 ? sprintf( __( 'students', 'learnpress' ) ) : sprintf( __( 'student', 'learnpress' ) ); ?></span> </div>
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
author.php | File | 1.08 KB | 0644 |
|
instructor.php | File | 1.09 KB | 0644 |
|
loop-begin.php | File | 351 B | 0644 |
|
loop-end.php | File | 347 B | 0644 |
|
pagination.php | File | 1.07 KB | 0644 |
|
price.php | File | 1.11 KB | 0644 |
|
students.php | File | 767 B | 0644 |
|
thumbnail.php | File | 838 B | 0644 |
|