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