enrolled
3 years ago
add-to-cart-edd.php
3 years ago
add-to-cart-woocommerce.php
3 years ago
continue-lesson.php
3 years ago
course-benefits.php
3 years ago
course-content.php
3 years ago
course-entry-box.php
3 years ago
course-requirements.php
3 years ago
course-target-audience.php
3 years ago
course-topics.php
3 years ago
instructors.php
3 years ago
lead-info.php
3 years ago
material-includes.php
3 years ago
q_and_a_turned_off.php
3 years ago
reviews-loop.php
3 years ago
reviews.php
3 years ago
social_share.php
3 years ago
tags.php
3 years ago
wc-price-html.php
3 years ago
reviews-loop.php
61 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Template for review loop |
| 4 | * |
| 5 | * @package Tutor\Templates |
| 6 | * @subpackage Single\Course |
| 7 | * @author Themeum <support@themeum.com> |
| 8 | * @link https://themeum.com |
| 9 | * @since 1.0.0 |
| 10 | */ |
| 11 | |
| 12 | foreach ( $reviews as $review ) : ?> |
| 13 | <?php $profile_url = tutor_utils()->profile_url( $review->user_id, false ); ?> |
| 14 | <div class="tutor-review-list-item tutor-card-list-item tutor-p-24 tutor-p-lg-40"> |
| 15 | <div class="tutor-row"> |
| 16 | <div class="tutor-col-lg-3 tutor-mb-16 tutor-mb-lg-0"> |
| 17 | <div class="tutor-mb-12"> |
| 18 | <?php |
| 19 | echo wp_kses( |
| 20 | tutor_utils()->get_tutor_avatar( $review->user_id, 'md' ), |
| 21 | tutor_utils()->allowed_avatar_tags() |
| 22 | ); |
| 23 | ?> |
| 24 | </div> |
| 25 | |
| 26 | <div class="tutor-reviewer-name tutor-fs-6 tutor-mb-4"> |
| 27 | <a href="<?php echo esc_url( $profile_url ); ?>" class="tutor-color-black"> |
| 28 | <?php echo esc_html( $review->display_name ); ?> |
| 29 | </a> |
| 30 | </div> |
| 31 | |
| 32 | <div class="tutor-reviewed-on tutor-fs-7 tutor-color-muted"> |
| 33 | <?php echo esc_html( sprintf( __( '%s ago', 'tutor' ), human_time_diff( strtotime( $review->comment_date ) ) ) ); ?> |
| 34 | </div> |
| 35 | </div> |
| 36 | |
| 37 | <div class="tutor-col-lg-9"> |
| 38 | <?php if ( 'hold' == $review->comment_status ) : ?> |
| 39 | <div style="position:absolute; right:15px"> |
| 40 | <span class="tutor-badge-label label-warning"> |
| 41 | <?php esc_html_e( 'Pending', 'tutor' ); ?> |
| 42 | </span> |
| 43 | </div> |
| 44 | <?php endif; ?> |
| 45 | |
| 46 | <?php tutor_utils()->star_rating_generator_v2( $review->rating, null, true, 'tutor-is-sm' ); ?> |
| 47 | |
| 48 | <div class="tutor-fs-7 tutor-color-secondary tutor-mt-12 tutor-review-comment"> |
| 49 | <?php |
| 50 | //phpcs:ignore |
| 51 | echo tutor_utils()->clean_html_content( |
| 52 | nl2br( stripslashes( $review->comment_content ) ), |
| 53 | array( 'br' => array() ) |
| 54 | ); |
| 55 | ?> |
| 56 | </div> |
| 57 | </div> |
| 58 | </div> |
| 59 | </div> |
| 60 | <?php endforeach; ?> |
| 61 |