diff options
author | Julius Härtl <jus@bitgrid.net> | 2018-01-22 10:58:23 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2018-01-22 13:22:52 +0100 |
commit | 4d3dbb345f6870c048d9a94a5739e46c9351ae38 (patch) | |
tree | 5369c69dfaa437cba985b830d8a973446a914eaf /apps/files_sharing/templates | |
parent | 1194e4c2bd6da09c975935d9f139052cfff9091e (diff) | |
download | nextcloud-server-4d3dbb345f6870c048d9a94a5739e46c9351ae38.tar.gz nextcloud-server-4d3dbb345f6870c048d9a94a5739e46c9351ae38.zip |
Remove video preview from files_sharing
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/files_sharing/templates')
-rw-r--r-- | apps/files_sharing/templates/public.php | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/apps/files_sharing/templates/public.php b/apps/files_sharing/templates/public.php index 9d28c178dde..3c2bbe5fb59 100644 --- a/apps/files_sharing/templates/public.php +++ b/apps/files_sharing/templates/public.php @@ -91,13 +91,7 @@ $maxUploadFilesize = min($upload_max_filesize, $post_max_size); <?php if (isset($_['folder'])): ?> <?php print_unescaped($_['folder']); ?> <?php else: ?> - <?php if ($_['previewEnabled'] && substr($_['mimetype'], 0, strpos($_['mimetype'], '/')) === 'video'): ?> - <div id="imgframe"> - <video tabindex="0" controls="" preload="none" style="max-width: <?php p($_['previewMaxX']); ?>px; max-height: <?php p($_['previewMaxY']); ?>px"> - <source src="<?php p($_['downloadURL']); ?>" type="<?php p($_['mimetype']); ?>" /> - </video> - </div> - <?php elseif ($_['previewEnabled'] && substr($_['mimetype'], 0, strpos($_['mimetype'], '/')) == 'audio'): ?> + <?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"> <source src="<?php p($_['downloadURL']); ?>" type="<?php p($_['mimetype']); ?>" /> |