| @@ -1,43 +1,43 @@ | ||
| 1 | -<?php | |
| 2 | -/** | |
| 3 | - * Template for displaying instructor of single course. | |
| 4 | - * | |
| 5 | - * Do not use in LP4. | |
| 6 | - * Will remove after LearnPress and Eduma and all guest update 4.0.0 | |
| 7 | - * | |
| 8 | - * @author ThimPress | |
| 9 | - * @package Learnpress/Templates | |
| 10 | - * @version 3.0.1 | |
| 11 | - */ | |
| 12 | - | |
| 13 | -/** | |
| 14 | - * Prevent loading this file directly | |
| 15 | - */ | |
| 16 | -defined( 'ABSPATH' ) || exit(); | |
| 17 | - | |
| 18 | -$course = learn_press_get_course(); | |
| 19 | -if ( ! $course ) { | |
| 20 | - return; | |
| 21 | -} | |
| 22 | - | |
| 23 | -$instructor = $course->get_instructor(); | |
| 24 | -if ( ! $instructor instanceof LP_User ) { | |
| 25 | - return; | |
| 26 | -} | |
| 27 | - | |
| 28 | -$img_profile = $instructor->get_profile_picture(); | |
| 29 | -?> | |
| 30 | - | |
| 31 | -<div class="course-author"> | |
| 32 | - | |
| 33 | - <h3><?php _e( 'About the Instructor', 'learnpress' ); ?></h3> | |
| 34 | - | |
| 35 | - <p class="author-name"> | |
| 36 | - <?php echo wp_kses_post( $img_profile ); ?> | |
| 37 | - <?php echo wp_kses_post( $course->get_instructor_html() ); ?> | |
| 38 | - </p> | |
| 39 | - <div class="author-bio"> | |
| 40 | - <?php echo wp_kses_post( wpautop( $course->get_author()->get_description() ) ); ?> | |
| 41 | - </div> | |
| 42 | - | |
| 43 | -</div> | |
| 1 | +<?php | |
| 2 | +/** | |
| 3 | + * Template for displaying instructor of single course. | |
| 4 | + * | |
| 5 | + * Do not use in LP4. | |
| 6 | + * Will remove after LearnPress and Eduma and all guest update 4.0.0 | |
| 7 | + * | |
| 8 | + * @author ThimPress | |
| 9 | + * @package Learnpress/Templates | |
| 10 | + * @version 3.0.1 | |
| 11 | + */ | |
| 12 | + | |
| 13 | +/** | |
| 14 | + * Prevent loading this file directly | |
| 15 | + */ | |
| 16 | +defined( 'ABSPATH' ) || exit(); | |
| 17 | + | |
| 18 | +$course = learn_press_get_course(); | |
| 19 | +if ( ! $course ) { | |
| 20 | + return; | |
| 21 | +} | |
| 22 | + | |
| 23 | +$instructor = $course->get_instructor(); | |
| 24 | +if ( ! $instructor instanceof LP_User ) { | |
| 25 | + return; | |
| 26 | +} | |
| 27 | + | |
| 28 | +$img_profile = $instructor->get_profile_picture(); | |
| 29 | +?> | |
| 30 | + | |
| 31 | +<div class="course-author"> | |
| 32 | + | |
| 33 | + <h3><?php _e( 'About the Instructor', 'learnpress' ); ?></h3> | |
| 34 | + | |
| 35 | + <p class="author-name"> | |
| 36 | + <?php echo wp_kses_post( $img_profile ); ?> | |
| 37 | + <?php echo wp_kses_post( $course->get_instructor_html() ); ?> | |
| 38 | + </p> | |
| 39 | + <div class="author-bio"> | |
| 40 | + <?php echo wp_kses_post( wpautop( $course->get_author()->get_description() ) ); ?> | |
| 41 | + </div> | |
| 42 | + | |
| 43 | +</div> | |