add watermark on zoom, update display of article nature on shelve (change icon to text

This commit is contained in:
ludo
2024-02-04 22:09:53 +01:00
parent 4c6f9b3b61
commit 308b6cb349
9 changed files with 93 additions and 58 deletions

View File

@@ -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;