PluginProbe
ElementsKit Elementor Addons – Advanced Widgets & Templates Addons for Elementor / 4.0.1
ElementsKit Elementor Addons – Advanced Widgets & Templates Addons for Elementor v4.0.1
4.0.4 4.0.3 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 All 183 releases
elementskit-lite / widgets / testimonial / style / style2.php
style2.php
69 lines 4.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <div class="elementskit-testimonial-slider 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
8 if ( !empty( $testimonial['link']['url'] ) ):
9 $wrapTag = 'a';
10 $this->add_link_attributes( 'link-' . $testimonial['_id'], $testimonial['link'] );
11 endif;
12 ?>
13 <div class="swiper-slide">
14 <div class="swiper-slide-inner">
15 <<?php echo esc_attr( $wrapTag ); ?> class="elementskit-testimonial-inner 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 ?>>
16 <div class="elementskit-single-testimonial-slider <?php echo esc_attr(!empty($testimonial['ekit_testimonial_active']) ? 'testimonial-active' : ''); ?> ekit_testimonial_style_2">
17 <div class="elementskit-commentor-content">
18 <?php
19 if (isset($testimonial['client_logo']) && !empty($testimonial['client_logo']['url']) && sizeof($testimonial['client_logo']) > 0) { ?>
20 <div class="elementskit-client_logo">
21 <?php if (isset($testimonial['client_logo_active']) && sizeof($testimonial['client_logo_active']) > 0 && $testimonial['use_hover_logo'] == 'yes') : ?>
22 <?php echo wp_kses( \Elementskit_Lite\Utils::get_attachment_image_html($testimonial, 'client_logo_active', 'full', [
23 'class' => 'elementskit-testimonial-client-active-logo'
24 ]), \ElementsKit_Lite\Utils::get_kses_array()); ?>
25 <?php endif; ?>
26 <?php echo wp_kses( \Elementskit_Lite\Utils::get_attachment_image_html($testimonial, 'client_logo', 'full', [
27 'class' => 'elementskit-testimonial-client-logo'
28 ]), \ElementsKit_Lite\Utils::get_kses_array());?>
29 </div>
30 <?php
31 }
32 if ( isset($testimonial['review']) && !empty($testimonial['review'])) : ?>
33 <p><?php echo isset($testimonial['review']) ? wp_kses($testimonial['review'], \ElementsKit_Lite\Utils::get_kses_array()) : ''; ?></p>
34 <?php endif; ?>
35 <?php if ( 'yes' == $ekit_testimonial_title_separetor ): ?>
36 <span class="elementskit-border-hr"></span>
37 <?php endif; ?>
38 <span class="elementskit-profile-info">
39 <strong class="elementskit-author-name"><?php echo isset($testimonial['client_name']) ? esc_html($testimonial['client_name']) : ''; ?></strong>
40 <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>
41 </span>
42 </div>
43 <?php if(isset($ekit_testimonial_wartermark_enable) && $ekit_testimonial_wartermark_enable == 'yes'):?>
44 <div class="elementskit-watermark-icon <?php if ($ekit_testimonial_wartermark_custom_position == 'yes') : ?> ekit_watermark_icon_custom_position <?php endif; ?>">
45 <?php \Elementor\Icons_Manager::render_icon( $settings['ekit_testimonial_wartermarks'], [ 'aria-hidden' => 'true' ] ); ?>
46 </div>
47 <?php endif;?>
48 </div>
49 </<?php echo esc_attr( $wrapTag ); ?>>
50 </div>
51 </div>
52 <?php endforeach; ?>
53 </div>
54
55 <?php if($settings['ekit_testimonial_show_dot'] == 'yes') : ?>
56 <div class="swiper-pagination"></div>
57 <?php endif; ?>
58
59 <?php if(!empty($settings['ekit_testimonial_show_arrow'])) : ?>
60 <div class="swiper-navigation-button swiper-button-prev">
61 <?php \Elementor\Icons_Manager::render_icon($ekit_testimonial_left_arrows, [ 'aria-hidden' => 'true' ]); ?>
62 </div>
63 <div class="swiper-navigation-button swiper-button-next">
64 <?php \Elementor\Icons_Manager::render_icon($ekit_testimonial_right_arrows, [ 'aria-hidden' => 'true' ]); ?>
65 </div>
66 <?php endif; ?>
67 </div>
68 </div>
69