Subversion Repositories SmartDukaan

Rev

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

Rev 17533 Rev 17542
Line 1... Line 1...
1
 <ul class="nav nav-tabs catselect">
1
 <ul class="nav nav-tabs catselect">
2
<?php foreach($categories AS $catId => $name):?>
2
<?php foreach($categories AS $catId => $name):?>
-
 
3
	<?php if($catId!=6){?>
3
  	<li class=" tab_layout <?php if((isset($id)) && $catId == $id):?>active<?php endif;?> col-xs-<?php echo (12/(count($categories)+1));?>">
4
	  	<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
	    <a href="/category/<?php echo $catId;?>"><?php echo $name;?></a></li>
-
 
6
    <?php } ?>
5
<?php endforeach;?>
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>
-
 
21
		  		<?php endif;?>	
-
 
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>
6
		
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>	
7
</ul>
35
</ul>
8
 
-
 
9
<div class="filters row">	
36
<div class="filters row">	
10
<!-- For apps tab -->		
37
<!-- For apps tab -->		
11
<?php if($id==2):?>
38
<?php if($id==2):?>
12
	<div class="text-center">
39
	<div class="text-center">
13
		<div class="text_arrange cb">				
40
		<div class="text_arrange cb">				
Line 100... Line 127...
100
				<a class="btn btn-xs btn-danger filteraction clearfilters pull-right mr5" id="clearfilters">Reset <i class="glyphicon glyphicon-chevron-right"></i></a>
127
				<a class="btn btn-xs btn-danger filteraction clearfilters pull-right mr5" id="clearfilters">Reset <i class="glyphicon glyphicon-chevron-right"></i></a>
101
			<?php endif;?>	
128
			<?php endif;?>	
102
	</div>
129
	</div>
103
	<?php endif;?> 
130
	<?php endif;?> 
104
<?php endif;?>			
131
<?php endif;?>			
105
 
-
 
106
<?php if($id!=6 && $id!=2) {?>
-
 
107
<div class = 'col-xs-3 bg-white' style='float:left'>
-
 
108
 
-
 
109
								<ul class="nav">
-
 
110
									<li class="tab_layout <?php if($id!=2):?>bg-white<?php endif;?>">
-
 
111
										<?php if($id!=2):?>
-
 
112
										<div class="dropdown pull-right">
-
 
113
											<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>
-
 
114
											<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">
-
 
115
												<i class="glyphicon glyphicon-filter"></i> <?php if(isset($brandschosen) && !empty($brandschosen)):?>On<?php endif;?>	  
-
 
116
												<span class="caret"></span>
-
 
117
											</button>
-
 
118
											<ul class="dropdown-menu dropdown-menu-right" role="menu" aria-labelledby="dropdownMenu1">
-
 
119
												<li role="presentation" class="dropdown-header menu-item">
-
 
120
													FILTER
-
 
121
													<?php if(isset($brandschosen) && !empty($brandschosen)):?>
-
 
122
													<button class="btn btn-xs clearfilters btn-danger filteraction" style="position: absolute;right: -5px;top: 5px;" id="clearfilters">Reset</button>
-
 
123
												<?php endif;?>	
-
 
124
												</li>
-
 
125
												<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>
-
 
126
												<!-- <li role="presentation" class="menu-item"><a role="menuitem" tabindex="-1" href="#">Price-range</a></li> -->
-
 
127
												<!-- <li role="presentation" class="menu-item"><a role="menuitem" tabindex="-1" href="#">Sub-category</a></li> -->
-
 
128
												<li role="presentation" class="dropdown-header menu-item">SORT</li>
-
 
129
												<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>
-
 
130
												<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>
-
 
131
												<!-- <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> -->
-
 
132
												<li role="presentation" class="menu-item"><a role="menuitem" tabindex="-1" href="?sort=-1">Recommended</a></li>
-
 
133
											</ul>
-
 
134
										</div>
-
 
135
										<?php endif;?>
-
 
136
									</li>	
-
 
137
								</ul>	
-
 
138
							</div>	
-
 
139
<?php } ?>
-
 
140
</div>
132
</div>