| Line 4... |
Line 4... |
| 4 |
<div class="subheader row">
|
4 |
<div class="subheader row">
|
| 5 |
<div class="col-xs-6">
|
5 |
<div class="col-xs-6">
|
| 6 |
<h4><?php echo $categories[$categoryId];?></h4>
|
6 |
<h4><?php echo $categories[$categoryId];?></h4>
|
| 7 |
</div>
|
7 |
</div>
|
| 8 |
<div class="col-xs-6 text-right">
|
8 |
<div class="col-xs-6 text-right">
|
| 9 |
<a href="/category/<?php echo $categoryId;?>">Show all</a>
|
9 |
<a href="/category/<?php echo $categoryId;?>">See All ></a>
|
| 10 |
</div>
|
10 |
</div>
|
| 11 |
</div>
|
11 |
</div>
|
| 12 |
<ul class="list-unstyled list-inline swipable row">
|
12 |
<ul class="list-unstyled list-inline swipable row">
|
| 13 |
<?php foreach ($catdeals as $key => $deal):?>
|
13 |
<?php foreach ($catdeals as $key => $deal):?>
|
| 14 |
<li class="list card">
|
14 |
<li class="list">
|
| 15 |
<div class="product_image">
|
15 |
<div class="product_image img img-responsive">
|
| 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'];?>">
|
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'];?>">
|
| 17 |
<ul class="product_actions list-unstyled">
|
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>
|
18 |
<li data-id="<?php echo $deal[0]['StoreProduct']['id'];?>" class="likedeal <?php if(isset($likedDeals[$deal[0]['StoreProduct']['id']])):?>active<?php endif;?>">
|
| 20 |
</li>
|
19 |
</li>
|
| 21 |
<li data-id="<?php echo $deal[0]['StoreProduct']['id'];?>" class="dislikedeal">
|
20 |
<li data-id="<?php echo $deal[0]['StoreProduct']['id'];?>" class="dislikedeal <?php if(isset($disLikedDeals[$deal[0]['StoreProduct']['id']])):?>active<?php endif;?>">
|
| 22 |
<button class="btn <?php if(isset($disLikedDeals[$deal[0]['StoreProduct']['id']])):?>active<?php endif;?>"><i class="icon-thumbs-down"></i></button>
|
- |
|
| 23 |
</li>
|
21 |
</li>
|
| 24 |
</ul>
|
22 |
</ul>
|
| 25 |
</div>
|
23 |
</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>
|
24 |
<p class="viewproduct producttitle" 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'])):?>
|
25 |
<?php if(isset($deal['StoreProduct']['tagline'])):?>
|
| 28 |
<p class="product_short_description">echo $deal[0]['StoreProduct']['tagline'];?></p>
|
26 |
<p class="product_short_description"><?php echo $deal[0]['StoreProduct']['tagline'];?></p>
|
| 29 |
<?php endif;?>
|
27 |
<?php endif;?>
|
| 30 |
<p class="product_prices">
|
28 |
<p class="product_prices">
|
| 31 |
<span class="rupee"></span><span class="product_price"><?php echo $deal[0]['StoreProduct']['available_price'];?></span>
|
29 |
<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>
|
30 |
<span class="product_cashback"><label>Cashback</label><span class="rupee"></span> <?php if(isset($deal['StoreProduct']['cashback']) && !empty($deal[0]['StoreProduct']['cashback'])):?><?php echo $deal[0]['StoreProduct']['cashback'];?><?php else:?>0<?php endif;?></span></span>
|
| 34 |
<?php endif;?>
|
- |
|
| 35 |
</p>
|
31 |
</p>
|
| 36 |
</li>
|
32 |
</li>
|
| 37 |
<?php endforeach;?>
|
33 |
<?php endforeach;?>
|
| 38 |
</ul>
|
34 |
</ul>
|
| 39 |
</div>
|
35 |
</div>
|