Remove video preview from files_sharing
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
1194e4c2bd
commit
4d3dbb345f
|
@ -39,15 +39,10 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#imgframe img,
|
#imgframe img {
|
||||||
#imgframe video {
|
|
||||||
max-height: 100% !important;
|
max-height: 100% !important;
|
||||||
max-width: 100% !important;
|
max-width: 100% !important;
|
||||||
}
|
}
|
||||||
#imgframe video {
|
|
||||||
width: 854px;
|
|
||||||
height: 480px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#imgframe .text-preview {
|
#imgframe .text-preview {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
|
|
@ -91,13 +91,7 @@ $maxUploadFilesize = min($upload_max_filesize, $post_max_size);
|
||||||
<?php if (isset($_['folder'])): ?>
|
<?php if (isset($_['folder'])): ?>
|
||||||
<?php print_unescaped($_['folder']); ?>
|
<?php print_unescaped($_['folder']); ?>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<?php if ($_['previewEnabled'] && substr($_['mimetype'], 0, strpos($_['mimetype'], '/')) === 'video'): ?>
|
<?php if ($_['previewEnabled'] && substr($_['mimetype'], 0, strpos($_['mimetype'], '/')) == 'audio'): ?>
|
||||||
<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'): ?>
|
|
||||||
<div id="imgframe">
|
<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">
|
||||||
<source src="<?php p($_['downloadURL']); ?>" type="<?php p($_['mimetype']); ?>" />
|
<source src="<?php p($_['downloadURL']); ?>" type="<?php p($_['mimetype']); ?>" />
|
||||||
|
|
Loading…
Reference in New Issue