| 16758 |
naman |
1 |
<div class="modal fade" id="loadingModal">
|
|
|
2 |
<div class="modal-dialog">
|
|
|
3 |
<div class="modal-content">
|
|
|
4 |
<div class="modal-body">
|
|
|
5 |
<div class="text-center">
|
|
|
6 |
<img src="/img/ajax-loader.gif"/>
|
|
|
7 |
</div>
|
|
|
8 |
</div>
|
|
|
9 |
</div><!-- /.modal-content -->
|
|
|
10 |
</div><!-- /.modal-dialog -->
|
|
|
11 |
</div><!-- /.modal -->
|
|
|
12 |
|
| 16549 |
anikendra |
13 |
<!-- template for deals tab -->
|
| 16704 |
anikendra |
14 |
<?php if(!empty($appOffers['AppOffers'])):?>
|
|
|
15 |
<?php foreach ($appOffers['AppOffers'] as $key => $deal) :?>
|
|
|
16 |
<?php if(empty($deal))continue;?>
|
|
|
17 |
<?php //$deal = $offer['AppOffer'];?>
|
| 16549 |
anikendra |
18 |
<div class="row card">
|
|
|
19 |
<?php //debug($deal);?>
|
| 16704 |
anikendra |
20 |
<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']);?>">
|
|
|
21 |
<img src="<?php echo $base_url;?>app/webroot/timthumb.php?src=<?php echo $deal['image_url'];?>&h=100" />
|
|
|
22 |
<!-- <br/> -->
|
|
|
23 |
<div class="text_arrange">
|
|
|
24 |
<b><?php echo h($deal['app_name']); ?></b>
|
|
|
25 |
</div>
|
|
|
26 |
<!-- <br/> -->
|
|
|
27 |
<span class="glyphicon glyphicon-download-alt" aria-hidden="true"></span><i><?php echo $deal['downloads'];?></i>
|
|
|
28 |
<br/>
|
|
|
29 |
<span class="stars"><?php echo $deal['ratings'];?></span>
|
|
|
30 |
<div class="text_arrange">
|
|
|
31 |
<?php echo $deal['offerCategory'];?>
|
|
|
32 |
</div>
|
|
|
33 |
<div class="offerprice ">
|
| 16731 |
naman |
34 |
<span class="rupee" style="margin-top:1px;"></span> <?php echo intval($deal['user_payout']);?>
|
| 16549 |
anikendra |
35 |
</div>
|
|
|
36 |
</div>
|
| 16704 |
anikendra |
37 |
<div class="col-xs-8 appdetails productdetails" data-id="<?php echo $deal['app_id'];?>">
|
| 16731 |
naman |
38 |
<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']);?>">
|
|
|
39 |
<b><?php echo $deal['app_name'];?></b> (<span class="rupee" style="margin-top:1px;"></span> <?php echo intval($deal['user_payout']);?>)
|
| 16549 |
anikendra |
40 |
</h5>
|
| 16704 |
anikendra |
41 |
<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']);?>">
|
|
|
42 |
<?php echo $deal['shortDescription'];?>
|
| 16549 |
anikendra |
43 |
</div>
|
| 16704 |
anikendra |
44 |
<div class="<?php if(!isset($deal['customerOneLiner'])):?>hidden<?php endif;?>">
|
|
|
45 |
<b><?php echo $deal['customerOneLiner'];?></b>
|
|
|
46 |
</div>
|
| 16758 |
naman |
47 |
<div class=" red <?php if(!isset($deal['retailerOneLiner'])):?>hidden<?php endif;?>">
|
| 16741 |
naman |
48 |
<?php echo $deal['retailerOneLiner'];?>
|
|
|
49 |
</div>
|
| 16758 |
naman |
50 |
<div width="80%" class="text-small" style="background:yellow; word-wrap: break-word">
|
|
|
51 |
<?php
|
|
|
52 |
if (strlen($deal['location'])>0){
|
| 16761 |
anikendra |
53 |
echo "Valid in: ".trim($deal['location']);
|
| 16758 |
naman |
54 |
}
|
|
|
55 |
?>
|
|
|
56 |
</div>
|
| 16704 |
anikendra |
57 |
<div class="dealoffer text-small <?php if(!isset($deal['longDescription']) || empty($deal['longDescription'])):?>hidden<?php endif;?> row">
|
|
|
58 |
<?php echo strip_tags($deal['longDescription'],'<br>');?>
|
|
|
59 |
</div>
|
| 16549 |
anikendra |
60 |
<div class="offercondition text-small">
|
| 16704 |
anikendra |
61 |
<?php echo $deal['offerCondition'];?>
|
| 16549 |
anikendra |
62 |
</div>
|
| 16741 |
naman |
63 |
|
| 16549 |
anikendra |
64 |
</div>
|
|
|
65 |
</div>
|
|
|
66 |
<?php endforeach;?>
|
|
|
67 |
<?php //if($this->Paginator->hasNext()):?>
|
|
|
68 |
<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>
|
|
|
69 |
<?php //endif;?>
|
|
|
70 |
<?php else:?>
|
|
|
71 |
<?php if($page==1):?>
|
|
|
72 |
<h4>No more offers found. Please try again later.</h4>
|
|
|
73 |
<div class="text-center">
|
|
|
74 |
<button type="button" class="btn btn-xs btn-primary refresh">Retry</button>
|
|
|
75 |
</div>
|
|
|
76 |
<?php endif;?>
|
|
|
77 |
<?php endif;?>
|