| 14150 |
anikendra |
1 |
<ul class="nav nav-tabs catselect">
|
|
|
2 |
<?php foreach($categories AS $catId => $name):?>
|
| 16731 |
naman |
3 |
<li class=" tab_layout <?php if((isset($id)) && $catId == $id):?>active<?php endif;?> col-xs-<?php echo (12/(count($categories)+1));?>">
|
| 14150 |
anikendra |
4 |
<a href="/category/<?php echo $catId;?>"><?php echo $name;?></a></li>
|
|
|
5 |
<?php endforeach;?>
|
| 16761 |
anikendra |
6 |
<li class="tab_layout col-xs-<?php echo (12/(count($categories)+1));?> <?php if($id!=2):?>bg-white<?php endif;?>">
|
| 16549 |
anikendra |
7 |
<?php if($id!=2):?>
|
| 16013 |
anikendra |
8 |
<div class="dropdown pull-right">
|
|
|
9 |
<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>
|
| 16246 |
anikendra |
10 |
<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">
|
| 16859 |
anikendra |
11 |
<i class="glyphicon glyphicon-filter"></i> <?php if(isset($brandschosen) && !empty($brandschosen)):?>On<?php endif;?>
|
| 16013 |
anikendra |
12 |
<span class="caret"></span>
|
|
|
13 |
</button>
|
|
|
14 |
<ul class="dropdown-menu dropdown-menu-right" role="menu" aria-labelledby="dropdownMenu1">
|
|
|
15 |
<li role="presentation" class="dropdown-header menu-item">
|
|
|
16 |
FILTER
|
|
|
17 |
<?php if(isset($brandschosen) && !empty($brandschosen)):?>
|
| 16262 |
anikendra |
18 |
<button class="btn btn-xs clearfilters btn-danger filteraction" style="position: absolute;right: -5px;top: 5px;" id="clearfilters">Reset</button>
|
| 16013 |
anikendra |
19 |
<?php endif;?>
|
|
|
20 |
</li>
|
|
|
21 |
<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>
|
|
|
22 |
<!-- <li role="presentation" class="menu-item"><a role="menuitem" tabindex="-1" href="#">Price-range</a></li> -->
|
|
|
23 |
<!-- <li role="presentation" class="menu-item"><a role="menuitem" tabindex="-1" href="#">Sub-category</a></li> -->
|
|
|
24 |
<li role="presentation" class="dropdown-header menu-item">SORT</li>
|
|
|
25 |
<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>
|
|
|
26 |
<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>
|
|
|
27 |
<!-- <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> -->
|
|
|
28 |
<li role="presentation" class="menu-item"><a role="menuitem" tabindex="-1" href="?sort=-1">Recommended</a></li>
|
|
|
29 |
</ul>
|
|
|
30 |
</div>
|
| 16549 |
anikendra |
31 |
<?php endif;?>
|
| 16013 |
anikendra |
32 |
</li>
|
| 14150 |
anikendra |
33 |
</ul>
|
| 16731 |
naman |
34 |
<div class="filters row">
|
| 16859 |
anikendra |
35 |
<div style="color:black;padding:0px;text-align:center;">
|
| 16761 |
anikendra |
36 |
<?php if($id==2):?>
|
| 16859 |
anikendra |
37 |
<a href = "<?php echo $base_url;?>appb"><span style="color:red;font-size:1.1em">Earn upto Rs. 10,000 pm</span> <u style="font-size:1.1em">See how</u></a><br>
|
| 16731 |
naman |
38 |
<div class="text_arrange">Download free apps for your customer.</div>
|
| 16761 |
anikendra |
39 |
<?php else:?>
|
|
|
40 |
<div class="herotext">
|
|
|
41 |
Daily profitable deals for you
|
| 16731 |
naman |
42 |
</div>
|
| 16761 |
anikendra |
43 |
<?php endif;?>
|
|
|
44 |
</div>
|
| 14579 |
anikendra |
45 |
<?php if(isset($notification) && !empty($notification)):?>
|
| 14849 |
anikendra |
46 |
<?php if($notification['NotificationRule']['type']=='link'):?>
|
| 16013 |
anikendra |
47 |
<div class="alert alert-info text-center col-xs-12">
|
| 14849 |
anikendra |
48 |
<a target="_blank" href="<?php echo $notification['NotificationRule']['url'].'?user_id='.$logged_user['id'];?>" class="webnotification"><?php echo $notification['NotificationRule']['message'];?></a>
|
|
|
49 |
</div>
|
|
|
50 |
<?php elseif($notification['NotificationRule']['type']=='popup'):?>
|
|
|
51 |
<?php
|
|
|
52 |
$url = $notification['NotificationRule']['url'];
|
|
|
53 |
if(strpos($url, '?')!==false){
|
|
|
54 |
$url .= '&user_id='.$logged_user['id'];
|
|
|
55 |
}else{
|
|
|
56 |
$url .= '?user_id='.$logged_user['id'];
|
|
|
57 |
}
|
|
|
58 |
?>
|
| 16242 |
anikendra |
59 |
<div class="herotext col-xs-8">
|
| 16082 |
anikendra |
60 |
Daily profitable deals for you
|
| 14849 |
anikendra |
61 |
<script type="text/javascript">
|
|
|
62 |
$(function(){
|
| 14928 |
anikendra |
63 |
$('.notificationMessage').html('<?php echo $notification['NotificationRule']['message'];?>');
|
| 16133 |
anikendra |
64 |
$('.notificationUrl').prop('href','<?php echo $url;?>').data('id','<?php echo $notification['NotificationRule']['id'];?>');
|
| 14849 |
anikendra |
65 |
if(showpopup(<?php echo $notification['NotificationRule']['id'];?>,<?php echo $notification['NotificationRule']['popup_display_count'];?>,<?php echo $notification['NotificationRule']['popup_display_interval'];?>)) {
|
| 15128 |
anikendra |
66 |
$('#notificationModal'+'<?php echo ucfirst($notification['NotificationRule']['popup_type']);?>').modal({show: true,keyboard: false,backdrop: 'static'});
|
| 15830 |
anikendra |
67 |
var postdata = {'user_id':me,'notification_rule_id':'<?php echo $notification['NotificationRule']['id'];?>'};
|
|
|
68 |
$.post( "/notification_views/add", postdata, function( data ) {});
|
| 16133 |
anikendra |
69 |
ga('send', 'event', 'popupnotification-<?php echo $notification['NotificationRule']['id'];?>', 'shown', me);
|
| 15830 |
anikendra |
70 |
var properties = {};
|
|
|
71 |
properties.id = String('<?php echo $notification['NotificationRule']['id'];?>');
|
|
|
72 |
pma.send('popupnotification','shown','<?php echo $notification['NotificationRule']['type'];?>',me,properties);
|
| 14849 |
anikendra |
73 |
}
|
|
|
74 |
});
|
|
|
75 |
</script>
|
|
|
76 |
</div>
|
| 16242 |
anikendra |
77 |
<div class="col-xs-4 pt7">
|
| 16240 |
anikendra |
78 |
<?php if(isset($brandschosen) && !empty($brandschosen)):?>
|
| 16263 |
anikendra |
79 |
<a class="filteraction clearfilters btn btn-xs btn-danger pull-right mr5" id="clearfilters">Reset <i class="glyphicon glyphicon-chevron-right"></i></a>
|
| 16240 |
anikendra |
80 |
<?php endif;?>
|
|
|
81 |
</div>
|
| 14849 |
anikendra |
82 |
<?php endif;?>
|
| 14579 |
anikendra |
83 |
<?php else:?>
|
| 16242 |
anikendra |
84 |
<div class="col-xs-8 herotext">
|
| 14928 |
anikendra |
85 |
<?php if(isset($liveScore) && ((strcmp($liveScore['mstate'],'inprogress')==0) or (strcmp($liveScore['mstate'],'innings break')==0))):?>
|
| 14654 |
anikendra |
86 |
<a target="_blank" href="http://m.cricbuzz.com/live-cricket-scores/<?php echo $liveScore['id'];?>">
|
|
|
87 |
<p><?php echo $liveScore['matchDesc'].' : '.$liveScore['battingTeamName'].' '.$liveScore['battingTeamRuns'].'/'.$liveScore['battingTeamWickets'].'('.$liveScore['battingTeamOvers'].')';?></p>
|
|
|
88 |
<p><?php echo $liveScore['status'];?></p>
|
|
|
89 |
</a>
|
|
|
90 |
<?php else:?>
|
| 16549 |
anikendra |
91 |
<?php if($id!=2):?>
|
| 16673 |
naman |
92 |
<?php //echo $this->element('headerlinks',array(),array());?>
|
| 16549 |
anikendra |
93 |
<?php endif;?>
|
|
|
94 |
<!-- Daily profitable deals for you -->
|
| 14654 |
anikendra |
95 |
<?php endif;?>
|
|
|
96 |
</div>
|
| 16242 |
anikendra |
97 |
<div class="col-xs-4 pt7">
|
| 16240 |
anikendra |
98 |
<?php if(isset($brandschosen) && !empty($brandschosen)):?>
|
| 16263 |
anikendra |
99 |
<a class="btn btn-xs btn-danger filteraction clearfilters pull-right mr5" id="clearfilters">Reset <i class="glyphicon glyphicon-chevron-right"></i></a>
|
| 16240 |
anikendra |
100 |
<?php endif;?>
|
|
|
101 |
</div>
|
| 16013 |
anikendra |
102 |
<?php endif;?>
|
| 14150 |
anikendra |
103 |
</div>
|