| 11805 |
anikendra |
1 |
<?php
|
|
|
2 |
if(isset($private_deals[0]->response->items) && (!empty($private_deals[0]->response->items))){
|
|
|
3 |
$results = $private_deals[0]->response;?>
|
|
|
4 |
<div class="pd-info-head ">
|
|
|
5 |
<div class="name-hldr clearfix">
|
|
|
6 |
<div>
|
|
|
7 |
<span>Private Deals</span>
|
|
|
8 |
<?php if((isset($results->count)) && (!empty($results->count))){
|
|
|
9 |
$count = $results->count - 20;
|
|
|
10 |
$TotalPage = ceil($count/10);?>
|
| 11845 |
anikendra |
11 |
<!--<span>(<?php echo $results->count;?> results)</span>-->
|
|
|
12 |
</div>
|
| 11805 |
anikendra |
13 |
<?php } ?>
|
| 11885 |
anikendra |
14 |
<!-- <div onclick="toggleListview(event);"></div> -->
|
| 11805 |
anikendra |
15 |
</div>
|
|
|
16 |
</div><!--pd-info-head-->
|
| 11852 |
anikendra |
17 |
<div class="couponhelptext">Apply Coupon code <span class="coupontext">saholicdeals</span> in cart page to avail this offer</div>
|
| 11805 |
anikendra |
18 |
<div id="page" style="display:none">1</div>
|
| 11858 |
anikendra |
19 |
<input type = "hidden" id="count" value="<?=$TotalPage?>"/>
|
| 11805 |
anikendra |
20 |
<div id="appendlist" class="pd-list-hldr clearfix" >
|
| 11885 |
anikendra |
21 |
<?php foreach ($results->items as $result) {?>
|
| 11805 |
anikendra |
22 |
<a class="pd-list" href="<?php echo base_url().$result->url;?>">
|
|
|
23 |
<div class="pd-image" style='background:url("<?php echo str_replace("'","'",$result->image_url);?>")no-repeat center center;background-size:contain;'></div>
|
|
|
24 |
<div class="pd-info">
|
|
|
25 |
<div class="pdt-name"><?php echo $result->title;?></div>
|
|
|
26 |
|
|
|
27 |
<div class="pdt-price">
|
|
|
28 |
<?php if(isset($result->price) || isset($result->mrp)){?>
|
| 11852 |
anikendra |
29 |
<span class="pricetype">Site Price</span><span class="pr">Rs</span>
|
| 11805 |
anikendra |
30 |
<?php if(isset($result->mrp) && $result->mrp != 0){ echo "<span class='pr-linethrough'>".$result->mrp. "</span>"; } ?>
|
|
|
31 |
<span class="pr-linethrough"><?php echo $result->price;?></span>
|
|
|
32 |
<?php }?>
|
|
|
33 |
</div>
|
| 11852 |
anikendra |
34 |
<?php if(isset($result->dealPrice)):?>
|
|
|
35 |
<div class="pdt-price pdeal-price">
|
|
|
36 |
<span class="pricetype">Your Price</span><span class="pr">Rs</span> <span class="pr-original"><?php echo $result->dealPrice;?></span>
|
|
|
37 |
</div>
|
|
|
38 |
<?php endif;?>
|
| 11885 |
anikendra |
39 |
<?php if(isset($result->offer_text) && !empty($result->offer_text)):?>
|
|
|
40 |
<div class="pdt-offertext"><?php echo $result->offer_text ;?> </div>
|
|
|
41 |
<?php endif;?>
|
| 11805 |
anikendra |
42 |
<div class="pdt-spec"><?php echo $result->description;?> </div>
|
| 11885 |
anikendra |
43 |
<?php if(isset($result->dealColors) && !empty($result->dealColors) && $result->colorCount > 1 && trim($result->dealColors[0])!=''):?>
|
|
|
44 |
<?php if(sizeof($result->dealColors) < $result->colorCount):?>
|
| 11805 |
anikendra |
45 |
<div class="pdt-offercolors">Offer available for : <?php echo implode(',',$result->dealColors);?></div>
|
| 11885 |
anikendra |
46 |
<?php elseif(sizeof($result->dealColors) == $result->colorCount):?>
|
|
|
47 |
<div class="pdt-offercolors">Offer available on all colors</div>
|
| 11805 |
anikendra |
48 |
<?php endif;?>
|
|
|
49 |
<?php endif;?>
|
|
|
50 |
</div>
|
|
|
51 |
</a>
|
|
|
52 |
<?php } ?>
|
|
|
53 |
</div>
|
|
|
54 |
<div id="showmorebutton" class="load-more" style="display:none" onclick="showMoreProducts();">Show More</div>
|
|
|
55 |
<?php } else { ?>
|
|
|
56 |
<div class="empty-list">
|
|
|
57 |
|
|
|
58 |
</div><!--empty-msg-->
|
|
|
59 |
<p class="empty-msg tcenter">No Products Found</p>
|
|
|
60 |
<?php } ?>
|