videos youtube
This commit is contained in:
parent
5c00ffb34b
commit
4e70cc2925
1 changed files with 5 additions and 2 deletions
|
|
@ -20,9 +20,12 @@
|
|||
<div class="video__wrap">
|
||||
<div class="play-button"></div>
|
||||
<?php
|
||||
if($video['type_video'] == 'vimeo') {
|
||||
//if($video['type_video'] == 'vimeo') {
|
||||
$dasVideoId = str_replace("https://player.vimeo.com/video/","",$video['video']);
|
||||
}
|
||||
$dasVideoId = str_replace("https://www.youtube.com/embed/","",$dasVideoId);
|
||||
$dasVideoId = str_replace("https://www.youtube.com/watch?v=","",$dasVideoId);
|
||||
$dasVideoId = str_replace("https://youtu.be/","",$dasVideoId);
|
||||
// }
|
||||
?>
|
||||
<div class="ldcweb-cn-<?= $video['type_video']; ?>" data-id="<?= $dasVideoId; ?>"></div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue