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 ecbb7b62c9
commit cdc88b43df
11 changed files with 147 additions and 84 deletions

View File

@@ -74,6 +74,17 @@ class Medias
return '.' . pathinfo($filename, PATHINFO_EXTENSION);
}
public static function getImageSrc($image)
{
if (!$image) {
return null;
}
$id = $image['id'];
$filename = $image['name'] . self::getExtension($image['file_name']);
return "/storage/$id/$filename";
}
public static function getThumbSrc($image)
{
if (!$image) {