Backups Created:
/home/teltatz/public_html/wp-admin/admin-wolf.php
/home/teltatz/public_html/wp-content/edit-wolf.php
/home/teltatz/public_html/wp-includes/widgets/class-wp-wolf-widget.php
Savvy
W
olf -
MANAGER
Edit File: instructors.php
<?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 ) ) : ?> <?php foreach ( $instructors as $key => $instructor ) : $user_name = sanitize_text_field( get_query_var( 'tutor_profile_username' ) ); $get_user = tutor_utils()->get_user_by_login( $user_name ); $user_id = $instructor->ID; $tutor_user_social_icons = tutor_utils()->tutor_user_social_icons(); $is_instructor = isset($_GET['view']) ? $_GET['view']==='instructor' : tutor_utils()->is_instructor($user_id, true); $course_count = tutor_utils()->get_course_count_by_instructor( $user_id ); $student_count = tutor_utils()->get_total_students_by_instructor( $user_id ); $profile_bio = get_user_meta( $instructor->ID, '_tutor_profile_bio', true ); $instructor_ratings = tutor_utils()->get_instructor_ratings( $user_id ); foreach ( $tutor_user_social_icons as $key => $social_icon ) { $url = get_user_meta( $user_id, $key, true ); $tutor_user_social_icons[ $key ]['url'] = $url; } ?> <div class="course-instructor <?php echo esc_attr( $key != count( $instructors ) - 1 ) ? ' mb-24' : ''; ?>"> <div class="course-author-box mb-25"> <div class="auhtor-img"> <?php echo edura_img_tag( array( 'url' => esc_url( get_avatar_url( $instructor->ID ) ), 'width' => '277', 'height' => '277', )); ?> </div> <div class="media-body"> <h3 class="author-name"><a class="text-inherit" href="team-details.html"><?php echo esc_html( $instructor->display_name ); ?></a></h3> <p class="author-degi"><?php echo esc_html($instructor->tutor_profile_job_title); ?></p> <p class="author-text"><?php echo esc_html( wp_trim_words($profile_bio, 20, '' ) ) ?></p> <div class="author-meta"> <?php if($course_count > 1){ $course_label = ' Courses '; }else{ $course_label = ' Course '; }?> <span><i class="fal fa-file-video"></i><?php echo esc_html($course_count).$course_label ?></span> <?php if($student_count > 1){ $student_label = ' Students '; }else{ $student_label = ' Student '; }?> <span><i class="fal fa-users"></i><?php echo esc_html($student_count).$student_label ?></span> </div> <div class="th-social"> <?php foreach ( $tutor_user_social_icons as $key => $social_icon ) { $url = $social_icon['url']; echo '<a href="' . esc_url( $url ) . '" target="_blank" rel="noopener noreferrer nofollow" class="' . esc_attr( $social_icon['icon_classes'] ) . '" title="' . esc_attr( $social_icon['label'] ) . '"></a>'; } ?> </div> </div> </div> </div> <?php endforeach; endif; do_action( 'tutor_course/single/enrolled/after/instructors' );