add watermark on zoom, update display of article nature on shelve (change icon to text
This commit is contained in:
@@ -103,6 +103,11 @@ class Medias
|
||||
return self::getSrcByType($image, 'normal');
|
||||
}
|
||||
|
||||
public static function getZoomSrc($image)
|
||||
{
|
||||
return self::getSrcByType($image, 'zoom');
|
||||
}
|
||||
|
||||
public static function getSrcByType($image, $type)
|
||||
{
|
||||
return $image ? '/storage/'.$image['id'].'/conversions/'.self::getFilename($image, $type) : false;
|
||||
|
||||
Reference in New Issue
Block a user