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