enrolled
6 years ago
add-to-cart-edd.php
6 years ago
add-to-cart-woocommerce.php
6 years ago
add-to-cart.php
6 years ago
complete_form.php
6 years ago
course-benefits.php
6 years ago
course-content.php
6 years ago
course-enroll-box.php
6 years ago
course-enrolled-box.php
6 years ago
course-requirements.php
6 years ago
course-target-audience.php
6 years ago
course-topics.php
6 years ago
instructors.php
6 years ago
lead-info.php
6 years ago
login.php
6 years ago
material-includes.php
6 years ago
q_and_a_turned_off.php
6 years ago
review-form.php
6 years ago
reviews.php
6 years ago
social_share.php
6 years ago
tags.php
6 years ago
wc-price-html.php
6 years ago
course-enrolled-box.php
77 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Template for displaying course content |
| 4 | * |
| 5 | * @since v.1.0.0 |
| 6 | * |
| 7 | * @author Themeum |
| 8 | * @url https://themeum.com |
| 9 | * |
| 10 | * @package TutorLMS/Templates |
| 11 | * @version 1.4.3 |
| 12 | */ |
| 13 | |
| 14 | if ( ! defined( 'ABSPATH' ) ) |
| 15 | exit; |
| 16 | |
| 17 | global $wp_query; |
| 18 | |
| 19 | ?> |
| 20 | |
| 21 | <div class="tutor-price-preview-box"> |
| 22 | <div class="tutor-price-box-thumbnail"> |
| 23 | <?php |
| 24 | if(tutor_utils()->has_video_in_single()){ |
| 25 | tutor_course_video(); |
| 26 | } else{ |
| 27 | get_tutor_course_thumbnail(); |
| 28 | } |
| 29 | ?> |
| 30 | </div> |
| 31 | |
| 32 | <div class="tutor-lead-info-btn-group"> |
| 33 | <?php do_action('tutor_course/single/actions_btn_group/before'); ?> |
| 34 | |
| 35 | <?php |
| 36 | if ( $wp_query->query['post_type'] !== 'lesson') { |
| 37 | $lesson_url = tutor_utils()->get_course_first_lesson(); |
| 38 | $completed_lessons = tutor_utils()->get_completed_lesson_count_by_course(); |
| 39 | if ( $lesson_url ) { ?> |
| 40 | <a href="<?php echo $lesson_url; ?>" class="tutor-button tutor-success"> |
| 41 | <?php |
| 42 | if($completed_lessons){ |
| 43 | _e( 'Continue to lesson', 'tutor' ); |
| 44 | }else{ |
| 45 | _e( 'Start Course', 'tutor' ); |
| 46 | } |
| 47 | ?> |
| 48 | </a> |
| 49 | <?php } |
| 50 | } |
| 51 | ?> |
| 52 | <?php tutor_course_mark_complete_html(); ?> |
| 53 | |
| 54 | <?php do_action('tutor_course/single/actions_btn_group/after'); ?> |
| 55 | </div> |
| 56 | |
| 57 | |
| 58 | <?php tutor_course_price(); ?> |
| 59 | <?php tutor_course_material_includes_html(); ?> |
| 60 | |
| 61 | <div class="tutor-single-course-segment tutor-course-enrolled-wrap"> |
| 62 | <p> |
| 63 | <i class="tutor-icon-purchase"></i> |
| 64 | <?php |
| 65 | $enrolled = tutor_utils()->is_enrolled(); |
| 66 | |
| 67 | echo sprintf(__('You have been enrolled on %s.', 'tutor'), "<span>". date_i18n(get_option('date_format'), strtotime($enrolled->post_date) |
| 68 | )."</span>" ); |
| 69 | ?> |
| 70 | </p> |
| 71 | <?php do_action('tutor_enrolled_box_after') ?> |
| 72 | |
| 73 | </div> |
| 74 | |
| 75 | </div> <!-- tutor-price-preview-box --> |
| 76 | |
| 77 |