HEX
Server: Apache
System: Linux webd004.cluster130.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User: frenchy (106757)
PHP: 7.4.33
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/frenchy/refonte2023/wordpress/wp-content/plugins/ova-team/templates/parts/item-team.php
<?php
   
    if ( isset( $args['id'] ) && $args['id'] ) {
		$id = $args['id'];
	} else {
		$id = get_the_id();
	}

	$image_id 		= get_post_thumbnail_id();
	$image_alt 		= get_the_title();
	$image_title 	= get_the_title();
	$image_src 		= \Elementor\Utils::get_placeholder_image_src();

	if ( $image_id ) {
		if ( get_post_meta( $image_id, '_wp_attachment_image_alt', true ) ) {
			$image_alt = get_post_meta( $image_id, '_wp_attachment_image_alt', true );
		}
		$image_title 	= get_the_title( $image_id );
		$image_src 		= wp_get_attachment_image_src( $image_id, 'large' )[0];
	}

	$job = get_post_meta( $id, 'ova_team_met_job', true );
	$list_social = get_post_meta( $id, 'ova_team_met_group_icon', true );

?>

	<div class="ova-team-items items">

		<div class="ova-media">
			
				<img src="<?php echo esc_url( $image_src ); ?>" alt="<?php echo esc_attr( $image_alt ); ?>" title="<?php echo esc_attr( $image_title ); ?>">
		
		</div>
		<div class="ova-info-content">

			<?php if( ! empty( $job ) ) { ?>
				<p class="job">
					<?php echo esc_html( $job ) ?>
				</p>
			<?php } ?>

			<h3 class="name">
					<?php echo get_the_title(); ?>
			
			</h3>

			<?php if ( $list_social ): ?>

				<ul class="ova-social">
					<?php 
					foreach( $list_social as $social ){

						$class_icon = isset( $social['ova_team_met_class_icon_social'] ) ? $social['ova_team_met_class_icon_social'] : '';
						$link_social = isset( $social['ova_team_met_link_social'] ) ? $social['ova_team_met_link_social'] : '';
						?>
						<li class="icon">
							<a href="#<?php //echo esc_url( $link_social ); ?>" target="_blank" aria-label="<?php //esc_attr_e( 'Share social team link', 'ova-team' ) ?>">
								<i class="<?php echo esc_attr( $class_icon ) ?>" aria-hidden="true"></i>
							</a>
						</li>
						<?php
					}
					?>

				</ul>
			<?php endif; ?>

		</div>

	</div>