Rev 16263 | Rev 16731 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
<ul class="nav nav-tabs catselect"><?php foreach($categories AS $catId => $name):?><li class="<?php if((isset($id)) && $catId == $id):?>active<?php endif;?> col-xs-<?php echo (12/(count($categories)+1));?>"><a href="/category/<?php echo $catId;?>"><?php echo $name;?></a></li><?php endforeach;?><li class="col-xs-<?php echo (12/(count($categories)+1));?> bg-white"><?php if($id!=2):?><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="<?php if(isset($brandschosen) && !empty($brandschosen)):?>red-text<?php endif;?> 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 btn-danger filteraction" style="position: absolute;right: -5px;top: 5px;" id="clearfilters">Reset</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><?php endif;?></li></ul><div class="filters row"><?php if(isset($notification) && !empty($notification)):?><?php if($notification['NotificationRule']['type']=='link'):?><div class="alert alert-info text-center col-xs-12"><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;?>').data('id','<?php echo $notification['NotificationRule']['id'];?>');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'});var postdata = {'user_id':me,'notification_rule_id':'<?php echo $notification['NotificationRule']['id'];?>'};$.post( "/notification_views/add", postdata, function( data ) {});ga('send', 'event', 'popupnotification-<?php echo $notification['NotificationRule']['id'];?>', 'shown', me);var properties = {};properties.id = String('<?php echo $notification['NotificationRule']['id'];?>');pma.send('popupnotification','shown','<?php echo $notification['NotificationRule']['type'];?>',me,properties);}});</script></div><div class="col-xs-4 pt7"><?php if(isset($brandschosen) && !empty($brandschosen)):?><a class="filteraction clearfilters btn btn-xs btn-danger pull-right mr5" id="clearfilters">Reset <i class="glyphicon glyphicon-chevron-right"></i></a><?php endif;?></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:?><?php if($id!=2):?><?php echo $this->element('headerlinks',array(),array());?><?php endif;?><!-- Daily profitable deals for you --><?php endif;?></div><div class="col-xs-4 pt7"><?php if(isset($brandschosen) && !empty($brandschosen)):?><a class="btn btn-xs btn-danger filteraction clearfilters pull-right mr5" id="clearfilters">Reset <i class="glyphicon glyphicon-chevron-right"></i></a><?php endif;?></div><?php endif;?></div>