<?php
/**
 * This is the part of 'BmProducts' module for Magento,
 * which allows easy access to product collection
 * with flexible filters
 */
?>

<?php if (($_products = $this->getProductCollection()) && $_collectionSize = $_products->getSize()): ?>
<div class="block block-hot-products">
      <div class="block-title">
        <strong><span><?php echo $this->__($this->getTitle()) ?></span></strong>
    </div>
    <div class="block-content">
     <?php $_productCollection=$this->getProductCollection() ?>
     <?php $_collectionSize = $_productCollection->count() ?>
   <ul class="sidelist">
    <?php $i = 1; foreach ($_products->getItems() as $_product): ?>
        <li <?php if($i==$_collectionSize) {echo ' class="last"'; } ?>>
                <a class="product-img" href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->htmlEscape($_product->getName()) ?>)">
                        <img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(70, 70) ?>" width="70" height="70" alt="<?php echo $this->htmlEscape($_product->getName()) ?>" />
                </a>
	       <div class="other-info">
	       <div class="home-name">
	       <a  href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->htmlEscape($_product->getName()) ?>)"><?php echo $this->htmlEscape($_product->getName()) ?></a>
	        </div>
               <?php echo $this->getPriceHtml($_product, true, $this->getPriceSuffix()) ?>
	       </div>
	     <div class="clearer"></div>
        </li>
     <?php $i++; endforeach; ?>
     </ul>
    </div>
</div>
<?php endif; ?>