-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmenu.php
43 lines (40 loc) · 1.05 KB
/
menu.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php require ("src/menu_cs.php");?>
<nav>
<ul id="appleNav">
<?php
$i = 0;
$continueLoop = true;
$cont = $countMenuPublic;
while ($cont) {
$i++;
if (! isset ($appMenuPublic[$i])) {
continue;
}
$cont--;
$class_li = '';
if ($menu_code == $appMenuPublic[$i]->menu_code) {
$class_li = 'current';
$color_a = "#fff";
} else {
$color_a = "#fff";
}
$submenu = "";
if (isset ($appMenuPublic[$i]->submenu) && ! empty ($appMenuPublic[$i]->submenu)) {
$class_li .= ' sub';
$submenu = $appMenuPublic[$i]->submenu;
}
if ($i == 1) {
$textLink = $imgLogoSmall;
} else {
$textLink = $appMenuPublic[$i]->menu_value;
}
?>
<li class="<?php echo trim ($class_li);?>"><a href="/<?php echo $appMenuPublic[$i]->menu_link;?>" style="color:<?php echo $color_a;?>;"><?php echo $textLink;?></a><pre><?php echo $submenu;?></pre></li>
<?php }?>
<li>
<form>
<input type="text" name="s" id="s" />
</form>
</li>
</ul>
</nav>