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
13567 anikendra 1
<?php if(!empty($deals)):?>
2
  <?php foreach($deals AS $categoryId => $catdeals):?>    
13685 anikendra 3
  <div class="subheader row">
4
	<div class="col-xs-6">
5
		<h4><?php echo $categories[$categoryId];?></h4>
6
	</div>
7
	<div class="col-xs-6 text-right">
8
		<a href="/category/<?php echo $categoryId;?>"><h5>See All &gt;</h5></a>
9
	</div>
10
  </div>
11
  <div class="scrollable">  	
13599 anikendra 12
    <ul class="list-unstyled list-inline swipable row">
13567 anikendra 13
      <?php foreach ($catdeals as $key => $deal):?>      
13672 anikendra 14
        <li class="list">
15
		    <div class="product_image img img-responsive">
13682 anikendra 16
		      <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 17
		      <ul class="product_actions list-unstyled">
13672 anikendra 18
		        <li data-id="<?php echo $deal[0]['StoreProduct']['id'];?>"  class="likedeal <?php if(isset($likedDeals[$deal[0]['StoreProduct']['id']])):?>active<?php endif;?>">
13583 anikendra 19
		        </li>
13672 anikendra 20
		        <li data-id="<?php echo $deal[0]['StoreProduct']['id'];?>"  class="dislikedeal <?php if(isset($disLikedDeals[$deal[0]['StoreProduct']['id']])):?>active<?php endif;?>">
13583 anikendra 21
		        </li>
13567 anikendra 22
		      </ul>
23
		    </div>
13682 anikendra 24
		    <div class="clearfix"></div>
13672 anikendra 25
		    <p class="viewproduct producttitle" data-id="<?php echo $deal[0]['StoreProduct']['id'];?>" ><?php echo $this->Text->truncate($deal[0]['StoreProduct']['title'],22,array('ellipsis' => '...','exact' => false));?></p>
13567 anikendra 26
		    <?php if(isset($deal['StoreProduct']['tagline'])):?>
13672 anikendra 27
		    	<p class="product_short_description"><?php echo $deal[0]['StoreProduct']['tagline'];?></p>
13567 anikendra 28
		    <?php endif;?>
29
		    <p class="product_prices">
13672 anikendra 30
		      <span class="rupee"></span><span class="product_price"><?php echo $deal[0]['StoreProduct']['available_price'];?></span>        	
13682 anikendra 31
    		  <?php if(isset($deal['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;?>
13567 anikendra 32
		    </p>                
33
	  	</li>           
34
      <?php endforeach;?>
35
      	</ul>     
36
  	</div>
37
  <?php endforeach;?>    
13599 anikendra 38
<?php endif;?>
39
<script type="text/javascript" src="/js/jquery.jscroll.min.js"></script>
13685 anikendra 40
<script type="text/javascript" src="/js/profittill.js?v=<?php echo $staticversion;?>"></script>