Bug #92449 » fluid.patch
source/typo3/sysext/fluid/Classes/ViewHelpers/MediaViewHelper.php 2021-10-07 12:32:37.407039761 +0200 | ||
---|---|---|
}
|
||
}
|
||
$this->tag->addAttribute('src', $imageUri);
|
||
$this->tag->addAttribute('width', $processedImage->getProperty('width'));
|
||
$this->tag->addAttribute('height', $processedImage->getProperty('height'));
|
||
if('svg' == $image->getProperty('extension'))
|
||
{
|
||
if(0 < $width) $this->tag->addAttribute('width', $width);
|
||
if(0 < $height) $this->tag->addAttribute('height', $height);
|
||
}
|
||
else
|
||
{
|
||
$this->tag->addAttribute('width', $processedImage->getProperty('width'));
|
||
$this->tag->addAttribute('height', $processedImage->getProperty('height'));
|
||
}
|
||
if (in_array($this->arguments['loading'] ?? '', ['lazy', 'eager', 'auto'], true)) {
|
||
$this->tag->addAttribute('loading', $this->arguments['loading']);
|
||
}
|
- « Previous
- 1
- 2
- 3
- Next »