From 2bcdc5fe6e5c097dde8803e6c13cdb1302458a98 Mon Sep 17 00:00:00 2001 From: Aaron van Geffen Date: Tue, 5 Jul 2022 12:01:02 +0200 Subject: [PATCH] Split Image::getImageUrls from Image::getInlineImage --- models/Image.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/models/Image.php b/models/Image.php index 1f4f061..80a5cb4 100644 --- a/models/Image.php +++ b/models/Image.php @@ -67,7 +67,7 @@ class Image extends Asset return EXIF::fromFile($this->getPath()); } - public function getInlineImage($width = null, $height = null, $className = 'inline-image') + public function getImageUrls($width = null, $height = null) { $image_urls = []; if (isset($width) || isset($height)) @@ -79,6 +79,13 @@ class Image extends Asset else $image_urls[1] = $this->getUrl(); + return $image_urls; + } + + public function getInlineImage($width = null, $height = null, $className = 'inline-image') + { + $image_urls = $this->getImageUrls($width, $height); + return ''; }