Rev 20293 | Blame | Compare with Previous | Last modification | View Log | RSS feed
<?php $counter = 1;?><?php foreach ($result as $key => $product):?><?php //if(is_array($product) && $product['in_stock']):?><?php if(is_array($product)):?><a data-rank="<?php echo ($counter++);?>" href="/store_products/view/<?php echo $product['productUrl'];?>" data-id="<?php echo $product['id'];?>" data-title = "<?php echo $product['title'];?>"><div class="card row" style = "border-bottom: 1px solid #d9d9d9;"><div class="col-xs-4 productthumb" data-id="<?php echo $product['id'];?>"><?php if(!empty($product['thumbnail'])):?><img src="<?php echo $base_url;?>app/webroot/timthumb.php?src=<?php echo urlencode ($product['thumbnail']);?>&h=100" /><?php else:?><img src="<?php echo $base_url;?>app/webroot/timthumb.php?src=<?php echo $base_url;?>img/noimage.png&h=80" alt="<?php echo $product['title'];?>"/><?php endif;?></div><div class="col-xs-6 productdetails" data-id="<?php echo $product['id'];?>"><h5 class="producttitle" style="color: #8D8C8E;"><?php echo $product['title'];?></h5><?php if(time() - ($product['priceUpdatedOn']/1000)<= 6):?><div class="product_prices"><?php if(isset($product['available_price']) && !empty($product['available_price'])):?><div><span class="rupee"></span><span class="product_price"><?php echo $product['available_price'];?></span></div><?php endif;?><?php if(isset($product['cashback']) && !empty($product['cashback'])):?><div><span class="cashbacklabel">Cashback</span><span class="cashbackrupee"></span> <span class="cashback"><?php echo $product['cashback'];?></span></div><?php endif;?></div><?php endif;?><?php if(!empty($product['tagline'])):?><div class="product_short_description hidden"><?php echo $product['tagline'];?></div><?php endif;?><?php if(time() - ($product['priceUpdatedOn']/1000)<= 6):?><div class="priceupdatedtime"><span class="clock"></span><time class="timeago" datetime="<?php echo date('c',$product['priceUpdatedOn']/1000);?>"><?php echo date('c',$product['priceUpdatedOn']/1000);?></time></div><?php endif;?><!-- <div><h5>Rs. 12345</h5></div> --></div></div></a><?php endif;?><?php endforeach;?><?php //if($key=='hasMore' && !empty($product)):?><p class="text-center"><a class="btn btn-xs btn-default infitescroller" style="color:black;" href="<?php echo $nexturl;?>">Load More</a></p><!-- <script type="text/javascript" src="/js/profittill.js?v=<?php //echo $staticversion;?>"></script>--><?php //endif;?>