Subversion Repositories SmartDukaan

Rev

Rev 13579 | Rev 13599 | 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):?>
3
    <div class="col-xs-6 card">
13583 anikendra 4
      <?php echo $deal['StoreProduct']['id'];?>
13567 anikendra 5
      <div class="product_image img img-responsive">
13579 anikendra 6
        <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 7
        <ul class="product_actions list-unstyled">
8
          <li data-id="<?php echo $deal['StoreProduct']['id'];?>" class="likedeal">
13583 anikendra 9
            <button class="btn <?php if(isset($likedDeals[$deal['StoreProduct']['id']])):?>active<?php endif;?>"><i class="icon-heart"></i></button>
13567 anikendra 10
          </li>
11
          <li data-id="<?php echo $deal['StoreProduct']['id'];?>" class="dislikedeal">
13583 anikendra 12
            <button class="btn <?php if(isset($disLikedDeals[$deal['StoreProduct']['id']])):?>active<?php endif;?>"><i class="icon-thumbs-down"></i></button>            
13567 anikendra 13
          </li>
14
        </ul>
15
      </div>
16
      <p class="text-center viewproduct" data-id="<?php echo $deal['StoreProduct']['id'];?>"><?php echo  $this->Text->truncate($deal['StoreProduct']['title'],22,array('ellipsis' => '...','exact' => false));?></p>
17
      <?php if(isset($deal['StoreProduct']['tagline'])):?><p class="product_short_description">echo $deal['StoreProduct']['tagline'];?></p><?php endif;?>
18
      <p class="product_prices">
19
        <span class="rupee"></span><span class="product_price"><?php echo $deal['StoreProduct']['available_price'];?></span>
20
        <?php if(isset($deal['StoreProduct']['cashback']) && !empty($deal['StoreProduct']['cashback'])):?><span class="product_cashback">(<span class="rupee"></span> <?php echo $deal['StoreProduct']['cashback'];?> Cashback)</span><?php endif;?>
21
      </p>          
22
    </div>       
23
  <?php endforeach;?>    
13570 anikendra 24
  <p class="text-center"><a class="btn btn-primary" href="/store_products/getdeals/?page=<?php echo $page+1;?>">Load More</a></p>
13567 anikendra 25
<?php endif;?>