enrolled
7 years ago
add-to-cart-edd.php
7 years ago
add-to-cart-woocommerce.php
7 years ago
add-to-cart.php
7 years ago
complete_form.php
7 years ago
course-benefits.php
7 years ago
course-content.php
7 years ago
course-enroll-box.php
7 years ago
course-enrolled-box.php
7 years ago
course-requirements.php
7 years ago
course-target-audience.php
7 years ago
course-topics.php
7 years ago
instructors.php
7 years ago
lead-info.php
7 years ago
login.php
7 years ago
material-includes.php
7 years ago
q_and_a_turned_off.php
7 years ago
review-form.php
7 years ago
reviews.php
7 years ago
social_share.php
7 years ago
tags.php
7 years ago
wc-price-html.php
7 years ago
course-enrolled-box.php
50 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 | |
| 11 | if ( ! defined( 'ABSPATH' ) ) |
| 12 | exit; |
| 13 | ?> |
| 14 | |
| 15 | <div class="tutor-price-preview-box"> |
| 16 | <div class="tutor-price-box-thumbnail"> |
| 17 | <?php |
| 18 | if(tutor_utils()->has_video_in_single()){ |
| 19 | tutor_course_video(); |
| 20 | } else{ |
| 21 | get_tutor_course_thumbnail(); |
| 22 | } |
| 23 | ?> |
| 24 | </div> |
| 25 | |
| 26 | <?php tutor_course_price(); ?> |
| 27 | <?php tutor_course_material_includes_html(); ?> |
| 28 | |
| 29 | <div class="tutor-single-course-segment tutor-course-enrolled-wrap"> |
| 30 | <h><?php _e('Enrolled', 'tutor'); ?></h> |
| 31 | <p> |
| 32 | <?php |
| 33 | $enrolled = tutor_utils()->is_enrolled(); |
| 34 | _e(sprintf("Enrolled at : %s", date(get_option('date_format'), strtotime($enrolled->post_date)) ), 'tutor'); |
| 35 | ?> |
| 36 | </p> |
| 37 | <?php |
| 38 | $lesson_url = tutor_utils()->get_course_first_lesson(); |
| 39 | if ($lesson_url){ |
| 40 | ?> |
| 41 | <a href="<?php echo $lesson_url; ?>" class="tutor-button"><?php _e('Start Course', 'tutor'); ?></a> |
| 42 | <?php } ?> |
| 43 | |
| 44 | <?php do_action('tutor_enrolled_box_after') ?> |
| 45 | |
| 46 | </div> |
| 47 | |
| 48 | </div> <!-- tutor-price-preview-box --> |
| 49 | |
| 50 |