<?php
$this->language->load('product/product');
$button_wishlist = $this->language->get('button_wishlist');
$button_compare = $this->language->get('button_compare');
?>
<?php if (($setting['position'] == 'content_top') || ($setting['position'] == 'content_bottom')){ ?>
<h1 class="text-center heading"><span class="clearfix title"><?php echo $heading_title; ?></span></h3>
<div class="row gallery effect-1 product-layout">
  <?php foreach ($products as $product) { ?>
  <div class="col-lg-2 col-md-2 col-sm-4 col-xs-6">
 <div class="thumbnail">
                <a href="<?php echo $product['href']; ?>">
                 <img src="<?php echo $product['thumb']; ?>" alt="<?php echo $product['name']; ?>" title="<?php echo $product['name']; ?>" />
                </a>
                <div class="caption clearfix">
                  <div class="text-center">
                    <b><?php echo $product['name']; ?></b>
                  </div>
                  <div class="pull-right">
                   
                  </div>                  
                </div>  
						  <div class="mask"><img alt="" src="catalog/view/theme/elegance cart-pixelcreativ/image/crousel-bottom.png"></div>
              </div>
		</div>	  
	   <?php } ?>
<div class="shadow-img"><img src="catalog/view/theme/elegance cart-pixelcreativ/image/shadow-img.png" alt="" /></div>

</div>
<?php } else { ?>
<h3><?php echo $heading_title; ?></h3>
<div class="row widget-inline">
			<div class=" widget">
			  

				<ul class="products-list-mini list-unstyled">
				<?php foreach ($products as $product) { ?>
					<li>
							<?php if ($product['thumb']) { ?>

						<a href="<?php echo $product['href']; ?>" class="product-thumb pull-left">
							<img src="<?php echo $product['thumb']; ?>" alt="<?php echo $product['name']; ?>" width="90" height="90" />
						</a>
						<?php } else { ?>
						<a href="<?php echo $product['href']; ?>" class="product-thumb pull-left">
							<img src="<?php echo $product['thumb']; ?>" alt="<?php echo $product['name']; ?>" width="90" height="90" />
						</a>
	    <?php } ?> 
						<div class="product-details">
							<h3 class="product-name">
								<a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a>
							</h3>
							
							<b class="product-price">
								 <?php if (!$product['special']) { ?>
          <?php echo $product['price']; ?>
          <?php } else { ?>
         <em><?php echo $product['price']; ?></em><?php echo $product['special']; ?>
          <?php } ?>
							</b>
							        <?php if ($product['rating']) { ?>
        <div class="rating">
          <?php for ($i = 1; $i <= 5; $i++) { ?>
          <?php if ($product['rating'] < $i) { ?>
          <span class="fa fa-stack"><i class="fa fa-star-o fa-stack-2x"></i></span>
          <?php } else { ?>
          <span class="fa fa-stack"><i class="fa fa-star fa-stack-2x"></i><i class="fa fa-star-o fa-stack-2x"></i></span>
          <?php } ?>
          <?php } ?>
        </div>
        <?php } ?>

						</div>
					</li>
						    <?php } ?> 

</ul>
</div>

</div>

<?php } ?>