colonelwog 2044
| Posté : 09-06-2019 14:41
petite modif pour avoir l'autoplay ou pas avec l'argument 0 ou 1
function MM_ytvideo($id_yt_video,$bloc_width,$bloc_height,$autoplay)&nbs p;{
$content="";
$id_yt_video = arg_filter($id_yt_video);
$bloc_width = arg_filter($bloc_width);
$bloc_height = arg_filter($bloc_height);
$autoplay = arg_filter($autoplay);
$content .='<!iframe! width="'.$bloc_width.'" height="'.$bloc_height.'" src="https://www.youtube.com/!embed!/'.$id_yt_video.'?autoplay='.$autoplay.'" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></!iframe!>';
return ($content);
}
|