1<?php 2 3/** 4 * DokuWiki sprintDoc Template 5 * 6 * @link FIXME 7 * @author Jana Deutschlaender <deutschlaender@cosmocode.de> 8 * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) 9 */ 10 11use dokuwiki\template\sprintdoc\Template; 12 13if (!defined('DOKU_INC')) die(); /* must be run from within DokuWiki */ 14header('X-UA-Compatible: IE=edge,chrome=1'); 15 16global $JSINFO; 17if (empty($JSINFO['template'])) { 18 $JSINFO['template'] = array(); 19} 20$JSINFO['template']['sprintdoc'] = array('sidebar_toggle_elements' => tpl_getConf('sidebar_sections')); 21 22$showTools = true; 23$showSidebar = true; 24?> 25<!DOCTYPE html> 26<html class="edge no-js" lang="<?php echo $conf['lang'] ?>" dir="<?php echo $lang['direction'] ?>"> 27<head> 28<?php 29/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 30/* meta and link relations */ 31/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 32?> 33<meta charset="utf-8" /> 34<meta name="viewport" content="width=device-width, initial-scale=1.0" /> 35<?php tpl_metaheaders() ?> 36<?php 37 38 39/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 40/* page title */ 41/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 42?> 43<title><?php tpl_pagetitle() ?> [<?php echo strip_tags($conf['title']) ?>]</title> 44 45<script type="text/javascript">(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script> 46 47<?php 48 49 50/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 51/* favicons */ 52/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 53?> 54<?php 55 include('tpl/favicon_tiles.php'); 56?> 57<?php 58 59 60/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 61/* Include Hook: meta.html */ 62/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 63?> 64<?php tpl_includeFile('meta.html') ?> 65</head> 66<?php 67 68 69/* #dokuwiki__top used as anchor for "back to top" button/link links */ 70$classWideContent = ($ACT === "show") ? "": "wide-content "; 71?> 72<body id="dokuwiki__top" class="<?php echo ($ACT) ? 'do-'.$ACT : 'do-none'; ?> <?php echo $classWideContent; ?><?php echo ($showSidebar) ? 'showSidebar' : ''; ?>"> 73 74<div id="dokuwiki__site" class="<?php echo tpl_classes(); ?>"> 75 <?php 76 77 78/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 79/* template Include: tpl/nav-direct */ 80/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 81 ?> 82 <?php include('tpl/nav-direct.php') ?> 83 84 85 <div class="page-wrapper <?php echo ($showSidebar) ? 'hasSidebar' : ''; ?>"> 86 <?php 87/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 88/* Include Hook: header.html */ 89/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 90 tpl_includeFile('header.html'); 91 92/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 93/* User Tools and MagicMatcher Bar */ 94/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 95 96 /** @var \helper_plugin_magicmatcher_context $mm */ 97 $mm = plugin_load('helper', 'magicmatcher_context'); 98 $headerClass = ""; /* for additionial class in #dokuwiki__header */ 99 $navClass = ""; /* for additionial class in #dokuwiki__usertools (header.html) */ 100 101 if($mm){ 102 $matcher = $mm->getIssueContextBar(); 103 if($matcher !== ""){ 104 $headerClass = "has-magicmatcher"; 105 $navClass = "has-bar"; 106 } 107 } 108 ?> 109 110 <div id="dokuwiki__header" class="header <?php echo $headerClass; ?> no-print"> 111 <div class="container"> 112 <div class="row"> 113 <div class="col-xs-12"> 114 <div class="claim main-sidebar"> 115 <div class="menu-togglelink mobile-only"> 116 <a href="#"> 117 <span class="sr-out"><?php echo tpl_getLang('a11y_sidebartoggle'); ?></span> 118 </a> 119 </div> 120 121 <?php 122 123 124/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 125/* Logo */ 126/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 127/* upload your logo into the data/media folder (root of the media manager) and replace 'logo.png' in der template config accordingly: */ 128 include('tpl/main-sidebar-logo.php'); 129 ?> 130 <div class="main-title"> 131 <?php if ($conf['title']): 132 133 134/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 135/* Wiki Title Mobile */ 136/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ ?> 137 <p class="title mobile-only"><?php echo $conf['title'] ?></p> 138 <?php endif ?> 139 </div><!-- .main-title --> 140 141 <div class="menu-tool-select"> 142 <h5 class="sr-only" role="heading" aria-level="2"><?php echo tpl_getLang('head_menu_tool-select') ?></h5> 143 <?php 144 if (file_exists(DOKU_INC . 'inc/Menu/MobileMenu.php')) { 145 echo (new \dokuwiki\Menu\MobileMenu())->getDropdown(); 146 } else { 147 //Pre-Greebo Backwards compatibility 148 tpl_actiondropdown($lang['tools'], "test"); 149 } 150 ?> 151 </div><!-- .menu-tool-select --> 152 </div><!-- .headings --> 153 </div><!-- .col --> 154 155 156 <div class="col-xs-12"> 157 <div class="main-title desktop-only"> 158 <?php if ($conf['title']): 159 160 161/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 162/* Wiki Title Desktop */ 163/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ ?> 164 <p class="title"><?php echo $conf['title'] ?></p> 165 <?php endif ?> 166 <?php if ($conf['tagline']): 167 168 169/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 170/* Wiki Tagline Desktop */ 171/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ ?> 172 <p class="claim"><?php echo $conf['tagline'] ?></p> 173 <?php endif ?> 174 </div><!-- .main-title --> 175 </div><!-- .col --> 176 177 </div><!-- .row --> 178 </div><!-- .container --> 179 </div><!-- .header --> 180 <?php 181 182 183/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 184/* headline menu area (Accessibility ) */ 185/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 186 ?> 187 188 <div class="sr-only nav-area-head"> 189 <h5 class="sr-only" role="heading" aria-level="1"><?php echo tpl_getLang('nav-area-head') ?></h5> 190 </div><!-- .nav-area-head --> 191 192 <div class="tools"> 193 <div class="container"> 194 <div class="row"> 195 <div class="col-xs-12"> 196 <div class="search main-sidebar"> 197 <?php 198 199 200/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 201/* search form */ 202/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 203 include('tpl/main-sidebar-search.php'); 204 ?> 205 </div><!-- .search --> 206 207 <div class="sidebarheader main-sidebar"> 208 <?php 209 210 211/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 212/* Include Hook: sidebarheader.html */ 213/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 214 tpl_includeFile('sidebarheader.html') 215 ?> 216 </div><!-- .sidebarheader --> 217 218 <div id="dokuwiki__aside"> 219 220 <?php 221 echo Template::getInstance()->getInclude( 222 'sidebarheader', 223 '<div class="sidebarheader">', 224 '<div class="clearer"></div></div>' 225 ); 226 ?> 227 228 <?php 229 230 231/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 232/* sidebar */ 233/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 234 include('tpl/main-sidebar-nav.php'); 235 ?> 236 237 <?php 238 echo Template::getInstance()->getInclude( 239 'sidebarfooter', 240 '<div class="sidebarfooter">', 241 '<div class="clearer"></div></div>' 242 ); 243 ?> 244 </div><!-- .aside --> 245 246 </div><!-- .col --> 247 </div><!-- .row --> 248 </div><!-- .container --> 249 </div><!-- .tools --> 250 251 252 <div class="top-header"> 253 <div class="container"> 254 <div class="row"> 255 <div class="col-xs-12"> 256 257 <?php 258 259 260/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 261/* User Tools and MagicMatcher Bar */ 262/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 263 include('tpl/nav-usertools-buttons.php'); 264 if($mm && $matcher !== ""){ 265 include('tpl/nav-magicmatcher.php'); 266 } 267 ?> 268 269 </div><!-- .col --> 270 </div><!-- .row --> 271 </div><!-- .container --> 272 </div><!-- /top-header --> 273 274 275 <div class="content"> 276 <div class="container"> 277 <div class="row"> 278 <div class="col-xs-12"> 279 280 <?php tpl_flush(); /* flush the output buffer */ 281 282 283/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 284/* Include Hook: pageheader.html */ 285/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 286 tpl_includeFile('pageheader.html') 287 ?> 288 289 <?php 290 ?> 291 292 <div class="breadcrumbs" data-do="<?php echo $ACT?>"> 293 294 <div class="togglelink page_main-content"> 295 <a id="spr__toggle-content" href="#"><span class="sr-out"><?php echo tpl_getLang('a11y_sidebartoggle')?></span></a> 296 </div> 297 298 <h6 class="sr-only" role="heading" aria-level="2"><?php echo tpl_getLang('head_menu_status') ?></h6> 299 300 <?php 301 302/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 303/* page quality / page tasks */ 304/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 305 include('tpl/nav-page-attributes.php'); 306 ?> 307 308 <?php 309/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 310/* breadcrumb */ 311/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 312 include('tpl/nav-breadcrumb.php'); 313 ?> 314 315 <h6 class="sr-only" role="heading" aria-level="2"><?php echo $lang['page_tools'] ?></h6> 316 317 <?php 318 319 320/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 321/* page tools */ 322/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 323 include('tpl/nav-page-tools.php'); 324 ?> 325 326 </div> 327 328 <div id="dokuwiki__content" class="page main-content"> 329 <div id="spr__meta-box"> 330 <h6 class="sr-only" role="heading" aria-level="2"><?php echo tpl_getLang('head_meta_box') ?></h6> 331 332 <?php 333 334 335/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 336/* meta box */ 337/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 338 include('tpl/nav-meta-box.php'); ?> 339 </div> 340 341 <div class="qc-output"></div> 342 <?php 343 /** @var action_plugin_highlightparent $highlightParent */ 344 $highlightParent = plugin_load('action', 'highlightparent'); 345 if ($highlightParent) { 346 echo $highlightParent->tpl(); 347 } 348 ?> 349 <div class="msg-area"><?php html_msgarea();/*msg('Information.', 0);msg('Success', 1);msg('Notification', 2);msg('Fehler', -1);*/ ?></div> 350 <div class="clearer"></div> 351 <?php 352 353 354/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 355/* wikipage start / main content */ 356/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 357 tpl_content(false); /* the main content */ 358 ?> 359 <div class="clearer"></div> 360 <?php 361 if($ACT == 'show') echo Template::getInstance()->getInclude( 362 'footer', 363 '<div class="wikipagefooter"><hr>', 364 '<div class="clearer"></div></div>' 365 ); 366 ?> 367 </div><!-- .main-content --> 368 369 370 <div class="page-footer"> 371 <?php 372 373 374/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 375/* Include Hook: pagefooter */ 376/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 377 tpl_includeFile('pagefooter.html'); 378 379 380/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 381/* 'Last modified' etc */ 382/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 383 tpl_pageinfo() 384 ?> 385 </div> 386 387 </div><!-- .col --> 388 </div><!-- .row --> 389 </div><!-- .container --> 390 391 392 <?php 393 tpl_flush() 394 ?> 395 </div><!-- /content --> 396 397 398 <div class="clearer"></div> 399 400 </div><!-- /wrapper --> 401 402 403 404<!-- ********** FOOTER ********** --> 405 406 <div id="dokuwiki__footer"> 407 <div class="container"> 408 <div class="row"> 409 <div class="col-xs-12"> 410 411 <div class="main-footer"> 412 <p> 413 <?php 414 415 416/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 417/* copyright */ 418/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 419 tpl_license($img = false, $imgonly = false, $return = false, $wrap = false); 420 ?> 421 </p> 422 </div> 423 424 </div> 425 </div> 426 </div> 427 </div><!-- /footer --> 428 429 430 <?php tpl_includeFile('footer.html') ?> 431</div><!-- .dokuwiki__site --> 432 433<div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div> 434 435</body> 436</html> 437