5
1
Fork 0
mirror of https://github.com/Anvilcraft/jensmemes synced 2024-11-25 21:32:30 +01:00

some minor design fixes

This commit is contained in:
Jonas Leder 2020-06-28 17:44:27 +02:00
parent 208c61826c
commit 71d642d8f8

View file

@ -4,7 +4,7 @@ $random = rand(0, count($files) - 1);
$file = $files[$random]; $file = $files[$random];
$ext = strtolower(pathinfo($file, PATHINFO_EXTENSION)); $ext = strtolower(pathinfo($file, PATHINFO_EXTENSION));
if ($ext == "mp4") { if ($ext == "mp4") {
echo '<a href="' . $file . '"><video src=' . $file . ' controls ></video></a>'; echo "<a href='$file'><video src='$file' controls ></video></a>";
} else { } else {
echo "<a href='$file'><img src='$file' /></a>"; echo "<a href='$file'><img src='$file' /></a>";
} }