testimonial-1.php
1 year ago
testimonial-2.php
1 year ago
testimonial-3.php
1 year ago
testimonial-4.php
1 year ago
testimonial-5.php
1 year ago
testimonial-6.php
1 year ago
testimonial-7.php
1 year ago
testimonial-4.php
83 lines
| 1 | <?php |
| 2 | if ( ! defined( 'ABSPATH' ) ) { |
| 3 | exit; // Exit if accessed directly. |
| 4 | } |
| 5 | ?> |
| 6 | <div class="feedback-section-seven"> |
| 7 | <div class="feedback-slider-one testimonial-slider-<?php echo esc_attr( $testimonial_id ); ?>" data-rtl="<?php echo esc_attr(spel_rtl()) ?>"> |
| 8 | <?php if ( ! empty( $testimonials6 ) ) { |
| 9 | foreach ( $testimonials6 as $item ) { |
| 10 | $rating_data = $this->get_rating( $item[ 'author_rating' ] ); |
| 11 | $textual_rating = $rating_data[ 0 ] . '/' . $rating_data[ 1 ]; |
| 12 | ?> |
| 13 | <div class="item elementor-repeater-item-<?php echo esc_attr( $item[ '_id' ] ); ?>"> |
| 14 | <div class="feedback-block-one feedback-block-three"> |
| 15 | <img class="quote-icon" src="<?php echo SPEL_IMG ?>/quote-icon.svg" alt="<?php esc_attr_e( 'quote icon', 'spider-elements') ?>"> |
| 16 | <?php |
| 17 | if ( $settings['star_style'] === 'star_fontawesome' ) { |
| 18 | $icon = 'fa fa-star'; // default |
| 19 | if ( $settings['unmarked_star_style'] === 'outline' ) { |
| 20 | $icon = 'fa fa-star-o'; // FA outline |
| 21 | } |
| 22 | } elseif ( $settings['star_style'] === 'star_unicode' ) { |
| 23 | if ( $settings['unmarked_star_style'] === 'outline' ) { |
| 24 | $icon = '☆'; // Unicode outline star |
| 25 | } else { |
| 26 | $icon = '★'; // Unicode solid star |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | $this->add_render_attribute( 'icon_wrapper', [ |
| 31 | 'class' => 'jobus-review-rating', |
| 32 | 'title' => $textual_rating, |
| 33 | 'itemscope' => '', |
| 34 | 'itemprop' => 'reviewRating', |
| 35 | ] ); |
| 36 | |
| 37 | $schema_rating = '<span itemprop="ratingValue" class="elementor-screen-only">' . $textual_rating . '</span>'; |
| 38 | $stars_element = '<div ' . $this->get_render_attribute_string( 'icon_wrapper' ) . '>' . $this->render_stars( $icon, $item[ 'author_rating' ] ) . ' ' . $schema_rating . '</div>'; |
| 39 | ?> |
| 40 | <div class="review"> |
| 41 | <?php if ( ! \Elementor\Utils::is_empty( $item[ 'author_rating_title' ] ) ) : ?> |
| 42 | <div class="text-md fw-500"><?php echo esc_html( $item[ 'author_rating_title' ] ); ?></div> |
| 43 | <?php endif; ?> |
| 44 | |
| 45 | <?php if ( $testimonial_ratting_icon == 'yes' ) : ?> |
| 46 | <?php echo wp_kses_post($stars_element) ?> |
| 47 | <?php endif; ?> |
| 48 | </div> |
| 49 | <?php |
| 50 | if ( ! empty( $item[ 'review_content' ] ) ) { ?> |
| 51 | <h3><?php echo esc_html( $item[ 'review_content' ] ) ?></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-10"> |
| 56 | <div class="ezd-d-flex ezd-align-items-center"> |
| 57 | <div class="name"> |
| 58 | <?php echo esc_html( $item[ 'author_name' ] ); ?> |
| 59 | <span><?php echo esc_html( $item[ 'author_position' ] ); ?></span> |
| 60 | </div> |
| 61 | </div> |
| 62 | <?php spel_dynamic_image( $item[ 'author_image' ], 'full', [ 'class' => 'author-img ezd-rounded-circle' ] ) ?> |
| 63 | </div> |
| 64 | <?php |
| 65 | } |
| 66 | ?> |
| 67 | </div> |
| 68 | </div> |
| 69 | <?php |
| 70 | } |
| 71 | } |
| 72 | ?> |
| 73 | </div> |
| 74 | <ul class="slider-arrows slick-arrow-one ezd-d-flex justify-content-center"> |
| 75 | <li class="prev_f"> |
| 76 | <?php \Elementor\Icons_Manager::render_icon( $settings['prev_arrow_icon'], [ 'aria-hidden' => 'true' ] ); ?> |
| 77 | </li> |
| 78 | <li class="next_f"> |
| 79 | <?php \Elementor\Icons_Manager::render_icon( $settings['next_arrow_icon'], [ 'aria-hidden' => 'true' ] ); ?> |
| 80 | </li> |
| 81 | </ul> |
| 82 | </div> |
| 83 |