PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.2.0
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.2.0
4.4.8 4.4.7 4.4.6 4.4.5 4.4.4 4.4.3 4.4.2 4.4.1 4.4.0 4.3.9.1 4.3.9 4.3.8 4.3.7 4.1.6.9 4.1.6.9.1 4.1.6.9.2 4.1.6.9.3 4.1.6.9.4 4.1.7 4.1.7.1 4.1.7.2 4.1.7.3 4.1.7.3.1 4.1.7.3.2 4.2.0 All 139 releases
learnpress / templates / single-course / tabs / instructor.php

instructor.php in LearnPress – WordPress LMS Plugin for Create and Sell Online Courses 4.2.0, at templates/single-course/tabs/instructor.php

88 lines 1.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Template for displaying instructor of single course.
4 *
5 * This template can be overridden by copying it to yourtheme/learnpress/single-course/instructor.php.
6 *
7 * @author ThimPress
8 * @package Learnpress/Templates
9 * @version 3.3.0
10 */
11
12 defined( 'ABSPATH' ) || exit();
13
14 $course = learn_press_get_course();
15 if ( ! $course ) {
16 return;
17 }
18 /**
19 * @var LP_User
20 */
21 $instructor = $course->get_instructor();
22 ?>
23
24 <div class="course-author">
25
26 <?php do_action( 'learn-press/before-single-course-instructor' ); ?>
27
28 <div class="lp-course-author">
29 <div class="course-author__pull-left">
30 <?php echo wp_kses_post( $instructor->get_profile_picture() ); ?>
31
32 <?php $socials = $instructor->get_profile_socials( $instructor->get_id() ); ?>
33 <?php if ( $socials ) : ?>
34 <div class="author-socials">
35 <?php echo wp_kses_post( implode( '', $socials ) ); ?>
36 </div>
37 <?php endif; ?>
38 </div>
39
40 <div class="course-author__pull-right">
41 <div class="author-title"><?php echo wp_kses_post( $course->get_instructor_html() ); ?></div>
42 <div class="author-description margin-bottom">
43
44 <?php
45 /**
46 * LP Hook
47 *
48 * @since 4.0.0
49 */
50 do_action( 'learn-press/begin-course-instructor-description', $instructor );
51
52 echo wp_kses_post( $instructor->get_description() );
53
54 /**
55 * LP Hook
56 *
57 * @since 4.0.0
58 */
59 do_action( 'learn-press/end-course-instructor-description', $instructor );
60
61 ?>
62 </div>
63
64 <?php
65 /**
66 * LP Hook
67 *
68 * @since 4.0.0
69 */
70 do_action( 'learn-press/after-course-instructor-description', $instructor );
71 ?>
72
73 <?php
74
75 /**
76 * LP Hook
77 *
78 * @since 4.0.0
79 */
80 do_action( 'learn-press/after-course-instructor-socials', $instructor );
81
82 ?>
83 </div>
84 </div>
85 <?php do_action( 'learn-press/after-single-course-instructor' ); ?>
86
87 </div>
88