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-horizontal.php
39 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Instructor List Item |
| 4 | * |
| 5 | * Minimal Horizontal 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-horizontal tutor-card tutor-p-16"> |
| 14 | <div class="tutor-row tutor-align-center"> |
| 15 | <div class="tutor-col-auto"> |
| 16 | <div class="tutor-avatar tutor-avatar-xl"> |
| 17 | <div class="tutor-ratio tutor-ratio-1x1"> |
| 18 | <img src="<?php echo esc_url( get_avatar_url( $instructor->ID, array( 'size' => 96 ) ) ); ?>" alt="<?php esc_html_e( $instructor->display_name ); ?>" loading="lazy"> |
| 19 | </div> |
| 20 | </div> |
| 21 | </div> |
| 22 | |
| 23 | <div class="tutor-col"> |
| 24 | <h4 class="tutor-instructor-title tutor-fs-5 tutor-fw-medium tutor-color-black tutor-mb-8"> |
| 25 | <?php esc_html_e( $instructor->display_name ); ?> |
| 26 | </h4> |
| 27 | |
| 28 | <div class="tutor-instructor-courses"> |
| 29 | <span class="tutor-fw-medium tutor-color-black"><?php esc_html_e( $instructor->course_count ); ?></span> |
| 30 | <span class="tutor-color-muted"><?php $instructor->course_count > 1 ? esc_html_e( 'Courses', 'tutor' ) : esc_html_e( 'Course', 'tutor' ); ?></span> |
| 31 | </div> |
| 32 | |
| 33 | <a href="<?php echo esc_url( tutor_utils()->profile_url( $instructor->ID, true ) ); ?>" class="tutor-stretched-link"> |
| 34 | <span class="tutor-d-none"><?php _e( "Details", "tutor" ); ?></span> |
| 35 | </a> |
| 36 | </div> |
| 37 | </div> |
| 38 | </div> |
| 39 |