change icons, css, add routing to merchandise, add mail templater, fixes
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user