Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
16912 naman 1
 <ul class="nav nav-tabs catselect">
16929 anikendra 2
<?php foreach($categories AS $catId => $name):?>
3
  	<li class=" tab_layout <?php if((isset($id)) && $catId == $id):?>active<?php endif;?> col-xs-<?php echo (12/(count($categories)+1));?>">
4
    <a href="/category/<?php echo $catId;?>"><?php echo $name;?></a></li>
5
<?php endforeach;?>
6
	<li class="tab_layout col-xs-<?php echo (12/(count($categories)+1));?> <?php if($id!=2):?>bg-white<?php endif;?>">
7
		<?php if($id!=2):?>
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>
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">
11
		  	 <i class="glyphicon glyphicon-filter"></i> <?php if(isset($brandschosen) && !empty($brandschosen)):?>On<?php endif;?>	  
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)):?>
18
		  			<button class="btn btn-xs clearfilters btn-danger filteraction" style="position: absolute;right: -5px;top: 5px;" id="clearfilters">Reset</button>
16240 anikendra 19
		  		<?php endif;?>	
16929 anikendra 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>
31
		<?php endif;?>
32
	</li>	
33
</ul>
34
<div class="filters row">	
35
<!-- For apps tab -->		
36
<?php if($id==2):?>
37
	<div class="text-center">
38
		<div class="text_arrange cb">				
17123 naman 39
 
17129 anikendra 40
                  <div class="card row" >
17310 naman 41
                  	<a href = "<?php echo $base_url;?>appb"><span style="color:red;font-size:1.1em">Earn upto Rs. 10,000 per month</span> 
42
                  		<!-- <u style="font-size:.9em">SEE HOW</u> -->
43
                  		<button type="button" class="btn btn-primary btn-sm">SEE HOW</button>
44
                  	</a><br>
45
                  	<!--<span class="glyphicon glyphicon-download-alt" aria-hidden="true"></span>--><a href = "<?php echo $base_url;?>appb" style="font-size:1em; color:black"> Download these free apps for your customer.</a>
46
            <hr style="margin:4px;">
17123 naman 47
            <ul class="list-unstyled " style='margin:1px';>
16929 anikendra 48
                <li class="row row_style" >
17310 naman 49
                  	<div class="row showtips" style="font-size:.9em">
17123 naman 50
                  		<br>
51
                  		<div class='col-xs-11'>
52
                  	 		<font color= 'grey'>Normally cashbacks are not approved for 30-40% cases.</font><br> <font color='red'>Click here </font>to see tips on increasing your profit. 
53
                  	 	</div>
54
                  	 	<div class='col-xs-1'><span class="glyphicon glyphicon-chevron-down"></span></div>
55
                  	</div>
16929 anikendra 56
                  </div>
17129 anikendra 57
                  <div class="apptips hidden" style="background:#fff;">
16929 anikendra 58
                    <div class="row">
59
 
17123 naman 60
                    	<div class="col-xs-12" style='padding:1px'>
61
                    		<ol style="text-align:left;background:#f9fafb">
16929 anikendra 62
                    			<li>Only install new apps</li>
63
                    			<li>Keep network connected after installing apps</li>   			
64
                    			<li>Open the app 4-5 minutes after installing</li>
65
                    			<li>Preferably register and login on app</li>
66
                    		</ol>
67
                    	</div>
68
 
69
                    </div>
70
                  </div>              
71
                </li>
72
            </ul>
17310 naman 73
            <hr style="margin:4px;">
16929 anikendra 74
		</div>
75
	</div>		
76
<?php endif;?>	
77
<!-- End of apps tab code -->
78
<?php if(isset($notification) && !empty($notification)):?>
79
	<?php if($notification['NotificationRule']['type']=='link'):?>
80
	<div class="alert alert-info text-center col-xs-12">
81
		<a target="_blank" href="<?php echo $notification['NotificationRule']['url'].'?user_id='.$logged_user['id'];?>" class="webnotification"><?php echo $notification['NotificationRule']['message'];?></a>
14150 anikendra 82
	</div>
16929 anikendra 83
	<?php elseif($notification['NotificationRule']['type']=='popup'):?>
84
	<?php 
85
		$url = $notification['NotificationRule']['url'];
86
		if(strpos($url, '?')!==false){
87
			$url .= '&user_id='.$logged_user['id'];
88
		}else{
89
			$url .= '?user_id='.$logged_user['id'];
90
		}
91
	?>
17190 naman 92
	<div class="herotext col-xs-9" style='padding-top:0px'>
17130 anikendra 93
		<!-- Daily profitable deals for you -->
94
		<?php echo $this->element('headerlinks',array(),array());?>
16929 anikendra 95
		<script type="text/javascript">
96
			$(function(){
97
				$('.notificationMessage').html('<?php echo $notification['NotificationRule']['message'];?>');
98
				$('.notificationUrl').prop('href','<?php echo $url;?>').data('id','<?php echo $notification['NotificationRule']['id'];?>');
99
				if(showpopup(<?php echo $notification['NotificationRule']['id'];?>,<?php echo $notification['NotificationRule']['popup_display_count'];?>,<?php echo $notification['NotificationRule']['popup_display_interval'];?>)) {
100
					$('#notificationModal'+'<?php echo ucfirst($notification['NotificationRule']['popup_type']);?>').modal({show: true,keyboard: false,backdrop: 'static'});	
101
					var postdata = {'user_id':me,'notification_rule_id':'<?php echo $notification['NotificationRule']['id'];?>'};
102
					$.post( "/notification_views/add", postdata, function( data ) {});		
103
					ga('send', 'event', 'popupnotification-<?php echo $notification['NotificationRule']['id'];?>', 'shown', me);	
104
					var properties = {};
105
					properties.id = String('<?php echo $notification['NotificationRule']['id'];?>');
106
					pma.send('popupnotification','shown','<?php echo $notification['NotificationRule']['type'];?>',me,properties);			
107
				}
108
			});
109
		</script>
110
	</div>
17190 naman 111
	<div class="col-xs-3 pt7">
16929 anikendra 112
    	<?php if(isset($brandschosen) && !empty($brandschosen)):?>
113
  			<a class="filteraction clearfilters btn btn-xs btn-danger pull-right mr5" id="clearfilters">Reset <i class="glyphicon glyphicon-chevron-right"></i></a>
114
  		<?php endif;?>	
115
    </div>
116
	<?php endif;?>
117
<?php else:?>
118
	<?php if($id!=2):?>
17190 naman 119
	<div class="col-xs-9 herotext" style='padding-top:0px'>                	
17123 naman 120
	    	<?php echo $this->element('headerlinks',array(),array());?>
121
	    	<!-- Daily profitable deals for you	               	        -->
16929 anikendra 122
	</div>        
17190 naman 123
	<div class="col-xs-3 pt7">
16929 anikendra 124
		<?php if(isset($brandschosen) && !empty($brandschosen)):?>
125
				<a class="btn btn-xs btn-danger filteraction clearfilters pull-right mr5" id="clearfilters">Reset <i class="glyphicon glyphicon-chevron-right"></i></a>
126
			<?php endif;?>	
127
	</div>
128
	<?php endif;?> 
129
<?php endif;?>			
130
</div>