| Line -... |
Line 1... |
| - |
|
1 |
|
| - |
|
2 |
<?php if((isset($id) && $id == 6) && ((isset($sort) && !empty($sort)) || (!isset($brands) && empty($brands)) || (!isset($subcategories) && empty($subcategories)))):?>
|
| - |
|
3 |
<script type="text/javascript" src="<?php echo $base_url;?>js/iscroll.js"></script>
|
| - |
|
4 |
<script type="text/javascript">
|
| - |
|
5 |
function loaded () {
|
| - |
|
6 |
myScroll = new IScroll('#wrapper', { scrollX: true, scrollY: false, mouseWheel: true, click: true, tap: true });
|
| - |
|
7 |
}</script>
|
| - |
|
8 |
<?php endif;?>
|
| - |
|
9 |
|
| 1 |
<?php $links = $this->requestAction('users/getlinks/'.$logged_user['id']);?>
|
10 |
<?php $links = $this->requestAction('users/getlinks/'.$logged_user['id']);?>
|
| 2 |
<?php if(!empty($links)):?>
|
11 |
<?php if(!empty($links) && (isset($id) && $id != 6)):?>
|
| 3 |
<?php //$cur_url = $_SERVER['REQUEST_URI'];?>
|
12 |
<?php //$cur_url = $_SERVER['REQUEST_URI'];?>
|
| 4 |
|
13 |
|
| 5 |
<ul class="list-inline" style='font-size:.9em'>
|
14 |
<ul class="list-inline" style='font-size:.9em'>
|
| 6 |
<?php foreach ($links[$id] as $name => $link) :?>
|
15 |
<?php foreach ($links[$id] as $name => $link) :?>
|
| 7 |
|
16 |
|
| Line 12... |
Line 21... |
| 12 |
<?php else:?>
|
21 |
<?php else:?>
|
| 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>
|
22 |
<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>
|
| 14 |
<?php endif;?>
|
23 |
<?php endif;?>
|
| 15 |
<?php endforeach;?>
|
24 |
<?php endforeach;?>
|
| 16 |
|
25 |
|
| 17 |
<?php if($id ==6):?>
|
- |
|
| 18 |
|
- |
|
| 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>
|
- |
|
| 20 |
|
- |
|
| 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 == '27'):?> active<?php endif;?>" href="?filter=subcategory&subcategories=27" data-id="27">Back Cover</a></li>
|
- |
|
| 24 |
<li style='padding:2px;'><a class="selectsubcat<?php if($subcategories == '28'):?> active<?php endif;?>" href="?filter=subcategory&subcategories=28" data-id="28">Tempered Glass</a></li>
|
- |
|
| 25 |
|
- |
|
| 26 |
|
- |
|
| 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>
|
- |
|
| 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>
|
- |
|
| 29 |
|
- |
|
| 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>-->
|
- |
|
| 31 |
|
- |
|
| 32 |
|
- |
|
| 33 |
|
- |
|
| 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;?>
|
- |
|
| 37 |
|
- |
|
| 38 |
<?php endif;?>
|
- |
|
| 39 |
<?php if(isset($brandschosen) && !empty($brandschosen)):?>
|
26 |
<?php if(isset($brandschosen) && !empty($brandschosen)):?>
|
| 40 |
<li><button class="btn btn-xs clearfilters" style="width:25px !important;">All</button></li>
|
27 |
<li><button class="btn btn-xs clearfilters" style="width:25px !important;">All</button></li>
|
| 41 |
<?php endif;?>
|
28 |
<?php endif;?>
|
| 42 |
</ul>
|
29 |
</ul>
|
| 43 |
<?php endif;?>
|
30 |
<?php endif;?>
|
| - |
|
31 |
<?php if((isset($id) && $id == 6) && ((isset($sort) && !empty($sort))||(!isset($brands) && empty($brands)) || (!isset($subcategories) && empty($subcategories)))):?>
|
| - |
|
32 |
<div style="margin-top:4px;">
|
| - |
|
33 |
<div id="wrapper" style="background:white; width:100%; padding:0px;">
|
| - |
|
34 |
<div id="scroller">
|
| - |
|
35 |
<ul>
|
| - |
|
36 |
<?php $colorcount = 0;?>
|
| - |
|
37 |
<?php foreach($arrSubCategory as $arrkey => $arrvalue ):?>
|
| - |
|
38 |
|
| - |
|
39 |
<?php if ($arrkey != 0):?>
|
| - |
|
40 |
<?php $strarr = explode(" ", $arrvalue);?>
|
| - |
|
41 |
<a href="?filter=subcategory&subcategories=<?php echo $arrkey;?>&whatfirst=subCategory">
|
| 44 |
|
42 |
<li style="background:<?php echo $color[$colorcount];?>; <?php if(strlen($arrvalue) >9 && sizeof($strarr)>1):?> font-size: 10px;line-height: 12px;<?php elseif(strlen($arrvalue) <=9 && sizeof($strarr)>1):?>line-height: 12px;<?php else:?>line-height: 24px;<?php endif;?>;">
|
| - |
|
43 |
|
| - |
|
44 |
<?php
|
| - |
|
45 |
echo $strarr[0];
|
| - |
|
46 |
if(sizeof($strarr) >1){
|
| - |
|
47 |
echo "<br>";
|
| - |
|
48 |
for($abs = 1; $abs<= sizeof($strarr);$abs++)
|
| - |
|
49 |
{
|
| - |
|
50 |
echo $strarr[$abs]." ";
|
| - |
|
51 |
}
|
| - |
|
52 |
}
|
| - |
|
53 |
|
| - |
|
54 |
|
| - |
|
55 |
|
| - |
|
56 |
?>
|
| - |
|
57 |
|
| - |
|
58 |
</li>
|
| - |
|
59 |
</a>
|
| - |
|
60 |
<?php $colorcount = $colorcount+1;
|
| - |
|
61 |
if($colorcount == 6)
|
| - |
|
62 |
{
|
| - |
|
63 |
$colorcount = 0;
|
| - |
|
64 |
}
|
| - |
|
65 |
?>
|
| - |
|
66 |
<?php endif;?>
|
| - |
|
67 |
<?php endforeach;?>
|
| - |
|
68 |
</ul>
|
| - |
|
69 |
</div>
|
| - |
|
70 |
</div>
|
| 45 |
|
71 |
</div>
|
| - |
|
72 |
<?php endif;?>
|
| 46 |
|
73 |
|