aria ignore cover images

This commit is contained in:
isUnknown 2024-09-19 11:53:58 +02:00
parent 3000778750
commit 60ba9df2f7
2 changed files with 2 additions and 2 deletions

View file

@ -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');