forked from JV-Software/SimpleNavigation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
54 lines (47 loc) · 1.49 KB
/
index.html
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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-F3w7mX95PdgyTmZZMECAngseQB83DfGTowi0iMjiWaeVhAn4FJkqJByhZMI3AhiU" crossorigin="anonymous">
<title>Index.html</title>
<link href="index-bs.css" rel="stylesheet" />
</head>
<body>
<div class="container-md">
<div class="row">
<h1>bootstrap / SimpleNavigation / index.html</h1>
<?php
require_once('lib/JVS/SimpleNavigation.php');
$simpleNav = new JVS\SimpleNavigation;
$navItems = array(
'Home' => 'index.html',
'About Us' => array(
'Page 1' => 'page1.html',
'Page 2' => 'page2.html',
'Page 3' => 'page3.html',
),
'Blog' => 'blog.html',
);
echo $simpleNav->make($navItems, 'page2.html', ' ');
?>
<hr />
<?php
$multiLevelItems = array(
'Home' => 'http://home.com',
'About' => array(
'About 1' => 'http://about1.com',
'About 2' => 'http://about2.com',
),
'Blog' => 'http://blog.com',
);
echo $simpleNav->make($multiLevelItems, '', ' ');
?>
</div><!-- row -->
</div><!-- container -->
<!-- Bootstrap bundle -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-/bQdsTh/da6pkI1MST/rWKFNjaCP5gBSY4sEBT38Q/9RBh9AH40zEOg7Hlq2THRZ" crossorigin="anonymous"></script>
</body>
</html>