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">
|
|
|
|
<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-02-27 20:37:14 +00: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>
|
2012-08-29 15:54:31 +00:00
|
|
|
<div class="header-right">
|
2012-09-21 09:48:20 +00:00
|
|
|
<?php if (isset($_['folder'])): ?>
|
2013-02-27 20:37:14 +00:00
|
|
|
<span id="details"><?php p($l->t('%s shared the folder %s with you',
|
|
|
|
array($_['displayName'], $_['fileTarget']))) ?></span>
|
2012-09-21 09:48:20 +00:00
|
|
|
<?php else: ?>
|
2013-02-27 20:37:14 +00:00
|
|
|
<span id="details"><?php p($l->t('%s shared the file %s with you',
|
|
|
|
array($_['displayName'], $_['fileTarget']))) ?></span>
|
2012-09-21 09:48:20 +00:00
|
|
|
<?php endif; ?>
|
2012-09-19 03:56:00 +00:00
|
|
|
<?php if (!isset($_['folder']) || $_['allowZipDownload']): ?>
|
2013-02-27 20:37:14 +00:00
|
|
|
<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")); ?>"
|
|
|
|
/><?php p($l->t('Download'))?></a>
|
2012-09-19 03:56:00 +00:00
|
|
|
<?php endif; ?>
|
2012-08-29 15:54:31 +00:00
|
|
|
</div>
|
|
|
|
</div></header>
|
2012-08-27 19:46:05 +00:00
|
|
|
<div id="preview">
|
2012-09-19 03:56:00 +00:00
|
|
|
<?php if (isset($_['folder'])): ?>
|
2013-02-27 20:37:14 +00:00
|
|
|
<?php print_unescaped($_['folder']); ?>
|
2012-09-19 03:56:00 +00:00
|
|
|
<?php else: ?>
|
2012-10-23 06:35:54 +00:00
|
|
|
<?php if (substr($_['mimetype'], 0, strpos($_['mimetype'], '/')) == 'image'): ?>
|
2012-09-19 19:46:39 +00:00
|
|
|
<div id="imgframe">
|
2013-02-27 20:37:14 +00:00
|
|
|
<img src="<?php p($_['downloadURL']); ?>" />
|
2012-09-19 19:46:39 +00:00
|
|
|
</div>
|
2013-03-14 19:10:21 +00:00
|
|
|
<?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: ?>
|
2012-09-19 03:56:00 +00:00
|
|
|
<ul id="noPreview">
|
|
|
|
<li class="error">
|
2013-02-27 20:37:14 +00:00
|
|
|
<?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>
|
2012-09-19 03:56:00 +00:00
|
|
|
</li>
|
|
|
|
</ul>
|
2013-03-14 19:10:21 +00:00
|
|
|
<?php endif; ?>
|
2012-08-27 19:46:05 +00:00
|
|
|
<?php endif; ?>
|
|
|
|
</div>
|
2013-06-13 14:10:33 +00:00
|
|
|
<footer>
|
|
|
|
<p class="info"><a href="<?php p(OC_Defaults::getBaseUrl()); ?>"><?php p(OC_Defaults::getEntity()) ?></a>
|
|
|
|
<?php OC_Util::getEditionString() === '' ? print_unescaped(' – ') : print_unescaped('<br/>'); ?>
|
|
|
|
<?php p(OC_Defaults::getSlogan()); ?>
|
|
|
|
</p>
|
|
|
|
</footer>
|