cover.php
3 years ago
default.php
3 years ago
minimal-horizontal.php
3 years ago
minimal.php
3 years ago
portrait-horizontal.php
3 years ago
minimal.php
43 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Minimal layout |
| 4 | * |
| 5 | * @package Tutor\Templates |
| 6 | * @subpackage Instructor |
| 7 | * @author Themeum <support@themeum.com> |
| 8 | * @link https://themeum.com |
| 9 | * @since 2.0.2 |
| 10 | */ |
| 11 | |
| 12 | $instructor = isset( $instructor ) ? $instructor : array(); |
| 13 | ?> |
| 14 | <div class="tutor-instructor-list-item tutor-instructor-layout-minimal tutor-card"> |
| 15 | <div class="tutor-card-body"> |
| 16 | <?php |
| 17 | echo wp_kses( |
| 18 | tutor_utils()->get_tutor_avatar( $instructor->ID, 'xl' ), |
| 19 | tutor_utils()->allowed_avatar_tags() |
| 20 | ); |
| 21 | ?> |
| 22 | |
| 23 | <div class="tutor-ratings tutor-ratings-lg tutor-mt-20"> |
| 24 | <?php tutor_utils()->star_rating_generator( $instructor->ratings->rating_avg ); ?> |
| 25 | <span class="tutor-ratings-average"><?php echo esc_html( $instructor->ratings->rating_avg ); ?></span> |
| 26 | <span class="tutor-ratings-count">(<?php echo esc_html( $instructor->ratings->rating_count ); ?>)</span> |
| 27 | </div> |
| 28 | |
| 29 | <h4 class="tutor-instructor-title tutor-fs-4 tutor-fw-medium tutor-color-black tutor-mt-12 tutor-mb-8"> |
| 30 | <?php echo esc_html( $instructor->display_name ); ?> |
| 31 | </h4> |
| 32 | |
| 33 | <div class="tutor-instructor-courses"> |
| 34 | <span class="tutor-fw-medium tutor-color-black"><?php echo esc_html( $instructor->course_count ); ?></span> |
| 35 | <span class="tutor-color-muted"><?php $instructor->course_count > 1 ? esc_html_e( 'Courses', 'tutor' ) : esc_html_e( 'Course', 'tutor' ); ?></span> |
| 36 | </div> |
| 37 | |
| 38 | <a href="<?php echo esc_url( tutor_utils()->profile_url( $instructor->ID, true ) ); ?>" class="tutor-stretched-link"> |
| 39 | <span class="tutor-d-none"><?php esc_html_e( 'Details', 'tutor' ); ?></span> |
| 40 | </a> |
| 41 | </div> |
| 42 | </div> |
| 43 |