| 1 |
<?php |
| 2 |
if ( ! defined( 'ABSPATH' ) ) { |
| 3 |
exit; |
| 4 |
} |
| 5 |
?> |
| 6 |
<div class="ee--tstml-inner-wrap"> |
| 7 |
<div class="eel-author-wrap"> |
| 8 |
<?php |
| 9 |
if ( $settings['show_image'] === 'yes' && $image_data ) : ?> |
| 10 |
<div class="eel-picture"> |
| 11 |
<img |
| 12 |
src="<?php echo esc_url( $image_data[0] ); ?>" |
| 13 |
width="<?php echo esc_attr( $image_data[1] ); ?>" |
| 14 |
height="<?php echo esc_attr( $image_data[2] ); ?>" |
| 15 |
alt="<?php echo esc_attr( $alt ); ?>" |
| 16 |
title="<?php echo esc_attr( $title ); ?>" |
| 17 |
loading="lazy" |
| 18 |
decoding="async" fetchpriority="low"> |
| 19 |
</div> |
| 20 |
<?php endif; ?> |
| 21 |
|
| 22 |
<div class="eel-author"> |
| 23 |
<?php if ( ! empty( $item['name'] ) ) : ?> |
| 24 |
<div class="eel-name"><?php echo esc_html( $item['name'] ); ?></div> |
| 25 |
<?php endif; ?> |
| 26 |
|
| 27 |
<?php if ( ! empty( $item['designation'] ) ) : ?> |
| 28 |
<em class="eel-designation"><?php echo esc_html( $item['designation'] ); ?></em> |
| 29 |
<?php endif; ?> |
| 30 |
|
| 31 |
<?php if ( ! empty( $item['rating'] ) && $settings['show_rating'] === 'yes' ) : ?> |
| 32 |
<div class="eel-rating" aria-label="Rating: <?php echo intval( $item['rating'] ); ?> out of 5"> |
| 33 |
<?php |
| 34 |
$easyel_rating = intval( $item['rating'] ); |
| 35 |
for ( $easyel_i = 1; $easyel_i <= 5; $easyel_i++ ) { |
| 36 |
echo '<span class="star' . ( $easyel_i <= $easyel_rating ? ' filled' : '' ) . '">' . ( $easyel_i <= $easyel_rating ? '� |
| 37 |
' : '☆' ) . '</span>'; |
| 38 |
} |
| 39 |
?> |
| 40 |
</div> |
| 41 |
<?php endif; ?> |
| 42 |
</div> |
| 43 |
</div> |
| 44 |
|
| 45 |
<?php if ( ! empty( $item['description'] ) ) : ?> |
| 46 |
<div class="eel-description"><?php echo esc_html( $item['description'] ); ?></div> |
| 47 |
<?php endif; ?> |
| 48 |
|
| 49 |
<?php if ( ! empty( $item['quote_icon']['value'] ) ) : ?> |
| 50 |
<div class="eel-quote" aria-hidden="true"> |
| 51 |
<?php \Elementor\Icons_Manager::render_icon( $item['quote_icon'], [ 'aria-hidden' => 'true' ] ); ?> |
| 52 |
</div> |
| 53 |
<?php endif; ?> |
| 54 |
</div> |
| 55 |
|