Skip to content

Commit

Permalink
Pass the mime type to the download element links
Browse files Browse the repository at this point in the history
  • Loading branch information
Toflar committed Jul 23, 2019
1 parent 6742d9e commit 715e0b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<?php $this->block('content'); ?>

<p class="download-element ext-<?= $this->extension ?>">
<a href="<?= $this->href ?>" title="<?= $this->title ?>"><?= $this->link ?> <span class="size">(<?= $this->filesize ?>)</span></a>
<a href="<?= $this->href ?>" title="<?= $this->title ?>" type="<?= $this->mime ?>"><?= $this->link ?> <span class="size">(<?= $this->filesize ?>)</span></a>
</p>

<?php $this->endblock(); ?>
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<ul>
<?php foreach ($this->files as $file): ?>
<li class="download-element ext-<?= $file['extension'] ?>">
<a href="<?= $file['href'] ?>" title="<?= $file['title'] ?>"><?= $file['link'] ?> <span class="size">(<?= $file['filesize'] ?>)</span></a>
<a href="<?= $file['href'] ?>" title="<?= $file['title'] ?>" type="<?= $file['mime'] ?>"><?= $file['link'] ?> <span class="size">(<?= $file['filesize'] ?>)</span></a>
</li>
<?php endforeach; ?>
</ul>
Expand Down

0 comments on commit 715e0b7

Please sign in to comment.