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">
|
2012-08-29 15:54:31 +00:00
|
|
|
<header><div id="header">
|
2013-07-05 13:07:05 +00:00
|
|
|
<a href="<?php print_unescaped(link_to('', 'index.php')); ?>" title="" id="owncloud"><img class="svg"
|
2013-07-24 09:51:21 +00:00
|
|
|
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>
|
2013-07-05 13:07:05 +00:00
|
|
|
<div class="header-right">
|
2014-01-15 13:36:18 +00:00
|
|
|
<span id="details"><?php p($l->t('shared by %s', array($_['displayName']))) ?></span>
|
2013-07-05 13:07:05 +00:00
|
|
|
</div>
|
|
|
|
</div></header>
|
2013-06-25 10:24:14 +00:00
|
|
|
<div id="content">
|
2013-07-05 13:07:05 +00:00
|
|
|
<div id="preview">
|
|
|
|
<?php if (isset($_['folder'])): ?>
|
|
|
|
<?php print_unescaped($_['folder']); ?>
|
2013-03-14 19:10:21 +00:00
|
|
|
<?php else: ?>
|
2013-07-05 13:07:05 +00: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>
|
2013-08-07 09:48:08 +00:00
|
|
|
<?php elseif (\OC\Preview::isMimeSupported($_['mimetype'])): ?>
|
|
|
|
<div id="imgframe">
|
|
|
|
<img src="<?php p(OCP\Util::linkToRoute( 'core_ajax_public_preview', array('x' => 500, 'y' => 500, 'file' => urlencode($_['directory_path']), 't' => $_['dirToken']))); ?>" class="publicpreview"/>
|
|
|
|
</div>
|
2013-07-05 13:07:05 +00:00
|
|
|
<?php else: ?>
|
|
|
|
<ul id="noPreview">
|
|
|
|
<li class="error">
|
2013-10-22 12:02:44 +00:00
|
|
|
<?php p($l->t('No preview available for').' '.$_['filename']); ?><br />
|
2013-07-05 13:07:05 +00:00
|
|
|
<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; ?>
|
2014-01-15 13:36:18 +00:00
|
|
|
<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 19:10:21 +00:00
|
|
|
<?php endif; ?>
|
2013-07-05 13:07:05 +00:00
|
|
|
</div>
|
|
|
|
<footer>
|
|
|
|
<p class="info">
|
2013-07-24 09:51:21 +00:00
|
|
|
<?php print_unescaped($theme->getLongFooter()); ?>
|
2013-07-05 13:07:05 +00:00
|
|
|
</p>
|
|
|
|
</footer>
|