Add google drive video link type
This commit is contained in:
parent
a6f0d9fa05
commit
eaf9f73927
4
bump.php
4
bump.php
|
@ -15,6 +15,10 @@
|
||||||
$bump_embed = str_replace("/watch?v=","/embed/",$data["bump_url"]);
|
$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";
|
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 {
|
} else {
|
||||||
echo "\t<p>Something's wrong. Please contact the sitemaster at khuxkm<at>tilde<dot>team.</p>\n";
|
echo "\t<p>Something's wrong. Please contact the sitemaster at khuxkm<at>tilde<dot>team.</p>\n";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue