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-07-03 17:18:19 +04:00
|
|
|
<?php $defaults = new OCP\Defaults(); // initialize themable default strings and urls ?>
|
2013-07-03 14:38:20 +04:00
|
|
|
|
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">
|
|
|
|
<input type="hidden" name="filename" value="<?php p($_['filename']) ?>" id="filename">
|
|
|
|
<input type="hidden" name="mimetype" value="<?php p($_['mimetype']) ?>" id="mimetype">
|
2012-08-29 19:54:31 +04:00
|
|
|
<header><div id="header">
|
2013-07-05 17:07:05 +04:00
|
|
|
<a href="<?php print_unescaped(link_to('', 'index.php')); ?>" title="" id="owncloud"><img class="svg"
|
|
|
|
src="<?php print_unescaped(image_path('', 'logo-wide.svg')); ?>" alt="ownCloud" /></a>
|
|
|
|
<div id="logo-claim" style="display:none;"><?php p($defaults->getLogoClaim()); ?></div>
|
|
|
|
<div class="header-right">
|
|
|
|
<?php if (isset($_['folder'])): ?>
|
|
|
|
<span id="details"><?php p($l->t('%s shared the folder %s with you',
|
|
|
|
array($_['displayName'], $_['fileTarget']))) ?></span>
|
|
|
|
<?php else: ?>
|
|
|
|
<span id="details"><?php p($l->t('%s shared the file %s with you',
|
|
|
|
array($_['displayName'], $_['fileTarget']))) ?></span>
|
|
|
|
<?php endif; ?>
|
|
|
|
|
|
|
|
|
|
|
|
<?php if (!isset($_['folder']) || $_['allowZipDownload']): ?>
|
|
|
|
<a href="<?php p($_['downloadURL']); ?>" class="button" id="download"><img
|
|
|
|
class="svg" alt="Download" src="<?php print_unescaped(OCP\image_path("core", "actions/download.svg")); ?>"
|
|
|
|
/><span><?php p($l->t('Download'))?></span></a>
|
|
|
|
<?php endif; ?>
|
|
|
|
|
|
|
|
<?php if ($_['allowPublicUploadEnabled']):?>
|
|
|
|
|
|
|
|
|
|
|
|
<input type="hidden" id="publicUploadRequestToken" name="requesttoken" value="<?php p($_['requesttoken']) ?>" />
|
|
|
|
<input type="hidden" id="dirToken" name="dirToken" value="<?php p($_['dirToken']) ?>" />
|
|
|
|
<input type="hidden" id="uploadMaxFilesize" name="uploadMaxFilesize" value="<?php p($_['uploadMaxFilesize']) ?>" />
|
|
|
|
<input type="hidden" id="uploadMaxHumanFilesize" name="uploadMaxHumanFilesize" value="<?php p($_['uploadMaxHumanFilesize']) ?>" />
|
|
|
|
<input type="hidden" id="directory_path" name="directory_path" value="<?php p($_['directory_path']) ?>" />
|
|
|
|
<?php if($_['uploadMaxFilesize'] >= 0):?>
|
|
|
|
<input type="hidden" name="MAX_FILE_SIZE" id="max_upload"
|
|
|
|
value="<?php p($_['uploadMaxFilesize']) ?>">
|
|
|
|
<?php endif;?>
|
|
|
|
|
|
|
|
|
|
|
|
<div id="data-upload-form" class="button" title="<?php p($l->t('Upload') . ' max. '.$_['uploadMaxHumanFilesize']) ?>">
|
|
|
|
<input id="file_upload_start" type="file" name="files[]" data-url="<?php print_unescaped(OCP\Util::linkTo('files', 'ajax/upload.php')); ?>" multiple>
|
|
|
|
<a href="#" id="publicUploadButtonMock" class="svg">
|
|
|
|
<span><?php p($l->t('Upload'))?></span>
|
|
|
|
</a>
|
|
|
|
</div>
|
2013-06-25 14:24:14 +04:00
|
|
|
|
2013-07-05 17:07:05 +04:00
|
|
|
</div>
|
2013-06-25 14:24:14 +04:00
|
|
|
|
2013-07-05 17:07:05 +04:00
|
|
|
<div id="additional_controls" style="display:none">
|
|
|
|
<div id="uploadprogresswrapper">
|
|
|
|
<div id="uploadprogressbar"></div>
|
|
|
|
<input id="cancel_upload_button" type="button" class="stop" style="display:none"
|
|
|
|
value="<?php p($l->t('Cancel upload'));?>"
|
|
|
|
/>
|
|
|
|
</div>
|
2013-06-25 14:24:14 +04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-07-05 17:07:05 +04:00
|
|
|
<?php endif; ?>
|
2013-06-25 14:24:14 +04:00
|
|
|
|
2013-07-05 17:07:05 +04:00
|
|
|
</div>
|
|
|
|
</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">
|
|
|
|
<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>
|
|
|
|
<?php else: ?>
|
|
|
|
<ul id="noPreview">
|
|
|
|
<li class="error">
|
|
|
|
<?php p($l->t('No preview available for').' '.$_['fileTarget']); ?><br />
|
|
|
|
<a href="<?php p($_['downloadURL']); ?>" id="download"><img class="svg" alt="Download"
|
|
|
|
src="<?php print_unescaped(OCP\image_path("core", "actions/download.svg")); ?>"
|
|
|
|
/><?php p($l->t('Download'))?></a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<?php endif; ?>
|
2013-03-14 23:10:21 +04:00
|
|
|
<?php endif; ?>
|
2013-07-05 17:07:05 +04:00
|
|
|
</div>
|
|
|
|
<footer>
|
|
|
|
<p class="info">
|
|
|
|
<?php print_unescaped($defaults->getLongFooter()); ?>
|
|
|
|
</p>
|
|
|
|
</footer>
|