Subversion Repositories SmartDukaan

Rev

Rev 17760 | Blame | Compare with Previous | Last modification | View Log | RSS feed

<!-- template for deals tab -->
<?php if(!empty($appOffers['AppOffers'])):?>
  <?php foreach ($appOffers['AppOffers'] as $key => $deal) :?>
  <?php if(empty($deal))continue;?>
  <?php //$deal = $offer['AppOffer'];?>
  <div class="row card" style='font-size: 12px;'>           
      <div class="col-xs-4 productthumb getapp" data-id="<?php echo $deal['app_id'];?>" data-url="<?php echo $deal['link'];?>" data-price="<?php echo intval($deal['offer_price']);?>">
        <img src="<?php echo $base_url;?>app/webroot/timthumb.php?src=<?php echo urlencode ($deal['image_url']);?>&h=80" width="80"/>
        <!-- <br/> -->
        <br/>
        <span class="glyphicon glyphicon-download-alt" aria-hidden="true"></span><i><?php echo $deal['downloads'];?></i>
        <br/>
        <span class="stars"><?php echo $deal['ratings'];?></span>
        <div class="text_arrange">
          <?php echo $deal['offerCategory'];?>
        </div>
      </div>
      <div class="col-xs-8 getapp appdetails productdetails" data-id="<?php echo $deal['app_id'];?>">
        <div style="min-height:70px">

        <div class="row ">
          <div class = "col-xs-6" style="margin:0px;padding:0px">
            <h5 class="text_arrange1 producttitle getapp " data-id="<?php echo $deal['app_id'];?>" data-url="<?php echo $deal['link'];?>" data-price="<?php echo intval($deal['offer_price']);?>">
              <b><?php echo $deal['app_name'];?></b>
            </h5  >

          </div>
          <div class="col-xs-6 " style="padding:0px;">
            <!-- <div class="offerprice" style="float:right">   
              <font color = '#58d936'>Cashback:</font> <img src='/img/green_rupee.png' height='10px' width='9px'> <font color = 'red'><b><?php echo intval($deal['user_payout']);?></b></font>
              <!-- <span class="rupee" style="margin-top:1px;"></span> 
            </div> -->
          </div>
        </div>
        
        <div class="text-medium grey<?php if(!isset($deal['shortDescription'])):?>hidden<?php endif;?>" data-id="<?php echo $deal['app_id'];?>" data-url="<?php echo $deal['link'];?>" data-price="<?php echo intval($deal['offer_price']);?>">
          <font color='grey'><?php echo $deal['shortDescription'];?></font>
        </div>
     
        <div style="padding-bottom:3px;" class="<?php if(!isset($deal['customerOneLiner'])):?>hidden<?php endif;?>">
          <b><?php echo $deal['customerOneLiner'];?></b>
        </div>
        
        <div style="padding-bottom:3px;" class="text-medium red <?php if(!isset($deal['retailerOneLiner'])):?>hidden<?php endif;?>">
          <?php echo $deal['retailerOneLiner'];?>
        </div>
        
        <div class="text-small" style="word-wrap: break-word;padding-bottom:3px;">
            <?php 
              if (strlen($deal['location'])>0){
                echo "<font color='red'>Valid in: </font><font color='black'>".trim($deal['location'])."</font>";
              }
            ?>
        </div>
        <div class="offercondition text-small">
          <?php echo $deal['offerCondition'];?> 
        </div>

        </div>
       
        <div class="dealoffer text-small <?php if(!isset($deal['longDescription']) || empty($deal['longDescription'])):?>hidden<?php endif;?> row" style='color:grey;'>            
          <?php //echo strip_tags($deal['longDescription'],'<br>');?> 
            <span class="offerprice" style="padding:4px">   
              <font color = '#58d936'>Cashback:</font> <img src='/img/green_rupee.png' height='14px' width='9px'> <font color = 'red'><b><?php echo intval($deal['user_payout']);?></b></font>
              <!-- <span class="rupee" style="margin-top:1px;"></span> -->
            </span>
        </div>
       
                 
      </div>                      
  </div>  
  <?php endforeach;?>
  <?php if(count($appOffers['AppOffers'])<4):?>
  <div class="text-danger text-center">We are adding more apps. Do keep checking here</div>
  <?php else:?>
  <!--<p class="text-center"><a class="btn btn-primary infitescroller" href="/categories/getapps/<?php echo $id;?>/?page=<?php echo ($page+1);?>">Load More</a></p>-->
  <?php endif;?>  
  <?php else:?>
    <?php if($page==1):?>
      <h4>No more offers found. Please try again later.</h4>
      <div class="text-center">
        <button type="button" class="btn btn-xs btn-primary refresh">Retry</button>
      </div>
    <?php endif;?>
  <?php endif;?>