Subversion Repositories SmartDukaan

Rev

Rev 13646 | Rev 13682 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 13646 Rev 13672
Line 1... Line 1...
1
<?php if(!empty($deals)):?>
1
<?php if(!empty($deals)):?>
2
    <?php foreach($deals AS $deal):?>    
2
    <?php foreach($deals AS $deal):?>    
3
    <div class="col-xs-6 card">
3
    <div class="col-xs-6 card">
-
 
4
      hhe
4
      <div class="product_image img img-responsive">
5
      <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
        <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
        <ul class="product_actions list-unstyled">
7
          <li data-id="<?php echo $deal['StoreProduct']['id'];?>" class="likedeal">
8
          <li data-id="<?php echo $deal['StoreProduct']['id'];?>" class="likedeal <?php if(isset($likedDeals[$deal['StoreProduct']['id']])):?>active<?php endif;?>">
8
            <button class="btn <?php if(isset($likedDeals[$deal['StoreProduct']['id']])):?>active<?php endif;?>"><i class="glyphicon glyphicon-heart" aria-hidden="true"></i></button>
-
 
9
          </li>
9
          </li>
10
          <li data-id="<?php echo $deal['StoreProduct']['id'];?>" class="dislikedeal">
-
 
11
            <button class="btn <?php if(isset($disLikedDeals[$deal['StoreProduct']['id']])):?>active<?php endif;?>"><i class="glyphicon glyphicon-thumbs-down" aria-hidden="true"></i></button>            
10
          <li data-id="<?php echo $deal['StoreProduct']['id'];?>" class="dislikedeal <?php if(isset($disLikedDeals[$deal['StoreProduct']['id']])):?>active<?php endif;?>">                    
12
          </li>
11
          </li>
13
        </ul>
12
        </ul>
14
      </div>
13
      </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>
14
      <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;?>
15
      <?php if(isset($deal['StoreProduct']['tagline'])):?><p class="product_short_description">echo $deal['StoreProduct']['tagline'];?></p><?php endif;?>
17
      <p class="product_prices">
16
      <p class="product_prices">
18
        <span class="rupee"></span><span class="product_price"><?php echo $deal['StoreProduct']['available_price'];?></span>
17
        <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;?>
18
        <span class="product_cashback"><label>Cashback</label><span class="rupee"></span> <span class="cashback"><?php if(isset($deal['StoreProduct']['cashback']) && !empty($deal['StoreProduct']['cashback'])):?><?php echo $deal['StoreProduct']['cashback'];?> <?php else:?>0<?php endif;?></span></span>
20
      </p>          
19
      </p>          
21
    </div>       
20
    </div>       
22
  <?php endforeach;?>    
21
  <?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>
22
  <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;?>
23
<?php endif;?>
25
24