<?php if ($top_bottom) { ?>
<div class="box">
  <div class="title_left"><div class="title_right"><div class="title_middle"><?php echo $heading_title; ?></div></div></div>
  <div class="box-content">
    <div class="box-product">
      <?php foreach ($products as $product) { ?>
      <div>
        <div class="name"><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a></div>
		<?php if ($product['thumb']) { ?>
		  <div class="boxgrid">
            <div class="image"><a href="<?php echo $product['href']; ?>"><img src="<?php echo $product['thumb']; ?>" alt="<?php echo $product['name']; ?>" /></a><?php echo $product['sale']; ?><?php echo $product['new']; ?><?php echo $product['popular']; ?></div>
            <div class="box-product-buttons">
			  <?php if ($quick_view_bestseller) { ?>
			    <a href="index.php?route=module/quick_view/&product_id=<?php echo $product['product_id']; ?>" class="colorbox button" /><?php echo $button_quick_view; ?></a>
		      <?php } ?>
			  <div class="aditional-buttons">
			    <a onclick="addToCompare('<?php echo $product['product_id']; ?>');" class="poshytips button-compare" title="<?php echo $button_compare; ?>" /></a>
				<a onclick="addToWishList('<?php echo $product['product_id']; ?>');" class="poshytips button-wishlist" title="<?php echo $button_wishlist; ?>" /></a>
				<div class="box-hover">
				  <a href="<?php echo $product['href']; ?>" class="button-info" /></a>
				  <div class="box-info">
				    <?php echo $product['description']; ?>
					<br/>
					<?php if ($product['rating']) { ?>
					  <div class="rating"><img src="catalog/view/theme/default/image/stars-<?php echo $product['rating']; ?>.png" alt="<?php echo $product['reviews']; ?>" /></div>
					<?php } ?>
				  </div>
				</div>
			  </div>
			</div>
          </div>
		<?php } else { ?>
		  <div class="boxgrid">
		    <div class="image"><a href="<?php echo $product['href']; ?>"><img src="<?php echo $product['no_image']; ?>" alt="<?php echo $product['name']; ?>" /></a><?php echo $product['sale']; ?><?php echo $product['new']; ?><?php echo $product['popular']; ?></div>
		    <div class="box-product-buttons">
			  <?php if ($quick_view_bestseller) { ?>
			    <a href="index.php?route=module/quick_view/&product_id=<?php echo $product['product_id']; ?>" class="colorbox button" /><?php echo $button_quick_view; ?></a>
		      <?php } ?>
			  <div class="aditional-buttons">
			    <a onclick="addToCompare('<?php echo $product['product_id']; ?>');" class="poshytips button-compare" title="<?php echo $button_compare; ?>" /></a>
				<a onclick="addToWishList('<?php echo $product['product_id']; ?>');" class="poshytips button-wishlist" title="<?php echo $button_wishlist; ?>" /></a>
				<div class="box-hover">
				  <a href="<?php echo $product['href']; ?>" class="button-info" /></a>
				  <div class="box-info">
				    <?php echo $product['description']; ?>
					<br/>
					<?php if ($product['rating']) { ?>
					  <div class="rating"><img src="catalog/view/theme/default/image/stars-<?php echo $product['rating']; ?>.png" alt="<?php echo $product['reviews']; ?>" /></div>
					<?php } ?>
				  </div>
				</div>
			  </div>
			</div>
          </div>
		<?php } ?>
        <div class="box-bottom">
		  <?php if ($product['price']) { ?>
			<div class="price">
			  <?php if (!$product['special']) { ?>
			  <?php echo $product['price']; ?>
			  <?php } else { ?>
			  <span class="price-old"><?php echo $product['price']; ?></span> <span class="price-new"><?php echo $product['special']; ?></span>
			  <?php } ?>
			</div>
		  <?php } ?>
		  <div class="cart"><input type="button" value="<?php echo $button_cart; ?>" onclick="addToCart('<?php echo $product['product_id']; ?>');" class="button-cart" /></div>
		</div>
      </div>
      <?php } ?>
    </div>
  </div>
  <div class="bottom_left"><div class="bottom_right"><div class="bottom_middle"> </div></div></div>
</div>
<?php } ?>
<?php if ($side) { ?>
<div class="box">
 <div class="title_left"><div class="title_right"><div class="title_middle"><?php echo $heading_title; ?></div></div></div>
  <div class="box-content">
    <div class="box-product">
      <?php foreach ($products as $product) { ?>
      <div>
		<div class="name-block"><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a></div>
		<div class="side-cart">
		  <?php if ($product['price']) { ?>
			<div class="side-price">
			  <?php if (!$product['special']) { ?>
			  <?php echo $product['price']; ?>
			  <?php } else { ?>
			  <span class="side-price-old"><?php echo $product['price']; ?></span><br /><span class="side-price-new"><?php echo $product['special']; ?></span>
			  <?php } ?>
			</div>
		  <?php } ?>
		  <input type="button" value="<?php echo $button_cart; ?>" onclick="addToCart('<?php echo $product['product_id']; ?>');" class="button-cart side-button" />
		</div>
        <?php if ($product['thumb']) { ?>
		  <div class="box-hover">
            <div class="image-side"><a href="<?php echo $product['href']; ?>"><img style="width:74px;" src="<?php echo $product['thumb']; ?>" alt="<?php echo $product['name']; ?>" /></a></div>
		    <div class="box-info">
			  <?php echo $product['description']; ?>
			  <br/>
			  <?php if ($product['rating']) { ?>
				<div class="rating"><img src="catalog/view/theme/default/image/stars-<?php echo $product['rating']; ?>.png" alt="<?php echo $product['reviews']; ?>" /></div>
			  <?php } ?>
			</div>
		  </div>
		<?php } else { ?>
		  <div class="box-hover">
		    <div class="image-side"><a href="<?php echo $product['href']; ?>"><img style="width:74px;" src="<?php echo $product['no_image']; ?>" alt="<?php echo $product['name']; ?>" /></a></div>
		    <div class="box-info">
			  <?php echo $product['description']; ?>
			  <br/>
			  <?php if ($product['rating']) { ?>
				<div class="rating"><img src="catalog/view/theme/default/image/stars-<?php echo $product['rating']; ?>.png" alt="<?php echo $product['reviews']; ?>" /></div>
			  <?php } ?>
			</div>
		  </div>
		<?php } ?>
      </div>
      <?php } ?>
    </div>
  </div>
  <div class="bottom_left"><div class="bottom_right"><div class="bottom_middle"> </div></div></div>
</div>
<?php } ?>