PaRtiZzaN,
<?php if ($data['last_down'] !== 'none'): ?><div class="col-md-6 col-sm-12 mt-3 tile"> <div class="forums"> <div class="forums_title"><?= __('New files') ?></div> <?php if (! empty($file['screenshots'])): ?> <?php foreach ($file['screenshots'] as $number => $screenshot): ?> <a href="<?= $screenshot['url'] ?>" title="<?= __('Screenshot:') ?> <?= ($number + 1) ?>" data-source="<?= $screenshot['url'] ?>" class="gallery-item"> <img src="<?= $screenshot['preview'] ?>" alt="." class="files"> </a> <?php endforeach; ?> <?php endif; ?> <?php foreach($data['last_down'] as $fitem): ?> <a href="/downloads/?act=view&id=<?= $fitem['uid'] ?>"> <h4><i class="fal fa-file-archive"></i> <?= $fitem['rus_name'] ?></h4> <div class="sub"> <span><i class="fal fa-user-tag"></i> <?= $fitem['user'] ?></span> <span><i class="fal fa-comment-dots"></i> <?= $fitem['coms'] ?></span> </div> </a> <?php endforeach; ?> </div></div><?php endif; ?>где не так скриншот не виден