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; 12Template::getInstance(); 13 14if (!defined('DOKU_INC')) die(); /* must be run from within DokuWiki */ 15header('X-UA-Compatible: IE=edge,chrome=1'); 16 17global $JSINFO; 18global $conf; 19global $lang; 20 21if (empty($JSINFO['template'])) { 22 $JSINFO['template'] = array(); 23} 24$JSINFO['template']['sprintdoc'] = array('sidebar_toggle_elements' => tpl_getConf('sidebar_sections')); 25 26$showTools = true; 27$showSidebar = true; 28?> 29<!DOCTYPE html> 30<html class="edge no-js" lang="<?php echo $conf['lang'] ?>" dir="<?php echo $lang['direction'] ?>"> 31<head> 32<?php 33/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 34/* meta and link relations */ 35/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ 36?> 37<meta charset="utf-8" /> 38<meta name="viewport" content="width=device-width, initial-scale=1.0" /> 39<?php tpl_metaheaders() ?> 40 41<title><?php tpl_pagetitle() ?> [<?php echo strip_tags($conf['title']) ?>]</title> 42 43<script type="text/javascript">(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script> 44 45<?php 46 include('tpl/favicon_tiles.php'); 47?> 48<?php tpl_includeFile('meta.html') ?> 49</head> 50<?php 51 52 53/* #dokuwiki__top used as anchor for "back to top" button/link links */ 54$classWideContent = (Template::getInstance())->fullWidthClass(); 55?> 56<body id="dokuwiki__top" class="<?php echo ($ACT) ? 'do-'.$ACT : 'do-none'; ?> <?php echo $classWideContent; ?><?php echo ($showSidebar) ? 'showSidebar' : ''; ?> <?php echo tpl_getConf('header_layout'); ?>"> 57 58<div id="dokuwiki__site" class="<?php echo tpl_classes(); ?>"> 59 <?php include('tpl/nav-direct.php') ?> 60 61 62 <div class="page-wrapper <?php echo ($showSidebar) ? 'hasSidebar' : ''; ?>"> 63 <?php 64 tpl_includeFile('header.html'); 65 /** @var \helper_plugin_magicmatcher_context $mm */ 66 $mm = plugin_load('helper', 'magicmatcher_context'); 67 $headerClass = ""; /* for additionial class in #dokuwiki__header */ 68 $navClass = ""; /* for additionial class in #dokuwiki__usertools (header.html) */ 69 70 if($mm){ 71 $matcher = $mm->getIssueContextBar(); 72 if($matcher !== ""){ 73 $headerClass = "has-magicmatcher"; 74 $navClass = "has-bar"; 75 } 76 } 77 ?> 78 79 <div id="dokuwiki__header" class="header <?php echo $headerClass; ?>"> 80 <div class="container"> 81 <div class="row"> 82 <div class="col-xs-12"> 83 <div class="claim main-sidebar"> 84 <?php if(!tpl_getConf('closedwiki') || $INPUT->server->has('REMOTE_USER')) { ?> 85 <div class="menu-togglelink mobile-only"> 86 <a href="#"> 87 <span class="sr-out"><?php echo tpl_getLang('a11y_sidebartoggle'); ?></span> 88 </a> 89 </div> 90 <?php } ?> 91 92 <?php include('tpl/main-sidebar-logo.php'); ?> 93 94 <div class="main-title"> 95 <?php if ($conf['title']): ?> 96 <p class="title mobile-only"><?php echo $conf['title'] ?></p> 97 <?php endif ?> 98 </div><!-- .main-title --> 99 100 <div class="menu-tool-select"> 101 <h5 class="sr-only" role="heading" aria-level="2"><?php echo tpl_getLang('head_menu_tool-select') ?></h5> 102 <?php 103 if (file_exists(DOKU_INC . 'inc/Menu/MobileMenu.php')) { 104 echo (new \dokuwiki\Menu\MobileMenu())->getDropdown(); 105 } else { 106 //Pre-Greebo Backwards compatibility 107 tpl_actiondropdown($lang['tools'], "test"); 108 } 109 ?> 110 </div><!-- .menu-tool-select --> 111 </div><!-- .headings --> 112 </div><!-- .col --> 113 114 115 <div class="col-xs-12"> 116 <div class="main-title desktop-only"> 117 <?php if ($conf['title']): ?> 118 <p class="title"><?php echo $conf['title'] ?></p> 119 <?php endif ?> 120 <?php if ($conf['tagline']): ?> 121 <p class="claim"><?php echo $conf['tagline'] ?></p> 122 <?php endif ?> 123 </div><!-- .main-title --> 124 </div><!-- .col --> 125 126 </div><!-- .row --> 127 </div><!-- .container --> 128 </div><!-- .header --> 129 130 <div class="sr-only nav-area-head"> 131 <h5 class="sr-only" role="heading" aria-level="1"><?php echo tpl_getLang('nav-area-head') ?></h5> 132 </div><!-- .nav-area-head --> 133 134 <?php if(!tpl_getConf('closedwiki') || $INPUT->server->has('REMOTE_USER')) { ?> 135 <div class="tools"> 136 <div class="container"> 137 <div class="row"> 138 <div class="col-xs-12"> 139 <div class="search main-sidebar"> 140 <?php include('tpl/main-sidebar-search.php'); ?> 141 </div><!-- .search --> 142 143 <div class="sidebarheader main-sidebar"> 144 <?php tpl_includeFile('sidebarheader.html') ?> 145 </div><!-- .sidebarheader --> 146 147 <div id="dokuwiki__aside"> 148 149 <?php 150 echo Template::getInstance()->getInclude( 151 'sidebarheader', 152 '<div class="sidebarheader">', 153 '<div class="clearer"></div></div>' 154 ); 155 ?> 156 157 <?php include('tpl/main-sidebar-nav.php'); ?> 158 159 <?php 160 echo Template::getInstance()->getInclude( 161 'sidebarfooter', 162 '<div class="sidebarfooter">', 163 '<div class="clearer"></div></div>' 164 ); 165 ?> 166 </div><!-- .aside --> 167 168 </div><!-- .col --> 169 </div><!-- .row --> 170 </div><!-- .container --> 171 </div><!-- .tools --> 172 <?php } // closed wiki check?> 173 174 <div class="top-header"> 175 <div class="container"> 176 <div class="row"> 177 <div class="col-xs-12"> 178 179 <?php 180 include('tpl/nav-usertools-buttons.php'); 181 if($mm && $matcher !== ""){ 182 include('tpl/nav-magicmatcher.php'); 183 } 184 ?> 185 186 </div><!-- .col --> 187 </div><!-- .row --> 188 </div><!-- .container --> 189 </div><!-- /top-header --> 190 191 192 <div class="content"> 193 <div class="container"> 194 <div class="row"> 195 <div class="col-xs-12"> 196 <?php tpl_flush(); /* flush the output buffer */?> 197 198 <div class="breadcrumbs" data-do="<?php echo $ACT?>"> 199 200 <?php if(!tpl_getConf('closedwiki') || $INPUT->server->has('REMOTE_USER')) { ?> 201 <div class="togglelink page_main-content"> 202 <a id="spr__toggle-content" href="#"><span class="sr-out"><?php echo tpl_getLang('a11y_sidebartoggle')?></span></a> 203 </div> 204 <?php } ?> 205 206 <h6 class="sr-only" role="heading" aria-level="2"><?php echo tpl_getLang('head_menu_status') ?></h6> 207 208 <?php include('tpl/nav-page-attributes.php'); ?> 209 210 <?php include('tpl/nav-breadcrumb.php'); ?> 211 212 <h6 class="sr-only" role="heading" aria-level="2"><?php echo $lang['page_tools'] ?></h6> 213 214 <?php 215 if(!tpl_getConf('closedwiki') || $INPUT->server->has('REMOTE_USER')) { 216 include('tpl/nav-page-tools.php'); 217 } 218 ?> 219 220 </div> 221 222 <div id="dokuwiki__content" class="page main-content"> 223 <div id="spr__meta-box"> 224 <h6 class="sr-only" role="heading" aria-level="2"><?php echo tpl_getLang('head_meta_box') ?></h6> 225 <?php include('tpl/nav-meta-box.php'); ?> 226 </div> 227 228 <div class="qc-output"></div> 229 <?php 230 /** @var action_plugin_highlightparent $highlightParent */ 231 $highlightParent = plugin_load('action', 'highlightparent'); 232 if ($highlightParent) { 233 echo $highlightParent->tpl(); 234 } 235 ?> 236 <?php 237 /** @var helper_plugin_translation $translation */ 238 $translation = plugin_load('helper','translation'); 239 if ($translation) { 240 echo $translation->showTranslations(); 241 } 242 ?> 243 <div class="page-content"> 244 <div class="msg-area"><?php html_msgarea();/*msg('Information.', 0);msg('Success', 1);msg('Notification', 2);msg('Fehler', -1);*/ ?></div> 245 <div class="clearer"></div> 246 </div> 247 <?php 248 tpl_includeFile('pageheader.html'); 249 tpl_content(false); /* the main content */ 250 ?> 251 <div class="clearer"></div> 252 <?php 253 tpl_includeFile('pagefooter.html'); 254 if($ACT == 'show') echo Template::getInstance()->getInclude( 255 'footer', 256 '<div class="wikipagefooter"><hr>', 257 '<div class="clearer"></div></div>' 258 ); 259 ?> 260 </div><!-- .main-content --> 261 262 263 <div class="page-footer"> 264 <?php 265 tpl_pageinfo() 266 ?> 267 </div> 268 269 </div><!-- .col --> 270 </div><!-- .row --> 271 </div><!-- .container --> 272 273 274 <?php 275 tpl_flush() 276 ?> 277 </div><!-- /content --> 278 279 280 <div class="clearer"></div> 281 282 </div><!-- /wrapper --> 283 284 285 286<!-- ********** FOOTER ********** --> 287 288 <div id="dokuwiki__footer"> 289 <div class="container"> 290 <div class="row"> 291 <div class="col-xs-12"> 292 293 <div class="main-footer"> 294 <?php include 'tpl/main-footer.php'; ?> 295 </div> 296 297 </div> 298 </div> 299 </div> 300 </div><!-- /footer --> 301 302 303 <?php tpl_includeFile('footer.html') ?> 304</div><!-- .dokuwiki__site --> 305 306<div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div> 307 308</body> 309</html> 310