| 16549 |
anikendra |
1 |
<!-- template for deals tab -->
|
| 16704 |
anikendra |
2 |
<?php if(!empty($appOffers['AppOffers'])):?>
|
|
|
3 |
<?php foreach ($appOffers['AppOffers'] as $key => $deal) :?>
|
|
|
4 |
<?php if(empty($deal))continue;?>
|
|
|
5 |
<?php //$deal = $offer['AppOffer'];?>
|
| 17123 |
naman |
6 |
<div class="row card" style='font-size: 12px;'>
|
| 16704 |
anikendra |
7 |
<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']);?>">
|
| 17123 |
naman |
8 |
<img src="<?php echo $base_url;?>app/webroot/timthumb.php?src=<?php echo $deal['image_url'];?>&h=100" height = '80px'/>
|
| 16704 |
anikendra |
9 |
<!-- <br/> -->
|
| 17129 |
anikendra |
10 |
<br/>
|
| 16704 |
anikendra |
11 |
<span class="glyphicon glyphicon-download-alt" aria-hidden="true"></span><i><?php echo $deal['downloads'];?></i>
|
|
|
12 |
<br/>
|
|
|
13 |
<span class="stars"><?php echo $deal['ratings'];?></span>
|
|
|
14 |
<div class="text_arrange">
|
|
|
15 |
<?php echo $deal['offerCategory'];?>
|
|
|
16 |
</div>
|
| 16549 |
anikendra |
17 |
</div>
|
| 17102 |
anikendra |
18 |
<div class="col-xs-8 getapp appdetails productdetails" data-id="<?php echo $deal['app_id'];?>">
|
| 17123 |
naman |
19 |
|
|
|
20 |
<div class="row">
|
|
|
21 |
<div class = "col-xs-6" style="margin:0px;padding:0px">
|
|
|
22 |
<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']);?>">
|
|
|
23 |
<b><?php echo $deal['app_name'];?></b>
|
|
|
24 |
</h5>
|
|
|
25 |
|
|
|
26 |
</div>
|
|
|
27 |
<div class="col-xs-6 " style="padding:0px;">
|
|
|
28 |
<div class="offerprice" style="float:right">
|
|
|
29 |
Cashback:<font color = '#58d936'> <span class="rupee" style="margin-top:1px;"></span> <?php echo intval($deal['user_payout']);?></font>
|
|
|
30 |
</div>
|
|
|
31 |
</div>
|
|
|
32 |
</div>
|
|
|
33 |
|
| 16704 |
anikendra |
34 |
<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']);?>">
|
| 17123 |
naman |
35 |
<font color='grey'><?php echo $deal['shortDescription'];?></font>
|
| 16549 |
anikendra |
36 |
</div>
|
| 16704 |
anikendra |
37 |
<div class="<?php if(!isset($deal['customerOneLiner'])):?>hidden<?php endif;?>">
|
|
|
38 |
<b><?php echo $deal['customerOneLiner'];?></b>
|
|
|
39 |
</div>
|
| 16758 |
naman |
40 |
<div class=" red <?php if(!isset($deal['retailerOneLiner'])):?>hidden<?php endif;?>">
|
| 16741 |
naman |
41 |
<?php echo $deal['retailerOneLiner'];?>
|
|
|
42 |
</div>
|
| 17123 |
naman |
43 |
<div class="text-small" style="word-wrap: break-word;padding-bottom:3px;">
|
| 16758 |
naman |
44 |
<?php
|
|
|
45 |
if (strlen($deal['location'])>0){
|
| 17123 |
naman |
46 |
echo "<font color='red'>Valid in: </font><font color='black'>".trim($deal['location'])."</font>";
|
| 16758 |
naman |
47 |
}
|
|
|
48 |
?>
|
|
|
49 |
</div>
|
| 17123 |
naman |
50 |
<div class="dealoffer text-small <?php if(!isset($deal['longDescription']) || empty($deal['longDescription'])):?>hidden<?php endif;?> row" style='color:grey;'>
|
| 16704 |
anikendra |
51 |
<?php echo strip_tags($deal['longDescription'],'<br>');?>
|
|
|
52 |
</div>
|
| 16549 |
anikendra |
53 |
<div class="offercondition text-small">
|
| 16704 |
anikendra |
54 |
<?php echo $deal['offerCondition'];?>
|
| 16549 |
anikendra |
55 |
</div>
|
| 16741 |
naman |
56 |
|
| 16549 |
anikendra |
57 |
</div>
|
|
|
58 |
</div>
|
|
|
59 |
<?php endforeach;?>
|
| 17071 |
anikendra |
60 |
<?php if(count($appOffers['AppOffers'])<4):?>
|
|
|
61 |
<div class="text-danger text-center">We are adding more apps. Do keep checking here</div>
|
|
|
62 |
<?php else:?>
|
| 16549 |
anikendra |
63 |
<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>
|
| 17071 |
anikendra |
64 |
<?php endif;?>
|
| 16549 |
anikendra |
65 |
<?php else:?>
|
|
|
66 |
<?php if($page==1):?>
|
|
|
67 |
<h4>No more offers found. Please try again later.</h4>
|
|
|
68 |
<div class="text-center">
|
|
|
69 |
<button type="button" class="btn btn-xs btn-primary refresh">Retry</button>
|
|
|
70 |
</div>
|
|
|
71 |
<?php endif;?>
|
| 17129 |
anikendra |
72 |
<?php endif;?>
|