| 13579 |
anikendra |
1 |
<?php if(!empty($deals)):?>
|
|
|
2 |
<?php foreach($deals AS $deal):?>
|
|
|
3 |
<div class="col-xs-6 card">
|
|
|
4 |
<div class="product_image img img-responsive">
|
|
|
5 |
<img src="<?php echo $base_url;?>app/webroot/timthumb.php?src=<?php echo $deal['StoreProduct']['thumbnail'];?>&h=120" data-id="<?php echo $deal['StoreProduct']['id'];?>" class="viewproduct productthumb">
|
|
|
6 |
<ul class="product_actions list-unstyled">
|
|
|
7 |
<li data-id="<?php echo $deal['StoreProduct']['id'];?>" class="likedeal">
|
|
|
8 |
<button class="icon ion-heart"></button>
|
|
|
9 |
</li>
|
|
|
10 |
<li data-id="<?php echo $deal['StoreProduct']['id'];?>" class="dislikedeal">
|
|
|
11 |
<button class="icon ion-thumbsdown"></button>
|
|
|
12 |
</li>
|
|
|
13 |
</ul>
|
|
|
14 |
</div>
|
|
|
15 |
<p class="text-center viewproduct" data-id="<?php echo $deal['StoreProduct']['id'];?>"><?php echo $this->Text->truncate($deal['StoreProduct']['title'],22,array('ellipsis' => '...','exact' => false));?></p>
|
|
|
16 |
<?php if(isset($deal['StoreProduct']['tagline'])):?><p class="product_short_description">echo $deal['StoreProduct']['tagline'];?></p><?php endif;?>
|
|
|
17 |
<p class="product_prices">
|
|
|
18 |
<span class="rupee"></span><span class="product_price"><?php echo $deal['StoreProduct']['available_price'];?></span>
|
|
|
19 |
<?php if(isset($deal['StoreProduct']['cashback']) && !empty($deal['StoreProduct']['cashback'])):?><span class="product_cashback">(<span class="rupee"></span> <?php echo $deal['StoreProduct']['cashback'];?> Cashback)</span><?php endif;?>
|
|
|
20 |
</p>
|
|
|
21 |
</div>
|
|
|
22 |
<?php endforeach;?>
|
|
|
23 |
<p class="text-center"><a class="btn btn-primary" href="/categories/getdeals/<?php echo $id;?>/?page=<?php echo ($page+1);?>">Load More</a></p>
|
|
|
24 |
<?php endif;?>
|