2014-04-29 17:28:35 +04:00
|
|
|
<?php /** @var $l OC_L10N */ ?>
|
2013-06-25 14:24:14 +04:00
|
|
|
<div id="notification-container">
|
2013-07-05 17:07:05 +04:00
|
|
|
<div id="notification" style="display: none;"></div>
|
2013-06-25 14:24:14 +04:00
|
|
|
</div>
|
|
|
|
|
2013-10-08 19:19:58 +04:00
|
|
|
<input type="hidden" id="filesApp" name="filesApp" value="1">
|
2013-10-07 18:59:57 +04:00
|
|
|
<input type="hidden" id="isPublic" name="isPublic" value="1">
|
2013-02-28 00:37:14 +04:00
|
|
|
<input type="hidden" name="dir" value="<?php p($_['dir']) ?>" id="dir">
|
|
|
|
<input type="hidden" name="downloadURL" value="<?php p($_['downloadURL']) ?>" id="downloadURL">
|
2013-11-15 19:27:41 +04:00
|
|
|
<input type="hidden" name="sharingToken" value="<?php p($_['sharingToken']) ?>" id="sharingToken">
|
2013-02-28 00:37:14 +04:00
|
|
|
<input type="hidden" name="filename" value="<?php p($_['filename']) ?>" id="filename">
|
|
|
|
<input type="hidden" name="mimetype" value="<?php p($_['mimetype']) ?>" id="mimetype">
|
2014-05-23 16:15:36 +04:00
|
|
|
<header><div id="header" class="<?php p((isset($_['folder']) ? 'share-folder' : 'share-file')) ?>">
|
2014-07-03 01:33:20 +04:00
|
|
|
<a href="<?php print_unescaped(link_to('', 'index.php')); ?>"
|
|
|
|
title="" id="owncloud">
|
2014-07-03 14:20:44 +04:00
|
|
|
<div class="logo-wide svg"></div>
|
2014-07-03 01:33:20 +04:00
|
|
|
</a>
|
2013-07-24 13:51:21 +04:00
|
|
|
<div id="logo-claim" style="display:none;"><?php p($theme->getLogoClaim()); ?></div>
|
2013-07-05 17:07:05 +04:00
|
|
|
<div class="header-right">
|
2014-05-14 15:29:03 +04:00
|
|
|
<span id="details">
|
2014-06-05 13:29:01 +04:00
|
|
|
<span id="save" data-protected="<?php p($_['protected'])?>" data-owner="<?php p($_['displayName'])?>" data-name="<?php p($_['filename'])?>">
|
2014-07-04 02:07:24 +04:00
|
|
|
<button id="save-button"><?php p($l->t('Add to your ownCloud')) ?></button>
|
2014-05-14 15:29:03 +04:00
|
|
|
<form class="save-form hidden" action="#">
|
2014-07-02 22:32:15 +04:00
|
|
|
<input type="text" id="remote_address" placeholder="example.com/owncloud"/>
|
2014-07-04 02:07:24 +04:00
|
|
|
<button id="save-button-confirm" class="icon-confirm svg"></button>
|
2014-05-14 15:29:03 +04:00
|
|
|
</form>
|
|
|
|
</span>
|
|
|
|
<a href="<?php p($_['downloadURL']); ?>" id="download" class="button">
|
|
|
|
<img class="svg" alt="" src="<?php print_unescaped(OCP\image_path("core", "actions/download.svg")); ?>"/>
|
2014-07-03 01:21:06 +04:00
|
|
|
<span id="download-text"><?php p($l->t('Download'))?></span>
|
2014-05-14 15:29:03 +04:00
|
|
|
</a>
|
|
|
|
</span>
|
2013-07-05 17:07:05 +04:00
|
|
|
</div>
|
2014-01-23 16:51:51 +04:00
|
|
|
</div></header>
|
2013-06-25 14:24:14 +04:00
|
|
|
<div id="content">
|
2013-07-05 17:07:05 +04:00
|
|
|
<div id="preview">
|
|
|
|
<?php if (isset($_['folder'])): ?>
|
|
|
|
<?php print_unescaped($_['folder']); ?>
|
2013-03-14 23:10:21 +04:00
|
|
|
<?php else: ?>
|
2013-07-05 17:07:05 +04:00
|
|
|
<?php if (substr($_['mimetype'], 0, strpos($_['mimetype'], '/')) == 'image'): ?>
|
|
|
|
<div id="imgframe">
|
|
|
|
</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>
|
2014-01-23 23:15:10 +04:00
|
|
|
<?php else: ?>
|
2013-08-07 13:48:08 +04:00
|
|
|
<div id="imgframe">
|
2014-01-29 19:52:30 +04:00
|
|
|
<?php $size = \OC\Preview::isMimeSupported($_['mimetype']) ? 500 : 128 ?>
|
2014-04-29 17:28:35 +04:00
|
|
|
<img
|
|
|
|
src="<?php p(OCP\Util::linkToRoute( 'core_ajax_public_preview', array('x' => $size, 'y' => $size, 'file' => $_['directory_path'], 't' => $_['dirToken']))); ?>"
|
|
|
|
class="publicpreview"
|
|
|
|
alt="" />
|
2013-08-07 13:48:08 +04:00
|
|
|
</div>
|
2013-07-05 17:07:05 +04:00
|
|
|
<?php endif; ?>
|
2014-01-16 18:28:39 +04:00
|
|
|
<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")); ?>"/>
|
2014-01-15 18:31:27 +04:00
|
|
|
<?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>
|
2013-03-14 23:10:21 +04:00
|
|
|
<?php endif; ?>
|
2013-07-05 17:07:05 +04:00
|
|
|
</div>
|
2014-01-23 23:15:10 +04:00
|
|
|
|
|
|
|
</div>
|
|
|
|
<footer>
|
|
|
|
<p class="info">
|
|
|
|
<?php print_unescaped($theme->getLongFooter()); ?>
|
|
|
|
</p>
|
|
|
|
</footer>
|