| 13567 |
anikendra |
1 |
<?php if(!empty($deals)):?>
|
|
|
2 |
<?php foreach($deals AS $categoryId => $catdeals):?>
|
|
|
3 |
<div class="scrollable">
|
| 13579 |
anikendra |
4 |
<div class="subheader row">
|
|
|
5 |
<div class="col-xs-6">
|
|
|
6 |
<h4><?php echo $categories[$categoryId];?></h4>
|
|
|
7 |
</div>
|
|
|
8 |
<div class="col-xs-6 text-right">
|
|
|
9 |
<a href="/category/<?php echo $categoryId;?>">Show all</a>
|
|
|
10 |
</div>
|
|
|
11 |
</div>
|
| 13599 |
anikendra |
12 |
<ul class="list-unstyled list-inline swipable row">
|
| 13567 |
anikendra |
13 |
<?php foreach ($catdeals as $key => $deal):?>
|
|
|
14 |
<li class="list card">
|
|
|
15 |
<div class="product_image">
|
|
|
16 |
<img src="<?php echo $base_url;?>app/webroot/timthumb.php?h=120&src=<?php echo $deal[0]['StoreProduct']['thumbnail'];?>" class="viewproduct" data-id="<?php echo $deal[0]['StoreProduct']['id'];?>">
|
| 13583 |
anikendra |
17 |
<ul class="product_actions list-unstyled">
|
|
|
18 |
<li data-id="<?php echo $deal[0]['StoreProduct']['id'];?>" class="likedeal">
|
|
|
19 |
<button class="btn <?php if(isset($likedDeals[$deal[0]['StoreProduct']['id']])):?>active<?php endif;?>"><i class="icon-heart"></i></button>
|
|
|
20 |
</li>
|
|
|
21 |
<li data-id="<?php echo $deal[0]['StoreProduct']['id'];?>" class="dislikedeal">
|
|
|
22 |
<button class="btn <?php if(isset($disLikedDeals[$deal[0]['StoreProduct']['id']])):?>active<?php endif;?>"><i class="icon-thumbs-down"></i></button>
|
|
|
23 |
</li>
|
| 13567 |
anikendra |
24 |
</ul>
|
|
|
25 |
</div>
|
|
|
26 |
<p class="viewproduct text-center" data-id="<?php echo $deal[0]['StoreProduct']['id'];?>" ><?php echo $this->Text->truncate($deal[0]['StoreProduct']['title'],22,array('ellipsis' => '...','exact' => false));?></p>
|
|
|
27 |
<?php if(isset($deal['StoreProduct']['tagline'])):?>
|
|
|
28 |
<p class="product_short_description">echo $deal[0]['StoreProduct']['tagline'];?></p>
|
|
|
29 |
<?php endif;?>
|
|
|
30 |
<p class="product_prices">
|
|
|
31 |
<span class="rupee"></span><span class="product_price"><?php echo $deal[0]['StoreProduct']['available_price'];?></span>
|
|
|
32 |
<?php if(isset($deal['StoreProduct']['cashback']) && !empty($deal[0]['StoreProduct']['cashback'])):?>
|
|
|
33 |
<span class="product_cashback">(<span class="rupee"></span> <?php echo $deal[0]['StoreProduct']['cashback'];?> Cashback)</span>
|
|
|
34 |
<?php endif;?>
|
|
|
35 |
</p>
|
|
|
36 |
</li>
|
|
|
37 |
<?php endforeach;?>
|
|
|
38 |
</ul>
|
|
|
39 |
</div>
|
|
|
40 |
<?php endforeach;?>
|
| 13599 |
anikendra |
41 |
<?php endif;?>
|
|
|
42 |
<script type="text/javascript" src="/js/jquery.jscroll.min.js"></script>
|
|
|
43 |
<script type="text/javascript" src="/js/profittill.js"></script>
|