2014-09-30 13:23:16 +00:00
|
|
|
<?php
|
2014-10-15 09:58:44 +00:00
|
|
|
/** @var $l OC_L10N */
|
|
|
|
/** @var $_ array */
|
|
|
|
|
|
|
|
OCP\Util::addScript('files', 'file-upload');
|
|
|
|
OCP\Util::addStyle('files_sharing', 'public');
|
|
|
|
OCP\Util::addStyle('files_sharing', 'mobile');
|
|
|
|
OCP\Util::addScript('files_sharing', 'public');
|
|
|
|
OCP\Util::addScript('files', 'fileactions');
|
2015-07-16 13:28:45 +00:00
|
|
|
OCP\Util::addScript('files', 'fileactionsmenu');
|
2014-10-15 09:58:44 +00:00
|
|
|
OCP\Util::addScript('files', 'jquery.iframe-transport');
|
|
|
|
OCP\Util::addScript('files', 'jquery.fileupload');
|
|
|
|
|
|
|
|
// JS required for folders
|
|
|
|
OCP\Util::addStyle('files', 'files');
|
|
|
|
OCP\Util::addStyle('files', 'upload');
|
|
|
|
OCP\Util::addScript('files', 'filesummary');
|
|
|
|
OCP\Util::addScript('files', 'breadcrumb');
|
2015-08-18 09:35:21 +00:00
|
|
|
OCP\Util::addScript('files', 'fileinfomodel');
|
2015-08-27 11:22:58 +00:00
|
|
|
OCP\Util::addScript('files', 'newfilemenu');
|
2014-10-15 09:58:44 +00:00
|
|
|
OCP\Util::addScript('files', 'files');
|
|
|
|
OCP\Util::addScript('files', 'filelist');
|
|
|
|
OCP\Util::addscript('files', 'keyboardshortcuts');
|
|
|
|
|
2015-03-16 10:18:25 +00:00
|
|
|
$thumbSize = 1024;
|
2014-09-30 13:23:16 +00:00
|
|
|
?>
|
2014-10-15 09:58:44 +00:00
|
|
|
|
2015-03-16 10:18:25 +00:00
|
|
|
<?php if ($_['previewSupported']): /* This enables preview images for links (e.g. on Facebook, Google+, ...)*/?>
|
2014-05-19 17:53:27 +00:00
|
|
|
<link rel="image_src" href="<?php p(OCP\Util::linkToRoute( 'core_ajax_public_preview', array('x' => $thumbSize, 'y' => $thumbSize, 'file' => $_['directory_path'], 't' => $_['dirToken']))); ?>" />
|
|
|
|
<?php endif; ?>
|
|
|
|
|
2013-06-25 10:24:14 +00:00
|
|
|
<div id="notification-container">
|
2013-07-05 13:07:05 +00:00
|
|
|
<div id="notification" style="display: none;"></div>
|
2013-06-25 10:24:14 +00:00
|
|
|
</div>
|
|
|
|
|
2013-10-08 15:19:58 +00:00
|
|
|
<input type="hidden" id="filesApp" name="filesApp" value="1">
|
2013-10-07 14:59:57 +00:00
|
|
|
<input type="hidden" id="isPublic" name="isPublic" value="1">
|
2013-02-27 20:37:14 +00: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 15:27:41 +00:00
|
|
|
<input type="hidden" name="sharingToken" value="<?php p($_['sharingToken']) ?>" id="sharingToken">
|
2013-02-27 20:37:14 +00:00
|
|
|
<input type="hidden" name="filename" value="<?php p($_['filename']) ?>" id="filename">
|
|
|
|
<input type="hidden" name="mimetype" value="<?php p($_['mimetype']) ?>" id="mimetype">
|
2015-03-16 10:18:25 +00:00
|
|
|
<input type="hidden" name="previewSupported" value="<?php p($_['previewSupported'] ? 'true' : 'false'); ?>" id="previewSupported">
|
2014-09-30 13:23:16 +00:00
|
|
|
<input type="hidden" name="mimetypeIcon" value="<?php p(OC_Helper::mimetypeIcon($_['mimetype'])); ?>" id="mimetypeIcon">
|
2015-01-17 11:11:52 +00:00
|
|
|
<input type="hidden" name="filesize" value="<?php p($_['nonHumanFileSize']); ?>" id="filesize">
|
|
|
|
<input type="hidden" name="maxSizeAnimateGif" value="<?php p($_['maxSizeAnimateGif']); ?>" id="maxSizeAnimateGif">
|
2014-09-30 13:23:16 +00:00
|
|
|
|
|
|
|
|
2014-05-23 12:15:36 +00:00
|
|
|
<header><div id="header" class="<?php p((isset($_['folder']) ? 'share-folder' : 'share-file')) ?>">
|
2014-07-02 21:33:20 +00:00
|
|
|
<a href="<?php print_unescaped(link_to('', 'index.php')); ?>"
|
2014-10-15 09:58:44 +00:00
|
|
|
title="" id="owncloud">
|
2015-05-21 22:04:47 +00:00
|
|
|
<div class="logo-icon svg">
|
2014-12-18 09:50:05 +00:00
|
|
|
</div>
|
2014-07-02 21:33:20 +00:00
|
|
|
</a>
|
2015-05-21 22:04:47 +00:00
|
|
|
|
|
|
|
<div class="header-appname-container">
|
|
|
|
<h1 class="header-appname">
|
|
|
|
<?php
|
|
|
|
if(OC_Util::getEditionString() === '') {
|
|
|
|
p($theme->getName());
|
|
|
|
} else {
|
|
|
|
print_unescaped($theme->getHTMLName());
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</h1>
|
|
|
|
</div>
|
|
|
|
|
2013-07-24 09:51:21 +00:00
|
|
|
<div id="logo-claim" style="display:none;"><?php p($theme->getLogoClaim()); ?></div>
|
2013-07-05 13:07:05 +00:00
|
|
|
<div class="header-right">
|
2014-05-14 11:29:03 +00:00
|
|
|
<span id="details">
|
2014-09-03 14:00:01 +00:00
|
|
|
<?php
|
|
|
|
if ($_['server2serversharing']) {
|
|
|
|
?>
|
|
|
|
<span id="save" data-protected="<?php p($_['protected']) ?>"
|
|
|
|
data-owner="<?php p($_['displayName']) ?>" data-name="<?php p($_['filename']) ?>">
|
2014-07-03 22:07:24 +00:00
|
|
|
<button id="save-button"><?php p($l->t('Add to your ownCloud')) ?></button>
|
2014-05-14 11:29:03 +00:00
|
|
|
<form class="save-form hidden" action="#">
|
2014-07-02 18:32:15 +00:00
|
|
|
<input type="text" id="remote_address" placeholder="example.com/owncloud"/>
|
2015-09-28 18:44:33 +00:00
|
|
|
<button id="save-button-confirm" class="icon-confirm svg" disabled></button>
|
2014-05-14 11:29:03 +00:00
|
|
|
</form>
|
|
|
|
</span>
|
2014-09-03 14:00:01 +00:00
|
|
|
<?php } ?>
|
2014-05-14 11:29:03 +00:00
|
|
|
<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-02 21:21:06 +00:00
|
|
|
<span id="download-text"><?php p($l->t('Download'))?></span>
|
2014-05-14 11:29:03 +00:00
|
|
|
</a>
|
|
|
|
</span>
|
2013-07-05 13:07:05 +00:00
|
|
|
</div>
|
2015-10-06 14:17:25 +00:00
|
|
|
</div></header>
|
|
|
|
<div id="content-wrapper">
|
|
|
|
<div id="content">
|
|
|
|
<div id="preview">
|
|
|
|
<?php if (isset($_['folder'])): ?>
|
|
|
|
<?php print_unescaped($_['folder']); ?>
|
2014-01-23 19:15:10 +00:00
|
|
|
<?php else: ?>
|
2015-10-06 14:17:25 +00:00
|
|
|
<?php if ($_['previewEnabled'] && substr($_['mimetype'], 0, strpos($_['mimetype'], '/')) == 'video'): ?>
|
|
|
|
<div id="imgframe">
|
|
|
|
<video tabindex="0" controls="" preload="none">
|
|
|
|
<source src="<?php p($_['downloadURL']); ?>" type="<?php p($_['mimetype']); ?>" />
|
|
|
|
</video>
|
|
|
|
</div>
|
|
|
|
<?php else: ?>
|
|
|
|
<!-- Preview frame is filled via JS to support SVG images for modern browsers -->
|
|
|
|
<div id="imgframe"></div>
|
|
|
|
<?php endif; ?>
|
|
|
|
<div class="directDownload">
|
|
|
|
<a href="<?php p($_['downloadURL']); ?>" id="downloadFile" 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'])))?> (<?php p($_['fileSize']) ?>)
|
|
|
|
</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-07-05 13:07:05 +00:00
|
|
|
<?php endif; ?>
|
2015-10-06 14:17:25 +00:00
|
|
|
</div>
|
2013-07-05 13:07:05 +00:00
|
|
|
</div>
|
2015-10-06 14:17:25 +00:00
|
|
|
<footer>
|
|
|
|
<p class="info">
|
|
|
|
<?php print_unescaped($theme->getLongFooter()); ?>
|
|
|
|
</p>
|
|
|
|
</footer>
|
2014-01-23 19:15:10 +00:00
|
|
|
</div>
|