forked from d3designs/mdocs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
59 lines (51 loc) · 1.68 KB
/
index.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
<?php
/**
* Load the mDocs system
*/
include 'mdocs.php';
if(!empty($_SERVER['HTTP_X_REQUESTED_WITH'])
&& strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest') {
$return = array(
'file' => $file,
'menu' => $menu,
'doc' => $doc,
'toc' => $toc->getHtml(),
'title' => "mDocs" . " - " . $file
);
print json_encode($return);
exit;
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><?php echo isset($title) ? $title : "mDocs"; ?></title>
<link rel="stylesheet" type="text/css" media="all" href="assets/css/mdocs.css">
</head>
<body>
<div id="container">
<aside id="aside-left">
<div id="menu">
<?php echo $menu; ?>
</div>
</aside>
<div id="doc">
<?php echo $doc; ?>
</div>
<aside id="aside-right">
<div id="toc">
<?php echo $toc; ?>
</div>
</aside>
<div id="footer">
<p>This documentation is released under a <a href="http://creativecommons.org/licenses/by-nc-sa/3.0/">Attribution-NonCommercial-ShareAlike 3.0</a> License.</p>
</div>
</div>
<script type="text/javascript" src="assets/js/jquery-1.6.4.min.js"></script>
<script type="text/javascript" src="assets/js/jquery.smooth-scroll-1.4.min.js"></script>
<script type="text/javascript" src="assets/js/jquery.floating-widget-0.9.1.js"></script>
<script type="text/javascript" src="assets/js/jquery.address-1.4.min.js"></script>
<script type="text/javascript" src="assets/js/main.js"></script>
</body>
</html>