IMPR: minor

This commit is contained in:
Tony Air 2022-05-02 09:59:22 +02:00
parent 367c33939c
commit e56511d1e6

View File

@ -88,6 +88,15 @@ class SlideImageEx extends DataExtension
'DateOff',
]);
$width = $this->getSlideWidth();
$height = $this->getSlideHeight();
$imgFieldTitle = 'Image';
if($width && $height) {
$title .= '('.$this->getSlideWidth().' x '.$this->getSlideHeight().' px)';
}else{
$title .= '(original image size will be used)';
}
$fields->dataFieldByName('Image')
->setTitle('Image ('.$this->getSlideWidth().' x '.$this->getSlideHeight().' px)');