-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathprimary-menu.php~
41 lines (35 loc) · 1.51 KB
/
primary-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
<?php
$home_selected = '';
$news_selected = '';
$connect_selected = '';
$forum_selected = '';
$we_selected = '';
$intouch_selected = '';
switch($primary_selected)
{
case 'home': $home_selected = 'selected';
break;
case 'news': $news_selected = 'selected';
break;
case 'connect': $connect_selected = 'selected';
break;
case 'forum': $forum_selected = 'selected';
break;
case 'services': $services_selected = 'selected';
break;
case 'get_in_touch': $intouch_selected = 'selected';
break;
};
?>
<div id="primary-menu">
<ul class="primary-menu-list">
<li class="primary-menu-list-element"><a class="primary-menu-href <?php echo $home_selected;?>" href="index.php"><span>Frontpage</span></a></li>
<li class="primary-menu-list-element news"><a class="primary-menu-href news <?php echo $news_selected;?>" href=""><span>News</span></a>
<?php include 'submenu-news.php' ?>
</li>
<li class="primary-menu-list-element"><a class="primary-menu-href <?php echo $connect_selected;?>" href="ConnectWithUs.php"><span>Connect with Us</span></a></li>
<li class="primary-menu-list-element"><a class="primary-menu-href <?php echo $forum_selected;?>" href=""><span>Forums</span></a></li>
<li class="primary-menu-list-element"><a class="primary-menu-href <?php echo $services_selected;?>" href="Services.php"><span>Services</span></a></li>
<li class="primary-menu-list-element"><a class="primary-menu-href <?php echo $intouch_selected;?>" href="GetInTouch.php"><span>Get In Touch</span></a></li>
</ul>
</div>