| Line 9... |
Line 9... |
| 9 |
$count = $results->count - 20;
|
9 |
$count = $results->count - 20;
|
| 10 |
$TotalPage = ceil($count/10);?>
|
10 |
$TotalPage = ceil($count/10);?>
|
| 11 |
<!--<span>(<?php echo $results->count;?> results)</span>-->
|
11 |
<!--<span>(<?php echo $results->count;?> results)</span>-->
|
| 12 |
</div>
|
12 |
</div>
|
| 13 |
<?php } ?>
|
13 |
<?php } ?>
|
| 14 |
<div onclick="toggleListview(event);"></div>
|
14 |
<!-- <div onclick="toggleListview(event);"></div> -->
|
| 15 |
</div>
|
15 |
</div>
|
| 16 |
</div><!--pd-info-head-->
|
16 |
</div><!--pd-info-head-->
|
| 17 |
<div class="couponhelptext">Apply Coupon code <span class="coupontext">saholicdeals</span> in cart page to avail this offer</div>
|
17 |
<div class="couponhelptext">Apply Coupon code <span class="coupontext">saholicdeals</span> in cart page to avail this offer</div>
|
| 18 |
<div id="page" style="display:none">1</div>
|
18 |
<div id="page" style="display:none">1</div>
|
| 19 |
<input type = "hidden" id="count" value="<?=$TotalPage?>"/>
|
19 |
<input type = "hidden" id="count" value="<?=$TotalPage?>"/>
|
| 20 |
<div id="appendlist" class="pd-list-hldr clearfix" >
|
20 |
<div id="appendlist" class="pd-list-hldr clearfix" >
|
| 21 |
<?php foreach ($results->items as $result) { ?>
|
21 |
<?php foreach ($results->items as $result) {?>
|
| 22 |
<a class="pd-list" href="<?php echo base_url().$result->url;?>">
|
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>
|
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">
|
24 |
<div class="pd-info">
|
| 25 |
<div class="pdt-name"><?php echo $result->title;?></div>
|
25 |
<div class="pdt-name"><?php echo $result->title;?></div>
|
| 26 |
|
26 |
|
| Line 34... |
Line 34... |
| 34 |
<?php if(isset($result->dealPrice)):?>
|
34 |
<?php if(isset($result->dealPrice)):?>
|
| 35 |
<div class="pdt-price pdeal-price">
|
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>
|
36 |
<span class="pricetype">Your Price</span><span class="pr">Rs</span> <span class="pr-original"><?php echo $result->dealPrice;?></span>
|
| 37 |
</div>
|
37 |
</div>
|
| 38 |
<?php endif;?>
|
38 |
<?php endif;?>
|
| - |
|
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;?>
|
| 39 |
<div class="pdt-spec"><?php echo $result->description;?> </div>
|
42 |
<div class="pdt-spec"><?php echo $result->description;?> </div>
|
| 40 |
<?php if(isset($result->dealColors) && !empty($result->dealColors) && trim($result->dealColors[0])!=''):?>
|
43 |
<?php if(isset($result->dealColors) && !empty($result->dealColors) && $result->colorCount > 1 && trim($result->dealColors[0])!=''):?>
|
| - |
|
44 |
<?php if(sizeof($result->dealColors) < $result->colorCount):?>
|
| 41 |
<div class="pdt-offercolors">Offer available for : <?php echo implode(',',$result->dealColors);?></div>
|
45 |
<div class="pdt-offercolors">Offer available for : <?php echo implode(',',$result->dealColors);?></div>
|
| - |
|
46 |
<?php elseif(sizeof($result->dealColors) == $result->colorCount):?>
|
| - |
|
47 |
<div class="pdt-offercolors">Offer available on all colors</div>
|
| 42 |
<?php endif;?>
|
48 |
<?php endif;?>
|
| 43 |
<?php if(isset($result->offer_text) && !empty($result->offer_text)):?>
|
- |
|
| 44 |
<div class="pdt-offertext">Offer includes : <?php echo $result->offer_text ;?> </div>
|
- |
|
| 45 |
<?php endif;?>
|
49 |
<?php endif;?>
|
| 46 |
</div>
|
50 |
</div>
|
| 47 |
</a>
|
51 |
</a>
|
| 48 |
<?php } ?>
|
52 |
<?php } ?>
|
| 49 |
</div>
|
53 |
</div>
|