add-to-cart-edd.php
1 year ago
add-to-cart-tutor.php
1 year ago
add-to-cart-woocommerce.php
1 year ago
course-author.php
3 years ago
course-continue.php
2 years ago
course-in-cart.php
1 year ago
course-price-edd.php
1 year ago
course-price-tutor.php
2 months ago
course-price-woocommerce.php
2 months ago
course-price.php
2 months ago
course.php
1 year ago
end_content_wrap.php
3 years ago
enrolled-course-progress.php
2 months ago
footer.php
1 year ago
header.php
9 months ago
loop-after-content.php
3 years ago
loop-before-content.php
3 years ago
loop-end.php
3 years ago
loop-start.php
3 years ago
meta.php
2 months ago
rating.php
3 years ago
start_content_wrap.php
3 years ago
thumbnail.php
3 years ago
title.php
3 years ago
course-author.php
49 lines
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * Display loop thumbnail |
| 5 | * |
| 6 | * @package Tutor\Templates |
| 7 | * @subpackage CourseLoopPart |
| 8 | * @author Themeum <support@themeum.com> |
| 9 | * @link https://themeum.com |
| 10 | * @since 1.4.3 |
| 11 | */ |
| 12 | |
| 13 | global $post, $authordata; |
| 14 | |
| 15 | $profile_url = tutor_utils()->profile_url( $authordata->ID, true ); |
| 16 | $course_categories = get_tutor_course_categories(); |
| 17 | ?> |
| 18 | |
| 19 | <div class="tutor-meta-course-by-cat tutor-meta tutor-mt-32"> |
| 20 | <div class="tutor-meta-course-by"> |
| 21 | <a href="<?php echo esc_url( $profile_url ); ?>" class="tutor-d-flex"> |
| 22 | <?php |
| 23 | echo wp_kses( |
| 24 | tutor_utils()->get_tutor_avatar( $post->post_author ), |
| 25 | tutor_utils()->allowed_avatar_tags() |
| 26 | ); |
| 27 | ?> |
| 28 | </a> |
| 29 | </div> |
| 30 | |
| 31 | <div class="tutor-meta-course-cat tutor-line-clamp-3"> |
| 32 | <?php esc_html_e( 'By', 'tutor' ); ?> |
| 33 | <a href="<?php echo esc_url( $profile_url ); ?>"><?php echo esc_html( get_the_author() ); ?></a> |
| 34 | |
| 35 | <?php if ( ! empty( $course_categories ) && is_array( $course_categories ) && count( $course_categories ) ) : ?> |
| 36 | <?php esc_html_e( 'In', 'tutor' ); ?> |
| 37 | <?php |
| 38 | $category_links = array(); |
| 39 | foreach ( $course_categories as $course_category ) : |
| 40 | $category_name = $course_category->name; |
| 41 | $category_link = get_term_link( $course_category->term_id ); |
| 42 | $category_links[] = wp_sprintf( '<a href="%1$s">%2$s</a>', esc_url( $category_link ), esc_html( $category_name ) ); |
| 43 | endforeach; |
| 44 | echo implode( ', ', $category_links );//phpcs:ignore |
| 45 | ?> |
| 46 | <?php endif; ?> |
| 47 | </div> |
| 48 | </div> |
| 49 |