Item to media link. CSS fixes #50

Merged
jorge merged 2 commits from develop into main 2022-03-16 11:44:08 +01:00
1 changed files with 15 additions and 8 deletions
Showing only changes of commit 84a54b6f61 - Show all commits

View File

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