change icons, css, add routing to merchandise, add mail templater, fixes

This commit is contained in:
Ludovic CANDELLIER
2023-02-12 23:34:48 +01:00
parent 8313e25f2e
commit f2f4788ce1
71 changed files with 1486 additions and 154 deletions

View File

@@ -35,7 +35,7 @@ trait Imageable
public static function getPreviewSrc($image, $with_undefined = true)
{
return $image ? Medias::getPreviewSrc($image) : ($with_undefined ? '/img/visuel-non-disponible.jpg' : '');
return $image ? Medias::getPreviewSrc($image) : ($with_undefined ? self::getUnknown() : '');
}
public static function getNormal($image, $with_undefined = true)
@@ -46,7 +46,7 @@ trait Imageable
public static function getNormalSrc($image, $with_undefined = true)
{
return $image ? Medias::getNormalSrc($image) : ($with_undefined ? '/img/visuel-non-disponible.jpg' : '');
return $image ? Medias::getNormalSrc($image) : ($with_undefined ? self::getUnknown() : '');
}
public static function getImage($image, $with_undefined = true)
@@ -57,7 +57,12 @@ trait Imageable
public static function getImageSrc($image, $with_undefined = true)
{
return $image ? Medias::getImageSrc($image) : ($with_undefined ? '/img/visuel-non-disponible.jpg' : '');
return $image ? Medias::getImageSrc($image) : ($with_undefined ? self::getUnknown() : '');
}
public static function getUnknown()
{
return '/img/visuel-non-disponible.jpg';
}
public static function deleteImage($id, $index)