1<!DOCTYPE html> 2<?php 3 4/** 5 * DokuWiki sprintDoc Template 6 * 7 * @link FIXME 8 * @author Jana Deutschlaender <deutschlaender@cosmocode.de> 9 * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) 10 */ 11 12if (!defined('DOKU_INC')) die(); /* must be run from within DokuWiki */ 13@require_once(dirname(__FILE__).'/tpl_functions.php'); /* include hook for template functions */ 14header('X-UA-Compatible: IE=edge,chrome=1'); 15 16$showTools = !tpl_getConf('hideTools') || ( tpl_getConf('hideTools') && !empty($_SERVER['REMOTE_USER']) ); 17$showSidebar = page_findnearest($conf['sidebar']) && ($ACT=='show'); 18 19 20/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 21/* conditional comments for IE8 / IE9 browser detection if needed */ 22/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 23?> 24<!--[if lt IE 9]> <html class="no-js lt-ie10 lt-ie9" lang="<?php echo $conf['lang'] ?>" dir="<?php echo $lang['direction'] ?>"> <![endif]--> 25<!--[if IE 9]> <html class="no-js lt-ie10 ie-9" lang="<?php echo $conf['lang'] ?>" dir="<?php echo $lang['direction'] ?>"> <![endif]--> 26<!--[if gt IE 9]><!--> <html class="edge no-js" lang="<?php echo $conf['lang'] ?>" dir="<?php echo $lang['direction'] ?>"> <!--<![endif]--> 27<head> 28 29<?php 30 31 32/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 33/* meta and link relations */ 34/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 35?> 36<meta charset="utf-8" /> 37<meta name="viewport" content="width=device-width, initial-scale=1.0" /> 38<?php tpl_metaheaders() ?> 39<?php 40 41 42/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 43/* conditional comments for HTML5 / media queries support in IE8 */ 44/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 45?> 46<!--[if lt IE 9]> 47 <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> 48 <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> 49<![endif]--> 50 51<?php 52 53 54/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 55/* page title */ 56/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 57?> 58<title><?php tpl_pagetitle() ?> [<?php echo strip_tags($conf['title']) ?>]</title> 59 60<script type="text/javascript">(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script> 61 62<?php 63 64 65/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 66/* favicons */ 67/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 68?> 69<?php 70 echo tpl_favicon(array('favicon')); /* DokuWiki: favicon.ico */ 71 include('tpl/favicon_tiles.php'); 72?> 73<?php 74 75 76/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 77/* Include Hook: meta.html */ 78/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 79?> 80<?php tpl_includeFile('meta.html') ?> 81</head> 82<?php /* #dokuwiki__top used as anchor for "back to top" button/link links */ ?> 83<body id="dokuwiki__top" class="<?php echo tpl_classes(); ?>"> 84 85 86 <div id="dokuwiki__site"> 87 <?php 88 89 90/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 91/* template Include: tpl/nav-direct */ 92/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 93 ?> 94 <?php include('tpl/nav-direct.php') ?> 95 96 97 <div class="page-wrapper <?php echo ($showSidebar) ? 'hasSidebar' : ''; ?>"> 98 <?php 99 100 101/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 102/* Message AREA */ 103/* FIXME: position of error + info messages. Does it have to be on top of the page? */ 104/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 105 html_msgarea(); 106 107 108/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 109/* Include Hook: header.html */ 110/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 111 tpl_includeFile('header.html'); 112 113 114/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 115/* MagicMatcher */ 116/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 117 ?> 118 119 <div id="dokuwiki_magic-matcher" class="magic-matcher no-print"> 120 <div class="container"> 121 <?php 122 $mm = plugin_load('helper', 'magicmatcher_context'); 123 if($mm){ 124 $mm->tpl(); 125 } 126 ?> 127 </div><!-- .container --> 128 </div><!-- .magic-matcher --> 129 <?php 130 131 132/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 133/* Header */ 134/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 135 ?> 136 137 <div id="dokuwiki__header" class="header no-print"> 138 <div class="container"> 139 </div><!-- .container --> 140 141 <div class="headings"> 142 <h1><?php tpl_link(wl(),$conf['title'],'accesskey="h" title="[H]"') ?></h1> 143 <?php /* how to insert logo instead (if no CSS image replacement technique is used): 144 upload your logo into the data/media folder (root of the media manager) and replace 'logo.png' accordingly: 145 tpl_link(wl(),'<img src="'.ml('logo.png').'" alt="'.$conf['title'].'" />','id="dokuwiki__top" accesskey="h" title="[H]"') */ ?> 146 <?php if ($conf['tagline']): ?> 147 <p class="claim"><?php echo $conf['tagline'] ?></p> 148 <?php endif ?> 149 150 <ul class="a11y skip"> 151 <li><a href="#dokuwiki__content"><?php echo $lang['skip_to_content'] ?></a></li> 152 </ul> 153 <div class="clearer"></div> 154 </div> 155 156 <div class="tools"> 157 <!-- USER TOOLS --> 158 <?php if ($conf['useacl'] && $showTools): ?> 159 <div id="dokuwiki__usertools"> 160 <h3 class="a11y"><?php echo $lang['user_tools'] ?></h3> 161 <ul> 162 <?php 163 if (!empty($_SERVER['REMOTE_USER'])) { 164 echo '<li class="user">'; 165 tpl_userinfo(); /* 'Logged in as ...' */ 166 echo '</li>'; 167 } 168 ?> 169 <?php /* the optional second parameter of tpl_action() switches between a link and a button, 170 e.g. a button inside a <li> would be: tpl_action('edit', 0, 'li') */ 171 ?> 172 <?php tpl_toolsevent('usertools', array( 173 'admin' => tpl_action('admin', 1, 'li', 1), 174 'userpage' => _tpl_action('userpage', 1, 'li', 1), 175 'profile' => tpl_action('profile', 1, 'li', 1), 176 'register' => tpl_action('register', 1, 'li', 1), 177 'login' => tpl_action('login', 1, 'li', 1), 178 )); ?> 179 </ul> 180 </div> 181 <?php endif ?> 182 183 <!-- SITE TOOLS --> 184 <div id="dokuwiki__sitetools"> 185 <h3 class="a11y"><?php echo $lang['site_tools'] ?></h3> 186 <?php tpl_searchform() ?> 187 <ul> 188 <?php tpl_toolsevent('sitetools', array( 189 'recent' => tpl_action('recent', 1, 'li', 1), 190 'media' => tpl_action('media', 1, 'li', 1), 191 'index' => tpl_action('index', 1, 'li', 1), 192 )); ?> 193 </ul> 194 </div> 195 196 </div> 197 <div class="clearer"></div> 198 199 <!-- BREADCRUMBS --> 200 <?php if($conf['breadcrumbs']){ ?> 201 <div class="breadcrumbs"><?php tpl_breadcrumbs() ?></div> 202 <?php } ?> 203 <?php if($conf['youarehere']){ ?> 204 <div class="breadcrumbs"><?php tpl_youarehere() ?></div> 205 <?php } ?> 206 207 <div class="clearer"></div> 208 <hr class="a11y" /> 209 </div></div><!-- /header --> 210 211 212 <div class="wrapper"> 213 214 <!-- ********** ASIDE ********** --> 215 <?php if ($showSidebar): ?> 216 <div id="dokuwiki__aside"><div class="pad aside include group"> 217 <?php tpl_includeFile('sidebarheader.html') ?> 218 <?php tpl_include_page($conf['sidebar'], 1, 1) /* includes the nearest sidebar page */ ?> 219 <?php tpl_includeFile('sidebarfooter.html') ?> 220 <div class="clearer"></div> 221 </div></div><!-- /aside --> 222 <?php endif; ?> 223 224 <!-- ********** CONTENT ********** --> 225 <div id="dokuwiki__content"><div class="pad"> 226 <?php tpl_flush() /* flush the output buffer */ ?> 227 <?php tpl_includeFile('pageheader.html') ?> 228 229 <div class="page"> 230 <!-- wikipage start --> 231 <?php tpl_content() /* the main content */ ?> 232 <!-- wikipage stop --> 233 <div class="clearer"></div> 234 </div> 235 236 <?php tpl_flush() ?> 237 <?php tpl_includeFile('pagefooter.html') ?> 238 </div></div><!-- /content --> 239 240 <div class="clearer"></div> 241 <hr class="a11y" /> 242 243 <!-- PAGE ACTIONS --> 244 <?php if ($showTools): ?> 245 <div id="dokuwiki__pagetools"> 246 <h3 class="a11y"><?php echo $lang['page_tools'] ?></h3> 247 <ul> 248 <?php tpl_toolsevent('pagetools', array( 249 'edit' => tpl_action('edit', 1, 'li', 1), 250 'discussion'=> _tpl_action('discussion', 1, 'li', 1), 251 'revisions' => tpl_action('revisions', 1, 'li', 1), 252 'backlink' => tpl_action('backlink', 1, 'li', 1), 253 'subscribe' => tpl_action('subscribe', 1, 'li', 1), 254 'revert' => tpl_action('revert', 1, 'li', 1), 255 'top' => tpl_action('top', 1, 'li', 1), 256 )); ?> 257 </ul> 258 </div> 259 <?php endif; ?> 260 </div><!-- /wrapper --> 261 262 <!-- ********** FOOTER ********** --> 263 <div id="dokuwiki__footer"><div class="pad"> 264 <div class="doc"><?php tpl_pageinfo() /* 'Last modified' etc */ ?></div> 265 <?php tpl_license('button') /* content license, parameters: img=*badge|button|0, imgonly=*0|1, return=*0|1 */ ?> 266 </div></div><!-- /footer --> 267 268 <?php tpl_includeFile('footer.html') ?> 269 </div><!-- .dokuwiki__site --> 270 271 <div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div> 272 273</body> 274</html> 275