mirror of
https://github.com/a2nt/silverstripe-elemental-basics.git
synced 2024-10-22 17:05:54 +02:00
IMPR: Allow extend slide image width/height
This commit is contained in:
parent
6806031931
commit
0d7e238268
@ -82,7 +82,9 @@ class SlideImageEx extends DataExtension
|
|||||||
return SliderElement::config()->get('slide_width');
|
return SliderElement::config()->get('slide_width');
|
||||||
}
|
}
|
||||||
|
|
||||||
return $element->getSlideWidth();
|
$w = $element->getSlideWidth();
|
||||||
|
$this->owner->extend('updateSlideWidth', $w);
|
||||||
|
return $w;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getSlideHeight()
|
public function getSlideHeight()
|
||||||
@ -92,7 +94,9 @@ class SlideImageEx extends DataExtension
|
|||||||
return SliderElement::config()->get('slide_height');
|
return SliderElement::config()->get('slide_height');
|
||||||
}
|
}
|
||||||
|
|
||||||
return $element->getSlideHeight();
|
$h = $element->getSlideHeight();
|
||||||
|
$this->owner->extend('updateSlideHeight', $h);
|
||||||
|
return $h;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function formatBytes($size, $precision = 2)
|
public static function formatBytes($size, $precision = 2)
|
||||||
|
Loading…
Reference in New Issue
Block a user