Merge branch 'master' of ssh://gl.arguments.ru:2224/ak/anpdf
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;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -13,7 +13,8 @@
|
|||||||
<?$link = SITE.'product/'.$book['priceslug']?>
|
<?$link = SITE.'product/'.$book['priceslug']?>
|
||||||
<a href="<?=$link?>" target="_blank">
|
<a href="<?=$link?>" target="_blank">
|
||||||
<!--<img src="<?//=picbook($book, 180, 280)?>" alt="<?//=$book['pricename']?>">-->
|
<!--<img src="<?//=picbook($book, 180, 280)?>" alt="<?//=$book['pricename']?>">-->
|
||||||
<img src="https://argumenti.ru/pub/images/price/<?=$book['priceimg']?>" alt="<?=$book['pricename']?>">
|
<img src="<?=picbook_orig($book)?>" alt="<?=$book['pricename']?>">
|
||||||
|
<!-- <img src="https://argumenti.ru/pub/images/price/<?=$book['priceimg']?>" alt="<?=$book['pricename']?>"> -->
|
||||||
|
|
||||||
</a>
|
</a>
|
||||||
<?if ($book['priceauthor_id'] > 0):?>
|
<?if ($book['priceauthor_id'] > 0):?>
|
||||||
|
|||||||
Reference in New Issue
Block a user