1 | <?php
|
---|
2 | /*
|
---|
3 | * DokuWiki Roundbox Template
|
---|
4 | *
|
---|
5 | * A template with a sidebar after the style of my homepage
|
---|
6 | * <http://chrisarndt.de/>
|
---|
7 | *
|
---|
8 | * @link http://wiki.splitbrain.org/wiki:tpl:roundbox
|
---|
9 | * @author Chris Arndt <[email protected]>
|
---|
10 | * @author Don Bowman <[email protected]>
|
---|
11 | */
|
---|
12 |
|
---|
13 | /****** include discussion code ******/
|
---|
14 | if (in_array('discussion', plugin_list('syntax'))) {//do
|
---|
15 | include(DOKU_PLUGIN.'discussion/discussion.php');
|
---|
16 | $have_discussion = true;
|
---|
17 | }//if (in_array('discussion', plugin_list('syntax')))
|
---|
18 | else
|
---|
19 | $have_discussion = false;
|
---|
20 |
|
---|
21 | /****** include template configuration and translations ******/
|
---|
22 | // include_once(dirname(__FILE__).'/conf/default.php');
|
---|
23 | include_once(dirname(__FILE__).'/lang/en/lang.php');
|
---|
24 | @include_once(dirname(__FILE__).'/lang/'.$conf['lang'].'/lang.php');
|
---|
25 |
|
---|
26 | /****** include sidebar code ******/
|
---|
27 | if (tpl_getConf('rb_sitenav'))
|
---|
28 | include(dirname(__FILE__).'/sidebar.php');
|
---|
29 |
|
---|
30 | /****** include template helper functions ******/
|
---|
31 | include_once(dirname(__FILE__).'/roundbox.php');
|
---|
32 |
|
---|
33 |
|
---|
34 | $user = rb_get_user_info();
|
---|
35 | $perms = auth_quickaclcheck($ID);
|
---|
36 |
|
---|
37 | /*
|
---|
38 | * we must move the doctype down (unfortunately) - headers need to be first
|
---|
39 | */
|
---|
40 | ?>
|
---|
41 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
---|
42 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
---|
43 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang']?>"
|
---|
44 | lang="<?php echo $conf['lang']?>" dir="<?php echo $lang['direction']?>">
|
---|
45 | <head>
|
---|
46 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
---|
47 | <title>
|
---|
48 | <?php tpl_pagetitle()?>
|
---|
49 | [<?php echo hsc($conf['title'])?>]
|
---|
50 | </title>
|
---|
51 |
|
---|
52 | <?php tpl_metaheaders()?>
|
---|
53 |
|
---|
54 | <?php rb_checkTheme()?>
|
---|
55 |
|
---|
56 | <link rel="shortcut icon" href="<?php echo DOKU_TPL?>images/favicon.ico" />
|
---|
57 |
|
---|
58 | <?php if (tpl_getConf('rb_roundcorners')) { ?>
|
---|
59 | <link rel="stylesheet" media="screen" type="text/css"
|
---|
60 | href="<?php echo DOKU_TPL?>roundcorners.css" />
|
---|
61 | <?php } ?>
|
---|
62 |
|
---|
63 | <!--[if gte IE 5]>
|
---|
64 | <style type="text/css">
|
---|
65 | /* that IE 5+ conditional comment makes this only visible in IE 5+ */
|
---|
66 | /* IE bugfix for transparent PNGs */
|
---|
67 | //DISABLED img { behavior: url("<?php echo DOKU_BASE?>lib/scripts/pngbehavior.htc"); }
|
---|
68 | </style>
|
---|
69 | <![endif]-->
|
---|
70 |
|
---|
71 | <?php if (tpl_getConf('rb_sidebar_orientation') == 'right') { ?>
|
---|
72 | <style type="text/css"><!--
|
---|
73 | div.dokuwiki #content {
|
---|
74 | float: left;
|
---|
75 | margin-right: 2%;
|
---|
76 | margin-left: 0px;
|
---|
77 | }
|
---|
78 |
|
---|
79 | div.dokuwiki #sidebar {
|
---|
80 | float: right;
|
---|
81 | }
|
---|
82 | --></style>
|
---|
83 | <?php } ?>
|
---|
84 |
|
---|
85 | <?php /*old includehook*/ @include(dirname(__FILE__).'/meta.html')?>
|
---|
86 | </head>
|
---|
87 |
|
---|
88 | <body>
|
---|
89 | <?php /*old includehook*/ @include(dirname(__FILE__).'/topheader.html')?>
|
---|
90 |
|
---|
91 | <!-- start dokuwiki block -->
|
---|
92 | <div class="dokuwiki">
|
---|
93 |
|
---|
94 | <!-- start header block -->
|
---|
95 | <div id="header">
|
---|
96 |
|
---|
97 | <!-- start header title -->
|
---|
98 | <div id="header_title">
|
---|
99 | <div class="logo">
|
---|
100 | <?php tpl_link(wl(),$conf['title'],'name="dokuwiki__top" id="dokuwiki__top" accesskey="h" title="[ALT+H]"')?>
|
---|
101 | </div>
|
---|
102 | <div class="pagename">
|
---|
103 | [[ <?php if (rb_check_action_perms('backlink', $perms, $user)) {
|
---|
104 | tpl_link(wl($ID,'do=backlink'),$ID);
|
---|
105 | } else {
|
---|
106 | echo hsc($ID); } ?> ]]
|
---|
107 | </div>
|
---|
108 | </div>
|
---|
109 | <!-- end header title -->
|
---|
110 |
|
---|
111 | <!-- start lower header part -->
|
---|
112 | <div class="bar" id="header_bar">
|
---|
113 | <!-- start tagline -->
|
---|
114 | <div class="bar__left" id="bar__topleft">
|
---|
115 | <span class="tagline"><?php echo hsc(tpl_getConf('rb_tagline')) ?></span>
|
---|
116 | </div>
|
---|
117 | <!-- end tagline -->
|
---|
118 |
|
---|
119 | <!-- start goto & search area -->
|
---|
120 | <div class="bar__right" id="bar__topright">
|
---|
121 | <?php if (rb_check_action_perms('goto', $perms, $user)) { ?>
|
---|
122 | <form action="<?php echo DOKU_BASE ?>doku.php" accept-charset="utf-8"
|
---|
123 | class="search" name="goto" >
|
---|
124 | <input type="text" accesskey="g" name="id" class="edit"
|
---|
125 | title="<?php echo $lang['tip_goto'] ?> [ALT-G]" />
|
---|
126 | <input type="submit" value="<?php echo $lang['btn_goto']?>"
|
---|
127 | class="button" title="<?php echo $lang['tip_goto'] ?> [ALT-G]" />
|
---|
128 | </form>
|
---|
129 | <?php } ?>
|
---|
130 | <?php if (rb_check_action_perms('search', $perms, $user)) { ?>
|
---|
131 | <?php tpl_searchform()?>
|
---|
132 | <?php } ?>
|
---|
133 | </div>
|
---|
134 | <!-- end goto & search area -->
|
---|
135 |
|
---|
136 | </div>
|
---|
137 | <!-- end lower header part -->
|
---|
138 |
|
---|
139 | </div>
|
---|
140 | <!-- end header block -->
|
---|
141 |
|
---|
142 | <?php /*old includehook*/ @include(dirname(__FILE__).'/header.html')?>
|
---|
143 | <?php flush()?>
|
---|
144 |
|
---|
145 | <!-- start content block -->
|
---|
146 | <div id="content">
|
---|
147 |
|
---|
148 | <?php if($conf['breadcrumbs']) { ?>
|
---|
149 | <div class="breadcrumbs">
|
---|
150 | <?php tpl_breadcrumbs(); ?>
|
---|
151 | </div>
|
---|
152 | <?php }?>
|
---|
153 |
|
---|
154 | <?php if($conf['youarehere']) { ?>
|
---|
155 | <div class="breadcrumbs">
|
---|
156 | <?php tpl_youarehere(); ?>
|
---|
157 | </div>
|
---|
158 | <?php }?>
|
---|
159 |
|
---|
160 | <?php if(tpl_getConf('rb_youarehere')) { ?>
|
---|
161 | <div class="breadcrumbs">
|
---|
162 | <?php rb_youarehere(); ?>
|
---|
163 | </div>
|
---|
164 | <?php }?>
|
---|
165 |
|
---|
166 |
|
---|
167 | <!-- start wikipage block -->
|
---|
168 | <div id="page" class="page">
|
---|
169 |
|
---|
170 | <?php html_msgarea()?>
|
---|
171 |
|
---|
172 | <!-- wikipage start -->
|
---|
173 | <?php
|
---|
174 | if (tpl_getConf('rb_private') && !$_SERVER['REMOTE_USER'])
|
---|
175 | html_login();
|
---|
176 | else
|
---|
177 | tpl_content();
|
---|
178 | ?>
|
---|
179 | <!-- end wikipage -->
|
---|
180 |
|
---|
181 | <!-- discussion start -->
|
---|
182 | <?php //if ($have_discussion) { tpl_discussion(); } ?>
|
---|
183 | <!-- end discussion -->
|
---|
184 |
|
---|
185 | <div class="toplink">
|
---|
186 | <?php tpl_actionlink('top')?>
|
---|
187 | </div>
|
---|
188 | <hr />
|
---|
189 |
|
---|
190 | <!-- start page meta information -->
|
---|
191 | <div class="meta">
|
---|
192 | <?php tpl_pageinfo()?>
|
---|
193 | </div>
|
---|
194 | <!-- end page meta information -->
|
---|
195 |
|
---|
196 | </div>
|
---|
197 | <!-- end wikipage block -->
|
---|
198 |
|
---|
199 | </div>
|
---|
200 | <!-- end content block -->
|
---|
201 |
|
---|
202 | <!-- start sidebar -->
|
---|
203 | <div id="sidebar">
|
---|
204 |
|
---|
205 | <?php
|
---|
206 | if (tpl_getConf('rb_private') && !$_SERVER['REMOTE_USER'])
|
---|
207 | {}
|
---|
208 | else {
|
---|
209 | ?>
|
---|
210 | <?php if (tpl_getConf('rb_sitenav')) { ?>
|
---|
211 | <!-- start site navigation box -->
|
---|
212 | <div id="sitenav">
|
---|
213 | <div id="sitenav_title">
|
---|
214 | <?php ptln(hsc($lang['sitenav_title']))?>
|
---|
215 | </div>
|
---|
216 | <div id="sitenav_content">
|
---|
217 | <?php tpl_sidebar_content()?>
|
---|
218 | <?php //if (tpl_getConf('rb_showeditbtn')) tpl_sidebar_editbtn()?>
|
---|
219 | </div>
|
---|
220 | </div>
|
---|
221 | <!-- end site navigation box -->
|
---|
222 | <?php } ?>
|
---|
223 |
|
---|
224 | <!-- start site commands box -->
|
---|
225 | <div id="sitecmd">
|
---|
226 | <div id="sitecmd_title">
|
---|
227 | <?php ptln(hsc($lang['sitecmd_title']))?>
|
---|
228 | </div>
|
---|
229 | <div id="sitecmd_content">
|
---|
230 | <?php rb_sitecmds($perms, $user) ?>
|
---|
231 | </div>
|
---|
232 | </div>
|
---|
233 | <!-- end site commands box -->
|
---|
234 | <?php } ?>
|
---|
235 |
|
---|
236 | <!-- start user info -->
|
---|
237 | <div class="user">
|
---|
238 | <?php tpl_userinfo() ?>
|
---|
239 | </div>
|
---|
240 | <!-- end user info -->
|
---|
241 |
|
---|
242 | <!-- start footer -->
|
---|
243 | <?php /*old includehook*/ @include(dirname(__FILE__).'/footer.html')?>
|
---|
244 | <!-- end footer -->
|
---|
245 |
|
---|
246 | </div>
|
---|
247 | <!-- end sidebar -->
|
---|
248 |
|
---|
249 | <?php flush()?>
|
---|
250 |
|
---|
251 | </div>
|
---|
252 | <!-- end dokuwiki block -->
|
---|
253 |
|
---|
254 | <?php tpl_indexerWebBug() ?>
|
---|
255 |
|
---|
256 | </body>
|
---|
257 | </html>
|
---|