Blame view
sources/apps/files_sharing/templates/public.php
2.8 KB
|
03e52840d
|
1 2 3 |
<div id="notification-container"> <div id="notification" style="display: none;"></div> </div> |
|
31b7f2792
|
4 |
<input type="hidden" id="filesApp" name="filesApp" value="1"> |
|
03e52840d
|
5 6 7 |
<input type="hidden" id="isPublic" name="isPublic" value="1"> <input type="hidden" name="dir" value="<?php p($_['dir']) ?>" id="dir"> <input type="hidden" name="downloadURL" value="<?php p($_['downloadURL']) ?>" id="downloadURL"> |
|
31b7f2792
|
8 |
<input type="hidden" name="sharingToken" value="<?php p($_['sharingToken']) ?>" id="sharingToken"> |
|
03e52840d
|
9 10 |
<input type="hidden" name="filename" value="<?php p($_['filename']) ?>" id="filename"> <input type="hidden" name="mimetype" value="<?php p($_['mimetype']) ?>" id="mimetype"> |
|
a293d369c
|
11 |
<header><div id="header" class="icon icon-noise <?php p((isset($_['folder']) ? 'share-folder' : 'share-file')) ?>"> |
|
03e52840d
|
12 |
<a href="<?php print_unescaped(link_to('', 'index.php')); ?>" title="" id="owncloud"><img class="svg"
|
|
31b7f2792
|
13 14 |
src="<?php print_unescaped(image_path('', 'logo-wide.svg')); ?>" alt="<?php p($theme->getName()); ?>" /></a>
<div id="logo-claim" style="display:none;"><?php p($theme->getLogoClaim()); ?></div>
|
|
03e52840d
|
15 |
<div class="header-right"> |
|
a293d369c
|
16 |
<span id="details"><?php p($l->t('shared by %s', array($_['displayName']))) ?></span>
|
|
03e52840d
|
17 |
</div> |
|
a293d369c
|
18 |
</div></header> |
|
03e52840d
|
19 |
<div id="content"> |
|
31b7f2792
|
20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
<div id="preview"> <?php if (isset($_['folder'])): ?> <?php print_unescaped($_['folder']); ?> <?php else: ?> <?php if (substr($_['mimetype'], 0, strpos($_['mimetype'], '/')) == 'image'): ?> <div id="imgframe"> <img src="<?php p($_['downloadURL']); ?>" /> </div> <?php elseif (substr($_['mimetype'], 0, strpos($_['mimetype'], '/')) == 'video'): ?> <div id="imgframe"> <video tabindex="0" controls="" autoplay=""> <source src="<?php p($_['downloadURL']); ?>" type="<?php p($_['mimetype']); ?>" /> </video> </div> |
|
a293d369c
|
34 |
<?php else: ?> |
|
31b7f2792
|
35 |
<div id="imgframe"> |
|
a293d369c
|
36 37 |
<?php $size = \OC\Preview::isMimeSupported($_['mimetype']) ? 500 : 128 ?>
<img src="<?php p(OCP\Util::linkToRoute( 'core_ajax_public_preview', array('x' => $size, 'y' => $size, 'file' => urlencode($_['directory_path']), 't' => $_['dirToken']))); ?>" class="publicpreview"/>
|
|
31b7f2792
|
38 |
</div> |
|
31b7f2792
|
39 |
<?php endif; ?> |
|
a293d369c
|
40 41 42 43 44 45 46 47 48 49 |
<div class="directDownload">
<a href="<?php p($_['downloadURL']); ?>" id="download" class="button">
<img class="svg" alt="" src="<?php print_unescaped(OCP\image_path("core", "actions/download.svg")); ?>"/>
<?php p($l->t('Download %s', array($_['filename'])))?>
</a>
</div>
<div class="directLink">
<label for="directLink"><?php p($l->t('Direct link')) ?></label>
<input id="directLink" type="text" readonly value="<?php p($_['downloadURL']); ?>">
</div>
|
|
03e52840d
|
50 |
<?php endif; ?> |
|
31b7f2792
|
51 |
</div> |
|
a293d369c
|
52 53 54 55 56 57 58 |
</div> <footer> <p class="info"> <?php print_unescaped($theme->getLongFooter()); ?> </p> </footer> |