Subversion Repositories SmartDukaan

Rev

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

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