Added imageSrc presenter
This commit is contained in:
@@ -78,6 +78,18 @@ class AssetModelPresenter extends Presenter
|
||||
return '';
|
||||
}
|
||||
|
||||
/**
|
||||
* Generate img tag to this models image.
|
||||
* @return string
|
||||
*/
|
||||
public function imageSrc()
|
||||
{
|
||||
if (!empty($this->image)) {
|
||||
return url('/') . '/uploads/models/' . $this->image;
|
||||
}
|
||||
return '';
|
||||
}
|
||||
|
||||
/**
|
||||
* Url to view this item.
|
||||
* @return string
|
||||
|
||||
Reference in New Issue
Block a user