PluginProbe ʕ •ᴥ•ʔ
ElementsKit Elementor Addons – Advanced Widgets & Templates Addons for Elementor / 4.0.0
ElementsKit Elementor Addons – Advanced Widgets & Templates Addons for Elementor v4.0.0
4.0.2 4.0.1 4.0.0 3.10.02 3.10.01 3.9.10 3.9.9 3.9.8 3.9.7 3.9.5 3.9.6 3.9.3 2.1.0 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.3.0 2.3.1 2.3.1.1 2.3.2 2.3.3 2.3.4 2.3.5 2.3.6 2.3.7 2.4.0 2.5.0 2.5.1 2.5.10 2.5.2 2.5.3 2.5.4 2.5.5 2.5.6 2.5.7 2.5.8 2.5.9 2.6.0 2.6.1 2.6.2 2.6.3 2.7.0 2.7.2 2.7.3 2.7.4 2.7.5 2.8.0 2.8.1 2.8.5 2.8.6 2.8.7 2.8.8 2.9.0 2.9.1 2.9.2 3.0.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.1.0 3.1.1 3.1.2 3.1.3 3.1.4 3.2.0 3.2.1 3.2.2 3.2.3 3.2.4 3.2.5 3.2.6 3.2.7 3.2.8 3.2.9 3.3.0 3.3.1 3.3.2 3.3.3 3.3.4 3.3.5 3.3.6 3.3.7 3.3.8 3.3.9 3.4.0 3.4.1 3.4.2 3.4.3 3.4.4 3.4.5 3.4.6 3.4.7 3.4.8 3.4.9 3.5.0 3.5.1 3.5.2 3.5.3 3.5.4 3.5.5 3.5.6 3.6.0 3.6.1 3.7.0 3.7.1 3.7.2 3.7.3 3.7.4 3.7.5 3.7.6 3.7.7 3.7.8 3.7.9 3.8.0 3.8.1 3.8.2 3.9.0 3.9.1 3.9.2 trunk 1.2.6 1.2.7 1.2.9 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.8 1.3.9 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.7 1.4.8 1.4.9 1.5.0 1.5.1 1.5.10 1.5.11 1.5.12 1.5.2 1.5.4 1.5.5 1.5.6 1.5.7 1.5.8 1.5.9 2.0.0 2.0.1 2.0.10 2.0.11 2.0.12 2.0.13 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 2.0.9.1 2.0.9.2 2.0.9.3
elementskit-lite / widgets / testimonial / style / style4.php
elementskit-lite / widgets / testimonial / style Last commit date
style1.php 3 weeks ago style2.php 3 weeks ago style3.php 3 weeks ago style4.php 1 year ago style5.php 1 year ago style6.php 1 year ago
style4.php
90 lines
1 <div class="elementskit-testimonial-slider ekit-testimonia-style-4 arrow_inside <?php echo !empty($settings['ekit_testimonial_show_dot']) ? 'slider-dotted' : '' ?>" <?php $this->print_render_attribute_string('wrapper'); ?>>
2 <div <?php $this->print_render_attribute_string('swiper-container'); ?>>
3 <div class="swiper-wrapper">
4 <?php
5 foreach ($testimonials as $testimonial):
6 $wrapTag = 'div';
7 $ratingTag = 'a';
8
9 if ( !empty( $testimonial['link']['url'] ) ):
10 $wrapTag = 'a';
11 $ratingTag = 'span';
12
13 $this->add_link_attributes( 'link-' . $testimonial['_id'], $testimonial['link'] );
14 endif;
15 ?>
16 <div class="swiper-slide">
17 <div class="swiper-slide-inner">
18 <<?php echo esc_attr( $wrapTag ); ?> class="elementskit-single-testimonial-slider elementskit-testimonial-slider-block-style <?php echo esc_attr(!empty($testimonial['ekit_testimonial_active']) ? 'testimonial-active' : ''); ?> elementor-repeater-item-<?php echo esc_attr( $testimonial[ '_id' ] ); ?>" <?php echo $this->get_render_attribute_string( 'link-' . esc_attr($testimonial['_id'] )); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Already escaped by elementor ?>>
19 <div class="elementskit-commentor-bio <?php echo esc_attr($ekit_testimonial_client_area_alignment); ?>">
20 <?php if (isset($testimonial['client_photo']) && !empty($testimonial['client_photo']['url']) && sizeof($testimonial['client_photo']) > 0) { ?>
21
22 <?php if ( !empty( $testimonial['client_photo']['url'] ) ): ?>
23 <div class="elementskit-commentor-image ekit-testimonial--avatar">
24 <?php
25 $client_image_size = isset($ekit_testimonial_client_image_size) ? $ekit_testimonial_client_image_size : '';
26
27 if (is_array($client_image_size) && isset($client_image_size['size'])) {
28 echo wp_kses( \Elementskit_Lite\Utils::get_attachment_image_html($testimonial, 'client_photo', 'full', [
29 'height' => esc_attr($client_image_size['size']),
30 'width' => esc_attr($client_image_size['size'])
31 ]), \ElementsKit_Lite\Utils::get_kses_array());
32 } else {
33 // Handle the case where $client_image_size is not an array or 'size' is not set
34 echo wp_kses( \Elementskit_Lite\Utils::get_attachment_image_html($testimonial, 'client_photo', 'full'), \ElementsKit_Lite\Utils::get_kses_array());
35 }
36 ?>
37 </div>
38 <?php endif; ?>
39 <?php } ?>
40 <span class="elementskit-profile-info">
41 <strong class="elementskit-author-name"><?php echo isset($testimonial['client_name']) ? esc_html($testimonial['client_name']) : ''; ?></strong>
42 <span class="elementskit-author-des"><?php echo isset($testimonial['designation']) ? wp_kses(\ElementsKit_Lite\Utils::kspan($testimonial['designation']), \ElementsKit_Lite\Utils::get_kses_array()) : ''; // phpcs:ignore WordPress.Security.EscapeOutput -- Already escaped by kspan method by elementskit ?></span>
43 </span>
44 </div>
45 <div class="elementskit-commentor-content">
46 <?php if(isset($ekit_testimonial_wartermark_enable) && $ekit_testimonial_wartermark_enable == 'yes'):?>
47
48 <span class="elementskit-watermark-icon ekit_watermark_icon_custom_position">
49 <?php \Elementor\Icons_Manager::render_icon( $settings['ekit_testimonial_wartermarks'], [ 'aria-hidden' => 'true' ] ); ?>
50 </span>
51
52 <?php endif;?>
53 <?php if ( isset($testimonial['review']) && !empty($testimonial['review'])) : ?>
54 <p><?php echo isset($testimonial['review']) ? wp_kses($testimonial['review'], \ElementsKit_Lite\Utils::get_kses_array()): ''; ?></p>
55 <?php endif; ?>
56 <?php if ($ekit_testimonial_rating_enable == 'yes') : ?>
57 <ul class="elementskit-stars">
58 <?php
59 $reviewData = isset($testimonial['rating']) ? $testimonial['rating'] : 0;
60 for($m = 1; $m <= 5; $m++){
61 $iconStart = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path d="M287.9 0c9.2 0 17.6 5.2 21.6 13.5l68.6 141.3 153.2 22.6c9 1.3 16.5 7.6 19.3 16.3s.5 18.1-5.9 24.5L433.6 328.4l26.2 155.6c1.5 9-2.2 18.1-9.7 23.5s-17.3 6-25.3 1.7l-137-73.2L151 509.1c-8.1 4.3-17.9 3.7-25.3-1.7s-11.2-14.5-9.7-23.5l26.2-155.6L31.1 218.2c-6.5-6.4-8.7-15.9-5.9-24.5s10.3-14.9 19.3-16.3l153.2-22.6L266.3 13.5C270.4 5.2 278.7 0 287.9 0zm0 79L235.4 187.2c-3.5 7.1-10.2 12.1-18.1 13.3L99 217.9 184.9 303c5.5 5.5 8.1 13.3 6.8 21L171.4 443.7l105.2-56.2c7.1-3.8 15.6-3.8 22.6 0l105.2 56.2L384.2 324.1c-1.3-7.7 1.2-15.5 6.8-21l85.9-85.1L358.6 200.5c-7.8-1.2-14.6-6.1-18.1-13.3L287.9 79z"/></svg>';
62 if($reviewData >= $m){
63 $iconStart = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path d="M316.9 18C311.6 7 300.4 0 288.1 0s-23.4 7-28.8 18L195 150.3 51.4 171.5c-12 1.8-22 10.2-25.7 21.7s-.7 24.2 7.9 32.7L137.8 329 113.2 474.7c-2 12 3 24.2 12.9 31.3s23 8 33.8 2.3l128.3-68.5 128.3 68.5c10.8 5.7 23.9 4.9 33.8-2.3s14.9-19.3 12.9-31.3L438.5 329 542.7 225.9c8.6-8.5 11.7-21.2 7.9-32.7s-13.7-19.9-25.7-21.7L381.2 150.3 316.9 18z"/></svg>';
64 }
65 ?>
66 <li><<?php echo esc_attr( $ratingTag ); ?>><?php echo wp_kses($iconStart, \ElementsKit_Lite\Utils::get_kses_array()); ?></<?php echo esc_attr( $ratingTag ); ?>></li>
67 <?php }?>
68 </ul>
69 <?php endif; ?>
70 </div><!-- .commentor-content END -->
71 </<?php echo esc_attr( $wrapTag ); ?>>
72 </div>
73 </div>
74 <?php endforeach; ?>
75 </div>
76
77 <?php if($settings['ekit_testimonial_show_dot'] == 'yes') : ?>
78 <div class="swiper-pagination"></div>
79 <?php endif; ?>
80
81 <?php if(!empty($settings['ekit_testimonial_show_arrow'])) : ?>
82 <div class="swiper-navigation-button swiper-button-prev">
83 <?php \Elementor\Icons_Manager::render_icon($ekit_testimonial_left_arrows, [ 'aria-hidden' => 'true' ]); ?>
84 </div>
85 <div class="swiper-navigation-button swiper-button-next">
86 <?php \Elementor\Icons_Manager::render_icon($ekit_testimonial_right_arrows, [ 'aria-hidden' => 'true' ]); ?>
87 </div>
88 <?php endif; ?>
89 </div>
90 </div>