Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
13715 anikendra 1
<!-- template for deals tab -->
13682 anikendra 2
<?php echo $this->element('unlikemodal');?>
13567 anikendra 3
<?php if(!empty($deals)):?>
4
    <?php foreach($deals AS $deal):?>
13688 anikendra 5
    <?php //debug($deal);?>
13715 anikendra 6
    <div class="row card">      
13719 anikendra 7
      <div class="col-xs-4 productthumb viewproduct">
8
        <img src="<?php echo $base_url;?>app/webroot/timthumb.php?src=<?php echo $deal['StoreProduct']['thumbnail'];?>&h=100" data-id="<?php echo $deal['StoreProduct']['id'];?>"/>
13715 anikendra 9
      </div>
13719 anikendra 10
      <div class="col-xs-6 productdetails viewproduct">
11
        <h5 class="producttitle" data-id="<?php echo $deal['StoreProduct']['id'];?>"><?php echo  $this->Text->truncate($deal['StoreProduct']['title'],140,array('ellipsis' => '...','exact' => false));?></h5>
13717 anikendra 12
        <div class="product_short_description <?php if(!isset($deal['StoreProduct']['tagline'])):?>hidden<?php endif;?>"><?php echo $deal['StoreProduct']['tagline'];?></div>
13
        <div class="product_prices">
13719 anikendra 14
          <div><span class="rupee"></span><span class="product_price"><?php echo $deal['StoreProduct']['available_price'];?></span></div>
15
          <?php if(isset($deal['StoreProduct']['cashback']) && !empty($deal['StoreProduct']['cashback'])):?><div><span class="cashbacklabel">Cashback</span><span class="cashbackrupee"></span> <span class="cashback"><?php echo $deal['StoreProduct']['cashback'];?></span></div><?php endif;?>
13717 anikendra 16
        </div>  
17
        <div class="dealoffer <?php if(!isset($deal['StoreProduct']['offer']) || empty($deal['StoreProduct']['offer'])):?>hidden<?php endif;?> row">
13715 anikendra 18
            <div class="col-xs-3 offerlabel">
19
              OFFER
20
            </div>
21
            <div class="col-xs-9 offertext">
22
              <?php echo $deal['StoreProduct']['offer'];?>
23
            </div>
24
        </div>        
25
      </div>
13717 anikendra 26
      <div class="col-xs-2 pull-right product_actions">
13719 anikendra 27
        <ul class="list-unstyled">
13672 anikendra 28
          <li data-id="<?php echo $deal['StoreProduct']['id'];?>" class="likedeal <?php if(isset($likedDeals[$deal['StoreProduct']['id']])):?>active<?php endif;?>">
13567 anikendra 29
          </li>
13672 anikendra 30
          <li data-id="<?php echo $deal['StoreProduct']['id'];?>" class="dislikedeal <?php if(isset($disLikedDeals[$deal['StoreProduct']['id']])):?>active<?php endif;?>">
13567 anikendra 31
          </li>
32
        </ul>
33
      </div>
34
    </div>       
35
  <?php endforeach;?>    
13719 anikendra 36
  <?php if($this->params->controller=='store_products'):?>
37
    <p class="text-center"><a class="btn btn-primary" href="/store_products/getdeals/?page=<?php echo $page+1;?>">Load More</a></p>
38
  <?php else:?>
39
    <p class="text-center"><a class="btn btn-primary" href="/categories/getdeals/<?php echo $id;?>/?page=<?php echo ($page+1);?>">Load More</a></p>
40
  <?php endif;?>
41
<?php endif;?>