summaryrefslogtreecommitdiff
path: root/include/controls.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-12-07 23:20:19 +0300
committerAndrew Dolgov <[email protected]>2018-12-07 23:20:19 +0300
commit33240b7fd92c6661049e1ee18260540d8fc26f0a (patch)
tree161834da540c2eb99138a0af592cfd65b664a5d8 /include/controls.php
parent8c905ca0200e0517fa25544c9c8306a8e47b95ec (diff)
various layout fixes related to inline player causing unnecessary left padding if shorten_expanded is enabled
Diffstat (limited to 'include/controls.php')
-rwxr-xr-xinclude/controls.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/controls.php b/include/controls.php
index 037e331cc..e64a90a8b 100755
--- a/include/controls.php
+++ b/include/controls.php
@@ -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;
}