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
course-author.php
45 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 | $course_categories = get_tutor_course_categories(); |
| 18 | ?> |
| 19 | |
| 20 | <div class="tutor-meta tutor-mt-32"> |
| 21 | <div> |
| 22 | <a href="<?php echo $profile_url; ?>" class="tutor-d-flex"> |
| 23 | <?php echo tutor_utils()->get_tutor_avatar( $post->post_author ); ?> |
| 24 | </a> |
| 25 | </div> |
| 26 | |
| 27 | <div> |
| 28 | <?php esc_html_e('By', 'tutor') ?> |
| 29 | <a href="<?php echo $profile_url; ?>"><?php esc_html_e(get_the_author()); ?></a> |
| 30 | |
| 31 | <?php if( !empty( $course_categories ) && is_array( $course_categories ) && count( $course_categories ) ) : ?> |
| 32 | <?php esc_html_e('In', 'tutor'); ?> |
| 33 | <?php |
| 34 | $category_links = array(); |
| 35 | foreach ( $course_categories as $course_category ) : |
| 36 | $category_name = $course_category->name; |
| 37 | $category_link = get_term_link($course_category->term_id); |
| 38 | $category_links[] = wp_sprintf( '<a href="%1$s">%2$s</a>', esc_url( $category_link ), esc_html( $category_name ) ); |
| 39 | endforeach; |
| 40 | echo implode(', ', $category_links); |
| 41 | ?> |
| 42 | <?php endif; ?> |
| 43 | </div> |
| 44 | </div> |
| 45 |