Item to media link. CSS fixes #50
|
@ -47,17 +47,24 @@ $("#archive_page_title").html('<?php echo $_html ?>');
|
|||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- code to link directly to media
|
||||
<div class="resource">
|
||||
<a class="resource-link" href="< ?= $media->originalUrl(); ?>">
|
||||
<img src="< ?= $media->thumbnailUrl("square"); ?>" />
|
||||
<span class="resource-name">
|
||||
< ?= $media->displayTitle(); ?>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
-->
|
||||
|
||||
|
||||
<?php if (!$embedMedia && $itemMedia): ?>
|
||||
<div class="media-list" style="display: flex;">
|
||||
<?php foreach ($itemMedia as $media): ?>
|
||||
<?php echo $media->linkPretty(); ?>
|
||||
<div class="resource">
|
||||
<a class="resource-link" href="<?= $media->originalUrl(); ?>">
|
||||
<img src="<?= $media->thumbnailUrl("square"); ?>" />
|
||||
<span class="resource-name">
|
||||
<?= $media->displayTitle(); ?>
|
||||
</span>
|
||||
</a>
|
||||
<?php echo $media->linkPretty(); ?>
|
||||
<!-- include code to link directly to media here -->
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue