Add display articles by rows, and display article in full mode

This commit is contained in:
Ludovic CANDELLIER
2022-01-18 23:39:27 +01:00
parent 3641bd7d68
commit cefe956bc4
11 changed files with 147 additions and 84 deletions

View File

@@ -36,6 +36,16 @@ trait Imageable
return $image ? Medias::getPreviewSrc($image) : null;
}
public static function getImage($image)
{
return '<img src="' . self::getImageSrc($image) . '" class="img-fluid">';
}
public static function getImageSrc($image)
{
return $image ? Medias::getImageSrc($image) : null;
}
public static function deleteImage($id, $index)
{
return Medias::deleteImage(self::get($id), $index);