<?php else: ?>
<!-- preview frame to open file in with viewer -->
<div id="imgframe"></div>
- <?php if (isset($_['mimetype']) && strpos($_['mimetype'], 'image') === 0) { ?>
+ <?php if (isset($_['mimetype']) && strpos($_['mimetype'], 'image') === 0): ?>
<div class="directDownload">
<div>
<?php p($_['filename'])?> (<?php p($_['fileSize']) ?>)
</a>
<?php } ?>
</div>
- <?php } ?>
- <?php if ($_['previewURL'] === $_['downloadURL'] && !$_['hideDownload']): ?>
+ <?php elseif ($_['previewURL'] === $_['downloadURL'] && !$_['hideDownload']): ?>
<div class="directDownload">
<div>
<?php p($_['filename'])?> (<?php p($_['fileSize']) ?>)