forked from chimeric/dokuwiki-template-arctic
/
main.php
135 lines (115 loc) · 4.74 KB
/
main.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
<?php
/**
* DokuWiki Arctic Template
*
* This is the template you need to change for the overall look
* of DokuWiki.
*
* You should leave the doctype at the very top - It should
* always be the very first line of a document.
*
* @author Andreas Gohr <andi@splitbrain.org>
* @author Michael Klier <chi@chimeric.de>
* @link http://wiki.splitbrain.org/template:arctic
* @link http://chimeric.de/projects/dokuwiki/template/arctic
*/
// must be run from within DokuWiki
if (!defined('DOKU_INC')) die();
// include custom arctic template functions
require_once(dirname(__FILE__).'/tpl_functions.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang']?>"
lang="<?php echo $conf['lang']?>" dir="<?php echo $lang['direction']?>">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>
<?php tpl_pagetitle()?>
[<?php echo strip_tags($conf['title'])?>]
</title>
<?php tpl_metaheaders()?>
<link rel="shortcut icon" href="<?php echo DOKU_TPL?>images/favicon.ico" />
<?php /*old includehook*/ @include(dirname(__FILE__).'/meta.html')?>
</head>
<body>
<?php /*old includehook*/ @include(dirname(__FILE__).'/topheader.html')?>
<div id="dokuwiki">
<div id="header">
<div class="site">
<div id="logo">
<?php tpl_link(wl(),
'<img src="' . DOKU_TPL . 'images/logo-7.png">',
'name="dokuwiki__top" accesskey="h" title="'.$conf['title'].'"')?>
</div>
<?php tpl_login_dialog(); ?>
</div>
</div>
<div id="mainmenu">
<div class="site">
<?php if(tpl_getConf('search') == 'menu') { ?>
<div id="searchtool">
<?php tpl_searchform() ?>
</div>
<?php }?>
<ul>
<?php @include(dirname(__FILE__).'/menu.php')?>
</ul>
</div>
</div>
<?php if(tpl_getConf('trace')) {?>
<div id="breadcrumbs">
<div class="site">
<?php ($conf['youarehere'] != 1) ? tpl_breadcrumbs() : tpl_youarehere();?>
</div>
</div>
<?php } ?>
<?php /*old includehook*/ @include(dirname(__FILE__).'/header.html')?>
<?php /*old includehook*/ @include(dirname(__FILE__).'/pageheader.html')?>
<?php flush()?>
<div class="site">
<div id="left_sidebar">
<?php if(tpl_getConf('search') == 'left') { ?>
<div class="sidebar_box search_sidebar">
<?php tpl_searchform() ?>
</div>
<?php } ?>
<?php tpl_sidebar('left') ?>
</div>
<div id="page">
<?php html_msgarea()?>
<?php ($notoc) ? tpl_content(false) : tpl_content() ?>
</div>
<div id="right_sidebar">
<?php if(tpl_getConf('search') == 'right') { ?>
<div class="sidebar_box search_sidebar">
<?php tpl_searchform() ?>
</div>
<?php } ?>
<?php tpl_sidebar('right') ?>
</div>
</div>
<div class="push"> </div>
</div>
<?php flush()?>
<div id="footer">
<div class="site">
<div id="page_meta" class="meta">
<?php tpl_pageinfo()?>
</div>
</div>
<div id="footer_info">
<div class="site">
<?php tpl_license('button', true)?>
<a target="_blank" href="http://www.chimeric.de" title="www.chimeric.de"><img src="<?php echo DOKU_TPL?>images/button-chimeric-de.png" width="80" height="15" alt="www.chimeric.de" border="0" /></a>
<a target="_blank" href="http://jigsaw.w3.org/css-validator/check/referer" title="Valid CSS"><img src="<?php echo DOKU_TPL?>images/button-css.png" width="80" height="15" alt="Valid CSS" border="0" /></a>
<a target="_blank" href="http://wiki.splitbrain.org/wiki:dokuwiki" title="Driven by DokuWiki"><img src="<?php echo DOKU_TPL?>images/button-dw.png" width="80" height="15" alt="Driven by DokuWiki" border="0" /></a>
<a target="_blank" href="http://www.firefox-browser.de" title="do yourself a favour and use a real browser - get firefox"><img src="<?php echo DOKU_TPL?>images/button-firefox.png" width="80" height="15" alt="do yourself a favour and use a real browser - get firefox!!" border="0" /></a>
<a target="_blank" href="<?php echo DOKU_BASE?>feed.php" title="Recent changes RSS feed"><img src="<?php echo DOKU_TPL?>images/button-rss.png" width="80" height="15" alt="Recent changes RSS feed" border="0" /></a>
<a target="_blank" href="http://validator.w3.org/check/referer" title="Valid XHTML 1.0"><img src="<?php echo DOKU_TPL?>images/button-xhtml.png" width="80" height="15" alt="Valid XHTML 1.0" border="0" /></a>
</div>
</div>
</div>
<div class="no"><?php /* provide DokuWiki housekeeping, required in all templates */ tpl_indexerWebBug()?></div>
</body>
</html>