mirror of
https://github.com/nextcloud/server.git
synced 2026-05-21 17:45:40 -04:00
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>
This commit is contained in:
parent
81e9495c51
commit
1cdf2a268b
1 changed files with 2 additions and 1 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in a new issue