1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 2"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 3<?php 4/** 5 * DokuWiki New Day Template 6 * 7 * You should leave the doctype at the very top - It should 8 * always be the very first line of a document. 9 * 10 * @link http://www.dokuwiki.org/template:a_new_day 11 * @link http://blog.chirripo.nl 12 * 13 * @author Andreas Gohr <andi@splitbrain.org> 14 * @author Riccardo Govoni <battlehorse@gmail.com> 15 * @author Louis Wolf <louiswolf@chirripo.nl> 16 * 17 */ 18 19// Must be run from within DokuWiki 20if (!defined('DOKU_INC')) die(); 21 22// Include functions that provide sidebar functionality 23@require_once(dirname(__FILE__).'/tplfn_sidebar.php'); 24 25include(DOKU_TPLINC.'tpl_functions.php'); 26include(DOKU_TPLINC.'tpl_actions.php'); 27 28// Include translations of the template strings 29@require_once(dirname(__FILE__).'/lang/'.tpl_translation($conf['lang']).'/settings.php'); 30 31?> 32<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang']?>" 33 lang="<?php echo $conf['lang']?>" dir="<?php echo $lang['direction']?>"> 34<head> 35 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 36 <title> 37 <?php tpl_pagetitle()?> 38 [<?php echo strip_tags($conf['title'])?>] 39 </title> 40 41 <?php tpl_metaheaders()?> 42 43 <link rel="shortcut icon" href="<?php echo DOKU_TPL?>images/favicon.ico" /> 44 45 <?php /*old includehook*/ @include(dirname(__FILE__).'/meta.html')?> 46 47 <script src="<?php echo DOKU_TPL ?>js/prototype.js" type="text/javascript"></script> 48 <script src="<?php echo DOKU_TPL ?>js/scriptaculous.js" type="text/javascript"></script> 49</head> 50 51<body> 52<?php /*old includehook*/ @include(dirname(__FILE__).'/topheader.html')?> 53<div class="dokuwiki"> 54 <?php html_msgarea()?> 55 56 <div class="stylehead"> 57 58 <div class="header"> 59<!-- <div class="pagename"> 60 [[<?php tpl_link(wl($ID,'do=backlink'),tpl_pagetitle($ID,true))?>]] 61 </div> --> 62 <div class="logo"> 63 <?php tpl_link(wl(),$conf['title'],'name="dokuwiki__top" id="dokuwiki__top" accesskey="h" title="[ALT+H]"')?> 64 </div> 65 66 <div class="clearer"></div> 67 </div> 68 <div class="menu-top"> 69 <!--<div id="tpl_simple_navi">--> 70 <?php tpl_topbar() ?> 71 <!--</div>--> 72 </div> 73 74 <?php /*old includehook*/ @include(dirname(__FILE__).'/header.html')?> 75 76 <?php if($conf['breadcrumbs']){?> 77 <div class="breadcrumbs"> 78 <div style="float:left"> 79 <?php tpl_breadcrumbs()?> 80 </div> 81 <div style="float:right;text-align:right"> 82 <?php tpl_searchform() ?> 83 </div> 84 <?php //tpl_youarehere() //(some people prefer this)?> 85 </div> 86 <?php }?> 87 88 <?php if($conf['youarehere']){?> 89 <div class="bread_upper_dark"></div> 90 <div class="breadcrumbs"> 91 <?php tpl_youarehere() ?> 92 </div> 93 <div class="bread_lower_dark"></div> 94 <div class="bread_lower_medium"></div> 95 <div class="bread_lower_light"></div> 96 <?php }?> 97 98 </div> 99 <?php flush()?> 100 101 <?php /*old includehook*/ @include(dirname(__FILE__).'/pageheader.html')?> 102 103<div class="sideandpage" > 104 <?php if (tpl_getConf('btl_sidebar_position') == "right") { ?> 105 <div class="mainleft" > 106 <div class="page"> 107 <!-- wikipage start --> 108 <?php tpl_content()?> 109 <!-- wikipage stop --> 110 </div> 111 </div> 112 <?php } ?> 113 114 <?php if (tpl_getConf('btl_sidebar_position') == "right") { ?> 115 <div class="sideright"> 116 <?php } else { ?> 117 <div class="sideleft"> 118 <?php } ?> 119 <div class="userbarandshadows" > 120 <?php if (tpl_getConf('btl_sidebar_independent') == 1) { ?> 121 <table cellspacing="0" cellpadding="0" border="0" width="100%" > 122 <tr> 123 <td> 124 <table cellspacing="0" cellpadding="0" border="0" width="100%"> 125 <tr> 126 <td valign="top"> 127 <div class="userbar" > 128 <div id="sidebarActionTableId"> 129 <table cellspacing="0" cellpadding="2" border="0" width="100%"> 130 <tr><td> 131 <div class="smallpadding"> 132 <div id="sidebar"> 133 <?php tpl_sidebar() ?> 134 </div> 135 </div> 136 </td></tr> 137 </table> 138 </div> 139 </div> 140 </td> 141 </tr> 142 </table> 143 </td> 144 </tr> 145 </table><br/> 146 <?php } ?> 147 <table cellspacing="0" cellpadding="0" border="0" width="100%"> 148 <tr> 149 <td> 150 <table cellspacing="0" cellpadding="0" border="0" width="100%"> 151 <tr> 152 <td valign="top"> 153 <div class="userbar"> 154 <?php if (tpl_getConf('btl_sidebar_independent') == 0) { 155?> 156 <div id="sidebarActionTableId"> 157 <table><tr><td> 158 <div class="smallpadding"> 159 <div id="sidebar"> 160 <?php tpl_sidebar() ?> 161 </div> 162 </div> 163 </td></tr></table> 164 </div> 165 <?php } ?> 166 167 <?php if (tpl_getConf('btl_hide_page_actions') == 0) { ?> 168 169 <?php if (tpl_getConf('btl_action_palette') && (is_action_enabled('history') || is_action_enabled('backlink') || (is_action_enabled('edit') && (!$conf['useacl'] || $ACT != 'show' || ($conf['useacl'] && $_SERVER['REMOTE_USER']))))) { ?> 170 <div class="userbarstrip" onclick="Effect.toggle('pageActionTableId','slide')"><?php echo $lang['btl_strip_page_actions']; ?></div> 171 <?php } ?> 172 <div id="pageActionTableId" <?php action_group_status('page'); ?> ><div> 173 <table cellspacing="0" cellpadding="2" border="0" width="100%" > 174 <tr><td> 175 <?php if (is_action_enabled('history')) { ?> 176 <div class="smallpadding"><?php tpl_actionlink('history')?></div></td></tr><tr><td> 177 <?php } ?> 178 <?php if (is_action_enabled('backlink')) { ?> 179 <div class="smallpadding"><?php tpl_actionlink('backlink')?></div></td></tr><tr><td> 180 <?php } ?> 181 <?php if (is_action_enabled('edit')) { ?> 182 <div class="smallpadding"><?php tpl_actionlink('edit')?></div></td></tr><tr><td> 183 <?php } ?> 184 </td></tr></table></div></div> 185 186 <?php } ?> 187 <?php if (tpl_getConf('btl_hide_wiki_actions') == 0) { ?> 188 189 <?php if (tpl_getConf('btl_action_palette') && (is_action_enabled('index') || is_action_enabled('recent') || (is_action_enabled('admin') && $INFO['perm'] == 255 ))) { ?> 190 <div class="userbarstrip" onclick="Effect.toggle('wikiActionTableId','slide')"><?php echo $lang['btl_strip_wiki_actions']; ?></div> 191 <?php } ?> 192 <div id="wikiActionTableId" <?php action_group_status('wiki'); ?> ><div> 193 <table cellspacing="0" cellpadding="2" border="0" width="100%" > 194 <tr><td> 195 <?php if (is_action_enabled('index')) { ?> 196 <div class="smallpadding"><?php tpl_actionlink('index')?></div></td></tr><tr><td> 197 <?php } ?> 198 <?php if (is_action_enabled('recent')) { ?> 199 <div class="smallpadding"><?php tpl_actionlink('recent')?></div></td></tr><tr><td> 200 <?php } ?> 201 <?php if (is_action_enabled('admin') && $INFO['perm'] == 255) { ?> 202 <div class="smallpadding"><?php tpl_actionlink('admin') ?></div></td></tr><tr><td> 203 <?php } ?> 204 </td></tr></table></div></div> 205 206 <?php } ?> 207 <?php if (tpl_getConf('btl_hide_user_actions') == 0) { ?> 208 209 <?php if (tpl_getConf('btl_action_palette') && (is_action_enabled('login') || (is_action_enabled('profile') && $_SERVER['REMOTE_USER'] ) || (is_action_enabled('subscribe') && $conf['useacl'] && $ACT == 'show' && $conf['subscribers'] == 1 && $_SERVER['REMOTE_USER']))) { ?> 210 <div class="userbarstrip" onclick="Effect.toggle('userActionTableId','slide')"><?php echo $lang['btl_strip_user_actions']; ?></div> 211 <?php } ?> 212 <div id="userActionTableId" <?php action_group_status('user'); ?> ><div> 213 <table cellspacing="0" cellpadding="2" border="0" width="100%" > 214 <tr><td> 215 <?php if (is_action_enabled('login')) { ?> 216 <div class="smallpadding"><?php tpl_actionlink('login')?> 217 <?php 218 if ($_SERVER['REMOTE_USER']){ 219 echo $INFO['userinfo']['name'] ; 220 } 221 ?> 222 </div></td></tr><tr><td> 223 <?php } ?> 224 <?php if (is_action_enabled('profile') && $_SERVER['REMOTE_USER']) { ?> 225 <div class="smallpadding"><?php tpl_actionlink('profile') ?></div></td></tr><tr><td> 226 <?php } ?> 227 <?php if (is_action_enabled('subscribe')) { ?> 228 <?php if($conf['useacl'] && $ACT == 'show' && $conf['subscribers'] == 1 && $_SERVER['REMOTE_USER']){ ?> 229 <div class="smallpadding"><?php tpl_actionlink('subscribe')?></div></td></tr><tr><td> 230 <?php } ?> 231 <?php } ?> 232 </td></tr></table></div></div> 233 234 <?php } ?> 235 <?php if (tpl_getConf('btl_hide_submit_actions') == 0) { ?> 236 237 <?php if (tpl_getConf('btl_action_palette')) { ?> 238 <div class="userbarstrip" onclick="Effect.toggle('submitActionTableId','slide')"><?php echo $lang['btl_strip_submit_actions']; ?></div> 239 <?php } ?> 240 <div id="submitActionTableId" <?php action_group_status('submit'); ?> ><div> 241 <table cellspacing="0" cellpadding="2" border="0" width="100%" > 242 <?php 243 $actions = tpl_sidebar_actions(); 244 foreach ($actions as $action) 245 { 246 if ($action['enabled'] == 1) 247 { 248 ?> 249 <tr> 250 <td> 251 <div class="smallpadding"> 252 <a class="tpl_action" style="background: url('<?php echo DOKU_TPL ?>images/p/actions/<?php echo $action['action'] ?>.gif') no-repeat scroll left center" href="<?php echo tpl_action_url($action['url']) ?>"> 253 <?php echo $action['textlabel'] ?> 254 </a> 255 </div> 256 </td> 257 </tr> 258 <?php 259 } 260 } 261 ?> 262 </table></div></div> 263 264 <?php } ?> 265 266 </div> 267 </td> 268 </tr> 269 </table> 270 </td> 271 </tr> 272 </table> 273 </div> 274 275 </div> 276 <?php if (tpl_getConf('btl_sidebar_position') == "left") { ?> 277 <div class="mainright" > 278 <div class="page"> 279 <!-- wikipage start --> 280 <?php tpl_content()?> 281 <!-- wikipage stop --> 282 </div> 283 </div> 284 <?php } ?> 285 <div class="clearer"> </div> 286</div> 287 288 <?php flush()?> 289 290 <div class="stylefoot"> 291 292 <div class="meta"> 293 <div class="user"> 294 <?php tpl_userinfo()?> 295 </div> 296 <div class="doc"> 297 <?php tpl_pageinfo()?> 298 <span class="doclink"> 299 300 <?php tpl_actionlink('top') ?> 301 </span> 302 </div> 303 </div> 304 305 <?php /*old includehook*/ @include(dirname(__FILE__).'/pagefooter.html')?> 306 307 <div class="bar" id="bar__bottom"> 308 <?php /*old includehook*/ @include(dirname(__FILE__).'/footer.html')?> 309 <img style="float:right" class="footer_border" src="<?php echo DOKU_TPL . '/images/footer_image_right.png' ?>" alt=""/> 310 <div class="clearer"></div> 311 </div> 312 313 </div> 314 315</div> 316 317<div class="no"><?php /* provide DokuWiki housekeeping, required in all templates */ tpl_indexerWebBug()?></div> 318</body> 319</html> 320