support for gifs
This commit is contained in:
@@ -10,7 +10,11 @@ $src = $image->url();
|
||||
<a href="<?= $block->link()->value() ?>">
|
||||
<?php endif ?>
|
||||
<figure>
|
||||
<img srcset="<?= $image->srcset('full') ?>" alt="<?= $alt->esc() ?>" loading="lazy">
|
||||
<img <?php if ($image->extension() == 'gif'): ?>
|
||||
src="<?= $src ?>"
|
||||
<?php else: ?>
|
||||
srcset="<?= $image->srcset('full') ?>"
|
||||
<?php endif ?>alt="<?= $alt->esc() ?>" loading="lazy">
|
||||
<?php if ($caption->isNotEmpty()): ?>
|
||||
<figcaption>
|
||||
<?= $caption ?>
|
||||
|
||||
Reference in New Issue
Block a user