add picbook_orig

This commit is contained in:
Andrey Kuvshinov
2022-08-23 07:27:07 +00:00
parent afffd9e13f
commit 83b97c95f0

View File

@@ -17,4 +17,23 @@ function picbook($item, $width, $height) {
return IMGSRV.'price/'.$width.'x'.$height.'/'.$fileimg;
}
function picbook_orig($item){
$id = $item['price_id'];
$img = $item['priceimg'];
if (in_array($img, array('jpg', 'jpeg', 'gif', 'png', 'JPG'))){
$fileimg = $id . '.' . $img;
}
else
$fileimg = $img;
return 'https://argumenti.ru/pub/images/price/'.$fileimg;
}