Add google drive video link type

This commit is contained in:
Robert Miles 2018-06-29 20:39:21 -04:00
parent a6f0d9fa05
commit eaf9f73927
1 changed files with 4 additions and 0 deletions

View File

@ -15,6 +15,10 @@
$bump_embed = str_replace("/watch?v=","/embed/",$data["bump_url"]);
echo "\t<iframe width='560' height='315' src='{$bump_embed}' frameborder='0' allow='encrypted-media' allowfullscreen></iframe>\n";
}
if ($data["bump_url_type"]=="gdrive") {
$bump_embed = str_replace("/view","/preview",$data["bump_url"]);
echo "\t<iframe src='{$bump_embed}' width='640' height='480'></iframe>\n";
}
} else {
echo "\t<p>Something's wrong. Please contact the sitemaster at khuxkm&lt;at>tilde&lt;dot>team.</p>\n";
}