add-to-cart-edd.php
4 years ago
add-to-cart-woocommerce.php
4 years ago
course-author.php
4 years ago
course-continue.php
4 years ago
course-in-cart.php
4 years ago
course-price-edd.php
4 years ago
course-price-woocommerce.php
4 years ago
course-price.php
4 years ago
course.php
4 years ago
end_content_wrap.php
5 years ago
enrolled-course-progress.php
4 years ago
footer.php
4 years ago
header.php
4 years ago
loop-after-content.php
4 years ago
loop-before-content.php
4 years ago
loop-end.php
5 years ago
loop-start.php
4 years ago
meta.php
4 years ago
rating.php
4 years ago
start_content_wrap.php
4 years ago
thumbnail.php
4 years ago
title.php
4 years ago
tutor-pagination.php
4 years ago
tutor-pagination_ajax.php
4 years ago
course-author.php
47 lines
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * Display loop thumbnail |
| 5 | * |
| 6 | * @since v.1.0.0 |
| 7 | * @author themeum |
| 8 | * @url https://themeum.com |
| 9 | * |
| 10 | * @package TutorLMS/Templates |
| 11 | * @version 1.4.3 |
| 12 | */ |
| 13 | |
| 14 | global $post, $authordata; |
| 15 | |
| 16 | $profile_url = tutor_utils()->profile_url($authordata->ID, true); |
| 17 | ?> |
| 18 | |
| 19 | <div class="list-item-author tutor-d-flex tutor-align-items-center tutor-mt-32"> |
| 20 | <div class="tutor-avatar"> |
| 21 | <a href="<?php echo esc_url($profile_url); ?>"> |
| 22 | <?php echo wp_kses_post(tutor_utils()->get_tutor_avatar($post->post_author)); ?> |
| 23 | </a> |
| 24 | </div> |
| 25 | <div class="text-regular-caption tutor-color-black-60"> |
| 26 | <?php esc_html_e('By', 'tutor') ?> |
| 27 | <span class="tutor-fs-7 tutor-fw-medium tutor-color-black"> |
| 28 | <?php esc_html_e(get_the_author()); ?> |
| 29 | </span> |
| 30 | <?php |
| 31 | $course_categories = get_tutor_course_categories(); |
| 32 | if(!empty($course_categories) && is_array($course_categories ) && count($course_categories)){ |
| 33 | ?> |
| 34 | <?php esc_html_e('In', 'tutor') ?> |
| 35 | <span class="text-medium-caption course-category tutor-color-black"> |
| 36 | <?php |
| 37 | foreach ($course_categories as $course_category){ |
| 38 | $category_name = $course_category->name; |
| 39 | $category_link = get_term_link($course_category->term_id); |
| 40 | echo wp_kses_post("<a href='$category_link'>$category_name </a>"); |
| 41 | } |
| 42 | } |
| 43 | ?> |
| 44 | </span> |
| 45 | </div> |
| 46 | </div> |
| 47 |