Subversion Repositories SmartDukaan

Rev

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

        <ul class="nav nav-tabs catselect">
                <!-- <li class="<?php if(!isset($id)):?>active<?php endif;?> col-xs-4"><a href="/deals/mine">All</a></li> -->
        <?php foreach($categories AS $catId => $name):?>
                <?php //if($catId==3)$name='All';?>
          <li class="<?php if((isset($id)) && $catId == $id):?>active<?php endif;?> col-xs-6">
            <a href="/category/<?php echo $catId;?>"><?php echo $name;?></a></li>
        <?php endforeach;?>
        </ul>
        <div class="filters row">               
                <?php //$skipmobileverification = SessionHelper::read('skipmobileverification');if(!$logged_user['mobile_verified'] && !isset($skipmobileverification)):?>
                        <!-- <div class="verificationalert">Your phone number is not verified. <a href="<?php echo $base_url;?>/users/verifymobile">Verify now</a></div>  -->
                <?php //endif;?>
                <?php if(isset($notification) && !empty($notification)):?>
                        <?php if($notification['NotificationRule']['type']=='link'):?>
                        <div class="alert alert-info text-center col-xs-8">
                                <a target="_blank" href="<?php echo $notification['NotificationRule']['url'].'?user_id='.$logged_user['id'];?>" class="webnotification"><?php echo $notification['NotificationRule']['message'];?></a>
                        </div>
                        <?php elseif($notification['NotificationRule']['type']=='popup'):?>
                        <?php 
                                $url = $notification['NotificationRule']['url'];
                                if(strpos($url, '?')!==false){
                                        $url .= '&user_id='.$logged_user['id'];
                                }else{
                                        $url .= '?user_id='.$logged_user['id'];
                                }
                        ?>
                        <div class="herotext col-xs-8">
                                Daily profitable deals for you
                                <script type="text/javascript">
                                        $(function(){
                                                $('.notificationMessage').html('<?php echo $notification['NotificationRule']['message'];?>');
                                                $('.notificationUrl').prop('href','<?php echo $url;?>');
                                                if(showpopup(<?php echo $notification['NotificationRule']['id'];?>,<?php echo $notification['NotificationRule']['popup_display_count'];?>,<?php echo $notification['NotificationRule']['popup_display_interval'];?>)) {
                                                        $('#notificationModal'+'<?php echo ucfirst($notification['NotificationRule']['popup_type']);?>').modal({show: true,keyboard: false,backdrop: 'static'});        
                                                        ga('send', 'event', 'popupnotification', 'shown', me);                          
                                                }
                                        });
                                </script>
                        </div>
                        <?php endif;?>
                <?php else:?>
                <div class="col-xs-8 herotext">
        <?php if(isset($liveScore) && ((strcmp($liveScore['mstate'],'inprogress')==0) or (strcmp($liveScore['mstate'],'innings break')==0))):?>
            <a target="_blank" href="http://m.cricbuzz.com/live-cricket-scores/<?php echo $liveScore['id'];?>">
                <p><?php echo $liveScore['matchDesc'].' : '.$liveScore['battingTeamName'].' '.$liveScore['battingTeamRuns'].'/'.$liveScore['battingTeamWickets'].'('.$liveScore['battingTeamOvers'].')';?></p>
                <p><?php echo $liveScore['status'];?></p>
            </a>
        <?php else:?>
            Daily profitable deals for you
        <?php endif;?>
        </div>
                <?php endif;?>          
                <div class="col-xs-4 ">
                        <div class="dropdown pull-right">
                                <a tabindex="0" id="popovertrigger" role="button" class="btn" data-container="body" data-toggle="popover" data-placement="left" data-trigger="click" data-content="<span class='greentext'>Filter by brands</span> to see deals you want"></a>
                          <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-expanded="true">
                                 Filters <?php if(isset($brandschosen) && !empty($brandschosen)):?>On<?php endif;?>       
                                        <span class="caret"></span>
                          </button>
                          <ul class="dropdown-menu dropdown-menu-right" role="menu" aria-labelledby="dropdownMenu1">
                                <li role="presentation" class="dropdown-header menu-item">
                                        FILTER
                                        <?php if(isset($brandschosen) && !empty($brandschosen)):?>
                                                <button class="btn btn-xs clearfilters" id="clearfilters">Clear all Filters</button>
                                        <?php endif;?>  
                                </li>
                            <li role="presentation" class="menu-item"><a role="menuitem" tabindex="-1" href="<?php echo $base_url;?>filter/brand<?php if(isset($id)):?>/<?php echo $id;?><?php endif;?>">By Brands <span class="greyarrow"></span></a></li>
                            <!-- <li role="presentation" class="menu-item"><a role="menuitem" tabindex="-1" href="#">Price-range</a></li> -->
                            <!-- <li role="presentation" class="menu-item"><a role="menuitem" tabindex="-1" href="#">Sub-category</a></li> -->
                            <li role="presentation" class="dropdown-header menu-item">SORT</li>
                            <li role="presentation" class="menu-item <?php if(isset($sort) && $sort == 'bestSellerPoints'):?>selected<?php endif;?>"><a role="menuitem" tabindex="-1" href="?sort=bestSellerPoints&direction=-1">Bestsellers</a></li>
                            <li role="presentation" class="menu-item <?php //if(isset($sort) && $sort == 'available_price'):?><?php //endif;?>"><span class="sortlabel">Price</span> <a role="menuitem" tabindex="-1" href="?sort=available_price&direction=1" class="btn-asc btn btn-xs">Low</a> <a role="menuitem" tabindex="-1" href="?sort=available_price&direction=-1" class="btn-desc btn-xs">High</a></li>
                            <!-- <li role="presentation" class="menu-item <?php if(isset($sort) && $sort == 'available_price' && $direction=='-1'):?>selected<?php endif;?>"><a role="menuitem" tabindex="-1" href="?sort=available_price&direction=-1">Price High to Low</a></li> -->
                            <li role="presentation" class="menu-item"><a role="menuitem" tabindex="-1" href="?sort=-1">Recommended</a></li>
                          </ul>
                        </div>
                </div>  
        </div>