<?php /** * Template for displaying the author of a course * * @author ThimPress * @package LearnPress/Templates * @version 1.0 */ defined('ABSPATH') || exit(); $course = LP_Global::course(); $user_data = $course->get_author(); if (!$user_data) { return; } ?> <div class="course-author" itemscope itemtype="http://schema.org/Person"> <?php //echo get_avatar( get_post_field( 'post_author', $course->get_id() ), 40 ); ?> <div class="author-contain"> <label itemprop="jobTitle"><?php esc_html_e('Teacher', 'eduma'); ?></label> <div class="value" itemprop="name"> <a href="<?php echo esc_url(learn_press_user_profile_link(get_post_field('post_author', $course->get_id()))); ?>"> <?php if (!empty($user_data->get_data('display_name'))) { $author_name = $user_data->get_data('display_name'); } else { $author_name = $user_data->get_data('user_login'); } echo $author_name; ?> </a> </div> </div> </div>
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
author.php | File | 1.08 KB | 0644 |
|
instructor.php | File | 1.09 KB | 0644 |
|
loop-begin.php | File | 351 B | 0644 |
|
loop-end.php | File | 347 B | 0644 |
|
pagination.php | File | 1.07 KB | 0644 |
|
price.php | File | 1.11 KB | 0644 |
|
students.php | File | 767 B | 0644 |
|
thumbnail.php | File | 838 B | 0644 |
|