Rev 16758 | Rev 16884 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
<div class="modal fade" id="loadingModal"><div class="modal-dialog"><div class="modal-content"><div class="modal-body"><div class="text-center"><img src="/img/ajax-loader.gif"/></div></div></div><!-- /.modal-content --></div><!-- /.modal-dialog --></div><!-- /.modal --><!-- template for deals tab --><?php if(!empty($appOffers['AppOffers'])):?><?php foreach ($appOffers['AppOffers'] as $key => $deal) :?><?php if(empty($deal))continue;?><?php //$deal = $offer['AppOffer'];?><div class="row card"><?php //debug($deal);?><div class="col-xs-4 productthumb getapp" data-id="<?php echo $deal['app_id'];?>" data-url="<?php echo $deal['link'];?>" data-price="<?php echo intval($deal['offer_price']);?>"><img src="<?php echo $base_url;?>app/webroot/timthumb.php?src=<?php echo $deal['image_url'];?>&h=100" /><!-- <br/> --><div class="text_arrange"><b><?php echo h($deal['app_name']); ?></b></div><!-- <br/> --><span class="glyphicon glyphicon-download-alt" aria-hidden="true"></span><i><?php echo $deal['downloads'];?></i><br/><span class="stars"><?php echo $deal['ratings'];?></span><div class="text_arrange"><?php echo $deal['offerCategory'];?></div><div class="offerprice "><span class="rupee" style="margin-top:1px;"></span> <?php echo intval($deal['user_payout']);?></div></div><div class="col-xs-8 appdetails productdetails" data-id="<?php echo $deal['app_id'];?>"><h5 class="text_arrange producttitle getapp" data-id="<?php echo $deal['app_id'];?>" data-url="<?php echo $deal['link'];?>" data-price="<?php echo intval($deal['offer_price']);?>"><b><?php echo $deal['app_name'];?></b> (<span class="rupee" style="margin-top:1px;"></span> <?php echo intval($deal['user_payout']);?>)</h5><div class="text-small grey<?php if(!isset($deal['shortDescription'])):?>hidden<?php endif;?>" data-id="<?php echo $deal['app_id'];?>" data-url="<?php echo $deal['link'];?>" data-price="<?php echo intval($deal['offer_price']);?>"><?php echo $deal['shortDescription'];?></div><div class="<?php if(!isset($deal['customerOneLiner'])):?>hidden<?php endif;?>"><b><?php echo $deal['customerOneLiner'];?></b></div><div class=" red <?php if(!isset($deal['retailerOneLiner'])):?>hidden<?php endif;?>"><?php echo $deal['retailerOneLiner'];?></div><div width="80%" class="text-small" style="background:yellow; word-wrap: break-word"><?phpif (strlen($deal['location'])>0){echo "Valid in: ".trim($deal['location']);}?></div><div class="dealoffer text-small <?php if(!isset($deal['longDescription']) || empty($deal['longDescription'])):?>hidden<?php endif;?> row"><?php echo strip_tags($deal['longDescription'],'<br>');?></div><div class="offercondition text-small"><?php echo $deal['offerCondition'];?></div></div></div><?php endforeach;?><?php //if($this->Paginator->hasNext()):?><p class="text-center"><a class="btn btn-primary infitescroller" href="/categories/getapps/<?php echo $id;?>/?page=<?php echo ($page+1);?>">Load More</a></p><?php //endif;?><?php else:?><?php if($page==1):?><h4>No more offers found. Please try again later.</h4><div class="text-center"><button type="button" class="btn btn-xs btn-primary refresh">Retry</button></div><?php endif;?><?php endif;?>