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 diff --git a/app/views/books.phtml b/app/views/books.phtml index 9b2cf76..26d55bf 100644 --- a/app/views/books.phtml +++ b/app/views/books.phtml @@ -13,7 +13,8 @@ - <?=$book['pricename']?> + <?=$book['pricename']?> + 0):?>