enrolled
3 years ago
add-to-cart-edd.php
4 years ago
add-to-cart-woocommerce.php
3 years ago
continue-lesson.php
4 years ago
course-benefits.php
4 years ago
course-content.php
4 years ago
course-entry-box.php
3 years ago
course-requirements.php
4 years ago
course-target-audience.php
4 years ago
course-topics.php
3 years ago
instructors.php
3 years ago
lead-info.php
3 years ago
material-includes.php
4 years ago
q_and_a_turned_off.php
4 years ago
reviews-loop.php
3 years ago
reviews.php
3 years ago
social_share.php
4 years ago
tags.php
3 years ago
wc-price-html.php
4 years ago
instructors.php
50 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Template for displaying course instructors/ instructor |
| 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 | use TUTOR\Instructors_List; |
| 15 | |
| 16 | do_action( 'tutor_course/single/enrolled/before/instructors' ); |
| 17 | |
| 18 | $instructors = tutor_utils()->get_instructors_by_course(); |
| 19 | |
| 20 | if ( $instructors && count( $instructors ) ) : ?> |
| 21 | <div class="tutor-course-details-instructors"> |
| 22 | <h3 class="tutor-fs-6 tutor-fw-medium tutor-color-black tutor-mb-16"> |
| 23 | <?php echo _e( 'A course by', 'tutor' ); ?> |
| 24 | </h3> |
| 25 | |
| 26 | <?php foreach ( $instructors as $key => $instructor ) : ?> |
| 27 | <div class="tutor-d-flex tutor-align-center<?php echo ( $key != count( $instructors ) - 1 ) ? ' tutor-mb-24' : ''; ?>"> |
| 28 | <div class="tutor-d-flex tutor-mr-16"> |
| 29 | <?php echo tutor_utils()->get_tutor_avatar( $instructor->ID, 'md' ); ?> |
| 30 | </div> |
| 31 | |
| 32 | <div> |
| 33 | <a class="tutor-fs-6 tutor-fw-bold tutor-color-black" href="<?php echo tutor_utils()->profile_url( $instructor->ID, true ); ?>"> |
| 34 | <?php echo $instructor->display_name; ?> |
| 35 | </a> |
| 36 | |
| 37 | <?php if ( ! empty( $instructor->tutor_profile_job_title ) ) : ?> |
| 38 | <div class="tutor-instructor-designation tutor-fs-7 tutor-color-muted"> |
| 39 | <?php echo $instructor->tutor_profile_job_title; ?> |
| 40 | </div> |
| 41 | <?php endif; ?> |
| 42 | </div> |
| 43 | </div> |
| 44 | <?php endforeach; ?> |
| 45 | </div> |
| 46 | <?php |
| 47 | endif; |
| 48 | |
| 49 | do_action( 'tutor_course/single/enrolled/after/instructors' ); |
| 50 |