| Line -... |
Line 1... |
| - |
|
1 |
|
| 1 |
<ul class="nav nav-tabs catselect">
|
2 |
<ul class="nav nav-tabs catselect">
|
| 2 |
<?php foreach($categories AS $catId => $name):?>
|
3 |
<?php foreach($categories AS $catId => $name):?>
|
| 3 |
|
4 |
|
| 4 |
<li class=" tab_layout <?php if((isset($id)) && $catId == $id):?>active<?php endif;?> col-xs-<?php echo (12/(count($categories)+1));?>">
|
5 |
<li class=" tab_layout <?php if((isset($id)) && $catId == $id):?>active<?php endif;?> col-xs-<?php echo (12/(count($categories)+1));?>">
|
| 5 |
<a id="popovertrigger4" href="/category/<?php echo $catId;?>"<?php if($id!=6 && $catId==6):?>data-container="body" data-toggle="popover" data-placement="bottom" data-content="Launching Accessories at wholesale rates" <?php endif;?>><?php echo $name;?></a>
|
6 |
<a id="popovertrigger4" href="/category/<?php echo $catId;?>"<?php if($id!=6 && $catId==6):?>data-container="body" data-toggle="popover" data-placement="bottom" data-content="Launching Accessories at wholesale rates" <?php endif;?>><?php echo $name;?></a>
|
| Line 9... |
Line 10... |
| 9 |
<script type="text/javascript">
|
10 |
<script type="text/javascript">
|
| 10 |
|
11 |
|
| 11 |
</script>
|
12 |
</script>
|
| 12 |
<?php endif;?>
|
13 |
<?php endif;?>
|
| 13 |
</ul>
|
14 |
</ul>
|
| 14 |
<div class="filters row" <?php if($id==6 && isset($subcategorieschosen) && array_key_exists($_COOKIE['subcategorieschosen'], $searchableSubCategories)):?> style="display:none"<?php endif;?>>
|
15 |
<div class="filters row" <?php if($id==6 && isset($subcategories) && array_key_exists($subcategories, $searchableSubCategories)):?> style="display:none"<?php endif;?>>
|
| 15 |
<!-- For apps tab -->
|
16 |
<!-- For apps tab -->
|
| 16 |
<?php if($id==2):?>
|
17 |
<?php if($id==2):?>
|
| 17 |
<div class="text-center">
|
18 |
<div class="text-center">
|
| 18 |
<div class="text_arrange cb">
|
19 |
<div class="text_arrange cb">
|
| 19 |
|
20 |
|
| Line 87... |
Line 88... |
| 87 |
}
|
88 |
}
|
| 88 |
});
|
89 |
});
|
| 89 |
</script>
|
90 |
</script>
|
| 90 |
</div>
|
91 |
</div>
|
| 91 |
<div class="col-xs-3 pt7">
|
92 |
<div class="col-xs-3 pt7">
|
| 92 |
<?php if((isset($brandschosen) && !empty($brandschosen)) || (isset($subcategorieschosen) && !empty($subcategorieschosen))):?>
|
93 |
<?php if((isset($brands) && !empty($brands)) || (isset($subcategories) && !empty($subcategories))):?>
|
| 93 |
<a class="filteraction clearfilters btn btn-xs btn-danger pull-right mr5" id="clearfilters">Reset <i class="glyphicon glyphicon-chevron-right"></i></a>
|
94 |
<a class="filteraction clearfilters btn btn-xs btn-danger pull-right mr5" id="clearfilters">Reset <i class="glyphicon glyphicon-chevron-right"></i></a>
|
| 94 |
<?php endif;?>
|
95 |
<?php endif;?>
|
| 95 |
</div>
|
96 |
</div>
|
| 96 |
<?php endif;?>
|
97 |
<?php endif;?>
|
| 97 |
<?php else:?>
|
98 |
<?php else:?>
|
| Line 99... |
Line 100... |
| 99 |
<div class="col-xs-9 herotext" style='padding-top:0px'>
|
100 |
<div class="col-xs-9 herotext" style='padding-top:0px'>
|
| 100 |
<?php echo $this->element('headerlinks',array(),array());?>
|
101 |
<?php echo $this->element('headerlinks',array(),array());?>
|
| 101 |
<!-- Daily profitable deals for you -->
|
102 |
<!-- Daily profitable deals for you -->
|
| 102 |
</div>
|
103 |
</div>
|
| 103 |
<div class="col-xs-3 pt7">
|
104 |
<div class="col-xs-3 pt7">
|
| 104 |
<?php if((isset($brandschosen) && !empty($brandschosen)) || (isset($subcategorieschosen) && !empty($subcategorieschosen))):?>
|
105 |
<?php if((isset($brands) && !empty($brands)) || (isset($subcategories) && !empty($subcategories))):?>
|
| 105 |
<a class="btn btn-xs btn-danger filteraction clearfilters pull-right mr5" id="clearfilters">Reset <i class="glyphicon glyphicon-chevron-right"></i></a>
|
106 |
<a class="btn btn-xs btn-danger filteraction clearfilters pull-right mr5" id="clearfilters">Reset <i class="glyphicon glyphicon-chevron-right"></i></a>
|
| 106 |
<?php endif;?>
|
107 |
<?php endif;?>
|
| 107 |
</div>
|
108 |
</div>
|
| 108 |
<?php endif;?>
|
109 |
<?php endif;?>
|
| 109 |
<?php endif;?>
|
110 |
<?php endif;?>
|
| Line 114... |
Line 115... |
| 114 |
<ul class="nav">
|
115 |
<ul class="nav">
|
| 115 |
<li class="tab_layout <?php if($id!=2):?>bg-white<?php endif;?>">
|
116 |
<li class="tab_layout <?php if($id!=2):?>bg-white<?php endif;?>">
|
| 116 |
<?php if($id!=2):?>
|
117 |
<?php if($id!=2):?>
|
| 117 |
<div class="dropdown pull-right">
|
118 |
<div class="dropdown pull-right">
|
| 118 |
<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>
|
119 |
<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>
|
| 119 |
<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">
|
120 |
<button class="<?php if((isset($brands) && !empty($brands)) || (isset($subcategories) && !empty($subcategories))):?>red-text<?php endif;?> btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-expanded="true">
|
| 120 |
<i class="glyphicon glyphicon-filter"></i> <?php if((isset($brandschosen) && !empty($brandschosen))||(isset($subcategorieschosen) && !empty($subcategorieschosen))):?>On<?php endif;?>
|
121 |
<i class="glyphicon glyphicon-filter"></i> <?php if ((isset($brands) && !empty($brands)) || (isset($subcategories) && !empty($subcategories))):?>On<?php endif;?>
|
| 121 |
<span class="caret"></span>
|
122 |
<span class="caret"></span>
|
| 122 |
</button>
|
123 |
</button>
|
| 123 |
<ul class="dropdown-menu dropdown-menu-right" role="menu" aria-labelledby="dropdownMenu1">
|
124 |
<ul class="dropdown-menu dropdown-menu-right" role="menu" aria-labelledby="dropdownMenu1">
|
| 124 |
<li role="presentation" class="dropdown-header menu-item">
|
125 |
<li role="presentation" class="dropdown-header menu-item">
|
| 125 |
FILTER
|
126 |
FILTER
|
| - |
|
127 |
|
| - |
|
128 |
|
| 126 |
<?php if((isset($brandschosen) && !empty($brandschosen)) || (isset($subcategorieschosen) && !empty($subcategorieschosen))):?>
|
129 |
<?php if((isset($brands) && !empty($brands)) || (isset($subcategories) && !empty($subcategories))):?>
|
| 127 |
<button class="btn btn-xs clearfilters btn-danger filteraction" style="position: absolute;right: -5px;top: 5px;" id="clearfilters">Reset</button>
|
130 |
<button class="btn btn-xs clearfilters btn-danger filteraction" style="position: absolute;right: -5px;top: 5px;" id="clearfilters">Reset</button>
|
| 128 |
<?php endif;?>
|
131 |
<?php endif;?>
|
| 129 |
</li>
|
132 |
</li>
|
| 130 |
<!-- <By subcategory started> -->
|
133 |
<!-- <By subcategory started> -->
|
| 131 |
<?php if ($id==6):?>
|
134 |
<?php if ($id==6):?>
|
| 132 |
<li role="presentation" class="menu-item"><a role="menuitem" tabindex="-1" href="<?php echo $base_url;?>subcategoryfilter/subcategory<?php if(isset($id)):?>/<?php echo $id;?><?php endif;?>">By Product <span class="greyarrow"></span></a></li>
|
135 |
<li role="presentation" class="menu-item"><a role="menuitem" tabindex="-1" href="<?php echo $base_url;?>subcategoryfilter/subcategory<?php if(isset($id)):?>/<?php echo $id;?><?php endif;?>/?<?php echo $_SERVER["QUERY_STRING"];?>">By Product <span class="greyarrow"></span></a></li>
|
| 133 |
<?php endif;?>
|
136 |
<?php endif;?>
|
| 134 |
|
137 |
|
| 135 |
<!-- <By subcategory ended> -->
|
138 |
<!-- <By subcategory ended> -->
|
| - |
|
139 |
|
| 136 |
<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>
|
140 |
<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;?>/?<?php echo $_SERVER["QUERY_STRING"];?>">By Brands <span class="greyarrow"></span></a></li>
|
| 137 |
|
141 |
|
| 138 |
|
142 |
|
| 139 |
|
143 |
|
| 140 |
|
144 |
|
| 141 |
<!-- <li role="presentation" class="menu-item"><a role="menuitem" tabindex="-1" href="#">Price-range</a></li> -->
|
145 |
<!-- <li role="presentation" class="menu-item"><a role="menuitem" tabindex="-1" href="#">Price-range</a></li> -->
|
| 142 |
<!-- <li role="presentation" class="menu-item"><a role="menuitem" tabindex="-1" href="#">Sub-category</a></li> -->
|
146 |
<!-- <li role="presentation" class="menu-item"><a role="menuitem" tabindex="-1" href="#">Sub-category</a></li> -->
|
| 143 |
<li role="presentation" class="dropdown-header menu-item">SORT</li>
|
147 |
<li role="presentation" class="dropdown-header menu-item">SORT</li>
|
| 144 |
<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>
|
148 |
<li role="presentation" class="menu-item <?php if($sortlabel == 'bestSellerPoints'):?>selected<?php endif;?>"><a role="menuitem" tabindex="-1" href="?sort=bestSellerPoints&direction=-1<?php echo $filterstr;?>">Bestsellers</a></li>
|
| 145 |
<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>
|
149 |
<li role="presentation" class="menu-item <?php //if(isset($sort) && $sort == 'available_price'):?><?php //endif;?>">
|
| - |
|
150 |
<span class="sortlabel">Price</span>
|
| - |
|
151 |
<a role="menuitem" tabindex="-1" href="?sort=available_price&direction=1<?php echo $filterstr;?>" class="btn-asc btn btn-xs" <?php if($sortlabel == 'pricelow'):?> style="background:#36d98a;" <?php endif;?>>Low</a>
|
| - |
|
152 |
<a role="menuitem" tabindex="-1" href="?sort=available_price&direction=-1<?php echo $filterstr;?>" class="btn-desc btn-xs" <?php if($sortlabel == 'pricehigh'):?> style="background:#36d98a;" <?php endif;?>>High</a>
|
| - |
|
153 |
</li>
|
| 146 |
<!-- <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> -->
|
154 |
<!-- <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> -->
|
| 147 |
<li role="presentation" class="menu-item"><a role="menuitem" tabindex="-1" href="?sort=-1">Recommended</a></li>
|
155 |
<li role="presentation" class="menu-item<?php if($sortlabel == 'recommended'):?> selected<?php endif;?>"><a role="menuitem" tabindex="-1" href="?sort=-1<?php echo $filterstr;?>">Recommended</a></li>
|
| 148 |
</ul>
|
156 |
</ul>
|
| 149 |
</div>
|
157 |
</div>
|
| 150 |
<?php endif;?>
|
158 |
<?php endif;?>
|
| 151 |
</li>
|
159 |
</li>
|
| 152 |
</ul>
|
160 |
</ul>
|