Subversion Repositories SmartDukaan

Rev

Rev 13646 | Rev 13682 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
13567 anikendra 1
<?php if(!empty($deals)):?>
2
    <?php foreach($deals AS $deal):?>
13672 anikendra 3
    <div class="card">
13567 anikendra 4
      <div class="product_image img img-responsive">
13579 anikendra 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"> 
13567 anikendra 6
        <ul class="product_actions list-unstyled">
13672 anikendra 7
          <li data-id="<?php echo $deal['StoreProduct']['id'];?>" class="likedeal <?php if(isset($likedDeals[$deal['StoreProduct']['id']])):?>active<?php endif;?>">
13567 anikendra 8
          </li>
13672 anikendra 9
          <li data-id="<?php echo $deal['StoreProduct']['id'];?>" class="dislikedeal <?php if(isset($disLikedDeals[$deal['StoreProduct']['id']])):?>active<?php endif;?>">
13567 anikendra 10
          </li>
11
        </ul>
12
      </div>
13672 anikendra 13
      <h5 class="viewproduct producttitle" data-id="<?php echo $deal['StoreProduct']['id'];?>"><?php echo  $this->Text->truncate($deal['StoreProduct']['title'],22,array('ellipsis' => '...','exact' => false));?></h5>
13567 anikendra 14
      <?php if(isset($deal['StoreProduct']['tagline'])):?><p class="product_short_description">echo $deal['StoreProduct']['tagline'];?></p><?php endif;?>
15
      <p class="product_prices">
16
        <span class="rupee"></span><span class="product_price"><?php echo $deal['StoreProduct']['available_price'];?></span>
13672 anikendra 17
        <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>
13567 anikendra 18
      </p>          
19
    </div>       
20
  <?php endforeach;?>    
13570 anikendra 21
  <p class="text-center"><a class="btn btn-primary" href="/store_products/getdeals/?page=<?php echo $page+1;?>">Load More</a></p>
13599 anikendra 22
<?php endif;?>