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
portrait-horizontal.php
46 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Horizontal Portrait 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-portrait-horizontal tutor-card"> |
| 15 | <div class="tutor-row tutor-align-center"> |
| 16 | <div class="tutor-col-5"> |
| 17 | <div class="tutor-instructor-cover tutor-ratio tutor-ratio-1x1"> |
| 18 | <img class="tutor-instructor-cover-photo" src="<?php echo esc_url( get_avatar_url( $instructor->ID, array( 'size' => 96 ) ) ); ?>" alt="<?php echo esc_attr( $instructor->display_name ); ?>" loading="lazy"> |
| 19 | </div> |
| 20 | </div> |
| 21 | |
| 22 | <div class="tutor-col-7"> |
| 23 | <div class="tutor-py-16"> |
| 24 | <div class="tutor-ratings"> |
| 25 | <?php tutor_utils()->star_rating_generator( $instructor->ratings->rating_avg ); ?> |
| 26 | <span class="tutor-ratings-average"><?php echo esc_html( $instructor->ratings->rating_avg ); ?></span> |
| 27 | <span class="tutor-ratings-count">(<?php echo esc_html( $instructor->ratings->rating_count ); ?>)</span> |
| 28 | </div> |
| 29 | |
| 30 | <h4 class="tutor-instructor-title tutor-fs-5 tutor-fw-medium tutor-color-black tutor-my-8"> |
| 31 | <?php echo esc_html( $instructor->display_name ); ?> |
| 32 | </h4> |
| 33 | |
| 34 | <div class="tutor-instructor-courses"> |
| 35 | <span class="tutor-fw-medium tutor-color-black"><?php echo esc_html( $instructor->course_count ); ?></span> |
| 36 | <span class="tutor-color-muted"><?php $instructor->course_count > 1 ? esc_html_e( 'Courses', 'tutor' ) : esc_html_e( 'Course', 'tutor' ); ?></span> |
| 37 | </div> |
| 38 | |
| 39 | <a href="<?php echo esc_url( tutor_utils()->profile_url( $instructor->ID, true ) ); ?>" class="tutor-stretched-link"> |
| 40 | <span class="tutor-d-none"><?php esc_html_e( 'Details', 'tutor' ); ?></span> |
| 41 | </a> |
| 42 | </div> |
| 43 | </div> |
| 44 | </div> |
| 45 | </div> |
| 46 |