blob: db37543d69d9a32ddca91624aa82d70df10def49 (
plain)
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
|
<?php
/*
* Copyright 2004 Matt Brubeck
* This file is licensed under a Creative Commons license:
* http://creativecommons.org/licenses/by/2.0/
*/
require_once "main.inc.php";
$pageTitle = _("Site Map");
include "include/header.inc.php";
?>
<h2><?=$pageTitle?></h2>
<ul>
<?php
foreach ($siteNavItems as $navItem) {
$name = $navItem[0];
$sectionPath = $navItem[1];
$sectionNavItems = $navItem[2];
echo "<li><a href=\"$sitePath/$sectionPath\">$name</a>";
if ($sectionNavItems) {
echo "<ul>";
foreach ($sectionNavItems as $navItem) {
$name = $navItem[0];
$path = $navItem[1];
echo "<li><a href=\"$sitePath/$sectionPath$path\">$name</a></li>";
}
echo "</ul>";
}
echo "</li>";
}
?>
</ul>
<?php
include "include/footer.inc.php";
?>
|