<?php /** * @package TutorLMS/Templates * @version 1.4.3 */ $course_id = get_the_ID(); $course_duration = get_tutor_course_duration_context(); $tutor_lesson_count = tutor_utils()->get_lesson_count_by_course($course_id); ?> <div class="course-loop-footer"> <div class="content-inner"> <?php if($tutor_lesson_count) { ?> <div class="loop-footer-item course-lesson-count"> <i class="far fa-folder-open"></i><?php echo sprintf(esc_html__( '%s Lessons', 'zilom' ), $tutor_lesson_count) ?> </div> <?php } ?> <?php if(!empty($course_duration)) { ?> <div class="loop-footer-item coruse-duration"> <span><i class="far fa-clock"></i><?php echo html_entity_decode($course_duration); ?></span> </div> <?php } ?> <div class="loop-footer-item course-loop-level"> <span><i class="far fa-flag"></i><?php echo get_tutor_course_level() ?></span> </div> </div> <div class="course-loop-hover"> <?php if(tutor_utils()->is_course_added_to_cart(get_the_ID())){ tutor_load_template( 'loop.course-in-cart' ); } else if(tutor_utils()->is_enrolled(get_the_ID())){ tutor_load_template( 'loop.course-continue' ); } else if( tutor_utils()->is_course_purchasable() ) { $enroll_btn = tutor_course_loop_add_to_cart(false); $product_id = tutor_utils()->get_course_product_id($course_id); $product = wc_get_product( $product_id ); if ( $product ) { $btn_html = apply_filters( 'tutor_course_restrict_new_entry', $enroll_btn ); } echo html_entity_decode($btn_html); }else{ $btn_html = '<div class="tutor-loop-cart-btn-wrap">' . apply_filters( 'tutor_course_restrict_new_entry', '<a class="btn-purchase" href="'. get_the_permalink(). '">'.esc_html__('Get Enrolled', 'zilom'). '</a>' ) . '</div>'; echo html_entity_decode($btn_html); } ?> </div> </div>
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
content | Folder | 0755 |
|
|
add-to-cart-edd.php | File | 1.13 KB | 0644 |
|
add-to-cart-woocommerce.php | File | 2.19 KB | 0644 |
|
course-author.php | File | 342 B | 0644 |
|
course-continue.php | File | 499 B | 0644 |
|
course-in-cart.php | File | 566 B | 0644 |
|
course-price-edd.php | File | 895 B | 0644 |
|
course-price-woocommerce.php | File | 796 B | 0644 |
|
course-price.php | File | 789 B | 0644 |
|
course.php | File | 211 B | 0644 |
|
end_content_wrap.php | File | 74 B | 0644 |
|
footer.php | File | 2.01 KB | 0644 |
|
header.php | File | 1.06 KB | 0644 |
|
loop-after-content.php | File | 130 B | 0644 |
|
loop-before-content.php | File | 130 B | 0644 |
|
loop-end.php | File | 137 B | 0644 |
|
loop-start.php | File | 1.34 KB | 0644 |
|
meta.php | File | 1.31 KB | 0644 |
|
rating.php | File | 510 B | 0644 |
|
start_content_wrap.php | File | 95 B | 0644 |
|
title.php | File | 306 B | 0644 |
|
tutor-pagination.php | File | 691 B | 0644 |
|