Subversion Repositories SmartDukaan

Rev

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

Rev 13688 Rev 13715
Line 1... Line 1...
1
<!-- templet for deals tab -->
1
<!-- template for deals tab -->
2
<?php echo $this->element('unlikemodal');?>
2
<?php echo $this->element('unlikemodal');?>
3
<?php if(!empty($deals)):?>
3
<?php if(!empty($deals)):?>
4
    <?php foreach($deals AS $deal):?>
4
    <?php foreach($deals AS $deal):?>
5
    <?php //debug($deal);?>
5
    <?php //debug($deal);?>
6
    <div class="card">      
6
    <div class="row card">      
-
 
7
      <div class="col-xs-4">
-
 
8
        <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 ">         
-
 
9
      </div>
-
 
10
      <div class="col-xs-7 productdetails">
-
 
11
        <h5 class="viewproduct producttitle" data-id="<?php echo $deal['StoreProduct']['id'];?>"><?php echo  $this->Text->truncate($deal['StoreProduct']['title'],140,array('ellipsis' => '...','exact' => false));?></h5>
-
 
12
        <p class="product_short_description <?php if(!isset($deal['StoreProduct']['tagline'])):?>noshow<?php endif;?>"><?php echo $deal['StoreProduct']['tagline'];?></p>
7
      <div class="product_image img img-responsive">
13
        <p class="product_prices">
-
 
14
          <span class="rupee"></span><span class="product_price"><?php echo $deal['StoreProduct']['available_price'];?></span>
8
        <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"> 
15
          <?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;?>
-
 
16
        </p>  
-
 
17
        <div class="dealoffer <?php if(!isset($deal['StoreProduct']['offer']) || empty($deal['StoreProduct']['offer'])):?>noshow<?php endif;?>">        
-
 
18
            <div class="col-xs-3 offerlabel">
-
 
19
              OFFER
-
 
20
            </div>
-
 
21
            <div class="col-xs-9 offertext">
-
 
22
              <?php echo $deal['StoreProduct']['offer'];?>
-
 
23
            </div>
-
 
24
        </div>        
-
 
25
      </div>
-
 
26
      <div class="col-xs-1">
9
        <ul class="product_actions list-unstyled">
27
        <ul class="product_actions list-unstyled">
10
          <li data-id="<?php echo $deal['StoreProduct']['id'];?>" class="likedeal <?php if(isset($likedDeals[$deal['StoreProduct']['id']])):?>active<?php endif;?>">
28
          <li data-id="<?php echo $deal['StoreProduct']['id'];?>" class="likedeal <?php if(isset($likedDeals[$deal['StoreProduct']['id']])):?>active<?php endif;?>">
11
          </li>
29
          </li>
12
          <li data-id="<?php echo $deal['StoreProduct']['id'];?>" class="dislikedeal <?php if(isset($disLikedDeals[$deal['StoreProduct']['id']])):?>active<?php endif;?>">
30
          <li data-id="<?php echo $deal['StoreProduct']['id'];?>" class="dislikedeal <?php if(isset($disLikedDeals[$deal['StoreProduct']['id']])):?>active<?php endif;?>">
13
          </li>
31
          </li>
14
        </ul>
32
        </ul>
15
      </div>
33
      </div>
16
      <div class="clearfix"></div>
-
 
17
      <h5 class="viewproduct producttitle" data-id="<?php echo $deal['StoreProduct']['id'];?>"><?php echo  $this->Text->truncate($deal['StoreProduct']['title'],140,array('ellipsis' => '...','exact' => false));?></h5>
-
 
18
      <p class="product_short_description <?php if(!isset($deal['StoreProduct']['tagline'])):?>noshow<?php endif;?>"><?php echo $deal['StoreProduct']['tagline'];?></p>
-
 
19
      <p class="product_prices">
-
 
20
        <span class="rupee"></span><span class="product_price"><?php echo $deal['StoreProduct']['available_price'];?></span>
-
 
21
        <?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;?>
-
 
22
      </p>  
-
 
23
      <div class="dealoffer <?php if(!isset($deal['StoreProduct']['offer']) || empty($deal['StoreProduct']['offer'])):?>noshow<?php endif;?>">        
-
 
24
        <div class="row">
-
 
25
          <div class="col-xs-3 offerlabel">
-
 
26
            OFFER
-
 
27
          </div>
-
 
28
          <div class="col-xs-9 offertext">
-
 
29
            <?php echo $deal['StoreProduct']['offer'];?>
-
 
30
          </div>
-
 
31
        </div>        
-
 
32
      </div>           
-
 
33
    </div>       
34
    </div>       
34
  <?php endforeach;?>    
35
  <?php endforeach;?>    
35
  <p class="text-center"><a class="btn btn-primary" href="/store_products/getdeals/?page=<?php echo $page+1;?>">Load More</a></p>
36
  <p class="text-center"><a class="btn btn-primary" href="/store_products/getdeals/?page=<?php echo $page+1;?>">Load More</a></p>
36
<?php endif;?>
37
<?php endif;?>
37
38