mirror of
https://github.com/a2nt/silverstripe-elemental-basics.git
synced 2024-10-22 17:05:54 +02:00
IMPR: minor
This commit is contained in:
parent
367c33939c
commit
e56511d1e6
@ -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)');
|
||||
|
Loading…
Reference in New Issue
Block a user