You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

445 lines
17 KiB

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