<div class="box">
  <div class="box-heading"><?php echo $heading_title; ?></div>
  <div class="box-content">
  <table class="sideprod">
      <?php foreach ($products as $product) { ?>
      <tr>
	  <td>
        <?php if ($product['thumb']) { ?>
        <a href="<?php echo $product['href']; ?>"><img src="<?php echo $product['thumb']; ?>" width="40" height="40" style="border: 1px solid #e7e7e7;" alt="<?php echo $product['name']; ?>" /></a>
        <?php } ?></td>
		<td>
		<?php if (strlen($product['name']) > 30) { ?>
        <a href="<?php echo $product['href']; ?>"><?php echo substr($product['name'], 0, 30); ?>..</a>
		<?php } else { ?>
		<a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a>
		<?php } ?>
        <?php if ($product['price']) { ?>
		<div class="price">
        <?php if (!$product['special']) { ?>
          <?php echo $product['price']; ?>
          <?php } else { ?>
          <span class="price-old" style="text-decoration:line-through;"><?php echo $product['price']; ?></span> <span class="price-new"><?php echo $product['special']; ?></span>
          <?php } ?>
		</div>
        <?php } ?>
        <?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 } ?>
       </td></tr>
      <?php } ?>
      </table>
  </div>
</div>
