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,15 +51,12 @@ $("#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 />
<span class="resource-name">
<?= $media->displayTitle(); ?>
</span>
</a>
</div>
<?php endforeach; ?>