<?php if (is_string(array_key_first($array_tpl))){ ?>
<div class="product-layout product-list">
<div class="product-thumb">
<div class="image">
<a href="search/?search=<?php echo $array_tpl['guid']; ?>">
<?php $arrayxreplace = array(" ", "/", ".", "-","`"); ?>
<?php if (!file_exists("/home/users/9/9138727189/domains/1/image/catalog/product/" . str_replace($arrayxreplace, "", mb_strtoupper($array_tpl['brand'])) . "/" . str_replace($arrayxreplace, "", $array_tpl['partnumber']) . ".jpg")) { ?>
<img src="/image/catalog/logo/<?php echo str_replace($arrayxreplace, "", mb_strtoupper($array_tpl['brand'])); ?>.jpg" class="img-responsive" style="width:120px"/></a>
<?php } else { ?>
<img src="/1/image/catalog/product/<?php echo str_replace($arrayxreplace, "", mb_strtoupper($array_tpl['brand'])); ?>/<?php echo str_replace($arrayxreplace, "", $array_tpl['partnumber']); ?>.jpg" class="img-responsive" style="width:120px"/></a>
<?php } ?>
</div>
<div class="caption">
<h4><a href="search/?search=<?php echo $array_tpl['guid']; ?>"><p class="namekyb"><b><?php echo $array_tpl['brand']; ?></b> <?php echo $array_tpl['name']; ?><br></p><p class="modelkyb"> <b><?php echo $array_tpl['partnumber']; ?></b> </p></a>
<div class="min_text"><span class="stock instock">На складе : <b><?php echo $array_tpl['count']; ?> шт</b></span> <span>Срок Доставки: <b><?php echo $array_tpl['delivery']+1; ?></b></span></div>
<br>
<p class="price"> <?php echo round($array_tpl['price'], 0); ?> p.</p>
</div>
<div class="button-group">
<button type="button" onclick="cart.add('<?php echo $product['product_id']; ?>', '<?php echo $product['minimum']; ?>');"><i class="fa fa-shopping-cart"></i> <span class="hidden-xs hidden-sm hidden-md"><?php echo $button_cart; ?></span></button>
<button type="button" data-toggle="tooltip" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product['product_id']; ?>');"><i class="fa fa-heart"></i></button>
<button type="button" data-toggle="tooltip" title="<?php echo $button_compare; ?>" onclick="compare.add('<?php echo $product['product_id']; ?>');"><i class="fa fa-exchange"></i></button>
</div>
</div>
</div>
</div>