-
Notifications
You must be signed in to change notification settings - Fork 0
/
nav.php
65 lines (59 loc) · 1.16 KB
/
nav.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?php
/*
Theme Name: cultureshock
Author: 1UPDesign
Author URI: http://1updesign.org/
Version: 1.0
Page: nav.php
*/
?>
<?php
$path = $_SERVER['REQUEST_URI'];
$nav_items = array();
if($path == "/"){
$nav_items[] = array(
"title" => "Home",
"url" => "/",
);
$nav_items[] = array(
"title" => "About",
"url" => "/#about",
);
$nav_items[] = array(
"title" => "Venue",
"url" => "/#venue",
);
$nav_items[] = array(
"title" => "Culture Shock 2012",
"url" => "/#cs2012"
);
$nav_items[] = array(
"title" => "Contact",
"url" => "/#contact",
);
$nav_items[] = array(
"title" => "Top",
"url" => "/#header",
);
}else{
$nav_items[] = array(
"title" => "Home",
"url" => "/",
);
}
?><ul id="nav">
<?php foreach($nav_items as $page):?>
<a href="<?php echo $page['url'] ?>">
<li>
<span class="navitem">
<?php if($page['title'] == "Home"): ?>
<img src="<?php bloginfo('stylesheet_directory') ?>/assets/images/home.png">
<?php else: ?>
<img src="<?php bloginfo('stylesheet_directory') ?>/assets/images/nav_arrow.png">
<?php echo $page['title'] ?>
<?php endif; ?>
</span>
</li>
</a>
<?php endforeach ?>
</ul>