testimonial-1.php
2 years ago
testimonial-10.php
2 years ago
testimonial-11.php
2 years ago
testimonial-2.php
2 years ago
testimonial-3.php
2 years ago
testimonial-4.php
2 years ago
testimonial-5.php
2 years ago
testimonial-6.php
2 years ago
testimonial-7.php
2 years ago
testimonial-8.php
2 years ago
testimonial-9.php
2 years ago
testimonial-9.php
76 lines
| 1 | <?php |
| 2 | if ( ! defined( 'ABSPATH' ) ) { |
| 3 | exit; // Exit if accessed directly. |
| 4 | } |
| 5 | ?> |
| 6 | <div class="feedback-section-two"> |
| 7 | <div class="feedback-slider-two testimonial-slider-<?php echo esc_attr($testimonial_id);?>"> |
| 8 | <?php |
| 9 | if(!empty($testimonials6)) { |
| 10 | foreach ($testimonials6 as $item ) { |
| 11 | $rating_data = $this->get_rating( $item['author_rating'] ); |
| 12 | $textual_rating = $rating_data[0] . '/' . $rating_data[1]; |
| 13 | ?> |
| 14 | <div class="item elementor-repeater-item-<?php echo esc_attr($item['_id']); ?>"> |
| 15 | <div class="feedback-block-one feedback-block-two"> |
| 16 | <?php |
| 17 | if ( 'star_fontawesome' === $settings['star_style'] ) { |
| 18 | if ( 'outline' === $settings['unmarked_star_style'] ) { |
| 19 | $icon = ''; |
| 20 | } |
| 21 | } elseif ( 'star_unicode' === $settings['star_style'] ) { |
| 22 | $icon = '★'; |
| 23 | |
| 24 | if ( 'outline' === $settings['unmarked_star_style'] ) { |
| 25 | $icon = '☆'; |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | $this->add_render_attribute( 'icon_wrapper', [ |
| 30 | 'class' => 'star-rating', |
| 31 | 'title' => $textual_rating, |
| 32 | 'itemscope' => '', |
| 33 | 'itemprop' => 'reviewRating', |
| 34 | ] ); |
| 35 | |
| 36 | $schema_rating = '<span itemprop="ratingValue" class="elementor-screen-only">' . $textual_rating . '</span>'; |
| 37 | $stars_element = '<div ' . $this->get_render_attribute_string( 'icon_wrapper' ) . '>' . $this->render_stars( $icon, $item['author_rating'] ) . ' ' . $schema_rating . '</div>'; |
| 38 | ?> |
| 39 | <div class="review"> |
| 40 | <?php if ( ! \Elementor\Utils::is_empty( $item['author_rating_title'] ) ) : ?> |
| 41 | <div class="text-md fw-500"><?php echo esc_html($item['author_rating_title']); ?></div> |
| 42 | <?php endif; ?> |
| 43 | |
| 44 | <?php if ( $testimonial_ratting_icon == 'yes' ) : ?> |
| 45 | <?php echo wp_kses_post($stars_element) ?> |
| 46 | <?php endif; ?> |
| 47 | </div> |
| 48 | <?php |
| 49 | if ( !empty($item['review_content']) ) { ?> |
| 50 | <h3><?php echo esc_html($item['review_content']) ?> |
| 51 | </h3> |
| 52 | <?php |
| 53 | } |
| 54 | if ( !empty($item['author_name']) ) { ?> |
| 55 | <div class="block-footer ezd-d-flex ezd-align-items-center ezd-justify-content-between pt-35 lg-pt-20"> |
| 56 | <div class="ezd-d-flex ezd-align-items-center"> |
| 57 | <img src="<?php echo esc_url($item['author_image']['url']);?>" alt="" |
| 58 | class="author-img ezd-rounded-circle"> |
| 59 | <div class="ezd-ms-3"> |
| 60 | <div class="name fw-500"><?php echo esc_html($item['author_name']); ?></div> |
| 61 | <span class="opacity-50"><?php echo esc_html($item['author_position']); ?></span> |
| 62 | </div> |
| 63 | </div> |
| 64 | <img class="quote-icon" src="<?php echo esc_url($item['company_image']['url']);?>" alt=""> |
| 65 | </div> |
| 66 | <?php |
| 67 | } |
| 68 | ?> |
| 69 | </div> |
| 70 | </div> |
| 71 | <?php |
| 72 | } |
| 73 | } |
| 74 | ?> |
| 75 | </div> |
| 76 | </div> |