Rev 13944 | Rev 14150 | 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 $dealjson):?><?php $deal = json_decode($dealjson,true);?><?php //debug($deal);?><div class="row card"><div class="col-xs-4 productthumb viewproduct" data-id="<?php echo $deal['_id'];?>"><img src="<?php echo $base_url;?>app/webroot/timthumb.php?src=<?php echo $deal['thumbnail'];?>&h=100" /></div><div class="col-xs-6 productdetails viewproduct" data-id="<?php echo $deal['_id'];?>"><h5 class="producttitle" ><?php echo $deal['source_product_name'];?></h5><div class="product_short_description <?php if(!isset($deal['tagline'])):?>hidden<?php endif;?>"><?php echo $deal['tagline'];?></div><div class="product_prices"><div><span class="rupee"></span><span class="product_price"><?php echo $deal['available_price'];?></span><?php if(isset($deal['cash_back_type']) && !empty($deal['cash_back_type']) && $deal['cash_back_type']!=0):?> +<?php if($deal['cash_back_type'] == 2):?><span class="cashbackrupee"></span> <span class="cashback"><?php echo $deal['cash_back'];?></span></div><?php else:?><?php echo $deal['cash_back'];?> %<?php endif;?> Cashback<?php endif;?></div></div><div class="dealoffer <?php if(!isset($deal['offer']) || empty($deal['offer'])):?>hidden<?php endif;?> row"><div class="col-xs-3 offerlabel">OFFER</div><div class="col-xs-9 offertext"><?php echo $deal['offer'];?></div></div></div><div class="col-xs-2 pull-right product_actions"><ul class="list-unstyled"><li data-id="<?php echo $deal['_id'];?>" class="likedeal <?php if(isset($likedDeals[$deal['_id']])):?>active<?php endif;?>"></li><li data-id="<?php echo $deal['_id'];?>" class="dislikedeal <?php if(isset($disLikedDeals[$deal['_id']])):?>active<?php endif;?>"></li></ul></div></div><?php endforeach;?><?php if($this->params->controller=='store_products'):?><p class="text-center"><a class="btn btn-primary" href="/store_products/getdeals/?page=<?php echo $page+1;?>&sort=<?php echo $sort;?>&direction=<?php echo $direction;?>">Load More</a></p><?php else:?><p class="text-center"><a class="btn btn-primary" href="/categories/getdeals/<?php echo $id;?>/?page=<?php echo ($page+1);?>&sort=<?php echo $sort;?>&direction=<?php echo $direction;?>">Load More</a></p><?php endif;?><?php else:?><h4>The content you requested couldn't be found</h4><?php endif;?>