IMPR: minor
This commit is contained in:
parent
367c33939c
commit
e56511d1e6
|
@ -88,6 +88,15 @@ class SlideImageEx extends DataExtension
|
||||||
'DateOff',
|
'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')
|
$fields->dataFieldByName('Image')
|
||||||
->setTitle('Image ('.$this->getSlideWidth().' x '.$this->getSlideHeight().' px)');
|
->setTitle('Image ('.$this->getSlideWidth().' x '.$this->getSlideHeight().' px)');
|
||||||
|
|
Loading…
Reference in New Issue