1<?php 2/** 3 * DokuWiki Dark Wood Template 4 * Based on the starter template 5 * 6 * @link http://dokuwiki.org/template:darkwood 7 * @author desbest <afaninthehouse@gmail.com> 8 * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) 9 */ 10 11if (!defined('DOKU_INC')) die(); /* must be run from within DokuWiki */ 12@require_once(dirname(__FILE__).'/tpl_functions.php'); /* include hook for template functions */ 13header('X-UA-Compatible: IE=edge,chrome=1'); 14 15$showTools = !tpl_getConf('hideTools') || ( tpl_getConf('hideTools') && !empty($_SERVER['REMOTE_USER']) ); 16$showSidebar = page_findnearest($conf['sidebar']) && ($ACT=='show'); 17?><!DOCTYPE html> 18<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang'] ?>" 19 lang="<?php echo $conf['lang'] ?>" dir="<?php echo $lang['direction'] ?>" class="no-js"> 20<head> 21 <meta charset="UTF-8" /> 22 <title><?php tpl_pagetitle() ?> [<?php echo strip_tags($conf['title']) ?>]</title> 23 <script>(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script> 24 <?php tpl_metaheaders() ?> 25 <meta name="viewport" content="width=device-width,initial-scale=1" /> 26 <?php echo tpl_favicon(array('favicon', 'mobile')) ?> 27 <?php tpl_includeFile('meta.html') ?> 28 <script defer type="text/javascript" src="<?php echo tpl_basedir();?>/responsive.js"></script> 29</head> 30 31<body class=" <?php echo tpl_classes(); ?> <?php echo ($showSidebar) ? 'hasSidebar' : ''; ?>"> 32 33 34<!--[if IE]> <div id="IEroot"> <![endif]--> 35<div id="dokuwiki__top" class="headercontainer"> 36<?php tpl_includeFile('header.html') ?> 37<div class="header"> 38 39 40 <div class="headerpadding"> 41 42 <img src="<?php echo tpl_basedir();?>/images/logo.png" width="40" height="40" align="left" style="margin-right: 1em;"/> 43 <?php tpl_link(wl(),$conf['title'],'accesskey="h" title="[H]"') ?> 44 45 <?php if ($conf['tagline']): ?> 46 <p class="claim"><?php echo $conf['tagline'] ?></p> 47 <?php endif ?> 48 49 <ul class="a11y skip"> 50 <li><a href="#dokuwiki__content"><?php echo $lang['skip_to_content'] ?></a></li> 51 </ul> 52 <?php /* how to insert logo instead (if no CSS image replacement technique is used): 53 upload your logo into the data/media folder (root of the media manager) and replace 'logo.png' accordingly: 54 tpl_link(wl(),'<img src="'.ml('logo.png').'" alt="'.$conf['title'].'" />','id="dokuwiki__top" accesskey="h" title="[H]"') */ ?> 55 </div></div> 56 <div class="headerbridge"></div> 57</div> 58<!--[if IE]> </div> <![endif]--> 59 60<!--[if IE]> <div id="IEroot"> <![endif]--> 61<div class="container"><div class="allboxessameheight"> 62 63 <?php html_msgarea() /* occasional error and info messages on top of the page */ ?> 64 65 <!-- BREADCRUMBS --> 66 <?php if($conf['breadcrumbs']){ ?> 67 <div class="breadcrumbs"><?php tpl_breadcrumbs() ?></div> 68 <?php } ?> 69 <?php if($conf['youarehere']){ ?> 70 <div class="breadcrumbs"><?php tpl_youarehere() ?></div> 71 <?php } ?> 72 73<div class="left"> 74 75 76 77 <!-- ********** ASIDE ********** --> 78 <?php if ($showSidebar): ?> 79 <div id="writtensidebar"><!-- <div class="pad aside include group"> --> 80 <?php tpl_includeFile('sidebarheader.html') ?> 81 <?php tpl_include_page($conf['sidebar'], 1, 1) /* includes the nearest sidebar page */ ?> 82 <?php tpl_includeFile('sidebarfooter.html') ?> 83 <div class="clearer"></div> 84 <!-- </div> --></div><!-- /aside --> 85 <?php endif; ?> 86 87 <div class="sideheader">Site Tools</div> 88 <div class="sidebox"> 89 <div id="navcontainer"> 90 <ul id="navlist"> 91 <!-- SITE TOOLS --> 92 <h3 class="a11y"><?php echo $lang['site_tools'] ?></h3> 93 <?php tpl_searchform() ?> 94 <ul> 95 <?php tpl_toolsevent('sitetools', array( 96 'recent' => tpl_action('recent', 1, 'li', 1), 97 'media' => tpl_action('media', 1, 'li', 1), 98 'index' => tpl_action('index', 1, 'li', 1), 99 )); ?> 100 </ul> 101 </div> 102 <br/> 103 </div> 104 105 106 107 108 <?php if ($showTools): ?> 109 <div class="sideheader">Page Tools</div> 110 <div class="sidebox"> 111 <div id="navcontainer"> 112 <h3 class="a11y"><?php echo $lang['page_tools'] ?></h3> 113 <ul id="navlist"> 114 <!-- PAGE ACTIONS --> 115 <?php tpl_toolsevent('pagetools', array( 116 'edit' => tpl_action('edit', 1, 'li', 1), 117 'discussion'=> _tpl_action('discussion', 1, 'li', 1), 118 'revisions' => tpl_action('revisions', 1, 'li', 1), 119 'backlink' => tpl_action('backlink', 1, 'li', 1), 120 'subscribe' => tpl_action('subscribe', 1, 'li', 1), 121 'revert' => tpl_action('revert', 1, 'li', 1), 122 'top' => tpl_action('top', 1, 'li', 1), 123 )); ?> 124 </ul> 125 </div> 126 <br/> 127 </div> 128 <?php endif; ?> 129 130 <?php if ($conf['useacl'] && $showTools): ?> 131 <div class="sideheader">User Tools</div> 132 <div class="sidebox"> 133 <h3 class="a11y"><?php echo $lang['user_tools'] ?></h3> 134 <div id="navcontainer"> 135 <?php 136 if (!empty($_SERVER['REMOTE_USER'])) { 137 echo '<p class="user">'; 138 tpl_userinfo(); /* 'Logged in as ...' */ 139 echo '</p>'; 140 } 141 ?> 142 <ul id="navlist"> 143 <!-- USER TOOLS --> 144 145 <?php /* the optional second parameter of tpl_action() switches between a link and a button, 146 e.g. a button inside a <li> would be: tpl_action('edit', 0, 'li') */ 147 ?> 148 <?php tpl_toolsevent('usertools', array( 149 'admin' => tpl_action('admin', 1, 'li', 1), 150 'userpage' => _tpl_action('userpage', 1, 'li', 1), 151 'profile' => tpl_action('profile', 1, 'li', 1), 152 'register' => tpl_action('register', 1, 'li', 1), 153 'login' => tpl_action('login', 1, 'li', 1), 154 )); ?> 155 </ul> 156 </div> 157 <br/> 158 </div> 159 <?php endif ?> 160</div> 161 162<div class="middle"> 163 <div class="middleheader"><div>Home Page</div></div> 164 165 166 <div class="middlebox"> 167 <!-- ********** CONTENT ********** --> 168 <div id="dokuwiki__content"><div class="pad"> 169 <?php tpl_flush() /* flush the output buffer */ ?> 170 <?php tpl_includeFile('pageheader.html') ?> 171 172 <div class="page"> 173 <!-- wikipage start --> 174 <?php tpl_content() /* the main content */ ?> 175 <!-- wikipage stop --> 176 <div class="clearer"></div> 177 </div> 178 179 <?php tpl_flush() ?> 180 <?php tpl_includeFile('pagefooter.html') ?> 181 </div></div><!-- /content --> 182 </div> 183 184</div> 185 186 <!-- width is 250px --> 187 <!-- <div class="right"> 188 <div class="sideheader"><div>Sidebar 2</div></div> 189 <div class="sidebox"> 190 <p>Text here</p><br/> 191 </div> 192 </div> --> 193 194</div> <!-- close the allboxessameheight --> 195 196<div class="footer"> 197 <a href="http://desbest.com" target="_blank">Dark Wood theme copyright desbest</a> 198 <div class="doc"><?php tpl_pageinfo() /* 'Last modified' etc */ ?></div> 199 <?php tpl_license('button') /* content license, parameters: img=*badge|button|0, imgonly=*0|1, return=*0|1 */ ?> 200</div> 201<?php tpl_includeFile('footer.html') ?> 202<div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div> 203</div> <!-- close the container --> 204 205 206<!--[if IE]> </div> <![endif]--> 207 208 <?php /* with these Conditional Comments you can better address IE issues in CSS files, 209 precede CSS rules by #IE8 for IE8 (div closes at the bottom) */ ?> 210 <!--[if lte IE 8 ]><div id="IE8"><![endif]--> 211 212 <?php /* the "dokuwiki__top" id is needed somewhere at the top, because that's where the "back to top" button/link links to */ ?> 213 <?php /* tpl_classes() provides useful CSS classes; if you choose not to use it, the 'dokuwiki' class at least 214 should always be in one of the surrounding elements (e.g. plugins and templates depend on it) */ ?> 215 <!-- this has to be at the bottom of the 216 page due to the way dokuwiki renders javascript --> 217 218</body> 219</html> 220