aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/templates/public.php
diff options
context:
space:
mode:
authorFlorian Storz <fstorz@users.noreply.github.com>2021-06-25 16:09:47 +0200
committerFlorian Storz <florian.storz@devlix.de>2021-07-19 18:55:57 +0200
commit2b6ff55fa96a0dd1a549f14bf148fdacf1288025 (patch)
treed4748958d8e1260691eb90b0b18b5da67b181356 /apps/files_sharing/templates/public.php
parent00edbc2adf4d9362041f5611c62967f5a70e5b7e (diff)
downloadnextcloud-server-2b6ff55fa96a0dd1a549f14bf148fdacf1288025.tar.gz
nextcloud-server-2b6ff55fa96a0dd1a549f14bf148fdacf1288025.zip
hide download button for public preview of audio files
When the option to hide downloads was selected at public link creation, the download button can be hidden by the audio html attribute controlsList="nodownload" Signed-off-by: Florian Storz <florian.storz@devlix.de>
Diffstat (limited to 'apps/files_sharing/templates/public.php')
-rw-r--r--apps/files_sharing/templates/public.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files_sharing/templates/public.php b/apps/files_sharing/templates/public.php
index ffc449f9e63..c17734e46c1 100644
--- a/apps/files_sharing/templates/public.php
+++ b/apps/files_sharing/templates/public.php
@@ -63,7 +63,8 @@ $maxUploadFilesize = min($upload_max_filesize, $post_max_size);
<?php else: ?>
<?php if ($_['previewEnabled'] && substr($_['mimetype'], 0, strpos($_['mimetype'], '/')) == 'audio'): ?>
<div id="imgframe">
- <audio tabindex="0" controls="" preload="none" style="width: 100%; max-width: <?php p($_['previewMaxX']); ?>px; max-height: <?php p($_['previewMaxY']); ?>px">
+ <audio tabindex="0" controls="" preload="none" style="width: 100%; max-width: <?php p($_['previewMaxX']); ?>px; max-height: <?php p($_['previewMaxY']); ?>px"
+ <?php if ($_['hideDownload']) { ?>controlsList="nodownload" <?php } ?>>
<source src="<?php p($_['downloadURL']); ?>" type="<?php p($_['mimetype']); ?>" />
</audio>
</div>