REFACTOR share link name
This commit is contained in:
parent
3703801173
commit
3beedb9dc7
|
|
@ -3,7 +3,7 @@
|
||||||
$share_link = get_field('share_link');
|
$share_link = get_field('share_link');
|
||||||
|
|
||||||
if($share_link){
|
if($share_link){
|
||||||
$video_id_from_share_link = basename($share_link);
|
$audio_id_from_share_link = basename($share_link);
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
@ -12,7 +12,7 @@ if($share_link){
|
||||||
|
|
||||||
<section <?php echo get_block_wrapper_attributes(array('class' => 'block-custom-video custom-video content-section')) ?>>
|
<section <?php echo get_block_wrapper_attributes(array('class' => 'block-custom-video custom-video content-section')) ?>>
|
||||||
<div style="position: relative; width: 100%; height: 80px; overflow: hidden;">
|
<div style="position: relative; width: 100%; height: 80px; overflow: hidden;">
|
||||||
<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="80px" style="position: absolute; top: 0; left: 0; right: 0; bottom: 0" allowfullscreen crossorigin="anonymous" frameborder="0" allow="autoplay; fullscreen; picture-in-picture"></iframe>
|
<iframe id="ik-vod-<?php echo $audio_id_from_share_link ; ?>" class="ik-player-1jhvl2upwockr ik-embed" src="https://player.vod2.infomaniak.com/embed/<?php echo $audio_id_from_share_link ; ?>" width="100%" height="80px" style="position: absolute; top: 0; left: 0; right: 0; bottom: 0" allowfullscreen crossorigin="anonymous" frameborder="0" allow="autoplay; fullscreen; picture-in-picture"></iframe>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user