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;"> <div class="media-list" style="display: flex;">
<?php foreach ($itemMedia as $media): ?> <?php foreach ($itemMedia as $media): ?>
<?php echo $media->linkPretty(); ?> <?php echo $media->linkPretty(); ?>
<br /> <div class="resource">
<div style="display: flex; <a class="resource-link" href="<?= $media->originalUrl(); ?>">
flex: 1;
flex-direction: column;
padding: 0 10px 10px 0;">
<a href="<?= $media->originalUrl(); ?>">
<img src="<?= $media->thumbnailUrl("square"); ?>" /> <img src="<?= $media->thumbnailUrl("square"); ?>" />
<br /> <span class="resource-name">
<?= $media->displayTitle(); ?> <?= $media->displayTitle(); ?>
</span>
</a> </a>
</div> </div>
<?php endforeach; ?> <?php endforeach; ?>
</div> </div>
<?php endif; ?> <?php endif; ?>