add picbook_orig
This commit is contained in:
@@ -17,4 +17,23 @@ function picbook($item, $width, $height) {
|
|||||||
|
|
||||||
return IMGSRV.'price/'.$width.'x'.$height.'/'.$fileimg;
|
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;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user