<!--- image -->
<?php
if(!isset($element->alias))
$element->alias = '';
$link = hikashop_contentLink('product&task=show&cid='.$element->product_id.'&name='.$element->alias.$url_itemid,$element);
?>
<div class="compare_image">
<?php if(!empty($element->images)) {
$image = reset($element->images);
if(!$this->config->get('thumbnail')) {
echo '<img src="'.$this->image->uploadFolder_url.$image->file_path.'" alt="'.$image->file_name.'" id="hikashop_main_image" style="margin-top:10px;margin-bottom:10px;display:inline-block;vertical-align:middle" />';
} else {
$height = $this->config->get('thumbnail_y');
$width = $this->config->get('thumbnail_x');
$style='';
if(count($element->images)>1){
if(!empty($height)){
$style=' style="height:'.($height+5).'px;"';
}
}
?>
<div class="hikashop_product_main_image_thumb" id="hikashop_main_image_thumb_div" <?php echo $style;?> >
<a href="<?php echo $link; ?>" title="<?php echo $this->escape($element->product_name); ?>">
<?php $image_options = array('default' => true,'forcesize'=>$this->config->get('image_force_size',true),'scale'=>$this->config->get('image_scale_mode','inside'));
$img = $this->image->getThumbnail(@$image->file_path, array('width' => $width, 'height' => $height), $image_options);
if($img->success) {
echo '<img class="hikashop_product_compare_image" title="'.$this->escape(@$image->file_description).'" alt="'.$this->escape(@$image->file_name).'" src="'.$img->url.'"/>';
} ?>
</a>
</div>
<?php }
}
?>
</div>
<div class="hikashop_product hikashop_product_column_1 hikashop_product_row_1" style="width: <?php echo $col . '%'; ?>">
<div data-container="product-grid" class="hikashop_container product-item-info {?thumbnail}{:else} no-image {/thumbnail}">
<div class="product-item-details hikashop_subcontainer thumbnail">
<div class="hikashop_listing_img_title">
<div class="hikashop_product_image">
<div class="hikashop_product_image_subdiv">
<a tabindex="-1" class="product-item-photo" href="{url}" style="height: <?php echo $thumbnail_y; ?>px">
<img alt="{name|s}" src="<?php echo 'https://sub.domain.com/images/'; ?>{thumbnail}" class="product-image-photo">
</a>
</div>