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