Rev 13583 | Rev 13672 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
<?php if(!empty($deals)):?><?php foreach($deals AS $deal):?><div class="col-xs-6 card"><div class="product_image img img-responsive"><img src="<?php echo $base_url;?>app/webroot/timthumb.php?src=<?php echo $deal['StoreProduct']['thumbnail'];?>&h=120" data-id="<?php echo $deal['StoreProduct']['id'];?>" class="viewproduct productthumb"><ul class="product_actions list-unstyled"><li data-id="<?php echo $deal['StoreProduct']['id'];?>" class="likedeal"><button class="btn <?php if(isset($likedDeals[$deal['StoreProduct']['id']])):?>active<?php endif;?>"><i class="glyphicon glyphicon-heart" aria-hidden="true"></i></button></li><li data-id="<?php echo $deal['StoreProduct']['id'];?>" class="dislikedeal"><button class="btn <?php if(isset($disLikedDeals[$deal['StoreProduct']['id']])):?>active<?php endif;?>"><i class="glyphicon glyphicon-thumbs-down" aria-hidden="true"></i></button></li></ul></div><p class="text-center viewproduct" data-id="<?php echo $deal['StoreProduct']['id'];?>"><?php echo $this->Text->truncate($deal['StoreProduct']['title'],22,array('ellipsis' => '...','exact' => false));?></p><?php if(isset($deal['StoreProduct']['tagline'])):?><p class="product_short_description">echo $deal['StoreProduct']['tagline'];?></p><?php endif;?><p class="product_prices"><span class="rupee"></span><span class="product_price"><?php echo $deal['StoreProduct']['available_price'];?></span><?php if(isset($deal['StoreProduct']['cashback']) && !empty($deal['StoreProduct']['cashback'])):?><span class="product_cashback">(<span class="rupee"></span> <?php echo $deal['StoreProduct']['cashback'];?> Cashback)</span><?php endif;?></p></div><?php endforeach;?><p class="text-center"><a class="btn btn-primary" href="/categories/getdeals/<?php echo $id;?>/?page=<?php echo ($page+1);?>">Load More</a></p><?php endif;?>