<?php

$share_link = get_field('share_link');

if($share_link){
	$video_id_from_share_link = basename($share_link);
}

?>



<section <?php echo  get_block_wrapper_attributes(array('class' => 'block-custom-video custom-video content-section')) ?>>
		<iframe id="ik-vod-<?php echo $video_id_from_share_link ; ?>" class="ik-player-1jhvl2upwockr ik-embed" src="https://player.vod2.infomaniak.com/embed/<?php echo $video_id_from_share_link ; ?>" width="100%" height="auto" style="aspect-ratio: 16 / 9" allowfullscreen crossorigin="anonymous" frameborder="0" allow="autoplay; fullscreen; picture-in-picture"></iframe>
</section>


