1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 01:25:56 +00:00

various layout fixes related to inline player causing unnecessary left padding if shorten_expanded is enabled

This commit is contained in:
Andrew Dolgov
2018-12-07 23:20:19 +03:00
parent 8c905ca020
commit 33240b7fd9
7 changed files with 41 additions and 4 deletions

View File

@@ -286,18 +286,22 @@ function format_inline_player($url, $ctype) {
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>";
</audio> ";
}
if ($entry) $entry .= "&nbsp; <a target=\"_blank\" rel=\"noopener noreferrer\"
if ($entry) $entry .= "<a target=\"_blank\" rel=\"noopener noreferrer\"
href=\"$url\">" . basename($url) . "</a>";
$entry .= "</div>";
return $entry;
}