File "instructors.php"
Full Path: /home/dcqnetm/intuns/wp-content/plugins/tutor/templates/single/course/instructors.php
File size: 1.41 KB
MIME-type: text/x-php
Charset: utf-8
<?php
/**
* Template for displaying course instructors/ instructor
*
* @since v.1.0.0
*
* @author Themeum
* @url https://themeum.com
*
* @package TutorLMS/Templates
* @version 1.4.3
*/
use TUTOR\Instructors_List;
do_action( 'tutor_course/single/enrolled/before/instructors' );
$instructors = tutor_utils()->get_instructors_by_course();
if ( $instructors && count( $instructors ) ) : ?>
<div class="tutor-course-details-instructors">
<h3 class="tutor-fs-6 tutor-fw-medium tutor-color-black tutor-mb-16">
<?php echo _e( 'A course by', 'tutor' ); ?>
</h3>
<?php foreach ( $instructors as $key => $instructor ) : ?>
<div class="tutor-d-flex tutor-align-center<?php echo ( $key != count( $instructors ) - 1 ) ? ' tutor-mb-24' : ''; ?>">
<div class="tutor-d-flex tutor-mr-16">
<?php echo tutor_utils()->get_tutor_avatar( $instructor->ID, 'md' ); ?>
</div>
<div>
<a class="tutor-fs-6 tutor-fw-bold tutor-color-black" href="<?php echo tutor_utils()->profile_url( $instructor->ID, true ); ?>">
<?php echo $instructor->display_name; ?>
</a>
<?php if ( ! empty( $instructor->tutor_profile_job_title ) ) : ?>
<div class="tutor-instructor-designation tutor-fs-7 tutor-color-muted">
<?php echo $instructor->tutor_profile_job_title; ?>
</div>
<?php endif; ?>
</div>
</div>
<?php endforeach; ?>
</div>
<?php
endif;
do_action( 'tutor_course/single/enrolled/after/instructors' );