enrolled
1 year ago
add-to-cart-edd.php
1 year ago
add-to-cart-tutor.php
11 months ago
add-to-cart-woocommerce.php
1 year ago
continue-lesson.php
3 years ago
course-benefits.php
3 years ago
course-content.php
3 years ago
course-entry-box.php
1 year ago
course-requirements.php
3 years ago
course-target-audience.php
3 years ago
course-topics.php
1 year ago
instructors.php
3 years ago
lead-info.php
9 months ago
material-includes.php
3 years ago
q_and_a_turned_off.php
3 years ago
reviews-loop.php
1 year ago
reviews.php
2 years ago
social_share.php
3 years ago
tags.php
3 years ago
wc-price-html.php
3 years ago
instructors.php
53 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Template for displaying course instructors/ instructor |
| 4 | * |
| 5 | * @package Tutor\Templates |
| 6 | * @subpackage Single\Course |
| 7 | * @author Themeum <support@themeum.com> |
| 8 | * @link https://themeum.com |
| 9 | * @since 1.0.0 |
| 10 | */ |
| 11 | |
| 12 | use TUTOR\Instructors_List; |
| 13 | |
| 14 | do_action( 'tutor_course/single/enrolled/before/instructors' ); |
| 15 | |
| 16 | $instructors = tutor_utils()->get_instructors_by_course(); |
| 17 | |
| 18 | if ( $instructors && count( $instructors ) ) : ?> |
| 19 | <div class="tutor-course-details-instructors"> |
| 20 | <h3 class="tutor-fs-6 tutor-fw-medium tutor-color-black tutor-mb-16"> |
| 21 | <?php esc_html_e( 'A course by', 'tutor' ); ?> |
| 22 | </h3> |
| 23 | |
| 24 | <?php foreach ( $instructors as $key => $instructor ) : ?> |
| 25 | <div class="tutor-d-flex tutor-align-center<?php echo ( count( $instructors ) - 1 ) != $key ? ' tutor-mb-24' : ''; ?>"> |
| 26 | <div class="tutor-d-flex tutor-mr-16"> |
| 27 | <?php |
| 28 | echo wp_kses( |
| 29 | tutor_utils()->get_tutor_avatar( $instructor, 'md' ), |
| 30 | tutor_utils()->allowed_avatar_tags() |
| 31 | ); |
| 32 | ?> |
| 33 | </div> |
| 34 | |
| 35 | <div> |
| 36 | <a class="tutor-fs-6 tutor-fw-bold tutor-color-black" href="<?php echo esc_url( tutor_utils()->profile_url( $instructor->ID, true ) ); ?>"> |
| 37 | <?php echo esc_html( $instructor->display_name ); ?> |
| 38 | </a> |
| 39 | |
| 40 | <?php if ( ! empty( $instructor->tutor_profile_job_title ) ) : ?> |
| 41 | <div class="tutor-instructor-designation tutor-fs-7 tutor-color-muted"> |
| 42 | <?php echo esc_html( $instructor->tutor_profile_job_title ); ?> |
| 43 | </div> |
| 44 | <?php endif; ?> |
| 45 | </div> |
| 46 | </div> |
| 47 | <?php endforeach; ?> |
| 48 | </div> |
| 49 | <?php |
| 50 | endif; |
| 51 | |
| 52 | do_action( 'tutor_course/single/enrolled/after/instructors' ); |
| 53 |