Subversion Repositories SmartDukaan

Rev

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

Rev 13682 Rev 13688
Line -... Line 1...
-
 
1
<!-- Template for single category page -->
1
<?php echo $this->element('unlikemodal');?>
2
<?php echo $this->element('unlikemodal');?>
2
<?php if(!empty($deals)):?>
3
<?php if(!empty($deals)):?>
3
    <?php foreach($deals AS $deal):?>    
4
    <?php foreach($deals AS $deal):?>    
4
    <div class="card">      
5
    <div class="card">      
5
      <div class="product_image img img-responsive">
6
      <div class="product_image img img-responsive">
Line 10... Line 11...
10
          <li data-id="<?php echo $deal['StoreProduct']['id'];?>" class="dislikedeal <?php if(isset($disLikedDeals[$deal['StoreProduct']['id']])):?>active<?php endif;?>">                    
11
          <li data-id="<?php echo $deal['StoreProduct']['id'];?>" class="dislikedeal <?php if(isset($disLikedDeals[$deal['StoreProduct']['id']])):?>active<?php endif;?>">                    
11
          </li>
12
          </li>
12
        </ul>
13
        </ul>
13
      </div>
14
      </div>
14
      <div class="clearfix"></div>
15
      <div class="clearfix"></div>
15
      <h5 class="producttitle viewproduct" data-id="<?php echo $deal['StoreProduct']['id'];?>"><?php echo  $this->Text->truncate($deal['StoreProduct']['title'],22,array('ellipsis' => '...','exact' => false));?></h5>
16
      <h5 class="producttitle viewproduct" data-id="<?php echo $deal['StoreProduct']['id'];?>"><?php echo  $this->Text->truncate($deal['StoreProduct']['title'],140,array('ellipsis' => '...','exact' => false));?></h5>
16
      <?php if(isset($deal['StoreProduct']['tagline'])):?><p class="product_short_description">echo $deal['StoreProduct']['tagline'];?></p><?php endif;?>
17
      <?php if(isset($deal['StoreProduct']['tagline'])):?><p class="product_short_description"><?php echo $deal['StoreProduct']['tagline'];?></p><?php endif;?>
17
      <p class="product_prices">
18
      <p class="product_prices">
18
        <span class="rupee"></span><span class="product_price"><?php echo $deal['StoreProduct']['available_price'];?></span>
19
        <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"><label>Cashback</label><span class="rupee"></span> <span class="cashback"><?php echo $deal['StoreProduct']['cashback'];?></span></span><?php endif;?>
20
        <?php if(isset($deal['StoreProduct']['cashback']) && !empty($deal['StoreProduct']['cashback'])):?><span class="product_cashback"><label>Cashback</label><span class="rupee"></span> <span class="cashback"><?php echo $deal['StoreProduct']['cashback'];?></span></span><?php endif;?>
-
 
21
      </p>
-
 
22
      <div class="dealoffer <?php if(!isset($deal['StoreProduct']['offer']) || empty($deal['StoreProduct']['offer'])):?>noshow<?php endif;?>">        
-
 
23
        <div class="row">
-
 
24
          <div class="col-xs-3 offerlabel">
-
 
25
            OFFER
-
 
26
          </div>
-
 
27
          <div class="col-xs-9 offertext">
-
 
28
            <?php echo $deal['StoreProduct']['offer'];?>
-
 
29
          </div>
-
 
30
        </div>        
20
      </p>          
31
      </div>           
21
    </div>       
32
    </div>       
22
  <?php endforeach;?>    
33
  <?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>
34
  <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;?>
35
<?php endif;?>
25
36