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