edited view for media so it has classes and not styles

This commit is contained in:
jorge 2022-03-01 14:29:05 +01:00
parent 72a1d805bb
commit 2fbe867757
1 changed files with 6 additions and 9 deletions

View File

@ -51,17 +51,14 @@ $("#archive_page_title").html('<?php echo $_html ?>');
<div class="media-list" style="display: flex;">
<?php foreach ($itemMedia as $media): ?>
<?php echo $media->linkPretty(); ?>
<br />
<div style="display: flex;
flex: 1;
flex-direction: column;
padding: 0 10px 10px 0;">
<a href="<?= $media->originalUrl(); ?>">
<div class="resource">
<a class="resource-link" href="<?= $media->originalUrl(); ?>">
<img src="<?= $media->thumbnailUrl("square"); ?>" />
<br />
<?= $media->displayTitle(); ?>
<span class="resource-name">
<?= $media->displayTitle(); ?>
</span>
</a>
</div>
</div>
<?php endforeach; ?>
</div>
<?php endif; ?>