| 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 |
<li class=" tab_layout <?php if((isset($id)) && $catId == $id):?>active<?php endif;?> col-xs-<?php echo (12/(count($categories)));?>">
|
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>
|
4 |
<a href="/category/<?php echo $catId;?>"><?php echo $name;?></a></li>
|
| 5 |
<?php endforeach;?>
|
5 |
<?php endforeach;?>
|
| 6 |
<li class="tab_layout col-xs-<?php echo (12/(count($categories)));?> <?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>
|
- |
|
| 19 |
<?php endif;?>
|
- |
|
| 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>
|
6 |
|
| 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>
|
7 |
</ul>
|
| - |
|
8 |
|
| 34 |
<div class="filters row">
|
9 |
<div class="filters row">
|
| 35 |
<!-- For apps tab -->
|
10 |
<!-- For apps tab -->
|
| 36 |
<?php if($id==2):?>
|
11 |
<?php if($id==2):?>
|
| 37 |
<div class="text-center">
|
12 |
<div class="text-center">
|
| 38 |
<div class="text_arrange cb">
|
13 |
<div class="text_arrange cb">
|
| Line 125... |
Line 100... |
| 125 |
<a class="btn btn-xs btn-danger filteraction clearfilters pull-right mr5" id="clearfilters">Reset <i class="glyphicon glyphicon-chevron-right"></i></a>
|
100 |
<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;?>
|
101 |
<?php endif;?>
|
| 127 |
</div>
|
102 |
</div>
|
| 128 |
<?php endif;?>
|
103 |
<?php endif;?>
|
| 129 |
<?php endif;?>
|
104 |
<?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 } ?>
|
| 130 |
</div>
|
140 |
</div>
|