| 13715 |
anikendra |
1 |
<!-- template for deals tab -->
|
| 13682 |
anikendra |
2 |
<?php echo $this->element('unlikemodal');?>
|
| 13567 |
anikendra |
3 |
<?php if(!empty($deals)):?>
|
|
|
4 |
<?php foreach($deals AS $deal):?>
|
| 13715 |
anikendra |
5 |
<div class="row card">
|
| 13720 |
anikendra |
6 |
<div class="col-xs-4 productthumb viewproduct" data-id="<?php echo $deal['StoreProduct']['id'];?>">
|
|
|
7 |
<img src="<?php echo $base_url;?>app/webroot/timthumb.php?src=<?php echo $deal['StoreProduct']['thumbnail'];?>&h=100" />
|
| 13715 |
anikendra |
8 |
</div>
|
| 13720 |
anikendra |
9 |
<div class="col-xs-6 productdetails viewproduct" data-id="<?php echo $deal['StoreProduct']['id'];?>">
|
|
|
10 |
<h5 class="producttitle" ><?php echo $this->Text->truncate($deal['StoreProduct']['title'],140,array('ellipsis' => '...','exact' => false));?></h5>
|
| 13717 |
anikendra |
11 |
<div class="product_short_description <?php if(!isset($deal['StoreProduct']['tagline'])):?>hidden<?php endif;?>"><?php echo $deal['StoreProduct']['tagline'];?></div>
|
|
|
12 |
<div class="product_prices">
|
| 13719 |
anikendra |
13 |
<div><span class="rupee"></span><span class="product_price"><?php echo $deal['StoreProduct']['available_price'];?></span></div>
|
|
|
14 |
<?php if(isset($deal['StoreProduct']['cashback']) && !empty($deal['StoreProduct']['cashback'])):?><div><span class="cashbacklabel">Cashback</span><span class="cashbackrupee"></span> <span class="cashback"><?php echo $deal['StoreProduct']['cashback'];?></span></div><?php endif;?>
|
| 13717 |
anikendra |
15 |
</div>
|
|
|
16 |
<div class="dealoffer <?php if(!isset($deal['StoreProduct']['offer']) || empty($deal['StoreProduct']['offer'])):?>hidden<?php endif;?> row">
|
| 13715 |
anikendra |
17 |
<div class="col-xs-3 offerlabel">
|
|
|
18 |
OFFER
|
|
|
19 |
</div>
|
|
|
20 |
<div class="col-xs-9 offertext">
|
|
|
21 |
<?php echo $deal['StoreProduct']['offer'];?>
|
|
|
22 |
</div>
|
|
|
23 |
</div>
|
|
|
24 |
</div>
|
| 13717 |
anikendra |
25 |
<div class="col-xs-2 pull-right product_actions">
|
| 13719 |
anikendra |
26 |
<ul class="list-unstyled">
|
| 13672 |
anikendra |
27 |
<li data-id="<?php echo $deal['StoreProduct']['id'];?>" class="likedeal <?php if(isset($likedDeals[$deal['StoreProduct']['id']])):?>active<?php endif;?>">
|
| 13567 |
anikendra |
28 |
</li>
|
| 13672 |
anikendra |
29 |
<li data-id="<?php echo $deal['StoreProduct']['id'];?>" class="dislikedeal <?php if(isset($disLikedDeals[$deal['StoreProduct']['id']])):?>active<?php endif;?>">
|
| 13567 |
anikendra |
30 |
</li>
|
|
|
31 |
</ul>
|
|
|
32 |
</div>
|
|
|
33 |
</div>
|
|
|
34 |
<?php endforeach;?>
|
| 13719 |
anikendra |
35 |
<?php if($this->params->controller=='store_products'):?>
|
|
|
36 |
<p class="text-center"><a class="btn btn-primary" href="/store_products/getdeals/?page=<?php echo $page+1;?>">Load More</a></p>
|
|
|
37 |
<?php else:?>
|
|
|
38 |
<p class="text-center"><a class="btn btn-primary" href="/categories/getdeals/<?php echo $id;?>/?page=<?php echo ($page+1);?>">Load More</a></p>
|
|
|
39 |
<?php endif;?>
|
|
|
40 |
<?php endif;?>
|