2012-08-27 23:46:05 +04:00
|
|
|
<input type="hidden" name="dir" value="<?php echo $_['dir'] ?>" id="dir">
|
|
|
|
<input type="hidden" name="downloadURL" value="<?php echo $_['downloadURL'] ?>" id="downloadURL">
|
|
|
|
<input type="hidden" name="filename" value="<?php echo $_['filename'] ?>" id="filename">
|
|
|
|
<input type="hidden" name="mimetype" value="<?php echo $_['mimetype'] ?>" id="mimetype">
|
2012-08-29 19:54:31 +04:00
|
|
|
<header><div id="header">
|
2013-02-15 01:37:49 +04:00
|
|
|
<a href="<?php echo link_to('', 'index.php'); ?>" title="" id="owncloud"><img class="svg"
|
|
|
|
src="<?php echo image_path('', 'logo-wide.svg'); ?>" alt="ownCloud" /></a>
|
2012-08-29 19:54:31 +04:00
|
|
|
<div class="header-right">
|
2012-09-21 13:48:20 +04:00
|
|
|
<?php if (isset($_['folder'])): ?>
|
2013-02-15 01:37:49 +04:00
|
|
|
<span id="details"><?php echo $l->t('%s shared the folder %s with you',
|
|
|
|
array($_['displayName'], $_['fileTarget'])) ?></span>
|
2012-09-21 13:48:20 +04:00
|
|
|
<?php else: ?>
|
2013-02-15 01:37:49 +04:00
|
|
|
<span id="details"><?php echo $l->t('%s shared the file %s with you',
|
|
|
|
array($_['displayName'], $_['fileTarget'])) ?></span>
|
2012-09-21 13:48:20 +04:00
|
|
|
<?php endif; ?>
|
2012-09-19 07:56:00 +04:00
|
|
|
<?php if (!isset($_['folder']) || $_['allowZipDownload']): ?>
|
2013-02-15 01:37:49 +04:00
|
|
|
<a href="<?php echo $_['downloadURL']; ?>" class="button" id="download"><img
|
|
|
|
class="svg" alt="Download" src="<?php echo OCP\image_path("core", "actions/download.svg"); ?>"
|
|
|
|
/><?php echo $l->t('Download')?></a>
|
2012-09-19 07:56:00 +04:00
|
|
|
<?php endif; ?>
|
2012-08-29 19:54:31 +04:00
|
|
|
</div>
|
|
|
|
</div></header>
|
2012-08-27 23:46:05 +04:00
|
|
|
<div id="preview">
|
2012-09-19 07:56:00 +04:00
|
|
|
<?php if (isset($_['folder'])): ?>
|
|
|
|
<?php echo $_['folder']; ?>
|
|
|
|
<?php else: ?>
|
2012-10-23 10:35:54 +04:00
|
|
|
<?php if (substr($_['mimetype'], 0, strpos($_['mimetype'], '/')) == 'image'): ?>
|
2012-09-19 23:46:39 +04:00
|
|
|
<div id="imgframe">
|
|
|
|
<img src="<?php echo $_['downloadURL']; ?>" />
|
|
|
|
</div>
|
2012-09-19 07:56:00 +04:00
|
|
|
<?php endif; ?>
|
|
|
|
<ul id="noPreview">
|
|
|
|
<li class="error">
|
2013-02-11 04:13:13 +04:00
|
|
|
<?php echo $l->t('No preview available for').' '.$_['fileTarget']; ?><br />
|
2013-02-15 01:37:49 +04:00
|
|
|
<a href="<?php echo $_['downloadURL']; ?>" id="download"><img class="svg" alt="Download"
|
|
|
|
src="<?php echo OCP\image_path("core", "actions/download.svg"); ?>"
|
|
|
|
/><?php echo $l->t('Download')?></a>
|
2012-09-19 07:56:00 +04:00
|
|
|
</li>
|
|
|
|
</ul>
|
2012-08-27 23:46:05 +04:00
|
|
|
<?php endif; ?>
|
|
|
|
</div>
|
2013-02-15 01:37:49 +04:00
|
|
|
<footer><p class="info"><a href="http://owncloud.org/">ownCloud</a> –
|
|
|
|
<?php echo $l->t('web services under your control'); ?></p></footer>
|