Subversion Repositories SmartDukaan

Rev

Rev 14654 | Rev 14928 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

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