PluginProbe
Easy Elements for Elementor – Addons & Website Templates / 1.3.7
Easy Elements for Elementor – Addons & Website Templates v1.3.7
1.5.3 1.5.2 1.5.1 1.5.0 1.4.9 1.4.6 1.4.7 1.4.8 1.4.5 1.4.4 1.4.3 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 All 47 releases
easy-elements / widgets / testimonials-grid / skins / skin7.php

skin7.php in Easy Elements for Elementor – Addons & Website Templates 1.3.7, at widgets/testimonials-grid/skins/skin7.php

78 lines 3.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) {
3 exit;
4 }
5
6
7
8
9
10 // logo data
11 $logo_data = ! empty( $item['logo']['id'] ) ? wp_get_attachment_image_src( $item['logo']['id'], 'full' ) : '';
12 $logo_alt = ! empty( $item['logo']['id'] ) ? get_post_meta( $item['logo']['id'], '_wp_attachment_image_alt', true ) : '';
13 $logo_title = ! empty( $item['logo']['id'] ) ? get_the_title( $item['logo']['id'] ) : '';
14
15 // image data
16 $image_data = ! empty( $item['image']['id'] ) ? wp_get_attachment_image_src( $item['image']['id'], 'full' ) : '';
17 $alt = ! empty( $item['image']['id'] ) ? get_post_meta( $item['image']['id'], '_wp_attachment_image_alt', true ) : '';
18 $title = ! empty( $item['image']['id'] ) ? get_the_title( $item['image']['id'] ) : '';
19 ?>
20
21
22 <?php if ( ! empty( $logo_data ) ) : ?>
23 <div class="eel-company-logo">
24 <img src="<?php echo esc_url( $logo_data[0] ); ?>"
25 width="<?php echo esc_attr( $logo_data[1] ); ?>"
26 height="<?php echo esc_attr( $logo_data[2] ); ?>"
27 alt="<?php echo esc_attr( $logo_alt ); ?>"
28 title="<?php echo esc_attr( $logo_title ); ?>"
29 loading="lazy" decoding="async" fetchpriority="low">
30 </div>
31 <?php endif; ?>
32
33 <?php if ( ! empty( $item['description'] ) ) : ?>
34 <div class="eel-description"><?php echo esc_html( $item['description'] ); ?></div>
35 <?php endif; ?>
36
37 <div class="eel-author-wrap">
38 <?php if ( $settings['show_image'] === 'yes' && $image_data ) : ?>
39 <div class="eel-picture">
40 <img src="<?php echo esc_url( $image_data[0] ); ?>"
41 width="<?php echo esc_attr( $image_data[1] ); ?>"
42 height="<?php echo esc_attr( $image_data[2] ); ?>"
43 alt="<?php echo esc_attr( $alt ); ?>"
44 title="<?php echo esc_attr( $title ); ?>"
45 loading="lazy" decoding="async" fetchpriority="low">
46 </div>
47 <?php endif; ?>
48
49 <div class="eel-author">
50 <?php if ( ! empty( $item['name'] ) ) : ?>
51 <div class="eel-name"><?php echo esc_html( $item['name'] ); ?></div>
52 <?php endif; ?>
53
54 <?php if ( ! empty( $item['designation'] ) ) : ?>
55 <em class="eel-designation"><?php echo esc_html( $item['designation'] ); ?></em>
56 <?php endif; ?>
57 </div>
58
59 <?php if ( ! empty( $item['rating'] ) ) : ?>
60 <div class="eel-rating" aria-label="Rating: <?php echo intval( $item['rating'] ); ?> out of 5">
61 <?php
62 $rating = intval( $item['rating'] );
63 for ( $j = 1; $j <= 5; $j++ ) {
64 echo '<span class="star' . ( $j <= $rating ? ' filled' : '' ) . '">' . ( $j <= $rating ? '�
65 ' : '' ) . '</span>';
66 }
67 ?>
68 </div>
69 <?php endif; ?>
70 </div>
71
72
73
74 <?php if ( $i > 6 ) : ?>
75 <div class="overlay"></div>
76 <?php endif; ?>
77 </div>
78