protected function getFirstImage($article)
{
if (isset($article->text))
$articleText = $article->text;
else
$articleText = $article->introtext . $article->fulltext;
$fullImagePath = $this->getFirstImageFromText($articleText);
$json = json_decode($article->images, true);
if ( !empty($json['image_fulltext']) ) {
$fullImagePath = $json['image_fulltext'];
}
return $fullImagePath;
}
Join our newsletter to get alerts for Joomla releases, tips and tricks and extension updates.