From 83b97c95f02147ec25f6b5163ea7dc2b18492155 Mon Sep 17 00:00:00 2001 From: Andrey Kuvshinov Date: Tue, 23 Aug 2022 07:27:07 +0000 Subject: [PATCH] add picbook_orig --- app/helpers/picbook.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/app/helpers/picbook.php b/app/helpers/picbook.php index aa0c83c..0d73ead 100644 --- a/app/helpers/picbook.php +++ b/app/helpers/picbook.php @@ -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; + + } \ No newline at end of file