aria ignore cover images
This commit is contained in:
parent
3000778750
commit
60ba9df2f7
2 changed files with 2 additions and 2 deletions
|
|
@ -10,7 +10,7 @@
|
|||
<?php endif ?>
|
||||
<?php
|
||||
$file = $event->gallery()->toFiles()->count() > 1 ? $event->gallery()->toFiles()->nth(1) : $event->gallery()->toFiles()->first();
|
||||
snippet('picture', ["file" => $file, 'size' => (100 / (12 / $span) - 10)]);
|
||||
snippet('picture', ["file" => $file, 'size' => (100 / (12 / $span) - 10), 'alt' => null]);
|
||||
?>
|
||||
</div>
|
||||
<div class="event-card__infos">
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<?php if (isset($file)): ?>
|
||||
<?php
|
||||
$sizes = isset($size) ? '(min-width: 800px) ' . $size . 'vw, 100vw' : '(min-width: 800px) 50vw, 100vw';
|
||||
$alt = $file->alt();
|
||||
$alt = $alt ?? $file->alt();
|
||||
$crop = $crop ?? false;
|
||||
|
||||
$webPSrcset = $crop === 'banner' ? $file->crop(1600, 800)->srcset('webp') : $file->srcset('webp');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue