Subversion Repositories SmartDukaan

Rev

Rev 13715 | Blame | Compare with Previous | Last modification | View Log | RSS feed

<!-- templet for deals tab -->
<?php echo $this->element('unlikemodal');?>
<?php if(!empty($deals)):?>
    <?php foreach($deals AS $deal):?>
    <?php //debug($deal);?>
    <div class="card">      
      <div class="product_image img img-responsive">
        <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"> 
        <ul class="product_actions list-unstyled">
          <li data-id="<?php echo $deal['StoreProduct']['id'];?>" class="likedeal <?php if(isset($likedDeals[$deal['StoreProduct']['id']])):?>active<?php endif;?>">
          </li>
          <li data-id="<?php echo $deal['StoreProduct']['id'];?>" class="dislikedeal <?php if(isset($disLikedDeals[$deal['StoreProduct']['id']])):?>active<?php endif;?>">
          </li>
        </ul>
      </div>
      <div class="clearfix"></div>
      <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>
      <p class="product_short_description <?php if(!isset($deal['StoreProduct']['tagline'])):?>noshow<?php endif;?>"><?php echo $deal['StoreProduct']['tagline'];?></p>
      <p class="product_prices">
        <span class="rupee"></span><span class="product_price"><?php echo $deal['StoreProduct']['available_price'];?></span>
        <?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;?>
      </p>  
      <div class="dealoffer <?php if(!isset($deal['StoreProduct']['offer']) || empty($deal['StoreProduct']['offer'])):?>noshow<?php endif;?>">        
        <div class="row">
          <div class="col-xs-3 offerlabel">
            OFFER
          </div>
          <div class="col-xs-9 offertext">
            <?php echo $deal['StoreProduct']['offer'];?>
          </div>
        </div>        
      </div>           
    </div>       
  <?php endforeach;?>    
  <p class="text-center"><a class="btn btn-primary" href="/store_products/getdeals/?page=<?php echo $page+1;?>">Load More</a></p>
<?php endif;?>