Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
13682 anikendra 1
<?php echo $this->element('unlikemodal');?>
13567 anikendra 2
<?php if(!empty($deals)):?>
3
    <?php foreach($deals AS $deal):?>
13672 anikendra 4
    <div class="card">
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">
13672 anikendra 8
          <li data-id="<?php echo $deal['StoreProduct']['id'];?>" class="likedeal <?php if(isset($likedDeals[$deal['StoreProduct']['id']])):?>active<?php endif;?>">
13567 anikendra 9
          </li>
13672 anikendra 10
          <li data-id="<?php echo $deal['StoreProduct']['id'];?>" class="dislikedeal <?php if(isset($disLikedDeals[$deal['StoreProduct']['id']])):?>active<?php endif;?>">
13567 anikendra 11
          </li>
12
        </ul>
13
      </div>
13682 anikendra 14
      <div class="clearfix"></div>
13672 anikendra 15
      <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 16
      <?php if(isset($deal['StoreProduct']['tagline'])):?><p class="product_short_description">echo $deal['StoreProduct']['tagline'];?></p><?php endif;?>
17
      <p class="product_prices">
18
        <span class="rupee"></span><span class="product_price"><?php echo $deal['StoreProduct']['available_price'];?></span>
13682 anikendra 19
        <?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;?>
13567 anikendra 20
      </p>          
21
    </div>       
22
  <?php endforeach;?>    
13570 anikendra 23
  <p class="text-center"><a class="btn btn-primary" href="/store_products/getdeals/?page=<?php echo $page+1;?>">Load More</a></p>
13685 anikendra 24
<?php endif;?>