Subversion Repositories SmartDukaan

Rev

Rev 13704 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
13688 anikendra 1
<!-- Template for single category page -->
13682 anikendra 2
<?php echo $this->element('unlikemodal');?>
13579 anikendra 3
<?php if(!empty($deals)):?>
13583 anikendra 4
    <?php foreach($deals AS $deal):?>    
13682 anikendra 5
    <div class="card">      
13579 anikendra 6
      <div class="product_image img img-responsive">
17760 amit.gupta 7
        <img src="<?php echo $base_url;?>app/webroot/timthumb.php?src=<?php echo urlencode ($deal['StoreProduct']['thumbnail']);?>&h=120" data-id="<?php echo $deal['StoreProduct']['id'];?>" class="viewproduct productthumb"> 
13579 anikendra 8
        <ul class="product_actions list-unstyled">
13672 anikendra 9
          <li data-id="<?php echo $deal['StoreProduct']['id'];?>" class="likedeal <?php if(isset($likedDeals[$deal['StoreProduct']['id']])):?>active<?php endif;?>">
13579 anikendra 10
          </li>
13672 anikendra 11
          <li data-id="<?php echo $deal['StoreProduct']['id'];?>" class="dislikedeal <?php if(isset($disLikedDeals[$deal['StoreProduct']['id']])):?>active<?php endif;?>">                    
13579 anikendra 12
          </li>
13
        </ul>
14
      </div>
13682 anikendra 15
      <div class="clearfix"></div>
13688 anikendra 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>
13704 anikendra 17
      <p class="product_short_description <?php if(!isset($deal['StoreProduct']['tagline'])):?>noshow<?php endif;?>"><?php echo $deal['StoreProduct']['tagline'];?></p>
13579 anikendra 18
      <p class="product_prices">
19
        <span class="rupee"></span><span class="product_price"><?php echo $deal['StoreProduct']['available_price'];?></span>
13682 anikendra 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;?>
13688 anikendra 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>        
31
      </div>           
13579 anikendra 32
    </div>       
33
  <?php endforeach;?>    
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>
35
<?php endif;?>