fixes item to media link. adds CSS class=resource to div

This commit is contained in:
buttle 2022-03-15 19:27:25 +01:00
parent 1e4610167b
commit 84a54b6f61
1 changed files with 15 additions and 8 deletions

View File

@ -47,10 +47,7 @@ $("#archive_page_title").html('<?php echo $_html ?>');
</div>
<?php endif; ?>
<?php if (!$embedMedia && $itemMedia): ?>
<div class="media-list" style="display: flex;">
<?php foreach ($itemMedia as $media): ?>
<?php echo $media->linkPretty(); ?>
<!-- code to link directly to media
<div class="resource">
<a class="resource-link" href="< ?= $media->originalUrl(); ?>">
<img src="< ?= $media->thumbnailUrl("square"); ?>" />
@ -59,6 +56,16 @@ $("#archive_page_title").html('<?php echo $_html ?>');
</span>
</a>
</div>
-->
<?php if (!$embedMedia && $itemMedia): ?>
<div class="media-list" style="display: flex;">
<?php foreach ($itemMedia as $media): ?>
<div class="resource">
<?php echo $media->linkPretty(); ?>
<!-- include code to link directly to media here -->
</div>
<?php endforeach; ?>
</div>
<?php endif; ?>