add-to-cart-edd.php
1 year ago
add-to-cart-tutor.php
1 year ago
add-to-cart-woocommerce.php
1 year ago
course-author.php
3 years ago
course-continue.php
2 years ago
course-in-cart.php
1 year ago
course-price-edd.php
1 year ago
course-price-tutor.php
1 year ago
course-price-woocommerce.php
1 year ago
course-price.php
1 year ago
course.php
1 year ago
end_content_wrap.php
3 years ago
enrolled-course-progress.php
3 years ago
footer.php
1 year ago
header.php
3 years ago
loop-after-content.php
3 years ago
loop-before-content.php
3 years ago
loop-end.php
3 years ago
loop-start.php
3 years ago
meta.php
3 years ago
rating.php
3 years ago
start_content_wrap.php
3 years ago
thumbnail.php
3 years ago
title.php
3 years ago
enrolled-course-progress.php
30 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Tutor Course Progress for enrolled courses |
| 4 | * |
| 5 | * @package Tutor\Templates |
| 6 | * @subpackage CourseLoopPart |
| 7 | * @author Themeum <support@themeum.com> |
| 8 | * @link https://themeum.com |
| 9 | * @since 2.0.0 |
| 10 | */ |
| 11 | |
| 12 | $course_id = get_the_ID(); |
| 13 | $course_progress = tutor_utils()->get_course_completed_percent( $course_id, 0, true ); |
| 14 | ?> |
| 15 | |
| 16 | <div class="tutor-course-progress"> |
| 17 | <div class="tutor-fs-6 tutor-color-secondary tutor-d-flex tutor-align-center tutor-justify-between"> |
| 18 | <span> |
| 19 | <?php echo esc_html( $course_progress['completed_count'] ); ?>/<?php echo esc_html( $course_progress['total_count'] ); ?> |
| 20 | </span> |
| 21 | <span> |
| 22 | <?php echo esc_html( $course_progress['completed_percent'] . '%' ); ?> |
| 23 | <?php esc_html_e( 'Complete', 'tutor' ); ?> |
| 24 | </span> |
| 25 | </div> |
| 26 | <div class="tutor-progress-bar tutor-mt-12" style="--tutor-progress-value:<?php echo esc_attr( $course_progress['completed_percent'] ); ?>%;"> |
| 27 | <span class="tutor-progress-value" area-hidden="true"></span> |
| 28 | </div> |
| 29 | </div> |
| 30 |