Rev 13715 | Rev 13719 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
<!-- template for deals tab --><?php echo $this->element('unlikemodal');?><?php if(!empty($deals)):?><?php foreach($deals AS $deal):?><?php //debug($deal);?><div class="row card"><div class="col-xs-4 productthumb"><img src="<?php echo $base_url;?>app/webroot/timthumb.php?src=<?php echo $deal['StoreProduct']['thumbnail'];?>&h=100" data-id="<?php echo $deal['StoreProduct']['id'];?>" class="viewproduct"/></div><div class="col-xs-6 productdetails"><h5 class="viewproduct producttitle" data-id="<?php echo $deal['StoreProduct']['id'];?>"><?php echo $this->Text->truncate($deal['StoreProduct']['title'],140,array('ellipsis' => '...','exact' => false));?></h5><div class="product_short_description <?php if(!isset($deal['StoreProduct']['tagline'])):?>hidden<?php endif;?>"><?php echo $deal['StoreProduct']['tagline'];?></div><div 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"><label>Cashback</label><span class="rupee"></span> <span class="cashback"><?php echo $deal['StoreProduct']['cashback'];?></span></span><?php endif;?></div><div class="dealoffer <?php if(!isset($deal['StoreProduct']['offer']) || empty($deal['StoreProduct']['offer'])):?>hidden<?php endif;?> row"><div class="col-xs-3 offerlabel">OFFER</div><div class="col-xs-9 offertext"><?php echo $deal['StoreProduct']['offer'];?></div></div></div><div class="col-xs-2 pull-right product_actions"><ul class="product_actions list-unstyled"><li data-id="<?php echo $deal['StoreProduct']['id'];?>" class="likedeal <?php if(isset($likedDeals[$deal['StoreProduct']['id']])):?>active<?php endif;?>"></li><li data-id="<?php echo $deal['StoreProduct']['id'];?>" class="dislikedeal <?php if(isset($disLikedDeals[$deal['StoreProduct']['id']])):?>active<?php endif;?>"></li></ul></div></div><?php endforeach;?><p class="text-center"><a class="btn btn-primary" href="/store_products/getdeals/?page=<?php echo $page+1;?>">Load More</a></p><?php endif;?>