| 14150 |
anikendra |
1 |
<ul class="nav nav-tabs catselect">
|
| 14928 |
anikendra |
2 |
<!-- <li class="<?php if(!isset($id)):?>active<?php endif;?> col-xs-4"><a href="/deals/mine">All</a></li> -->
|
| 14150 |
anikendra |
3 |
<?php foreach($categories AS $catId => $name):?>
|
| 14980 |
anikendra |
4 |
<?php //if($catId==3)$name='All';?>
|
| 14928 |
anikendra |
5 |
<li class="<?php if((isset($id)) && $catId == $id):?>active<?php endif;?> col-xs-6">
|
| 14150 |
anikendra |
6 |
<a href="/category/<?php echo $catId;?>"><?php echo $name;?></a></li>
|
|
|
7 |
<?php endforeach;?>
|
|
|
8 |
</ul>
|
| 14579 |
anikendra |
9 |
<div class="filters row">
|
|
|
10 |
<?php //$skipmobileverification = SessionHelper::read('skipmobileverification');if(!$logged_user['mobile_verified'] && !isset($skipmobileverification)):?>
|
|
|
11 |
<!-- <div class="verificationalert">Your phone number is not verified. <a href="<?php echo $base_url;?>/users/verifymobile">Verify now</a></div> -->
|
|
|
12 |
<?php //endif;?>
|
|
|
13 |
<?php if(isset($notification) && !empty($notification)):?>
|
| 14849 |
anikendra |
14 |
<?php if($notification['NotificationRule']['type']=='link'):?>
|
|
|
15 |
<div class="alert alert-info text-center col-xs-8">
|
|
|
16 |
<a target="_blank" href="<?php echo $notification['NotificationRule']['url'].'?user_id='.$logged_user['id'];?>" class="webnotification"><?php echo $notification['NotificationRule']['message'];?></a>
|
|
|
17 |
</div>
|
|
|
18 |
<?php elseif($notification['NotificationRule']['type']=='popup'):?>
|
|
|
19 |
<?php
|
|
|
20 |
$url = $notification['NotificationRule']['url'];
|
|
|
21 |
if(strpos($url, '?')!==false){
|
|
|
22 |
$url .= '&user_id='.$logged_user['id'];
|
|
|
23 |
}else{
|
|
|
24 |
$url .= '?user_id='.$logged_user['id'];
|
|
|
25 |
}
|
|
|
26 |
?>
|
| 15085 |
anikendra |
27 |
<div class="herotext col-xs-8">
|
|
|
28 |
Daily profitable deals for you
|
| 14849 |
anikendra |
29 |
<script type="text/javascript">
|
|
|
30 |
$(function(){
|
| 14928 |
anikendra |
31 |
$('.notificationMessage').html('<?php echo $notification['NotificationRule']['message'];?>');
|
|
|
32 |
$('.notificationUrl').prop('href','<?php echo $url;?>');
|
| 14849 |
anikendra |
33 |
if(showpopup(<?php echo $notification['NotificationRule']['id'];?>,<?php echo $notification['NotificationRule']['popup_display_count'];?>,<?php echo $notification['NotificationRule']['popup_display_interval'];?>)) {
|
| 15128 |
anikendra |
34 |
$('#notificationModal'+'<?php echo ucfirst($notification['NotificationRule']['popup_type']);?>').modal({show: true,keyboard: false,backdrop: 'static'});
|
|
|
35 |
ga('send', 'event', 'popupnotification', 'shown', me);
|
| 14849 |
anikendra |
36 |
}
|
|
|
37 |
});
|
|
|
38 |
</script>
|
|
|
39 |
</div>
|
|
|
40 |
<?php endif;?>
|
| 14579 |
anikendra |
41 |
<?php else:?>
|
|
|
42 |
<div class="col-xs-8 herotext">
|
| 14928 |
anikendra |
43 |
<?php if(isset($liveScore) && ((strcmp($liveScore['mstate'],'inprogress')==0) or (strcmp($liveScore['mstate'],'innings break')==0))):?>
|
| 14654 |
anikendra |
44 |
<a target="_blank" href="http://m.cricbuzz.com/live-cricket-scores/<?php echo $liveScore['id'];?>">
|
|
|
45 |
<p><?php echo $liveScore['matchDesc'].' : '.$liveScore['battingTeamName'].' '.$liveScore['battingTeamRuns'].'/'.$liveScore['battingTeamWickets'].'('.$liveScore['battingTeamOvers'].')';?></p>
|
|
|
46 |
<p><?php echo $liveScore['status'];?></p>
|
|
|
47 |
</a>
|
|
|
48 |
<?php else:?>
|
|
|
49 |
Daily profitable deals for you
|
|
|
50 |
<?php endif;?>
|
|
|
51 |
</div>
|
| 14579 |
anikendra |
52 |
<?php endif;?>
|
| 14150 |
anikendra |
53 |
<div class="col-xs-4 ">
|
|
|
54 |
<div class="dropdown pull-right">
|
| 15077 |
anikendra |
55 |
<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>
|
| 14150 |
anikendra |
56 |
<button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-expanded="true">
|
| 15044 |
anikendra |
57 |
Filters <?php if(isset($brandschosen) && !empty($brandschosen)):?>On<?php endif;?>
|
| 15042 |
anikendra |
58 |
<span class="caret"></span>
|
| 14225 |
anikendra |
59 |
</button>
|
|
|
60 |
<ul class="dropdown-menu dropdown-menu-right" role="menu" aria-labelledby="dropdownMenu1">
|
| 15042 |
anikendra |
61 |
<li role="presentation" class="dropdown-header menu-item">
|
|
|
62 |
FILTER
|
|
|
63 |
<?php if(isset($brandschosen) && !empty($brandschosen)):?>
|
|
|
64 |
<button class="btn btn-xs clearfilters" id="clearfilters">Clear all Filters</button>
|
|
|
65 |
<?php endif;?>
|
|
|
66 |
</li>
|
| 15015 |
anikendra |
67 |
<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>
|
|
|
68 |
<!-- <li role="presentation" class="menu-item"><a role="menuitem" tabindex="-1" href="#">Price-range</a></li> -->
|
|
|
69 |
<!-- <li role="presentation" class="menu-item"><a role="menuitem" tabindex="-1" href="#">Sub-category</a></li> -->
|
| 14150 |
anikendra |
70 |
<li role="presentation" class="dropdown-header menu-item">SORT</li>
|
|
|
71 |
<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>
|
| 15055 |
anikendra |
72 |
<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>
|
| 15015 |
anikendra |
73 |
<!-- <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> -->
|
| 14150 |
anikendra |
74 |
<li role="presentation" class="menu-item"><a role="menuitem" tabindex="-1" href="?sort=-1">Recommended</a></li>
|
|
|
75 |
</ul>
|
|
|
76 |
</div>
|
|
|
77 |
</div>
|
|
|
78 |
</div>
|