| 16013 |
anikendra |
1 |
<?php $links = $this->requestAction('users/getlinks/'.$logged_user['id']);?>
|
|
|
2 |
<?php if(!empty($links)):?>
|
| 18389 |
naman |
3 |
<?php //$cur_url = $_SERVER['REQUEST_URI'];?>
|
|
|
4 |
|
| 17192 |
naman |
5 |
<ul class="list-inline" style='font-size:.9em'>
|
| 16013 |
anikendra |
6 |
<?php foreach ($links[$id] as $name => $link) :?>
|
| 18389 |
naman |
7 |
|
|
|
8 |
<?php //if(substr($cur_url, strrpos($cur_url, '=') + 1) == substr($link,strpos($link,'=',8)+1)):?>
|
|
|
9 |
<?php if(!empty($brands) && $brands == substr($link,strpos($link,'=',8)+1)):?>
|
|
|
10 |
|
| 17192 |
naman |
11 |
<li style='padding:2px;'><a class="selectbrand active" data-href="<?php echo $link;?>" data-id="<?php echo substr($link,strpos($link,'=',8)+1);?>"><?php echo $name;?></a></li>
|
| 16031 |
anikendra |
12 |
<?php else:?>
|
| 17192 |
naman |
13 |
<li style='padding:2px;'><a class="selectbrand" data-href="<?php echo $link;?>" data-id="<?php echo substr($link,strpos($link,'=',8)+1);?>"><?php echo $name;?></a></li>
|
| 16031 |
anikendra |
14 |
<?php endif;?>
|
| 16013 |
anikendra |
15 |
<?php endforeach;?>
|
| 17687 |
naman |
16 |
|
|
|
17 |
<?php if($id ==6):?>
|
|
|
18 |
|
| 18389 |
naman |
19 |
<li style='padding:2px;'><a class="selectsubcat<?php if($subcategories == '7'):?> active<?php endif;?>" href="?filter=subcategory&subcategories=7" data-id="7">Memory Card</a></li>
|
| 17964 |
naman |
20 |
|
| 18389 |
naman |
21 |
<li style='padding:2px;'><a class="selectsubcat<?php if($subcategories == '8'):?> active<?php endif;?>" href="?filter=subcategory&subcategories=8" data-id="8">Data Cable</a></li>
|
|
|
22 |
<!--<li style='padding:2px;'><a class="selectsubcat<?php if($subcategories == '15'):?> active<?php endif;?>" href="?filter=subcategory&subcategories=15" data-id="15">Charger</a></li>-->
|
|
|
23 |
<li style='padding:2px;'><a class="selectsubcat<?php if($subcategories == '19^27'):?> active<?php endif;?>" href="?filter=subcategory&subcategories=19^27" data-id="19^27">Mobile Covers</a></li>
|
|
|
24 |
<li style='padding:2px;'><a class="selectsubcat<?php if($subcategories == '20'):?> active<?php endif;?>" href="?filter=subcategory&subcategories=20" data-id="20">Tempered Glass</a></li>
|
| 17964 |
naman |
25 |
|
|
|
26 |
|
| 18389 |
naman |
27 |
<li style='padding:2px;'><a class="selectsubcat<?php if($subcategories == '21'):?> active<?php endif;?>" href="?filter=subcategory&subcategories=21" data-id="21">Headphone</a></li>
|
| 18616 |
amit.gupta |
28 |
<li style='padding:2px;'><a class="selectsubcat<?php if($subcategories == '29'):?> active<?php endif;?>" href="?filter=subcategory&subcategories=29" data-id="29">Battery</a></li>
|
| 18077 |
naman |
29 |
|
| 18183 |
amit.gupta |
30 |
<!--<li style='padding:2px;'><a class="selectsubcat <?php if(isset($_COOKIE['subcategorieschosen']) && $_COOKIE['subcategorieschosen'] == '8^20^15'):?>active<?php endif;?>" data-href="?filter=subcategory&subcategories=8^20^15" data-id="8^20^15">Combo</a></li>-->
|
| 17964 |
naman |
31 |
|
|
|
32 |
|
|
|
33 |
|
| 17701 |
naman |
34 |
<?php if(isset($subcategorieschosen) && !empty($subcategorieschosen) && !isset($brandschosen)):?>
|
|
|
35 |
<li><button class="btn btn-xs clearfilters" style="width:25px !important;">All</button></li>
|
|
|
36 |
<?php endif;?>
|
| 17687 |
naman |
37 |
|
|
|
38 |
<?php endif;?>
|
|
|
39 |
<?php if(isset($brandschosen) && !empty($brandschosen)):?>
|
| 16031 |
anikendra |
40 |
<li><button class="btn btn-xs clearfilters" style="width:25px !important;">All</button></li>
|
|
|
41 |
<?php endif;?>
|
| 16013 |
anikendra |
42 |
</ul>
|
| 16031 |
anikendra |
43 |
<?php endif;?>
|
| 17687 |
naman |
44 |
|
|
|
45 |
|