fixes item to media link. adds CSS class=resource to div
This commit is contained in:
parent
1e4610167b
commit
84a54b6f61
|
@ -47,18 +47,25 @@ $("#archive_page_title").html('<?php echo $_html ?>');
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?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): ?>
|
<?php if (!$embedMedia && $itemMedia): ?>
|
||||||
<div class="media-list" style="display: flex;">
|
<div class="media-list" style="display: flex;">
|
||||||
<?php foreach ($itemMedia as $media): ?>
|
<?php foreach ($itemMedia as $media): ?>
|
||||||
|
<div class="resource">
|
||||||
<?php echo $media->linkPretty(); ?>
|
<?php echo $media->linkPretty(); ?>
|
||||||
<div class="resource">
|
<!-- include code to link directly to media here -->
|
||||||
<a class="resource-link" href="<?= $media->originalUrl(); ?>">
|
</div>
|
||||||
<img src="<?= $media->thumbnailUrl("square"); ?>" />
|
|
||||||
<span class="resource-name">
|
|
||||||
<?= $media->displayTitle(); ?>
|
|
||||||
</span>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
Loading…
Reference in New Issue