Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
13688 anikendra 1
<!-- Template for category tab with slider -->
2
<?php echo $this->element('unlikemodal');?>
13567 anikendra 3
<?php if(!empty($deals)):?>
4
  <?php foreach($deals AS $categoryId => $catdeals):?>    
13685 anikendra 5
  <div class="subheader row">
6
	<div class="col-xs-6">
7
		<h4><?php echo $categories[$categoryId];?></h4>
8
	</div>
9
	<div class="col-xs-6 text-right">
10
		<a href="/category/<?php echo $categoryId;?>"><h5>See All &gt;</h5></a>
11
	</div>
12
  </div>
13
  <div class="scrollable">  	
13599 anikendra 14
    <ul class="list-unstyled list-inline swipable row">
13567 anikendra 15
      <?php foreach ($catdeals as $key => $deal):?>      
13672 anikendra 16
        <li class="list">
17
		    <div class="product_image img img-responsive">
13682 anikendra 18
		      <img src="<?php echo $base_url;?>app/webroot/timthumb.php?h=120&src=<?php echo $deal[0]['StoreProduct']['thumbnail'];?>" class="viewproduct productthumb" data-id="<?php echo $deal[0]['StoreProduct']['id'];?>">
13583 anikendra 19
		      <ul class="product_actions list-unstyled">
13672 anikendra 20
		        <li data-id="<?php echo $deal[0]['StoreProduct']['id'];?>"  class="likedeal <?php if(isset($likedDeals[$deal[0]['StoreProduct']['id']])):?>active<?php endif;?>">
13583 anikendra 21
		        </li>
13672 anikendra 22
		        <li data-id="<?php echo $deal[0]['StoreProduct']['id'];?>"  class="dislikedeal <?php if(isset($disLikedDeals[$deal[0]['StoreProduct']['id']])):?>active<?php endif;?>">
13583 anikendra 23
		        </li>
13567 anikendra 24
		      </ul>
25
		    </div>
13682 anikendra 26
		    <div class="clearfix"></div>
13688 anikendra 27
		    <h5 class="viewproduct producttitle" data-id="<?php echo $deal[0]['StoreProduct']['id'];?>" ><?php echo $this->Text->truncate($deal[0]['StoreProduct']['title'],140,array('ellipsis' => '...','exact' => false));?></h5>
28
		    <p class="product_short_description <?php if(!isset($deal[0]['StoreProduct']['tagline'])):?>noshow<?php endif;?>"><?php echo $deal[0]['StoreProduct']['tagline'];?></p>		    
13567 anikendra 29
		    <p class="product_prices">
13672 anikendra 30
		      <span class="rupee"></span><span class="product_price"><?php echo $deal[0]['StoreProduct']['available_price'];?></span>        	
13688 anikendra 31
    		  <?php if(isset($deal[0]['StoreProduct']['cashback']) && !empty($deal[0]['StoreProduct']['cashback'])):?><span class="product_cashback"><label>Cashback</label><span class="rupee"></span> <?php echo $deal[0]['StoreProduct']['cashback'];?></span></span><?php endif;?>
32
		    </p>  
33
		    <div class="dealoffer <?php if(!isset($deal[0]['StoreProduct']['offer']) || empty($deal[0]['StoreProduct']['offer'])):?>noshow<?php endif;?>">        
34
		        <div class="row">
35
		          <div class="col-xs-3 offerlabel">
36
		            OFFER
37
		          </div>
38
		          <div class="col-xs-9 offertext">
39
		            <?php echo $deal[0]['StoreProduct']['offer'];?>
40
		          </div>
41
		        </div>        
42
	      	</div>                
13567 anikendra 43
	  	</li>           
44
      <?php endforeach;?>
13688 anikendra 45
      	</ul>  
46
 
13567 anikendra 47
  	</div>
48
  <?php endforeach;?>    
13599 anikendra 49
<?php endif;?>
18146 amit.gupta 50
<script type="text/javascript" src="/js/jquery.jscroll.min.js?v=<?php echo $staticversion;?>"></script>
13685 anikendra 51
<script type="text/javascript" src="/js/profittill.js?v=<?php echo $staticversion;?>"></script>