Subversion Repositories SmartDukaan

Rev

Rev 15830 | Rev 16018 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 15830 Rev 16013
Line 1... Line 1...
1
	<ul class="nav nav-tabs catselect">
1
	<ul class="nav nav-tabs catselect">
2
		<!-- <li class="<?php if(!isset($id)):?>active<?php endif;?> col-xs-4"><a href="/deals/mine">All</a></li> -->
-
 
3
	<?php foreach($categories AS $catId => $name):?>
2
	<?php foreach($categories AS $catId => $name):?>
4
		<?php //if($catId==3)$name='All';?>
-
 
5
	  <li class="<?php if((isset($id)) && $catId == $id):?>active<?php endif;?> col-xs-6">
3
	  	<li class="<?php if((isset($id)) && $catId == $id):?>active<?php endif;?> col-xs-4">
6
	    <a href="/category/<?php echo $catId;?>"><?php echo $name;?></a></li>
4
	    <a href="/category/<?php echo $catId;?>"><?php echo $name;?></a></li>
7
	<?php endforeach;?>
5
	<?php endforeach;?>
-
 
6
		<li class="col-xs-4 bg-white">
-
 
7
			<div class="dropdown pull-right">
-
 
8
				<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>
-
 
9
			  <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-expanded="true">
-
 
10
			  	 Filters <?php if(isset($brandschosen) && !empty($brandschosen)):?>On<?php endif;?>	  
-
 
11
			  	 	<span class="caret"></span>
-
 
12
			  </button>
-
 
13
  			  <ul class="dropdown-menu dropdown-menu-right" role="menu" aria-labelledby="dropdownMenu1">
-
 
14
			  	<li role="presentation" class="dropdown-header menu-item">
-
 
15
			  		FILTER
-
 
16
			  		<?php if(isset($brandschosen) && !empty($brandschosen)):?>
-
 
17
			  			<button class="btn btn-xs clearfilters" id="clearfilters">Clear all Filters</button>
-
 
18
			  		<?php endif;?>	
-
 
19
			  	</li>
-
 
20
			    <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>
-
 
21
			    <!-- <li role="presentation" class="menu-item"><a role="menuitem" tabindex="-1" href="#">Price-range</a></li> -->
-
 
22
			    <!-- <li role="presentation" class="menu-item"><a role="menuitem" tabindex="-1" href="#">Sub-category</a></li> -->
-
 
23
			    <li role="presentation" class="dropdown-header menu-item">SORT</li>
-
 
24
			    <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>
-
 
25
			    <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>
-
 
26
			    <!-- <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> -->
-
 
27
			    <li role="presentation" class="menu-item"><a role="menuitem" tabindex="-1" href="?sort=-1">Recommended</a></li>
-
 
28
			  </ul>
-
 
29
			</div>
-
 
30
		</li>	
8
	</ul>
31
	</ul>
9
	<div class="filters row">		
32
	<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)):?>
33
		<?php if(isset($notification) && !empty($notification)):?>
14
			<?php if($notification['NotificationRule']['type']=='link'):?>
34
			<?php if($notification['NotificationRule']['type']=='link'):?>
15
			<div class="alert alert-info text-center col-xs-8">
35
			<div class="alert alert-info text-center col-xs-12">
16
				<a target="_blank" href="<?php echo $notification['NotificationRule']['url'].'?user_id='.$logged_user['id'];?>" class="webnotification"><?php echo $notification['NotificationRule']['message'];?></a>
36
				<a target="_blank" href="<?php echo $notification['NotificationRule']['url'].'?user_id='.$logged_user['id'];?>" class="webnotification"><?php echo $notification['NotificationRule']['message'];?></a>
17
			</div>
37
			</div>
18
			<?php elseif($notification['NotificationRule']['type']=='popup'):?>
38
			<?php elseif($notification['NotificationRule']['type']=='popup'):?>
19
			<?php 
39
			<?php 
20
				$url = $notification['NotificationRule']['url'];
40
				$url = $notification['NotificationRule']['url'];
Line 22... Line 42...
22
					$url .= '&user_id='.$logged_user['id'];
42
					$url .= '&user_id='.$logged_user['id'];
23
				}else{
43
				}else{
24
					$url .= '?user_id='.$logged_user['id'];
44
					$url .= '?user_id='.$logged_user['id'];
25
				}
45
				}
26
			?>
46
			?>
27
			<div class="herotext col-xs-8">
47
			<div class="herotext col-xs-12">
28
				Daily profitable deals for you
48
				<?php echo $this->element('headerlinks');?>
29
				<script type="text/javascript">
49
				<script type="text/javascript">
30
					$(function(){
50
					$(function(){
31
						$('.notificationMessage').html('<?php echo $notification['NotificationRule']['message'];?>');
51
						$('.notificationMessage').html('<?php echo $notification['NotificationRule']['message'];?>');
32
						$('.notificationUrl').prop('href','<?php echo $url;?>');
52
						$('.notificationUrl').prop('href','<?php echo $url;?>');
33
						if(showpopup(<?php echo $notification['NotificationRule']['id'];?>,<?php echo $notification['NotificationRule']['popup_display_count'];?>,<?php echo $notification['NotificationRule']['popup_display_interval'];?>)) {
53
						if(showpopup(<?php echo $notification['NotificationRule']['id'];?>,<?php echo $notification['NotificationRule']['popup_display_count'];?>,<?php echo $notification['NotificationRule']['popup_display_interval'];?>)) {
Line 42... Line 62...
42
					});
62
					});
43
				</script>
63
				</script>
44
			</div>
64
			</div>
45
			<?php endif;?>
65
			<?php endif;?>
46
		<?php else:?>
66
		<?php else:?>
47
		<div class="col-xs-8 herotext">
67
		<div class="col-xs-12 herotext">
48
        <?php if(isset($liveScore) && ((strcmp($liveScore['mstate'],'inprogress')==0) or (strcmp($liveScore['mstate'],'innings break')==0))):?>
68
        <?php if(isset($liveScore) && ((strcmp($liveScore['mstate'],'inprogress')==0) or (strcmp($liveScore['mstate'],'innings break')==0))):?>
49
            <a target="_blank" href="http://m.cricbuzz.com/live-cricket-scores/<?php echo $liveScore['id'];?>">
69
            <a target="_blank" href="http://m.cricbuzz.com/live-cricket-scores/<?php echo $liveScore['id'];?>">
50
                <p><?php echo $liveScore['matchDesc'].' : '.$liveScore['battingTeamName'].' '.$liveScore['battingTeamRuns'].'/'.$liveScore['battingTeamWickets'].'('.$liveScore['battingTeamOvers'].')';?></p>
70
                <p><?php echo $liveScore['matchDesc'].' : '.$liveScore['battingTeamName'].' '.$liveScore['battingTeamRuns'].'/'.$liveScore['battingTeamWickets'].'('.$liveScore['battingTeamOvers'].')';?></p>
51
                <p><?php echo $liveScore['status'];?></p>
71
                <p><?php echo $liveScore['status'];?></p>
52
            </a>
72
            </a>
53
        <?php else:?>
73
        <?php else:?>
54
            Daily profitable deals for you
74
        	<?php echo $this->element('headerlinks',array(),array());//'cache' => array('key' => 'userlinks-'.$logged_user['id'], 'config' => 'day')));?>
55
        <?php endif;?>
75
        <?php endif;?>
56
        </div>
76
        </div>
57
		<?php endif;?>		
77
		<?php endif;?>			
58
		<div class="col-xs-4 ">
-
 
59
			<div class="dropdown pull-right">
-
 
60
				<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>
-
 
61
			  <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-expanded="true">
-
 
62
			  	 Filters <?php if(isset($brandschosen) && !empty($brandschosen)):?>On<?php endif;?>	  
-
 
63
			  	 	<span class="caret"></span>
-
 
64
			  </button>
-
 
65
  			  <ul class="dropdown-menu dropdown-menu-right" role="menu" aria-labelledby="dropdownMenu1">
-
 
66
			  	<li role="presentation" class="dropdown-header menu-item">
-
 
67
			  		FILTER
-
 
68
			  		<?php if(isset($brandschosen) && !empty($brandschosen)):?>
-
 
69
			  			<button class="btn btn-xs clearfilters" id="clearfilters">Clear all Filters</button>
-
 
70
			  		<?php endif;?>	
-
 
71
			  	</li>
-
 
72
			    <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>
-
 
73
			    <!-- <li role="presentation" class="menu-item"><a role="menuitem" tabindex="-1" href="#">Price-range</a></li> -->
-
 
74
			    <!-- <li role="presentation" class="menu-item"><a role="menuitem" tabindex="-1" href="#">Sub-category</a></li> -->
-
 
75
			    <li role="presentation" class="dropdown-header menu-item">SORT</li>
-
 
76
			    <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>
-
 
77
			    <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>
-
 
78
			    <!-- <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> -->
-
 
79
			    <li role="presentation" class="menu-item"><a role="menuitem" tabindex="-1" href="?sort=-1">Recommended</a></li>
-
 
80
			  </ul>
-
 
81
			</div>
-
 
82
		</div>	
-
 
83
	</div>
78
	</div>