Subversion Repositories SmartDukaan

Rev

Rev 16242 | Rev 16262 | 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
	<?php foreach($categories AS $catId => $name):?>
16013 anikendra 3
	  	<li class="<?php if((isset($id)) && $catId == $id):?>active<?php endif;?> col-xs-4">
14150 anikendra 4
	    <a href="/category/<?php echo $catId;?>"><?php echo $name;?></a></li>
5
	<?php endforeach;?>
16013 anikendra 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>
16246 anikendra 9
			  <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">
16013 anikendra 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)):?>
16246 anikendra 17
			  			<button class="btn btn-xs clearfilters" id="clearfilters">Reset</button>
16013 anikendra 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>	
14150 anikendra 31
	</ul>
16013 anikendra 32
	<div class="filters row">				
14579 anikendra 33
		<?php if(isset($notification) && !empty($notification)):?>
14849 anikendra 34
			<?php if($notification['NotificationRule']['type']=='link'):?>
16013 anikendra 35
			<div class="alert alert-info text-center col-xs-12">
14849 anikendra 36
				<a target="_blank" href="<?php echo $notification['NotificationRule']['url'].'?user_id='.$logged_user['id'];?>" class="webnotification"><?php echo $notification['NotificationRule']['message'];?></a>
37
			</div>
38
			<?php elseif($notification['NotificationRule']['type']=='popup'):?>
39
			<?php 
40
				$url = $notification['NotificationRule']['url'];
41
				if(strpos($url, '?')!==false){
42
					$url .= '&user_id='.$logged_user['id'];
43
				}else{
44
					$url .= '?user_id='.$logged_user['id'];
45
				}
46
			?>
16242 anikendra 47
			<div class="herotext col-xs-8">
16082 anikendra 48
				Daily profitable deals for you
14849 anikendra 49
				<script type="text/javascript">
50
					$(function(){
14928 anikendra 51
						$('.notificationMessage').html('<?php echo $notification['NotificationRule']['message'];?>');
16133 anikendra 52
						$('.notificationUrl').prop('href','<?php echo $url;?>').data('id','<?php echo $notification['NotificationRule']['id'];?>');
14849 anikendra 53
						if(showpopup(<?php echo $notification['NotificationRule']['id'];?>,<?php echo $notification['NotificationRule']['popup_display_count'];?>,<?php echo $notification['NotificationRule']['popup_display_interval'];?>)) {
15128 anikendra 54
							$('#notificationModal'+'<?php echo ucfirst($notification['NotificationRule']['popup_type']);?>').modal({show: true,keyboard: false,backdrop: 'static'});	
15830 anikendra 55
							var postdata = {'user_id':me,'notification_rule_id':'<?php echo $notification['NotificationRule']['id'];?>'};
56
							$.post( "/notification_views/add", postdata, function( data ) {});		
16133 anikendra 57
							ga('send', 'event', 'popupnotification-<?php echo $notification['NotificationRule']['id'];?>', 'shown', me);	
15830 anikendra 58
							var properties = {};
59
							properties.id = String('<?php echo $notification['NotificationRule']['id'];?>');
60
							pma.send('popupnotification','shown','<?php echo $notification['NotificationRule']['type'];?>',me,properties);			
14849 anikendra 61
						}
62
					});
63
				</script>
64
			</div>
16242 anikendra 65
			<div class="col-xs-4 pt7">
16240 anikendra 66
	        	<?php if(isset($brandschosen) && !empty($brandschosen)):?>
16246 anikendra 67
		  			<a class="filteraction clearfilters" id="clearfilters">Reset</a>
16240 anikendra 68
		  		<?php endif;?>	
69
	        </div>
14849 anikendra 70
			<?php endif;?>
14579 anikendra 71
		<?php else:?>
16242 anikendra 72
		<div class="col-xs-8 herotext">
14928 anikendra 73
        <?php if(isset($liveScore) && ((strcmp($liveScore['mstate'],'inprogress')==0) or (strcmp($liveScore['mstate'],'innings break')==0))):?>
14654 anikendra 74
            <a target="_blank" href="http://m.cricbuzz.com/live-cricket-scores/<?php echo $liveScore['id'];?>">
75
                <p><?php echo $liveScore['matchDesc'].' : '.$liveScore['battingTeamName'].' '.$liveScore['battingTeamRuns'].'/'.$liveScore['battingTeamWickets'].'('.$liveScore['battingTeamOvers'].')';?></p>
76
                <p><?php echo $liveScore['status'];?></p>
77
            </a>
78
        <?php else:?>
16082 anikendra 79
        	<?php //echo $this->element('headerlinks',array(),array());?>
80
        	Daily profitable deals for you
14654 anikendra 81
        <?php endif;?>
82
        </div>
16242 anikendra 83
        <div class="col-xs-4 pt7">
16240 anikendra 84
        	<?php if(isset($brandschosen) && !empty($brandschosen)):?>
16246 anikendra 85
	  			<a class="filteraction clearfilters" id="clearfilters">Reset</a>
16240 anikendra 86
	  		<?php endif;?>	
87
        </div>
16013 anikendra 88
		<?php endif;?>			
14150 anikendra 89
	</div>