main.php 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <?php
  2. /**
  3. * DokuWiki Default Template 2012
  4. *
  5. * @link http://dokuwiki.org/template
  6. * @author Anika Henke <anika@selfthinker.org>
  7. * @author Clarence Lee <clarencedglee@gmail.com>
  8. * @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
  9. */
  10. if (!defined('DOKU_INC')) die(); /* must be run from within DokuWiki */
  11. $hasSidebar = page_findnearest($conf['sidebar']);
  12. $showSidebar = $hasSidebar && ($ACT=='show');
  13. ?><!DOCTYPE html>
  14. <html lang="<?php echo $conf['lang'] ?>" dir="<?php echo $lang['direction'] ?>" class="no-js">
  15. <head>
  16. <meta charset="utf-8" />
  17. <title><?php tpl_pagetitle() ?> [<?php echo strip_tags($conf['title']) ?>]</title>
  18. <script>(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script>
  19. <?php tpl_metaheaders() ?>
  20. <meta name="viewport" content="width=device-width,initial-scale=1" />
  21. <?php echo tpl_favicon(array('favicon', 'mobile')) ?>
  22. <?php tpl_includeFile('meta.html') ?>
  23. <link href='https://fonts.googleapis.com/css?family=Roboto:400,100,100italic,300,300italic,400italic,500,500italic,700,700italic,900italic,900' rel='stylesheet' type='text/css'>
  24. </head>
  25. <body style="font-family: Roboto !important;">
  26. <div id="dokuwiki__site"><div id="dokuwiki__top" class="site <?php echo tpl_classes(); ?> <?php
  27. echo ($showSidebar) ? 'showSidebar' : ''; ?> <?php echo ($hasSidebar) ? 'hasSidebar' : ''; ?>">
  28. <?php include('tpl_header.php') ?>
  29. <div class="wrapper group">
  30. <?php if($showSidebar): ?>
  31. <!-- ********** ASIDE ********** -->
  32. <nav id="dokuwiki__aside" aria-label="<?php echo $lang['sidebar']
  33. ?>"><div class="pad aside include group">
  34. <h3 class="toggle"><?php echo $lang['sidebar'] ?></h3>
  35. <div class="content"><div class="group">
  36. <?php tpl_flush() ?>
  37. <?php tpl_includeFile('sidebarheader.html') ?>
  38. <?php tpl_include_page($conf['sidebar'], true, true) ?>
  39. <?php tpl_includeFile('sidebarfooter.html') ?>
  40. </div></div>
  41. </div></nav><!-- /aside -->
  42. <?php endif; ?>
  43. <!-- ********** CONTENT ********** -->
  44. <main id="dokuwiki__content"><div class="pad group">
  45. <?php html_msgarea() ?>
  46. <div class="pageId"><span><?php echo hsc($ID) ?></span></div>
  47. <div class="page group">
  48. <?php tpl_flush() ?>
  49. <?php tpl_includeFile('pageheader.html') ?>
  50. <!-- wikipage start -->
  51. <?php tpl_content() ?>
  52. <!-- wikipage stop -->
  53. <?php tpl_includeFile('pagefooter.html') ?>
  54. </div>
  55. <div class="docInfo"><?php tpl_pageinfo() ?></div>
  56. <?php tpl_flush() ?>
  57. <hr class="a11y" />
  58. </div></main><!-- /content -->
  59. <!-- PAGE ACTIONS -->
  60. <nav id="dokuwiki__pagetools" aria-labelledby="dokuwiki__pagetools__heading">
  61. <h3 class="a11y" id="dokuwiki__pagetools__heading"><?php echo $lang['page_tools']; ?></h3>
  62. <div class="tools">
  63. <ul>
  64. <?php echo (new \dokuwiki\Menu\PageMenu())->getListItems(); ?>
  65. </ul>
  66. </div>
  67. </nav>
  68. </div><!-- /wrapper -->
  69. <?php include('tpl_footer.php') ?>
  70. </div></div><!-- /site -->
  71. <div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div>
  72. <div id="screen__mode" class="no"></div><?php /* helper to detect CSS media query in script.js */ ?>
  73. </body>
  74. </html>