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.
 
 
 
 
 

214 lines
7.4 KiB

  1. <?php
  2. /**
  3. * DokuWiki Bootstrap3 Template
  4. *
  5. * @link http://dokuwiki.org/template:bootstrap3
  6. * @author Giuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com>
  7. * @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
  8. */
  9. if (!defined('DOKU_INC')) die(); // must be run from within DokuWiki
  10. require_once 'tpl/global.php';
  11. require_once 'tpl/functions.php';
  12. header('X-UA-Compatible: IE=edge,chrome=1');
  13. ?><!DOCTYPE html>
  14. <html xmlns="http://www.w3.org/1999/xhtml" lang="<?php echo $conf['lang'] ?>" dir="<?php echo $lang['direction'] ?>" class="no-js">
  15. <head>
  16. <meta charset="UTF-8" />
  17. <title><?php echo $TPL->getBrowserPageTitle() ?></title>
  18. <script>(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script>
  19. <meta name="viewport" content="width=device-width,initial-scale=1" />
  20. <?php
  21. if ($TPL->getConf('themeByNamespace')) {
  22. echo '<link href="' . tpl_basedir() . 'css.php?id='. $ID .'" rel="stylesheet" />';
  23. }
  24. echo tpl_favicon(['favicon', 'mobile']);
  25. tpl_includeFile('meta.html');
  26. tpl_metaheaders();
  27. ?>
  28. <!--[if lt IE 9]>
  29. <script type="text/javascript" src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
  30. <script type="text/javascript" src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  31. <![endif]-->
  32. </head>
  33. <?php tpl_flush() ?>
  34. <body class="<?php echo $TPL->getClasses() ?>" data-page-id="<?php echo $ID ?>"><div class="dokuwiki"><?php /* CSS class for Plugins and user styles */ ?>
  35. <header id="dokuwiki__header" class="dw-container dokuwiki container<?php echo ($TPL->getConf('fluidContainer')) ? '-fluid mx-5' : '' ?>">
  36. <?php
  37. tpl_includeFile('topheader.html');
  38. // Top-Header DokuWiki page
  39. if ($ACT == 'show') $TPL->includePage('topheader');
  40. require_once('tpl/navbar.php');
  41. tpl_includeFile('header.html');
  42. // Header DokuWiki page
  43. if ($ACT == 'show') $TPL->includePage('header');
  44. ?>
  45. </header>
  46. <a name="dokuwiki__top" id="dokuwiki__top"></a>
  47. <main role="main" class="dw-container pb-5 dokuwiki container<?php echo ($TPL->getConf('fluidContainer')) ? '-fluid mx-5' : '' ?>">
  48. <div id="dokuwiki__pageheader">
  49. <?php tpl_includeFile('social.html') ?>
  50. <?php require_once('tpl/breadcrumbs.php'); ?>
  51. <p class="text-right">
  52. <?php
  53. if (($ACT == 'show') && $TPL->getConf('tagsOnTop') && $tag = $TPL->getPlugin('tag')) {
  54. echo implode('', array_map('trim', explode(',', $tag->td($ID))));
  55. }
  56. if ($TPL->getConf('showPageId')) {
  57. echo '<span class="pageId ml-1 label label-primary">'. hsc($ID) .'</span>';
  58. }
  59. ?>
  60. </p>
  61. <div id="dw__msgarea" class="small">
  62. <?php $TPL->getMessageArea() ?>
  63. </div>
  64. </div>
  65. <div class="row">
  66. <?php $TPL->includeSidebar('left'); // Left Sidebar ?>
  67. <article id="dokuwiki__content" class="<?php echo $TPL->getContainerGrid() ?>" itemscope itemtype="http://schema.org/<?php echo $TPL->getConf('schemaOrgType'); ?>" itemref="dw__license">
  68. <?php require_once('tpl/page-tools.php'); // Page Tools ?>
  69. <div class="<?php echo ($TPL->getConf('pageOnPanel') ? 'panel panel-default px-3 py-2' : 'no-panel') ?>" itemprop="articleBody">
  70. <div class="page <?php echo ($TPL->getConf('pageOnPanel') ? 'panel-body' : '') ?>">
  71. <?php
  72. // Page icons (print, email, share link, etc.)
  73. require_once('tpl/page-icons.php');
  74. // Page-Header DokuWiki page
  75. tpl_includeFile('pageheader.html');
  76. // Page-Header DokuWiki page
  77. if ($ACT == 'show') $TPL->includePage('pageheader');
  78. tpl_flush(); /* flush the output buffer */
  79. // render the content into buffer for later use
  80. ob_start();
  81. tpl_content(false);
  82. $content = ob_get_clean();
  83. $toc = $TPL->getTOC(true);
  84. $content_classes = [];
  85. if ($TPL->getConf('tocCollapsed')) $content_classes[] = 'dw-toc-closed';
  86. echo '<div class="dw-content-page '. implode(' ', $content_classes) .'">';
  87. if ($toc) echo $toc;
  88. echo '<!-- content -->';
  89. echo '<div class="dw-content">';
  90. echo $content;
  91. echo '</div>';
  92. echo '<!-- /content -->';
  93. echo '</div>';
  94. tpl_flush();
  95. if (! $TPL->getConf('tagsOnTop') && $tag = $TPL->getPlugin('tag')) {
  96. echo implode('', array_map('trim', explode(',', $tag->td($ID))));
  97. }
  98. // Page-Footer hook
  99. tpl_includeFile('pagefooter.html');
  100. // Page-Footer DokuWiki page
  101. if ($ACT == 'show') $TPL->includePage('pagefooter');
  102. ?>
  103. </div>
  104. </div>
  105. <div class="small text-right">
  106. <?php if ($TPL->getConf('showPageInfo')): ?>
  107. <span class="docInfo">
  108. <?php $TPL->getPageInfo() /* 'Last modified' etc */ ?>
  109. </span>
  110. <?php endif ?>
  111. <?php if ($TPL->getConf('showLoginOnFooter')): ?>
  112. <span class="loginLink hidden-print">
  113. <?php
  114. if ($login_item = $TPL->getToolMenuItem('user', 'login')) {
  115. echo '<a '. buildAttributes($login_item->getLinkAttributes()) .'>'. inlineSVG($login_item->getSvg()) . ' ' . hsc($login_item->getLabel()) .'</a>';
  116. }
  117. ?>
  118. </span>
  119. <?php endif; ?>
  120. </div>
  121. </article>
  122. <?php $TPL->includeSidebar('right'); // Right Sidebar ?>
  123. </div>
  124. </main>
  125. <footer id="dw__footer" class="dw-container py-5 dokuwiki container<?php echo ($TPL->getConf('fluidContainer')) ? '-fluid' : '' ?>">
  126. <?php
  127. // Footer hook
  128. tpl_includeFile('footer.html');
  129. // Footer DokuWiki page
  130. require_once('tpl/footer.php');
  131. // Cookie-Law banner
  132. require_once('tpl/cookielaw.php');
  133. ?>
  134. </footer>
  135. <a href="#dokuwiki__top" class="back-to-top hidden-print btn btn-default" title="<?php echo $lang['skip_to_content'] ?>" accesskey="t">
  136. <?php echo iconify('mdi:chevron-up'); ?>
  137. </a>
  138. <div id="screen__mode"><?php /* helper to detect CSS media query in script.js */ ?>
  139. <span class="visible-xs-block"></span>
  140. <span class="visible-sm-block"></span>
  141. <span class="visible-md-block"></span>
  142. <span class="visible-lg-block"></span>
  143. </div>
  144. <?php
  145. // Provide DokuWiki housekeeping, required in all templates
  146. tpl_indexerWebBug();
  147. ?>
  148. </div>
  149. </body>
  150. </html>