1<?php
2	include_once(dirname(__FILE__).'/lang/en/lang.php');
3	@include_once(dirname(__FILE__).'/lang/'.$conf['lang'].'/lang.php');
4
5	include(dirname(__FILE__).'/sidebar.php');
6	$toc = getToc();
7
8?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
9<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang']; ?>" lang="<?php echo $conf['lang']; ?>">
10	<head>
11		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
12		<meta http-equiv="Content-Style-Type" content="text/css" />
13		<title><?php tpl_pagetitle()?> [<?php echo hsc($conf['title'])?>]</title>
14		<?php tpl_metaheaders(); ?>
15		<link rel="shortcut icon" href="<?php echo DOKU_TPL?>favicon.ico" />
16
17	</head>
18	<body>
19<!-- =============================== HEADER =============================== -->
20		<div id="header">
21			<div id="headerprepend"></div>
22			<div id="logo"><?php tpl_link(wl(),$conf['title'],'name="dokuwiki__top" id="dokuwiki__top" accesskey="h" title="[ALT+H]"')?></div>
23			<div id="userinfo"><?php tpl_userinfo(); ?></div>
24			<div id="searchform">
25				<?php tpl_searchform(); ?>
26			</div>
27			<div id="navigation">
28				<ul>
29					<li><?php tpl_actionlink("login"); ?>&nbsp;</li>
30					<li><?php tpl_actionlink("recent"); ?>&nbsp;</li>
31					<li><?php tpl_actionlink("admin"); ?>&nbsp;</li>
32				</ul>
33			</div>
34			<div id="headerappend"></div>
35		</div>
36		<div id="sidebar">
37<!-- ================================= TOC ================================= -->
38			<?php if($toc){ ?>
39			<div class="menu pagemap">
40				<div class="menutop">
41					<div class="prepend"></div>
42					<div class="title"><?php echo $lang["pagemap"]; ?></div>
43				</div>
44				<div class="menubody">
45					<?php echo $toc; ?>
46				</div>
47				<div class="menubottom"><div class="prepend"></div></div>
48			</div>
49			<?php } ?>
50<!-- ============================== EXPLORER =============================== -->
51			<div class="menu">
52				<div class="menutop">
53					<div class="prepend"></div>
54					<div class="title"><?php echo $lang["sitemap"]; ?></div>
55				</div>
56				<div class="menubody">
57					<?php tpl_sitemap(); ?>
58				</div>
59				<div class="menubottom"><div class="prepend"></div></div>
60			</div>
61<!-- ================================ LINKS ================================ -->
62			<div id="links">
63				<ul>
64					<li><a href="<?php echo DOKU_BASE; ?>feed.php" title="<?php echo $lang['btn_recent']; ?>"><img src="<?php echo DOKU_TPL; ?>images/button-rss.png" alt="<?php echo $lang['btn_recent']; ?>" /></a></li>
65					<li><a href="?do=export_raw" title="Source"><img src="<?php echo DOKU_TPL; ?>images/button-raw.png" alt="Source" /></a></li>
66					<li><a href="http://wiki.splitbrain.org/wiki:dokuwiki" title="Propulsé par DokuWiki"><img src="<?php echo DOKU_TPL; ?>images/button-dw.png" alt="Propulsé par DokuWiki" /></a></li>
67				</ul>
68			</div>
69		</div>
70<!-- =============================== CONTENT =============================== -->
71		<div id="content">
72			<div id="contenttop">
73				<div class="prepend"></div>
74				<ul class="commands">
75					<li>[<?php tpl_actionlink("edit"); ?>]</li>
76					<li>[<?php tpl_actionlink("history"); ?>]</li>
77				</ul>
78			</div>
79			<div id="contentbody">
80				<?php html_msgarea(); ?>
81				<?php flush(); ?>
82				<?php tpl_content(); ?>
83				<div class="clearer">&nbsp;</div>
84				<?php flush(); ?>
85			</div>
86			<div id="contentbottom">
87				<div class="prepend"></div>
88				<?php tpl_pageinfo(); ?>
89			</div>
90		</div>
91	</body>
92</html>