Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSangramsinh Desai <sangramsinh.desai@t-systems.com>2021-08-30 08:00:17 +0300
committersangramsinh.desai@t-systems.com <sangramsinh.desai@t-systems.com>2021-09-02 07:18:48 +0300
commit2254a40f61e104501e75615a7ee0e3b38563bcab (patch)
tree85e87e8f282f13970229a3fff78483e7389c9634 /apps/files_sharing/templates
parentce8a8c0c83eaf9ab6a57b73bfcd76522c82ca1e3 (diff)
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')
-rw-r--r--apps/files_sharing/templates/public.php13
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">