Subversion Repositories SmartDukaan

Rev

Rev 13579 | Rev 13599 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

<?php if(!empty($deals)):?>
  <?php foreach($deals AS $categoryId => $catdeals):?>    
  <div class="scrollable">
        <div class="subheader row">
                <div class="col-xs-6">
                        <h4><?php echo $categories[$categoryId];?></h4>
                </div>
                <div class="col-xs-6 text-right">
                        <a href="/category/<?php echo $categoryId;?>">Show all</a>
                </div>
        </div>
    <ul class="list-unstyled list-inline swipable">
      <?php foreach ($catdeals as $key => $deal):?>      
        <li class="list card">
                    <div class="product_image">
                      <img src="<?php echo $base_url;?>app/webroot/timthumb.php?h=120&src=<?php echo $deal[0]['StoreProduct']['thumbnail'];?>" class="viewproduct" data-id="<?php echo $deal[0]['StoreProduct']['id'];?>">
                      <ul class="product_actions list-unstyled">
                        <li data-id="<?php echo $deal[0]['StoreProduct']['id'];?>"  class="likedeal">
                                <button class="btn <?php if(isset($likedDeals[$deal[0]['StoreProduct']['id']])):?>active<?php endif;?>"><i class="icon-heart"></i></button>
                        </li>
                        <li data-id="<?php echo $deal[0]['StoreProduct']['id'];?>"  class="dislikedeal">
                                <button class="btn <?php if(isset($disLikedDeals[$deal[0]['StoreProduct']['id']])):?>active<?php endif;?>"><i class="icon-thumbs-down"></i></button>            
                        </li>
                      </ul>
                    </div>
                    <p class="viewproduct text-center" data-id="<?php echo $deal[0]['StoreProduct']['id'];?>" ><?php echo $this->Text->truncate($deal[0]['StoreProduct']['title'],22,array('ellipsis' => '...','exact' => false));?></p>
                    <?php if(isset($deal['StoreProduct']['tagline'])):?>
                        <p class="product_short_description">echo $deal[0]['StoreProduct']['tagline'];?></p>
                    <?php endif;?>
                    <p class="product_prices">
                      <span class="rupee"></span><span class="product_price"><?php echo $deal[0]['StoreProduct']['available_price'];?></span>
                <?php if(isset($deal['StoreProduct']['cashback']) && !empty($deal[0]['StoreProduct']['cashback'])):?>
                  <span class="product_cashback">(<span class="rupee"></span> <?php echo $deal[0]['StoreProduct']['cashback'];?> Cashback)</span>
                <?php endif;?>
                    </p>                
                </li>           
      <?php endforeach;?>
        </ul>     
        </div>
  <?php endforeach;?>    
<?php endif;?>