Subversion Repositories SmartDukaan

Rev

Rev 18146 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
13688 anikendra 1
<!-- Template for category tab with slider -->
18200 manish.sha 2
<script>
3
  $(document).ready(function(){
4
	  setTimeout(function () {$('.carterror').fadeOut('slow');}, 20000);
5
  });
6
</script>
7
<?php if(isset($errorstr) && !empty($errorstr)):?>
8
	<div class="alert alert-warning carterror">
9
    <a href="#" class="close" data-dismiss="alert">&times;</a>
10
    <?php echo $errorstr;?>
11
	</div>
12
<?php endif;?>
13688 anikendra 13
<?php echo $this->element('unlikemodal');?>
13567 anikendra 14
<?php if(!empty($deals)):?>
15
  <?php foreach($deals AS $categoryId => $catdeals):?>    
13685 anikendra 16
  <div class="subheader row">
17
	<div class="col-xs-6">
18
		<h4><?php echo $categories[$categoryId];?></h4>
19
	</div>
20
	<div class="col-xs-6 text-right">
21
		<a href="/category/<?php echo $categoryId;?>"><h5>See All &gt;</h5></a>
22
	</div>
23
  </div>
24
  <div class="scrollable">  	
13599 anikendra 25
    <ul class="list-unstyled list-inline swipable row">
13567 anikendra 26
      <?php foreach ($catdeals as $key => $deal):?>      
13672 anikendra 27
        <li class="list">
28
		    <div class="product_image img img-responsive">
13682 anikendra 29
		      <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 30
		      <ul class="product_actions list-unstyled">
13672 anikendra 31
		        <li data-id="<?php echo $deal[0]['StoreProduct']['id'];?>"  class="likedeal <?php if(isset($likedDeals[$deal[0]['StoreProduct']['id']])):?>active<?php endif;?>">
13583 anikendra 32
		        </li>
13672 anikendra 33
		        <li data-id="<?php echo $deal[0]['StoreProduct']['id'];?>"  class="dislikedeal <?php if(isset($disLikedDeals[$deal[0]['StoreProduct']['id']])):?>active<?php endif;?>">
13583 anikendra 34
		        </li>
13567 anikendra 35
		      </ul>
36
		    </div>
13682 anikendra 37
		    <div class="clearfix"></div>
13688 anikendra 38
		    <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>
39
		    <p class="product_short_description <?php if(!isset($deal[0]['StoreProduct']['tagline'])):?>noshow<?php endif;?>"><?php echo $deal[0]['StoreProduct']['tagline'];?></p>		    
13567 anikendra 40
		    <p class="product_prices">
13672 anikendra 41
		      <span class="rupee"></span><span class="product_price"><?php echo $deal[0]['StoreProduct']['available_price'];?></span>        	
13688 anikendra 42
    		  <?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;?>
43
		    </p>  
44
		    <div class="dealoffer <?php if(!isset($deal[0]['StoreProduct']['offer']) || empty($deal[0]['StoreProduct']['offer'])):?>noshow<?php endif;?>">        
45
		        <div class="row">
46
		          <div class="col-xs-3 offerlabel">
47
		            OFFER
48
		          </div>
49
		          <div class="col-xs-9 offertext">
50
		            <?php echo $deal[0]['StoreProduct']['offer'];?>
51
		          </div>
52
		        </div>        
53
	      	</div>                
13567 anikendra 54
	  	</li>           
55
      <?php endforeach;?>
13688 anikendra 56
      	</ul>  
57
 
13567 anikendra 58
  	</div>
59
  <?php endforeach;?>    
13599 anikendra 60
<?php endif;?>
18200 manish.sha 61
<script type="text/javascript" src="/js/jquery.jscroll.min.js"></script>
13685 anikendra 62
<script type="text/javascript" src="/js/profittill.js?v=<?php echo $staticversion;?>"></script>