| 1 |
<?php |
| 2 |
if ( ! defined( 'ABSPATH' ) ) { |
| 3 |
exit; |
| 4 |
} |
| 5 |
?> |
| 6 |
<div class="grid-item <?php echo esc_attr( $settings['team_skin'] )?>"> |
| 7 |
<div class="ee--team-img"> |
| 8 |
<?php if ( $action_type === 'link' && $link ) : ?> |
| 9 |
<a href="<?php echo esc_url( $link ); ?>" |
| 10 |
<?php if ( $target ) : ?>target="<?php echo esc_attr( $target ); ?>"<?php endif; ?> |
| 11 |
<?php if ( $nofollow ) : ?>rel="<?php echo esc_attr( $nofollow ); ?>"<?php endif; ?>> |
| 12 |
<?php elseif ( $action_type === 'popup' ) : ?> |
| 13 |
<a href="#<?php echo esc_attr($unique_id); ?>" class="eel-popup-trigger" data-popup-id="<?php echo esc_attr($unique_id); ?>"> |
| 14 |
<?php endif; ?> |
| 15 |
|
| 16 |
<?php if ( $image_data ) : ?> |
| 17 |
<div class="eel-team-img-area"> |
| 18 |
<div class="eel-team-img-box"> |
| 19 |
<img class="eel-team-img" |
| 20 |
src="<?php echo esc_url( $image_data[0] ); ?>" |
| 21 |
width="<?php echo esc_attr( $image_data[1] ); ?>" |
| 22 |
height="<?php echo esc_attr( $image_data[2] ); ?>" |
| 23 |
alt="<?php echo esc_attr( $alt ); ?>" |
| 24 |
title="<?php echo esc_attr( $title ); ?>" |
| 25 |
loading="lazy" |
| 26 |
decoding="async" fetchpriority="<?php echo esc_attr( $fetchpriority ); ?>"> |
| 27 |
<div class="eel-image-below-bg"></div> |
| 28 |
<div class="eel-image-overlay"></div> |
| 29 |
<div class="eel-image-content"> |
| 30 |
<?php if ( $details ) : ?> |
| 31 |
<div class="eel-description"> |
| 32 |
<?php echo wp_kses_post( $details ); ?> |
| 33 |
</div> |
| 34 |
<?php endif; ?> |
| 35 |
</div> |
| 36 |
</div> |
| 37 |
</div> |
| 38 |
<?php endif; ?> |
| 39 |
<div class="eel-team-deg-content"> |
| 40 |
<div class="eel-name-deg-wrap"> |
| 41 |
<?php if ( ! empty( $name ) ) : |
| 42 |
echo wp_kses_post( $name ); |
| 43 |
endif; ?> |
| 44 |
<?php if ( ! empty( $designation ) ) : ?> |
| 45 |
<div class="eel-designation"><?php echo esc_html( $designation ); ?></div> |
| 46 |
<?php endif; ?> |
| 47 |
</div> |
| 48 |
</div> |
| 49 |
<?php if ( ($action_type === 'link' && $link) || $action_type === 'popup' ) : ?> |
| 50 |
</a> |
| 51 |
<?php endif; ?> |
| 52 |
<div class="eel-social-media"> |
| 53 |
<?php if ( $settings['social_links'] && $settings['show_social_icon'] == 'yes' && $settings['social_icon_position'] == 'default'): ?> |
| 54 |
<div class="eel-team-grid-social <?php echo esc_attr( $settings['social_icon_position'].' '.$settings['social_icon_show'] )?>"> |
| 55 |
<?php if( $settings['social_icon_show'] =='hover_show' && !empty( $settings['social_hover_icon']['value']) ): ?> |
| 56 |
<div class="eel-team-social-hover"> |
| 57 |
<a href="#"> |
| 58 |
<?php \Elementor\Icons_Manager::render_icon( $settings['social_hover_icon'], [ 'aria-hidden' => 'true' ] ); ?> |
| 59 |
</a> |
| 60 |
</div> |
| 61 |
<?php endif;?> |
| 62 |
<ul> |
| 63 |
<?php foreach ( $settings['social_links'] as $easyel_item ):?> |
| 64 |
<li> |
| 65 |
<a href="<?php echo esc_attr( $easyel_item['link_url']['url'] )?>"> |
| 66 |
<?php \Elementor\Icons_Manager::render_icon( $easyel_item['icon'], [ 'aria-hidden' => 'true' ] ); ?> |
| 67 |
</a> |
| 68 |
</li> |
| 69 |
<?php endforeach; ?> |
| 70 |
</ul> |
| 71 |
</div> |
| 72 |
<?php endif; ?> |
| 73 |
</div> |
| 74 |
<?php if ( $settings['social_links'] && $settings['show_social_icon'] == 'yes' && $settings['social_icon_position'] != 'default'): ?> |
| 75 |
<div class="eel-team-grid-social <?php echo esc_attr( $settings['social_icon_position'].' '.$settings['social_icon_show'] )?>"> |
| 76 |
<?php if( $settings['social_icon_show'] =='hover_show' && !empty( $settings['social_hover_icon']['value']) ): ?> |
| 77 |
<div class="eel-team-social-hover"> |
| 78 |
<a href="#"> |
| 79 |
<?php \Elementor\Icons_Manager::render_icon( $settings['social_hover_icon'], [ 'aria-hidden' => 'true' ] ); ?> |
| 80 |
</a> |
| 81 |
</div> |
| 82 |
<?php endif;?> |
| 83 |
<ul> |
| 84 |
<?php foreach ( $settings['social_links'] as $easyel_item ):?> |
| 85 |
<li> |
| 86 |
<a href="<?php echo esc_attr( $easyel_item['link_url']['url'] )?>"> |
| 87 |
<?php \Elementor\Icons_Manager::render_icon( $easyel_item['icon'], [ 'aria-hidden' => 'true' ] ); ?> |
| 88 |
</a> |
| 89 |
</li> |
| 90 |
<?php endforeach; ?> |
| 91 |
</ul> |
| 92 |
</div> |
| 93 |
<?php endif; ?> |
| 94 |
</div> |
| 95 |
</div> |
| 96 |
|