Add method to get image with parent for article
This commit is contained in:
@@ -33,7 +33,8 @@ class Offers
|
||||
|
||||
public static function getThumbSrc(Offer $offer)
|
||||
{
|
||||
return $offer->article ? Articles::getThumbSrc($offer->article->image) : false;
|
||||
$image = $offer->article ? Articles::getFullImageByArticle($offer->article) : false;
|
||||
return $image ? Articles::getThumbSrc($image) : false;
|
||||
}
|
||||
|
||||
public static function getLast()
|
||||
|
||||
Reference in New Issue
Block a user