Repository navigation
Expand file tree
/
Copy pathmain.php
More file actions
178 lines (146 loc) · 5.32 KB
/
Copy pathmain.php
File metadata and controls
178 lines (146 loc) · 5.32 KB
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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
<?php
/**
* Doogies Dokuwiki Template
*
* @link http://dokuwiki.org/template:doogiestpl
* @author Andreas Gohr <andi@splitbrain.org>
* @author Robert Rackl
* @author Anika Henke <anika@selfthinker.org>
*/
if (!defined('DOKU_INC')) die(); // must be run from within DokuWiki
@require_once(dirname(__FILE__).'/tpl_functions.php'); /* include hook for template functions */
?>
<!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 echo strip_tags($conf['title'])?>
[<?php tpl_pagetitle()?>]
</title>
<?php tpl_metaheaders()?>
<?php echo tpl_favicon(array('favicon', 'mobile')) ?>
<?php tpl_includeFile('meta.html')?>
</head>
<body>
<?php tpl_includeFile('topheader.html')?>
<?php html_msgarea() ?>
<div class="dokuwiki <?php if (tpl_getConf('hasLongTitles')) echo 'hasLongTitles' ?>">
<!-- login state -->
<div class="user">
<?php tpl_userinfo()?>
</div>
<!-- breadcrumbs -->
<?php if($conf['breadcrumbs']){?>
<div class="breadcrumbs">
<?php tpl_breadcrumbs()?>
</div>
<?php }?>
<?php if($conf['youarehere']){?>
<div class="breadcrumbs">
<?php tpl_youarehere() ?>
</div>
<?php }?>
<div class="clearer"></div>
<?php if (tpl_getConf('actionsToTop')): ?>
<div class="actions">
<!-- page actions -->
<div class="bar-left" id="bar__bottomleft">
<?php
global $conf;
global $auth;
global $lang;
tpl_button('login');
if($conf['useacl'] && $auth){
if($_SERVER['REMOTE_USER']){ // show only if user is logged in
tpl_button('revert');
tpl_button('edit');
tpl_actiondropdown(tpl_getLang('more_actions'));
}
}
?>
</div>
<!-- search form -->
<div class="bar-right" id="bar__bottomright">
<div class="searchbox">
<?php tpl_searchform(); ?>
</div>
</div>
<div class="clearer"></div>
</div>
<?php endif; ?>
<div class="stylehead">
<div class="header">
<div class="logo">
<?php tpl_link(wl(),$conf['title'],'name="dokuwiki__top" id="dokuwiki__top" accesskey="h" title="[ALT+H]"')?>
</div>
<div class="tools">
<div class="pagename">
[[<?php tpl_link(wl($ID,'do=backlink'),tpl_pagetitle($ID,true),'title="'.$lang['btn_backlink'].'"')?>]]
</div>
</div>
<?php if (tpl_getConf('tabsPage')): ?>
<div class="clearer"></div>
<div class="tabnav" id="tab__nav">
<?php tpl_include_page(tpl_getConf('tabsPage'), 1, 1) ?>
</div>
<?php endif; ?>
<div class="clearer"></div>
<?php tpl_includeFile('header.html')?>
</div>
</div>
<?php flush()?>
<?php tpl_includeFile('pageheader.html')?>
<div class="page">
<!-- ......... wikipage start ......... -->
<?php tpl_content()?>
<!-- ......... wikipage stop ......... -->
</div>
<div class="clearer"></div>
<?php flush()?>
<!-- footer -->
<div class="stylefoot">
<?php tpl_includeFile('pagefooter.html')?>
<div class="bar" id="bar__bottom">
<!-- page metadata -->
<div class="meta">
<div class="doc">
<?php tpl_pageinfo()?>
</div>
</div>
<?php if (!tpl_getConf('actionsToTop') || (tpl_getConf('actionsToTop') == 2)): ?>
<!-- page actions -->
<div class="bar-left" id="bar__bottomleft">
<?php
global $conf;
global $auth;
global $lang;
tpl_button('login');
if($conf['useacl'] && $auth){
if($_SERVER['REMOTE_USER']){ // show only if user is logged in
tpl_button('revert');
tpl_button('edit');
tpl_actiondropdown(tpl_getLang('more_actions'));
}
}
?>
</div>
<!-- search form -->
<div class="bar-right" id="bar__bottomright">
<div class="searchbox">
<?php tpl_searchform(); ?>
</div>
</div>
<div class="clearer"></div>
<?php endif; ?>
</div>
</div>
</div>
<?php tpl_includeFile('footer.html')?>
<div class="no">
<?php /* provide DokuWiki housekeeping, required in all templates */ tpl_indexerWebBug()?>
</div>
</body>
</html>