mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-21 08:11:29 +00:00
format_inline_player: add a link to original audio file
This commit is contained in:
@@ -2870,6 +2870,8 @@
|
||||
|
||||
$entry = "";
|
||||
|
||||
$url = htmlspecialchars($url);
|
||||
|
||||
if (strpos($ctype, "audio/") === 0) {
|
||||
|
||||
if ($_SESSION["hasAudio"] && (strpos($ctype, "ogg") !== false ||
|
||||
@@ -2896,7 +2898,8 @@
|
||||
</object>";
|
||||
}
|
||||
|
||||
if ($entry) $entry .= " " . basename($url);
|
||||
if ($entry) $entry .= " <a target=\"_blank\"
|
||||
href=\"$url\">" . basename($url) . "</a>";
|
||||
|
||||
return $entry;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user