diff options
author | Sangramsinh Desai <sangramsinh.desai@t-systems.com> | 2021-08-30 10:30:17 +0530 |
---|---|---|
committer | sangramsinh.desai@t-systems.com <sangramsinh.desai@t-systems.com> | 2021-09-02 09:48:48 +0530 |
commit | 2254a40f61e104501e75615a7ee0e3b38563bcab (patch) | |
tree | 85e87e8f282f13970229a3fff78483e7389c9634 /apps/files_sharing/templates/public.php | |
parent | ce8a8c0c83eaf9ab6a57b73bfcd76522c82ca1e3 (diff) | |
download | nextcloud-server-2254a40f61e104501e75615a7ee0e3b38563bcab.tar.gz nextcloud-server-2254a40f61e104501e75615a7ee0e3b38563bcab.zip |
Guest view download button seperated for image
Signed-off-by: Sangramsinh Desai <sangramsinh.desai@t-systems.com>
Signed-off-by: sangramsinh.desai@t-systems.com <sangramsinh.desai@t-systems.com>
Diffstat (limited to 'apps/files_sharing/templates/public.php')
-rw-r--r-- | apps/files_sharing/templates/public.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/apps/files_sharing/templates/public.php b/apps/files_sharing/templates/public.php index 27621a0340f..799e18c955b 100644 --- a/apps/files_sharing/templates/public.php +++ b/apps/files_sharing/templates/public.php @@ -72,6 +72,19 @@ $maxUploadFilesize = min($upload_max_filesize, $post_max_size); <?php else: ?> <!-- Preview frame is filled via JS to support SVG images for modern browsers --> <div id="imgframe"></div> + <?php if(isset($_['mimetype'])){ ?> + <?php if (strpos($_['mimetype'], 'image') === 0) { ?> + <div class="directDownload"> + <div class="video-file-details"> + <?php p($l->t('%s', [$_['filename']]))?> (<?php p($_['fileSize']) ?>) + </div> + <a href="<?php p($_['downloadURL']); ?>" id="downloadFile" class="button"> + <span class="icon icon-download"></span> + <?php p($l->t('Download'))?> + </a> + </div> + <?php } ?> + <?php } ?> <?php endif; ?> <?php if ($_['previewURL'] === $_['downloadURL'] && !$_['hideDownload']): ?> <div class="directDownload"> |