PluginProbe ʕ •ᴥ•ʔ
Spider Elements – Premium Elementor Widgets & Addons Library / 1.6.5
Spider Elements – Premium Elementor Widgets & Addons Library v1.6.5
trunk 1.0.0 1.1.0 1.5.0 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 1.6.6 1.6.7 1.7.0 1.8.0 1.9.0
spider-elements / widgets / templates / testimonials / testimonial-6.php
spider-elements / widgets / templates / testimonials Last commit date
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-6.php
77 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);?>" data-rtl="<?php echo esc_attr(spel_rtl()) ?>">
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 ( $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 = '&#9734;'; // Unicode outline star
25 } else {
26 $icon = '&#9733;'; // 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']) ?>
52 </h3>
53 <?php
54 }
55 if ( !empty($item['author_name']) ) { ?>
56 <div class="block-footer ezd-d-flex ezd-align-items-center ezd-justify-content-between pt-35 lg-pt-20">
57 <div class="ezd-d-flex ezd-align-items-center">
58 <img src="<?php echo esc_url($item['author_image']['url']);?>" alt=""
59 class="author-img ezd-rounded-circle">
60 <div class="ezd-ms-3">
61 <div class="name fw-500"><?php echo esc_html($item['author_name']); ?></div>
62 <span class="opacity-50"><?php echo esc_html($item['author_position']); ?></span>
63 </div>
64 </div>
65 <img class="quote-icon" src="<?php echo esc_url($item['company_image']['url']);?>" alt="">
66 </div>
67 <?php
68 }
69 ?>
70 </div>
71 </div>
72 <?php
73 }
74 }
75 ?>
76 </div>
77 </div>