diff options
author | Andrew Dolgov <[email protected]> | 2021-02-15 14:10:46 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-02-15 14:10:46 +0300 |
commit | 82adb01307e108e8a2b4eeb900552160d730d0b7 (patch) | |
tree | 1048a18b3ad79a546e847ca52267249b6ab3b073 /include | |
parent | 916c21fe60490c50e9ae587b0a977302b9110800 (diff) |
render enclosures on the client
Diffstat (limited to 'include')
-rwxr-xr-x | include/controls.php | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/include/controls.php b/include/controls.php index e6678db9a..f706931db 100755 --- a/include/controls.php +++ b/include/controls.php @@ -298,37 +298,6 @@ function print_error($msg) { return print format_error($msg); } -function format_inline_player($url, $ctype) { - - $entry = ""; - - $url = htmlspecialchars($url); - - if (strpos($ctype, "audio/") === 0) { - - $entry .= "<div class='inline-player'>"; - - if ($_SESSION["hasAudio"] && (strpos($ctype, "ogg") !== false || - $_SESSION["hasMp3"])) { - - $entry .= "<audio preload=\"none\" controls> - <source type=\"$ctype\" src=\"$url\"/> - </audio> "; - - } - - if ($entry) $entry .= "<a target=\"_blank\" rel=\"noopener noreferrer\" - href=\"$url\">" . basename($url) . "</a>"; - - $entry .= "</div>"; - - return $entry; - - } - - return ""; -} - function print_label_select($name, $value, $attributes = "") { $pdo = Db::pdo(); |